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,772
|
public TextRecord(RecordInputStream in) {field_1_horizontalAlignment = in.readByte();field_2_verticalAlignment = in.readByte();field_3_displayMode = in.readShort();field_4_rgbColor = in.readInt();field_5_x = in.readInt();field_6_y = in.readInt();field_7_width = in.readInt();field_8_height = in.readInt();field_9_options1 = in.readShort();field_10_indexOfColorValue = in.readShort();field_11_options2 = in.readShort();field_12_textRotation = in.readShort();}
|
[
"public",
"TextRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_horizontalAlignment",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"field_2_verticalAlignment",
"=",
"in",
".",
"readByte",
"(",
")",
";",
"field_3_displayMode",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_4_rgbColor",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_5_x",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_6_y",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_7_width",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_8_height",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"field_9_options1",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_10_indexOfColorValue",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_11_options2",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_12_textRotation",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public TextRecord(RecordInputStream in1){field_1_horizontalAlignment = (byte)in1.ReadByte();field_2_verticalAlignment = (byte)in1.ReadByte();field_3_DisplayMode = in1.ReadShort();field_4_rgbColor = in1.ReadInt();field_5_x = in1.ReadInt();field_6_y = in1.ReadInt();field_7_width = in1.ReadInt();field_8_height = in1.ReadInt();field_9_options1 = in1.ReadShort();field_10_IndexOfColorValue = in1.ReadShort();field_11_options2 = in1.ReadShort();field_12_textRotation = in1.ReadShort();}
|
train
| false
|
2,773
|
public ReflogCommand setRef(String ref) {checkCallable();this.ref = ref;return this;}
|
[
"public",
"ReflogCommand",
"setRef",
"(",
"String",
"ref",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"ref",
"=",
"ref",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.ReflogCommand SetRef(string @ref){CheckCallable();this.@ref = @ref;return this;}
|
train
| false
|
2,774
|
@Override public boolean contains(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {return true;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {return true;}}}return false;}
|
[
"@",
"Override",
"public",
"boolean",
"contains",
"(",
"Object",
"object",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"s",
"=",
"size",
";",
"if",
"(",
"object",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"s",
";",
"i",
"++",
")",
"{",
"if",
"(",
"object",
".",
"equals",
"(",
"a",
"[",
"i",
"]",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"else",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"s",
";",
"i",
"++",
")",
"{",
"if",
"(",
"a",
"[",
"i",
"]",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"}",
"}",
"return",
"false",
";",
"}"
] |
public override bool contains(object @object){if (@object != null){foreach (E element in a){if (@object.Equals(element)){return true;}}}else{foreach (E element in a){if ((object)element == null){return true;}}}return false;}
|
train
| false
|
2,775
|
public CreateFpgaImageResult createFpgaImage(CreateFpgaImageRequest request) {request = beforeClientExecution(request);return executeCreateFpgaImage(request);}
|
[
"public",
"CreateFpgaImageResult",
"createFpgaImage",
"(",
"CreateFpgaImageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateFpgaImage",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateFpgaImageResponse CreateFpgaImage(CreateFpgaImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFpgaImageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFpgaImageResponseUnmarshaller.Instance;return Invoke<CreateFpgaImageResponse>(request, options);}
|
train
| true
|
2,776
|
public DescribeAggregateIdFormatResult describeAggregateIdFormat(DescribeAggregateIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeAggregateIdFormat(request);}
|
[
"public",
"DescribeAggregateIdFormatResult",
"describeAggregateIdFormat",
"(",
"DescribeAggregateIdFormatRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAggregateIdFormat",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAggregateIdFormatResponse DescribeAggregateIdFormat(DescribeAggregateIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAggregateIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAggregateIdFormatResponseUnmarshaller.Instance;return Invoke<DescribeAggregateIdFormatResponse>(request, options);}
|
train
| true
|
2,777
|
public ListMultipartUploadsRequest(String vaultName) {setVaultName(vaultName);}
|
[
"public",
"ListMultipartUploadsRequest",
"(",
"String",
"vaultName",
")",
"{",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] |
public ListMultipartUploadsRequest(string vaultName){_vaultName = vaultName;}
|
train
| false
|
2,778
|
public DeleteRepoRequest() {super("cr", "2016-06-07", "DeleteRepo", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]");setMethod(MethodType.DELETE);}
|
[
"public",
"DeleteRepoRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"DeleteRepo\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"DELETE",
")",
";",
"}"
] |
public DeleteRepoRequest(): base("cr", "2016-06-07", "DeleteRepo", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]";Method = MethodType.DELETE;}
|
train
| false
|
2,779
|
public static BOFRecord createSheetBOF() {return new BOFRecord(TYPE_WORKSHEET);}
|
[
"public",
"static",
"BOFRecord",
"createSheetBOF",
"(",
")",
"{",
"return",
"new",
"BOFRecord",
"(",
"TYPE_WORKSHEET",
")",
";",
"}"
] |
public static BOFRecord CreateSheetBOF(){return new BOFRecord(BOFRecordType.Worksheet);}
|
train
| false
|
2,780
|
public FloatBuffer put(float[] src, int srcOffset, int floatCount) {byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, floatCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, floatCount);}this.position += floatCount;return this;}
|
[
"public",
"FloatBuffer",
"put",
"(",
"float",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"floatCount",
")",
"{",
"byteBuffer",
".",
"limit",
"(",
"limit",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"byteBuffer",
".",
"position",
"(",
"position",
"*",
"SizeOf",
".",
"FLOAT",
")",
";",
"if",
"(",
"byteBuffer",
"instanceof",
"ReadWriteDirectByteBuffer",
")",
"{",
"(",
"(",
"ReadWriteDirectByteBuffer",
")",
"byteBuffer",
")",
".",
"put",
"(",
"src",
",",
"srcOffset",
",",
"floatCount",
")",
";",
"}",
"else",
"{",
"(",
"(",
"ReadWriteHeapByteBuffer",
")",
"byteBuffer",
")",
".",
"put",
"(",
"src",
",",
"srcOffset",
",",
"floatCount",
")",
";",
"}",
"this",
".",
"position",
"+=",
"floatCount",
";",
"return",
"this",
";",
"}"
] |
public override java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){byteBuffer.limit(_limit * libcore.io.SizeOf.FLOAT);byteBuffer.position(_position * libcore.io.SizeOf.FLOAT);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, floatCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, floatCount);}this._position += floatCount;return this;}
|
train
| false
|
2,781
|
public void execute(Lexer lexer) {lexer.popMode();}
|
[
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"lexer",
".",
"popMode",
"(",
")",
";",
"}"
] |
public void Execute(Lexer lexer){lexer.PopMode();}
|
train
| false
|
2,782
|
public DeleteImageRequest() {super("cr", "2016-06-07", "DeleteImage", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]");setMethod(MethodType.DELETE);}
|
[
"public",
"DeleteImageRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"DeleteImage\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"DELETE",
")",
";",
"}"
] |
public DeleteImageRequest(): base("vod", "2017-03-21", "DeleteImage"){if (this.GetType().GetProperty("ProductEndpointMap") != null && this.GetType().GetProperty("ProductEndpointType") != null){this.GetType().GetProperty("ProductEndpointMap").SetValue(this, Endpoint.endpointMap, null);this.GetType().GetProperty("ProductEndpointType").SetValue(this, Endpoint.endpointRegionalType, null);}}
|
train
| false
|
2,783
|
public CreateImageBuilderResult createImageBuilder(CreateImageBuilderRequest request) {request = beforeClientExecution(request);return executeCreateImageBuilder(request);}
|
[
"public",
"CreateImageBuilderResult",
"createImageBuilder",
"(",
"CreateImageBuilderRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateImageBuilder",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateImageBuilderResponse CreateImageBuilder(CreateImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateImageBuilderResponseUnmarshaller.Instance;return Invoke<CreateImageBuilderResponse>(request, options);}
|
train
| true
|
2,785
|
public UpdateSegmentResult updateSegment(UpdateSegmentRequest request) {request = beforeClientExecution(request);return executeUpdateSegment(request);}
|
[
"public",
"UpdateSegmentResult",
"updateSegment",
"(",
"UpdateSegmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateSegment",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateSegmentResponse UpdateSegment(UpdateSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSegmentResponseUnmarshaller.Instance;return Invoke<UpdateSegmentResponse>(request, options);}
|
train
| true
|
2,786
|
public DescribeSnapshotsResult describeSnapshots() {return describeSnapshots(new DescribeSnapshotsRequest());}
|
[
"public",
"DescribeSnapshotsResult",
"describeSnapshots",
"(",
")",
"{",
"return",
"describeSnapshots",
"(",
"new",
"DescribeSnapshotsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeSnapshotsResponse DescribeSnapshots(){return DescribeSnapshots(new DescribeSnapshotsRequest());}
|
train
| false
|
2,787
|
public AddNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}
|
[
"public",
"AddNoteCommand",
"setObjectId",
"(",
"RevObject",
"id",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"id",
"=",
"id",
";",
"return",
"this",
";",
"}"
] |
public virtual NGit.Api.AddNoteCommand SetObjectId(RevObject id){CheckCallable();this.id = id;return this;}
|
train
| false
|
2,788
|
public String toString() {return path;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"path",
";",
"}"
] |
public override string ToString(){return path;}
|
train
| false
|
2,789
|
public GetMetricStatisticsResult getMetricStatistics(GetMetricStatisticsRequest request) {request = beforeClientExecution(request);return executeGetMetricStatistics(request);}
|
[
"public",
"GetMetricStatisticsResult",
"getMetricStatistics",
"(",
"GetMetricStatisticsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetMetricStatistics",
"(",
"request",
")",
";",
"}"
] |
public virtual GetMetricStatisticsResponse GetMetricStatistics(GetMetricStatisticsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMetricStatisticsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMetricStatisticsResponseUnmarshaller.Instance;return Invoke<GetMetricStatisticsResponse>(request, options);}
|
train
| true
|
2,790
|
public DescribeAutoScalingInstancesResult describeAutoScalingInstances(DescribeAutoScalingInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingInstances(request);}
|
[
"public",
"DescribeAutoScalingInstancesResult",
"describeAutoScalingInstances",
"(",
"DescribeAutoScalingInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAutoScalingInstances",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance;return Invoke<DescribeAutoScalingInstancesResponse>(request, options);}
|
train
| true
|
2,791
|
public TokenFilter create(TokenStream input) {return new KStemFilter(input);}
|
[
"public",
"TokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"KStemFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new KStemFilter(input);}
|
train
| false
|
2,792
|
public CreateEnvironmentRequest(String applicationName, String environmentName) {setApplicationName(applicationName);setEnvironmentName(environmentName);}
|
[
"public",
"CreateEnvironmentRequest",
"(",
"String",
"applicationName",
",",
"String",
"environmentName",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"setEnvironmentName",
"(",
"environmentName",
")",
";",
"}"
] |
public CreateEnvironmentRequest(string applicationName, string environmentName){_applicationName = applicationName;_environmentName = environmentName;}
|
train
| false
|
2,793
|
public static LongBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteLongArrayBuffer(capacity);}
|
[
"public",
"static",
"LongBuffer",
"allocate",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"return",
"new",
"ReadWriteLongArrayBuffer",
"(",
"capacity",
")",
";",
"}"
] |
public static java.nio.LongBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteLongArrayBuffer(capacity_1);}
|
train
| false
|
2,794
|
public GetIdentityMailFromDomainAttributesResult getIdentityMailFromDomainAttributes(GetIdentityMailFromDomainAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityMailFromDomainAttributes(request);}
|
[
"public",
"GetIdentityMailFromDomainAttributesResult",
"getIdentityMailFromDomainAttributes",
"(",
"GetIdentityMailFromDomainAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIdentityMailFromDomainAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual GetIdentityMailFromDomainAttributesResponse GetIdentityMailFromDomainAttributes(GetIdentityMailFromDomainAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityMailFromDomainAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityMailFromDomainAttributesResponseUnmarshaller.Instance;return Invoke<GetIdentityMailFromDomainAttributesResponse>(request, options);}
|
train
| true
|
2,795
|
public boolean isForce() {return force;}
|
[
"public",
"boolean",
"isForce",
"(",
")",
"{",
"return",
"force",
";",
"}"
] |
public virtual bool IsForce(){return force;}
|
train
| false
|
2,796
|
public DescribeImageScanFindingsResult describeImageScanFindings(DescribeImageScanFindingsRequest request) {request = beforeClientExecution(request);return executeDescribeImageScanFindings(request);}
|
[
"public",
"DescribeImageScanFindingsResult",
"describeImageScanFindings",
"(",
"DescribeImageScanFindingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeImageScanFindings",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeImageScanFindingsResponse DescribeImageScanFindings(DescribeImageScanFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImageScanFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImageScanFindingsResponseUnmarshaller.Instance;return Invoke<DescribeImageScanFindingsResponse>(request, options);}
|
train
| false
|
2,797
|
public SendContactMethodVerificationResult sendContactMethodVerification(SendContactMethodVerificationRequest request) {request = beforeClientExecution(request);return executeSendContactMethodVerification(request);}
|
[
"public",
"SendContactMethodVerificationResult",
"sendContactMethodVerification",
"(",
"SendContactMethodVerificationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendContactMethodVerification",
"(",
"request",
")",
";",
"}"
] |
public virtual SendContactMethodVerificationResponse SendContactMethodVerification(SendContactMethodVerificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendContactMethodVerificationRequestMarshaller.Instance;options.ResponseUnmarshaller = SendContactMethodVerificationResponseUnmarshaller.Instance;return Invoke<SendContactMethodVerificationResponse>(request, options);}
|
train
| false
|
2,798
|
public DeleteReceiptFilterResult deleteReceiptFilter(DeleteReceiptFilterRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptFilter(request);}
|
[
"public",
"DeleteReceiptFilterResult",
"deleteReceiptFilter",
"(",
"DeleteReceiptFilterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteReceiptFilter",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteReceiptFilterResponse DeleteReceiptFilter(DeleteReceiptFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptFilterResponseUnmarshaller.Instance;return Invoke<DeleteReceiptFilterResponse>(request, options);}
|
train
| true
|
2,799
|
public void updateFormulaResult(ValueEval result, CellCacheEntry[] sensitiveInputCells, FormulaUsedBlankCellSet usedBlankAreas) {updateValue(result);setSensitiveInputCells(sensitiveInputCells);_usedBlankCellGroup = usedBlankAreas;}
|
[
"public",
"void",
"updateFormulaResult",
"(",
"ValueEval",
"result",
",",
"CellCacheEntry",
"[",
"]",
"sensitiveInputCells",
",",
"FormulaUsedBlankCellSet",
"usedBlankAreas",
")",
"{",
"updateValue",
"(",
"result",
")",
";",
"setSensitiveInputCells",
"(",
"sensitiveInputCells",
")",
";",
"_usedBlankCellGroup",
"=",
"usedBlankAreas",
";",
"}"
] |
public void UpdateFormulaResult(ValueEval result, CellCacheEntry[] sensitiveInputCells, FormulaUsedBlankCellSet usedBlankAreas){UpdateValue(result);SetSensitiveInputCells(sensitiveInputCells);_usedBlankCellGroup = usedBlankAreas;}
|
train
| false
|
2,800
|
public String toString() {final StringBuilder r = new StringBuilder();r.append("("); for (int i = 0; i < subfilters.length; i++) {if (i > 0)r.append(" OR "); r.append(subfilters[i].toString());}r.append(")"); return r.toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"final",
"StringBuilder",
"r",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"r",
".",
"append",
"(",
"\"(\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"subfilters",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"i",
">",
"0",
")",
"r",
".",
"append",
"(",
"\" OR \"",
")",
";",
"r",
".",
"append",
"(",
"subfilters",
"[",
"i",
"]",
".",
"toString",
"(",
")",
")",
";",
"}",
"r",
".",
"append",
"(",
"\")\"",
")",
";",
"return",
"r",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("(");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(" AND ");}r.Append(subfilters[i].ToString());}r.Append(")");return r.ToString();}
|
train
| false
|
2,801
|
public boolean equals( Object o ) {return o instanceof FrenchStemmer;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"o",
")",
"{",
"return",
"o",
"instanceof",
"FrenchStemmer",
";",
"}"
] |
public override bool Equals(object o){return o is FrenchStemmer;}
|
train
| false
|
2,802
|
public MergedCellsTable() {_mergedRegions = new ArrayList<>();}
|
[
"public",
"MergedCellsTable",
"(",
")",
"{",
"_mergedRegions",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"}"
] |
public MergedCellsTable(){_mergedRegions = new List<CellRangeAddress>();}
|
train
| false
|
2,803
|
public PrecedencePredicateTransition(ATNState target, int precedence) {super(target);this.precedence = precedence;}
|
[
"public",
"PrecedencePredicateTransition",
"(",
"ATNState",
"target",
",",
"int",
"precedence",
")",
"{",
"super",
"(",
"target",
")",
";",
"this",
".",
"precedence",
"=",
"precedence",
";",
"}"
] |
public PrecedencePredicateTransition(ATNState target, int precedence): base(target){this.precedence = precedence;}
|
train
| false
|
2,804
|
public String toFormulaString() {throw new RuntimeException("Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't");}
|
[
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't\"",
")",
";",
"}"
] |
public override String ToFormulaString(){throw new RecordFormatException("Coding Error: Expected ExpPtg to be Converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't");}
|
train
| false
|
2,805
|
public ParseTree getChild(int i) {return children!=null && i>=0 && i<children.size() ? children.get(i) : null;}
|
[
"public",
"ParseTree",
"getChild",
"(",
"int",
"i",
")",
"{",
"return",
"children",
"!=",
"null",
"&&",
"i",
">=",
"0",
"&&",
"i",
"<",
"children",
".",
"size",
"(",
")",
"?",
"children",
".",
"get",
"(",
"i",
")",
":",
"null",
";",
"}"
] |
public override IParseTree GetChild(int i){return children != null && i >= 0 && i < children.Count ? children[i] : null;}
|
train
| false
|
2,806
|
public ListIterator<E> listIterator(int index) {return delegate().listIterator(index); }
|
[
"public",
"ListIterator",
"<",
"E",
">",
"listIterator",
"(",
"int",
"index",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"listIterator",
"(",
"index",
")",
";",
"}"
] |
public virtual java.util.ListIterator<E> listIterator(int location){lock (mutex){return list.listIterator(location);}}
|
train
| false
|
2,807
|
public StringBuffer getBuffer() {return buf;}
|
[
"public",
"StringBuffer",
"getBuffer",
"(",
")",
"{",
"return",
"buf",
";",
"}"
] |
public virtual java.lang.StringBuffer getBuffer(){return buf;}
|
train
| false
|
2,808
|
public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray) {hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.init();bytesUsed = bytesStartArray.bytesUsed() == null? Counter.newCounter() : bytesStartArray.bytesUsed();bytesUsed.addAndGet(hashSize * Integer.BYTES);}
|
[
"public",
"BytesRefHash",
"(",
"ByteBlockPool",
"pool",
",",
"int",
"capacity",
",",
"BytesStartArray",
"bytesStartArray",
")",
"{",
"hashSize",
"=",
"capacity",
";",
"hashHalfSize",
"=",
"hashSize",
">",
">",
"1",
";",
"hashMask",
"=",
"hashSize",
"-",
"1",
";",
"this",
".",
"pool",
"=",
"pool",
";",
"ids",
"=",
"new",
"int",
"[",
"hashSize",
"]",
";",
"Arrays",
".",
"fill",
"(",
"ids",
",",
"-",
"1",
")",
";",
"this",
".",
"bytesStartArray",
"=",
"bytesStartArray",
";",
"bytesStart",
"=",
"bytesStartArray",
".",
"init",
"(",
")",
";",
"bytesUsed",
"=",
"bytesStartArray",
".",
"bytesUsed",
"(",
")",
"==",
"null",
"?",
"Counter",
".",
"newCounter",
"(",
")",
":",
"bytesStartArray",
".",
"bytesUsed",
"(",
")",
";",
"bytesUsed",
".",
"addAndGet",
"(",
"hashSize",
"*",
"Integer",
".",
"BYTES",
")",
";",
"}"
] |
public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray){hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.Fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.Init();bytesUsed = bytesStartArray.BytesUsed() == null ? Counter.NewCounter() : bytesStartArray.BytesUsed();bytesUsed.AddAndGet(hashSize * RamUsageEstimator.NUM_BYTES_INT32);}
|
train
| false
|
2,809
|
public GetIdentityDkimAttributesResult getIdentityDkimAttributes(GetIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityDkimAttributes(request);}
|
[
"public",
"GetIdentityDkimAttributesResult",
"getIdentityDkimAttributes",
"(",
"GetIdentityDkimAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetIdentityDkimAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(GetIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.Instance;return Invoke<GetIdentityDkimAttributesResponse>(request, options);}
|
train
| true
|
2,810
|
public DescribeSubnetsResult describeSubnets(DescribeSubnetsRequest request) {request = beforeClientExecution(request);return executeDescribeSubnets(request);}
|
[
"public",
"DescribeSubnetsResult",
"describeSubnets",
"(",
"DescribeSubnetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSubnets",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubnetsResponseUnmarshaller.Instance;return Invoke<DescribeSubnetsResponse>(request, options);}
|
train
| true
|
2,811
|
public final void serialize(LittleEndianOutput out) {if (getTextLength() > 0) {out.writeShort(getTextLength());out.writeByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte) {StringUtil.putUnicodeLE(field_3_text, out);} else {StringUtil.putCompressedUnicode(field_3_text, out);}}}
|
[
"public",
"final",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"if",
"(",
"getTextLength",
"(",
")",
">",
"0",
")",
"{",
"out",
".",
"writeShort",
"(",
"getTextLength",
"(",
")",
")",
";",
"out",
".",
"writeByte",
"(",
"field_2_hasMultibyte",
"?",
"0x01",
":",
"0x00",
")",
";",
"if",
"(",
"field_2_hasMultibyte",
")",
"{",
"StringUtil",
".",
"putUnicodeLE",
"(",
"field_3_text",
",",
"out",
")",
";",
"}",
"else",
"{",
"StringUtil",
".",
"putCompressedUnicode",
"(",
"field_3_text",
",",
"out",
")",
";",
"}",
"}",
"}"
] |
public override void Serialize(ILittleEndianOutput out1){if (TextLength > 0){out1.WriteShort(TextLength);out1.WriteByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte){StringUtil.PutUnicodeLE(field_3_text, out1);}else{StringUtil.PutCompressedUnicode(field_3_text, out1);}}}
|
train
| false
|
2,812
|
public DeleteMessageRequest(String queueUrl, String receiptHandle) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);}
|
[
"public",
"DeleteMessageRequest",
"(",
"String",
"queueUrl",
",",
"String",
"receiptHandle",
")",
"{",
"setQueueUrl",
"(",
"queueUrl",
")",
";",
"setReceiptHandle",
"(",
"receiptHandle",
")",
";",
"}"
] |
public DeleteMessageRequest(string queueUrl, string receiptHandle){_queueUrl = queueUrl;_receiptHandle = receiptHandle;}
|
train
| false
|
2,813
|
public int find(char[] key, int start) {int d;char p = root;int i = start;char c;while (p != 0) {if (sc[p] == 0xFFFF) {if (strcmp(key, i, kv.getArray(), lo[p]) == 0) {return eq[p];} else {return -1;}}c = key[i];d = c - sc[p];if (d == 0) {if (c == 0) {return eq[p];}i++;p = eq[p];} else if (d < 0) {p = lo[p];} else {p = hi[p];}}return -1;}
|
[
"public",
"int",
"find",
"(",
"char",
"[",
"]",
"key",
",",
"int",
"start",
")",
"{",
"int",
"d",
";",
"char",
"p",
"=",
"root",
";",
"int",
"i",
"=",
"start",
";",
"char",
"c",
";",
"while",
"(",
"p",
"!=",
"0",
")",
"{",
"if",
"(",
"sc",
"[",
"p",
"]",
"==",
"0xFFFF",
")",
"{",
"if",
"(",
"strcmp",
"(",
"key",
",",
"i",
",",
"kv",
".",
"getArray",
"(",
")",
",",
"lo",
"[",
"p",
"]",
")",
"==",
"0",
")",
"{",
"return",
"eq",
"[",
"p",
"]",
";",
"}",
"else",
"{",
"return",
"-",
"1",
";",
"}",
"}",
"c",
"=",
"key",
"[",
"i",
"]",
";",
"d",
"=",
"c",
"-",
"sc",
"[",
"p",
"]",
";",
"if",
"(",
"d",
"==",
"0",
")",
"{",
"if",
"(",
"c",
"==",
"0",
")",
"{",
"return",
"eq",
"[",
"p",
"]",
";",
"}",
"i",
"++",
";",
"p",
"=",
"eq",
"[",
"p",
"]",
";",
"}",
"else",
"if",
"(",
"d",
"<",
"0",
")",
"{",
"p",
"=",
"lo",
"[",
"p",
"]",
";",
"}",
"else",
"{",
"p",
"=",
"hi",
"[",
"p",
"]",
";",
"}",
"}",
"return",
"-",
"1",
";",
"}"
] |
public virtual int Find(char[] key, int start){int d;char p = m_root;int i = start;char c;while (p != 0){if (m_sc[p] == 0xFFFF){if (StrCmp(key, i, m_kv.Array, m_lo[p]) == 0){return m_eq[p];}else{return -1;}}c = key[i];d = c - m_sc[p];if (d == 0){if (c == 0){return m_eq[p];}i++;p = m_eq[p];}else if (d < 0){p = m_lo[p];}else{p = m_hi[p];}}return -1;}
|
train
| true
|
2,814
|
public DescribeIdFormatResult describeIdFormat(DescribeIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeIdFormat(request);}
|
[
"public",
"DescribeIdFormatResult",
"describeIdFormat",
"(",
"DescribeIdFormatRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeIdFormat",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeIdFormatResponse DescribeIdFormat(DescribeIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdFormatResponseUnmarshaller.Instance;return Invoke<DescribeIdFormatResponse>(request, options);}
|
train
| true
|
2,815
|
public void setCharAt(int index, char ch) {if (index < 0 || index >= count) {throw indexAndLength(index);}if (shared) {value = value.clone();shared = false;}value[index] = ch;}
|
[
"public",
"void",
"setCharAt",
"(",
"int",
"index",
",",
"char",
"ch",
")",
"{",
"if",
"(",
"index",
"<",
"0",
"||",
"index",
">=",
"count",
")",
"{",
"throw",
"indexAndLength",
"(",
"index",
")",
";",
"}",
"if",
"(",
"shared",
")",
"{",
"value",
"=",
"value",
".",
"clone",
"(",
")",
";",
"shared",
"=",
"false",
";",
"}",
"value",
"[",
"index",
"]",
"=",
"ch",
";",
"}"
] |
public virtual void setCharAt(int index, char ch){if (index < 0 || index >= count){throw indexAndLength(index);}if (shared){value = (char[])value.Clone();shared = false;}value[index] = ch;}
|
train
| false
|
2,816
|
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize) {FieldFragList ffl = new SimpleFieldFragList( fragCharSize );List<WeightedPhraseInfo> wpil = new ArrayList<>();Iterator<WeightedPhraseInfo> ite = fieldPhraseList.phraseList.iterator();WeightedPhraseInfo phraseInfo = null;while( true ){if( !ite.hasNext() ) break;phraseInfo = ite.next();if( phraseInfo == null ) break;wpil.add( phraseInfo );}if( wpil.size() > 0 )ffl.add( 0, Integer.MAX_VALUE, wpil );return ffl;}
|
[
"public",
"FieldFragList",
"createFieldFragList",
"(",
"FieldPhraseList",
"fieldPhraseList",
",",
"int",
"fragCharSize",
")",
"{",
"FieldFragList",
"ffl",
"=",
"new",
"SimpleFieldFragList",
"(",
"fragCharSize",
")",
";",
"List",
"<",
"WeightedPhraseInfo",
">",
"wpil",
"=",
"new",
"ArrayList",
"<",
">",
"(",
")",
";",
"Iterator",
"<",
"WeightedPhraseInfo",
">",
"ite",
"=",
"fieldPhraseList",
".",
"phraseList",
".",
"iterator",
"(",
")",
";",
"WeightedPhraseInfo",
"phraseInfo",
"=",
"null",
";",
"while",
"(",
"true",
")",
"{",
"if",
"(",
"!",
"ite",
".",
"hasNext",
"(",
")",
")",
"break",
";",
"phraseInfo",
"=",
"ite",
".",
"next",
"(",
")",
";",
"if",
"(",
"phraseInfo",
"==",
"null",
")",
"break",
";",
"wpil",
".",
"add",
"(",
"phraseInfo",
")",
";",
"}",
"if",
"(",
"wpil",
".",
"size",
"(",
")",
">",
"0",
")",
"ffl",
".",
"add",
"(",
"0",
",",
"Integer",
".",
"MAX_VALUE",
",",
"wpil",
")",
";",
"return",
"ffl",
";",
"}"
] |
public virtual FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize){FieldFragList ffl = new SimpleFieldFragList(fragCharSize);List<WeightedPhraseInfo> wpil = new List<WeightedPhraseInfo>();using (IEnumerator<WeightedPhraseInfo> ite = fieldPhraseList.PhraseList.GetEnumerator()){WeightedPhraseInfo phraseInfo = null;while (true){if (!ite.MoveNext()) break;phraseInfo = ite.Current;if (phraseInfo == null) break;wpil.Add(phraseInfo);}if (wpil.Count > 0)ffl.Add(0, int.MaxValue, wpil);return ffl;}}
|
train
| false
|
2,817
|
public List<String> getModifiedList() {return modifiedList;}
|
[
"public",
"List",
"<",
"String",
">",
"getModifiedList",
"(",
")",
"{",
"return",
"modifiedList",
";",
"}"
] |
public virtual IList<string> GetModifiedList(){return modifiedList;}
|
train
| false
|
2,818
|
public synchronized int capacity() {return elementData.length;}
|
[
"public",
"synchronized",
"int",
"capacity",
"(",
")",
"{",
"return",
"elementData",
".",
"length",
";",
"}"
] |
public virtual int capacity(){lock (this){return elementData.Length;}}
|
train
| false
|
2,819
|
public GermanLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"GermanLightStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public GermanLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
2,820
|
public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) {checkRange(getDx1(), 0, 1023, "dx1");checkRange(getDx2(), 0, 1023, "dx2");checkRange(getDy1(), 0, 255, "dy1");checkRange(getDy2(), 0, 255, "dy2");checkRange(getCol1(), 0, MAX_COL, "col1");checkRange(getCol2(), 0, MAX_COL, "col2");checkRange(getRow1(), 0, MAX_ROW, "row1");checkRange(getRow2(), 0, MAX_ROW, "row2");setCol1(col1);setRow1(row1);setDx1(x1);setDy1(y1);setCol2(col2);setRow2(row2);setDx2(x2);setDy2(y2);}
|
[
"public",
"void",
"setAnchor",
"(",
"short",
"col1",
",",
"int",
"row1",
",",
"int",
"x1",
",",
"int",
"y1",
",",
"short",
"col2",
",",
"int",
"row2",
",",
"int",
"x2",
",",
"int",
"y2",
")",
"{",
"checkRange",
"(",
"getDx1",
"(",
")",
",",
"0",
",",
"1023",
",",
"\"dx1\"",
")",
";",
"checkRange",
"(",
"getDx2",
"(",
")",
",",
"0",
",",
"1023",
",",
"\"dx2\"",
")",
";",
"checkRange",
"(",
"getDy1",
"(",
")",
",",
"0",
",",
"255",
",",
"\"dy1\"",
")",
";",
"checkRange",
"(",
"getDy2",
"(",
")",
",",
"0",
",",
"255",
",",
"\"dy2\"",
")",
";",
"checkRange",
"(",
"getCol1",
"(",
")",
",",
"0",
",",
"MAX_COL",
",",
"\"col1\"",
")",
";",
"checkRange",
"(",
"getCol2",
"(",
")",
",",
"0",
",",
"MAX_COL",
",",
"\"col2\"",
")",
";",
"checkRange",
"(",
"getRow1",
"(",
")",
",",
"0",
",",
"MAX_ROW",
",",
"\"row1\"",
")",
";",
"checkRange",
"(",
"getRow2",
"(",
")",
",",
"0",
",",
"MAX_ROW",
",",
"\"row2\"",
")",
";",
"setCol1",
"(",
"col1",
")",
";",
"setRow1",
"(",
"row1",
")",
";",
"setDx1",
"(",
"x1",
")",
";",
"setDy1",
"(",
"y1",
")",
";",
"setCol2",
"(",
"col2",
")",
";",
"setRow2",
"(",
"row2",
")",
";",
"setDx2",
"(",
"x2",
")",
";",
"setDy2",
"(",
"y2",
")",
";",
"}"
] |
public void SetAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2){CheckRange(x1, 0, 1023, "dx1");CheckRange(x2, 0, 1023, "dx2");CheckRange(y1, 0, 255, "dy1");CheckRange(y2, 0, 255, "dy2");CheckRange(col1, 0, 255, "col1");CheckRange(col2, 0, 255, "col2");CheckRange(row1, 0, 255 * 256, "row1");CheckRange(row2, 0, 255 * 256, "row2");this.Col1 = col1;this.Row1 = row1;this.Dx1 = x1;this.Dy1 = y1;this.Col2 = col2;this.Row2 = row2;this.Dx2 = x2;this.Dy2 = y2;}
|
train
| false
|
2,821
|
public static ErrorEval valueOf(int errorCode) {FormulaError error = FormulaError.forInt(errorCode);ErrorEval eval = evals.get(error);if (eval != null) {return eval;} else {throw new RuntimeException("Unhandled error type for code " + errorCode);}}
|
[
"public",
"static",
"ErrorEval",
"valueOf",
"(",
"int",
"errorCode",
")",
"{",
"FormulaError",
"error",
"=",
"FormulaError",
".",
"forInt",
"(",
"errorCode",
")",
";",
"ErrorEval",
"eval",
"=",
"evals",
".",
"get",
"(",
"error",
")",
";",
"if",
"(",
"eval",
"!=",
"null",
")",
"{",
"return",
"eval",
";",
"}",
"else",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Unhandled error type for code \"",
"+",
"errorCode",
")",
";",
"}",
"}"
] |
public static ErrorEval ValueOf(int errorCode){FormulaError error = FormulaError.ForInt(errorCode);if (evals.ContainsKey(error))return evals[error];throw new RuntimeException("Unhandled error type for code " + errorCode);}
|
train
| false
|
2,822
|
public static long calculateChecksum(byte[] data) {Checksum sum = new CRC32();sum.update(data, 0, data.length);return sum.getValue();}
|
[
"public",
"static",
"long",
"calculateChecksum",
"(",
"byte",
"[",
"]",
"data",
")",
"{",
"Checksum",
"sum",
"=",
"new",
"CRC32",
"(",
")",
";",
"sum",
".",
"update",
"(",
"data",
",",
"0",
",",
"data",
".",
"length",
")",
";",
"return",
"sum",
".",
"getValue",
"(",
")",
";",
"}"
] |
public static long CalculateChecksum(byte[] data){CRC32 sum = new CRC32();return (long)sum.ByteCRC(ref data);}
|
train
| false
|
2,823
|
public RevCommit lookupCommit(AnyObjectId id) {RevCommit c = (RevCommit) objects.get(id);if (c == null) {c = createCommit(id);objects.add(c);}return c;}
|
[
"public",
"RevCommit",
"lookupCommit",
"(",
"AnyObjectId",
"id",
")",
"{",
"RevCommit",
"c",
"=",
"(",
"RevCommit",
")",
"objects",
".",
"get",
"(",
"id",
")",
";",
"if",
"(",
"c",
"==",
"null",
")",
"{",
"c",
"=",
"createCommit",
"(",
"id",
")",
";",
"objects",
".",
"add",
"(",
"c",
")",
";",
"}",
"return",
"c",
";",
"}"
] |
public virtual RevCommit LookupCommit(AnyObjectId id){RevCommit c = (RevCommit)objects.Get(id);if (c == null){c = CreateCommit(id);objects.Add(c);}return c;}
|
train
| false
|
2,824
|
public String toString() {QueryText text = this.values.get(0);return "<path start='" + text.begin + "' end='" + text.end + "' path='"+ getPathString() + "'/>";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"QueryText",
"text",
"=",
"this",
".",
"values",
".",
"get",
"(",
"0",
")",
";",
"return",
"\"<path start='\"",
"+",
"text",
".",
"begin",
"+",
"\"' end='\"",
"+",
"text",
".",
"end",
"+",
"\"' path='\"",
"+",
"getPathString",
"(",
")",
"+",
"\"'/>\"",
";",
"}"
] |
public override string ToString(){QueryText text = this.values[0];return "<path start='" + text.Begin + "' end='" + text.End + "' path='"+ GetPathString() + "'/>";}
|
train
| false
|
2,825
|
public TokenStream create(TokenStream input) {StopFilter stopFilter = new StopFilter(input,stopWords);return stopFilter;}
|
[
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"StopFilter",
"stopFilter",
"=",
"new",
"StopFilter",
"(",
"input",
",",
"stopWords",
")",
";",
"return",
"stopFilter",
";",
"}"
] |
public override TokenStream Create(TokenStream input){StopFilter stopFilter = new StopFilter(m_luceneMatchVersion, input, stopWords);stopFilter.SetEnablePositionIncrements(enablePositionIncrements);return stopFilter;}
|
train
| false
|
2,826
|
public DeleteStreamProcessorResult deleteStreamProcessor(DeleteStreamProcessorRequest request) {request = beforeClientExecution(request);return executeDeleteStreamProcessor(request);}
|
[
"public",
"DeleteStreamProcessorResult",
"deleteStreamProcessor",
"(",
"DeleteStreamProcessorRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteStreamProcessor",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteStreamProcessorResponse DeleteStreamProcessor(DeleteStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamProcessorResponseUnmarshaller.Instance;return Invoke<DeleteStreamProcessorResponse>(request, options);}
|
train
| true
|
2,827
|
public RuleWithSetExceptions(String suffix, int min, String replacement,String[] exceptions) {super(suffix, min, replacement);for (int i = 0; i < exceptions.length; i++) {if (!exceptions[i].endsWith(suffix))throw new RuntimeException("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}this.exceptions = new CharArraySet(Arrays.asList(exceptions), false);}
|
[
"public",
"RuleWithSetExceptions",
"(",
"String",
"suffix",
",",
"int",
"min",
",",
"String",
"replacement",
",",
"String",
"[",
"]",
"exceptions",
")",
"{",
"super",
"(",
"suffix",
",",
"min",
",",
"replacement",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"exceptions",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"!",
"exceptions",
"[",
"i",
"]",
".",
"endsWith",
"(",
"suffix",
")",
")",
"throw",
"new",
"RuntimeException",
"(",
"\"useless exception '\"",
"+",
"exceptions",
"[",
"i",
"]",
"+",
"\"' does not end with '\"",
"+",
"suffix",
"+",
"\"'\"",
")",
";",
"}",
"this",
".",
"exceptions",
"=",
"new",
"CharArraySet",
"(",
"Arrays",
".",
"asList",
"(",
"exceptions",
")",
",",
"false",
")",
";",
"}"
] |
public RuleWithSetExceptions(string suffix, int min, string replacement, string[] exceptions) : base(suffix, min, replacement){for (int i = 0; i < exceptions.Length; i++){if (!exceptions[i].EndsWith(suffix, StringComparison.Ordinal)){throw new Exception("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}}this.m_exceptions = new CharArraySet(LuceneVersion.LUCENE_CURRENT,exceptions, false);}
|
train
| false
|
2,828
|
public CreateClientVpnRouteResult createClientVpnRoute(CreateClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeCreateClientVpnRoute(request);}
|
[
"public",
"CreateClientVpnRouteResult",
"createClientVpnRoute",
"(",
"CreateClientVpnRouteRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateClientVpnRoute",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateClientVpnRouteResponse CreateClientVpnRoute(CreateClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClientVpnRouteResponseUnmarshaller.Instance;return Invoke<CreateClientVpnRouteResponse>(request, options);}
|
train
| true
|
2,829
|
public RangeTransition(ATNState target, int from, int to) {super(target);this.from = from;this.to = to;}
|
[
"public",
"RangeTransition",
"(",
"ATNState",
"target",
",",
"int",
"from",
",",
"int",
"to",
")",
"{",
"super",
"(",
"target",
")",
";",
"this",
".",
"from",
"=",
"from",
";",
"this",
".",
"to",
"=",
"to",
";",
"}"
] |
public RangeTransition(ATNState target, int from, int to): base(target){this.from = from;this.to = to;}
|
train
| false
|
2,830
|
public TypeAsPayloadTokenFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"TypeAsPayloadTokenFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public TypeAsPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
2,831
|
public void fromRaw(int[] ints, int p) {w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];}
|
[
"public",
"void",
"fromRaw",
"(",
"int",
"[",
"]",
"ints",
",",
"int",
"p",
")",
"{",
"w1",
"=",
"ints",
"[",
"p",
"]",
";",
"w2",
"=",
"ints",
"[",
"p",
"+",
"1",
"]",
";",
"w3",
"=",
"ints",
"[",
"p",
"+",
"2",
"]",
";",
"w4",
"=",
"ints",
"[",
"p",
"+",
"3",
"]",
";",
"w5",
"=",
"ints",
"[",
"p",
"+",
"4",
"]",
";",
"}"
] |
public virtual void FromRaw(int[] ints, int p){w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];}
|
train
| false
|
2,832
|
public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer) {super(input);this.normalizer = normalizer;}
|
[
"public",
"ICUNormalizer2Filter",
"(",
"TokenStream",
"input",
",",
"Normalizer2",
"normalizer",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"normalizer",
"=",
"normalizer",
";",
"}"
] |
public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer): base(input){this.normalizer = normalizer;this.termAtt = AddAttribute<ICharTermAttribute>();}
|
train
| false
|
2,833
|
public static TreeFilter create(TreeFilter a) {return new NotTreeFilter(a);}
|
[
"public",
"static",
"TreeFilter",
"create",
"(",
"TreeFilter",
"a",
")",
"{",
"return",
"new",
"NotTreeFilter",
"(",
"a",
")",
";",
"}"
] |
public static TreeFilter Create(TreeFilter a){return new NGit.Treewalk.Filter.NotTreeFilter(a);}
|
train
| false
|
2,834
|
public boolean isMalformed() {return this.type == TYPE_MALFORMED_INPUT;}
|
[
"public",
"boolean",
"isMalformed",
"(",
")",
"{",
"return",
"this",
".",
"type",
"==",
"TYPE_MALFORMED_INPUT",
";",
"}"
] |
public virtual bool isMalformed(){return this.type == TYPE_MALFORMED_INPUT;}
|
train
| false
|
2,835
|
public void enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence) {Pair<ParserRuleContext, Integer> pair = new Pair<ParserRuleContext, Integer>(_ctx, localctx.invokingState);_parentContextStack.push(pair);super.enterRecursionRule(localctx, state, ruleIndex, precedence);}
|
[
"public",
"void",
"enterRecursionRule",
"(",
"ParserRuleContext",
"localctx",
",",
"int",
"state",
",",
"int",
"ruleIndex",
",",
"int",
"precedence",
")",
"{",
"Pair",
"<",
"ParserRuleContext",
",",
"Integer",
">",
"pair",
"=",
"new",
"Pair",
"<",
"ParserRuleContext",
",",
"Integer",
">",
"(",
"_ctx",
",",
"localctx",
".",
"invokingState",
")",
";",
"_parentContextStack",
".",
"push",
"(",
"pair",
")",
";",
"super",
".",
"enterRecursionRule",
"(",
"localctx",
",",
"state",
",",
"ruleIndex",
",",
"precedence",
")",
";",
"}"
] |
public override void EnterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence){_parentContextStack.Push(Tuple.Create(RuleContext, localctx.invokingState));base.EnterRecursionRule(localctx, state, ruleIndex, precedence);}
|
train
| false
|
2,836
|
public DescribeAddressesResult describeAddresses(DescribeAddressesRequest request) {request = beforeClientExecution(request);return executeDescribeAddresses(request);}
|
[
"public",
"DescribeAddressesResult",
"describeAddresses",
"(",
"DescribeAddressesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeAddresses",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeAddressesResponse DescribeAddresses(DescribeAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAddressesResponseUnmarshaller.Instance;return Invoke<DescribeAddressesResponse>(request, options);}
|
train
| true
|
2,837
|
public int getEstimatedUniqueValues(){return getEstimatedNumberUniqueValuesAllowingForCollisions(bloomSize, filter.cardinality());}
|
[
"public",
"int",
"getEstimatedUniqueValues",
"(",
")",
"{",
"return",
"getEstimatedNumberUniqueValuesAllowingForCollisions",
"(",
"bloomSize",
",",
"filter",
".",
"cardinality",
"(",
")",
")",
";",
"}"
] |
public virtual int GetEstimatedUniqueValues(){return GetEstimatedNumberUniqueValuesAllowingForCollisions(_bloomSize, _filter.Cardinality());}
|
train
| false
|
2,838
|
public DescribeTransformJobResult describeTransformJob(DescribeTransformJobRequest request) {request = beforeClientExecution(request);return executeDescribeTransformJob(request);}
|
[
"public",
"DescribeTransformJobResult",
"describeTransformJob",
"(",
"DescribeTransformJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeTransformJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeTransformJobResponse DescribeTransformJob(DescribeTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransformJobResponseUnmarshaller.Instance;return Invoke<DescribeTransformJobResponse>(request, options);}
|
train
| true
|
2,839
|
public HeaderFooterRecord clone() {return copy();}
|
[
"public",
"HeaderFooterRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] |
public override Object Clone(){return CloneViaReserialise();}
|
train
| false
|
2,840
|
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block0 = blocks[blocksOffset++];values[valuesOffset++] = block0 >>> 40;values[valuesOffset++] = (block0 >>> 16) & 16777215L;final long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | (block1 >>> 56);values[valuesOffset++] = (block1 >>> 32) & 16777215L;values[valuesOffset++] = (block1 >>> 8) & 16777215L;final long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | (block2 >>> 48);values[valuesOffset++] = (block2 >>> 24) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}}
|
[
"public",
"void",
"decode",
"(",
"long",
"[",
"]",
"blocks",
",",
"int",
"blocksOffset",
",",
"long",
"[",
"]",
"values",
",",
"int",
"valuesOffset",
",",
"int",
"iterations",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"iterations",
";",
"++",
"i",
")",
"{",
"final",
"long",
"block0",
"=",
"blocks",
"[",
"blocksOffset",
"++",
"]",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"block0",
">",
">",
">",
"40",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"block0",
">",
">",
">",
"16",
")",
"&",
"16777215L",
";",
"final",
"long",
"block1",
"=",
"blocks",
"[",
"blocksOffset",
"++",
"]",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"(",
"block0",
"&",
"65535L",
")",
"<<",
"8",
")",
"|",
"(",
"block1",
">",
">",
">",
"56",
")",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"block1",
">",
">",
">",
"32",
")",
"&",
"16777215L",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"block1",
">",
">",
">",
"8",
")",
"&",
"16777215L",
";",
"final",
"long",
"block2",
"=",
"blocks",
"[",
"blocksOffset",
"++",
"]",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"(",
"block1",
"&",
"255L",
")",
"<<",
"16",
")",
"|",
"(",
"block2",
">",
">",
">",
"48",
")",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"(",
"block2",
">",
">",
">",
"24",
")",
"&",
"16777215L",
";",
"values",
"[",
"valuesOffset",
"++",
"]",
"=",
"block2",
"&",
"16777215L",
";",
"}",
"}"
] |
public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block0 = blocks[blocksOffset++];values[valuesOffset++] = (long)((ulong)block0 >> 40);values[valuesOffset++] = ((long)((ulong)block0 >> 16)) & 16777215L;long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | ((long)((ulong)block1 >> 56));values[valuesOffset++] = ((long)((ulong)block1 >> 32)) & 16777215L;values[valuesOffset++] = ((long)((ulong)block1 >> 8)) & 16777215L;long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | ((long)((ulong)block2 >> 48));values[valuesOffset++] = ((long)((ulong)block2 >> 24)) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}}
|
train
| false
|
2,841
|
public FieldInfo fieldInfo(int fieldNumber) {if (fieldNumber < 0) {throw new IllegalArgumentException("Illegal field number: " + fieldNumber);}if (fieldNumber >= byNumber.length) {return null;}return byNumber[fieldNumber];}
|
[
"public",
"FieldInfo",
"fieldInfo",
"(",
"int",
"fieldNumber",
")",
"{",
"if",
"(",
"fieldNumber",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Illegal field number: \"",
"+",
"fieldNumber",
")",
";",
"}",
"if",
"(",
"fieldNumber",
">=",
"byNumber",
".",
"length",
")",
"{",
"return",
"null",
";",
"}",
"return",
"byNumber",
"[",
"fieldNumber",
"]",
";",
"}"
] |
public virtual FieldInfo FieldInfo(int fieldNumber){if (fieldNumber < 0){throw new System.ArgumentException("Illegal field number: " + fieldNumber);}Index.FieldInfo ret;byNumber.TryGetValue(fieldNumber, out ret);return ret;}
|
train
| false
|
2,842
|
public DescribeIdentityPoolResult describeIdentityPool(DescribeIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityPool(request);}
|
[
"public",
"DescribeIdentityPoolResult",
"describeIdentityPool",
"(",
"DescribeIdentityPoolRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeIdentityPool",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeIdentityPoolResponse DescribeIdentityPool(DescribeIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityPoolResponseUnmarshaller.Instance;return Invoke<DescribeIdentityPoolResponse>(request, options);}
|
train
| true
|
2,843
|
public static String getText(Node e) {StringBuilder sb = new StringBuilder();getTextBuffer(e, sb);return sb.toString();}
|
[
"public",
"static",
"String",
"getText",
"(",
"Node",
"e",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"getTextBuffer",
"(",
"e",
",",
"sb",
")",
";",
"return",
"sb",
".",
"toString",
"(",
")",
";",
"}"
] |
public static string GetText(XmlNode e){StringBuilder sb = new StringBuilder();GetTextBuffer(e, sb);return sb.ToString();}
|
train
| false
|
2,844
|
public void delete(int key) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {removeAt(i);}}
|
[
"public",
"void",
"delete",
"(",
"int",
"key",
")",
"{",
"int",
"i",
"=",
"binarySearch",
"(",
"mKeys",
",",
"0",
",",
"mSize",
",",
"key",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"removeAt",
"(",
"i",
")",
";",
"}",
"}"
] |
public virtual void delete(int key){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){removeAt(i);}}
|
train
| true
|
2,845
|
public GetCurrentMetricDataResult getCurrentMetricData(GetCurrentMetricDataRequest request) {request = beforeClientExecution(request);return executeGetCurrentMetricData(request);}
|
[
"public",
"GetCurrentMetricDataResult",
"getCurrentMetricData",
"(",
"GetCurrentMetricDataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCurrentMetricData",
"(",
"request",
")",
";",
"}"
] |
public virtual GetCurrentMetricDataResponse GetCurrentMetricData(GetCurrentMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCurrentMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;return Invoke<GetCurrentMetricDataResponse>(request, options);}
|
train
| true
|
2,846
|
public void append(String name, FileMode mode, AnyObjectId id) {append(encode(name), mode, id);}
|
[
"public",
"void",
"append",
"(",
"String",
"name",
",",
"FileMode",
"mode",
",",
"AnyObjectId",
"id",
")",
"{",
"append",
"(",
"encode",
"(",
"name",
")",
",",
"mode",
",",
"id",
")",
";",
"}"
] |
public virtual void Append(string name, FileMode mode, AnyObjectId id){Append(Constants.Encode(name), mode, id);}
|
train
| false
|
2,847
|
public final String replacement() {return replacementChars;}
|
[
"public",
"final",
"String",
"replacement",
"(",
")",
"{",
"return",
"replacementChars",
";",
"}"
] |
public string replacement(){return replacementChars;}
|
train
| false
|
2,848
|
public WindowProtectRecord(boolean protect) {this(0);setProtect(protect);}
|
[
"public",
"WindowProtectRecord",
"(",
"boolean",
"protect",
")",
"{",
"this",
"(",
"0",
")",
";",
"setProtect",
"(",
"protect",
")",
";",
"}"
] |
public WindowProtectRecord(bool protect):this(0){Protect = (protect);}
|
train
| false
|
2,850
|
public PredictionContext getParent(int index) {assert index == 0;return parent;}
|
[
"public",
"PredictionContext",
"getParent",
"(",
"int",
"index",
")",
"{",
"assert",
"index",
"==",
"0",
";",
"return",
"parent",
";",
"}"
] |
public override PredictionContext GetParent(int index){System.Diagnostics.Debug.Assert(index == 0);return parent;}
|
train
| false
|
2,851
|
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return "*:*";}
|
[
"public",
"CharSequence",
"toQueryString",
"(",
"EscapeQuerySyntax",
"escapeSyntaxParser",
")",
"{",
"return",
"\"*:*\"",
";",
"}"
] |
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return "*:*";}
|
train
| false
|
2,852
|
public SeekStatus seekCeil(BytesRef term) throws IOException {throw new UnsupportedOperationException(getClass().getName()+" does not support seeking");}
|
[
"public",
"SeekStatus",
"seekCeil",
"(",
"BytesRef",
"term",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\" does not support seeking\"",
")",
";",
"}"
] |
public override SeekStatus SeekCeil(BytesRef term){throw new System.NotSupportedException(this.GetType().Name + " does not support seeking");}
|
train
| false
|
2,853
|
public BindInstance2VpcRequest() {super("Ots", "2016-06-20", "BindInstance2Vpc", "ots");setMethod(MethodType.POST);}
|
[
"public",
"BindInstance2VpcRequest",
"(",
")",
"{",
"super",
"(",
"\"Ots\"",
",",
"\"2016-06-20\"",
",",
"\"BindInstance2Vpc\"",
",",
"\"ots\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] |
public BindInstance2VpcRequest(): base("Ots", "2016-06-20", "BindInstance2Vpc", "ots", "openAPI"){Method = MethodType.POST;}
|
train
| false
|
2,854
|
public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) {return updateTable(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput));}
|
[
"public",
"UpdateTableResult",
"updateTable",
"(",
"String",
"tableName",
",",
"ProvisionedThroughput",
"provisionedThroughput",
")",
"{",
"return",
"updateTable",
"(",
"new",
"UpdateTableRequest",
"(",
")",
".",
"withTableName",
"(",
"tableName",
")",
".",
"withProvisionedThroughput",
"(",
"provisionedThroughput",
")",
")",
";",
"}"
] |
public virtual UpdateTableResponse UpdateTable(string tableName, ProvisionedThroughput provisionedThroughput){var request = new UpdateTableRequest();request.TableName = tableName;request.ProvisionedThroughput = provisionedThroughput;return UpdateTable(request);}
|
train
| true
|
2,855
|
public boolean get(int index) {return in.get(docMap.newToOld(index));}
|
[
"public",
"boolean",
"get",
"(",
"int",
"index",
")",
"{",
"return",
"in",
".",
"get",
"(",
"docMap",
".",
"newToOld",
"(",
"index",
")",
")",
";",
"}"
] |
public bool Get(int index){return @in.Get(docMap.NewToOld(index));}
|
train
| false
|
2,856
|
public GetQueueAttributesResult getQueueAttributes(GetQueueAttributesRequest request) {request = beforeClientExecution(request);return executeGetQueueAttributes(request);}
|
[
"public",
"GetQueueAttributesResult",
"getQueueAttributes",
"(",
"GetQueueAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetQueueAttributes",
"(",
"request",
")",
";",
"}"
] |
public virtual GetQueueAttributesResponse GetQueueAttributes(GetQueueAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueAttributesResponseUnmarshaller.Instance;return Invoke<GetQueueAttributesResponse>(request, options);}
|
train
| true
|
2,857
|
public UpdateUserRoutingProfileResult updateUserRoutingProfile(UpdateUserRoutingProfileRequest request) {request = beforeClientExecution(request);return executeUpdateUserRoutingProfile(request);}
|
[
"public",
"UpdateUserRoutingProfileResult",
"updateUserRoutingProfile",
"(",
"UpdateUserRoutingProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateUserRoutingProfile",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateUserRoutingProfileResponse UpdateUserRoutingProfile(UpdateUserRoutingProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserRoutingProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserRoutingProfileResponseUnmarshaller.Instance;return Invoke<UpdateUserRoutingProfileResponse>(request, options);}
|
train
| true
|
2,858
|
public int getMidIx() {int ixDiff = _highIx - _lowIx;if(ixDiff < 2) {return -1;}return _lowIx + (ixDiff / 2);}
|
[
"public",
"int",
"getMidIx",
"(",
")",
"{",
"int",
"ixDiff",
"=",
"_highIx",
"-",
"_lowIx",
";",
"if",
"(",
"ixDiff",
"<",
"2",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"_lowIx",
"+",
"(",
"ixDiff",
"/",
"2",
")",
";",
"}"
] |
public int GetMidIx(){int ixDiff = _highIx - _lowIx;if (ixDiff < 2){return -1;}return _lowIx + (ixDiff / 2);}
|
train
| false
|
2,859
|
public MergeResult getMergeResult() {return this.mergeResult;}
|
[
"public",
"MergeResult",
"getMergeResult",
"(",
")",
"{",
"return",
"this",
".",
"mergeResult",
";",
"}"
] |
public virtual MergeCommandResult GetMergeResult(){return this.mergeResult;}
|
train
| false
|
2,860
|
public void setAsActiveCell(){int row=_record.getRow();short col=_record.getColumn();_sheet.getSheet().setActiveCellRow(row);_sheet.getSheet().setActiveCellCol(col);}
|
[
"public",
"void",
"setAsActiveCell",
"(",
")",
"{",
"int",
"row",
"=",
"_record",
".",
"getRow",
"(",
")",
";",
"short",
"col",
"=",
"_record",
".",
"getColumn",
"(",
")",
";",
"_sheet",
".",
"getSheet",
"(",
")",
".",
"setActiveCellRow",
"(",
"row",
")",
";",
"_sheet",
".",
"getSheet",
"(",
")",
".",
"setActiveCellCol",
"(",
"col",
")",
";",
"}"
] |
public void SetAsActiveCell(){int row = _record.Row;int col = _record.Column;this._sheet.Sheet.SetActiveCell(row, col);}
|
train
| false
|
2,861
|
public InviteMembersResult inviteMembers(InviteMembersRequest request) {request = beforeClientExecution(request);return executeInviteMembers(request);}
|
[
"public",
"InviteMembersResult",
"inviteMembers",
"(",
"InviteMembersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeInviteMembers",
"(",
"request",
")",
";",
"}"
] |
public virtual InviteMembersResponse InviteMembers(InviteMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;return Invoke<InviteMembersResponse>(request, options);}
|
train
| true
|
2,862
|
public FormatTrackingHSSFListener(HSSFListener childListener) {this(childListener, LocaleUtil.getUserLocale());}
|
[
"public",
"FormatTrackingHSSFListener",
"(",
"HSSFListener",
"childListener",
")",
"{",
"this",
"(",
"childListener",
",",
"LocaleUtil",
".",
"getUserLocale",
"(",
")",
")",
";",
"}"
] |
public FormatTrackingHSSFListener(IHSSFListener childListener){this.childListener = childListener;}
|
train
| false
|
2,863
|
public UpdateDistributionRequest(DistributionConfig distributionConfig, String id, String ifMatch) {setDistributionConfig(distributionConfig);setId(id);setIfMatch(ifMatch);}
|
[
"public",
"UpdateDistributionRequest",
"(",
"DistributionConfig",
"distributionConfig",
",",
"String",
"id",
",",
"String",
"ifMatch",
")",
"{",
"setDistributionConfig",
"(",
"distributionConfig",
")",
";",
"setId",
"(",
"id",
")",
";",
"setIfMatch",
"(",
"ifMatch",
")",
";",
"}"
] |
public UpdateDistributionRequest(string id, string ifMatch, DistributionConfig distributionConfig){_id = id;_ifMatch = ifMatch;_distributionConfig = distributionConfig;}
|
train
| false
|
2,864
|
public GetLogEventsRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}
|
[
"public",
"GetLogEventsRequest",
"(",
"String",
"logGroupName",
",",
"String",
"logStreamName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"setLogStreamName",
"(",
"logStreamName",
")",
";",
"}"
] |
public GetLogEventsRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}
|
train
| false
|
2,865
|
public String toString() {return "FlushInfo [numDocs=" + numDocs + ", estimatedSegmentSize="+ estimatedSegmentSize + "]";}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"FlushInfo [numDocs=\"",
"+",
"numDocs",
"+",
"\", estimatedSegmentSize=\"",
"+",
"estimatedSegmentSize",
"+",
"\"]\"",
";",
"}"
] |
public override string ToString(){return "FlushInfo [numDocs=" + NumDocs + ", estimatedSegmentSize=" + EstimatedSegmentSize + "]";}
|
train
| false
|
2,866
|
public GrowableWriter resize(int newSize) {GrowableWriter next = new GrowableWriter(getBitsPerValue(), newSize, acceptableOverheadRatio);final int limit = Math.min(size(), newSize);PackedInts.copy(current, 0, next, 0, limit, PackedInts.DEFAULT_BUFFER_SIZE);return next;}
|
[
"public",
"GrowableWriter",
"resize",
"(",
"int",
"newSize",
")",
"{",
"GrowableWriter",
"next",
"=",
"new",
"GrowableWriter",
"(",
"getBitsPerValue",
"(",
")",
",",
"newSize",
",",
"acceptableOverheadRatio",
")",
";",
"final",
"int",
"limit",
"=",
"Math",
".",
"min",
"(",
"size",
"(",
")",
",",
"newSize",
")",
";",
"PackedInts",
".",
"copy",
"(",
"current",
",",
"0",
",",
"next",
",",
"0",
",",
"limit",
",",
"PackedInts",
".",
"DEFAULT_BUFFER_SIZE",
")",
";",
"return",
"next",
";",
"}"
] |
public virtual GrowableWriter Resize(int newSize){GrowableWriter next = new GrowableWriter(BitsPerValue, newSize, acceptableOverheadRatio);int limit = Math.Min(Count, newSize);PackedInt32s.Copy(current, 0, next, 0, limit, PackedInt32s.DEFAULT_BUFFER_SIZE);return next;}
|
train
| false
|
2,867
|
public Analyzer(ReuseStrategy reuseStrategy) {this.reuseStrategy = reuseStrategy;}
|
[
"public",
"Analyzer",
"(",
"ReuseStrategy",
"reuseStrategy",
")",
"{",
"this",
".",
"reuseStrategy",
"=",
"reuseStrategy",
";",
"}"
] |
public Analyzer(ReuseStrategy reuseStrategy){this.reuseStrategy = reuseStrategy;}
|
train
| false
|
2,868
|
public void reset() {prevAccept.reset();startIndex = -1;line = 1;charPositionInLine = 0;mode = Lexer.DEFAULT_MODE;}
|
[
"public",
"void",
"reset",
"(",
")",
"{",
"prevAccept",
".",
"reset",
"(",
")",
";",
"startIndex",
"=",
"-",
"1",
";",
"line",
"=",
"1",
";",
"charPositionInLine",
"=",
"0",
";",
"mode",
"=",
"Lexer",
".",
"DEFAULT_MODE",
";",
"}"
] |
public void Reset(){index = -1;line = 0;charPos = -1;dfaState = null;}
|
train
| false
|
2,869
|
public EmbeddedObjectRefSubRecord() {field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;}
|
[
"public",
"EmbeddedObjectRefSubRecord",
"(",
")",
"{",
"field_2_unknownFormulaData",
"=",
"new",
"byte",
"[",
"]",
"{",
"0x02",
",",
"0x6C",
",",
"0x6A",
",",
"0x16",
",",
"0x01",
",",
"}",
";",
"field_6_unknown",
"=",
"EMPTY_BYTE_ARRAY",
";",
"field_4_ole_classname",
"=",
"null",
";",
"}"
] |
public EmbeddedObjectRefSubRecord(){field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;field_4_unknownByte = null;}
|
train
| false
|
2,870
|
public String toString() {return "doc=" + doc + " score=" + score + " shardIndex=" + shardIndex;}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"doc=\"",
"+",
"doc",
"+",
"\" score=\"",
"+",
"score",
"+",
"\" shardIndex=\"",
"+",
"shardIndex",
";",
"}"
] |
public override string ToString(){return "doc=" + Doc + " score=" + Score + " shardIndex=" + ShardIndex;}
|
train
| false
|
2,872
|
public int get(int forwardId, int backwardId) {int offset = (backwardId * forwardSize + forwardId) * 2;return buffer.getShort(offset);}
|
[
"public",
"int",
"get",
"(",
"int",
"forwardId",
",",
"int",
"backwardId",
")",
"{",
"int",
"offset",
"=",
"(",
"backwardId",
"*",
"forwardSize",
"+",
"forwardId",
")",
"*",
"2",
";",
"return",
"buffer",
".",
"getShort",
"(",
"offset",
")",
";",
"}"
] |
public int Get(int forwardId, int backwardId){return costs[backwardId][forwardId];}
|
train
| false
|
2,873
|
public void sort() {Arrays.sort(entries, 0, count);}
|
[
"public",
"void",
"sort",
"(",
")",
"{",
"Arrays",
".",
"sort",
"(",
"entries",
",",
"0",
",",
"count",
")",
";",
"}"
] |
public virtual void Sort(){Arrays.Sort(entries, 0, count);}
|
train
| false
|
2,874
|
public BM25FQuery build() {int size = fieldAndWeights.size() * termsSet.size();if (size > IndexSearcher.getMaxClauseCount()) {throw new IndexSearcher.TooManyClauses();}BytesRef[] terms = termsSet.toArray(new BytesRef[0]);return new BM25FQuery(similarity, new TreeMap<>(fieldAndWeights), terms);}
|
[
"public",
"BM25FQuery",
"build",
"(",
")",
"{",
"int",
"size",
"=",
"fieldAndWeights",
".",
"size",
"(",
")",
"*",
"termsSet",
".",
"size",
"(",
")",
";",
"if",
"(",
"size",
">",
"IndexSearcher",
".",
"getMaxClauseCount",
"(",
")",
")",
"{",
"throw",
"new",
"IndexSearcher",
".",
"TooManyClauses",
"(",
")",
";",
"}",
"BytesRef",
"[",
"]",
"terms",
"=",
"termsSet",
".",
"toArray",
"(",
"new",
"BytesRef",
"[",
"0",
"]",
")",
";",
"return",
"new",
"BM25FQuery",
"(",
"similarity",
",",
"new",
"TreeMap",
"<",
">",
"(",
"fieldAndWeights",
")",
",",
"terms",
")",
";",
"}"
] |
public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder<BytesRef> builder = new Builder<BytesRef>(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.