id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
listlengths 10
314
| cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
|---|---|---|---|---|---|
2,242
|
public boolean addURI(URIish toAdd) {if (uris.contains(toAdd))return false;return uris.add(toAdd);}
|
[
"public",
"boolean",
"addURI",
"(",
"URIish",
"toAdd",
")",
"{",
"if",
"(",
"uris",
".",
"contains",
"(",
"toAdd",
")",
")",
"return",
"false",
";",
"return",
"uris",
".",
"add",
"(",
"toAdd",
")",
";",
"}"
] |
public virtual bool AddURI(URIish toAdd){if (uris.Contains(toAdd)){return false;}return uris.AddItem(toAdd);}
|
train
| false
|
2,243
|
public FileMode getOldMode() {return getOldMode(0);}
|
[
"public",
"FileMode",
"getOldMode",
"(",
")",
"{",
"return",
"getOldMode",
"(",
"0",
")",
";",
"}"
] |
public override FileMode GetOldMode(){return GetOldMode(0);}
|
train
| false
|
2,244
|
public Collection<RemoteRefUpdate> getRemoteUpdates() {return Collections.unmodifiableCollection(remoteUpdates.values());}
|
[
"public",
"Collection",
"<",
"RemoteRefUpdate",
">",
"getRemoteUpdates",
"(",
")",
"{",
"return",
"Collections",
".",
"unmodifiableCollection",
"(",
"remoteUpdates",
".",
"values",
"(",
")",
")",
";",
"}"
] |
public virtual ICollection<RemoteRefUpdate> GetRemoteUpdates(){return Sharpen.Collections.UnmodifiableCollection(remoteUpdates.Values);}
|
train
| false
|
2,245
|
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");String ws = String.valueOf(_wholePart);sb.append(ws.charAt(0));sb.append('.');sb.append(ws.substring(1));sb.append(' ');sb.append(getFractionalDigits());sb.append("E");sb.append(getDecimalExponent());sb.append("]");return sb.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\" [\"",
")",
";",
"String",
"ws",
"=",
"String",
".",
"valueOf",
"(",
"_wholePart",
")",
";",
"sb",
".",
"append",
"(",
"ws",
".",
"charAt",
"(",
"0",
")",
")",
";",
"sb",
".",
"append",
"(",
"'.'",
")",
";",
"sb",
".",
"append",
"(",
"ws",
".",
"substring",
"(",
"1",
")",
")",
";",
"sb",
".",
"append",
"(",
"' '",
")",
";",
"sb",
".",
"append",
"(",
"getFractionalDigits",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\"E\"",
")",
";",
"sb",
".",
"append",
"(",
"getDecimalExponent",
"(",
")",
")",
";",
"sb",
".",
"append",
"(",
"\"]\"",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(" [");String ws = _wholePart.ToString(CultureInfo.InvariantCulture);sb.Append(ws[0]);sb.Append('.');sb.Append(ws.Substring(1));sb.Append(' ');sb.Append(GetFractionalDigits());sb.Append("E");sb.Append(GetDecimalExponent());sb.Append("]");return sb.ToString();}
|
train
| false
|
2,246
|
public CreateCollectionResult createCollection(CreateCollectionRequest request) {request = beforeClientExecution(request);return executeCreateCollection(request);}
|
[
"public",
"CreateCollectionResult",
"createCollection",
"(",
"CreateCollectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateCollection",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateCollectionResponse CreateCollection(CreateCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance;return Invoke<CreateCollectionResponse>(request, options);}
|
train
| true
|
2,247
|
public ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibilityBatch(request);}
|
[
"public",
"ChangeMessageVisibilityBatchResult",
"changeMessageVisibilityBatch",
"(",
"ChangeMessageVisibilityBatchRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeChangeMessageVisibilityBatch",
"(",
"request",
")",
";",
"}"
] |
public virtual ChangeMessageVisibilityBatchResponse ChangeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeMessageVisibilityBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeMessageVisibilityBatchResponseUnmarshaller.Instance;return Invoke<ChangeMessageVisibilityBatchResponse>(request, options);}
|
train
| true
|
2,248
|
public static int[] copyOfRange(int[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);int[] result = new int[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}
|
[
"public",
"static",
"int",
"[",
"]",
"copyOfRange",
"(",
"int",
"[",
"]",
"original",
",",
"int",
"start",
",",
"int",
"end",
")",
"{",
"if",
"(",
"start",
">",
"end",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"int",
"originalLength",
"=",
"original",
".",
"length",
";",
"if",
"(",
"start",
"<",
"0",
"||",
"start",
">",
"originalLength",
")",
"{",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
")",
";",
"}",
"int",
"resultLength",
"=",
"end",
"-",
"start",
";",
"int",
"copyLength",
"=",
"Math",
".",
"min",
"(",
"resultLength",
",",
"originalLength",
"-",
"start",
")",
";",
"int",
"[",
"]",
"result",
"=",
"new",
"int",
"[",
"resultLength",
"]",
";",
"System",
".",
"arraycopy",
"(",
"original",
",",
"start",
",",
"result",
",",
"0",
",",
"copyLength",
")",
";",
"return",
"result",
";",
"}"
] |
public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);int[] result = new int[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
|
train
| true
|
2,249
|
public static void setInstance(SshSessionFactory newFactory) {if (newFactory != null) {INSTANCE = newFactory;} else {INSTANCE = loadSshSessionFactory();}}
|
[
"public",
"static",
"void",
"setInstance",
"(",
"SshSessionFactory",
"newFactory",
")",
"{",
"if",
"(",
"newFactory",
"!=",
"null",
")",
"{",
"INSTANCE",
"=",
"newFactory",
";",
"}",
"else",
"{",
"INSTANCE",
"=",
"loadSshSessionFactory",
"(",
")",
";",
"}",
"}"
] |
public static void SetInstance(SshSessionFactory newFactory){if (newFactory != null){INSTANCE = newFactory;}else{INSTANCE = new DefaultSshSessionFactory();}}
|
train
| false
|
2,250
|
public GetRepoSyncTaskListRequest() {super("cr", "2016-06-07", "GetRepoSyncTaskList", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/syncTasks");setMethod(MethodType.GET);}
|
[
"public",
"GetRepoSyncTaskListRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"GetRepoSyncTaskList\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/syncTasks\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"GET",
")",
";",
"}"
] |
public GetRepoSyncTaskListRequest(): base("cr", "2016-06-07", "GetRepoSyncTaskList", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/syncTasks";Method = MethodType.GET;}
|
train
| false
|
2,251
|
public RunInstancesRequest(String imageId, Integer minCount, Integer maxCount) {setImageId(imageId);setMinCount(minCount);setMaxCount(maxCount);}
|
[
"public",
"RunInstancesRequest",
"(",
"String",
"imageId",
",",
"Integer",
"minCount",
",",
"Integer",
"maxCount",
")",
"{",
"setImageId",
"(",
"imageId",
")",
";",
"setMinCount",
"(",
"minCount",
")",
";",
"setMaxCount",
"(",
"maxCount",
")",
";",
"}"
] |
public RunInstancesRequest(string imageId, int minCount, int maxCount){_imageId = imageId;_minCount = minCount;_maxCount = maxCount;}
|
train
| false
|
2,252
|
public DeleteCodeRepositoryResult deleteCodeRepository(DeleteCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteCodeRepository(request);}
|
[
"public",
"DeleteCodeRepositoryResult",
"deleteCodeRepository",
"(",
"DeleteCodeRepositoryRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteCodeRepository",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteCodeRepositoryResponse DeleteCodeRepository(DeleteCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCodeRepositoryResponseUnmarshaller.Instance;return Invoke<DeleteCodeRepositoryResponse>(request, options);}
|
train
| true
|
2,253
|
public void fill(int fromIndex, int toIndex, long val) {assert fromIndex >= 0;assert fromIndex <= toIndex;assert PackedInts.unsignedBitsRequired(val) <= bitsPerValue;final int valuesPerBlock = 64 / bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1) {super.fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0) {for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i) {set(fromIndex++, val);}assert fromIndex % valuesPerBlock == 0;}final int fromBlock = fromIndex / valuesPerBlock;final int toBlock = toIndex / valuesPerBlock;assert fromBlock * valuesPerBlock == fromIndex;long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i) {blockValue = blockValue | (val << (i * bitsPerValue));}Arrays.fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i) {set(i, val);}}
|
[
"public",
"void",
"fill",
"(",
"int",
"fromIndex",
",",
"int",
"toIndex",
",",
"long",
"val",
")",
"{",
"assert",
"fromIndex",
">=",
"0",
";",
"assert",
"fromIndex",
"<=",
"toIndex",
";",
"assert",
"PackedInts",
".",
"unsignedBitsRequired",
"(",
"val",
")",
"<=",
"bitsPerValue",
";",
"final",
"int",
"valuesPerBlock",
"=",
"64",
"/",
"bitsPerValue",
";",
"if",
"(",
"toIndex",
"-",
"fromIndex",
"<=",
"valuesPerBlock",
"<<",
"1",
")",
"{",
"super",
".",
"fill",
"(",
"fromIndex",
",",
"toIndex",
",",
"val",
")",
";",
"return",
";",
"}",
"int",
"fromOffsetInBlock",
"=",
"fromIndex",
"%",
"valuesPerBlock",
";",
"if",
"(",
"fromOffsetInBlock",
"!=",
"0",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"fromOffsetInBlock",
";",
"i",
"<",
"valuesPerBlock",
";",
"++",
"i",
")",
"{",
"set",
"(",
"fromIndex",
"++",
",",
"val",
")",
";",
"}",
"assert",
"fromIndex",
"%",
"valuesPerBlock",
"==",
"0",
";",
"}",
"final",
"int",
"fromBlock",
"=",
"fromIndex",
"/",
"valuesPerBlock",
";",
"final",
"int",
"toBlock",
"=",
"toIndex",
"/",
"valuesPerBlock",
";",
"assert",
"fromBlock",
"*",
"valuesPerBlock",
"==",
"fromIndex",
";",
"long",
"blockValue",
"=",
"0L",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"valuesPerBlock",
";",
"++",
"i",
")",
"{",
"blockValue",
"=",
"blockValue",
"|",
"(",
"val",
"<<",
"(",
"i",
"*",
"bitsPerValue",
")",
")",
";",
"}",
"Arrays",
".",
"fill",
"(",
"blocks",
",",
"fromBlock",
",",
"toBlock",
",",
"blockValue",
")",
";",
"for",
"(",
"int",
"i",
"=",
"valuesPerBlock",
"*",
"toBlock",
";",
"i",
"<",
"toIndex",
";",
"++",
"i",
")",
"{",
"set",
"(",
"i",
",",
"val",
")",
";",
"}",
"}"
] |
public override void Fill(int fromIndex, int toIndex, long val){Debug.Assert(fromIndex >= 0);Debug.Assert(fromIndex <= toIndex);Debug.Assert(PackedInt32s.BitsRequired(val) <= m_bitsPerValue);int valuesPerBlock = 64 / m_bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1){base.Fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0){for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i){Set(fromIndex++, val);}Debug.Assert(fromIndex % valuesPerBlock == 0);}int fromBlock = fromIndex / valuesPerBlock;int toBlock = toIndex / valuesPerBlock;Debug.Assert(fromBlock * valuesPerBlock == fromIndex);long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i){blockValue = blockValue | (val << (i * m_bitsPerValue));}Arrays.Fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i){Set(i, val);}}
|
train
| false
|
2,254
|
public void close() {str = null;}
|
[
"public",
"void",
"close",
"(",
")",
"{",
"str",
"=",
"null",
";",
"}"
] |
public override void close(){str = null;}
|
train
| false
|
2,255
|
public ListDomainNamesResult listDomainNames() {return listDomainNames(new ListDomainNamesRequest());}
|
[
"public",
"ListDomainNamesResult",
"listDomainNames",
"(",
")",
"{",
"return",
"listDomainNames",
"(",
"new",
"ListDomainNamesRequest",
"(",
")",
")",
";",
"}"
] |
public virtual ListDomainNamesResponse ListDomainNames(){return ListDomainNames(new ListDomainNamesRequest());}
|
train
| false
|
2,256
|
public AbortMultipartUploadRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}
|
[
"public",
"AbortMultipartUploadRequest",
"(",
"String",
"accountId",
",",
"String",
"vaultName",
",",
"String",
"uploadId",
")",
"{",
"setAccountId",
"(",
"accountId",
")",
";",
"setVaultName",
"(",
"vaultName",
")",
";",
"setUploadId",
"(",
"uploadId",
")",
";",
"}"
] |
public AbortMultipartUploadRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}
|
train
| false
|
2,257
|
public RevCommit getNewHead() {return newHead;}
|
[
"public",
"RevCommit",
"getNewHead",
"(",
")",
"{",
"return",
"newHead",
";",
"}"
] |
public virtual RevCommit GetNewHead(){return newHead;}
|
train
| false
|
2,259
|
public UpdateContainerInstancesStateResult updateContainerInstancesState(UpdateContainerInstancesStateRequest request) {request = beforeClientExecution(request);return executeUpdateContainerInstancesState(request);}
|
[
"public",
"UpdateContainerInstancesStateResult",
"updateContainerInstancesState",
"(",
"UpdateContainerInstancesStateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateContainerInstancesState",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateContainerInstancesStateResponse UpdateContainerInstancesState(UpdateContainerInstancesStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContainerInstancesStateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContainerInstancesStateResponseUnmarshaller.Instance;return Invoke<UpdateContainerInstancesStateResponse>(request, options);}
|
train
| true
|
2,260
|
public GetExternalModelsResult getExternalModels(GetExternalModelsRequest request) {request = beforeClientExecution(request);return executeGetExternalModels(request);}
|
[
"public",
"GetExternalModelsResult",
"getExternalModels",
"(",
"GetExternalModelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetExternalModels",
"(",
"request",
")",
";",
"}"
] |
public virtual GetExternalModelsResponse GetExternalModels(GetExternalModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExternalModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExternalModelsResponseUnmarshaller.Instance;return Invoke<GetExternalModelsResponse>(request, options);}
|
train
| false
|
2,261
|
public GetFaceDetectionResult getFaceDetection(GetFaceDetectionRequest request) {request = beforeClientExecution(request);return executeGetFaceDetection(request);}
|
[
"public",
"GetFaceDetectionResult",
"getFaceDetection",
"(",
"GetFaceDetectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetFaceDetection",
"(",
"request",
")",
";",
"}"
] |
public virtual GetFaceDetectionResponse GetFaceDetection(GetFaceDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceDetectionResponseUnmarshaller.Instance;return Invoke<GetFaceDetectionResponse>(request, options);}
|
train
| true
|
2,262
|
public void delete() {synchronized (SnapshotDeletionPolicy.this) {if (!refCounts.containsKey(cp.getGeneration())) {cp.delete();}}}
|
[
"public",
"void",
"delete",
"(",
")",
"{",
"synchronized",
"(",
"SnapshotDeletionPolicy",
".",
"this",
")",
"{",
"if",
"(",
"!",
"refCounts",
".",
"containsKey",
"(",
"cp",
".",
"getGeneration",
"(",
")",
")",
")",
"{",
"cp",
".",
"delete",
"(",
")",
";",
"}",
"}",
"}"
] |
public override void Delete(){lock (outerInstance){if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)){m_cp.Delete();}}}
|
train
| false
|
2,264
|
public Iterator<E> descendingIterator() {return new ReverseLinkIterator<E>(this);}
|
[
"public",
"Iterator",
"<",
"E",
">",
"descendingIterator",
"(",
")",
"{",
"return",
"new",
"ReverseLinkIterator",
"<",
"E",
">",
"(",
"this",
")",
";",
"}"
] |
public virtual java.util.Iterator<E> descendingIterator(){return new java.util.LinkedList<E>.ReverseLinkIterator<E>(this, this);}
|
train
| false
|
2,265
|
public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider) {this.provider = provider;}
|
[
"public",
"CredentialsBackupCompatibilityAdaptor",
"(",
"AlibabaCloudCredentialsProvider",
"provider",
")",
"{",
"this",
".",
"provider",
"=",
"provider",
";",
"}"
] |
public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider){this.provider = provider;}
|
train
| false
|
2,266
|
public DescribeDBClusterSnapshotsResult describeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterSnapshots(request);}
|
[
"public",
"DescribeDBClusterSnapshotsResult",
"describeDBClusterSnapshots",
"(",
"DescribeDBClusterSnapshotsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDBClusterSnapshots",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDBClusterSnapshotsResponse DescribeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterSnapshotsResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterSnapshotsResponse>(request, options);}
|
train
| true
|
2,267
|
public FontRecord getFontRecordAt(int idx) {int index = idx;if (index > 4) {index -= 1; }if (index > (numfonts - 1)) {throw new ArrayIndexOutOfBoundsException("There are only " + numfonts + " font records, but you asked for index " + idx);}return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);}
|
[
"public",
"FontRecord",
"getFontRecordAt",
"(",
"int",
"idx",
")",
"{",
"int",
"index",
"=",
"idx",
";",
"if",
"(",
"index",
">",
"4",
")",
"{",
"index",
"-=",
"1",
";",
"}",
"if",
"(",
"index",
">",
"(",
"numfonts",
"-",
"1",
")",
")",
"{",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"\"There are only \"",
"+",
"numfonts",
"+",
"\" font records, but you asked for index \"",
"+",
"idx",
")",
";",
"}",
"return",
"(",
"FontRecord",
")",
"records",
".",
"get",
"(",
"(",
"records",
".",
"getFontpos",
"(",
")",
"-",
"(",
"numfonts",
"-",
"1",
")",
")",
"+",
"index",
")",
";",
"}"
] |
public FontRecord GetFontRecordAt(int idx){int index = idx;if (index > 4){index -= 1; }if (index > (numfonts - 1)){throw new IndexOutOfRangeException("There are only " + numfonts+ " font records, you asked for " + idx);}FontRecord retval =(FontRecord)records[(records.Fontpos - (numfonts - 1) + index)];return retval;}
|
train
| false
|
2,269
|
public DescribeCustomerGatewaysResult describeCustomerGateways() {return describeCustomerGateways(new DescribeCustomerGatewaysRequest());}
|
[
"public",
"DescribeCustomerGatewaysResult",
"describeCustomerGateways",
"(",
")",
"{",
"return",
"describeCustomerGateways",
"(",
"new",
"DescribeCustomerGatewaysRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeCustomerGatewaysResponse DescribeCustomerGateways(){return DescribeCustomerGateways(new DescribeCustomerGatewaysRequest());}
|
train
| false
|
2,270
|
public CreateSubnetRequest(String vpcId, String cidrBlock) {setVpcId(vpcId);setCidrBlock(cidrBlock);}
|
[
"public",
"CreateSubnetRequest",
"(",
"String",
"vpcId",
",",
"String",
"cidrBlock",
")",
"{",
"setVpcId",
"(",
"vpcId",
")",
";",
"setCidrBlock",
"(",
"cidrBlock",
")",
";",
"}"
] |
public CreateSubnetRequest(string vpcId, string cidrBlock){_vpcId = vpcId;_cidrBlock = cidrBlock;}
|
train
| false
|
2,271
|
public StempelStemmer(Trie stemmer) {this.stemmer = stemmer;}
|
[
"public",
"StempelStemmer",
"(",
"Trie",
"stemmer",
")",
"{",
"this",
".",
"stemmer",
"=",
"stemmer",
";",
"}"
] |
public StempelStemmer(Trie stemmer){this.stemmer = stemmer;}
|
train
| false
|
2,272
|
public NLPNERTaggerOp(TokenNameFinderModel model) {this.nameFinder = new NameFinderME(model);}
|
[
"public",
"NLPNERTaggerOp",
"(",
"TokenNameFinderModel",
"model",
")",
"{",
"this",
".",
"nameFinder",
"=",
"new",
"NameFinderME",
"(",
"model",
")",
";",
"}"
] |
public NLPNERTaggerOp(TokenNameFinderModel model){this.nameFinder = new NameFinderME(model);}
|
train
| false
|
2,273
|
public TreeFilter clone() {return new FollowFilter(path.clone(), cfg);}
|
[
"public",
"TreeFilter",
"clone",
"(",
")",
"{",
"return",
"new",
"FollowFilter",
"(",
"path",
".",
"clone",
"(",
")",
",",
"cfg",
")",
";",
"}"
] |
public override TreeFilter Clone(){return new NGit.Revwalk.FollowFilter(((PathFilter)path.Clone()));}
|
train
| false
|
2,274
|
public QueryAddUserInfoRequest() {super("LinkFace", "2018-07-20", "QueryAddUserInfo");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
|
[
"public",
"QueryAddUserInfoRequest",
"(",
")",
"{",
"super",
"(",
"\"LinkFace\"",
",",
"\"2018-07-20\"",
",",
"\"QueryAddUserInfo\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public QueryAddUserInfoRequest(): base("LinkFace", "2018-07-20", "QueryAddUserInfo"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
train
| false
|
2,275
|
public boolean include(TreeWalk walker) {DirCacheIterator i = walker.getTree(treeIdx, DirCacheIterator.class);if (i == null)return true;DirCacheEntry e = i.getDirCacheEntry();return e == null || !e.isSkipWorkTree();}
|
[
"public",
"boolean",
"include",
"(",
"TreeWalk",
"walker",
")",
"{",
"DirCacheIterator",
"i",
"=",
"walker",
".",
"getTree",
"(",
"treeIdx",
",",
"DirCacheIterator",
".",
"class",
")",
";",
"if",
"(",
"i",
"==",
"null",
")",
"return",
"true",
";",
"DirCacheEntry",
"e",
"=",
"i",
".",
"getDirCacheEntry",
"(",
")",
";",
"return",
"e",
"==",
"null",
"||",
"!",
"e",
".",
"isSkipWorkTree",
"(",
")",
";",
"}"
] |
public override bool Include(TreeWalk walker){DirCacheIterator i = walker.GetTree<DirCacheIterator>(treeIdx);if (i == null){return true;}DirCacheEntry e = i.GetDirCacheEntry();return e == null || !e.IsSkipWorkTree;}
|
train
| false
|
2,276
|
public final CompareResult compareTo(ValueEval other) {if (other == null) {throw new RuntimeException("compare to value cannot be null");}if (_targetClass != other.getClass()) {return CompareResult.TYPE_MISMATCH;}return compareSameType(other);}
|
[
"public",
"final",
"CompareResult",
"compareTo",
"(",
"ValueEval",
"other",
")",
"{",
"if",
"(",
"other",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"compare to value cannot be null\"",
")",
";",
"}",
"if",
"(",
"_targetClass",
"!=",
"other",
".",
"getClass",
"(",
")",
")",
"{",
"return",
"CompareResult",
".",
"TYPE_MISMATCH",
";",
"}",
"return",
"compareSameType",
"(",
"other",
")",
";",
"}"
] |
public CompareResult CompareTo(ValueEval other){if (other == null){throw new Exception("Compare to value cannot be null");}if (_targetType != other.GetType()){return CompareResult.TypeMismatch;}return CompareSameType(other);}
|
train
| false
|
2,277
|
public SegmentReadState(SegmentReadState other,String newSegmentSuffix) {this.directory = other.directory;this.segmentInfo = other.segmentInfo;this.fieldInfos = other.fieldInfos;this.context = other.context;this.segmentSuffix = newSegmentSuffix;}
|
[
"public",
"SegmentReadState",
"(",
"SegmentReadState",
"other",
",",
"String",
"newSegmentSuffix",
")",
"{",
"this",
".",
"directory",
"=",
"other",
".",
"directory",
";",
"this",
".",
"segmentInfo",
"=",
"other",
".",
"segmentInfo",
";",
"this",
".",
"fieldInfos",
"=",
"other",
".",
"fieldInfos",
";",
"this",
".",
"context",
"=",
"other",
".",
"context",
";",
"this",
".",
"segmentSuffix",
"=",
"newSegmentSuffix",
";",
"}"
] |
public SegmentReadState(SegmentReadState other, string newSegmentSuffix){this.Directory = other.Directory;this.SegmentInfo = other.SegmentInfo;this.FieldInfos = other.FieldInfos;this.Context = other.Context;this.TermsIndexDivisor = other.TermsIndexDivisor;this.SegmentSuffix = newSegmentSuffix;}
|
train
| false
|
2,278
|
public void println(Object obj) {println(String.valueOf(obj));}
|
[
"public",
"void",
"println",
"(",
"Object",
"obj",
")",
"{",
"println",
"(",
"String",
".",
"valueOf",
"(",
"obj",
")",
")",
";",
"}"
] |
public virtual void println(object obj){println(Sharpen.StringHelper.GetValueOf(obj));}
|
train
| false
|
2,279
|
public DeleteModelResult deleteModel(DeleteModelRequest request) {request = beforeClientExecution(request);return executeDeleteModel(request);}
|
[
"public",
"DeleteModelResult",
"deleteModel",
"(",
"DeleteModelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteModel",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteModelResponse DeleteModel(DeleteModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelResponseUnmarshaller.Instance;return Invoke<DeleteModelResponse>(request, options);}
|
train
| true
|
2,280
|
public void setFiles(Collection<String> files) {setFiles = new HashSet<>();addFiles(files);}
|
[
"public",
"void",
"setFiles",
"(",
"Collection",
"<",
"String",
">",
"files",
")",
"{",
"setFiles",
"=",
"new",
"HashSet",
"<",
">",
"(",
")",
";",
"addFiles",
"(",
"files",
")",
";",
"}"
] |
public void SetFiles(ISet<string> files){CheckFileNames(files);setFiles = files;}
|
train
| false
|
2,281
|
public void release() {lItr.release();}
|
[
"public",
"void",
"release",
"(",
")",
"{",
"lItr",
".",
"release",
"(",
")",
";",
"}"
] |
public virtual void Release(){reader.Release();}
|
train
| false
|
2,282
|
public FloatBuffer asReadOnlyBuffer() {return duplicate();}
|
[
"public",
"FloatBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"duplicate",
"(",
")",
";",
"}"
] |
public override java.nio.FloatBuffer asReadOnlyBuffer(){return duplicate();}
|
train
| false
|
2,283
|
public int get(int key, int valueIfKeyNotFound) {int i = binarySearch(mKeys, 0, mSize, key);if (i < 0) {return valueIfKeyNotFound;} else {return mValues[i];}}
|
[
"public",
"int",
"get",
"(",
"int",
"key",
",",
"int",
"valueIfKeyNotFound",
")",
"{",
"int",
"i",
"=",
"binarySearch",
"(",
"mKeys",
",",
"0",
",",
"mSize",
",",
"key",
")",
";",
"if",
"(",
"i",
"<",
"0",
")",
"{",
"return",
"valueIfKeyNotFound",
";",
"}",
"else",
"{",
"return",
"mValues",
"[",
"i",
"]",
";",
"}",
"}"
] |
public virtual int get(int key, int valueIfKeyNotFound){int i = binarySearch(mKeys, 0, mSize, key);if (i < 0){return valueIfKeyNotFound;}else{return mValues[i];}}
|
train
| true
|
2,284
|
public CharBuffer get(char[] dst) {return get(dst, 0, dst.length);}
|
[
"public",
"CharBuffer",
"get",
"(",
"char",
"[",
"]",
"dst",
")",
"{",
"return",
"get",
"(",
"dst",
",",
"0",
",",
"dst",
".",
"length",
")",
";",
"}"
] |
public virtual java.nio.CharBuffer get(char[] dst){return get(dst, 0, dst.Length);}
|
train
| false
|
2,286
|
public String resolveNameXText(NameXPtg n) {return _iBook.resolveNameXText(n.getSheetRefIndex(), n.getNameIndex());}
|
[
"public",
"String",
"resolveNameXText",
"(",
"NameXPtg",
"n",
")",
"{",
"return",
"_iBook",
".",
"resolveNameXText",
"(",
"n",
".",
"getSheetRefIndex",
"(",
")",
",",
"n",
".",
"getNameIndex",
"(",
")",
")",
";",
"}"
] |
public String ResolveNameXText(NameXPtg n){return _iBook.ResolveNameXText(n.SheetRefIndex, n.NameIndex);}
|
train
| false
|
2,288
|
public PutEmailIdentityMailFromAttributesResult putEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityMailFromAttributes(request);}
|
[
"public",
"PutEmailIdentityMailFromAttributesResult",
"putEmailIdentityMailFromAttributes",
"(",
"PutEmailIdentityMailFromAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutEmailIdentityMailFromAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual PutEmailIdentityMailFromAttributesResponse PutEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityMailFromAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityMailFromAttributesResponseUnmarshaller.Instance;return Invoke<PutEmailIdentityMailFromAttributesResponse>(request, options);}
|
train
| true
|
2,289
|
public RemoveAlbumPhotosRequest() {super("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
|
[
"public",
"RemoveAlbumPhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"RemoveAlbumPhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] |
public RemoveAlbumPhotosRequest(): base("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
train
| false
|
2,290
|
public DeleteAttributesResult deleteAttributes(DeleteAttributesRequest request) {request = beforeClientExecution(request);return executeDeleteAttributes(request);}
|
[
"public",
"DeleteAttributesResult",
"deleteAttributes",
"(",
"DeleteAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteAttributesResponse DeleteAttributes(DeleteAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAttributesResponseUnmarshaller.Instance;return Invoke<DeleteAttributesResponse>(request, options);}
|
train
| true
|
2,291
|
public void disableRefLog() {destination.setRefLogMessage("", false); }
|
[
"public",
"void",
"disableRefLog",
"(",
")",
"{",
"destination",
".",
"setRefLogMessage",
"(",
"\"\"",
",",
"false",
")",
";",
"}"
] |
public virtual void DisableRefLog(){destination.SetRefLogMessage(string.Empty, false);}
|
train
| false
|
2,292
|
public TokenStream create(TokenStream input) {return new GermanLightStemFilter(input);}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"GermanLightStemFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new GermanLightStemFilter(input);}
|
train
| false
|
2,293
|
public E removeLast() {return removeLastImpl();}
|
[
"public",
"E",
"removeLast",
"(",
")",
"{",
"return",
"removeLastImpl",
"(",
")",
";",
"}"
] |
public virtual E removeLast(){return removeLastImpl();}
|
train
| false
|
2,294
|
public UpdateDomainMetadataResult updateDomainMetadata(UpdateDomainMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateDomainMetadata(request);}
|
[
"public",
"UpdateDomainMetadataResult",
"updateDomainMetadata",
"(",
"UpdateDomainMetadataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateDomainMetadata",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateDomainMetadataResponse UpdateDomainMetadata(UpdateDomainMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainMetadataResponseUnmarshaller.Instance;return Invoke<UpdateDomainMetadataResponse>(request, options);}
|
train
| true
|
2,295
|
public short findNewDrawingGroupId() {return dgg.findNewDrawingGroupId();}
|
[
"public",
"short",
"findNewDrawingGroupId",
"(",
")",
"{",
"return",
"dgg",
".",
"findNewDrawingGroupId",
"(",
")",
";",
"}"
] |
public short FindNewDrawingGroupId(){short dgId = 1;while (DrawingGroupExists(dgId))dgId++;return dgId;}
|
train
| false
|
2,296
|
public String toString() {return "FacetEntry{" +"value=" + value.utf8ToString() +", count=" + count +'}';}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"FacetEntry{\"",
"+",
"\"value=\"",
"+",
"value",
".",
"utf8ToString",
"(",
")",
"+",
"\", count=\"",
"+",
"count",
"+",
"'}'",
";",
"}"
] |
public override string ToString(){return "FacetEntry{" +"value=" + value.Utf8ToString() +", count=" + count +'}';}
|
train
| false
|
2,297
|
public SharedFormulaRecord linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) {SharedFormulaGroup result = findFormulaGroupForCell(firstCell);if(null == result) {throw new RuntimeException("Failed to find a matching shared formula record");}result.add(agg);return result.getSFR();}
|
[
"public",
"SharedFormulaRecord",
"linkSharedFormulaRecord",
"(",
"CellReference",
"firstCell",
",",
"FormulaRecordAggregate",
"agg",
")",
"{",
"SharedFormulaGroup",
"result",
"=",
"findFormulaGroupForCell",
"(",
"firstCell",
")",
";",
"if",
"(",
"null",
"==",
"result",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Failed to find a matching shared formula record\"",
")",
";",
"}",
"result",
".",
"add",
"(",
"agg",
")",
";",
"return",
"result",
".",
"getSFR",
"(",
")",
";",
"}"
] |
public SharedFormulaRecord LinkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg){SharedFormulaGroup result = FindFormulaGroupForCell(firstCell);if (null == result){throw new RuntimeException("Failed to find a matching shared formula record");}result.Add(agg);return result.SFR;}
|
train
| false
|
2,298
|
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_label_index);out.writeShort(field_2_zero);}
|
[
"public",
"void",
"write",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"sid",
"+",
"getPtgClass",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"field_1_label_index",
")",
";",
"out",
".",
"writeShort",
"(",
"field_2_zero",
")",
";",
"}"
] |
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_label_index);out1.WriteShort(field_2_zero);}
|
train
| false
|
2,300
|
public static BigInteger factorial(int n) {if (n == 0 || n < 0) {return BigInteger.ONE;}if (cache.containsKey(n)) {return cache.get(n);}BigInteger result = BigInteger.valueOf(n).multiply(factorial(n - 2));cache.put(n, result);return result;}
|
[
"public",
"static",
"BigInteger",
"factorial",
"(",
"int",
"n",
")",
"{",
"if",
"(",
"n",
"==",
"0",
"||",
"n",
"<",
"0",
")",
"{",
"return",
"BigInteger",
".",
"ONE",
";",
"}",
"if",
"(",
"cache",
".",
"containsKey",
"(",
"n",
")",
")",
"{",
"return",
"cache",
".",
"get",
"(",
"n",
")",
";",
"}",
"BigInteger",
"result",
"=",
"BigInteger",
".",
"valueOf",
"(",
"n",
")",
".",
"multiply",
"(",
"factorial",
"(",
"n",
"-",
"2",
")",
")",
";",
"cache",
".",
"put",
"(",
"n",
",",
"result",
")",
";",
"return",
"result",
";",
"}"
] |
public static BigInteger factorial(int n){if (n == 0 || n < 0){return BigInteger.One;}if (cache.ContainsKey(n)){return cache[(n)];}BigInteger result = BigInteger.ValueOf(n).Multiply(factorial(n - 2));cache.Add(n, result);return result;}
|
train
| false
|
2,301
|
public DelimitedPayloadTokenFilter create(TokenStream input) {return new DelimitedPayloadTokenFilter(input, delimiter, encoder);}
|
[
"public",
"DelimitedPayloadTokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"DelimitedPayloadTokenFilter",
"(",
"input",
",",
"delimiter",
",",
"encoder",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new DelimitedPayloadTokenFilter(input, delimiter, encoder);}
|
train
| false
|
2,302
|
public String toString() {return "NONE"; }
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"NONE\"",
";",
"}"
] |
public override string ToString(){return "NONE";}
|
train
| false
|
2,303
|
public GetAlarmsResult getAlarms(GetAlarmsRequest request) {request = beforeClientExecution(request);return executeGetAlarms(request);}
|
[
"public",
"GetAlarmsResult",
"getAlarms",
"(",
"GetAlarmsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetAlarms",
"(",
"request",
")",
";",
"}"
] |
public virtual GetAlarmsResponse GetAlarms(GetAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAlarmsResponseUnmarshaller.Instance;return Invoke<GetAlarmsResponse>(request, options);}
|
train
| false
|
2,304
|
public DeleteDetectorVersionResult deleteDetectorVersion(DeleteDetectorVersionRequest request) {request = beforeClientExecution(request);return executeDeleteDetectorVersion(request);}
|
[
"public",
"DeleteDetectorVersionResult",
"deleteDetectorVersion",
"(",
"DeleteDetectorVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDetectorVersion",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDetectorVersionResponse DeleteDetectorVersion(DeleteDetectorVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDetectorVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDetectorVersionResponseUnmarshaller.Instance;return Invoke<DeleteDetectorVersionResponse>(request, options);}
|
train
| false
|
2,305
|
public ExpandedDouble createExpandedDouble() {return new ExpandedDouble(_significand, _binaryExponent);}
|
[
"public",
"ExpandedDouble",
"createExpandedDouble",
"(",
")",
"{",
"return",
"new",
"ExpandedDouble",
"(",
"_significand",
",",
"_binaryExponent",
")",
";",
"}"
] |
public ExpandedDouble CreateExpandedDouble(){return new ExpandedDouble(_significand, _binaryExponent);}
|
train
| false
|
2,306
|
public CharBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());CharToByteBufferAdapter buf = new CharToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
|
[
"public",
"CharBuffer",
"duplicate",
"(",
")",
"{",
"ByteBuffer",
"bb",
"=",
"byteBuffer",
".",
"duplicate",
"(",
")",
".",
"order",
"(",
"byteBuffer",
".",
"order",
"(",
")",
")",
";",
"CharToByteBufferAdapter",
"buf",
"=",
"new",
"CharToByteBufferAdapter",
"(",
"bb",
")",
";",
"buf",
".",
"limit",
"=",
"limit",
";",
"buf",
".",
"position",
"=",
"position",
";",
"buf",
".",
"mark",
"=",
"mark",
";",
"return",
"buf",
";",
"}"
] |
public override java.nio.CharBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.CharToByteBufferAdapter buf = new java.nio.CharToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
|
train
| false
|
2,307
|
public int size() {return Hashtable.this.size();}
|
[
"public",
"int",
"size",
"(",
")",
"{",
"return",
"Hashtable",
".",
"this",
".",
"size",
"(",
")",
";",
"}"
] |
public override int size(){return this._enclosing._size;}
|
train
| false
|
2,308
|
public ResetInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}
|
[
"public",
"ResetInstanceAttributeRequest",
"(",
"String",
"instanceId",
",",
"InstanceAttributeName",
"attribute",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"setAttribute",
"(",
"attribute",
".",
"toString",
"(",
")",
")",
";",
"}"
] |
public ResetInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}
|
train
| false
|
2,309
|
public final List<FooterLine> getFooterLines() {final byte[] raw = buffer;int ptr = raw.length - 1;while (raw[ptr] == '\n') ptr--;final int msgB = RawParseUtils.commitMessage(raw, 0);final ArrayList<FooterLine> r = new ArrayList<>(4);final Charset enc = guessEncoding();for (;;) {ptr = RawParseUtils.prevLF(raw, ptr);if (ptr <= msgB)break; final int keyStart = ptr + 2;if (raw[keyStart] == '\n')break; final int keyEnd = RawParseUtils.endOfFooterLineKey(raw, keyStart);if (keyEnd < 0)continue; int valStart = keyEnd + 1;while (valStart < raw.length && raw[valStart] == ' ')valStart++;int valEnd = RawParseUtils.nextLF(raw, valStart);if (raw[valEnd - 1] == '\n')valEnd--;r.add(new FooterLine(raw, enc, keyStart, keyEnd, valStart, valEnd));}Collections.reverse(r);return r;}
|
[
"public",
"final",
"List",
"<",
"FooterLine",
">",
"getFooterLines",
"(",
")",
"{",
"final",
"byte",
"[",
"]",
"raw",
"=",
"buffer",
";",
"int",
"ptr",
"=",
"raw",
".",
"length",
"-",
"1",
";",
"while",
"(",
"raw",
"[",
"ptr",
"]",
"==",
"'\\n'",
")",
"ptr",
"--",
";",
"final",
"int",
"msgB",
"=",
"RawParseUtils",
".",
"commitMessage",
"(",
"raw",
",",
"0",
")",
";",
"final",
"ArrayList",
"<",
"FooterLine",
">",
"r",
"=",
"new",
"ArrayList",
"<",
">",
"(",
"4",
")",
";",
"final",
"Charset",
"enc",
"=",
"guessEncoding",
"(",
")",
";",
"for",
"(",
";",
";",
")",
"{",
"ptr",
"=",
"RawParseUtils",
".",
"prevLF",
"(",
"raw",
",",
"ptr",
")",
";",
"if",
"(",
"ptr",
"<=",
"msgB",
")",
"break",
";",
"final",
"int",
"keyStart",
"=",
"ptr",
"+",
"2",
";",
"if",
"(",
"raw",
"[",
"keyStart",
"]",
"==",
"'\\n'",
")",
"break",
";",
"final",
"int",
"keyEnd",
"=",
"RawParseUtils",
".",
"endOfFooterLineKey",
"(",
"raw",
",",
"keyStart",
")",
";",
"if",
"(",
"keyEnd",
"<",
"0",
")",
"continue",
";",
"int",
"valStart",
"=",
"keyEnd",
"+",
"1",
";",
"while",
"(",
"valStart",
"<",
"raw",
".",
"length",
"&&",
"raw",
"[",
"valStart",
"]",
"==",
"' '",
")",
"valStart",
"++",
";",
"int",
"valEnd",
"=",
"RawParseUtils",
".",
"nextLF",
"(",
"raw",
",",
"valStart",
")",
";",
"if",
"(",
"raw",
"[",
"valEnd",
"-",
"1",
"]",
"==",
"'\\n'",
")",
"valEnd",
"--",
";",
"r",
".",
"add",
"(",
"new",
"FooterLine",
"(",
"raw",
",",
"enc",
",",
"keyStart",
",",
"keyEnd",
",",
"valStart",
",",
"valEnd",
")",
")",
";",
"}",
"Collections",
".",
"reverse",
"(",
"r",
")",
";",
"return",
"r",
";",
"}"
] |
public IList<FooterLine> GetFooterLines(){byte[] raw = buffer;int ptr = raw.Length - 1;while (raw[ptr] == '\n'){ptr--;}int msgB = RawParseUtils.CommitMessage(raw, 0);AList<FooterLine> r = new AList<FooterLine>(4);System.Text.Encoding enc = Encoding;for (; ; ){ptr = RawParseUtils.PrevLF(raw, ptr);if (ptr <= msgB){break;}int keyStart = ptr + 2;if (raw[keyStart] == '\n'){break;}int keyEnd = RawParseUtils.EndOfFooterLineKey(raw, keyStart);if (keyEnd < 0){continue;}int valStart = keyEnd + 1;while (valStart < raw.Length && raw[valStart] == ' '){valStart++;}int valEnd = RawParseUtils.NextLF(raw, valStart);if (raw[valEnd - 1] == '\n'){valEnd--;}r.AddItem(new FooterLine(raw, enc, keyStart, keyEnd, valStart, valEnd));}Sharpen.Collections.Reverse(r);return r;}
|
train
| false
|
2,310
|
public SupBookRecord getExternalBookRecord() {return _externalBookRecord;}
|
[
"public",
"SupBookRecord",
"getExternalBookRecord",
"(",
")",
"{",
"return",
"_externalBookRecord",
";",
"}"
] |
public SupBookRecord GetExternalBookRecord(){return _externalBookRecord;}
|
train
| false
|
2,311
|
public Builder() {this(false);}
|
[
"public",
"Builder",
"(",
")",
"{",
"this",
"(",
"false",
")",
";",
"}"
] |
public Builder(){InitializeInstanceFields();}
|
train
| false
|
2,312
|
public ApplySecurityGroupsToLoadBalancerResult applySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request) {request = beforeClientExecution(request);return executeApplySecurityGroupsToLoadBalancer(request);}
|
[
"public",
"ApplySecurityGroupsToLoadBalancerResult",
"applySecurityGroupsToLoadBalancer",
"(",
"ApplySecurityGroupsToLoadBalancerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeApplySecurityGroupsToLoadBalancer",
"(",
"request",
")",
";",
"}"
] |
public virtual ApplySecurityGroupsToLoadBalancerResponse ApplySecurityGroupsToLoadBalancer(ApplySecurityGroupsToLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySecurityGroupsToLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySecurityGroupsToLoadBalancerResponseUnmarshaller.Instance;return Invoke<ApplySecurityGroupsToLoadBalancerResponse>(request, options);}
|
train
| true
|
2,313
|
public DeleteDedicatedIpPoolResult deleteDedicatedIpPool(DeleteDedicatedIpPoolRequest request) {request = beforeClientExecution(request);return executeDeleteDedicatedIpPool(request);}
|
[
"public",
"DeleteDedicatedIpPoolResult",
"deleteDedicatedIpPool",
"(",
"DeleteDedicatedIpPoolRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDedicatedIpPool",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDedicatedIpPoolResponse DeleteDedicatedIpPool(DeleteDedicatedIpPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDedicatedIpPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDedicatedIpPoolResponseUnmarshaller.Instance;return Invoke<DeleteDedicatedIpPoolResponse>(request, options);}
|
train
| true
|
2,314
|
public DescribeStackInstanceResult describeStackInstance(DescribeStackInstanceRequest request) {request = beforeClientExecution(request);return executeDescribeStackInstance(request);}
|
[
"public",
"DescribeStackInstanceResult",
"describeStackInstance",
"(",
"DescribeStackInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeStackInstance",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeStackInstanceResponse DescribeStackInstance(DescribeStackInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackInstanceResponseUnmarshaller.Instance;return Invoke<DescribeStackInstanceResponse>(request, options);}
|
train
| true
|
2,315
|
public HSSFChildAnchor(EscherChildAnchorRecord escherChildAnchorRecord) {this._escherChildAnchor = escherChildAnchorRecord;}
|
[
"public",
"HSSFChildAnchor",
"(",
"EscherChildAnchorRecord",
"escherChildAnchorRecord",
")",
"{",
"this",
".",
"_escherChildAnchor",
"=",
"escherChildAnchorRecord",
";",
"}"
] |
public HSSFChildAnchor(EscherChildAnchorRecord escherChildAnchorRecord){this._escherChildAnchor = escherChildAnchorRecord;}
|
train
| false
|
2,316
|
public SynonymQuery build() {Collections.sort(terms, Comparator.comparing(a -> a.term));return new SynonymQuery(terms.toArray(new TermAndBoost[0]), field);}
|
[
"public",
"SynonymQuery",
"build",
"(",
")",
"{",
"Collections",
".",
"sort",
"(",
"terms",
",",
"Comparator",
".",
"comparing",
"(",
"a",
"->",
"a",
".",
"term",
")",
")",
";",
"return",
"new",
"SynonymQuery",
"(",
"terms",
".",
"toArray",
"(",
"new",
"TermAndBoost",
"[",
"0",
"]",
")",
",",
"field",
")",
";",
"}"
] |
public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
|
train
| false
|
2,317
|
public void addCell(int rowIndex, int columnIndex) {if (rowIndex > _lastDefinedRow) return;if (_currentRowIndex == -1) {_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;} else {if (_currentRowIndex == rowIndex && _lastColumnIndex+1 == columnIndex) {_lastColumnIndex = columnIndex;} else {if (_currentRectangleGroup == null) {_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);} else {if (!_currentRectangleGroup.acceptRow(_currentRowIndex, _firstColumnIndex, _lastColumnIndex)) {_rectangleGroups.add(_currentRectangleGroup);_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}}_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}}}
|
[
"public",
"void",
"addCell",
"(",
"int",
"rowIndex",
",",
"int",
"columnIndex",
")",
"{",
"if",
"(",
"rowIndex",
">",
"_lastDefinedRow",
")",
"return",
";",
"if",
"(",
"_currentRowIndex",
"==",
"-",
"1",
")",
"{",
"_currentRowIndex",
"=",
"rowIndex",
";",
"_firstColumnIndex",
"=",
"columnIndex",
";",
"_lastColumnIndex",
"=",
"columnIndex",
";",
"}",
"else",
"{",
"if",
"(",
"_currentRowIndex",
"==",
"rowIndex",
"&&",
"_lastColumnIndex",
"+",
"1",
"==",
"columnIndex",
")",
"{",
"_lastColumnIndex",
"=",
"columnIndex",
";",
"}",
"else",
"{",
"if",
"(",
"_currentRectangleGroup",
"==",
"null",
")",
"{",
"_currentRectangleGroup",
"=",
"new",
"BlankCellRectangleGroup",
"(",
"_currentRowIndex",
",",
"_firstColumnIndex",
",",
"_lastColumnIndex",
")",
";",
"}",
"else",
"{",
"if",
"(",
"!",
"_currentRectangleGroup",
".",
"acceptRow",
"(",
"_currentRowIndex",
",",
"_firstColumnIndex",
",",
"_lastColumnIndex",
")",
")",
"{",
"_rectangleGroups",
".",
"add",
"(",
"_currentRectangleGroup",
")",
";",
"_currentRectangleGroup",
"=",
"new",
"BlankCellRectangleGroup",
"(",
"_currentRowIndex",
",",
"_firstColumnIndex",
",",
"_lastColumnIndex",
")",
";",
"}",
"}",
"_currentRowIndex",
"=",
"rowIndex",
";",
"_firstColumnIndex",
"=",
"columnIndex",
";",
"_lastColumnIndex",
"=",
"columnIndex",
";",
"}",
"}",
"}"
] |
public void AddCell(int rowIndex, int columnIndex){if (_currentRowIndex == -1){_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}else{if (_currentRowIndex == rowIndex && _lastColumnIndex + 1 == columnIndex){_lastColumnIndex = columnIndex;}else{if (_currentRectangleGroup == null){_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}else{if (!_currentRectangleGroup.AcceptRow(_currentRowIndex, _firstColumnIndex, _lastColumnIndex)){_rectangleGroups.Add(_currentRectangleGroup);_currentRectangleGroup = new BlankCellRectangleGroup(_currentRowIndex, _firstColumnIndex, _lastColumnIndex);}}_currentRowIndex = rowIndex;_firstColumnIndex = columnIndex;_lastColumnIndex = columnIndex;}}}
|
train
| false
|
2,318
|
public String toString() {return "BLOCK: prefix=" + brToString(prefix);}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"BLOCK: prefix=\"",
"+",
"brToString",
"(",
"prefix",
")",
";",
"}"
] |
public override string ToString(){return "BLOCK: " + Prefix.Utf8ToString();}
|
train
| false
|
2,320
|
@Override public boolean contains(Object o) {if (!(o instanceof Entry)) {return false;}Entry<?, ?> e = (Entry<?, ?>) o;Object key = e.getKey();if (key == null) {return false;}V v = Impl.this.get(key);return v != null && strategy.equalValues(v, e.getValue());}
|
[
"@",
"Override",
"public",
"boolean",
"contains",
"(",
"Object",
"o",
")",
"{",
"if",
"(",
"!",
"(",
"o",
"instanceof",
"Entry",
")",
")",
"{",
"return",
"false",
";",
"}",
"Entry",
"<",
"?",
",",
"?",
">",
"e",
"=",
"(",
"Entry",
"<",
"?",
",",
"?",
">",
")",
"o",
";",
"Object",
"key",
"=",
"e",
".",
"getKey",
"(",
")",
";",
"if",
"(",
"key",
"==",
"null",
")",
"{",
"return",
"false",
";",
"}",
"V",
"v",
"=",
"Impl",
".",
"this",
".",
"get",
"(",
"key",
")",
";",
"return",
"v",
"!=",
"null",
"&&",
"strategy",
".",
"equalValues",
"(",
"v",
",",
"e",
".",
"getValue",
"(",
")",
")",
";",
"}"
] |
public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}
|
train
| false
|
2,321
|
public void clear() {if (value != null) {Arrays.fill(value, (char) 0);value = null;}}
|
[
"public",
"void",
"clear",
"(",
")",
"{",
"if",
"(",
"value",
"!=",
"null",
")",
"{",
"Arrays",
".",
"fill",
"(",
"value",
",",
"(",
"char",
")",
"0",
")",
";",
"value",
"=",
"null",
";",
"}",
"}"
] |
public override void Clear(){if (value != null){Arrays.Fill(value, (char)0);value = null;}}
|
train
| false
|
2,322
|
public DescribeDirectConnectGatewayAssociationsResult describeDirectConnectGatewayAssociations(DescribeDirectConnectGatewayAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAssociations(request);}
|
[
"public",
"DescribeDirectConnectGatewayAssociationsResult",
"describeDirectConnectGatewayAssociations",
"(",
"DescribeDirectConnectGatewayAssociationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDirectConnectGatewayAssociations",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDirectConnectGatewayAssociationsResponse DescribeDirectConnectGatewayAssociations(DescribeDirectConnectGatewayAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectConnectGatewayAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectConnectGatewayAssociationsResponseUnmarshaller.Instance;return Invoke<DescribeDirectConnectGatewayAssociationsResponse>(request, options);}
|
train
| true
|
2,323
|
public GetRestApiResult getRestApi(GetRestApiRequest request) {request = beforeClientExecution(request);return executeGetRestApi(request);}
|
[
"public",
"GetRestApiResult",
"getRestApi",
"(",
"GetRestApiRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRestApi",
"(",
"request",
")",
";",
"}"
] |
public virtual GetRestApiResponse GetRestApi(GetRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRestApiResponseUnmarshaller.Instance;return Invoke<GetRestApiResponse>(request, options);}
|
train
| true
|
2,324
|
public CreateLaunchTemplateVersionResult createLaunchTemplateVersion(CreateLaunchTemplateVersionRequest request) {request = beforeClientExecution(request);return executeCreateLaunchTemplateVersion(request);}
|
[
"public",
"CreateLaunchTemplateVersionResult",
"createLaunchTemplateVersion",
"(",
"CreateLaunchTemplateVersionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLaunchTemplateVersion",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateLaunchTemplateVersionResponse CreateLaunchTemplateVersion(CreateLaunchTemplateVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchTemplateVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchTemplateVersionResponseUnmarshaller.Instance;return Invoke<CreateLaunchTemplateVersionResponse>(request, options);}
|
train
| true
|
2,325
|
public SetLoadBalancerPoliciesOfListenerResult setLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest request) {request = beforeClientExecution(request);return executeSetLoadBalancerPoliciesOfListener(request);}
|
[
"public",
"SetLoadBalancerPoliciesOfListenerResult",
"setLoadBalancerPoliciesOfListener",
"(",
"SetLoadBalancerPoliciesOfListenerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetLoadBalancerPoliciesOfListener",
"(",
"request",
")",
";",
"}"
] |
public virtual SetLoadBalancerPoliciesOfListenerResponse SetLoadBalancerPoliciesOfListener(SetLoadBalancerPoliciesOfListenerRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetLoadBalancerPoliciesOfListenerRequestMarshaller.Instance;options.ResponseUnmarshaller = SetLoadBalancerPoliciesOfListenerResponseUnmarshaller.Instance;return Invoke<SetLoadBalancerPoliciesOfListenerResponse>(request, options);}
|
train
| true
|
2,326
|
public SoraniNormalizationFilter(TokenStream input) {super(input);}
|
[
"public",
"SoraniNormalizationFilter",
"(",
"TokenStream",
"input",
")",
"{",
"super",
"(",
"input",
")",
";",
"}"
] |
public SoraniNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
|
train
| false
|
2,327
|
public UpdateTerminationProtectionResult updateTerminationProtection(UpdateTerminationProtectionRequest request) {request = beforeClientExecution(request);return executeUpdateTerminationProtection(request);}
|
[
"public",
"UpdateTerminationProtectionResult",
"updateTerminationProtection",
"(",
"UpdateTerminationProtectionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateTerminationProtection",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateTerminationProtectionResponse UpdateTerminationProtection(UpdateTerminationProtectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTerminationProtectionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTerminationProtectionResponseUnmarshaller.Instance;return Invoke<UpdateTerminationProtectionResponse>(request, options);}
|
train
| true
|
2,328
|
public void addChildRecord(EscherRecord record) {_childRecords.add(record);}
|
[
"public",
"void",
"addChildRecord",
"(",
"EscherRecord",
"record",
")",
"{",
"_childRecords",
".",
"add",
"(",
"record",
")",
";",
"}"
] |
public void AddChildRecord(EscherRecord record){this._childRecords.Add(record);}
|
train
| false
|
2,329
|
public SetIdentityMailFromDomainResult setIdentityMailFromDomain(SetIdentityMailFromDomainRequest request) {request = beforeClientExecution(request);return executeSetIdentityMailFromDomain(request);}
|
[
"public",
"SetIdentityMailFromDomainResult",
"setIdentityMailFromDomain",
"(",
"SetIdentityMailFromDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetIdentityMailFromDomain",
"(",
"request",
")",
";",
"}"
] |
public virtual SetIdentityMailFromDomainResponse SetIdentityMailFromDomain(SetIdentityMailFromDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityMailFromDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityMailFromDomainResponseUnmarshaller.Instance;return Invoke<SetIdentityMailFromDomainResponse>(request, options);}
|
train
| true
|
2,330
|
public E remove(int location) {if (location >= 0 && location < size) {Link<E> link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}Link<E> previous = link.previous;Link<E> next = link.next;previous.next = next;next.previous = previous;size--;modCount++;return link.data;}throw new IndexOutOfBoundsException();}
|
[
"public",
"E",
"remove",
"(",
"int",
"location",
")",
"{",
"if",
"(",
"location",
">=",
"0",
"&&",
"location",
"<",
"size",
")",
"{",
"Link",
"<",
"E",
">",
"link",
"=",
"voidLink",
";",
"if",
"(",
"location",
"<",
"(",
"size",
"/",
"2",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<=",
"location",
";",
"i",
"++",
")",
"{",
"link",
"=",
"link",
".",
"next",
";",
"}",
"}",
"else",
"{",
"for",
"(",
"int",
"i",
"=",
"size",
";",
"i",
">",
"location",
";",
"i",
"--",
")",
"{",
"link",
"=",
"link",
".",
"previous",
";",
"}",
"}",
"Link",
"<",
"E",
">",
"previous",
"=",
"link",
".",
"previous",
";",
"Link",
"<",
"E",
">",
"next",
"=",
"link",
".",
"next",
";",
"previous",
".",
"next",
"=",
"next",
";",
"next",
".",
"previous",
"=",
"previous",
";",
"size",
"--",
";",
"modCount",
"++",
";",
"return",
"link",
".",
"data",
";",
"}",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
")",
";",
"}"
] |
public override E remove(int location){if (location >= 0 && location < _size){java.util.LinkedList.Link<E> link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}java.util.LinkedList.Link<E> previous = link.previous;java.util.LinkedList.Link<E> next = link.next;previous.next = next;next.previous = previous;_size--;modCount++;return link.data;}throw new System.IndexOutOfRangeException();}
|
train
| false
|
2,331
|
public UpdateJobResult updateJob(UpdateJobRequest request) {request = beforeClientExecution(request);return executeUpdateJob(request);}
|
[
"public",
"UpdateJobResult",
"updateJob",
"(",
"UpdateJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateJob",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateJobRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateJobResponseUnmarshaller.Instance;return Invoke<UpdateJobResponse>(request, options);}
|
train
| true
|
2,332
|
public AddNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
|
[
"public",
"AddNoteCommand",
"setNotesRef",
"(",
"String",
"notesRef",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"notesRef",
"=",
"notesRef",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.AddNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
|
train
| false
|
2,333
|
public ListInvitationsResult listInvitations(ListInvitationsRequest request) {request = beforeClientExecution(request);return executeListInvitations(request);}
|
[
"public",
"ListInvitationsResult",
"listInvitations",
"(",
"ListInvitationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInvitations",
"(",
"request",
")",
";",
"}"
] |
public virtual ListInvitationsResponse ListInvitations(ListInvitationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInvitationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInvitationsResponseUnmarshaller.Instance;return Invoke<ListInvitationsResponse>(request, options);}
|
train
| true
|
2,334
|
public boolean equals(Object obj) {if(! (obj instanceof ExtRst)) {return false;}ExtRst other = (ExtRst)obj;return (compareTo(other) == 0);}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"ExtRst",
")",
")",
"{",
"return",
"false",
";",
"}",
"ExtRst",
"other",
"=",
"(",
"ExtRst",
")",
"obj",
";",
"return",
"(",
"compareTo",
"(",
"other",
")",
"==",
"0",
")",
";",
"}"
] |
public override bool Equals(Object obj){if (!(obj is ExtRst)){return false;}ExtRst other = (ExtRst)obj;return (CompareTo(other) == 0);}
|
train
| false
|
2,335
|
public synchronized void close() throws IOException {buffer = null;isClosed = true;notifyAll();}
|
[
"public",
"synchronized",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
"buffer",
"=",
"null",
";",
"isClosed",
"=",
"true",
";",
"notifyAll",
"(",
")",
";",
"}"
] |
public override void close(){throw new System.NotImplementedException();}
|
train
| false
|
2,336
|
public ListTrialsResult listTrials(ListTrialsRequest request) {request = beforeClientExecution(request);return executeListTrials(request);}
|
[
"public",
"ListTrialsResult",
"listTrials",
"(",
"ListTrialsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTrials",
"(",
"request",
")",
";",
"}"
] |
public virtual ListTrialsResponse ListTrials(ListTrialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrialsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrialsResponseUnmarshaller.Instance;return Invoke<ListTrialsResponse>(request, options);}
|
train
| false
|
2,337
|
public CreateDocumentClassifierResult createDocumentClassifier(CreateDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeCreateDocumentClassifier(request);}
|
[
"public",
"CreateDocumentClassifierResult",
"createDocumentClassifier",
"(",
"CreateDocumentClassifierRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDocumentClassifier",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDocumentClassifierResponse CreateDocumentClassifier(CreateDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDocumentClassifierResponseUnmarshaller.Instance;return Invoke<CreateDocumentClassifierResponse>(request, options);}
|
train
| true
|
2,338
|
public GetPasswordDataResult getPasswordData(GetPasswordDataRequest request) {request = beforeClientExecution(request);return executeGetPasswordData(request);}
|
[
"public",
"GetPasswordDataResult",
"getPasswordData",
"(",
"GetPasswordDataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetPasswordData",
"(",
"request",
")",
";",
"}"
] |
public virtual GetPasswordDataResponse GetPasswordData(GetPasswordDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPasswordDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPasswordDataResponseUnmarshaller.Instance;return Invoke<GetPasswordDataResponse>(request, options);}
|
train
| true
|
2,339
|
public final String text() {return toString(bytes);}
|
[
"public",
"final",
"String",
"text",
"(",
")",
"{",
"return",
"toString",
"(",
"bytes",
")",
";",
"}"
] |
public string Text(){return ToString(Bytes);}
|
train
| false
|
2,340
|
public HSSFPicture( HSSFShape parent, HSSFAnchor anchor ){super( parent, anchor );super.setShapeType(OBJECT_TYPE_PICTURE);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);cod.setObjectType(CommonObjectDataSubRecord.OBJECT_TYPE_PICTURE);}
|
[
"public",
"HSSFPicture",
"(",
"HSSFShape",
"parent",
",",
"HSSFAnchor",
"anchor",
")",
"{",
"super",
"(",
"parent",
",",
"anchor",
")",
";",
"super",
".",
"setShapeType",
"(",
"OBJECT_TYPE_PICTURE",
")",
";",
"CommonObjectDataSubRecord",
"cod",
"=",
"(",
"CommonObjectDataSubRecord",
")",
"getObjRecord",
"(",
")",
".",
"getSubRecords",
"(",
")",
".",
"get",
"(",
"0",
")",
";",
"cod",
".",
"setObjectType",
"(",
"CommonObjectDataSubRecord",
".",
"OBJECT_TYPE_PICTURE",
")",
";",
"}"
] |
public HSSFPicture(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){base.ShapeType = (OBJECT_TYPE_PICTURE);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord)GetObjRecord().SubRecords[0];cod.ObjectType = CommonObjectType.Picture;}
|
train
| false
|
2,341
|
public CharSequence subSequence(int start, int end) {return new RawCharSequence(buffer, startPtr + start, startPtr + end);}
|
[
"public",
"CharSequence",
"subSequence",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"return",
"new",
"RawCharSequence",
"(",
"buffer",
",",
"startPtr",
"+",
"start",
",",
"startPtr",
"+",
"end",
")",
";",
"}"
] |
public CharSequence SubSequence(int start, int end){return new NGit.Util.RawCharSequence(buffer, startPtr + start, startPtr + end);}
|
train
| false
|
2,342
|
public DeleteAccessPointResult deleteAccessPoint(DeleteAccessPointRequest request) {request = beforeClientExecution(request);return executeDeleteAccessPoint(request);}
|
[
"public",
"DeleteAccessPointResult",
"deleteAccessPoint",
"(",
"DeleteAccessPointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteAccessPoint",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteAccessPointResponse DeleteAccessPoint(DeleteAccessPointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessPointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessPointResponseUnmarshaller.Instance;return Invoke<DeleteAccessPointResponse>(request, options);}
|
train
| false
|
2,343
|
public DescribeSubnetsResult describeSubnets() {return describeSubnets(new DescribeSubnetsRequest());}
|
[
"public",
"DescribeSubnetsResult",
"describeSubnets",
"(",
")",
"{",
"return",
"describeSubnets",
"(",
"new",
"DescribeSubnetsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeSubnetsResponse DescribeSubnets(){return DescribeSubnets(new DescribeSubnetsRequest());}
|
train
| false
|
2,344
|
public AddTagsToOnPremisesInstancesResult addTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request) {request = beforeClientExecution(request);return executeAddTagsToOnPremisesInstances(request);}
|
[
"public",
"AddTagsToOnPremisesInstancesResult",
"addTagsToOnPremisesInstances",
"(",
"AddTagsToOnPremisesInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddTagsToOnPremisesInstances",
"(",
"request",
")",
";",
"}"
] |
public virtual AddTagsToOnPremisesInstancesResponse AddTagsToOnPremisesInstances(AddTagsToOnPremisesInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToOnPremisesInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToOnPremisesInstancesResponseUnmarshaller.Instance;return Invoke<AddTagsToOnPremisesInstancesResponse>(request, options);}
|
train
| true
|
2,345
|
public static String coerceValueToString(ValueEval ve) {if (ve instanceof StringValueEval) {StringValueEval sve = (StringValueEval) ve;return sve.getStringValue();}if (ve == BlankEval.instance) {return "";}}
|
[
"public",
"static",
"String",
"coerceValueToString",
"(",
"ValueEval",
"ve",
")",
"{",
"if",
"(",
"ve",
"instanceof",
"StringValueEval",
")",
"{",
"StringValueEval",
"sve",
"=",
"(",
"StringValueEval",
")",
"ve",
";",
"return",
"sve",
".",
"getStringValue",
"(",
")",
";",
"}",
"if",
"(",
"ve",
"==",
"BlankEval",
".",
"instance",
")",
"{",
"return",
"\"\"",
";",
"}",
"}"
] |
public static String CoerceValueToString(ValueEval ve){if (ve is StringValueEval){StringValueEval sve = (StringValueEval)ve;return sve.StringValue;}if (ve is BlankEval){return "";}}
|
train
| false
|
2,346
|
public CreateVpcLinkResult createVpcLink(CreateVpcLinkRequest request) {request = beforeClientExecution(request);return executeCreateVpcLink(request);}
|
[
"public",
"CreateVpcLinkResult",
"createVpcLink",
"(",
"CreateVpcLinkRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateVpcLink",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateVpcLinkResponse CreateVpcLink(CreateVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcLinkResponseUnmarshaller.Instance;return Invoke<CreateVpcLinkResponse>(request, options);}
|
train
| true
|
2,347
|
public DescribeTrafficMirrorTargetsResult describeTrafficMirrorTargets(DescribeTrafficMirrorTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorTargets(request);}
|
[
"public",
"DescribeTrafficMirrorTargetsResult",
"describeTrafficMirrorTargets",
"(",
"DescribeTrafficMirrorTargetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTrafficMirrorTargets",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTrafficMirrorTargetsResponse DescribeTrafficMirrorTargets(DescribeTrafficMirrorTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorTargetsResponseUnmarshaller.Instance;return Invoke<DescribeTrafficMirrorTargetsResponse>(request, options);}
|
train
| false
|
2,348
|
public SetRepositoryPolicyResult setRepositoryPolicy(SetRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeSetRepositoryPolicy(request);}
|
[
"public",
"SetRepositoryPolicyResult",
"setRepositoryPolicy",
"(",
"SetRepositoryPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetRepositoryPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual SetRepositoryPolicyResponse SetRepositoryPolicy(SetRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetRepositoryPolicyResponseUnmarshaller.Instance;return Invoke<SetRepositoryPolicyResponse>(request, options);}
|
train
| true
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.