text:
package com.wemakestuff.teracast.util;

import android.graphics.*;
import android.widget.ImageView;

import java.io.File;
import java.io.IOException;
import java.io.RandomAccessFile;

import static android.graphics.Bitmap.Config.ARGB_8888;
import static android.graphics.Color.WHITE;
import static android.graphics.PorterDuff.Mode.DST_IN;

/**
 * Image utilities
 */
public class ImageUtils {

	/**
	 * Get a bitmap from the image path
	 *
	 * @param imagePath
	 *
	 * @return bitmap or null if read fails
	 */
	public static Bitmap getBitmap(final String imagePath) {
		return getBitmap(imagePath, 1);
	}

	/**
	 * Get a bitmap from the image path
	 *
	 * @param imagePath
	 * @param sampleSize
	 *
	 * @return bitmap or null if read fails
	 */
	public static Bitmap getBitmap(final String imagePath, int sampleSize) {
		final BitmapFactory.Options options = new BitmapFactory.Options();
		options.inDither = false;
		options.inSampleSize = sampleSize;

		RandomAccessFile file = null;
		try {
			file = new RandomAccessFile(imagePath, "r");
			return BitmapFactory.decodeFileDescriptor(file.getFD(), null,
			                                          options);
		} catch (IOException e) {
			Ln.d(e, "Could not get cached bitmap.");
			return null;
		} finally {
			if (file != null) {
				try {
					file.close();
				} catch (IOException e) {
					Ln.d(e, "Could not get cached bitmap.");
				}
			}
		}
	}

	/**
	 * Get size of image
	 *
	 * @param imagePath
	 *
	 * @return size
	 */
	public static Point getSize(final String imagePath) {
		final BitmapFactory.Options options = new BitmapFactory.Options();
		options.inJustDecodeBounds = true;

		RandomAccessFile file = null;
		try {
			file = new RandomAccessFile(imagePath, "r");
			BitmapFactory.decodeFileDescriptor(file.getFD(), null, options);
			return new Point(options.outWidth, options.outHeight);
		} catch (IOException e) {
			Ln.d(e, "Could not get size.");
			return null;
		} finally {
			if (file != null) {
				try {
					file.close();
				} catch (IOException e) {
					Ln.d(e, "Could not get size.");
				}
			}
		}
	}

	/**
	 * Get bitmap with maximum height or width
	 *
	 * @param imagePath
	 * @param width
	 * @param height
	 *
	 * @return image
	 */
	public static Bitmap getBitmap(final String imagePath, int width, int height) {
		Point size = getSize(imagePath);
		int currWidth = size.x;
		int currHeight = size.y;

		int scale = 1;
		while (currWidth >= width || currHeight >= height) {
			currWidth /= 2;
			currHeight /= 2;
			scale *= 2;
		}

		return getBitmap(imagePath, scale);
	}

	/**
	 * Get bitmap with maximum height or width
	 *
	 * @param image
	 * @param width
	 * @param height
	 *
	 * @return image
	 */
	public static Bitmap getBitmap(final File image, int width, int height) {
		return getBitmap(image.getAbsolutePath(), width, height);
	}

	/**
	 * Get a bitmap from the image file
	 *
	 * @param image
	 *
	 * @return bitmap or null if read fails
	 */
	public static Bitmap getBitmap(final File image) {
		return getBitmap(image.getAbsolutePath());
	}

	/**
	 * Load a {@link Bitmap} from the given path and set it on the given
	 * {@link android.widget.ImageView}
	 *
	 * @param imagePath
	 * @param view
	 */
	public static void setImage(final String imagePath, final ImageView view) {
		setImage(new File(imagePath), view);
	}

	/**
	 * Load a {@link Bitmap} from the given {@link File} and set it on the given
	 * {@link ImageView}
	 *
	 * @param image
	 * @param view
	 */
	public static void setImage(final File image, final ImageView view) {
		Bitmap bitmap = getBitmap(image);
		if (bitmap != null) {
			view.setImageBitmap(bitmap);
		}
	}

	/**
	 * Round the corners of a {@link Bitmap}
	 *
	 * @param source
	 * @param radius
	 *
	 * @return rounded corner bitmap
	 */
	public static Bitmap roundCorners(final Bitmap source, final float radius) {
		int width = source.getWidth();
		int height = source.getHeight();

		Paint paint = new Paint();
		paint.setAntiAlias(true);
		paint.setColor(WHITE);

		Bitmap clipped = Bitmap.createBitmap(width, height, ARGB_8888);
		Canvas canvas = new Canvas(clipped);
		canvas.drawRoundRect(new RectF(0, 0, width, height), radius, radius,
		                     paint);
		paint.setXfermode(new PorterDuffXfermode(DST_IN));

		Bitmap rounded = Bitmap.createBitmap(width, height, ARGB_8888);
		canvas = new Canvas(rounded);
		canvas.drawBitmap(source, 0, 0, null);
		canvas.drawBitmap(clipped, 0, 0, paint);

		source.recycle();
		clipped.recycle();

		return rounded;
	}
}


text:
package edu.ucdenver.ccp.datasource.identifiers.impl.bio;

import edu.ucdenver.ccp.datasource.fileparsers.CcpExtensionOntology;

import edu.ucdenver.ccp.datasource.identifiers.DataSource;
import edu.ucdenver.ccp.datasource.identifiers.Identifier;
import edu.ucdenver.ccp.datasource.identifiers.StringDataSourceIdentifier;

@Identifier(ontClass=CcpExtensionOntology.LEGIOLIST_IDENTIFIER)
public class LegioListId extends StringDataSourceIdentifier {
		public LegioListId(String id) {
			super(id, DataSource.LEGIOLIST);
}
	}

redpajama_set_name: RedPajamaGithub


text:
package org.batfish.common.topology;

import java.util.Map;
import java.util.Set;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.batfish.common.topology.IpOwnersBaseImpl.ElectionDetails;
import org.batfish.datamodel.Ip;
import org.batfish.datamodel.IpSpace;
import org.batfish.datamodel.Prefix;

/** Provides a view of IP addresses owned by nodes, vrfs, and interfaces. */
public interface IpOwners {
  /**
   * Invert a mapping from {@link Ip} to owner interfaces (Ip -> hostname -> interface name)
   * to (hostname -> interface name -> Ip).
   */
  @Nonnull
  Map<String, Map<String, Set<Ip>>> getInterfaceOwners(boolean excludeInactive);

  /**
   * Returns a mapping of IP addresses to a set of hostnames that "own" this IP (e.g., as a network
   * interface address)
   *
   * @param excludeInactive Whether to exclude inactive interfaces
   * @return A map of {@link Ip}s to a set of hostnames that own this IP
   */
  @Nonnull
  Map<Ip, Set<String>> getNodeOwners(boolean excludeInactive);

  /**
   * Mapping from a IP to hostname to set of interfaces that own that IP (for active interfaces
   * only)
   */
  @Nonnull
  Map<Ip, Map<String, Set<String>>> getActiveDeviceOwnedIps();

  /**
   * Mapping from a IP to hostname to set of interfaces that own that IP (including inactive
   * interfaces)
   */
  @Nonnull
  Map<Ip, Map<String, Set<String>>> getAllDeviceOwnedIps();

  /**
   * Returns a mapping from hostname to interface name to the host {@link IpSpace} of that
   * interface, including inactive interfaces.
   *
   * @see Prefix#toHostIpSpace()
   */
  @Nonnull
  Map<String, Map<String, IpSpace>> getAllInterfaceHostIps();

  /**
   * Returns a mapping from hostname to interface name to IpSpace owned by that interface, for
   * active interfaces only
   */
  @Nonnull
  Map<String, Map<String, IpSpace>> getInterfaceOwnedIpSpaces();

  /** Returns a mapping from IP to hostname to set of VRFs that own that IP. */
  @Nonnull
  Map<Ip, Map<String, Set<String>>> getIpVrfOwners();

  /**
   * Returns a mapping from hostname to vrf name to interface name to a space of IPs owned by that
   * interface. Only considers interface IPs. Considers only active interfaces.
   */
  @Nonnull
  Map<String, Map<String, Map<String, IpSpace>>> getVrfIfaceOwnedIpSpaces();

  /** Returns election data for HSRP, if recorded. */
  @Nullable
  ElectionDetails getHsrpElectionDetails();

  /** Returns election data for VRRP, if recorded. */
  @Nullable
  ElectionDetails getVrrpElectionDetails();
}


text:
package com.braintreegateway;

public class TransactionAddressRequest extends AddressRequest {
    public enum ShippingMethod {
        SAME_DAY("same_day"),
        NEXT_DAY("next_day"),
        PRIORITY("priority"),
        GROUND("ground"),
        ELECTRONIC("electronic"),
        SHIP_TO_STORE("ship_to_store");

        private final String name;

        ShippingMethod(String name) {
            this.name = name;
        }

        @Override
        public String toString() {
            return name;
        }
    }

    private TransactionRequest parent;
    private ShippingMethod shippingMethod;

    public TransactionAddressRequest(TransactionRequest parent, String tagName) {
        this.parent = parent;
        this.tagName = tagName;
    }

    @Override
    public TransactionAddressRequest company(String company) {
        super.company(company);
        return this;
    }

    @Override
    public TransactionAddressRequest countryName(String countryName) {
        super.countryName(countryName);
        return this;
    }

    @Override
    public TransactionAddressRequest countryCodeAlpha2(String countryCodeAlpha2) {
        super.countryCodeAlpha2(countryCodeAlpha2);
        return this;
    }

    @Override
    public TransactionAddressRequest countryCodeAlpha3(String countryCodeAlpha3) {
        super.countryCodeAlpha3(countryCodeAlpha3);
        return this;
    }

    @Override
    public TransactionAddressRequest countryCodeNumeric(String countryCodeNumeric) {
        super.countryCodeNumeric(countryCodeNumeric);
        return this;
    }

    @Override
    public TransactionAddressRequest extendedAddress(String extendedAddress) {
        super.extendedAddress(extendedAddress);
        return this;
    }

    @Override
    public TransactionAddressRequest firstName(String firstName) {
        super.firstName(firstName);
        return this;
    }

    @Override
    public TransactionAddressRequest lastName(String lastName) {
        super.lastName(lastName);
        return this;
    }

    @Override
    public TransactionAddressRequest locality(String locality) {
        super.locality(locality);
        return this;
    }

    @Override
    public TransactionAddressRequest phoneNumber(String phoneNumber) {
        super.phoneNumber(phoneNumber);
        return this;
    }

    @Override
    public TransactionAddressRequest postalCode(String postalCode) {
        super.postalCode(postalCode);
        return this;
    }

    @Override
    public TransactionAddressRequest region(String region) {
        super.region(region);
        return this;
    }

    public TransactionAddressRequest shippingMethod(ShippingMethod shippingMethod) {
        this.shippingMethod = shippingMethod;
        return this;
    }

    @Override
    public TransactionAddressRequest streetAddress(String streetAddress) {
        super.streetAddress(streetAddress);
        return this;
    }

    public TransactionRequest done() {
        return parent;
    }

    @Override
    protected RequestBuilder buildRequest(String root) {
        RequestBuilder requestBuilder = super.buildRequest(root);
        if (shippingMethod != null) {
            requestBuilder = requestBuilder.addElement("shippingMethod", shippingMethod);
        }
        return requestBuilder;
    }
}


text:
package com.google.javascript.jscomp;

import static com.google.common.truth.Truth.assertThat;
import static com.google.javascript.jscomp.Reference.createRefForTest;

import com.google.common.collect.ImmutableList;
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.Token;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;

/**
 * Unit-tests for the GlobalVarReferenceMap class.
 *
 * @author bashir@google.com (Bashir Sadjad)
 */
@RunWith(JUnit4.class)
public final class GlobalVarReferenceMapTest extends TestCase {

  private final CompilerInput INPUT1 =
      new CompilerInput(SourceFile.fromCode("input1", ""), false);
  private final CompilerInput INPUT2 =
      new CompilerInput(SourceFile.fromCode("input2", ""), false);
  private final CompilerInput INPUT3 =
      new CompilerInput(SourceFile.fromCode("input3", ""), false);
  private final CompilerInput EXTERN1 =
      new CompilerInput(SourceFile.fromCode("extern1", ""), true);

  private final GlobalVarReferenceMap map = new GlobalVarReferenceMap(
      ImmutableList.of(INPUT1, INPUT2, INPUT3), ImmutableList.of(EXTERN1));
  private final Map<Var, ReferenceCollection> globalMap = new HashMap<>();
  private final Node root = new Node(Token.ROOT);
  private final Scope globalScope = Scope.createGlobalScope(root);
  private final Node scriptRoot = new Node(Token.SCRIPT);

  // In the initial setUp we have 3 references to var1 (one in each input) and
  // 2 references to var2 (in first and third inputs), and 2 references to var3
  // (in second input and first extern)
  private static final String VAR1 = "var1";
  private static final String VAR2 = "var2";
  private static final String VAR3 = "var3";
  private final ReferenceCollection var1Refs = new ReferenceCollection();
  private final ReferenceCollection var2Refs = new ReferenceCollection();
  private final ReferenceCollection var3Refs = new ReferenceCollection();
  private final Reference var1In1Ref = createRefForTest(INPUT1);
  private final Reference var1In2Ref = createRefForTest(INPUT2);
  private final Reference var1In3Ref = createRefForTest(INPUT3);
  private final Reference var2In1Ref = createRefForTest(INPUT1);
  private final Reference var2In3Ref = createRefForTest(INPUT3);
  private final Reference var3In2Ref = createRefForTest(INPUT2);
  private final Reference var3In1Ext = createRefForTest(EXTERN1);

  @Override
  @Before
  public void setUp() throws Exception {
    super.setUp();
    globalScope.declare(VAR1, new Node(Token.NAME), INPUT1);
    var1Refs.references = ImmutableList.of(var1In1Ref,
        var1In2Ref, var1In3Ref);
    globalScope.declare(VAR2, new Node(Token.NAME), INPUT1);
    var2Refs.references = ImmutableList.of(var2In1Ref, var2In3Ref);
    globalScope.declare(VAR3, new Node(Token.NAME), EXTERN1);
    var3Refs.references = ImmutableList.of(var3In1Ext, var3In2Ref);

    // We recreate these two ReferenceCollection to keep var1Refs and
    // var2Refs intact in update operations for comparison in the tests.
    ReferenceCollection var1TempRefs = new ReferenceCollection();
    var1TempRefs.references = new ArrayList<>(var1Refs.references);
    ReferenceCollection var2TempRefs = new ReferenceCollection();
    var2TempRefs.references = new ArrayList<>(var2Refs.references);
    ReferenceCollection var3TempRefs = new ReferenceCollection();
    var3TempRefs.references = new ArrayList<>(var3Refs.references);
    globalMap.put(globalScope.getVar(VAR1), var1TempRefs);
    globalMap.put(globalScope.getVar(VAR2), var2TempRefs);
    globalMap.put(globalScope.getVar(VAR3), var3TempRefs);
    map.updateGlobalVarReferences(globalMap, root);
    scriptRoot.setInputId(INPUT2.getInputId());
    scriptRoot.setSourceFileForTesting(INPUT2.getName());
  }

  /** Tests whether the global variable references are set/reset properly. */
  @Test
  public void testUpdateGlobalVarReferences_ResetReferences() {
    // First we check the original setup then reset again.
    for (int i = 0; i < 2; i++) {
      assertThat(map.getReferences(globalScope.getVar(VAR1)).references)
          .isEqualTo(var1Refs.references);
      assertThat(map.getReferences(globalScope.getVar(VAR2)).references)
          .isEqualTo(var2Refs.references);
      assertThat(map.getReferences(globalScope.getVar(VAR3)).references)
          .isEqualTo(var3Refs.references);
      map.updateGlobalVarReferences(globalMap, root);
    }
  }

  /** Removes all variable references in second script. */
  @Test
  public void testUpdateGlobalVarReferences_UpdateScriptNoRef() {
    Map<Var, ReferenceCollection> scriptMap = new HashMap<>();
    map.updateGlobalVarReferences(scriptMap, scriptRoot);
    ReferenceCollection refs = map.getReferences(globalScope.getVar(VAR2));
    assertThat(refs.references).isEqualTo(var2Refs.references);
    refs = map.getReferences(globalScope.getVar(VAR1));
    assertThat(refs.references).hasSize(2);
    assertThat(refs.references.get(0)).isEqualTo(var1Refs.references.get(0));
    assertThat(refs.references.get(1)).isEqualTo(var1Refs.references.get(2));
    refs = map.getReferences(globalScope.getVar(VAR3));
    assertThat(refs.references).hasSize(1);
    assertThat(refs.references.get(0)).isEqualTo(var3Refs.references.get(0));
  }

  /** Changes variable references in second script. */
  @Test
  public void testUpdateGlobalVarReferences_UpdateScriptNewRefs() {
    Map<Var, ReferenceCollection> scriptMap = new HashMap<>();

    ReferenceCollection newVar1Refs = new ReferenceCollection();
    Reference newVar1In2Ref = createRefForTest(INPUT2);
    newVar1Refs.references = ImmutableList.of(newVar1In2Ref);

    ReferenceCollection newVar2Refs = new ReferenceCollection();
    Reference newVar2In2Ref = createRefForTest(INPUT2);
    newVar2Refs.references = ImmutableList.of(newVar2In2Ref);

    ReferenceCollection newVar3Refs = new ReferenceCollection();
    Reference newVar3In2Ref = createRefForTest(INPUT2);
    newVar3Refs.references = ImmutableList.of(newVar3In2Ref);

    scriptMap.put(globalScope.getVar(VAR1), newVar1Refs);
    scriptMap.put(globalScope.getVar(VAR2), newVar2Refs);
    scriptMap.put(globalScope.getVar(VAR3), newVar3Refs);
    map.updateGlobalVarReferences(scriptMap, scriptRoot);
    ReferenceCollection refs = map.getReferences(globalScope.getVar(VAR1));
    assertThat(refs.references).hasSize(3);
    assertThat(refs.references.get(0)).isEqualTo(var1Refs.references.get(0));
    assertThat(refs.references.get(1)).isEqualTo(newVar1In2Ref);
    assertThat(refs.references.get(2)).isEqualTo(var1Refs.references.get(2));
    refs = map.getReferences(globalScope.getVar(VAR2));
    assertThat(refs.references).hasSize(3);
    assertThat(refs.references.get(0)).isEqualTo(var2Refs.references.get(0));
    assertThat(refs.references.get(1)).isEqualTo(newVar2In2Ref);
    assertThat(refs.references.get(2)).isEqualTo(var2Refs.references.get(1));
    refs = map.getReferences(globalScope.getVar(VAR3));
    assertThat(refs.references).hasSize(2);
    assertThat(refs.references.get(0)).isEqualTo(var3Refs.references.get(0));
    assertThat(refs.references.get(1)).isEqualTo(newVar3In2Ref);
  }

  /** Changes variable references in second script. */
  @Test
  public void testUpdateGlobalVarReferences_UpdateScriptNewVar() {
    Map<Var, ReferenceCollection> scriptMap = new HashMap<>();
    final String var4 = "var4";
    globalScope.declare(var4, new Node(Token.NAME), INPUT2);
    ReferenceCollection newVar3Refs = new ReferenceCollection();
    Reference newVar3In2Ref = createRefForTest(INPUT2);
    newVar3Refs.references = ImmutableList.of(newVar3In2Ref);
    scriptMap.put(globalScope.getVar(var4), newVar3Refs);
    map.updateGlobalVarReferences(scriptMap, scriptRoot);
    ReferenceCollection refs = map.getReferences(globalScope.getVar(var4));
    assertThat(refs.references).hasSize(1);
    assertThat(refs.references.get(0)).isEqualTo(newVar3In2Ref);
  }

  @Test
  public void testUpdateReferencesWithGlobalScope() {
    Scope newGlobalScope = Scope.createGlobalScope(root);
    map.updateReferencesWithGlobalScope(newGlobalScope);
    ReferenceCollection references =
        map.getReferences(globalScope.getVar(VAR1));
    for (Reference ref : references) {
      assertThat(ref.getScope()).isEqualTo(newGlobalScope);
    }
    references = map.getReferences(globalScope.getVar(VAR2));
    for (Reference ref : references) {
      assertThat(ref.getScope()).isEqualTo(newGlobalScope);
    }
    references = map.getReferences(globalScope.getVar(VAR3));
    for (Reference ref : references) {
      assertThat(ref.getScope()).isEqualTo(newGlobalScope);
    }
  }
}


text:
package com.intellij.framework.addSupport;

import com.intellij.framework.FrameworkVersion;

import java.util.EventListener;

public interface FrameworkVersionListener extends EventListener {
  void versionChanged(FrameworkVersion version);
}


text:
// This code is auto-generated, do not modify
using Ds3.Models;
using System;
using System.Net;

namespace Ds3.Calls
{
    public class GetTapePartitionSpectraS3Request : Ds3Request
    {

        public string TapePartition { get; private set; }

        public GetTapePartitionSpectraS3Request(string tapePartition)
        {
            this.TapePartition = tapePartition;

        }

        internal override HttpVerb Verb
        {
            get
            {
                return HttpVerb.GET;
            }
        }

        internal override string Path
        {
            get
            {
                return "/_rest_/tape_partition/" + TapePartition;
            }
        }
    }
}


text:
{% extends "admin/feincms/item_editor.html" %}

{% load url from future %}
{% load i18n %}

{% block breadcrumbs %}

                {% trans "Home" %} ›
                {{app_label|capfirst|escape}} ›
                {{opts.verbose_name_plural|capfirst}} ›
                {% blocktrans with opts.verbose_name as verbose_name %}Recover deleted {{verbose_name}}{% endblocktrans %} ›
                {{title}}

{% endblock %}

{% block form_top %}

{% blocktrans %}Press the save button below to recover this version of the object.{% endblocktrans %}

{% endblock %}


text:
Get a list of repository commits in a project.

```
GET /projects/:id/repository/commits
```

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `ref_name` | string | no | The name of a repository branch or tag or if not given the default branch |
| `since` | string | no | Only commits after or on this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |
| `until` | string | no | Only commits before or on this date will be returned in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ |

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/commits"
```

Example response:

```json
[
  {
    "id": "ed899a2f4b50b4370feeea94676502b42383c746",
    "short_id": "ed899a2f4b5",
    "title": "Replace sanitize with escape once",
    "author_name": "Dmitriy Zaporozhets",
    "author_email": "dzaporozhets@sphereconsultinginc.com",
    "authored_date": "2012-09-20T11:50:22+03:00",
    "committer_name": "Administrator",
    "committer_email": "admin@example.com",
    "committed_date": "2012-09-20T11:50:22+03:00",
    "created_at": "2012-09-20T11:50:22+03:00",
    "message": "Replace sanitize with escape once",
    "parent_ids": [
      "6104942438c14ec7bd21c6cd5bd995272b3faff6"
    ]
  },
  {
    "id": "6104942438c14ec7bd21c6cd5bd995272b3faff6",
    "short_id": "6104942438c",
    "title": "Sanitize for network graph",
    "author_name": "randx",
    "author_email": "dmitriy.zaporozhets@gmail.com",
    "committer_name": "Dmitriy",
    "committer_email": "dmitriy.zaporozhets@gmail.com",
    "created_at": "2012-09-20T09:06:12+03:00",
    "message": "Sanitize for network graph",
    "parent_ids": [
      "ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba"
    ]
  }
]
```

## Create a commit with multiple files and actions

> [Introduced][ce-6096] in GitLab 8.13.

Create a commit by posting a JSON payload

```
POST /projects/:id/repository/commits
```

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) |
| `branch` | string | yes | The name of a branch |
| `commit_message` | string | yes | Commit message |
| `actions[]` | array | yes | An array of action hashes to commit as a batch. See the next table for what attributes it can take. |
| `author_email` | string | no | Specify the commit author's email address |
| `author_name` | string | no | Specify the commit author's name |

| `actions[]` Attribute | Type | Required | Description |
| --------------------- | ---- | -------- | ----------- |
| `action` | string | yes | The action to perform, `create`, `delete`, `move`, `update` |
| `file_path` | string | yes | Full path to the file. Ex. `lib/class.rb` |
| `previous_path` | string | no | Original full path to the file being moved. Ex. `lib/class1.rb` |
| `content` | string | no | File content, required for all except `delete`. Optional for `move` |
| `encoding` | string | no | `text` or `base64`. `text` is default. |

```bash
PAYLOAD=$(cat << 'JSON'
{
  "branch": "master",
  "commit_message": "some commit message",
  "actions": [
    {
      "action": "create",
      "file_path": "foo/bar",
      "content": "some content"
    },
    {
      "action": "delete",
      "file_path": "foo/bar2",
    },
    {
      "action": "move",
      "file_path": "foo/bar3",
      "previous_path": "foo/bar4",
      "content": "some content"
    },
    {
      "action": "update",
      "file_path": "foo/bar5",
      "content": "new content"
    }
  ]
}
JSON
)
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --header "Content-Type: application/json" --data "$PAYLOAD" https://gitlab.example.com/api/v4/projects/1/repository/commits
```

Example response:
```json
{
  "id": "ed899a2f4b50b4370feeea94676502b42383c746",
  "short_id": "ed899a2f4b5",
  "title": "some commit message",
  "author_name": "Dmitriy Zaporozhets",
  "author_email": "dzaporozhets@sphereconsultinginc.com",
  "committer_name": "Dmitriy Zaporozhets",
  "committer_email": "dzaporozhets@sphereconsultinginc.com",
  "created_at": "2016-09-20T09:26:24.000-07:00",
  "message": "some commit message",
  "parent_ids": [
    "ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba"
  ],
  "committed_date": "2016-09-20T09:26:24.000-07:00",
  "authored_date": "2016-09-20T09:26:24.000-07:00",
  "stats": {
    "additions": 2,
    "deletions": 2,
    "total": 4
  },
  "status": null
}
```

## Get a single commit

Get a specific commit identified by the commit hash or name of a branch or tag.

```
GET /projects/:id/repository/commits/:sha
```

Parameters:

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha` | string | yes | The commit hash or name of a repository branch or tag |

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master
```

Example response:

```json
{
  "id": "6104942438c14ec7bd21c6cd5bd995272b3faff6",
  "short_id": "6104942438c",
  "title": "Sanitize for network graph",
  "author_name": "randx",
  "author_email": "dmitriy.zaporozhets@gmail.com",
  "committer_name": "Dmitriy",
  "committer_email": "dmitriy.zaporozhets@gmail.com",
  "created_at": "2012-09-20T09:06:12+03:00",
  "message": "Sanitize for network graph",
  "committed_date": "2012-09-20T09:06:12+03:00",
  "authored_date": "2012-09-20T09:06:12+03:00",
  "parent_ids": [
    "ae1d9fb46aa2b07ee9836d49862ec4e2c46fbbba"
  ],
  "stats": {
    "additions": 15,
    "deletions": 10,
    "total": 25
  },
  "status": "running"
}
```

## Cherry pick a commit

> [Introduced][ce-8047] in GitLab 8.15.

Cherry picks a commit to a given branch.

```
POST /projects/:id/repository/commits/:sha/cherry_pick
```

Parameters:

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha` | string | yes | The commit hash  |
| `branch` | string | yes | The name of the branch  |

```bash
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --form "branch=master" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master/cherry_pick"
```

Example response:

```json
{
  "id": "8b090c1b79a14f2bd9e8a738f717824ff53aebad",
  "short_id": "8b090c1b",
  "title": "Feature added",
  "author_name": "Dmitriy Zaporozhets",
  "author_email": "dmitriy.zaporozhets@gmail.com",
  "authored_date": "2016-12-12T20:10:39.000+01:00",
  "created_at": "2016-12-12T20:10:39.000+01:00",
  "committer_name": "Administrator",
  "committer_email": "admin@example.com",
  "committed_date": "2016-12-12T20:10:39.000+01:00",
  "title": "Feature added",
  "message": "Feature added\n\nSigned-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>\n",
  "parent_ids": [
    "a738f717824ff53aebad8b090c1b79a14f2bd9e8"
  ]
}
```

## Get the diff of a commit

Get the diff of a commit in a project.

```
GET /projects/:id/repository/commits/:sha/diff
```

Parameters:

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha` | string | yes | The commit hash or name of a repository branch or tag |

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master/diff"
```

Example response:

```json
[
  {
    "diff": "--- a/doc/update/5.4-to-6.0.md\n+++ b/doc/update/5.4-to-6.0.md\n@@ -71,6 +71,8 @@\n sudo -u git -H bundle exec rake migrate_keys RAILS_ENV=production\n sudo -u git -H bundle exec rake migrate_inline_notes RAILS_ENV=production\n \n+sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production\n+\n ```\n \n ### 6. Update config files",
    "new_path": "doc/update/5.4-to-6.0.md",
    "old_path": "doc/update/5.4-to-6.0.md",
    "a_mode": null,
    "b_mode": "100644",
    "new_file": false,
    "renamed_file": false,
    "deleted_file": false
  }
]
```

## Get the comments of a commit

Get the comments of a commit in a project.

```
GET /projects/:id/repository/commits/:sha/comments
```

Parameters:

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha` | string | yes | The commit hash or name of a repository branch or tag |

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/5/repository/commits/master/comments"
```

Example response:

```json
[
  {
    "note": "this code is really nice",
    "author": {
      "id": 11,
      "username": "admin",
      "email": "admin@local.host",
      "name": "Administrator",
      "state": "active",
      "created_at": "2014-03-06T08:17:35.000Z"
    }
  }
]
```

## Post comment to commit

Adds a comment to a commit.

In order to post a comment in a particular line of a particular file, you must
specify the full commit SHA, the `path`, the `line` and `line_type` should be
`new`.

The comment will be added at the end of the last commit if at least one of the
cases below is valid:

- the `sha` is instead a branch or a tag and the `line` or `path` are invalid
- the `line` number is invalid (does not exist)
- the `path` is invalid (does not exist)

In any of the above cases, the response of `line`, `line_type` and `path` is
set to `null`.

```
POST /projects/:id/repository/commits/:sha/comments
```

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha`       | string  | yes | The commit SHA or name of a repository branch or tag |
| `note`      | string  | yes | The text of the comment |
| `path`      | string  | no  | The file path relative to the repository |
| `line`      | integer | no  | The line number where the comment should be placed |
| `line_type` | string  | no  | The line type. Takes `new` or `old` as arguments |

```bash
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" --form "note=Nice picture man\!" --form "path=dudeism.md" --form "line=11" --form "line_type=new" https://gitlab.example.com/api/v4/projects/17/repository/commits/18f3e63d05582537db6d183d9d557be09e1f90c8/comments
```

Example response:

```json
{
   "author" : {
      "web_url" : "https://gitlab.example.com/thedude",
      "avatar_url" : "https://gitlab.example.com/uploads/user/avatar/28/The-Big-Lebowski-400-400.png",
      "username" : "thedude",
      "state" : "active",
      "name" : "Jeff Lebowski",
      "id" : 28
   },
   "created_at" : "2016-01-19T09:44:55.600Z",
   "line_type" : "new",
   "path" : "dudeism.md",
   "line" : 11,
   "note" : "Nice picture man!"
}
```

## Commit status

Since GitLab 8.1, this is the new commit status API.

### Get the status of a commit

Get the statuses of a commit in a project.

```
GET /projects/:id/repository/commits/:sha/statuses
```

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha`     | string  | yes | The commit SHA
| `ref`     | string  | no  | The name of a repository branch or tag or, if not given, the default branch
| `stage`   | string  | no  | Filter by [build stage](../ci/yaml/README.md#stages), e.g., `test`
| `name`    | string  | no  | Filter by [job name](../ci/yaml/README.md#jobs), e.g., `bundler:audit`
| `all`     | boolean | no  | Return all statuses, not only the latest ones

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/17/repository/commits/18f3e63d05582537db6d183d9d557be09e1f90c8/statuses
```

Example response:

```json
[
   ...

   {
      "status" : "pending",
      "created_at" : "2016-01-19T08:40:25.934Z",
      "started_at" : null,
      "name" : "bundler:audit",
      "allow_failure" : true,
      "author" : {
         "username" : "thedude",
         "state" : "active",
         "web_url" : "https://gitlab.example.com/thedude",
         "avatar_url" : "https://gitlab.example.com/uploads/user/avatar/28/The-Big-Lebowski-400-400.png",
         "id" : 28,
         "name" : "Jeff Lebowski"
      },
      "description" : null,
      "sha" : "18f3e63d05582537db6d183d9d557be09e1f90c8",
      "target_url" : "https://gitlab.example.com/thedude/gitlab-ce/builds/91",
      "finished_at" : null,
      "id" : 91,
      "ref" : "master"
   },
   {
      "started_at" : null,
      "name" : "flay",
      "allow_failure" : false,
      "status" : "pending",
      "created_at" : "2016-01-19T08:40:25.832Z",
      "target_url" : "https://gitlab.example.com/thedude/gitlab-ce/builds/90",
      "id" : 90,
      "finished_at" : null,
      "ref" : "master",
      "sha" : "18f3e63d05582537db6d183d9d557be09e1f90c8",
      "author" : {
         "id" : 28,
         "name" : "Jeff Lebowski",
         "username" : "thedude",
         "web_url" : "https://gitlab.example.com/thedude",
         "state" : "active",
         "avatar_url" : "https://gitlab.example.com/uploads/user/avatar/28/The-Big-Lebowski-400-400.png"
      },
      "description" : null
   },

   ...
]
```

### Post the build status to a commit

Adds or updates a build status of a commit.

```
POST /projects/:id/statuses/:sha
```

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id`      | integer/string | yes | The ID or [URL-encoded path of the project](README.md#namespaced-path-encoding) owned by the authenticated user
| `sha`     | string  | yes   | The commit SHA
| `state`   | string  | yes   | The state of the status. Can be one of the following: `pending`, `running`, `success`, `failed`, `canceled`
| `ref`     | string  | no    | The `ref` (branch or tag) to which the status refers
| `name` or `context` | string  | no | The label to differentiate this status from the status of other systems. Default value is `default`
| `target_url` |  string  | no  | The target URL to associate with this status
| `description` | string  | no  | The short description of the status
| `coverage` | float  | no    | The total code coverage

```bash
curl --request POST --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/17/statuses/18f3e63d05582537db6d183d9d557be09e1f90c8?state=success"
```

Example response:

```json
{
   "author" : {
      "web_url" : "https://gitlab.example.com/thedude",
      "name" : "Jeff Lebowski",
      "avatar_url" : "https://gitlab.example.com/uploads/user/avatar/28/The-Big-Lebowski-400-400.png",
      "username" : "thedude",
      "state" : "active",
      "id" : 28
   },
   "name" : "default",
   "sha" : "18f3e63d05582537db6d183d9d557be09e1f90c8",
   "status" : "success",
   "coverage": 100.0,
   "description" : null,
   "id" : 93,
   "target_url" : null,
   "ref" : null,
   "started_at" : null,
   "created_at" : "2016-01-19T09:05:50.355Z",
   "allow_failure" : false,
   "finished_at" : "2016-01-19T09:05:50.365Z"
}
```

[ce-6096]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6096 "Multi-file commit"
[ce-8047]: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/8047


text:
ACCEPTED

#### According to
Index Fungorum

#### Published in
Bull. Soc. R. Bot. Belg. 35: 127 (1896)

#### Original name
Physalospora camptospora Sacc.

### Remarks
null


text:
<!doctype html>

    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portfolio :: Digital Works</title>
    <link rel="stylesheet" href="css/foundation.css">
    <link rel="stylesheet" href="css/app.css">
    <link href="https://fonts.googleapis.com/css?family=Barrio|Josefin+Sans" rel="stylesheet">

Jamie Nguyen

About Me

Portfolio

Contact

WORKS

All

Digital

Traditional

Web Design

© JAMIE NGUYEN 2017


text:
package cn.edu.sjtu.omnilab.tpca.pattern.spmf.BIDE_and_prefixspan;

import cn.edu.sjtu.omnilab.tpca.pattern.spmf.itemset.Itemset;
import cn.edu.sjtu.omnilab.tpca.pattern.spmf.sequence_database.Sequence;

public class PseudoSequence {

	// the corresponding sequence in the original database
	protected Sequence sequence;
	// the first itemset of this pseudo-sequence  in the original sequence
	protected int firstItemset;
	// the first item of this pseudo-sequence in the original sequence
	protected int firstItem;

	/**
	 * Default constructor
	 */
	protected PseudoSequence(){

	}

	/**
	 * Create a pseudo-sequence from a sequence that is a pseudo sequence.
	 * @param sequence the original pseudo-sequence.
	 * @param indexItemset the itemset where the pseudo-sequence should start in terms of the original sequence.
	 * @param indexItem the item where the pseudo-sequence should start in terms of the original sequence.
	 */
	protected PseudoSequence(PseudoSequence sequence, int indexItemset, int indexItem){
		// remember the original sequence
		this.sequence = sequence.sequence;
		// record the position of where the pseudo-sequence starts
		// in terms of the original pseudo-sequence
		this.firstItemset = indexItemset + sequence.firstItemset;
		if(this.firstItemset == sequence.firstItemset){
			this.firstItem = indexItem + sequence.firstItem;
		}else{
			this.firstItem = indexItem;
		}
	}

	/**
	 * Create a pseudo-sequence from a sequence that is an original sequence.
	 * @param sequence the original sequence.
	 * @param indexItemset the itemset where the pseudo-sequence should start in terms of the original sequence.
	 * @param indexItem the item where the pseudo-sequence should start in terms of the original sequence.
	 */
	protected  PseudoSequence(Sequence sequence, int indexItemset, int indexItem){
		// remember the original sequence
		this.sequence = sequence;
		// remember the starting position of this pseudo-sequence in terms
		// of the original sequence.
		this.firstItemset = indexItemset;
		this.firstItem = indexItem;
	}

	/**
	 * Return the size of this pseudo-sequence in terms of itemsets.
	 * @return the size.
	 */
	protected int size() {
		// the size is the size of the original sequence minus
		// the itemset where this pseudo-sequence start
		int size = sequence.size() - firstItemset;
		// if the size is 1 and it the only itemset is empty, return 0
		if(size == 1 && sequence.getItemsets().get(firstItemset).size() == 0){
			return 0;
		}
		// return the size
		return size;
	}

	/**
	 * Return the size in terms of items of an itemset at a given position
	 * (overloaded).
	 * @param index the position of the itemset
	 * @return the number of items in that itemset
	 */
	protected int getSizeOfItemsetAt(int index) {
		// We obtain the size of the itemset by looking at the original
		// sequence. To obtain the position of the itemset we do
		//   index + firstItemset.
		int size = sequence.getItemsets().get(index + firstItemset).size();
		// if it is the first itemset of the pseudo-sequence
		if(isFirstItemset(index)){
			// we remove some items if this itemset is cut at left.
			size -=  firstItem;
		}
		return size; // return the size
	}

	/**
	 * Return true if this itemset is cut at left (a postfix).
	 * @param indexItemset the position of the given itemset.
	 * @return true if it is cut at left.
	 */
	protected boolean isPostfix(int indexItemset) {
		// if it is the first itemset of the pseudo-sequence
		// and it is cut at left, we return true.
		return indexItemset == 0  && firstItem !=0;
	}

	/**
	 * Method to check if an itemset is the first one of a pseudo-sequence
	 * @param index  the position of an itemset
	 * @return true if it is the first one.
	 */
	protected boolean isFirstItemset(int index) {
		return index == 0;
	}

	/**
	 * Method to check if an itemset is the last one of a pseudo-sequence
	 * @param index  the position of an itemset
	 * @return true if it is the last one.
	 */
	protected boolean isLastItemset(int index) {
		return (index + firstItemset) == sequence.getItemsets().size() -1;
	}

	/**
	 * Get an item at a given position inside a given itemset
	 * @param indexItem the position of the item
	 * @param indexItemset the position of the itemset
	 * @return the item.
	 */
	protected Integer getItemAtInItemsetAt(int indexItem, int indexItemset) {
		// if it is in the first itemset
		if(isFirstItemset(indexItemset)){
			// we need to consider if the itemset was cut at the left
			// by adding "firstItem"
			return getItemset(indexItemset).get(indexItem + firstItem);
		}else{// otherwise
			return getItemset(indexItemset).get(indexItem);
		}
	}

	/**
	 * Get the itemset at a given position
	 * @param index the position of the itemset
	 * @return the itemset
	 */
	protected Itemset getItemset(int index) {
		return sequence.get(index+firstItemset);
	}

	/**
	 * Get the sequence ID of this sequence.
	 * @return a sequence ID (integer)
	 */
	protected int getId() {
		return sequence.getId();
	}

	/**
	 * Print this pseudo-sequence to System.out.
	 */
	public void print() {
		System.out.print(toString());
	}

	/**
	 * Get a string representation of this sequence.
	 */
	public String toString() {
		StringBuffer r = new StringBuffer();
		// for each itemset
		for(int i=0; i < size(); i++){
			// for each item
			for(int j=0; j < getSizeOfItemsetAt(i); j++){
				/* Original:
				 if(!isLastItemset(i) ){
					// append the item
					r.append(getItemAtInItemsetAt(j, i).toString());
					// if it is in a postfix, we add a "*" symbol beside the item
					if(isPostfix(i)){
						r.append('*');
					}
					r.append(' ');
				} */

				r.append(getItemAtInItemsetAt(j, i).toString());
				if(isPostfix(i)){
					r.append('*');
				}
				r.append(' ');

			}
			r.append(" -1 "); // end of an itemset
		}
		r.append(" -2 ");
		// return the string
		return r.toString();
	}

	/**
	 * Get the position of an item inside an itemset.
	 * @param indexItemset the given itemset position
	 * @param idItem the item that we want to search.
	 * @return the position of the item or -1 if it is not found
	 */
	protected int indexOf(int indexItemset, int idItem) {
		// for each item in that itemset
		for(int i=0; i < getSizeOfItemsetAt(indexItemset); i++){
			// check if equals to the item that we search
			if(getItemAtInItemsetAt(i, indexItemset) == idItem){
				return i; // if equal, return the current position
			}
		}
		return -1; // not found, return -1.
	}

	//***********************************************
	//  Modified by chenxm, 17/5/13
	//***********************************************

	/**
	 * Check if an item inside an itemset is postfix related to the given oldPrefix
	 * This method is to decide the item flag when finding frequent items
	 * without generating additional sequences.
	 * If itemset was cut by projection, this method return the same result with isPostfix().
	 * Otherwise, it will check if the itemset contains the last itemset of oldPrefix.
	 * @param indexItemset The index of itemset inside a sequence
	 * @param indexItem The index of an item inside an itemset
	 * @param oldPrefix The previous prefix.
	 * @return boolean flag
	 */
	protected boolean isPostfixOfOldPrefix(int indexItemset, int indexItem, SequentialPattern oldPrefix){
		// first perform check with isPostfix() method.
		if ( this.isPostfix(indexItemset) )
				return true;
		// get last itemset of oldPrefix
		Itemset prefixLastItemset = oldPrefix.getItemsets().get(oldPrefix.size()-1);
		//
		Itemset cloneItemset = new Itemset();
		for ( int i = 0; i < indexItem; i++ ){
			cloneItemset.addItem(this.getItemset(indexItemset).get(i));
		}
		if (cloneItemset.containsAll(prefixLastItemset))
			return true;
		return false;
	}

	//***********************************************
	//  Modified by chenxm, 17/5/13
	//***********************************************
}


text:
#pragma once
#include <aws/migrationhub-config/MigrationHubConfig_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>

namespace Aws
{
namespace Utils
{
namespace Json
{
  class JsonValue;
  class JsonView;
} // namespace Json
} // namespace Utils
namespace MigrationHubConfig
{
namespace Model
{

  /**
   *
The request was denied due to request throttling.

See Also:

   * AWS
   * API Reference

   */
  class AWS_MIGRATIONHUBCONFIG_API ThrottlingException
  {
  public:
    ThrottlingException();
    ThrottlingException(Aws::Utils::Json::JsonView jsonValue);
    ThrottlingException& operator=(Aws::Utils::Json::JsonView jsonValue);
    Aws::Utils::Json::JsonValue Jsonize() const;

    inline const Aws::String& GetMessage() const{ return m_message; }

    inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }

    inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }

    inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }

    inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }

    inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}

    inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}

    inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;}

    /**
     *
The number of seconds the caller should wait before retrying.

     */
    inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; }

    /**
     *
The number of seconds the caller should wait before retrying.

     */
    inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; }

    /**
     *
The number of seconds the caller should wait before retrying.

     */
    inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; }

    /**
     *
The number of seconds the caller should wait before retrying.

     */
    inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;}

  private:

    Aws::String m_message;
    bool m_messageHasBeenSet = false;

    int m_retryAfterSeconds;
    bool m_retryAfterSecondsHasBeenSet = false;
  };

} // namespace Model
} // namespace MigrationHubConfig
} // namespace Aws


text:
from oscar.apps.checkout import app
from sandbox.apps.checkout import views

class CheckoutApplication(app.CheckoutApplication):
    # Specify new view for payment details
    payment_method_view = views.PaymentMethodView
    payment_details_view = views.PaymentDetailsView

application = CheckoutApplication()


text:
package com.xiaomi.smarthome.common.plug.utils;

import android.app.admin.DevicePolicyManager;
import android.content.ComponentName;
import android.content.SharedPreferences;
import android.os.Build;
import android.provider.MediaStore.MediaColumns;
import android.view.View;

import java.lang.reflect.Field;

public class ApiHelper {
    public static interface VERSION_CODES {
        // These value are copied from Build.VERSION_CODES
        public static final int FROYO = 8;
        public static final int GINGERBREAD = 9;
        public static final int GINGERBREAD_MR1 = 10;
        public static final int HONEYCOMB = 11;
        public static final int HONEYCOMB_MR1 = 12;
        public static final int HONEYCOMB_MR2 = 13;
        public static final int ICE_CREAM_SANDWICH = 14;
        public static final int ICE_CREAM_SANDWICH_MR1 = 15;
        public static final int JELLY_BEAN = 16;
        public static final int JELLY_BEAN_MR1 = 17;
    }

    public static final boolean HAS_ANDROID_ANIMATION =
            Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;

            public static final boolean HAS_NOTIFICATION_BUILDER = Build.VERSION.SDK_INT > VERSION_CODES.GINGERBREAD_MR1;

    public static final boolean HAS_ANDROID_CLEAR_TASK =
            Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB;

    public static final boolean HAS_NEW_DISPLAY =
            Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR2;

    public static final boolean HAS_VIEW_SYSTEM_UI_FLAG_LAYOUT_STABLE =
            Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN && hasField(View.class,
                    "SYSTEM_UI_FLAG_LAYOUT_STABLE");

    public static final boolean HAS_VIEW_SYSTEM_UI_FLAG_HIDE_NAVIGATION =
            Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH ? hasField(
                    MediaColumns.class, "WIDTH") : false;

    public static final boolean HAS_SET_DEFALT_BUFFER_SIZE =
            Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1 ? hasMethod(
                    "android.graphics.SurfaceTexture", "setDefaultBufferSize",
                    int.class, int.class) : false;

    public static final boolean HAS_RELEASE_SURFACE_TEXTURE =
            Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH ? hasMethod(
                    "android.graphics.SurfaceTexture", "release") : false;

    public static final boolean HAS_SET_SYSTEM_UI_VISIBILITY = Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB ? hasMethod(
            View.class, "setSystemUiVisibility", int.class) : false;

    public static final boolean HAS_EDITOR_APPLY = Build.VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD ? hasMethod(
            SharedPreferences.Editor.class, "apply", (Class<?>[]) null) : false;

    public static final boolean HAS_GET_CAMERA_DISABLED = Build.VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH ?
            hasMethod(DevicePolicyManager.class, "getCameraDisabled", ComponentName.class)
            : false;

    public static final boolean HAS_MULTICORE_CHIPS =
            Runtime.getRuntime().availableProcessors() > 1; // 只是判断当前可用cpu个数,目前够用;后期有需要可以读取配置信息

    public static int getIntFieldIfExists(Class<?> klass, String fieldName,
            Class<?> obj, int defaultVal) {
        try {
            Field f = klass.getDeclaredField(fieldName);
            return f.getInt(obj);
        } catch (Exception e) {
            return defaultVal;
        }
    }

    private static boolean hasField(Class<?> klass, String fieldName) {
        try {
            klass.getDeclaredField(fieldName);
            return true;
        } catch (NoSuchFieldException e) {
            return false;
        }
    }

    private static boolean hasMethod(String className, String methodName,
            Class<?>... parameterTypes) {
        try {
            Class<?> klass = Class.forName(className);
            klass.getDeclaredMethod(methodName, parameterTypes);
            return true;
        } catch (Throwable th) {
            return false;
        }
    }

    private static boolean hasMethod(
            Class<?> klass, String methodName, Class<?>... paramTypes) {
        try {
            klass.getDeclaredMethod(methodName, paramTypes);
            return true;
        } catch (NoSuchMethodException e) {
            return false;
        }
    }
}


text:
{% extends "base.html" %}
{% block title %}archives | {{ SITENAME }}{% endblock %}
{% block content %}

Archives

    {% for year, date_year in dates|groupby('date.year')|reverse %}

{{ year }}

            {% for month, articles in date_year|groupby('date.month')|reverse %}

{{ articles[0].date.strftime('%B') }}

                    {% for article in articles %}

{{ article.title }} ({{ article.locale_date }})

                    {% endfor %}

            {% endfor %}

    {% endfor %}
{% endblock %}


text:
"""Cycle GAN."""

from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

# Dependency imports

from tensor2tensor.layers import common_layers
from tensor2tensor.models import transformer_vae
from tensor2tensor.utils import registry
from tensor2tensor.utils import t2t_model

import tensorflow as tf

def reconstruct_loss(x, gt, hparams, reuse=None):
  pred = tf.layers.dense(x, hparams.vocab_size, name="softmax", reuse=reuse)
  xent, w = common_layers.padded_cross_entropy(pred, gt, 0.0)
  return xent / w

def discriminator(x, compress, hparams, name, reuse=None):
  with tf.variable_scope(name, reuse=reuse):
    x = tf.stop_gradient(2 * x) - x  # Reverse gradient.
    if compress:
      x = transformer_vae.compress(x, None, hparams, "compress")
    else:
      x = transformer_vae.residual_conv(x, 1, hparams, "compress_rc")
    y = tf.reduce_mean(x, axis=1)
    return tf.tanh(tf.layers.dense(y, 1, name="reduce"))

def discriminate_loss(x, y, compress, hparams, name):
  with tf.variable_scope(name):
    d1 = discriminator(x, compress, hparams, "discriminator")
    d2 = discriminator(y, compress, hparams, "discriminator", reuse=True)
    dloss = tf.reduce_mean(tf.abs(d1 - d2))
    return - dloss

def split_on_batch(x):
  batch_size = tf.shape(x)[0]
  i = batch_size // 2
  return x[:i, :, :, :], x[i:2*i, :, :, :]

def cycle_gan_internal(inputs, targets, _, hparams):
  """Cycle GAN, main step used for training."""
  with tf.variable_scope("cycle_gan"):
    # Embed inputs and targets.
    inputs_orig, targets_orig = tf.to_int32(inputs), tf.to_int32(targets)
    inputs = common_layers.embedding(
        inputs_orig, hparams.vocab_size, hparams.hidden_size, "embed")
    targets = common_layers.embedding(
        targets_orig, hparams.vocab_size, hparams.hidden_size,
        "embed", reuse=True)

    # Split the batch into input-input and target-target parts.
    inputs1, _ = split_on_batch(inputs)
    _, targets2 = split_on_batch(targets)

    # Define F and G, called inp2tgt and tgt2inp here.
    def inp2tgt(x, reuse=False):
      return transformer_vae.residual_conv(x, 1, hparams, "inp2tgt", reuse)
    def tgt2inp(x, reuse=False):
      return transformer_vae.residual_conv(x, 1, hparams, "tgt2inp", reuse)

    # Input-input part.
    inp1_tgt = inp2tgt(inputs1)
    inp1_back = tgt2inp(inp1_tgt)

    # Target-target part.
    tgt2_inp = tgt2inp(targets2, reuse=True)
    tgt2_back = inp2tgt(tgt2_inp, reuse=True)

    # Reconstruction losses.
    inp1_orig, _ = split_on_batch(inputs_orig)
    _, tgt2_orig = split_on_batch(targets_orig)
    inp1_loss = reconstruct_loss(
        inp1_back, tf.squeeze(inp1_orig, axis=3), hparams)
    tgt2_loss = reconstruct_loss(
        tgt2_back, tf.squeeze(tgt2_orig, axis=3), hparams, reuse=True)

    # Discriminator losses.
    dloss1 = discriminate_loss(inputs1, tgt2_inp, True, hparams, "inp_disc")
    dloss2 = discriminate_loss(targets2, inp1_tgt, True, hparams, "tgt_disc")

    # Reconstruct targets from inputs.
    tgt = inp2tgt(inputs, reuse=True)
    tgt = tf.layers.dense(tgt, hparams.vocab_size, name="softmax", reuse=True)

    # We use the reconstruction only for tracking progress, no gradients here!
    tgt = tf.stop_gradient(tf.expand_dims(tgt, axis=2))

    losses = {"input_input": hparams.cycle_loss_multiplier * inp1_loss,
              "target_target": hparams.cycle_loss_multiplier * tgt2_loss,
              "input_disc": dloss1,
              "target_disc": dloss2}
    return tgt, losses

@registry.register_model
class CycleGAN(t2t_model.T2TModel):

  def model_fn_body(self, features):
    return cycle_gan_internal(
        features["inputs"], features["targets"], features["target_space_id"],
        self._hparams)

@registry.register_hparams
def cycle_gan_small():
  """Set of hyperparameters."""
  hparams = transformer_vae.transformer_ae_small()
  hparams.batch_size = 2048
  hparams.input_modalities = "inputs:symbol:identity"
  hparams.target_modality = "symbol:identity"
  hparams.weight_decay = 3.0
  hparams.learning_rate = 0.05
  hparams.kl_warmup_steps = 5000
  hparams.learning_rate_warmup_steps = 3000
  hparams.add_hparam("vocab_size", 32)  # Vocabulary size, need to set here.
  hparams.add_hparam("cycle_loss_multiplier", 2.0)
  return hparams


text:
from math import log

__all__ = ['fsize_format']

unit_list = list(zip(['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'], [0, 0, 1, 2, 2, 2]))
def fsize_format(num):
    """human readable file size
    from http://stackoverflow.com/questions/1094841/reusable-library-to-get-human-readable-version-of-file-size"""

    if num == 0:
        return '0 bytes'
    if num == 1:
        return '1 byte'

    exponent = min(int(log(num, 1024)), len(unit_list) - 1)
    quotient = float(num) / 1024**exponent
    unit, num_decimals = unit_list[exponent]
    format_string = '{:.%sf} {}' % (num_decimals)
    return format_string.format(quotient, unit)


text:
require 'rbvmomi'
require_relative 'vmonkey/version'
require_relative 'vmonkey/vim/vim'

monkey_vim = File.join(File.dirname(__FILE__), 'vmonkey', 'vim')
RbVmomi::VIM.add_extension_dir monkey_vim

module VMonkey
  def self.connect(opts = nil)
    RbVmomi::VIM.monkey_connect(opts)
  end

  def self.default_opts
    RbVmomi::VIM.default_opts
  end
end

module VMonkey
  def self.string_parent(s)
    p = s.split('/')[0...-1].join('/')
    p == '' ? '/' : p
  end

  def self.string_basename(s)
    p = s.split('/').last
  end

  if '1' == RUBY_VERSION.split('.')[0]
    class ::String
      def parent
        VMonkey::string_parent(self)
      end

      def basename
        VMonkey::string_basename(self)
      end
    end
  else
    refine String do
      def parent
        VMonkey::string_parent(self)
      end

      def basename
        VMonkey::string_basename(self)
      end
    end
  end
end

class RbVmomi::BasicTypes::ManagedObject
  def monkey
    _connection
  end
end


text:
#include "stdafx.h"

#include "MipModels.h"
#include "mscl/Utils.h"

#include<math.h>

namespace mscl
{
    bool MipModels::modelNumbersEqual(MipModels::ModelNumber model1, MipModels::ModelNumber model2)
    {
        uint32 m1 = static_cast<uint32>(model1);
        uint32 m2 = static_cast<uint32>(model2);

        // if values exactly equal return true
        if (m1 == m2)
        {
            return true;
        }

        // if first part equal...
        if (m1 / MODIFIER_MULTIPLIER == m2 / MODIFIER_MULTIPLIER)
        {
            // if either second part is placeholder (9999) return true
            if (m1 % MODIFIER_MULTIPLIER == MipModels::Modifier::placeholder_matchAll)
            {
                return true;
            }

            if (m2 % MODIFIER_MULTIPLIER == MipModels::Modifier::placeholder_matchAll)
            {
                return true;
            }
        }

        return false;
    }

    MipModels::ModelNumber MipModels::modelNumberFromStr(const std::string& modelNumberString)
    {
        return modelNumberFromParts(nodeModelFromStr(modelNumberString), static_cast<Modifier>(modifierFromStr(modelNumberString)));
    }

    MipModels::ModelNumber MipModels::modelNumberFromParts(MipModels::NodeModel nodeModel, MipModels::Modifier modifier)
    {
        return static_cast<ModelNumber>((nodeModel * MODIFIER_MULTIPLIER) + modifier);
    }

    MipModels::NodeModel MipModels::nodeModelFromStr(const std::string& modelNumberString)
    {
        //get model number string
        std::string modelStr = modelNumberString;
        Utils::strTrim(modelStr);
        modelStr = modelStr.substr(0, MODEL_NUM_LEN);

        uint32 model = 0;
        try
        {
            //convert the string to an integer
            model = static_cast<uint32>(std::stoi(modelStr));
        }
        catch (...)
        {
            model = 0;
        }

        return static_cast<NodeModel>(model);
    }

    uint32 MipModels::modifierFromStr(const std::string& modelNumberString)
    {
        //get modifier string
        std::string modifierStr = modelNumberString;
        Utils::strTrim(modifierStr);
        modifierStr = modifierStr.substr(MODIFIER_START);

        uint32 modifier = 0;
        try
        {
            // convert string to integer
            modifier = static_cast<uint32>(std::stoi(modifierStr));
        }
        catch (...)
        {
            modifier = 0;
        }

        return modifier;
    }

    MipModels::NodeModel MipModels::nodeModelFromModelNumber(MipModels::ModelNumber modelNumber)
    {
        return static_cast<NodeModel>(modelNumber / MODIFIER_MULTIPLIER);
    }

    uint32 MipModels::modifierFromModelNumber(MipModels::ModelNumber modelNumber)
    {
        return static_cast<uint32>(modelNumber) % MODIFIER_MULTIPLIER;
    }

    std::string MipModels::stringFromModelNumber(MipModels::ModelNumber modelNumber)
    {
        uint32 model = nodeModelFromModelNumber(modelNumber);
        uint32 modifier = modifierFromModelNumber(modelNumber);
        std::stringstream str;
        str << std::setfill('0') << std::setw(4) << model
            << "-"
            << std::setfill('0') << std::setw(4) << modifier;

        return str.str();
    }

    bool operator==(MipModels::ModelNumber model1, const MipModel& model2)
    {
        return MipModels::modelNumbersEqual(model1, model2.modelNumber());
    }

    bool operator!=(MipModels::ModelNumber model1, const MipModel& model2)
    {
        return !MipModels::modelNumbersEqual(model1, model2.modelNumber());
    }

    const MipModel MipModel::mip_model_none("0000-0000");   //undefined placeholder
    const MipModel MipModel::mip_model_3dm_dh3(MipModels::ModelNumber::model_3dm_dh3);        //3DM-DH3
    const MipModel MipModel::mip_model_3dm_gx3_15(MipModels::ModelNumber::model_3dm_gx3_15);     //3DM-GX3-15
    const MipModel MipModel::mip_model_3dm_gx3_25(MipModels::ModelNumber::model_3dm_gx3_25);     //3DM-GX3-25
    const MipModel MipModel::mip_model_3dm_gx3_35(MipModels::ModelNumber::model_3dm_gx3_35);     //3DM-GX3-35
    const MipModel MipModel::mip_model_3dm_gx3_45(MipModels::ModelNumber::model_3dm_gx3_45);     //3DM-GX3-45
    const MipModel MipModel::mip_model_3dm_rq1_45_lt(MipModels::ModelNumber::model_3dm_rq1_45_lt);  //3DM-RQ1-45-LT
    const MipModel MipModel::mip_model_3dm_rq1_45_st(MipModels::ModelNumber::model_3dm_rq1_45_st);  //3DM-RQ1-45-ST
    const MipModel MipModel::mip_model_3dm_gx4_15(MipModels::ModelNumber::model_3dm_gx4_15);     //3DM-GX4-15
    const MipModel MipModel::mip_model_3dm_gx4_25(MipModels::ModelNumber::model_3dm_gx4_25);     //3DM-GX4-25
    const MipModel MipModel::mip_model_3dm_gx4_45(MipModels::ModelNumber::model_3dm_gx4_45);     //3DM-GX4-45
    const MipModel MipModel::mip_model_mv5_ar(MipModels::ModelNumber::model_mv5_ar);         //MV5-AR
    const MipModel MipModel::mip_model_3dm_gx5_10(MipModels::ModelNumber::model_3dm_gx5_10);     //3DM-GX5-10
    const MipModel MipModel::mip_model_3dm_gx5_15(MipModels::ModelNumber::model_3dm_gx5_15);     //3DM-GX5-15
    const MipModel MipModel::mip_model_3dm_gx5_25(MipModels::ModelNumber::model_3dm_gx5_25);     //3DM-GX5-25
    const MipModel MipModel::mip_model_3dm_gx5_35(MipModels::ModelNumber::model_3dm_gx5_35);     //3DM-GX5-35
    const MipModel MipModel::mip_model_3dm_gx5_45(MipModels::ModelNumber::model_3dm_gx5_45);     //3DM-GX5-45
    const MipModel MipModel::mip_model_3dm_cv5_10(MipModels::ModelNumber::model_3dm_cv5_10);     //3DM-CV5-10
    const MipModel MipModel::mip_model_3dm_cv5_15(MipModels::ModelNumber::model_3dm_cv5_15);     //3DM-CV5-15
    const MipModel MipModel::mip_model_3dm_cv5_25(MipModels::ModelNumber::model_3dm_cv5_25);     //3DM-CV5-25
    const MipModel MipModel::mip_model_3dm_cv5_45(MipModels::ModelNumber::model_3dm_cv5_45);     //3DM-CV5-45
    const MipModel MipModel::mip_model_3dm_gq4_45(MipModels::ModelNumber::model_3dm_gq4_45);     //3DM-GQ4-45
    const MipModel MipModel::mip_model_3dm_cx5_45(MipModels::ModelNumber::model_3dm_cx5_45);     //3DM-CX5-45
    const MipModel MipModel::mip_model_3dm_cx5_35(MipModels::ModelNumber::model_3dm_cx5_35);     //3DM-CX5-35
    const MipModel MipModel::mip_model_3dm_cx5_25(MipModels::ModelNumber::model_3dm_cx5_25);     //3DM-CX5-25
    const MipModel MipModel::mip_model_3dm_cx5_15(MipModels::ModelNumber::model_3dm_cx5_15);     //3DM-CX5-15
    const MipModel MipModel::mip_model_3dm_cx5_10(MipModels::ModelNumber::model_3dm_cx5_10);     //3DM-CX5-10
    const MipModel MipModel::mip_model_3dm_cl5_15(MipModels::ModelNumber::model_3dm_cl5_15);     //3DM-CL5-15
    const MipModel MipModel::mip_model_3dm_cl5_25(MipModels::ModelNumber::model_3dm_cl5_25);     //3DM-CL5-25
    const MipModel MipModel::mip_model_3dm_gq7(MipModels::ModelNumber::model_3dm_gq7);        //3DM-GQ7
    const MipModel MipModel::mip_model_3dm_rtk_v1(MipModels::ModelNumber::model_3dm_rtk_v1);     //3DM-RTK v1
    const MipModel MipModel::mip_model_3dm_rtk(MipModels::ModelNumber::model_3dm_rtk);        //3DM-RTK
    const MipModel MipModel::mip_model_3dm_cv7_ahrs(MipModels::ModelNumber::model_3dm_cv7_ahrs);        //3DM-CV7-AHRS
    const MipModel MipModel::mip_model_3dm_cv7_ar(MipModels::ModelNumber::model_3dm_cv7_ar);        //3DM-CV7-AR

    MipModel::MipModel() :
        m_modelStr(""),
        m_first(0),
        m_second(0)
    {}

    MipModel::MipModel(const std::string& modelNumberStr) :
        m_first(MipModels::nodeModelFromStr(modelNumberStr)),
        m_second(MipModels::modifierFromStr(modelNumberStr))
    {
        m_modelStr = modelNumberStr;
        Utils::strTrim(m_modelStr);
    }

    MipModel::MipModel(const MipModel& copy) :
        m_modelStr(copy.str()),
        m_first(copy.nodeModel()),
        m_second(copy.modifier())
    {}

#ifndef SWIG
    MipModel::MipModel(MipModels::ModelNumber modelNumber) :
        m_first(MipModels::nodeModelFromModelNumber(modelNumber)),
        m_second(MipModels::modifierFromModelNumber(modelNumber)),
        m_modelStr(MipModels::stringFromModelNumber(modelNumber))
    {}
#endif

    bool MipModel::operator==(const MipModel& compare) const
    {
        return equals(compare);
    }

    bool MipModel::operator!=(const MipModel& compare) const
    {
        return !equals(compare);
    }

    bool MipModel::operator==(const MipModels::ModelNumber& compare) const
    {
        return MipModels::modelNumbersEqual(modelNumber(), compare);
    }

    bool MipModel::operator!=(const MipModels::ModelNumber& compare) const
    {
        return !MipModels::modelNumbersEqual(modelNumber(), compare);
    }

    MipModel::operator std::string() const
    {
        return str();
    }

    bool MipModel::equals(const MipModel& compare) const
    {
        return MipModels::modelNumbersEqual(compare.modelNumber(), modelNumber());
    }

    MipModels::ModelNumber MipModel::modelNumber() const
    {
        return MipModels::modelNumberFromParts(
            static_cast<MipModels::NodeModel>(m_first),
            static_cast<MipModels::Modifier>(m_second));
    }

    std::map<uint32, const MipModel&> MipModel::BASE_MODEL_MAP = {};

    const MipModel& MipModel::baseModelLookup(const MipModel& model)
    {
        uint32 modelInt = static_cast<uint32>(model.modelNumber());
        if (BASE_MODEL_MAP.find(modelInt) == BASE_MODEL_MAP.end())
        {
            return model;
        }

        return BASE_MODEL_MAP.at(modelInt);
    }
}


text:
package com.izettle.cart;

import java.math.BigDecimal;

/**
 * An object that can be added to a cart's list of discounts
 * @param <T> The type of the discount itself
 */
public interface Discount<T> {

    /**
     * The quantity, or the number of units that this discount represents
     * @return the quantity, cannot be null
     */
    BigDecimal getQuantity();

    /**
     * The amount that this discount affects is target with
     * @return The amount, can be null if the percentage is not
     */
    Long getAmount();

    /**
     * The percentage that this discount affects is target with. The actual effect will depend on properties on the
     * target, such as it's gross amount
     * @return The percentage, can be null if the amount is not
     */
    Double getPercentage();

    /**
     * Utility method that subclasses need to implement. Inverse here, means the concept of negating the discount, which
     * would normally be done by cloning it's own fields, but negating the sign on the quantity. Used for situations
     * such as full returns.
     * @return the inversed Discount
     */
    T inverse();
}


text:
#if !__has_feature(objc_arc)
#error This file must be compiled with ARC. Use -fobjc-arc flag (or convert project to ARC).
#endif

#import "FRConsoleLog.h"
#import "FRConstants.h"
#import "FRApplication.h"

#import <asl.h>
#import <unistd.h>

// Uncomment the below line if you want to include only console logs from this app, not all apps
//#define FR_CONSOLELOG_APP_ONLY

#define FR_CONSOLELOG_TIME 0
#define FR_CONSOLELOG_TEXT 1
#define FR_CONSOLELOG_SENDER 2

NS_ASSUME_NONNULL_BEGIN

@implementation FRConsoleLog

+ (NSString *) logSince:(NSDate *)since maxSize:(NSInteger)maxSize
{
    NSUInteger consoleOutputLength = 0;
    NSUInteger rawConsoleLinesCapacity = 100;
    NSUInteger consoleLinesProcessed = 0;

    char ***rawConsoleLines = malloc(rawConsoleLinesCapacity * sizeof(char **));
    NSMutableString *consoleString = [[NSMutableString alloc] init];
    NSMutableArray *consoleLines = [[NSMutableArray alloc] init];

    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateStyle:NSDateFormatterMediumStyle];
    [dateFormatter setTimeStyle:NSDateFormatterMediumStyle];

	// ASL does not work in App Sandbox, even read-only. <rdar://problem/9689364>
	// Workaround is to use:
	//   com.apple.security.temporary-exception.files.absolute-path.read-only
	// for:
	//   /private/var/log/asl/
	aslmsg query = asl_new(ASL_TYPE_QUERY);

    if (query != NULL) {

        NSString *sinceString = [NSString stringWithFormat:@"%01f", [since timeIntervalSince1970]];
        asl_set_query(query, ASL_KEY_TIME, [sinceString UTF8String], ASL_QUERY_OP_GREATER_EQUAL);
        // Prevent premature garbage collection (UTF8String returns an inner pointer).
        [sinceString self];

#ifdef FR_CONSOLELOG_APP_ONLY
        NSString *applicationName = [FRApplication applicationName];
        asl_set_query(query, ASL_KEY_SENDER, [applicationName UTF8String], ASL_QUERY_OP_EQUAL);
        // Prevent premature garbage collection (UTF8String returns an inner pointer).
        [applicationName self];
#endif

        // This function is very slow. <rdar://problem/7695589>
        aslresponse response = asl_search(NULL, query);

        asl_free(query);

        // Loop through the query response, grabbing the results into a local store for processing
        if (response != NULL) {

            aslmsg msg = NULL;

            while (NULL != (msg = asl_next(response))) {

                const char *msgTime = asl_get(msg, ASL_KEY_TIME);

                if (msgTime == NULL) {
                    continue;
                }

                const char *msgText = asl_get(msg, ASL_KEY_MSG);

                if (msgText == NULL) {
                    continue;
                }

                const char *msgSender = asl_get(msg, ASL_KEY_SENDER);

                if (msgSender == NULL) {
                    msgSender = "";
                }

                // Ensure sufficient capacity to store this line in the local cache
                consoleLinesProcessed++;
                if (consoleLinesProcessed > rawConsoleLinesCapacity) {
                    rawConsoleLinesCapacity *= 3;
                    rawConsoleLines = reallocf(rawConsoleLines, rawConsoleLinesCapacity * sizeof(char **));
                }

                // Add a new entry for this console line
                char **rawLineContents = malloc(3 * sizeof(char *));

				size_t length = strlen(msgTime) + 1;
                rawLineContents[FR_CONSOLELOG_TIME] = malloc(length);
                strlcpy(rawLineContents[FR_CONSOLELOG_TIME], msgTime, length);

                length = strlen(msgText) + 1;
				rawLineContents[FR_CONSOLELOG_TEXT] = malloc(length);
                strlcpy(rawLineContents[FR_CONSOLELOG_TEXT], msgText, length);

                length = strlen(msgSender) + 1;
                rawLineContents[FR_CONSOLELOG_SENDER] = malloc(length);
                strlcpy(rawLineContents[FR_CONSOLELOG_SENDER], msgSender, length);

                rawConsoleLines[consoleLinesProcessed-1] = rawLineContents;
            }

            asl_release(response);

            // Loop through the console lines in reverse order, converting to NSStrings
            if (consoleLinesProcessed) {
                for (NSInteger i = consoleLinesProcessed - 1; i >= 0; i--) {
                    char **line = rawConsoleLines[i];
                    NSDate *date = [NSDate dateWithTimeIntervalSince1970:atof(line[FR_CONSOLELOG_TIME])];
                    [consoleLines addObject:[NSString stringWithFormat:@"%@ %s: %s\n", [dateFormatter stringFromDate:date], line[FR_CONSOLELOG_SENDER], line[FR_CONSOLELOG_TEXT]]];

                    // If a maximum size > 0 has been provided, respect it and abort if necessary
                    if (maxSize > 0) {
                        consoleOutputLength += [[consoleLines lastObject] length];
                        if (consoleOutputLength > maxSize) break;
                    }
                }
            }
        }
    }

    // Convert the console lines array to an output string
    if ([consoleLines count]) {
        for (NSInteger i = [consoleLines count] - 1; i >= 0; i--) {
            [consoleString appendString:[consoleLines objectAtIndex:i]];
        }
    }

    // Free data stores
    for (NSUInteger i = 0; i < consoleLinesProcessed; i++) {
        free(rawConsoleLines[i][FR_CONSOLELOG_SENDER]);
        free(rawConsoleLines[i][FR_CONSOLELOG_TEXT]);
        free(rawConsoleLines[i][FR_CONSOLELOG_TIME]);
        free(rawConsoleLines[i]);
    }
    free(rawConsoleLines);

    return consoleString;
}

@end

NS_ASSUME_NONNULL_END


text:
@extends('layouts.app')

@section('template_title')
  Log Information
@endsection

@section('template_linked_css')

  <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css">

@endsection

@section('content')

 Log Files

          @foreach($files as $file)

              {{$file}}
              @if ($current_file == $file)

                  {{ count($logs) }}

              @endif

          @endforeach

        @if ($logs === null)

            Log file >50M, please download it.

        @else

              Level
              Context
              Date
              Content

            @foreach($logs as $key => $log)

                {{$log['level']}}
              {{$log['context']}}
              {{{$log['date']}}}

                @if ($log['stack']) @endif
                {{{$log['text']}}}
                @if (isset($log['in_file']))
{{{$log['in_file']}}}@endif
                @if ($log['stack'])
{{{ trim($log['stack']) }}}
@endif

            @endforeach

        @endif

          @if($current_file)
             Download file
            -
             Delete file
            @if(count($files) > 1)
              -

               Delete all files

            @endif
          @endif

  @include('modals.modal-delete')

@endsection

@section('footer_scripts')

  @include('scripts.datatables')

@endsection


text:
#region Copyright (c) 2015 KEngine / Kelly <http://github.com/mr-kelly>, All rights reserved.

// KEngine - Toolset and framework for Unity3D
// ===================================
//
// Filename: AppEngineInspector.cs
// Date:     2015/12/03
// Author:  Kelly
// Email: 23110388@qq.com
// Github: https://github.com/mr-kelly/KEngine
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 3.0 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library.

#endregion
using System;
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using AppSettings;
using KEngine;
using KEngine.UI;
using KSFramework;

public class Game : KSGame
{
    /// <summary>
    /// Add Your Custom Initable(Coroutine) Modules Here...
    /// </summary>
    /// <returns></returns>
    protected override IList<IModuleInitable> CreateModules()
    {
        var modules = base.CreateModules();

        // TIP: Add Your Custom Module here
        //modules.Add(new Module());

        return modules;
    }

    /// <summary>
    /// Before Init Modules, coroutine
    /// </summary>
    /// <returns></returns>
    public override IEnumerator OnBeforeInit()
    {
        // Do Nothing
        yield break;
    }

    /// <summary>
    /// After Init Modules, coroutine
    /// </summary>
    /// <returns></returns>
    public override IEnumerator OnGameStart()
    {

        // Print AppConfigs
        Log.Info("======================================= Read Settings from C# =================================");
        foreach (GameConfigSetting setting in GameConfigSettings.GetAll())
        {
            Debug.Log(string.Format("C# Read Setting, Key: {0}, Value: {1}", setting.Id, setting.Value));
        }

        yield return null;

        Log.Info("======================================= Open Window 'Login' =================================");
        UIModule.Instance.OpenWindow("Login", 888);

        // Test Load a scene in asset bundle
        SceneLoader.Load("Scene/TestScene/TestScene.unity");

        // 开始加载我们的公告界面!
        //UIModule.Instance.OpenWindow("Billboard");

        // 测试Collect函数,立即回收所有资源
        var path = "ui/billboard.prefab";
        var assetLoader = InstanceAssetLoader.Load(path);
        while (!assetLoader.IsCompleted)
            yield return null;
        var assetLoader2 = InstanceAssetLoader.Load(path);
        while (!assetLoader2.IsCompleted)
            yield return null;
        assetLoader2.Release();
		assetLoader.Release();

        KResourceModule.Collect();
    }

}


text:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Search extends MY_Controller{

	public function __construct(){
		parent::__construct();
	}

	public function index(){
		$pagedata['page_title'] = 'Search';
        $pagedata['page'] = 'Search';

		$pagedata['content'] = 'We Are Makaya';

		$offset = ($this->uri->segment(2)) ? $this->uri->segment(2) : 0;
		$limit = 15;
		$total = count($this->search_query($this->input->post('q'), NULL, NULL));
		$url = base_url('search');

		$pagedata['search'] = $this->search_query($this->input->post('q'), $offset, $limit);
		$pagedata['img_path'] = $this->config->item('image_product_path');

		if($total > $limit){
			$pagedata['pagination'] = $this->_paginate($url, $total, $limit, 2);
		}

        $contentdata['script'] = array('admin', 'search');
        $contentdata['page'] = $this->load->view('page/search_result', $pagedata, TRUE);

        $this->templateLoader($contentdata);
	}

	private function search_query($str, $offset = NULL, $limit = NULL){
		$search = $this->mod_product->search_products($str, $offset, $limit);

		if($search) return $search;
	}
}


text:
_brew_all_formulae() {
  formulae=(`brew search`)
}

_brew_installed_formulae() {
  installed_formulae=(`brew list`)
}

_brew_installed_taps() {
  installed_taps=(`brew tap`)
}

_brew_outdated_formulae() {
  outdated_formulae=(`brew outdated`)
}

local -a _1st_arguments
_1st_arguments=(
  'audit:check formulae for Homebrew coding style'
  'bundle:look for a Brewfile and run each line as a brew command'
  'cat:display formula file for a formula'
  'cleanup:uninstall unused and old versions of packages'
  'commands:show a list of commands'
  'config:show homebrew and system configuration'
  'create:create a new formula'
  'deps:list dependencies and dependants of a formula'
  'doctor:audits your installation for common issues'
  'edit:edit a formula'
  'home:visit the homepage of a formula or the brew project'
  'info:information about a formula'
  'install:install a formula'
  'reinstall:install a formula anew; re-using its current options'
  'link:link a formula'
  'list:list files in a formula or not-installed formulae'
  'log:git commit log for a formula'
  'missing:check all installed formuale for missing dependencies.'
  'outdated:list formulae for which a newer version is available'
  'pin:pin specified formulae'
  'prune:remove dead links'
  'remove:remove a formula'
  'search:search for a formula (/regex/ or string)'
  'switch:switch between different versions of a formula'
  'tap:tap a new formula repository from GitHub, or list existing taps'
  'unlink:unlink a formula'
  'unpin:unpin specified formulae'
  'untap:remove a tapped repository'
  'update:freshen up links'
  'upgrade:upgrade outdated formulae'
  'uses:show formulae which depend on a formula'
)

local expl
local -a formulae installed_formulae installed_taps outdated_formulae

_arguments \
  '(-v)-v[verbose]' \
  '(--cellar)--cellar[brew cellar]' \
  '(--env)--env[brew environment]' \
  '(--repository)--repository[brew repository]' \
  '(--version)--version[version information]' \
  '(--prefix)--prefix[where brew lives on this system]' \
  '(--cache)--cache[brew cache]' \
  '*:: :->subcmds' && return 0

if (( CURRENT == 1 )); then
  _describe -t commands "brew subcommand" _1st_arguments
  return
fi

case "$words[1]" in
  install|reinstall|audit|home|homepage|log|info|abv|uses|cat|deps|edit|options|switch)
    _brew_all_formulae
    _wanted formulae expl 'all formulae' compadd -a formulae ;;
  list|ls)
    _arguments \
      '(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
      '(--pinned)--pinned[list all versions of pinned formulae]' \
      '(--versions)--versions[list all installed versions of a formula]' \
      '1: :->forms' && return 0

      if [[ "$state" == forms ]]; then
        _brew_installed_formulae
        _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae
      fi ;;
  remove|rm|uninstall|unlink|cleanup|link|ln|pin|unpin)
    _brew_installed_formulae
    _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
  search|-S)
    _arguments \
      '(--macports)--macports[search the macports repository]' \
      '(--fink)--fink[search the fink repository]' ;;
  untap)
    _brew_installed_taps
    _wanted installed_taps expl 'installed taps' compadd -a installed_taps ;;
  upgrade)
    _brew_outdated_formulae
    _wanted outdated_formulae expl 'outdated formulae' compadd -a outdated_formulae ;;
esac


text:
/*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008. All Rights Reserved.							  */
/* Open Source Software - may be modified and shared by FRC teams. The code   */
/* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
/*----------------------------------------------------------------------------*/
#pragma once

#include "SensorBase.h"

/**
 * Class implements the PWM generation in the FPGA.
 *
 * The values supplied as arguments for PWM outputs range from -1.0 to 1.0. They are mapped
 * to the hardware dependent values, in this case 0-2000 for the FPGA.
 * Changes are immediately sent to the FPGA, and the update occurs at the next
 * FPGA cycle. There is no delay.
 *
 * As of revision 0.1.10 of the FPGA, the FPGA interprets the 0-2000 values as follows:
 *   - 2000 = maximum pulse width
 *   - 1999 to 1001 = linear scaling from "full forward" to "center"
 *   - 1000 = center value
 *   - 999 to 2 = linear scaling from "center" to "full reverse"
 *   - 1 = minimum pulse width (currently .5ms)
 *   - 0 = disabled (i.e. PWM output is held low)
 */
class PWM : public SensorBase
{
public:
	enum PeriodMultiplier
	{
		kPeriodMultiplier_1X = 1,
		kPeriodMultiplier_2X = 2,
		kPeriodMultiplier_4X = 4
	};

	explicit PWM(uint32_t channel);
	virtual ~PWM();
	virtual void SetRaw(unsigned short value);
	virtual unsigned short GetRaw();
	void SetPeriodMultiplier(PeriodMultiplier mult);
	void SetZeroLatch();
	void EnableDeadbandElimination(bool eliminateDeadband);
	void SetBounds(int32_t max, int32_t deadbandMax, int32_t center, int32_t deadbandMin,
			int32_t min);
	void SetBounds(double max, double deadbandMax, double center, double deadbandMin, double min);
	uint32_t GetChannel()
	{
		return m_channel;
	}

protected:
	/**
	 * kDefaultPwmPeriod is in ms
	 *
	 * - 20ms periods (50 Hz) are the "safest" setting in that this works for all devices
	 * - 20ms periods seem to be desirable for Vex Motors
	 * - 20ms periods are the specified period for HS-322HD servos, but work reliably down
	 *      to 10.0 ms; starting at about 8.5ms, the servo sometimes hums and get hot;
	 *      by 5.0ms the hum is nearly continuous
	 * - 10ms periods work well for Victor 884
	 * - 5ms periods allows higher update rates for Luminary Micro Jaguar speed controllers.
	 *      Due to the shipping firmware on the Jaguar, we can't run the update period less
	 *      than 5.05 ms.
	 *
	 * kDefaultPwmPeriod is the 1x period (5.05 ms).  In hardware, the period scaling is implemented as an
	 * output squelch to get longer periods for old devices.
	 */
	static constexpr float kDefaultPwmPeriod = 5.05;
	/**
	 * kDefaultPwmCenter is the PWM range center in ms
	 */
	static constexpr float kDefaultPwmCenter = 1.5;
	/**
	 * kDefaultPWMStepsDown is the number of PWM steps below the centerpoint
	 */
	static const int32_t kDefaultPwmStepsDown = 1000;
	static const int32_t kPwmDisabled = 0;

	virtual void SetPosition(float pos);
	virtual float GetPosition();
	virtual void SetSpeed(float speed);
	virtual float GetSpeed();

	bool m_eliminateDeadband;
	int32_t m_maxPwm;
	int32_t m_deadbandMaxPwm;
	int32_t m_centerPwm;
	int32_t m_deadbandMinPwm;
	int32_t m_minPwm;

private:
	void InitPWM(uint32_t channel);
	uint32_t m_channel;
	int32_t GetMaxPositivePwm()
	{
		return m_maxPwm;
	}
	int32_t GetMinPositivePwm()
	{
		return m_eliminateDeadband ? m_deadbandMaxPwm : m_centerPwm + 1;
	}
	int32_t GetCenterPwm()
	{
		return m_centerPwm;
	}
	int32_t GetMaxNegativePwm()
	{
		return m_eliminateDeadband ? m_deadbandMinPwm : m_centerPwm - 1;
	}
	int32_t GetMinNegativePwm()
	{
		return m_minPwm;
	}
	int32_t GetPositiveScaleFactor()
	{
		return GetMaxPositivePwm() - GetMinPositivePwm();
	} ///< The scale for positive speeds.
	int32_t GetNegativeScaleFactor()
	{
		return GetMaxNegativePwm() - GetMinNegativePwm();
	} ///< The scale for negative speeds.
	int32_t GetFullRangeScaleFactor()
	{
		return GetMaxPositivePwm() - GetMinNegativePwm();
	} ///< The scale for positions.
};


text:
package org.apache.asterix.formats.base;

import java.util.List;

import org.apache.asterix.common.parse.IParseFileSplitsDecl;
import org.apache.asterix.om.functions.IFunctionDescriptor;
import org.apache.asterix.om.types.ARecordType;
import org.apache.asterix.om.types.IAType;
import org.apache.hyracks.algebricks.common.exceptions.AlgebricksException;
import org.apache.hyracks.algebricks.common.utils.Triple;
import org.apache.hyracks.algebricks.core.algebra.base.ILogicalExpression;
import org.apache.hyracks.algebricks.core.algebra.expressions.IAlgebricksConstantValue;
import org.apache.hyracks.algebricks.core.algebra.expressions.IExpressionEvalSizeComputer;
import org.apache.hyracks.algebricks.core.algebra.expressions.IVariableTypeEnvironment;
import org.apache.hyracks.algebricks.core.algebra.expressions.ScalarFunctionCallExpression;
import org.apache.hyracks.algebricks.data.IBinaryBooleanInspectorFactory;
import org.apache.hyracks.algebricks.data.IBinaryComparatorFactoryProvider;
import org.apache.hyracks.algebricks.data.IBinaryHashFunctionFactoryProvider;
import org.apache.hyracks.algebricks.data.IBinaryHashFunctionFamilyProvider;
import org.apache.hyracks.algebricks.data.IBinaryIntegerInspectorFactory;
import org.apache.hyracks.algebricks.data.INormalizedKeyComputerFactoryProvider;
import org.apache.hyracks.algebricks.data.IPrinterFactoryProvider;
import org.apache.hyracks.algebricks.data.ISerializerDeserializerProvider;
import org.apache.hyracks.algebricks.data.ITypeTraitProvider;
import org.apache.hyracks.algebricks.runtime.base.ICopyEvaluatorFactory;
import org.apache.hyracks.api.dataflow.value.INullWriterFactory;
import org.apache.hyracks.api.dataflow.value.IPredicateEvaluatorFactoryProvider;
import org.apache.hyracks.dataflow.std.file.ITupleParserFactory;

public interface IDataFormat {
    public void registerRuntimeFunctions() throws AlgebricksException;

    public ISerializerDeserializerProvider getSerdeProvider();

    public IBinaryHashFunctionFactoryProvider getBinaryHashFunctionFactoryProvider();

    public IBinaryComparatorFactoryProvider getBinaryComparatorFactoryProvider();

    public ITypeTraitProvider getTypeTraitProvider();

    public IBinaryBooleanInspectorFactory getBinaryBooleanInspectorFactory();

    public IBinaryIntegerInspectorFactory getBinaryIntegerInspectorFactory();

    // QQQ Refactor: Make this accept an APIFramework.OutputFormat parameter
    public IPrinterFactoryProvider getADMPrinterFactoryProvider();

    public IPrinterFactoryProvider getLosslessJSONPrinterFactoryProvider();

    public IPrinterFactoryProvider getCSVPrinterFactoryProvider();

    public IPrinterFactoryProvider getCleanJSONPrinterFactoryProvider();

    public INullWriterFactory getNullWriterFactory();

    public Triple<ICopyEvaluatorFactory, ScalarFunctionCallExpression, IAType> partitioningEvaluatorFactory(
            ARecordType recType, List<String> fldName) throws AlgebricksException;

    public ICopyEvaluatorFactory getFieldAccessEvaluatorFactory(ARecordType recType, List<String> fldName, int recordColumn)
            throws AlgebricksException;

    public ITupleParserFactory createTupleParser(ARecordType recType, IParseFileSplitsDecl decl);

    public ITupleParserFactory createTupleParser(ARecordType recType, boolean isDelimited, char delimiter, char quote, boolean hasHeader);

    public IFunctionDescriptor resolveFunction(ILogicalExpression expr, IVariableTypeEnvironment typeEnvironment)
            throws AlgebricksException;

    public ICopyEvaluatorFactory getConstantEvalFactory(IAlgebricksConstantValue value) throws AlgebricksException;

    public ICopyEvaluatorFactory[] createMBRFactory(ARecordType recType, List<String> fldName, int recordColumn,
            int dimension, List<String> filterFieldName) throws AlgebricksException;

    public IExpressionEvalSizeComputer getExpressionEvalSizeComputer();

    public INormalizedKeyComputerFactoryProvider getNormalizedKeyComputerFactoryProvider();

    public IBinaryHashFunctionFamilyProvider getBinaryHashFunctionFamilyProvider();

    public IPredicateEvaluatorFactoryProvider getPredicateEvaluatorFactoryProvider();
}


text:
@interface MsgResponseBody : FBTable

@property (nonatomic, assign)uint8_t status;

@property (nonatomic, strong)NSString *message;

@end


text:
"use strict";

var isNumber = require("./lib/isNumber");
var config = require("./lib/config");
var envs = config.envs;

/**
 * Create new instance.
 * @param {Number} userId
 * @param {String} env
 */
function bm(userId, env) {
  if (!isNumber(userId)) {
    throw new TypeError("typeof User ID have to be number");
  }
  if (envs.indexOf(env) === -1) {
    throw new Error("env have to dev/stage/production");
  }
  this.userId = userId;
  this.env = env;
}

bm.prototype.util = require("./util/");
bm.prototype.scoreGet = require("./score/").get;
bm.prototype.scorePost = require("./score/").post;
bm.prototype.achievementGet = require("./achievement/").get;
bm.prototype.achievementUpdate = require("./achievement/").update;

// In browserify, global is just an alias for the window object.
global.bm = bm;


text:
// ReSharper disable All

namespace OpenTl.Schema
{
	using System;
	using System.Collections;
	using System.Text;

	using OpenTl.Schema;
	using OpenTl.Schema.Serialization.Attributes;

	[Serialize(0x3502758c)]
	public sealed class TReplyKeyboardMarkup : IReplyMarkup
	{
       [SerializationOrder(0)]
       public BitArray Flags {get; set;}

       [SerializationOrder(1)]
       [FromFlag("Flags", 0)]
       public bool Resize {get; set;}

       [SerializationOrder(2)]
       [FromFlag("Flags", 1)]
       public bool SingleUse {get; set;}

       [SerializationOrder(3)]
       [FromFlag("Flags", 2)]
       public bool Selective {get; set;}

       [SerializationOrder(4)]
       public OpenTl.Schema.TVector<OpenTl.Schema.IKeyboardButtonRow> Rows {get; set;}

	}
}


text:
package org.wildfly.common;

/**
 * @deprecated Please use {@link org.wildfly.common.net.HostName} instead.
 */
public final class HostName {

    /**
     * @deprecated Please use {@link org.wildfly.common.net.HostName#getHostName()} instead.
     */
    public static String getHostName() {
        return org.wildfly.common.net.HostName.getHostName();
    }

    /**
     * @deprecated Please use {@link org.wildfly.common.net.HostName#getQualifiedHostName()} instead.
     */
    public static String getQualifiedHostName() {
        return org.wildfly.common.net.HostName.getQualifiedHostName();
    }
}


text:
Ao contribuir para este repositório, por favor primeiro discuta a mudança que deseja realizar por meio de uma *issue*, email, ou qualquer outro método com o proprietário deste repositório antes de realizar a mudança.

Por favor note o [código de conduta](https://github.com/GSimas/EEL7045/blob/master/CODE_OF_CONDUCT.md) do repositório e do Github, siga o que é descrito nele em todas as suas interações com o projeto.

## Processo de Pull Request

1. Assegure que qualquer instalação, arquivos ou dependências não pertinentes ao projeto são removidas antes de demandar um Pull Request.
2. Atualize o arquivo README.md com detalhes sobre mudança, isso inclui novo ambiente, variáveis, localização de arquivos ou outros parâmetros.
3. Aumente o número da versão em quaisquer arquivos que apresentem versionamento e, também, no README.md a qual este Pull Request representa.
4. Você poderá mesclar a Pull Request uma vez que tiver o aval de outro desenvolvedor, ou se você não tem a permissão para fazê-lo, pode requerer a um revisador para fazer por você.

# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

1. Ensure any install or build dependencies are removed before the end of the layer when doing a
   build.
2. Update the README.md with details of changes to the interface, this includes new environment
   variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the README.md to the new version that this
   Pull Request would represent.
4. You may merge the Pull Request in once you have the sign-off of other developer, or if you
   do not have permission to do that, you may request the reviewer to merge it for you.