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,076 | public long getTotalSLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;}return k;}
| [
"public",
"long",
"getTotalSLLATNLookaheadOps",
"(",
")",
"{",
"DecisionInfo",
"[",
"]",
"decisions",
"=",
"atnSimulator",
".",
"getDecisionInfo",
"(",
")",
";",
"long",
"k",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"decisions",
... | public long getTotalSLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_ATNTransitions;}return k;}
| train | false |
1,077 | public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {request = beforeClientExecution(request);return executeUpdateEndpoint(request);}
| [
"public",
"UpdateEndpointResult",
"updateEndpoint",
"(",
"UpdateEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateEndpointResponse UpdateEndpoint(UpdateEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance;return Invoke<UpdateEndpointResponse>(request, options);}
| train | true |
1,078 | public GetEmailChannelResult getEmailChannel(GetEmailChannelRequest request) {request = beforeClientExecution(request);return executeGetEmailChannel(request);}
| [
"public",
"GetEmailChannelResult",
"getEmailChannel",
"(",
"GetEmailChannelRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEmailChannel",
"(",
"request",
")",
";",
"}"
] | public virtual GetEmailChannelResponse GetEmailChannel(GetEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailChannelResponseUnmarshaller.Instance;return Invoke<GetEmailChannelResponse>(request, optio... | train | true |
1,079 | public ListPhoneNumberOrdersResult listPhoneNumberOrders(ListPhoneNumberOrdersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumberOrders(request);}
| [
"public",
"ListPhoneNumberOrdersResult",
"listPhoneNumberOrders",
"(",
"ListPhoneNumberOrdersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListPhoneNumberOrders",
"(",
"request",
")",
";",
"}"
] | public virtual ListPhoneNumberOrdersResponse ListPhoneNumberOrders(ListPhoneNumberOrdersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumberOrdersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumberOrdersResponseUnmarshaller.Instance;return Invoke<ListPhone... | train | true |
1,080 | public UpdateBuildResult updateBuild(UpdateBuildRequest request) {request = beforeClientExecution(request);return executeUpdateBuild(request);}
| [
"public",
"UpdateBuildResult",
"updateBuild",
"(",
"UpdateBuildRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateBuild",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateBuildResponse UpdateBuild(UpdateBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBuildResponseUnmarshaller.Instance;return Invoke<UpdateBuildResponse>(request, options);}
| train | true |
1,081 | public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = 16;LittleEndian.putInt( data, offset + 4, ... | [
"public",
"int",
"serialize",
"(",
"int",
"offset",
",",
"byte",
"[",
"]",
"data",
",",
"EscherSerializationListener",
"listener",
")",
"{",
"listener",
".",
"beforeRecordSerialize",
"(",
"offset",
",",
"getRecordId",
"(",
")",
",",
"this",
")",
";",
"Little... | public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 16;LittleEndian.PutInt(data, offset + 4, remainingBytes)... | train | false |
1,082 | public CleanCommand setDryRun(boolean dryRun) {this.dryRun = dryRun;return this;}
| [
"public",
"CleanCommand",
"setDryRun",
"(",
"boolean",
"dryRun",
")",
"{",
"this",
".",
"dryRun",
"=",
"dryRun",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.CleanCommand SetDryRun(bool dryRun){this.dryRun = dryRun;return this;}
| train | false |
1,083 | public DescribeClusterVersionsResult describeClusterVersions(DescribeClusterVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterVersions(request);}
| [
"public",
"DescribeClusterVersionsResult",
"describeClusterVersions",
"(",
"DescribeClusterVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterVersions",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeClusterVersionsResponse DescribeClusterVersions(DescribeClusterVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterVersionsResponseUnmarshaller.Instance;return Invoke... | train | true |
1,084 | public DescribeWorkspacesResult describeWorkspaces(DescribeWorkspacesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaces(request);}
| [
"public",
"DescribeWorkspacesResult",
"describeWorkspaces",
"(",
"DescribeWorkspacesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeWorkspaces",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeWorkspacesResponse DescribeWorkspaces(DescribeWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspacesRespon... | train | true |
1,086 | public SetStackPolicyResult setStackPolicy(SetStackPolicyRequest request) {request = beforeClientExecution(request);return executeSetStackPolicy(request);}
| [
"public",
"SetStackPolicyResult",
"setStackPolicy",
"(",
"SetStackPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetStackPolicy",
"(",
"request",
")",
";",
"}"
] | public virtual SetStackPolicyResponse SetStackPolicy(SetStackPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetStackPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = SetStackPolicyResponseUnmarshaller.Instance;return Invoke<SetStackPolicyResponse>(request, options);}
| train | true |
1,087 | public String toString() {StringBuilder s = new StringBuilder();append(s, oldRef, "CREATE"); s.append(' ');append(s, newRef, "DELETE"); s.append(' ').append(getRefName());s.append(' ').append(getResult());if (getMessage() != null) {s.append(' ').append(getMessage());}return s.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"s",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"append",
"(",
"s",
",",
"oldRef",
",",
"\"CREATE\"",
")",
";",
"s",
".",
"append",
"(",
"' '",
")",
";",
"append",
"(",
"s",
",",
"new... | public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append("TrackingRefUpdate[");sb.Append(remoteName);sb.Append(" -> ");sb.Append(localName);if (forceUpdate){sb.Append(" (forced)");}sb.Append(" ");sb.Append(oldObjectId == null ? string.Empty : oldObjectId.Abbreviate(7).Name);sb.Append("..");sb.... | train | false |
1,088 | public short getXFAt(int coffset) {return field_3_rks[coffset].xf;}
| [
"public",
"short",
"getXFAt",
"(",
"int",
"coffset",
")",
"{",
"return",
"field_3_rks",
"[",
"coffset",
"]",
".",
"xf",
";",
"}"
] | public short GetXFAt(int coffset){return field_3_rks[coffset].xf;}
| train | false |
1,089 | public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, byteCount);if (byteCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + byteCount; ++i) {put(src[i]);}return this;}
| [
"public",
"ByteBuffer",
"put",
"(",
"byte",
"[",
"]",
"src",
",",
"int",
"srcOffset",
",",
"int",
"byteCount",
")",
"{",
"Arrays",
".",
"checkOffsetAndCount",
"(",
"src",
".",
"length",
",",
"srcOffset",
",",
"byteCount",
")",
";",
"if",
"(",
"byteCount"... | public virtual java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, byteCount);if (byteCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + byteCount; ++i){put(src[i]);}}return this;}
| train | false |
1,090 | public ReceiveMessageResult receiveMessage(String queueUrl) {return receiveMessage(new ReceiveMessageRequest().withQueueUrl(queueUrl));}
| [
"public",
"ReceiveMessageResult",
"receiveMessage",
"(",
"String",
"queueUrl",
")",
"{",
"return",
"receiveMessage",
"(",
"new",
"ReceiveMessageRequest",
"(",
")",
".",
"withQueueUrl",
"(",
"queueUrl",
")",
")",
";",
"}"
] | public virtual ReceiveMessageResponse ReceiveMessage(string queueUrl){var request = new ReceiveMessageRequest();request.QueueUrl = queueUrl;return ReceiveMessage(request);}
| train | false |
1,091 | public NativeUnixIndexInput(NativeUnixIndexInput other) throws IOException {super(other.toString());this.fis = null;channel = other.channel;this.bufferSize = other.bufferSize;buffer = ByteBuffer.allocateDirect(bufferSize);filePos = -bufferSize;bufferPos = bufferSize;isOpen = true;isClone = true;seek(other.getFilePointe... | [
"public",
"NativeUnixIndexInput",
"(",
"NativeUnixIndexInput",
"other",
")",
"throws",
"IOException",
"{",
"super",
"(",
"other",
".",
"toString",
"(",
")",
")",
";",
"this",
".",
"fis",
"=",
"null",
";",
"channel",
"=",
"other",
".",
"channel",
";",
"this... | public NativeUnixIndexInput(NativeUnixIndexInput other) throws IOException{base(other.ToString());this.fis = null;channel = other.channel;this.bufferSize = other.bufferSize;buffer = ByteBuffer.allocateDirect(bufferSize);filePos = -bufferSize;bufferPos = bufferSize;isOpen = true;isClone = true;seek(other.FilePointer);}
| train | false |
1,092 | public Merger newMerger(Repository db, boolean inCore) {return new OneSide(db, treeIndex);}
| [
"public",
"Merger",
"newMerger",
"(",
"Repository",
"db",
",",
"boolean",
"inCore",
")",
"{",
"return",
"new",
"OneSide",
"(",
"db",
",",
"treeIndex",
")",
";",
"}"
] | public override Merger NewMerger(Repository db, bool inCore){return new StrategyOneSided.OneSide(db, treeIndex);}
| train | false |
1,093 | public void flush() {synchronized (lock) {if (out != null) {try {out.flush();} catch (IOException e) {setError();}} else {setError();}}}
| [
"public",
"void",
"flush",
"(",
")",
"{",
"synchronized",
"(",
"lock",
")",
"{",
"if",
"(",
"out",
"!=",
"null",
")",
"{",
"try",
"{",
"out",
".",
"flush",
"(",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"setError",
"(",
")",
";... | public override void flush(){lock (@lock){if (@out != null){try{@out.flush();}catch (System.IO.IOException){setError();}}else{setError();}}}
| train | false |
1,094 | public DisassociateIamInstanceProfileResult disassociateIamInstanceProfile(DisassociateIamInstanceProfileRequest request) {request = beforeClientExecution(request);return executeDisassociateIamInstanceProfile(request);}
| [
"public",
"DisassociateIamInstanceProfileResult",
"disassociateIamInstanceProfile",
"(",
"DisassociateIamInstanceProfileRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateIamInstanceProfile",
"(",
"reque... | public virtual DisassociateIamInstanceProfileResponse DisassociateIamInstanceProfile(DisassociateIamInstanceProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateIamInstanceProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateIamInstanceProfileResponse... | train | true |
1,095 | public void beginTask(String title, int totalWork) {if (!isMainThread())throw new IllegalStateException();pm.beginTask(title, totalWork);}
| [
"public",
"void",
"beginTask",
"(",
"String",
"title",
",",
"int",
"totalWork",
")",
"{",
"if",
"(",
"!",
"isMainThread",
"(",
")",
")",
"throw",
"new",
"IllegalStateException",
"(",
")",
";",
"pm",
".",
"beginTask",
"(",
"title",
",",
"totalWork",
")",
... | public override void BeginTask(string title, int totalWork){if (!IsMainThread()){throw new InvalidOperationException();}pm.BeginTask(title, totalWork);}
| train | false |
1,096 | public void run() {try {count = task.runAndMaybeStats(letChildReport);} catch (Exception e) {throw new RuntimeException(e);}}
| [
"public",
"void",
"run",
"(",
")",
"{",
"try",
"{",
"count",
"=",
"task",
".",
"runAndMaybeStats",
"(",
"letChildReport",
")",
";",
"}",
"catch",
"(",
"Exception",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] | public override void Run(){try{count = task.RunAndMaybeStats(letChildReport);}catch (Exception e){throw new Exception(e.ToString(), e);}}
| train | false |
1,097 | public TokenFilter create(TokenStream input) {return new EdgeNGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}
| [
"public",
"TokenFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"EdgeNGramTokenFilter",
"(",
"input",
",",
"minGramSize",
",",
"maxGramSize",
",",
"preserveOriginal",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new EdgeNGramTokenFilter(m_luceneMatchVersion, input, side, minGramSize, maxGramSize);}
| train | false |
1,098 | public String toString() {return "RemoteRefUpdate[remoteName="+ remoteName+ ", "+ status+ ", "+ (expectedOldObjectId != null ? expectedOldObjectId.name(): "(null)") + "..."+ (newObjectId != null ? newObjectId.name() : "(null)")+ (fastForward ? ", fastForward" : "")+ ", srcRef=" + srcRef+ (forceUpdate ? ", forceUpdate" ... | [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"RemoteRefUpdate[remoteName=\"",
"+",
"remoteName",
"+",
"\", \"",
"+",
"status",
"+",
"\", \"",
"+",
"(",
"expectedOldObjectId",
"!=",
"null",
"?",
"expectedOldObjectId",
".",
"name",
"(",
")",
":",
"... | public override string ToString(){return "RemoteRefUpdate[remoteName=" + remoteName + ", " + status + ", " + (expectedOldObjectId!= null ? expectedOldObjectId.Name : "(null)") + "..." + (newObjectId != null ?newObjectId.Name : "(null)") + (fastForward ? ", fastForward" : string.Empty) +", srcRef=" + srcRef + (forceUpda... | train | false |
1,099 | public ListJournalS3ExportsResult listJournalS3Exports(ListJournalS3ExportsRequest request) {request = beforeClientExecution(request);return executeListJournalS3Exports(request);}
| [
"public",
"ListJournalS3ExportsResult",
"listJournalS3Exports",
"(",
"ListJournalS3ExportsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListJournalS3Exports",
"(",
"request",
")",
";",
"}"
] | public virtual ListJournalS3ExportsResponse ListJournalS3Exports(ListJournalS3ExportsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJournalS3ExportsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJournalS3ExportsResponseUnmarshaller.Instance;return Invoke<ListJournalS3E... | train | false |
1,100 | public boolean lookingAt() {matchFound = lookingAtImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}
| [
"public",
"boolean",
"lookingAt",
"(",
")",
"{",
"matchFound",
"=",
"lookingAtImpl",
"(",
"address",
",",
"input",
",",
"matchOffsets",
")",
";",
"if",
"(",
"matchFound",
")",
"{",
"findPos",
"=",
"matchOffsets",
"[",
"1",
"]",
";",
"}",
"return",
"match... | public bool lookingAt(){matchFound = lookingAtImpl(address, input, matchOffsets);if (matchFound){findPos = matchOffsets[1];}return matchFound;}
| train | false |
1,101 | public DescribeIdentityUsageResult describeIdentityUsage(DescribeIdentityUsageRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityUsage(request);}
| [
"public",
"DescribeIdentityUsageResult",
"describeIdentityUsage",
"(",
"DescribeIdentityUsageRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeIdentityUsage",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeIdentityUsageResponse DescribeIdentityUsage(DescribeIdentityUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityUsageResponseUnmarshaller.Instance;return Invoke<DescribeI... | train | true |
1,102 | public void carry(RevFlag flag) {final int carry = flags & flag.mask;if (carry != 0)carryFlags(this, carry);}
| [
"public",
"void",
"carry",
"(",
"RevFlag",
"flag",
")",
"{",
"final",
"int",
"carry",
"=",
"flags",
"&",
"flag",
".",
"mask",
";",
"if",
"(",
"carry",
"!=",
"0",
")",
"carryFlags",
"(",
"this",
",",
"carry",
")",
";",
"}"
] | public virtual void Carry(RevFlag flag){int carry = flags & flag.mask;if (carry != 0){CarryFlags(this, carry);}}
| train | false |
1,103 | public Count(){_predicate = defaultPredicate;}
| [
"public",
"Count",
"(",
")",
"{",
"_predicate",
"=",
"defaultPredicate",
";",
"}"
] | public Count(){_predicate = defaultPredicate;}
| train | false |
1,104 | public ShowNoteCommand notesShow() {return new ShowNoteCommand(repo);}
| [
"public",
"ShowNoteCommand",
"notesShow",
"(",
")",
"{",
"return",
"new",
"ShowNoteCommand",
"(",
"repo",
")",
";",
"}"
] | public virtual ShowNoteCommand NotesShow(){return new ShowNoteCommand(repo);}
| train | false |
1,105 | public ResolveRoomResult resolveRoom(ResolveRoomRequest request) {request = beforeClientExecution(request);return executeResolveRoom(request);}
| [
"public",
"ResolveRoomResult",
"resolveRoom",
"(",
"ResolveRoomRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResolveRoom",
"(",
"request",
")",
";",
"}"
] | public virtual ResolveRoomResponse ResolveRoom(ResolveRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveRoomResponseUnmarshaller.Instance;return Invoke<ResolveRoomResponse>(request, options);}
| train | true |
1,106 | public ValueEval getArea3DEval(Area3DPxg aptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(aptg.getSheetName(), aptg.getLastSheetName(), aptg.getExternalWorkbookNumber());return new LazyAreaEval(aptg.getFirstRow(), aptg.getFirstColumn(),aptg.getLastRow(), aptg.getLastColumn(), sre);}
| [
"public",
"ValueEval",
"getArea3DEval",
"(",
"Area3DPxg",
"aptg",
")",
"{",
"SheetRangeEvaluator",
"sre",
"=",
"createExternSheetRefEvaluator",
"(",
"aptg",
".",
"getSheetName",
"(",
")",
",",
"aptg",
".",
"getLastSheetName",
"(",
")",
",",
"aptg",
".",
"getExte... | public ValueEval GetArea3DEval(Area3DPxg aptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(aptg.SheetName, aptg.LastSheetName, aptg.ExternalWorkbookNumber);return new LazyAreaEval(aptg.FirstRow, aptg.FirstColumn,aptg.LastRow, aptg.LastColumn, sre);}
| train | false |
1,107 | public DoubleMetaphoneFilterFactory(Map<String,String> args) {super(args);inject = getBoolean(args, INJECT, true);maxCodeLength = getInt(args, MAX_CODE_LENGTH, DEFAULT_MAX_CODE_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"DoubleMetaphoneFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"inject",
"=",
"getBoolean",
"(",
"args",
",",
"INJECT",
",",
"true",
")",
";",
"maxCodeLength",
"=",
"getInt",
"("... | public DoubleMetaphoneFilterFactory(IDictionary<string, string> args): base(args){inject = GetBoolean(args, INJECT, true);maxCodeLength = GetInt32(args, MAX_CODE_LENGTH, DEFAULT_MAX_CODE_LENGTH);if (!(args.Count == 0)){throw new ArgumentException("Unknown parameters: " + args);}}
| train | false |
1,108 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PALETTE]\n");buffer.append(" numcolors = ").append(_colors.size()).append('\n');for (int i = 0; i < _colors.size(); i++) {PColor c = _colors.get(i);buffer.append("* colornum = ").append(i).append('\n');buffer.append(c);buffer... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"buffer",
".",
"append",
"(",
"\"[PALETTE]\\n\"",
")",
";",
"buffer",
".",
"append",
"(",
"\" numcolors = \"",
")",
".",
"append",
"(",... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append(" red = ").Append(_red & 0xff).Append('\n');buffer.Append(" green = ").Append(_green & 0xff).Append('\n');buffer.Append(" blue = ").Append(_blue & 0xff).Append('\n');return buffer.ToString();}
| train | false |
1,109 | public DocOffsetSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];this.tmpOffsets = new long[maxDoc / 64];}
| [
"public",
"DocOffsetSorter",
"(",
"int",
"maxDoc",
")",
"{",
"super",
"(",
"maxDoc",
"/",
"64",
")",
";",
"this",
".",
"tmpDocs",
"=",
"new",
"int",
"[",
"maxDoc",
"/",
"64",
"]",
";",
"this",
".",
"tmpOffsets",
"=",
"new",
"long",
"[",
"maxDoc",
"... | public DocOffsetSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];this.tmpOffsets = new long[maxDoc / 64];}
| train | false |
1,110 | public EnableInsightRulesResult enableInsightRules(EnableInsightRulesRequest request) {request = beforeClientExecution(request);return executeEnableInsightRules(request);}
| [
"public",
"EnableInsightRulesResult",
"enableInsightRules",
"(",
"EnableInsightRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableInsightRules",
"(",
"request",
")",
";",
"}"
] | public virtual EnableInsightRulesResponse EnableInsightRules(EnableInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableInsightRulesResponseUnmarshaller.Instance;return Invoke<EnableInsightRulesRespon... | train | false |
1,112 | public static int getEncodedSize(Ptg[] ptgs) {int result = 0;for (Ptg ptg : ptgs) {result += ptg.getSize();}return result;}
| [
"public",
"static",
"int",
"getEncodedSize",
"(",
"Ptg",
"[",
"]",
"ptgs",
")",
"{",
"int",
"result",
"=",
"0",
";",
"for",
"(",
"Ptg",
"ptg",
":",
"ptgs",
")",
"{",
"result",
"+=",
"ptg",
".",
"getSize",
"(",
")",
";",
"}",
"return",
"result",
"... | public static int GetEncodedSize(Ptg[] ptgs){int result = 0;for (int i = 0; i < ptgs.Length; i++){result += ptgs[i].Size;}return result;}
| train | false |
1,113 | public IterationRecord(boolean iterateOn) {_flags = iterationOn.setBoolean(0, iterateOn);}
| [
"public",
"IterationRecord",
"(",
"boolean",
"iterateOn",
")",
"{",
"_flags",
"=",
"iterationOn",
".",
"setBoolean",
"(",
"0",
",",
"iterateOn",
")",
";",
"}"
] | public IterationRecord(bool iterateOn){_flags = iterationOn.SetBoolean(0, iterateOn);}
| train | false |
1,114 | public UnlinkIdentityResult unlinkIdentity(UnlinkIdentityRequest request) {request = beforeClientExecution(request);return executeUnlinkIdentity(request);}
| [
"public",
"UnlinkIdentityResult",
"unlinkIdentity",
"(",
"UnlinkIdentityRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUnlinkIdentity",
"(",
"request",
")",
";",
"}"
] | public virtual UnlinkIdentityResponse UnlinkIdentity(UnlinkIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnlinkIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = UnlinkIdentityResponseUnmarshaller.Instance;return Invoke<UnlinkIdentityResponse>(request, options);}
| train | true |
1,115 | public CreateThreatIntelSetResult createThreatIntelSet(CreateThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeCreateThreatIntelSet(request);}
| [
"public",
"CreateThreatIntelSetResult",
"createThreatIntelSet",
"(",
"CreateThreatIntelSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateThreatIntelSet",
"(",
"request",
")",
";",
"}"
] | public virtual CreateThreatIntelSetResponse CreateThreatIntelSet(CreateThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateThreatIntelSetResponseUnmarshaller.Instance;return Invoke<CreateThreatIn... | train | true |
1,116 | public TokenizedPhraseQueryNode() {setLeaf(false);allocate();}
| [
"public",
"TokenizedPhraseQueryNode",
"(",
")",
"{",
"setLeaf",
"(",
"false",
")",
";",
"allocate",
"(",
")",
";",
"}"
] | public TokenizedPhraseQueryNode(){IsLeaf = false;Allocate();}
| train | false |
1,117 | public DataItemRecord(RecordInputStream in) {isxvdData = in.readUShort();iiftab = in.readUShort();df = in.readUShort();isxvd = in.readUShort();isxvi = in.readUShort();ifmt = in.readUShort();name = in.readString();}
| [
"public",
"DataItemRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"isxvdData",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"iiftab",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"df",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"isxvd",
"=",
"i... | public DataItemRecord(RecordInputStream in1){isxvdData = in1.ReadUShort();iiftab = in1.ReadUShort();df = in1.ReadUShort();isxvd = in1.ReadUShort();isxvi = in1.ReadUShort();ifmt = in1.ReadUShort();name = in1.ReadString();}
| train | false |
1,118 | public DeleteDBParameterGroupResult deleteDBParameterGroup(DeleteDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBParameterGroup(request);}
| [
"public",
"DeleteDBParameterGroupResult",
"deleteDBParameterGroup",
"(",
"DeleteDBParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDBParameterGroup",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteDBParameterGroupResponse DeleteDBParameterGroup(DeleteDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBParameterGroupResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
1,119 | public GetReservedNodeExchangeOfferingsResult getReservedNodeExchangeOfferings(GetReservedNodeExchangeOfferingsRequest request) {request = beforeClientExecution(request);return executeGetReservedNodeExchangeOfferings(request);}
| [
"public",
"GetReservedNodeExchangeOfferingsResult",
"getReservedNodeExchangeOfferings",
"(",
"GetReservedNodeExchangeOfferingsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetReservedNodeExchangeOfferings",
"(",
... | public virtual GetReservedNodeExchangeOfferingsResponse GetReservedNodeExchangeOfferings(GetReservedNodeExchangeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReservedNodeExchangeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReservedNodeExchangeOfferin... | train | true |
1,121 | public RunInstancesResult runInstances(RunInstancesRequest request) {request = beforeClientExecution(request);return executeRunInstances(request);}
| [
"public",
"RunInstancesResult",
"runInstances",
"(",
"RunInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRunInstances",
"(",
"request",
")",
";",
"}"
] | public virtual RunInstancesResponse RunInstances(RunInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RunInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RunInstancesResponseUnmarshaller.Instance;return Invoke<RunInstancesResponse>(request, options);}
| train | true |
1,122 | public ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(String queueUrl, java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries) {return changeMessageVisibilityBatch(new ChangeMessageVisibilityBatchRequest().withQueueUrl(queueUrl).withEntries(entries));}
| [
"public",
"ChangeMessageVisibilityBatchResult",
"changeMessageVisibilityBatch",
"(",
"String",
"queueUrl",
",",
"java",
".",
"util",
".",
"List",
"<",
"ChangeMessageVisibilityBatchRequestEntry",
">",
"entries",
")",
"{",
"return",
"changeMessageVisibilityBatch",
"(",
"new",... | public virtual ChangeMessageVisibilityBatchResponse ChangeMessageVisibilityBatch(string queueUrl, List<ChangeMessageVisibilityBatchRequestEntry> entries){var request = new ChangeMessageVisibilityBatchRequest();request.QueueUrl = queueUrl;request.Entries = entries;return ChangeMessageVisibilityBatch(request);}
| train | true |
1,123 | public DeleteRealtimeEndpointResult deleteRealtimeEndpoint(DeleteRealtimeEndpointRequest request) {request = beforeClientExecution(request);return executeDeleteRealtimeEndpoint(request);}
| [
"public",
"DeleteRealtimeEndpointResult",
"deleteRealtimeEndpoint",
"(",
"DeleteRealtimeEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteRealtimeEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteRealtimeEndpointResponse DeleteRealtimeEndpoint(DeleteRealtimeEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRealtimeEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRealtimeEndpointResponseUnmarshaller.Instance;return Invoke<Dele... | train | true |
1,124 | public CreateDiskSnapshotResult createDiskSnapshot(CreateDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDiskSnapshot(request);}
| [
"public",
"CreateDiskSnapshotResult",
"createDiskSnapshot",
"(",
"CreateDiskSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDiskSnapshot",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDiskSnapshotResponse CreateDiskSnapshot(CreateDiskSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDiskSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDiskSnapshotResponseUnmarshaller.Instance;return Invoke<CreateDiskSnapshotRespon... | train | true |
1,125 | public void mark(int readLimit) throws IOException {if (readLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();markpos = pos;}}
| [
"public",
"void",
"mark",
"(",
"int",
"readLimit",
")",
"throws",
"IOException",
"{",
"if",
"(",
"readLimit",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"synchronized",
"(",
"lock",
")",
"{",
"checkNotClosed",
"(",
... | public override void mark(int readLimit){if (readLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();markpos = pos;}}
| train | false |
1,126 | public TokenStream create(TokenStream input) {return new ICUNormalizer2Filter(input, normalizer);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"ICUNormalizer2Filter",
"(",
"input",
",",
"normalizer",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new ICUNormalizer2Filter(input, normalizer);}
| train | false |
1,127 | public ModifyImageAttributeResult modifyImageAttribute(ModifyImageAttributeRequest request) {request = beforeClientExecution(request);return executeModifyImageAttribute(request);}
| [
"public",
"ModifyImageAttributeResult",
"modifyImageAttribute",
"(",
"ModifyImageAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyImageAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyImageAttributeResponse ModifyImageAttribute(ModifyImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyImageAttributeResponseUnmarshaller.Instance;return Invoke<ModifyImageAtt... | train | true |
1,128 | public DescribeClusterSubnetGroupsResult describeClusterSubnetGroups(DescribeClusterSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSubnetGroups(request);}
| [
"public",
"DescribeClusterSubnetGroupsResult",
"describeClusterSubnetGroups",
"(",
"DescribeClusterSubnetGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeClusterSubnetGroups",
"(",
"request",
")",
... | public virtual DescribeClusterSubnetGroupsResponse DescribeClusterSubnetGroups(DescribeClusterSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterSubnetGroupsResponseUnmarshaller.In... | train | true |
1,129 | public StopQueryExecutionResult stopQueryExecution(StopQueryExecutionRequest request) {request = beforeClientExecution(request);return executeStopQueryExecution(request);}
| [
"public",
"StopQueryExecutionResult",
"stopQueryExecution",
"(",
"StopQueryExecutionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopQueryExecution",
"(",
"request",
")",
";",
"}"
] | public virtual StopQueryExecutionResponse StopQueryExecution(StopQueryExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopQueryExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopQueryExecutionResponseUnmarshaller.Instance;return Invoke<StopQueryExecutionRespon... | train | true |
1,130 | public UpdateUserInfoRequest() {super("cr", "2016-06-07", "UpdateUserInfo", "cr");setUriPattern("/users");setMethod(MethodType.POST);}
| [
"public",
"UpdateUserInfoRequest",
"(",
")",
"{",
"super",
"(",
"\"cr\"",
",",
"\"2016-06-07\"",
",",
"\"UpdateUserInfo\"",
",",
"\"cr\"",
")",
";",
"setUriPattern",
"(",
"\"/users\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public UpdateUserInfoRequest(): base("cr", "2016-06-07", "UpdateUserInfo", "cr", "openAPI"){UriPattern = "/users";Method = MethodType.POST;}
| train | false |
1,131 | public DiscoverInputSchemaResult discoverInputSchema(DiscoverInputSchemaRequest request) {request = beforeClientExecution(request);return executeDiscoverInputSchema(request);}
| [
"public",
"DiscoverInputSchemaResult",
"discoverInputSchema",
"(",
"DiscoverInputSchemaRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDiscoverInputSchema",
"(",
"request",
")",
";",
"}"
] | public virtual DiscoverInputSchemaResponse DiscoverInputSchema(DiscoverInputSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DiscoverInputSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = DiscoverInputSchemaResponseUnmarshaller.Instance;return Invoke<DiscoverInputSchema... | train | true |
1,132 | public GetEnvironmentResult getEnvironment(GetEnvironmentRequest request) {request = beforeClientExecution(request);return executeGetEnvironment(request);}
| [
"public",
"GetEnvironmentResult",
"getEnvironment",
"(",
"GetEnvironmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEnvironment",
"(",
"request",
")",
";",
"}"
] | public virtual GetEnvironmentResponse GetEnvironment(GetEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEnvironmentResponseUnmarshaller.Instance;return Invoke<GetEnvironmentResponse>(request, options);}
| train | false |
1,133 | public UpdateCondition(String name, String value, Boolean exists) {setName(name);setValue(value);setExists(exists);}
| [
"public",
"UpdateCondition",
"(",
"String",
"name",
",",
"String",
"value",
",",
"Boolean",
"exists",
")",
"{",
"setName",
"(",
"name",
")",
";",
"setValue",
"(",
"value",
")",
";",
"setExists",
"(",
"exists",
")",
";",
"}"
] | public UpdateCondition(string name, string value, bool exists){_name = name;_value = value;_exists = exists;}
| train | false |
1,134 | public void serialize(LittleEndianOutput out) {out.writeShort(getCalcMode());}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"getCalcMode",
"(",
")",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(GetCalcMode());}
| train | false |
1,135 | public AmazonS3EncryptionClient(EncryptionMaterials encryptionMaterials) {this(new StaticEncryptionMaterialsProvider(encryptionMaterials));}
| [
"public",
"AmazonS3EncryptionClient",
"(",
"EncryptionMaterials",
"encryptionMaterials",
")",
"{",
"this",
"(",
"new",
"StaticEncryptionMaterialsProvider",
"(",
"encryptionMaterials",
")",
")",
";",
"}"
] | public AmazonS3EncryptionClient(EncryptionMaterials materials): base(){this.EncryptionMaterials = materials;S3CryptoConfig = new AmazonS3CryptoConfiguration();}
| train | false |
1,137 | public Iterator<E> descendingIterator() {return descendingSet().iterator();}
| [
"public",
"Iterator",
"<",
"E",
">",
"descendingIterator",
"(",
")",
"{",
"return",
"descendingSet",
"(",
")",
".",
"iterator",
"(",
")",
";",
"}"
] | public virtual java.util.Iterator<E> descendingIterator(){return descendingSet().iterator();}
| train | false |
1,138 | public DescribeSubnetGroupsResult describeSubnetGroups(DescribeSubnetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeSubnetGroups(request);}
| [
"public",
"DescribeSubnetGroupsResult",
"describeSubnetGroups",
"(",
"DescribeSubnetGroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSubnetGroups",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeSubnetGroupsResponse DescribeSubnetGroups(DescribeSubnetGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubnetGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubnetGroupsResponseUnmarshaller.Instance;return Invoke<DescribeSubnet... | train | true |
1,139 | public void append(String name, RevBlob blob) {append(name, REGULAR_FILE, blob);}
| [
"public",
"void",
"append",
"(",
"String",
"name",
",",
"RevBlob",
"blob",
")",
"{",
"append",
"(",
"name",
",",
"REGULAR_FILE",
",",
"blob",
")",
";",
"}"
] | public virtual void Append(string name, RevTree tree){Append(name, FileMode.TREE, tree);}
| train | false |
1,140 | public NavigableMap<K, V> subMap(K from, boolean fromInclusive, K to, boolean toInclusive) {Bound fromBound = fromInclusive ? INCLUSIVE : EXCLUSIVE;Bound toBound = toInclusive ? INCLUSIVE : EXCLUSIVE;return subMap(from, fromBound, to, toBound);}
| [
"public",
"NavigableMap",
"<",
"K",
",",
"V",
">",
"subMap",
"(",
"K",
"from",
",",
"boolean",
"fromInclusive",
",",
"K",
"to",
",",
"boolean",
"toInclusive",
")",
"{",
"Bound",
"fromBound",
"=",
"fromInclusive",
"?",
"INCLUSIVE",
":",
"EXCLUSIVE",
";",
... | public java.util.NavigableMap<K, V> subMap(K from, bool fromInclusive, K to, booltoInclusive){java.util.TreeMap.Bound fromBound = fromInclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;java.util.TreeMap.Bound toBound = toInclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Boun... | train | false |
1,141 | public E next() {if (expectedModCount == modCount) {try {E result = get(pos + 1);lastPosition = ++pos;return result;} catch (IndexOutOfBoundsException e) {throw new NoSuchElementException();}}throw new ConcurrentModificationException();}
| [
"public",
"E",
"next",
"(",
")",
"{",
"if",
"(",
"expectedModCount",
"==",
"modCount",
")",
"{",
"try",
"{",
"E",
"result",
"=",
"get",
"(",
"pos",
"+",
"1",
")",
";",
"lastPosition",
"=",
"++",
"pos",
";",
"return",
"result",
";",
"}",
"catch",
... | public virtual E next(){if (this.expectedModCount == this._enclosing.modCount){try{E result = this._enclosing.get(this.pos + 1);this.lastPosition = ++this.pos;return result;}catch (System.IndexOutOfRangeException){throw new java.util.NoSuchElementException();}}throw new java.util.ConcurrentModificationException();}
| train | false |
1,143 | public TokenStream create(TokenStream input) {if (dictionary == null) {return input;}return new DictionaryCompoundWordTokenFilter(input, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"if",
"(",
"dictionary",
"==",
"null",
")",
"{",
"return",
"input",
";",
"}",
"return",
"new",
"DictionaryCompoundWordTokenFilter",
"(",
"input",
",",
"dictionary",
",",
"minWordSize",
"... | public override TokenStream Create(TokenStream input){return dictionary == null ? input : new DictionaryCompoundWordTokenFilter(m_luceneMatchVersion, input, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}
| train | false |
1,144 | public String toString() {StringBuilder r = new StringBuilder();r.append("(");fieldNamesToString(r);r.append(q.toString());r.append(")");return r.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"r",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"r",
".",
"append",
"(",
"\"(\"",
")",
";",
"fieldNamesToString",
"(",
"r",
")",
";",
"r",
".",
"append",
"(",
"q",
".",
"toString",
"(",... | public override string ToString(){StringBuilder r = new StringBuilder();r.Append("(");FieldNamesToString(r);r.Append(q.ToString());r.Append(")");return r.ToString();}
| train | false |
1,145 | public AssociateDeviceWithRoomResult associateDeviceWithRoom(AssociateDeviceWithRoomRequest request) {request = beforeClientExecution(request);return executeAssociateDeviceWithRoom(request);}
| [
"public",
"AssociateDeviceWithRoomResult",
"associateDeviceWithRoom",
"(",
"AssociateDeviceWithRoomRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAssociateDeviceWithRoom",
"(",
"request",
")",
";",
"}"
] | public virtual AssociateDeviceWithRoomResponse AssociateDeviceWithRoom(AssociateDeviceWithRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateDeviceWithRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateDeviceWithRoomResponseUnmarshaller.Instance;return Invoke... | train | true |
1,146 | public DeleteRetentionPolicyRequest(String logGroupName) {setLogGroupName(logGroupName);}
| [
"public",
"DeleteRetentionPolicyRequest",
"(",
"String",
"logGroupName",
")",
"{",
"setLogGroupName",
"(",
"logGroupName",
")",
";",
"}"
] | public DeleteRetentionPolicyRequest(string logGroupName){_logGroupName = logGroupName;}
| train | false |
1,147 | public TypeTokenFilterFactory(Map<String,String> args) {super(args);stopTypesFiles = require(args, "types");useWhitelist = getBoolean(args, "useWhitelist", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"TypeTokenFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"stopTypesFiles",
"=",
"require",
"(",
"args",
",",
"\"types\"",
")",
";",
"useWhitelist",
"=",
"getBoolean",
"(",
"args",
... | public TypeTokenFilterFactory(IDictionary<string, string> args): base(args){stopTypesFiles = Require(args, "types");enablePositionIncrements = GetBoolean(args, "enablePositionIncrements", true);useWhitelist = GetBoolean(args, "useWhitelist", false);if (args.Count > 0){throw new System.ArgumentException("Unknown paramet... | train | false |
1,148 | public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, String certificateBody) {setServerCertificateMetadata(serverCertificateMetadata);setCertificateBody(certificateBody);}
| [
"public",
"ServerCertificate",
"(",
"ServerCertificateMetadata",
"serverCertificateMetadata",
",",
"String",
"certificateBody",
")",
"{",
"setServerCertificateMetadata",
"(",
"serverCertificateMetadata",
")",
";",
"setCertificateBody",
"(",
"certificateBody",
")",
";",
"}"
] | public ServerCertificate(ServerCertificateMetadata serverCertificateMetadata, string certificateBody){_serverCertificateMetadata = serverCertificateMetadata;_certificateBody = certificateBody;}
| train | false |
1,149 | public final void add(RevCommit c, RevFlag queueControl) {if (!c.has(queueControl)) {c.add(queueControl);add(c);}}
| [
"public",
"final",
"void",
"add",
"(",
"RevCommit",
"c",
",",
"RevFlag",
"queueControl",
")",
"{",
"if",
"(",
"!",
"c",
".",
"has",
"(",
"queueControl",
")",
")",
"{",
"c",
".",
"add",
"(",
"queueControl",
")",
";",
"add",
"(",
"c",
")",
";",
"}"... | public void Add(RevCommit c, RevFlag queueControl){if (!c.Has(queueControl)){c.Add(queueControl);Add(c);}}
| train | false |
1,150 | public BlameCommand setFilePath(String filePath) {this.path = filePath;return this;}
| [
"public",
"BlameCommand",
"setFilePath",
"(",
"String",
"filePath",
")",
"{",
"this",
".",
"path",
"=",
"filePath",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.BlameCommand SetFilePath(string filePath){this.path = filePath;return this;}
| train | false |
1,151 | public boolean isTraverseEmptyCells() {return traverseEmptyCells;}
| [
"public",
"boolean",
"isTraverseEmptyCells",
"(",
")",
"{",
"return",
"traverseEmptyCells",
";",
"}"
] | public bool IsTraverseEmptyCells(){return traverseEmptyCells;}
| train | false |
1,152 | public QueryCustomerByIdRequest() {super("xspace", "2017-07-20", "QueryCustomerById");setUriPattern("/customer");setMethod(MethodType.PUT);}
| [
"public",
"QueryCustomerByIdRequest",
"(",
")",
"{",
"super",
"(",
"\"xspace\"",
",",
"\"2017-07-20\"",
",",
"\"QueryCustomerById\"",
")",
";",
"setUriPattern",
"(",
"\"/customer\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"PUT",
")",
";",
"}"
] | public QueryCustomerByIdRequest(): base("xspace", "2017-07-20", "QueryCustomerById"){UriPattern = "/customer";Method = MethodType.PUT;}
| train | false |
1,153 | public OpenNLPPOSFilterFactory(Map<String,String> args) {super(args);posTaggerModelFile = require(args, POS_TAGGER_MODEL);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"OpenNLPPOSFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"posTaggerModelFile",
"=",
"require",
"(",
"args",
",",
"POS_TAGGER_MODEL",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEm... | public OpenNLPPOSFilterFactory(IDictionary<string, string> args): base(args){posTaggerModelFile = Require(args, POS_TAGGER_MODEL);if (args.Any()){throw new ArgumentException("Unknown parameters: " + args);}}
| train | false |
1,154 | public GetLinkAttributesResult getLinkAttributes(GetLinkAttributesRequest request) {request = beforeClientExecution(request);return executeGetLinkAttributes(request);}
| [
"public",
"GetLinkAttributesResult",
"getLinkAttributes",
"(",
"GetLinkAttributesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetLinkAttributes",
"(",
"request",
")",
";",
"}"
] | public virtual GetLinkAttributesResponse GetLinkAttributes(GetLinkAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLinkAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLinkAttributesResponseUnmarshaller.Instance;return Invoke<GetLinkAttributesResponse>(re... | train | true |
1,155 | public byte[] getByteBlock() {bytesUsed.addAndGet(blockSize);return new byte[blockSize];}
| [
"public",
"byte",
"[",
"]",
"getByteBlock",
"(",
")",
"{",
"bytesUsed",
".",
"addAndGet",
"(",
"blockSize",
")",
";",
"return",
"new",
"byte",
"[",
"blockSize",
"]",
";",
"}"
] | public override byte[] GetByteBlock(){bytesUsed.AddAndGet(m_blockSize);return new byte[m_blockSize];}
| train | false |
1,156 | public CanonicalTreeParser() {reset(EMPTY);}
| [
"public",
"CanonicalTreeParser",
"(",
")",
"{",
"reset",
"(",
"EMPTY",
")",
";",
"}"
] | public CanonicalTreeParser(){Reset(EMPTY);}
| train | false |
1,157 | public OldLabelRecord(RecordInputStream in){super(in, in.getSid() == biff2_sid);if (isBiff2()) {field_4_string_len = (short)in.readUByte();} else {field_4_string_len = in.readShort();}field_5_bytes = IOUtils.safelyAllocate(field_4_string_len, MAX_RECORD_LENGTH);in.read(field_5_bytes, 0, field_4_string_len);if (in.re... | [
"public",
"OldLabelRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"super",
"(",
"in",
",",
"in",
".",
"getSid",
"(",
")",
"==",
"biff2_sid",
")",
";",
"if",
"(",
"isBiff2",
"(",
")",
")",
"{",
"field_4_string_len",
"=",
"(",
"short",
")",
"in",
"... | public OldLabelRecord(RecordInputStream in1): base(in1, in1.Sid == biff2_sid){if (IsBiff2){field_4_string_len = (short)in1.ReadUByte();}else{field_4_string_len = in1.ReadShort();}field_5_bytes = new byte[field_4_string_len];in1.Read(field_5_bytes, 0, field_4_string_len);if (in1.Remaining > 0){logger.Log(POILogger.INFO,... | train | false |
1,158 | public DBCellRecord clone() {return copy();}
| [
"public",
"DBCellRecord",
"clone",
"(",
")",
"{",
"return",
"copy",
"(",
")",
";",
"}"
] | public override Object Clone(){return this;}
| train | false |
1,159 | public GetCampaignResult getCampaign(GetCampaignRequest request) {request = beforeClientExecution(request);return executeGetCampaign(request);}
| [
"public",
"GetCampaignResult",
"getCampaign",
"(",
"GetCampaignRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetCampaign",
"(",
"request",
")",
";",
"}"
] | public virtual GetCampaignResponse GetCampaign(GetCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignResponseUnmarshaller.Instance;return Invoke<GetCampaignResponse>(request, options);}
| train | true |
1,160 | public boolean isEmpty() {return backingMap.isEmpty();}
| [
"public",
"boolean",
"isEmpty",
"(",
")",
"{",
"return",
"backingMap",
".",
"isEmpty",
"(",
")",
";",
"}"
] | public override bool isEmpty(){return backingMap.isEmpty();}
| train | false |
1,161 | public Object subtract(Object object, Object inc) {return outputs.subtract((T) object, (T) inc);}
| [
"public",
"Object",
"subtract",
"(",
"Object",
"object",
",",
"Object",
"inc",
")",
"{",
"return",
"outputs",
".",
"subtract",
"(",
"(",
"T",
")",
"object",
",",
"(",
"T",
")",
"inc",
")",
";",
"}"
] | public override object Subtract(object @object, object inc){return outputs.Subtract((T)@object, (T)inc);}
| train | false |
1,162 | public String toString() {StringBuilder sb = new StringBuilder();sb.append("[COLINFO]\n");sb.append(" colfirst = ").append(getFirstColumn()).append("\n");sb.append(" collast = ").append(getLastColumn()).append("\n");sb.append(" colwidth = ").append(getColumnWidth()).append("\n");sb.append(" xfindex = ").append(ge... | [
"public",
"String",
"toString",
"(",
")",
"{",
"StringBuilder",
"sb",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"sb",
".",
"append",
"(",
"\"[COLINFO]\\n\"",
")",
";",
"sb",
".",
"append",
"(",
"\" colfirst = \"",
")",
".",
"append",
"(",
"getFirstColum... | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[COLINFO]\n");buffer.Append("colfirst = ").Append(FirstColumn).Append("\n");buffer.Append("collast = ").Append(LastColumn).Append("\n");buffer.Append("colwidth = ").Append(ColumnWidth).Append("\n");buffer.Appe... | train | false |
1,163 | public EditList toEditList() {final EditList r = new EditList();for (HunkHeader hunk : hunks)r.addAll(hunk.toEditList());return r;}
| [
"public",
"EditList",
"toEditList",
"(",
")",
"{",
"final",
"EditList",
"r",
"=",
"new",
"EditList",
"(",
")",
";",
"for",
"(",
"HunkHeader",
"hunk",
":",
"hunks",
")",
"r",
".",
"addAll",
"(",
"hunk",
".",
"toEditList",
"(",
")",
")",
";",
"return",... | public virtual EditList ToEditList(){EditList r = new EditList();foreach (HunkHeader hunk in hunks){Sharpen.Collections.AddAll(r, hunk.ToEditList());}return r;}
| train | false |
1,164 | public void setParams(String params) {super.setParams(params);if (params != null) {String[] split = params.split(",");if (split.length > 0) {commitUserData = split[0];}}}
| [
"public",
"void",
"setParams",
"(",
"String",
"params",
")",
"{",
"super",
".",
"setParams",
"(",
"params",
")",
";",
"if",
"(",
"params",
"!=",
"null",
")",
"{",
"String",
"[",
"]",
"split",
"=",
"params",
".",
"split",
"(",
"\",\"",
")",
";",
"if... | public override void SetParams(string @params){base.SetParams(@params);if (@params != null){string[] split = @params.Split(',').TrimEnd();if (split.Length > 0){commitUserData = split[0];}}}
| train | false |
1,165 | public HSSFCell createCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if(columnIndex > 0x7FFF) {shortCellNum = (short)(0xffff - columnIndex);}HSSFCell cell = new HSSFCell(book, sheet, getRowNum(), shortCellNum, type);addCell(cell);sheet.getSheet().addValueRecord(getRowNum(), cell.getCellVal... | [
"public",
"HSSFCell",
"createCell",
"(",
"int",
"columnIndex",
",",
"CellType",
"type",
")",
"{",
"short",
"shortCellNum",
"=",
"(",
"short",
")",
"columnIndex",
";",
"if",
"(",
"columnIndex",
">",
"0x7FFF",
")",
"{",
"shortCellNum",
"=",
"(",
"short",
")"... | public ICell CreateCell(int columnIndex, CellType type){short shortCellNum = (short)columnIndex;if (columnIndex > 0x7FFF){shortCellNum = (short)(0xffff - columnIndex);}ICell cell = new HSSFCell(book, sheet, RowNum, (short)columnIndex, type);AddCell(cell);sheet.Sheet.AddValueRecord(RowNum, ((HSSFCell)cell).CellValueReco... | train | false |
1,166 | public PhraseQuery build() {Term[] terms = this.terms.toArray(new Term[this.terms.size()]);int[] positions = new int[this.positions.size()];for (int i = 0; i < positions.length; ++i) {positions[i] = this.positions.get(i);}return new PhraseQuery(slop, terms, positions);}
| [
"public",
"PhraseQuery",
"build",
"(",
")",
"{",
"Term",
"[",
"]",
"terms",
"=",
"this",
".",
"terms",
".",
"toArray",
"(",
"new",
"Term",
"[",
"this",
".",
"terms",
".",
"size",
"(",
")",
"]",
")",
";",
"int",
"[",
"]",
"positions",
"=",
"new",
... | 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; ... | train | false |
1,167 | public ModifyInstanceEventStartTimeResult modifyInstanceEventStartTime(ModifyInstanceEventStartTimeRequest request) {request = beforeClientExecution(request);return executeModifyInstanceEventStartTime(request);}
| [
"public",
"ModifyInstanceEventStartTimeResult",
"modifyInstanceEventStartTime",
"(",
"ModifyInstanceEventStartTimeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyInstanceEventStartTime",
"(",
"request",
"... | public virtual ModifyInstanceEventStartTimeResponse ModifyInstanceEventStartTime(ModifyInstanceEventStartTimeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceEventStartTimeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceEventStartTimeResponseUnmarshall... | train | true |
1,168 | public boolean checkShowJsonItemName() {return false;}
| [
"public",
"boolean",
"checkShowJsonItemName",
"(",
")",
"{",
"return",
"false",
";",
"}"
] | public override bool CheckShowJsonItemName(){return false;}
| train | false |
1,169 | public Analyzer create() {return new Analyzer() {private final Integer positionIncrementGap = AnalyzerFactory.this.positionIncrementGap;private final Integer offsetGap = AnalyzerFactory.this.offsetGap;};}
| [
"public",
"Analyzer",
"create",
"(",
")",
"{",
"return",
"new",
"Analyzer",
"(",
")",
"{",
"private",
"final",
"Integer",
"positionIncrementGap",
"=",
"AnalyzerFactory",
".",
"this",
".",
"positionIncrementGap",
";",
"private",
"final",
"Integer",
"offsetGap",
"... | public Analyzer Create(){return new AnalyzerAnonymousHelper(this);}
| train | false |
1,170 | public static RevFilter create(RevFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new... | [
"public",
"static",
"RevFilter",
"create",
"(",
"RevFilter",
"[",
"]",
"list",
")",
"{",
"if",
"(",
"list",
".",
"length",
"==",
"2",
")",
"return",
"create",
"(",
"list",
"[",
"0",
"]",
",",
"list",
"[",
"1",
"]",
")",
";",
"if",
"(",
"list",
... | public static RevFilter Create(RevFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}RevFilter[] subfilters = new RevFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new OrRevFil... | train | false |
1,171 | public DescribePrefixListsResult describePrefixLists(DescribePrefixListsRequest request) {request = beforeClientExecution(request);return executeDescribePrefixLists(request);}
| [
"public",
"DescribePrefixListsResult",
"describePrefixLists",
"(",
"DescribePrefixListsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribePrefixLists",
"(",
"request",
")",
";",
"}"
] | public virtual DescribePrefixListsResponse DescribePrefixLists(DescribePrefixListsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePrefixListsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePrefixListsResponseUnmarshaller.Instance;return Invoke<DescribePrefixLists... | train | true |
1,172 | public CharVector clone() {CharVector cv = new CharVector(array.clone(), blockSize);cv.n = this.n;return cv;}
| [
"public",
"CharVector",
"clone",
"(",
")",
"{",
"CharVector",
"cv",
"=",
"new",
"CharVector",
"(",
"array",
".",
"clone",
"(",
")",
",",
"blockSize",
")",
";",
"cv",
".",
"n",
"=",
"this",
".",
"n",
";",
"return",
"cv",
";",
"}"
] | public virtual object Clone(){CharVector cv = new CharVector((char[])array.Clone(), blockSize);cv.n = this.n;return cv;}
| train | false |
1,173 | public CreateDatasetImportJobResult createDatasetImportJob(CreateDatasetImportJobRequest request) {request = beforeClientExecution(request);return executeCreateDatasetImportJob(request);}
| [
"public",
"CreateDatasetImportJobResult",
"createDatasetImportJob",
"(",
"CreateDatasetImportJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDatasetImportJob",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDatasetImportJobResponse CreateDatasetImportJob(CreateDatasetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDatasetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDatasetImportJobResponseUnmarshaller.Instance;return Invoke<Crea... | train | false |
1,174 | public GetRecommenderConfigurationsResult getRecommenderConfigurations(GetRecommenderConfigurationsRequest request) {request = beforeClientExecution(request);return executeGetRecommenderConfigurations(request);}
| [
"public",
"GetRecommenderConfigurationsResult",
"getRecommenderConfigurations",
"(",
"GetRecommenderConfigurationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRecommenderConfigurations",
"(",
"request",
"... | public virtual GetRecommenderConfigurationsResponse GetRecommenderConfigurations(GetRecommenderConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommenderConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommenderConfigurationsResponseUnmarshall... | train | false |
1,175 | public void setOldPrefix(String prefix) {oldPrefix = prefix;}
| [
"public",
"void",
"setOldPrefix",
"(",
"String",
"prefix",
")",
"{",
"oldPrefix",
"=",
"prefix",
";",
"}"
] | public virtual void SetOldPrefix(string prefix){oldPrefix = prefix;}
| train | false |
1,176 | public DescribeAvailabilityZonesResult describeAvailabilityZones() {return describeAvailabilityZones(new DescribeAvailabilityZonesRequest());}
| [
"public",
"DescribeAvailabilityZonesResult",
"describeAvailabilityZones",
"(",
")",
"{",
"return",
"describeAvailabilityZones",
"(",
"new",
"DescribeAvailabilityZonesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeAvailabilityZonesResponse DescribeAvailabilityZones(){return DescribeAvailabilityZones(new DescribeAvailabilityZonesRequest());}
| train | false |
1,177 | public final boolean matches(char c) {return this.expectedCharacter == c;}
| [
"public",
"final",
"boolean",
"matches",
"(",
"char",
"c",
")",
"{",
"return",
"this",
".",
"expectedCharacter",
"==",
"c",
";",
"}"
] | public bool Matches(char c){return this.expectedCharacter == c;}
| train | false |
1,178 | public static void putCompressedUnicode(String input, byte[] output, int offset) {byte[] bytes = input.getBytes(ISO_8859_1);System.arraycopy(bytes, 0, output, offset, bytes.length);}
| [
"public",
"static",
"void",
"putCompressedUnicode",
"(",
"String",
"input",
",",
"byte",
"[",
"]",
"output",
",",
"int",
"offset",
")",
"{",
"byte",
"[",
"]",
"bytes",
"=",
"input",
".",
"getBytes",
"(",
"ISO_8859_1",
")",
";",
"System",
".",
"arraycopy"... | public static void PutCompressedUnicode(String input, byte[] output, int offset){byte[] bytes = ISO_8859_1.GetBytes(input);Array.Copy(bytes, 0, output, offset, bytes.Length);}
| train | false |
1,179 | public void put(int key, int value) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {mValues[i] = value;} else {i = ~i;if (mSize >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arrayco... | [
"public",
"void",
"put",
"(",
"int",
"key",
",",
"int",
"value",
")",
"{",
"int",
"i",
"=",
"binarySearch",
"(",
"mKeys",
",",
"0",
",",
"mSize",
",",
"key",
")",
";",
"if",
"(",
"i",
">=",
"0",
")",
"{",
"mValues",
"[",
"i",
"]",
"=",
"value... | public virtual void put(int key, int value){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){mValues[i] = value;}else{i = ~i;if (mSize >= mKeys.Length){int n = android.util.@internal.ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.Array.Copy(mKeys, 0, nkeys, 0, m... | train | true |
1,180 | public void clearEscherRecords(){escherRecords.clear();}
| [
"public",
"void",
"clearEscherRecords",
"(",
")",
"{",
"escherRecords",
".",
"clear",
"(",
")",
";",
"}"
] | public void ClearEscherRecords(){escherRecords.Clear();}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.