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 |
|---|---|---|---|---|---|
1,607 | public GetUsagePlanKeyResult getUsagePlanKey(GetUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeGetUsagePlanKey(request);}
| [
"public",
"GetUsagePlanKeyResult",
"getUsagePlanKey",
"(",
"GetUsagePlanKeyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetUsagePlanKey",
"(",
"request",
")",
";",
"}"
] | public virtual GetUsagePlanKeyResponse GetUsagePlanKey(GetUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanKeyResponseUnmarshaller.Instance;return Invoke<GetUsagePlanKeyResponse>(request, optio... | train | true |
1,608 | public DescribeVpcEndpointConnectionNotificationsResult describeVpcEndpointConnectionNotifications(DescribeVpcEndpointConnectionNotificationsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnectionNotifications(request);}
| [
"public",
"DescribeVpcEndpointConnectionNotificationsResult",
"describeVpcEndpointConnectionNotifications",
"(",
"DescribeVpcEndpointConnectionNotificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVpcE... | public virtual DescribeVpcEndpointConnectionNotificationsResponse DescribeVpcEndpointConnectionNotifications(DescribeVpcEndpointConnectionNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionNotificationsRequestMarshaller.Instance;options.ResponseUnmar... | train | true |
1,609 | public UpdateGatewayGroupResult updateGatewayGroup(UpdateGatewayGroupRequest request) {request = beforeClientExecution(request);return executeUpdateGatewayGroup(request);}
| [
"public",
"UpdateGatewayGroupResult",
"updateGatewayGroup",
"(",
"UpdateGatewayGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateGatewayGroup",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateGatewayGroupResponse UpdateGatewayGroup(UpdateGatewayGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayGroupResponseUnmarshaller.Instance;return Invoke<UpdateGatewayGroupRespon... | train | true |
1,610 | public DetachClassicLinkVpcResult detachClassicLinkVpc(DetachClassicLinkVpcRequest request) {request = beforeClientExecution(request);return executeDetachClassicLinkVpc(request);}
| [
"public",
"DetachClassicLinkVpcResult",
"detachClassicLinkVpc",
"(",
"DetachClassicLinkVpcRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachClassicLinkVpc",
"(",
"request",
")",
";",
"}"
] | public virtual DetachClassicLinkVpcResponse DetachClassicLinkVpc(DetachClassicLinkVpcRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachClassicLinkVpcRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachClassicLinkVpcResponseUnmarshaller.Instance;return Invoke<DetachClassicL... | train | true |
1,611 | public ListOperationsResult listOperations() {return listOperations(new ListOperationsRequest());}
| [
"public",
"ListOperationsResult",
"listOperations",
"(",
")",
"{",
"return",
"listOperations",
"(",
"new",
"ListOperationsRequest",
"(",
")",
")",
";",
"}"
] | public virtual ListOperationsResponse ListOperations(){return ListOperations(new ListOperationsRequest());}
| train | false |
1,612 | public BatchDeletePhoneNumberResult batchDeletePhoneNumber(BatchDeletePhoneNumberRequest request) {request = beforeClientExecution(request);return executeBatchDeletePhoneNumber(request);}
| [
"public",
"BatchDeletePhoneNumberResult",
"batchDeletePhoneNumber",
"(",
"BatchDeletePhoneNumberRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchDeletePhoneNumber",
"(",
"request",
")",
";",
"}"
] | public virtual BatchDeletePhoneNumberResponse BatchDeletePhoneNumber(BatchDeletePhoneNumberRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDeletePhoneNumberRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDeletePhoneNumberResponseUnmarshaller.Instance;return Invoke<Batc... | train | true |
1,613 | public void setExpireAgeMillis(long expireAgeMillis) {this.expireAgeMillis = expireAgeMillis;expire = null;}
| [
"public",
"void",
"setExpireAgeMillis",
"(",
"long",
"expireAgeMillis",
")",
"{",
"this",
".",
"expireAgeMillis",
"=",
"expireAgeMillis",
";",
"expire",
"=",
"null",
";",
"}"
] | public virtual void SetExpireAgeMillis(long expireAgeMillis){this.expireAgeMillis = expireAgeMillis;expire = null;}
| train | false |
1,614 | public DeactivateEventSourceResult deactivateEventSource(DeactivateEventSourceRequest request) {request = beforeClientExecution(request);return executeDeactivateEventSource(request);}
| [
"public",
"DeactivateEventSourceResult",
"deactivateEventSource",
"(",
"DeactivateEventSourceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeactivateEventSource",
"(",
"request",
")",
";",
"}"
] | public virtual DeactivateEventSourceResponse DeactivateEventSource(DeactivateEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeactivateEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeactivateEventSourceResponseUnmarshaller.Instance;return Invoke<Deactivat... | train | false |
1,615 | public void readBytes(byte[] b, int offset, int len) {System.arraycopy(bytes, pos, b, offset, len);pos += len;}
| [
"public",
"void",
"readBytes",
"(",
"byte",
"[",
"]",
"b",
",",
"int",
"offset",
",",
"int",
"len",
")",
"{",
"System",
".",
"arraycopy",
"(",
"bytes",
",",
"pos",
",",
"b",
",",
"offset",
",",
"len",
")",
";",
"pos",
"+=",
"len",
";",
"}"
] | public override void ReadBytes(byte[] b, int offset, int len){Array.Copy(bytes, pos, b, offset, len);pos += len;}
| train | false |
1,616 | public IntBuffer put(int index, int c) {throw new ReadOnlyBufferException();}
| [
"public",
"IntBuffer",
"put",
"(",
"int",
"index",
",",
"int",
"c",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.IntBuffer put(int index, int c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
1,617 | public SendUsersMessagesResult sendUsersMessages(SendUsersMessagesRequest request) {request = beforeClientExecution(request);return executeSendUsersMessages(request);}
| [
"public",
"SendUsersMessagesResult",
"sendUsersMessages",
"(",
"SendUsersMessagesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendUsersMessages",
"(",
"request",
")",
";",
"}"
] | public virtual SendUsersMessagesResponse SendUsersMessages(SendUsersMessagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendUsersMessagesRequestMarshaller.Instance;options.ResponseUnmarshaller = SendUsersMessagesResponseUnmarshaller.Instance;return Invoke<SendUsersMessagesResponse>(re... | train | true |
1,618 | public MissingFormatWidthException(String s) {if (s == null) {throw new NullPointerException();}this.s = s;}
| [
"public",
"MissingFormatWidthException",
"(",
"String",
"s",
")",
"{",
"if",
"(",
"s",
"==",
"null",
")",
"{",
"throw",
"new",
"NullPointerException",
"(",
")",
";",
"}",
"this",
".",
"s",
"=",
"s",
";",
"}"
] | public MissingFormatWidthException(string s){if (s == null){throw new System.ArgumentNullException();}this.s = s;}
| train | false |
1,619 | public DescribeVolumesRequest(java.util.List<String> volumeIds) {setVolumeIds(volumeIds);}
| [
"public",
"DescribeVolumesRequest",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"volumeIds",
")",
"{",
"setVolumeIds",
"(",
"volumeIds",
")",
";",
"}"
] | public DescribeVolumesRequest(List<string> volumeIds){_volumeIds = volumeIds;}
| train | false |
1,620 | public SubmitCutoutTaskRequest() {super("lubancloud", "2018-05-09", "SubmitCutoutTask", "luban");setMethod(MethodType.POST);}
| [
"public",
"SubmitCutoutTaskRequest",
"(",
")",
"{",
"super",
"(",
"\"lubancloud\"",
",",
"\"2018-05-09\"",
",",
"\"SubmitCutoutTask\"",
",",
"\"luban\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public SubmitCutoutTaskRequest(): base("lubancloud", "2018-05-09", "SubmitCutoutTask", "luban", "openAPI"){Method = MethodType.POST;}
| train | false |
1,621 | public DoubleBuffer asReadOnlyBuffer() {return duplicate();}
| [
"public",
"DoubleBuffer",
"asReadOnlyBuffer",
"(",
")",
"{",
"return",
"duplicate",
"(",
")",
";",
"}"
] | public override java.nio.DoubleBuffer asReadOnlyBuffer(){return duplicate();}
| train | false |
1,622 | @Override public int size() {return subMap.size();}
| [
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"return",
"subMap",
".",
"size",
"(",
")",
";",
"}"
] | public override int size(){return this._enclosing._size;}
| train | false |
1,623 | public CreateLabelsResult createLabels(CreateLabelsRequest request) {request = beforeClientExecution(request);return executeCreateLabels(request);}
| [
"public",
"CreateLabelsResult",
"createLabels",
"(",
"CreateLabelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateLabels",
"(",
"request",
")",
";",
"}"
] | public virtual CreateLabelsResponse CreateLabels(CreateLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLabelsResponseUnmarshaller.Instance;return Invoke<CreateLabelsResponse>(request, options);}
| train | true |
1,624 | public boolean isEmpty() {return size == 0;}
| [
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"size",
"==",
"0",
";",
"}"
] | public bool isEmpty(){return size == 0;}
| train | false |
1,625 | public int getRenameScore() {return outCandidate.renameScore;}
| [
"public",
"int",
"getRenameScore",
"(",
")",
"{",
"return",
"outCandidate",
".",
"renameScore",
";",
"}"
] | public virtual int GetRenameScore(){return currentSource.renameScore;}
| train | false |
1,626 | public SeriesTextRecord() {field_4_text = "";is16bit = false;}
| [
"public",
"SeriesTextRecord",
"(",
")",
"{",
"field_4_text",
"=",
"\"\"",
";",
"is16bit",
"=",
"false",
";",
"}"
] | public SeriesTextRecord(){field_4_text = "";is16bit = false;}
| train | false |
1,627 | public char get() {if (position == limit) {throw new BufferUnderflowException();}return sequence.charAt(position++);}
| [
"public",
"char",
"get",
"(",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"return",
"sequence",
".",
"charAt",
"(",
"position",
"++",
")",
";",
"}"
] | public override char get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return sequence[_position++];}
| train | false |
1,628 | public static double irr(double[] values, double guess) {double x0 = guess;for (int i = 0; i < MAX_ITERATION_COUNT; i++) {final double factor = 1.0 + x0;double denominator = factor;if (denominator == 0) {return Double.NaN;}double fValue = values[0];double fDerivative = 0;for (int k = 1; k < values.length; k++) {final d... | [
"public",
"static",
"double",
"irr",
"(",
"double",
"[",
"]",
"values",
",",
"double",
"guess",
")",
"{",
"double",
"x0",
"=",
"guess",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"MAX_ITERATION_COUNT",
";",
"i",
"++",
")",
"{",
"final",
... | public static double irr(double[] values, double guess){int maxIterationCount = 20;double absoluteAccuracy = 1E-7;double x0 = guess;double x1;int i = 0;while (i < maxIterationCount){double fValue = 0;double fDerivative = 0;for (int k = 0; k < values.Length; k++){fValue += values[k] / Math.Pow(1.0 + x0, k);fDerivative +... | train | false |
1,630 | public void skip() {_type = SKIP;}
| [
"public",
"void",
"skip",
"(",
")",
"{",
"_type",
"=",
"SKIP",
";",
"}"
] | public virtual void Skip(){_type = TokenTypes.Skip;}
| train | false |
1,631 | public HSSFClientAnchor getPreferredSize(){return getPreferredSize(1.0);}
| [
"public",
"HSSFClientAnchor",
"getPreferredSize",
"(",
")",
"{",
"return",
"getPreferredSize",
"(",
"1.0",
")",
";",
"}"
] | public IClientAnchor GetPreferredSize(){return GetPreferredSize(1.0);}
| train | false |
1,632 | public void fromRaw(int[] ints) {fromRaw(ints, 0);}
| [
"public",
"void",
"fromRaw",
"(",
"int",
"[",
"]",
"ints",
")",
"{",
"fromRaw",
"(",
"ints",
",",
"0",
")",
";",
"}"
] | public virtual void FromRaw(int[] ints){FromRaw(ints, 0);}
| train | false |
1,633 | public ModifyClusterParameterGroupResult modifyClusterParameterGroup(ModifyClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyClusterParameterGroup(request);}
| [
"public",
"ModifyClusterParameterGroupResult",
"modifyClusterParameterGroup",
"(",
"ModifyClusterParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyClusterParameterGroup",
"(",
"request",
")",
... | public virtual ModifyClusterParameterGroupResponse ModifyClusterParameterGroup(ModifyClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterParameterGroupResponseUnmarshaller.In... | train | true |
1,634 | public boolean get(URIish uri, List<CredentialItem> items)throws UnsupportedCredentialItem {return get(uri, items.toArray(new CredentialItem[0]));}
| [
"public",
"boolean",
"get",
"(",
"URIish",
"uri",
",",
"List",
"<",
"CredentialItem",
">",
"items",
")",
"throws",
"UnsupportedCredentialItem",
"{",
"return",
"get",
"(",
"uri",
",",
"items",
".",
"toArray",
"(",
"new",
"CredentialItem",
"[",
"0",
"]",
")"... | public virtual bool Get(URIish uri, IList<CredentialItem> items){return Get(uri, Sharpen.Collections.ToArray(items, new CredentialItem[items.Count]));}
| train | false |
1,635 | public synchronized FormatType getFormat() {return acceptFormat;}
| [
"public",
"synchronized",
"FormatType",
"getFormat",
"(",
")",
"{",
"return",
"acceptFormat",
";",
"}"
] | public FormatType GetFormat(){return acceptFormat;}
| train | false |
1,636 | public ListTypesResult listTypes(ListTypesRequest request) {request = beforeClientExecution(request);return executeListTypes(request);}
| [
"public",
"ListTypesResult",
"listTypes",
"(",
"ListTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTypes",
"(",
"request",
")",
";",
"}"
] | public virtual ListTypesResponse ListTypes(ListTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypesResponseUnmarshaller.Instance;return Invoke<ListTypesResponse>(request, options);}
| train | true |
1,637 | public K next() { return nextEntry().key; }
| [
"public",
"K",
"next",
"(",
")",
"{",
"return",
"nextEntry",
"(",
")",
".",
"key",
";",
"}"
] | public override K next(){return this.nextEntry().key;}
| train | false |
1,638 | public StartAssessmentRunResult startAssessmentRun(StartAssessmentRunRequest request) {request = beforeClientExecution(request);return executeStartAssessmentRun(request);}
| [
"public",
"StartAssessmentRunResult",
"startAssessmentRun",
"(",
"StartAssessmentRunRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartAssessmentRun",
"(",
"request",
")",
";",
"}"
] | public virtual StartAssessmentRunResponse StartAssessmentRun(StartAssessmentRunRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartAssessmentRunRequestMarshaller.Instance;options.ResponseUnmarshaller = StartAssessmentRunResponseUnmarshaller.Instance;return Invoke<StartAssessmentRunRespon... | train | true |
1,639 | public boolean equals(Object obj) {if ( this==obj ) return true;if ( !(obj instanceof OR) ) return false;OR other = (OR)obj;return Arrays.equals(this.opnds, other.opnds);}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"OR",
")",
")",
"return",
"false",
";",
"OR",
"other",
"=",
"(",
"OR",
")",
"obj"... | public override bool Equals(object obj){if (this == obj){return true;}if (!(obj is SemanticContext.OR)){return false;}SemanticContext.OR other = (SemanticContext.OR)obj;return Arrays.Equals(this.opnds, other.opnds);}
| train | false |
1,640 | public boolean equals(Object other) {return ((PointTransitions) other).point == point;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"other",
")",
"{",
"return",
"(",
"(",
"PointTransitions",
")",
"other",
")",
".",
"point",
"==",
"point",
";",
"}"
] | public override bool Equals(object other){return ((PointTransitions)other).point == point;}
| train | false |
1,641 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3) {throw new RuntimeException("Incomplete code"+ " - don't know how to support the 'area_num' parameter yet)");}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
",",
"ValueEval",
"arg2",
",",
"ValueEval",
"arg3",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Incomplete c... | public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3){throw new Exception("Incomplete code"+ " - don't know how to support the 'area_num' parameter yet)");}
| train | false |
1,642 | public DescribeClusterParametersResult describeClusterParameters(DescribeClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeClusterParameters(request);}
| [
"public",
"DescribeClusterParametersResult",
"describeClusterParameters",
"(",
"DescribeClusterParametersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterParameters",
"(",
"request",
")",
";",
... | public virtual DescribeClusterParametersResponse DescribeClusterParameters(DescribeClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterParametersResponseUnmarshaller.Instance;ret... | train | true |
1,643 | public String typeName() {return typeName;}
| [
"public",
"String",
"typeName",
"(",
")",
"{",
"return",
"typeName",
";",
"}"
] | public virtual string typeName(){return _typeName;}
| train | false |
1,644 | public CreateModelPackageResult createModelPackage(CreateModelPackageRequest request) {request = beforeClientExecution(request);return executeCreateModelPackage(request);}
| [
"public",
"CreateModelPackageResult",
"createModelPackage",
"(",
"CreateModelPackageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateModelPackage",
"(",
"request",
")",
";",
"}"
] | public virtual CreateModelPackageResponse CreateModelPackage(CreateModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelPackageResponseUnmarshaller.Instance;return Invoke<CreateModelPackageRespon... | train | true |
1,645 | public long ramBytesUsed() {long mem = RamUsageEstimator.shallowSizeOf(this) + RamUsageEstimator.sizeOf(offsets);if (offsets != ordinals) {mem += RamUsageEstimator.sizeOf(ordinals);}return mem;}
| [
"public",
"long",
"ramBytesUsed",
"(",
")",
"{",
"long",
"mem",
"=",
"RamUsageEstimator",
".",
"shallowSizeOf",
"(",
"this",
")",
"+",
"RamUsageEstimator",
".",
"sizeOf",
"(",
"offsets",
")",
";",
"if",
"(",
"offsets",
"!=",
"ordinals",
")",
"{",
"mem",
... | public long RamBytesUsed(){long mem = RamUsageEstimator.ShallowSizeOf(this) + RamUsageEstimator.SizeOf(Offsets);if (Offsets != Ordinals){mem += RamUsageEstimator.SizeOf(Ordinals);}return mem;}
| train | false |
1,647 | public final State captureState() {final State state = this.getCurrentState();return (state == null) ? null : state.clone();}
| [
"public",
"final",
"State",
"captureState",
"(",
")",
"{",
"final",
"State",
"state",
"=",
"this",
".",
"getCurrentState",
"(",
")",
";",
"return",
"(",
"state",
"==",
"null",
")",
"?",
"null",
":",
"state",
".",
"clone",
"(",
")",
";",
"}"
] | public virtual State CaptureState(){State state = this.GetCurrentState();return (state == null) ? null : (State)state.Clone();}
| train | false |
1,648 | public String toString() {CellReference cr = new CellReference(getRow(), getColumn());return getClass().getName() + "[" +_evaluator.getSheetNameRange() +'!' +cr.formatAsString() +"]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"CellReference",
"cr",
"=",
"new",
"CellReference",
"(",
"getRow",
"(",
")",
",",
"getColumn",
"(",
")",
")",
";",
"return",
"getClass",
"(",
")",
".",
"getName",
"(",
")",
"+",
"\"[\"",
"+",
"_evaluator",... | public override String ToString(){CellReference cr = new CellReference(Row, Column);StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append("[");sb.Append(_evaluator.SheetNameRange);sb.Append('!');sb.Append(cr.FormatAsString());sb.Append("]");return sb.ToString();}
| train | false |
1,649 | public CharBuffer compact() {throw new ReadOnlyBufferException();}
| [
"public",
"CharBuffer",
"compact",
"(",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.CharBuffer compact(){throw new java.nio.ReadOnlyBufferException();}
| train | false |
1,650 | public DetectCustomLabelsResult detectCustomLabels(DetectCustomLabelsRequest request) {request = beforeClientExecution(request);return executeDetectCustomLabels(request);}
| [
"public",
"DetectCustomLabelsResult",
"detectCustomLabels",
"(",
"DetectCustomLabelsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetectCustomLabels",
"(",
"request",
")",
";",
"}"
] | public virtual DetectCustomLabelsResponse DetectCustomLabels(DetectCustomLabelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectCustomLabelsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectCustomLabelsResponseUnmarshaller.Instance;return Invoke<DetectCustomLabelsRespon... | train | false |
1,651 | public int indexOf(final int o){int rval = 0;for (; rval < _limit; rval++){if (o == _array[ rval ]){break;}}if (rval == _limit){rval = -1; }return rval;}
| [
"public",
"int",
"indexOf",
"(",
"final",
"int",
"o",
")",
"{",
"int",
"rval",
"=",
"0",
";",
"for",
"(",
";",
"rval",
"<",
"_limit",
";",
"rval",
"++",
")",
"{",
"if",
"(",
"o",
"==",
"_array",
"[",
"rval",
"]",
")",
"{",
"break",
";",
"}",
... | public int IndexOf(int o){int rval = 0;for (; rval < _limit; rval++){if (o == _array[rval]){break;}}if (rval == _limit){rval = -1; }return rval;}
| train | false |
1,652 | public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= minVocabSymbol && symbol <= maxVocabSymbol;}
| [
"public",
"boolean",
"matches",
"(",
"int",
"symbol",
",",
"int",
"minVocabSymbol",
",",
"int",
"maxVocabSymbol",
")",
"{",
"return",
"symbol",
">=",
"minVocabSymbol",
"&&",
"symbol",
"<=",
"maxVocabSymbol",
";",
"}"
] | public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= minVocabSymbol && symbol <= maxVocabSymbol;}
| train | false |
1,653 | @Override public int indexOf(Object object) {Object[] a = array;int s = size;if (object != null) {for (int i = 0; i < s; i++) {if (object.equals(a[i])) {return i;}}} else {for (int i = 0; i < s; i++) {if (a[i] == null) {return i;}}}return -1;}
| [
"@",
"Override",
"public",
"int",
"indexOf",
"(",
"Object",
"object",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"s",
"=",
"size",
";",
"if",
"(",
"object",
"!=",
"null",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
... | public override int indexOf(object @object){if (@object != null){{for (int i = 0; i < a.Length; i++){if (@object.Equals(a[i])){return i;}}}}else{{for (int i = 0; i < a.Length; i++){if ((object)a[i] == null){return i;}}}}return -1;}
| train | false |
1,654 | public void setObjectChecking(boolean on) {setObjectChecker(on ? new ObjectChecker() : null);}
| [
"public",
"void",
"setObjectChecking",
"(",
"boolean",
"on",
")",
"{",
"setObjectChecker",
"(",
"on",
"?",
"new",
"ObjectChecker",
"(",
")",
":",
"null",
")",
";",
"}"
] | public virtual void SetObjectChecking(bool on){SetObjectChecker(on ? new ObjectChecker() : null);}
| train | false |
1,655 | public ModifyVpcEndpointResult modifyVpcEndpoint(ModifyVpcEndpointRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpoint(request);}
| [
"public",
"ModifyVpcEndpointResult",
"modifyVpcEndpoint",
"(",
"ModifyVpcEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpcEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyVpcEndpointResponse ModifyVpcEndpoint(ModifyVpcEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcEndpointResponseUnmarshaller.Instance;return Invoke<ModifyVpcEndpointResponse>(re... | train | true |
1,656 | public DeleteMethodResponseResult deleteMethodResponse(DeleteMethodResponseRequest request) {request = beforeClientExecution(request);return executeDeleteMethodResponse(request);}
| [
"public",
"DeleteMethodResponseResult",
"deleteMethodResponse",
"(",
"DeleteMethodResponseRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteMethodResponse",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteMethodResponseResponse DeleteMethodResponse(DeleteMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMethodResponseResponseUnmarshaller.Instance;return Invoke<DeleteMethodRe... | train | true |
1,657 | public StringRecord( RecordInputStream in) {int field_1_string_length = in.readUShort();_is16bitUnicode = in.readByte() != 0x00;if (_is16bitUnicode){_text = in.readUnicodeLEString(field_1_string_length);} else {_text = in.readCompressedUnicode(field_1_string_length);}}
| [
"public",
"StringRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"int",
"field_1_string_length",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_is16bitUnicode",
"=",
"in",
".",
"readByte",
"(",
")",
"!=",
"0x00",
";",
"if",
"(",
"_is16bitUnicode",
")",
... | public StringRecord(RecordInputStream in1){int field_1_string_length = in1.ReadShort();_is16bitUnicode = in1.ReadByte() != 0x00;if (_is16bitUnicode){_text = in1.ReadUnicodeLEString(field_1_string_length);}else{_text = in1.ReadCompressedUnicode(field_1_string_length);}}
| train | false |
1,658 | public DrawingRecord(RecordInputStream in) {recordData = in.readRemainder();}
| [
"public",
"DrawingRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"recordData",
"=",
"in",
".",
"readRemainder",
"(",
")",
";",
"}"
] | public DrawingRecord(RecordInputStream in1){recordData = in1.ReadRemainder();}
| train | false |
1,659 | public GetProfileResult getProfile(GetProfileRequest request) {request = beforeClientExecution(request);return executeGetProfile(request);}
| [
"public",
"GetProfileResult",
"getProfile",
"(",
"GetProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetProfile",
"(",
"request",
")",
";",
"}"
] | public virtual GetProfileResponse GetProfile(GetProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProfileResponseUnmarshaller.Instance;return Invoke<GetProfileResponse>(request, options);}
| train | true |
1,660 | public DescribeTableResult describeTable(String tableName) {return describeTable(new DescribeTableRequest().withTableName(tableName));}
| [
"public",
"DescribeTableResult",
"describeTable",
"(",
"String",
"tableName",
")",
"{",
"return",
"describeTable",
"(",
"new",
"DescribeTableRequest",
"(",
")",
".",
"withTableName",
"(",
"tableName",
")",
")",
";",
"}"
] | public virtual DescribeTableResponse DescribeTable(string tableName){var request = new DescribeTableRequest();request.TableName = tableName;return DescribeTable(request);}
| train | false |
1,661 | public GetSegmentResult getSegment(GetSegmentRequest request) {request = beforeClientExecution(request);return executeGetSegment(request);}
| [
"public",
"GetSegmentResult",
"getSegment",
"(",
"GetSegmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSegment",
"(",
"request",
")",
";",
"}"
] | public virtual GetSegmentResponse GetSegment(GetSegmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentResponseUnmarshaller.Instance;return Invoke<GetSegmentResponse>(request, options);}
| train | true |
1,662 | public IntBuffer duplicate() {return copy(this, mark);}
| [
"public",
"IntBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.IntBuffer duplicate(){return copy(this, _mark);}
| train | false |
1,663 | public PutAlarmResult putAlarm(PutAlarmRequest request) {request = beforeClientExecution(request);return executePutAlarm(request);}
| [
"public",
"PutAlarmResult",
"putAlarm",
"(",
"PutAlarmRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutAlarm",
"(",
"request",
")",
";",
"}"
] | public virtual PutAlarmResponse PutAlarm(PutAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAlarmResponseUnmarshaller.Instance;return Invoke<PutAlarmResponse>(request, options);}
| train | false |
1,664 | public boolean matches(ValueEval x) {int testValue;if(x instanceof StringEval) {return false;} else if((x instanceof BoolEval)) {BoolEval be = (BoolEval) x;testValue = boolToInt(be.getBooleanValue());} else if((x instanceof BlankEval)) {switch (getCode()) {case CmpOp.NE:return true;default:return false;}} else if((x in... | [
"public",
"boolean",
"matches",
"(",
"ValueEval",
"x",
")",
"{",
"int",
"testValue",
";",
"if",
"(",
"x",
"instanceof",
"StringEval",
")",
"{",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"(",
"x",
"instanceof",
"BoolEval",
")",
")",
"{",
"BoolEval... | public override bool Matches(ValueEval x){int testValue;if (x is StringEval){if (true){ return false;}StringEval se = (StringEval)x;Boolean? val = ParseBoolean(se.StringValue);if (val == null){return false;}testValue = BoolToInt(val.Value);}else if ((x is BoolEval)){BoolEval be = (BoolEval)x;testValue = BoolToInt(be.Bo... | train | false |
1,665 | public DeleteTrialResult deleteTrial(DeleteTrialRequest request) {request = beforeClientExecution(request);return executeDeleteTrial(request);}
| [
"public",
"DeleteTrialResult",
"deleteTrial",
"(",
"DeleteTrialRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteTrial",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteTrialResponse DeleteTrial(DeleteTrialRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrialRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrialResponseUnmarshaller.Instance;return Invoke<DeleteTrialResponse>(request, options);}
| train | false |
1,666 | public String toString() {return set.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"set",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){return set.ToString();}
| train | false |
1,667 | public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(":");}buffer.append(includeLower ? '[' : '{');buffer.append(lowerTerm != null ? ("*".equals(Term.toString(lowerTerm)) ? "\\*" : Term.toString(lowerTerm)) : "*");buffe... | [
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"if",
"(",
"!",
"getField",
"(",
")",
".",
"equals",
"(",
"field",
")",
")",
"{",
"buffer",
".",
"append",
"(",
"... | public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(":");}buffer.Append(includeLower ? '[' : '{');buffer.Append(lowerTerm != null ? ("*".Equals(Term.ToString(lowerTerm), StringComparison.Ordinal) ... | train | false |
1,668 | public void reset() {count = 0;}
| [
"public",
"void",
"reset",
"(",
")",
"{",
"count",
"=",
"0",
";",
"}"
] | public void Reset(){arriving = null;leaving = null;}
| train | false |
1,669 | public int[] init() {return bytesStart = new int[ArrayUtil.oversize(initSize, Integer.BYTES)];}
| [
"public",
"int",
"[",
"]",
"init",
"(",
")",
"{",
"return",
"bytesStart",
"=",
"new",
"int",
"[",
"ArrayUtil",
".",
"oversize",
"(",
"initSize",
",",
"Integer",
".",
"BYTES",
")",
"]",
";",
"}"
] | public override int[] Init(){return bytesStart = new int[ArrayUtil.Oversize(m_initSize, RamUsageEstimator.NUM_BYTES_INT32)];}
| train | false |
1,670 | public int codePointBefore(int index) {if (index < 1 || index > count) {throw indexAndLength(index);}return Character.codePointBefore(value, index);}
| [
"public",
"int",
"codePointBefore",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"<",
"1",
"||",
"index",
">",
"count",
")",
"{",
"throw",
"indexAndLength",
"(",
"index",
")",
";",
"}",
"return",
"Character",
".",
"codePointBefore",
"(",
"value",
... | public virtual int codePointBefore(int index){if (index < 1 || index > count){throw indexAndLength(index);}return Sharpen.CharHelper.CodePointBefore(value, index);}
| train | false |
1,671 | public String toString() {return "SkipWorkTree(" + treeIdx + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"SkipWorkTree(\"",
"+",
"treeIdx",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return "SkipWorkTree(" + treeIdx + ")";}
| train | false |
1,672 | public GetLifecyclePoliciesResult getLifecyclePolicies(GetLifecyclePoliciesRequest request) {request = beforeClientExecution(request);return executeGetLifecyclePolicies(request);}
| [
"public",
"GetLifecyclePoliciesResult",
"getLifecyclePolicies",
"(",
"GetLifecyclePoliciesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetLifecyclePolicies",
"(",
"request",
")",
";",
"}"
] | public virtual GetLifecyclePoliciesResponse GetLifecyclePolicies(GetLifecyclePoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLifecyclePoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLifecyclePoliciesResponseUnmarshaller.Instance;return Invoke<GetLifecyclePo... | train | true |
1,673 | public NRTCachingDirectory(Directory delegate, double maxMergeSizeMB, double maxCachedMB) {super(delegate);maxMergeSizeBytes = (long) (maxMergeSizeMB * 1024 * 1024);maxCachedBytes = (long) (maxCachedMB * 1024 * 1024);}
| [
"public",
"NRTCachingDirectory",
"(",
"Directory",
"delegate",
",",
"double",
"maxMergeSizeMB",
",",
"double",
"maxCachedMB",
")",
"{",
"super",
"(",
"delegate",
")",
";",
"maxMergeSizeBytes",
"=",
"(",
"long",
")",
"(",
"maxMergeSizeMB",
"*",
"1024",
"*",
"10... | public NRTCachingDirectory(Directory @delegate, double maxMergeSizeMB, double maxCachedMB){this.@delegate = @delegate;maxMergeSizeBytes = (long)(maxMergeSizeMB * 1024 * 1024);maxCachedBytes = (long)(maxCachedMB * 1024 * 1024);}
| train | false |
1,674 | public void visitContainedRecords(RecordVisitor rv) {visitIfPresent(_protectRecord, rv);visitIfPresent(_objectProtectRecord, rv);visitIfPresent(_scenarioProtectRecord, rv);visitIfPresent(_passwordRecord, rv);}
| [
"public",
"void",
"visitContainedRecords",
"(",
"RecordVisitor",
"rv",
")",
"{",
"visitIfPresent",
"(",
"_protectRecord",
",",
"rv",
")",
";",
"visitIfPresent",
"(",
"_objectProtectRecord",
",",
"rv",
")",
";",
"visitIfPresent",
"(",
"_scenarioProtectRecord",
",",
... | public override void VisitContainedRecords(RecordVisitor rv){VisitIfPresent(_protectRecord, rv);VisitIfPresent(_objectProtectRecord, rv);VisitIfPresent(_scenarioProtectRecord, rv);VisitIfPresent(_passwordRecord, rv);}
| train | false |
1,675 | public RefSubRecord(int extBookIndex, int firstSheetIndex, int lastSheetIndex) {_extBookIndex = extBookIndex;_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;}
| [
"public",
"RefSubRecord",
"(",
"int",
"extBookIndex",
",",
"int",
"firstSheetIndex",
",",
"int",
"lastSheetIndex",
")",
"{",
"_extBookIndex",
"=",
"extBookIndex",
";",
"_firstSheetIndex",
"=",
"firstSheetIndex",
";",
"_lastSheetIndex",
"=",
"lastSheetIndex",
";",
"}... | public RefSubRecord(int extBookIndex, int firstSheetIndex, int lastSheetIndex){_extBookIndex = extBookIndex;_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;}
| train | false |
1,676 | public long getEntryLength() {return current().getLength();}
| [
"public",
"long",
"getEntryLength",
"(",
")",
"{",
"return",
"current",
"(",
")",
".",
"getLength",
"(",
")",
";",
"}"
] | public virtual long GetEntryLength(){return Current().GetLength();}
| train | false |
1,677 | public String toString() {return getClass().getSimpleName() + "(maxLevels:" + maxLevels + ",ctx:" + ctx + ")";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
"+",
"\"(maxLevels:\"",
"+",
"maxLevels",
"+",
"\",ctx:\"",
"+",
"ctx",
"+",
"\")\"",
";",
"}"
] | public override string ToString(){return GetType().Name + "(maxLevels:" + m_maxLevels + ",ctx:" + m_ctx + ")";}
| train | false |
1,678 | public BooleanQueryBuilder(QueryBuilder factory) {this.factory = factory;}
| [
"public",
"BooleanQueryBuilder",
"(",
"QueryBuilder",
"factory",
")",
"{",
"this",
".",
"factory",
"=",
"factory",
";",
"}"
] | public BooleanQueryBuilder(IQueryBuilder factory){this.factory = factory;}
| train | false |
1,679 | public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord) {this._escherContainer = spContainer;this._objRecord = objRecord;this._optRecord = spContainer.getChildById(EscherOptRecord.RECORD_ID);this.anchor = HSSFAnchor.createAnchorFromEscher(spContainer);}
| [
"public",
"HSSFShape",
"(",
"EscherContainerRecord",
"spContainer",
",",
"ObjRecord",
"objRecord",
")",
"{",
"this",
".",
"_escherContainer",
"=",
"spContainer",
";",
"this",
".",
"_objRecord",
"=",
"objRecord",
";",
"this",
".",
"_optRecord",
"=",
"spContainer",
... | public HSSFShape(EscherContainerRecord spContainer, ObjRecord objRecord){this._escherContainer = spContainer;this._objRecord = objRecord;this._optRecord = (EscherOptRecord)spContainer.GetChildById(EscherOptRecord.RECORD_ID);this.anchor = HSSFAnchor.CreateAnchorFromEscher(spContainer);}
| train | false |
1,680 | public ListUpdatesResult listUpdates(ListUpdatesRequest request) {request = beforeClientExecution(request);return executeListUpdates(request);}
| [
"public",
"ListUpdatesResult",
"listUpdates",
"(",
"ListUpdatesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListUpdates",
"(",
"request",
")",
";",
"}"
] | public virtual ListUpdatesResponse ListUpdates(ListUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListUpdatesResponseUnmarshaller.Instance;return Invoke<ListUpdatesResponse>(request, options);}
| train | true |
1,681 | public IncreaseStreamRetentionPeriodResult increaseStreamRetentionPeriod(IncreaseStreamRetentionPeriodRequest request) {request = beforeClientExecution(request);return executeIncreaseStreamRetentionPeriod(request);}
| [
"public",
"IncreaseStreamRetentionPeriodResult",
"increaseStreamRetentionPeriod",
"(",
"IncreaseStreamRetentionPeriodRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeIncreaseStreamRetentionPeriod",
"(",
"request",... | public virtual IncreaseStreamRetentionPeriodResponse IncreaseStreamRetentionPeriod(IncreaseStreamRetentionPeriodRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseStreamRetentionPeriodRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseStreamRetentionPeriodResponseUnmar... | train | true |
1,682 | public void writeFloat(float value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeFloat(value);}
| [
"public",
"void",
"writeFloat",
"(",
"float",
"value",
")",
"throws",
"IOException",
"{",
"checkWritePrimitiveTypes",
"(",
")",
";",
"primitiveTypes",
".",
"writeFloat",
"(",
"value",
")",
";",
"}"
] | public virtual void writeFloat(float value){throw new System.NotImplementedException();}
| train | false |
1,683 | public Collection<Cell> getSubCells() {String[] hashes = GeohashUtils.getSubGeohashes(getGeohash());List<Cell> cells = new ArrayList<>(hashes.length);for (String hash : hashes) {cells.add(new GhCell(hash));}return cells;}
| [
"public",
"Collection",
"<",
"Cell",
">",
"getSubCells",
"(",
")",
"{",
"String",
"[",
"]",
"hashes",
"=",
"GeohashUtils",
".",
"getSubGeohashes",
"(",
"getGeohash",
"(",
")",
")",
";",
"List",
"<",
"Cell",
">",
"cells",
"=",
"new",
"ArrayList",
"<",
"... | protected internal override ICollection<Cell> GetSubCells(){string[] hashes = GeohashUtils.GetSubGeohashes(Geohash);IList<Cell> cells = new List<Cell>(hashes.Length);foreach (string hash in hashes){cells.Add(new GhCell((GeohashPrefixTree)m_outerInstance, hash));}return cells;}
| train | false |
1,684 | public StringBuilder insert(int offset, CharSequence s) {insert0(offset, s == null ? "null" : s.toString());return this;}
| [
"public",
"StringBuilder",
"insert",
"(",
"int",
"offset",
",",
"CharSequence",
"s",
")",
"{",
"insert0",
"(",
"offset",
",",
"s",
"==",
"null",
"?",
"\"null\"",
":",
"s",
".",
"toString",
"(",
")",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuilder insert(int offset, char[] ch){insert0(offset, ch);return this;}
| train | false |
1,685 | public static Collection<ParseTree> findAllTokenNodes(ParseTree t, int ttype) {return findAllNodes(t, ttype, true);}
| [
"public",
"static",
"Collection",
"<",
"ParseTree",
">",
"findAllTokenNodes",
"(",
"ParseTree",
"t",
",",
"int",
"ttype",
")",
"{",
"return",
"findAllNodes",
"(",
"t",
",",
"ttype",
",",
"true",
")",
";",
"}"
] | public static ICollection<IParseTree> FindAllTokenNodes(IParseTree t, int ttype){return FindAllNodes(t, ttype, true);}
| train | false |
1,686 | public NameIdentifier(String name, boolean isQuoted) {_name = name;_isQuoted = isQuoted;}
| [
"public",
"NameIdentifier",
"(",
"String",
"name",
",",
"boolean",
"isQuoted",
")",
"{",
"_name",
"=",
"name",
";",
"_isQuoted",
"=",
"isQuoted",
";",
"}"
] | public NameIdentifier(String name, bool isQuoted){_name = name;_isQuoted = isQuoted;}
| train | false |
1,688 | public DBClusterSnapshot createDBClusterSnapshot(CreateDBClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDBClusterSnapshot(request);}
| [
"public",
"DBClusterSnapshot",
"createDBClusterSnapshot",
"(",
"CreateDBClusterSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDBClusterSnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDBClusterSnapshotResponse CreateDBClusterSnapshot(CreateDBClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterSnapshotResponseUnmarshaller.Instance;return Invoke... | train | true |
1,689 | public ExternalBookBlock(String url, String[] sheetNames) {_externalBookRecord = SupBookRecord.createExternalReferences(url, sheetNames);_crnBlocks = new CRNBlock[0];}
| [
"public",
"ExternalBookBlock",
"(",
"String",
"url",
",",
"String",
"[",
"]",
"sheetNames",
")",
"{",
"_externalBookRecord",
"=",
"SupBookRecord",
".",
"createExternalReferences",
"(",
"url",
",",
"sheetNames",
")",
";",
"_crnBlocks",
"=",
"new",
"CRNBlock",
"["... | public ExternalBookBlock(String url, String[] sheetNames){_externalBookRecord = SupBookRecord.CreateExternalReferences(url, sheetNames);_crnBlocks = new CRNBlock[0];}
| train | false |
1,690 | public static int compareWithCase(String a, String b) {for (int i = 0; i < a.length() && i < b.length(); i++) {int d = a.charAt(i) - b.charAt(i);if (d != 0)return d;}return a.length() - b.length();}
| [
"public",
"static",
"int",
"compareWithCase",
"(",
"String",
"a",
",",
"String",
"b",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"a",
".",
"length",
"(",
")",
"&&",
"i",
"<",
"b",
".",
"length",
"(",
")",
";",
"i",
"++",
")",
... | public static int CompareWithCase(string a, string b){for (int i = 0; i < a.Length && i < b.Length; i++){int d = a[i] - b[i];if (d != 0){return d;}}return a.Length - b.Length;}
| train | false |
1,691 | public RecallPoint [] getRecallPoints() {return recallPoints.toArray(new RecallPoint[0]);}
| [
"public",
"RecallPoint",
"[",
"]",
"getRecallPoints",
"(",
")",
"{",
"return",
"recallPoints",
".",
"toArray",
"(",
"new",
"RecallPoint",
"[",
"0",
"]",
")",
";",
"}"
] | public virtual RecallPoint[] GetRecallPoints(){return recallPoints.ToArray();}
| train | false |
1,692 | public RemoveFacePhotosRequest() {super("CloudPhoto", "2017-07-11", "RemoveFacePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| [
"public",
"RemoveFacePhotosRequest",
"(",
")",
"{",
"super",
"(",
"\"CloudPhoto\"",
",",
"\"2017-07-11\"",
",",
"\"RemoveFacePhotos\"",
",",
"\"cloudphoto\"",
")",
";",
"setProtocol",
"(",
"ProtocolType",
".",
"HTTPS",
")",
";",
"}"
] | public RemoveFacePhotosRequest(): base("CloudPhoto", "2017-07-11", "RemoveFacePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
1,693 | public static IntsRef toUTF32(char[] s, int offset, int length, IntsRefBuilder scratch) {int charIdx = offset;int intIdx = 0;final int charLimit = offset + length;while(charIdx < charLimit) {scratch.grow(intIdx+1);final int utf32 = Character.codePointAt(s, charIdx, charLimit);scratch.setIntAt(intIdx, utf32);charIdx += ... | [
"public",
"static",
"IntsRef",
"toUTF32",
"(",
"char",
"[",
"]",
"s",
",",
"int",
"offset",
",",
"int",
"length",
",",
"IntsRefBuilder",
"scratch",
")",
"{",
"int",
"charIdx",
"=",
"offset",
";",
"int",
"intIdx",
"=",
"0",
";",
"final",
"int",
"charLim... | public static Int32sRef ToUTF32(char[] s, int offset, int length, Int32sRef scratch){int charIdx = offset;int intIdx = 0;int charLimit = offset + length;while (charIdx < charLimit){scratch.Grow(intIdx + 1);int utf32 = Character.CodePointAt(s, charIdx, charLimit);scratch.Int32s[intIdx] = utf32;charIdx += Character.CharC... | train | false |
1,694 | public void skipBytes(long count) {pos -= count;}
| [
"public",
"void",
"skipBytes",
"(",
"long",
"count",
")",
"{",
"pos",
"-=",
"count",
";",
"}"
] | public override void SkipBytes(int count){pos -= count;}
| train | false |
1,695 | public void addDataValidation(DVRecord dvRecord) {_validationList.add(dvRecord);_headerRec.setDVRecNo(_validationList.size());}
| [
"public",
"void",
"addDataValidation",
"(",
"DVRecord",
"dvRecord",
")",
"{",
"_validationList",
".",
"add",
"(",
"dvRecord",
")",
";",
"_headerRec",
".",
"setDVRecNo",
"(",
"_validationList",
".",
"size",
"(",
")",
")",
";",
"}"
] | public void AddDataValidation(DVRecord dvRecord){_validationList.Add(dvRecord);_headerRec.DVRecNo = (_validationList.Count);}
| train | false |
1,696 | public void setDoubleValue(double value) {if (!(fieldsData instanceof Double)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to Double");}fieldsData = Double.valueOf(value);}
| [
"public",
"void",
"setDoubleValue",
"(",
"double",
"value",
")",
"{",
"if",
"(",
"!",
"(",
"fieldsData",
"instanceof",
"Double",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"cannot change value type from \"",
"+",
"fieldsData",
".",
"getClass... | public virtual void SetDoubleValue(double value){if (!(FieldsData is Double)){throw new System.ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to Double");}FieldsData = new Double(value);}
| train | false |
1,697 | public DeleteRepoAuthorizationRequest() {super("cr", "2016-06-07", "DeleteRepoAuthorization", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]");setMethod(MethodType.DELETE);}
| [
"public",
"DeleteRepoAuthorizationRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"DeleteRepoAuthorization\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]\"",
")",
";",
"setM... | public DeleteRepoAuthorizationRequest(): base("cr", "2016-06-07", "DeleteRepoAuthorization", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/authorizations/[AuthorizeId]";Method = MethodType.DELETE;}
| train | false |
1,698 | public final void writeObject(Object object) throws IOException {writeObject(object, false);}
| [
"public",
"final",
"void",
"writeObject",
"(",
"Object",
"object",
")",
"throws",
"IOException",
"{",
"writeObject",
"(",
"object",
",",
"false",
")",
";",
"}"
] | public virtual void writeObject(object @object){throw new System.NotImplementedException();}
| train | false |
1,699 | public String toString() {byte[] raw = toByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.reset(raw);StringBuilder r = new StringBuilder();r.append("Tree={");if (!p.eof()) {r.append('\n');try {new ObjectChecker().checkTree(raw);} catch (CorruptObjectException error) {r.append("*** ERROR: ").append(error.... | [
"public",
"String",
"toString",
"(",
")",
"{",
"byte",
"[",
"]",
"raw",
"=",
"toByteArray",
"(",
")",
";",
"CanonicalTreeParser",
"p",
"=",
"new",
"CanonicalTreeParser",
"(",
")",
";",
"p",
".",
"reset",
"(",
"raw",
")",
";",
"StringBuilder",
"r",
"=",... | public override string ToString(){byte[] raw = ToByteArray();CanonicalTreeParser p = new CanonicalTreeParser();p.Reset(raw);StringBuilder r = new StringBuilder();r.Append("Tree={");if (!p.Eof){r.Append('\n');try{new ObjectChecker().CheckTree(raw);}catch (CorruptObjectException error){r.Append("*** ERROR: ").Append(erro... | train | false |
1,700 | public char getChar(int index) {return (char) getShort(index);}
| [
"public",
"char",
"getChar",
"(",
"int",
"index",
")",
"{",
"return",
"(",
"char",
")",
"getShort",
"(",
"index",
")",
";",
"}"
] | public override char getChar(int index){return (char)getShort(index);}
| train | false |
1,701 | public String toString() {return "I(ne)";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"I(ne)\"",
";",
"}"
] | public override string ToString(){return "I(ne)";}
| train | false |
1,702 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[GUTS]\n");buffer.append(" .leftgutter = ").append(Integer.toHexString(getLeftRowGutter())).append("\n");buffer.append(" .topgutter = ").append(Integer.toHexString(getTopColGutter())).append("\n");buffer.append(" .rowle... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[GUTS]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" .leftgutter = \"",
")",
".",
"append",
"("... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[GUTS]\n");buffer.Append(" .leftgutter = ").Append(StringUtil.ToHexString(LeftRowGutter)).Append("\n");buffer.Append(" .topgutter = ").Append(StringUtil.ToHexString(TopColGutter)).Append("\n");buffer.Append(" .... | train | false |
1,703 | public ParseTree getChild(int i) {return null;}
| [
"public",
"ParseTree",
"getChild",
"(",
"int",
"i",
")",
"{",
"return",
"null",
";",
"}"
] | public virtual IParseTree GetChild(int i){return null;}
| train | false |
1,704 | public ListInvalidationsResult listInvalidations(ListInvalidationsRequest request) {request = beforeClientExecution(request);return executeListInvalidations(request);}
| [
"public",
"ListInvalidationsResult",
"listInvalidations",
"(",
"ListInvalidationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListInvalidations",
"(",
"request",
")",
";",
"}"
] | public virtual ListInvalidationsResponse ListInvalidations(ListInvalidationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListInvalidationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListInvalidationsResponseUnmarshaller.Instance;return Invoke<ListInvalidationsResponse>(re... | train | true |
1,705 | public TokenStream newSinkTokenStream() {return new SinkTokenStream(this.cloneAttributes(), cachedStates);}
| [
"public",
"TokenStream",
"newSinkTokenStream",
"(",
")",
"{",
"return",
"new",
"SinkTokenStream",
"(",
"this",
".",
"cloneAttributes",
"(",
")",
",",
"cachedStates",
")",
";",
"}"
] | public SinkTokenStream NewSinkTokenStream(){return NewSinkTokenStream(ACCEPT_ALL_FILTER);}
| train | false |
1,706 | public PrecedencePredicate(int precedence) {this.precedence = precedence;}
| [
"public",
"PrecedencePredicate",
"(",
"int",
"precedence",
")",
"{",
"this",
".",
"precedence",
"=",
"precedence",
";",
"}"
] | public PrecedencePredicate(int precedence){this.precedence = precedence;}
| train | false |
1,707 | public ReadPresetResult readPreset(ReadPresetRequest request) {request = beforeClientExecution(request);return executeReadPreset(request);}
| [
"public",
"ReadPresetResult",
"readPreset",
"(",
"ReadPresetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReadPreset",
"(",
"request",
")",
";",
"}"
] | public virtual ReadPresetResponse ReadPreset(ReadPresetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadPresetRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadPresetResponseUnmarshaller.Instance;return Invoke<ReadPresetResponse>(request, options);}
| train | true |
1,708 | public File getIndexFile() throws NoWorkTreeException {if (isBare())throw new NoWorkTreeException();return indexFile;}
| [
"public",
"File",
"getIndexFile",
"(",
")",
"throws",
"NoWorkTreeException",
"{",
"if",
"(",
"isBare",
"(",
")",
")",
"throw",
"new",
"NoWorkTreeException",
"(",
")",
";",
"return",
"indexFile",
";",
"}"
] | public virtual FilePath GetIndexFile(){if (IsBare){throw new NoWorkTreeException();}return indexFile;}
| train | false |
1,709 | public ListApplicationsResult listApplications(ListApplicationsRequest request) {request = beforeClientExecution(request);return executeListApplications(request);}
| [
"public",
"ListApplicationsResult",
"listApplications",
"(",
"ListApplicationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListApplications",
"(",
"request",
")",
";",
"}"
] | public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance;return Invoke<ListApplicationsResponse>(request,... | train | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.