id_within_dataset int64 0 10.3k | snippet stringlengths 29 1.4k | tokens listlengths 10 314 | cs stringlengths 28 1.38k | split_within_dataset stringclasses 1
value | is_duplicated bool 2
classes |
|---|---|---|---|---|---|
2,032 | public BatchGetDeploymentTargetsResult batchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentTargets(request);}
| [
"public",
"BatchGetDeploymentTargetsResult",
"batchGetDeploymentTargets",
"(",
"BatchGetDeploymentTargetsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeBatchGetDeploymentTargets",
"(",
"request",
")",
";",
... | public virtual BatchGetDeploymentTargetsResponse BatchGetDeploymentTargets(BatchGetDeploymentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentTargetsResponseUnmarshaller.Instance;ret... | train | true |
2,033 | public GetRulesResult getRules(GetRulesRequest request) {request = beforeClientExecution(request);return executeGetRules(request);}
| [
"public",
"GetRulesResult",
"getRules",
"(",
"GetRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRules",
"(",
"request",
")",
";",
"}"
] | public virtual GetRulesResponse GetRules(GetRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRulesResponseUnmarshaller.Instance;return Invoke<GetRulesResponse>(request, options);}
| train | false |
2,034 | public void setMessage(String newMessage) {message = newMessage;}
| [
"public",
"void",
"setMessage",
"(",
"String",
"newMessage",
")",
"{",
"message",
"=",
"newMessage",
";",
"}"
] | public virtual void SetMessage(string newMessage){message = newMessage;}
| train | false |
2,035 | public String toString(String field) {return null;}
| [
"public",
"String",
"toString",
"(",
"String",
"field",
")",
"{",
"return",
"null",
";",
"}"
] | public override string ToString(string field){return null;}
| train | false |
2,036 | public ReplicationGroup completeMigration(CompleteMigrationRequest request) {request = beforeClientExecution(request);return executeCompleteMigration(request);}
| [
"public",
"ReplicationGroup",
"completeMigration",
"(",
"CompleteMigrationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCompleteMigration",
"(",
"request",
")",
";",
"}"
] | public virtual CompleteMigrationResponse CompleteMigration(CompleteMigrationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CompleteMigrationRequestMarshaller.Instance;options.ResponseUnmarshaller = CompleteMigrationResponseUnmarshaller.Instance;return Invoke<CompleteMigrationResponse>(re... | train | false |
2,037 | public SupBookRecord(RecordInputStream in) {int recLen = in.remaining();field_1_number_of_sheets = in.readShort();if(recLen > SMALL_RECORD_SIZE) {_isAddInFunctions = false;field_2_encoded_url = in.readString();String[] sheetNames = new String[field_1_number_of_sheets];for (int i = 0; i < sheetNames.length; i++) {sheetN... | [
"public",
"SupBookRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"int",
"recLen",
"=",
"in",
".",
"remaining",
"(",
")",
";",
"field_1_number_of_sheets",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"if",
"(",
"recLen",
">",
"SMALL_RECORD_SIZE",
")",
"{... | public SupBookRecord(RecordInputStream in1){int recLen = in1.Remaining;field_1_number_of_sheets = in1.ReadShort();if (recLen > SMALL_RECORD_SIZE){_isAddInFunctions = false;field_2_encoded_url = in1.ReadString();String[] sheetNames = new String[field_1_number_of_sheets];for (int i = 0; i < sheetNames.Length; i++){sheetN... | train | false |
2,038 | public GetEmailTemplateResult getEmailTemplate(GetEmailTemplateRequest request) {request = beforeClientExecution(request);return executeGetEmailTemplate(request);}
| [
"public",
"GetEmailTemplateResult",
"getEmailTemplate",
"(",
"GetEmailTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetEmailTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual GetEmailTemplateResponse GetEmailTemplate(GetEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailTemplateResponseUnmarshaller.Instance;return Invoke<GetEmailTemplateResponse>(request,... | train | false |
2,039 | public void setByte(int index, int value) {switch (index >> 2) {case 0:w1 = set(w1, index & 3, value);break;case 1:w2 = set(w2, index & 3, value);break;case 2:w3 = set(w3, index & 3, value);break;case 3:w4 = set(w4, index & 3, value);break;case 4:w5 = set(w5, index & 3, value);break;default:throw new ArrayIndexOutOfBou... | [
"public",
"void",
"setByte",
"(",
"int",
"index",
",",
"int",
"value",
")",
"{",
"switch",
"(",
"index",
">",
">",
"2",
")",
"{",
"case",
"0",
":",
"w1",
"=",
"set",
"(",
"w1",
",",
"index",
"&",
"3",
",",
"value",
")",
";",
"break",
";",
"ca... | public virtual void SetByte(int index, int value){switch (index >> 2){case 0:{w1 = Set(w1, index & 3, value);break;}case 1:{w2 = Set(w2, index & 3, value);break;}case 2:{w3 = Set(w3, index & 3, value);break;}case 3:{w4 = Set(w4, index & 3, value);break;}case 4:{w5 = Set(w5, index & 3, value);break;}default:{throw Sharp... | train | false |
2,040 | public LongBuffer put(int index, long c) {throw new ReadOnlyBufferException();}
| [
"public",
"LongBuffer",
"put",
"(",
"int",
"index",
",",
"long",
"c",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] | public override java.nio.LongBuffer put(int index, long c){throw new java.nio.ReadOnlyBufferException();}
| train | false |
2,041 | public SumTotalTermFreqValueSource(String indexedField) {this.indexedField = indexedField;}
| [
"public",
"SumTotalTermFreqValueSource",
"(",
"String",
"indexedField",
")",
"{",
"this",
".",
"indexedField",
"=",
"indexedField",
";",
"}"
] | public SumTotalTermFreqValueSource(string indexedField){this.m_indexedField = indexedField;}
| train | false |
2,042 | public NavigableSet<E> tailSet(E start, boolean startInclusive) {Comparator<? super E> c = backingMap.comparator();if (c == null) {((Comparable<E>) start).compareTo(start);} else {c.compare(start, start);}return new TreeSet<E>(backingMap.tailMap(start, startInclusive));}
| [
"public",
"NavigableSet",
"<",
"E",
">",
"tailSet",
"(",
"E",
"start",
",",
"boolean",
"startInclusive",
")",
"{",
"Comparator",
"<",
"?",
"super",
"E",
">",
"c",
"=",
"backingMap",
".",
"comparator",
"(",
")",
";",
"if",
"(",
"c",
"==",
"null",
")",... | public virtual java.util.NavigableSet<E> tailSet(E start, bool startInclusive){java.util.Comparator<E> c = backingMap.comparator();if (c == null){((java.lang.Comparable<E>)start).compareTo(start);}else{c.compare(start, start);}return new java.util.TreeSet<E>(backingMap.tailMap(start, startInclusive));}
| train | false |
2,043 | public ReadJobResult readJob(ReadJobRequest request) {request = beforeClientExecution(request);return executeReadJob(request);}
| [
"public",
"ReadJobResult",
"readJob",
"(",
"ReadJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeReadJob",
"(",
"request",
")",
";",
"}"
] | public virtual ReadJobResponse ReadJob(ReadJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReadJobRequestMarshaller.Instance;options.ResponseUnmarshaller = ReadJobResponseUnmarshaller.Instance;return Invoke<ReadJobResponse>(request, options);}
| train | true |
2,044 | public GetSignalingChannelEndpointResult getSignalingChannelEndpoint(GetSignalingChannelEndpointRequest request) {request = beforeClientExecution(request);return executeGetSignalingChannelEndpoint(request);}
| [
"public",
"GetSignalingChannelEndpointResult",
"getSignalingChannelEndpoint",
"(",
"GetSignalingChannelEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetSignalingChannelEndpoint",
"(",
"request",
")",
... | public virtual GetSignalingChannelEndpointResponse GetSignalingChannelEndpoint(GetSignalingChannelEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSignalingChannelEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSignalingChannelEndpointResponseUnmarshaller.In... | train | false |
2,045 | public VariableGapTermsIndexWriter(SegmentWriteState state, IndexTermSelector policy) throws IOException {final String indexFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, TERMS_INDEX_EXTENSION);out = state.directory.createOutput(indexFileName, state.context);boolean success = fal... | [
"public",
"VariableGapTermsIndexWriter",
"(",
"SegmentWriteState",
"state",
",",
"IndexTermSelector",
"policy",
")",
"throws",
"IOException",
"{",
"final",
"String",
"indexFileName",
"=",
"IndexFileNames",
".",
"segmentFileName",
"(",
"state",
".",
"segmentInfo",
".",
... | public VariableGapTermsIndexWriter(SegmentWriteState state, IndexTermSelector policy){string indexFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, TERMS_INDEX_EXTENSION);m_output = state.Directory.CreateOutput(indexFileName, state.Context);bool success = false;try{fieldInfos = stat... | train | false |
2,046 | @Override public boolean add(E object) {Object[] a = array;int s = size;if (s == a.length) {Object[] newArray = new Object[s +(s < (MIN_CAPACITY_INCREMENT / 2) ?MIN_CAPACITY_INCREMENT : s >> 1)];System.arraycopy(a, 0, newArray, 0, s);array = a = newArray;}a[s] = object;size = s + 1;modCount++;return true;}
| [
"@",
"Override",
"public",
"boolean",
"add",
"(",
"E",
"object",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"s",
"=",
"size",
";",
"if",
"(",
"s",
"==",
"a",
".",
"length",
")",
"{",
"Object",
"[",
"]",
"newArray",
"=",
"new",... | public override bool add(E @object){object[] a = array;int s = _size;if (s == a.Length){object[] newArray = new object[s + (s < (java.util.ArrayList.MIN_CAPACITY_INCREMENT/ 2) ? java.util.ArrayList.MIN_CAPACITY_INCREMENT : s >> 1)];System.Array.Copy(a, 0, newArray, 0, s);array = a = newArray;}a[s] = @object;_size = s +... | train | false |
2,047 | public Set<Integer> toSet() {Set<Integer> s = new HashSet<Integer>();for (Interval I : intervals) {int a = I.a;int b = I.b;for (int v=a; v<=b; v++) {s.add(v);}}return s;}
| [
"public",
"Set",
"<",
"Integer",
">",
"toSet",
"(",
")",
"{",
"Set",
"<",
"Integer",
">",
"s",
"=",
"new",
"HashSet",
"<",
"Integer",
">",
"(",
")",
";",
"for",
"(",
"Interval",
"I",
":",
"intervals",
")",
"{",
"int",
"a",
"=",
"I",
".",
"a",
... | public virtual HashSet<int> ToSet(){HashSet<int> s = new HashSet<int>();foreach (Interval I in intervals){int a = I.a;int b = I.b;for (int v = a; v <= b; v++){s.Add(v);}}return s;}
| train | false |
2,048 | public final void writeBoolean(boolean val) throws IOException {write(val ? 1 : 0);}
| [
"public",
"final",
"void",
"writeBoolean",
"(",
"boolean",
"val",
")",
"throws",
"IOException",
"{",
"write",
"(",
"val",
"?",
"1",
":",
"0",
")",
";",
"}"
] | public virtual void writeBoolean(bool val){throw new System.NotImplementedException();}
| train | false |
2,049 | public void serialize(LittleEndianOutput out) {throw new RecordFormatException( "Sorry, you can't serialize MulRK in this release");}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"throw",
"new",
"RecordFormatException",
"(",
"\"Sorry, you can't serialize MulRK in this release\"",
")",
";",
"}"
] | public override void Serialize(ILittleEndianOutput out1){throw new RecordFormatException("Sorry, you can't serialize MulRK in this release");}
| train | false |
2,050 | public T get(int index) {if (index < 0 || size <= index)throw new IndexOutOfBoundsException(String.valueOf(index));return directory[toDirectoryIndex(index)][toBlockIndex(index)];}
| [
"public",
"T",
"get",
"(",
"int",
"index",
")",
"{",
"if",
"(",
"index",
"<",
"0",
"||",
"size",
"<=",
"index",
")",
"throw",
"new",
"IndexOutOfBoundsException",
"(",
"String",
".",
"valueOf",
"(",
"index",
")",
")",
";",
"return",
"directory",
"[",
... | public override T Get(int index){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}return directory[ToDirectoryIndex(index)][ToBlockIndex(index)];}
| train | false |
2,051 | public DeleteSnapshotCopyGrantResult deleteSnapshotCopyGrant(DeleteSnapshotCopyGrantRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotCopyGrant(request);}
| [
"public",
"DeleteSnapshotCopyGrantResult",
"deleteSnapshotCopyGrant",
"(",
"DeleteSnapshotCopyGrantRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteSnapshotCopyGrant",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteSnapshotCopyGrantResponse DeleteSnapshotCopyGrant(DeleteSnapshotCopyGrantRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotCopyGrantRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotCopyGrantResponseUnmarshaller.Instance;return Invoke... | train | true |
2,052 | public void resetFontStyle(){setFontStyle(false,false);}
| [
"public",
"void",
"resetFontStyle",
"(",
")",
"{",
"setFontStyle",
"(",
"false",
",",
"false",
")",
";",
"}"
] | public void ResetFontStyle(){SetFontStyle(false, false);}
| train | false |
2,053 | public static int getEncodedSize(int numberOfRanges) {return 2 + CellRangeAddress.getEncodedSize(numberOfRanges);}
| [
"public",
"static",
"int",
"getEncodedSize",
"(",
"int",
"numberOfRanges",
")",
"{",
"return",
"2",
"+",
"CellRangeAddress",
".",
"getEncodedSize",
"(",
"numberOfRanges",
")",
";",
"}"
] | public static int GetEncodedSize(int numberOfRanges){return 2 + CellRangeAddress.GetEncodedSize(numberOfRanges);}
| train | false |
2,054 | public ListJobsRequest(String vaultName) {setVaultName(vaultName);}
| [
"public",
"ListJobsRequest",
"(",
"String",
"vaultName",
")",
"{",
"setVaultName",
"(",
"vaultName",
")",
";",
"}"
] | public ListJobsRequest(string vaultName){_vaultName = vaultName;}
| train | false |
2,055 | public DeletePlacementGroupRequest(String groupName) {setGroupName(groupName);}
| [
"public",
"DeletePlacementGroupRequest",
"(",
"String",
"groupName",
")",
"{",
"setGroupName",
"(",
"groupName",
")",
";",
"}"
] | public DeletePlacementGroupRequest(string groupName){_groupName = groupName;}
| train | false |
2,056 | public void fill() {lazyInit();final int blockSize = 1000;while (true) {int fetched = fetch(blockSize);if (fetched < blockSize) {return;}}}
| [
"public",
"void",
"fill",
"(",
")",
"{",
"lazyInit",
"(",
")",
";",
"final",
"int",
"blockSize",
"=",
"1000",
";",
"while",
"(",
"true",
")",
"{",
"int",
"fetched",
"=",
"fetch",
"(",
"blockSize",
")",
";",
"if",
"(",
"fetched",
"<",
"blockSize",
"... | public virtual void Fill(){LazyInit();int blockSize = 1000;while (true){int fetched = Fetch(blockSize);if (fetched < blockSize){return;}}}
| train | false |
2,057 | public DescribeGlobalClustersResult describeGlobalClusters(DescribeGlobalClustersRequest request) {request = beforeClientExecution(request);return executeDescribeGlobalClusters(request);}
| [
"public",
"DescribeGlobalClustersResult",
"describeGlobalClusters",
"(",
"DescribeGlobalClustersRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeGlobalClusters",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeGlobalClustersResponse DescribeGlobalClusters(DescribeGlobalClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGlobalClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGlobalClustersResponseUnmarshaller.Instance;return Invoke<Desc... | train | true |
2,058 | public PutVoiceConnectorTerminationResult putVoiceConnectorTermination(PutVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorTermination(request);}
| [
"public",
"PutVoiceConnectorTerminationResult",
"putVoiceConnectorTermination",
"(",
"PutVoiceConnectorTerminationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutVoiceConnectorTermination",
"(",
"request",
"... | public virtual PutVoiceConnectorTerminationResponse PutVoiceConnectorTermination(PutVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorTerminationResponseUnmarshall... | train | true |
2,059 | public static int strcmp(char[] a, int startA, char[] b, int startB) {for (; a[startA] == b[startB]; startA++, startB++) {if (a[startA] == 0) {return 0;}}return a[startA] - b[startB];}
| [
"public",
"static",
"int",
"strcmp",
"(",
"char",
"[",
"]",
"a",
",",
"int",
"startA",
",",
"char",
"[",
"]",
"b",
",",
"int",
"startB",
")",
"{",
"for",
"(",
";",
"a",
"[",
"startA",
"]",
"==",
"b",
"[",
"startB",
"]",
";",
"startA",
"++",
"... | public static int StrCmp(char[] a, int startA, char[] b, int startB){for (; a[startA] == b[startB]; startA++, startB++){if (a[startA] == 0){return 0;}}return a[startA] - b[startB];}
| train | true |
2,060 | public StartSentimentDetectionJobResult startSentimentDetectionJob(StartSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartSentimentDetectionJob(request);}
| [
"public",
"StartSentimentDetectionJobResult",
"startSentimentDetectionJob",
"(",
"StartSentimentDetectionJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartSentimentDetectionJob",
"(",
"request",
")",
";... | public virtual StartSentimentDetectionJobResponse StartSentimentDetectionJob(StartSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSentimentDetectionJobResponseUnmarshaller.Instanc... | train | true |
2,061 | public HSSFCell createCell(int column){return this.createCell(column,CellType.BLANK);}
| [
"public",
"HSSFCell",
"createCell",
"(",
"int",
"column",
")",
"{",
"return",
"this",
".",
"createCell",
"(",
"column",
",",
"CellType",
".",
"BLANK",
")",
";",
"}"
] | public ICell CreateCell(int column){return this.CreateCell(column, CellType.Blank);}
| train | false |
2,062 | public RecalcIdRecord(RecordInputStream in) {in.readUShort(); _reserved0 = in.readUShort();_engineId = in.readInt();}
| [
"public",
"RecalcIdRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"in",
".",
"readUShort",
"(",
")",
";",
"_reserved0",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"_engineId",
"=",
"in",
".",
"readInt",
"(",
")",
";",
"}"
] | public RecalcIdRecord(RecordInputStream in1){in1.ReadUShort(); _reserved0 = in1.ReadUShort();_engineId = in1.ReadInt();}
| train | false |
2,063 | public static int getEncodedSizeWithoutArrayData(Ptg[] ptgs) {int result = 0;for (Ptg ptg : ptgs) {if (ptg instanceof ArrayPtg) {result += ArrayPtg.PLAIN_TOKEN_SIZE;} else {result += ptg.getSize();}}return result;}
| [
"public",
"static",
"int",
"getEncodedSizeWithoutArrayData",
"(",
"Ptg",
"[",
"]",
"ptgs",
")",
"{",
"int",
"result",
"=",
"0",
";",
"for",
"(",
"Ptg",
"ptg",
":",
"ptgs",
")",
"{",
"if",
"(",
"ptg",
"instanceof",
"ArrayPtg",
")",
"{",
"result",
"+=",
... | public static int GetEncodedSizeWithoutArrayData(Ptg[] ptgs){int result = 0;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];if (ptg is ArrayPtg){result += ArrayPtg.PLAIN_TOKEN_SIZE;}else{result += ptg.Size;}}return result;}
| train | false |
2,064 | public static double ceiling(double n, double s) {if (n>0 && s<0) {return Double.NaN;} else {return (n == 0 || s == 0) ? 0 : Math.ceil(n/s) * s;}}
| [
"public",
"static",
"double",
"ceiling",
"(",
"double",
"n",
",",
"double",
"s",
")",
"{",
"if",
"(",
"n",
">",
"0",
"&&",
"s",
"<",
"0",
")",
"{",
"return",
"Double",
".",
"NaN",
";",
"}",
"else",
"{",
"return",
"(",
"n",
"==",
"0",
"||",
"s... | public static double Ceiling(double n, double s){double c;if ((n < 0 && s > 0) || (n > 0 && s < 0)){c = double.NaN;}else{c = (n == 0 || s == 0) ? 0 : Math.Ceiling(n / s) * s;}return c;}
| train | false |
2,065 | public ListResolverRulesResult listResolverRules(ListResolverRulesRequest request) {request = beforeClientExecution(request);return executeListResolverRules(request);}
| [
"public",
"ListResolverRulesResult",
"listResolverRules",
"(",
"ListResolverRulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListResolverRules",
"(",
"request",
")",
";",
"}"
] | public virtual ListResolverRulesResponse ListResolverRules(ListResolverRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverRulesResponseUnmarshaller.Instance;return Invoke<ListResolverRulesResponse>(re... | train | true |
2,066 | public ListBusinessReportSchedulesResult listBusinessReportSchedules(ListBusinessReportSchedulesRequest request) {request = beforeClientExecution(request);return executeListBusinessReportSchedules(request);}
| [
"public",
"ListBusinessReportSchedulesResult",
"listBusinessReportSchedules",
"(",
"ListBusinessReportSchedulesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListBusinessReportSchedules",
"(",
"request",
")",
... | public virtual ListBusinessReportSchedulesResponse ListBusinessReportSchedules(ListBusinessReportSchedulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBusinessReportSchedulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBusinessReportSchedulesResponseUnmarshaller.In... | train | true |
2,067 | public EscherDgRecord createDgRecord() {EscherDgRecord dg = new EscherDgRecord();dg.setRecordId( EscherDgRecord.RECORD_ID );short dgId = findNewDrawingGroupId();dg.setOptions( (short) ( dgId << 4 ) );dg.setNumShapes( 0 );dg.setLastMSOSPID( -1 );drawingGroups.add(dg);dgg.addCluster( dgId, 0 );dgg.setDrawingsSaved( dgg.g... | [
"public",
"EscherDgRecord",
"createDgRecord",
"(",
")",
"{",
"EscherDgRecord",
"dg",
"=",
"new",
"EscherDgRecord",
"(",
")",
";",
"dg",
".",
"setRecordId",
"(",
"EscherDgRecord",
".",
"RECORD_ID",
")",
";",
"short",
"dgId",
"=",
"findNewDrawingGroupId",
"(",
"... | public virtual EscherDgRecord CreateDgRecord(){EscherDgRecord dg = new EscherDgRecord();dg.RecordId = EscherDgRecord.RECORD_ID;short dgId = FindNewDrawingGroupId();dg.Options=(short)(dgId << 4);dg.NumShapes=0;dg.LastMSOSPID=(-1);drawingGroups.Add(dg);dgg.AddCluster(dgId, 0);dgg.DrawingsSaved=dgg.DrawingsSaved + 1;retur... | train | false |
2,068 | public Transport open(URIish uri)throws NotSupportedException, TransportException {throw new NotSupportedException(JGitText.get().transportNeedsRepository);}
| [
"public",
"Transport",
"open",
"(",
"URIish",
"uri",
")",
"throws",
"NotSupportedException",
",",
"TransportException",
"{",
"throw",
"new",
"NotSupportedException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"transportNeedsRepository",
")",
";",
"}"
] | public virtual NGit.Transport.Transport Open(URIish uri){throw new NotSupportedException(JGitText.Get().transportNeedsRepository);}
| train | false |
2,069 | public int compare(Ref o1, Ref o2) {return compareTo(o1, o2);}
| [
"public",
"int",
"compare",
"(",
"Ref",
"o1",
",",
"Ref",
"o2",
")",
"{",
"return",
"compareTo",
"(",
"o1",
",",
"o2",
")",
";",
"}"
] | public virtual int Compare(Ref o1, Ref o2){return CompareTo(o1, o2);}
| train | false |
2,070 | public OrdRange(int start, int end) {this.start = start;this.end = end;}
| [
"public",
"OrdRange",
"(",
"int",
"start",
",",
"int",
"end",
")",
"{",
"this",
".",
"start",
"=",
"start",
";",
"this",
".",
"end",
"=",
"end",
";",
"}"
] | public OrdRange(int start, int end){this.Start = start;this.End = end;}
| train | false |
2,071 | public boolean add(E object) {return backingMap.put(object, this) == null;}
| [
"public",
"boolean",
"add",
"(",
"E",
"object",
")",
"{",
"return",
"backingMap",
".",
"put",
"(",
"object",
",",
"this",
")",
"==",
"null",
";",
"}"
] | public override bool add(E @object){return backingMap.put(@object, this) == null;}
| train | false |
2,073 | public long skip(long cnt) throws IOException {try {beginRead();return super.skip(cnt);} catch (InterruptedIOException e) {throw readTimedOut(e);} finally {endRead();}}
| [
"public",
"long",
"skip",
"(",
"long",
"cnt",
")",
"throws",
"IOException",
"{",
"try",
"{",
"beginRead",
"(",
")",
";",
"return",
"super",
".",
"skip",
"(",
"cnt",
")",
";",
"}",
"catch",
"(",
"InterruptedIOException",
"e",
")",
"{",
"throw",
"readTim... | public override long Skip(long cnt){try{BeginRead();return base.Skip(cnt);}catch (ThreadInterruptedException){throw ReadTimedOut();}finally{EndRead();}}
| train | false |
2,074 | public StepDetail(StepConfig stepConfig, StepExecutionStatusDetail executionStatusDetail) {setStepConfig(stepConfig);setExecutionStatusDetail(executionStatusDetail);}
| [
"public",
"StepDetail",
"(",
"StepConfig",
"stepConfig",
",",
"StepExecutionStatusDetail",
"executionStatusDetail",
")",
"{",
"setStepConfig",
"(",
"stepConfig",
")",
";",
"setExecutionStatusDetail",
"(",
"executionStatusDetail",
")",
";",
"}"
] | public StepDetail(StepConfig stepConfig, StepExecutionStatusDetail executionStatusDetail){_stepConfig = stepConfig;_executionStatusDetail = executionStatusDetail;}
| train | false |
2,076 | public Object[] toArray() {synchronized (mutex) {return delegate().toArray();}}
| [
"public",
"Object",
"[",
"]",
"toArray",
"(",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"toArray",
"(",
")",
";",
"}",
"}"
] | public virtual object[] toArray(){lock (mutex){return c.toArray();}}
| train | false |
2,077 | public DBParameterGroup createDBParameterGroup(CreateDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBParameterGroup(request);}
| [
"public",
"DBParameterGroup",
"createDBParameterGroup",
"(",
"CreateDBParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDBParameterGroup",
"(",
"request",
")",
";",
"}"
] | public virtual CreateDBParameterGroupResponse CreateDBParameterGroup(CreateDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBParameterGroupResponseUnmarshaller.Instance;return Invoke<Crea... | train | true |
2,078 | public StringBuilder append(boolean b) {append0(b ? "true" : "false");return this;}
| [
"public",
"StringBuilder",
"append",
"(",
"boolean",
"b",
")",
"{",
"append0",
"(",
"b",
"?",
"\"true\"",
":",
"\"false\"",
")",
";",
"return",
"this",
";",
"}"
] | public java.lang.StringBuilder append(bool b){append0(b ? "true" : "false");return this;}
| train | false |
2,079 | public void execute(Lexer lexer, CharStream input, int startIndex) {boolean requiresSeek = false;int stopIndex = input.index();try {for (LexerAction lexerAction : lexerActions) {if (lexerAction instanceof LexerIndexedCustomAction) {int offset = ((LexerIndexedCustomAction)lexerAction).getOffset();input.seek(startIndex +... | [
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
",",
"CharStream",
"input",
",",
"int",
"startIndex",
")",
"{",
"boolean",
"requiresSeek",
"=",
"false",
";",
"int",
"stopIndex",
"=",
"input",
".",
"index",
"(",
")",
";",
"try",
"{",
"for",
"(",
"Le... | public virtual void Execute(Lexer lexer, ICharStream input, int startIndex){bool requiresSeek = false;int stopIndex = input.Index;try{foreach (ILexerAction lexerAction in lexerActions){ILexerAction action = lexerAction;if (action is LexerIndexedCustomAction){int offset = ((LexerIndexedCustomAction)action).Offset;input.... | train | false |
2,080 | public ListMailboxPermissionsResult listMailboxPermissions(ListMailboxPermissionsRequest request) {request = beforeClientExecution(request);return executeListMailboxPermissions(request);}
| [
"public",
"ListMailboxPermissionsResult",
"listMailboxPermissions",
"(",
"ListMailboxPermissionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListMailboxPermissions",
"(",
"request",
")",
";",
"}"
] | public virtual ListMailboxPermissionsResponse ListMailboxPermissions(ListMailboxPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMailboxPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMailboxPermissionsResponseUnmarshaller.Instance;return Invoke<List... | train | true |
2,081 | public ConditionalFormattingTable(RecordStream rs) {while (rs.peekNextRecord() instanceof CFHeaderBase) {_cfHeaders.add(CFRecordsAggregate.createCFAggregate(rs));}}
| [
"public",
"ConditionalFormattingTable",
"(",
"RecordStream",
"rs",
")",
"{",
"while",
"(",
"rs",
".",
"peekNextRecord",
"(",
")",
"instanceof",
"CFHeaderBase",
")",
"{",
"_cfHeaders",
".",
"add",
"(",
"CFRecordsAggregate",
".",
"createCFAggregate",
"(",
"rs",
")... | public ConditionalFormattingTable(RecordStream rs){IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(CFHeaderRecord)){temp.Add(CFRecordsAggregate.CreateCFAggregate(rs));}_cfHeaders = temp;}
| train | false |
2,082 | public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 4) | (byte1 >>> 4);final int byte2 = blocks[blocks... | [
"public",
"void",
"decode",
"(",
"byte",
"[",
"]",
"blocks",
",",
"int",
"blocksOffset",
",",
"int",
"[",
"]",
"values",
",",
"int",
"valuesOffset",
",",
"int",
"iterations",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"iterations",
... | public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 4) | ((int)((uint)byte1 >> 4));int byte2 = blocks[block... | train | false |
2,083 | public Map<String, Ref> getTags() {try {return getRefDatabase().getRefs(Constants.R_TAGS);} catch (IOException e) {throw new UncheckedIOException(e);}}
| [
"public",
"Map",
"<",
"String",
",",
"Ref",
">",
"getTags",
"(",
")",
"{",
"try",
"{",
"return",
"getRefDatabase",
"(",
")",
".",
"getRefs",
"(",
"Constants",
".",
"R_TAGS",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
... | public virtual IDictionary<string, Ref> GetTags(){try{return RefDatabase.GetRefs(Constants.R_TAGS);}catch (IOException){return new Dictionary<string, Ref>();}}
| train | false |
2,084 | public ComposedQuery(List<SrndQuery> qs, boolean operatorInfix, String opName) {recompose(qs);this.operatorInfix = operatorInfix;this.opName = opName;}
| [
"public",
"ComposedQuery",
"(",
"List",
"<",
"SrndQuery",
">",
"qs",
",",
"boolean",
"operatorInfix",
",",
"String",
"opName",
")",
"{",
"recompose",
"(",
"qs",
")",
";",
"this",
".",
"operatorInfix",
"=",
"operatorInfix",
";",
"this",
".",
"opName",
"=",
... | public ComposedQuery(IList<SrndQuery> qs, bool operatorInfix, string opName){Recompose(qs);this.operatorInfix = operatorInfix;this.m_opName = opName;}
| train | false |
2,085 | public TestRoleResult testRole(TestRoleRequest request) {request = beforeClientExecution(request);return executeTestRole(request);}
| [
"public",
"TestRoleResult",
"testRole",
"(",
"TestRoleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeTestRole",
"(",
"request",
")",
";",
"}"
] | public virtual TestRoleResponse TestRole(TestRoleRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestRoleRequestMarshaller.Instance;options.ResponseUnmarshaller = TestRoleResponseUnmarshaller.Instance;return Invoke<TestRoleResponse>(request, options);}
| train | false |
2,087 | public ModifyVpcAttributeResult modifyVpcAttribute(ModifyVpcAttributeRequest request) {request = beforeClientExecution(request);return executeModifyVpcAttribute(request);}
| [
"public",
"ModifyVpcAttributeResult",
"modifyVpcAttribute",
"(",
"ModifyVpcAttributeRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeModifyVpcAttribute",
"(",
"request",
")",
";",
"}"
] | public virtual ModifyVpcAttributeResponse ModifyVpcAttribute(ModifyVpcAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcAttributeResponseUnmarshaller.Instance;return Invoke<ModifyVpcAttributeRespon... | train | true |
2,088 | public void seekExact(long ord) throws IOException {throw new UnsupportedOperationException();}
| [
"public",
"void",
"seekExact",
"(",
"long",
"ord",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"UnsupportedOperationException",
"(",
")",
";",
"}"
] | public override void SeekExact(long ord){throw new System.NotSupportedException();}
| train | false |
2,089 | public ArabicNormalizationFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"ArabicNormalizationFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\... | public ArabicNormalizationFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
2,090 | public boolean equals(Object obj) {if (!(obj instanceof BookSheetKey)) {return false;}BookSheetKey other = (BookSheetKey) obj;return _bookIndex == other._bookIndex && _sheetIndex == other._sheetIndex;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"BookSheetKey",
")",
")",
"{",
"return",
"false",
";",
"}",
"BookSheetKey",
"other",
"=",
"(",
"BookSheetKey",
")",
"obj",
";",
"return",
"_bookIndex... | public override bool Equals(Object obj){BookSheetKey other = (BookSheetKey)obj;return _bookIndex == other._bookIndex && _sheetIndex == other._sheetIndex;}
| train | false |
2,091 | public TermQuery(Term t, TermStates states) {assert states != null;term = Objects.requireNonNull(t);perReaderTermState = Objects.requireNonNull(states);}
| [
"public",
"TermQuery",
"(",
"Term",
"t",
",",
"TermStates",
"states",
")",
"{",
"assert",
"states",
"!=",
"null",
";",
"term",
"=",
"Objects",
".",
"requireNonNull",
"(",
"t",
")",
";",
"perReaderTermState",
"=",
"Objects",
".",
"requireNonNull",
"(",
"sta... | public TermQuery(Term t, TermContext states){Debug.Assert(states != null);term = t;docFreq = states.DocFreq;perReaderTermState = states;}
| train | false |
2,092 | public GetClusterCredentialsResult getClusterCredentials(GetClusterCredentialsRequest request) {request = beforeClientExecution(request);return executeGetClusterCredentials(request);}
| [
"public",
"GetClusterCredentialsResult",
"getClusterCredentials",
"(",
"GetClusterCredentialsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetClusterCredentials",
"(",
"request",
")",
";",
"}"
] | public virtual GetClusterCredentialsResponse GetClusterCredentials(GetClusterCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetClusterCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetClusterCredentialsResponseUnmarshaller.Instance;return Invoke<GetCluste... | train | true |
2,093 | public boolean equals(Object other) {return (getClass() == other.getClass()) && this.equalsSameType(other);}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"other",
")",
"{",
"return",
"(",
"getClass",
"(",
")",
"==",
"other",
".",
"getClass",
"(",
")",
")",
"&&",
"this",
".",
"equalsSameType",
"(",
"other",
")",
";",
"}"
] | public override bool Equals(object other){return (this.GetType() == other.GetType()) && this.EqualsSameType(other);}
| train | false |
2,094 | public Item clone() {return new Item(parent, child);}
| [
"public",
"Item",
"clone",
"(",
")",
"{",
"return",
"new",
"Item",
"(",
"parent",
",",
"child",
")",
";",
"}"
] | public object Clone(){return new Item(parent, child);}
| train | false |
2,095 | public UpdateClusterResult updateCluster(UpdateClusterRequest request) {request = beforeClientExecution(request);return executeUpdateCluster(request);}
| [
"public",
"UpdateClusterResult",
"updateCluster",
"(",
"UpdateClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateCluster",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateClusterResponse UpdateCluster(UpdateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateClusterResponseUnmarshaller.Instance;return Invoke<UpdateClusterResponse>(request, options);}
| train | true |
2,096 | public E get(int index) {synchronized (mutex) {return delegate().get(index);}}
| [
"public",
"E",
"get",
"(",
"int",
"index",
")",
"{",
"synchronized",
"(",
"mutex",
")",
"{",
"return",
"delegate",
"(",
")",
".",
"get",
"(",
"index",
")",
";",
"}",
"}"
] | public virtual E get(int location){lock (mutex){return list.get(location);}}
| train | false |
2,097 | public LogCommand setMaxCount(int maxCount) {checkCallable();this.maxCount = maxCount;return this;}
| [
"public",
"LogCommand",
"setMaxCount",
"(",
"int",
"maxCount",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"maxCount",
"=",
"maxCount",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.LogCommand SetMaxCount(int maxCount){CheckCallable();this.maxCount = maxCount;return this;}
| train | false |
2,098 | public GetInsightRuleReportResult getInsightRuleReport(GetInsightRuleReportRequest request) {request = beforeClientExecution(request);return executeGetInsightRuleReport(request);}
| [
"public",
"GetInsightRuleReportResult",
"getInsightRuleReport",
"(",
"GetInsightRuleReportRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetInsightRuleReport",
"(",
"request",
")",
";",
"}"
] | public virtual GetInsightRuleReportResponse GetInsightRuleReport(GetInsightRuleReportRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInsightRuleReportRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInsightRuleReportResponseUnmarshaller.Instance;return Invoke<GetInsightRule... | train | false |
2,099 | public CommonToken(Token oldToken) {type = oldToken.getType();line = oldToken.getLine();index = oldToken.getTokenIndex();charPositionInLine = oldToken.getCharPositionInLine();channel = oldToken.getChannel();start = oldToken.getStartIndex();stop = oldToken.getStopIndex();if (oldToken instanceof CommonToken) {text = ((Co... | [
"public",
"CommonToken",
"(",
"Token",
"oldToken",
")",
"{",
"type",
"=",
"oldToken",
".",
"getType",
"(",
")",
";",
"line",
"=",
"oldToken",
".",
"getLine",
"(",
")",
";",
"index",
"=",
"oldToken",
".",
"getTokenIndex",
"(",
")",
";",
"charPositionInLin... | public CommonToken(IToken oldToken){_type = oldToken.Type;_line = oldToken.Line;index = oldToken.TokenIndex;charPositionInLine = oldToken.Column;_channel = oldToken.Channel;start = oldToken.StartIndex;stop = oldToken.StopIndex;if (oldToken is Antlr4.Runtime.CommonToken){_text = ((Antlr4.Runtime.CommonToken)oldToken)._t... | train | false |
2,100 | public ListSolutionsResult listSolutions(ListSolutionsRequest request) {request = beforeClientExecution(request);return executeListSolutions(request);}
| [
"public",
"ListSolutionsResult",
"listSolutions",
"(",
"ListSolutionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListSolutions",
"(",
"request",
")",
";",
"}"
] | public virtual ListSolutionsResponse ListSolutions(ListSolutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSolutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSolutionsResponseUnmarshaller.Instance;return Invoke<ListSolutionsResponse>(request, options);}
| train | false |
2,101 | public boolean hasPrevious() {return index > from;}
| [
"public",
"boolean",
"hasPrevious",
"(",
")",
"{",
"return",
"index",
">",
"from",
";",
"}"
] | public virtual bool hasPrevious(){return index > from;}
| train | false |
2,102 | public final void end() {if (finalState != null) {restoreState(finalState);}}
| [
"public",
"final",
"void",
"end",
"(",
")",
"{",
"if",
"(",
"finalState",
"!=",
"null",
")",
"{",
"restoreState",
"(",
"finalState",
")",
";",
"}",
"}"
] | public override void End(){if (finalState != null){RestoreState(finalState);}}
| train | false |
2,103 | public DoubleBuffer put(int index, double c) {checkIndex(index);backingArray[offset + index] = c;return this;}
| [
"public",
"DoubleBuffer",
"put",
"(",
"int",
"index",
",",
"double",
"c",
")",
"{",
"checkIndex",
"(",
"index",
")",
";",
"backingArray",
"[",
"offset",
"+",
"index",
"]",
"=",
"c",
";",
"return",
"this",
";",
"}"
] | public override java.nio.DoubleBuffer put(int index, double c){checkIndex(index);backingArray[offset + index] = c;return this;}
| train | false |
2,104 | public ThreeWayMerger newMerger(Repository db) {return new ResolveMerger(db, false);}
| [
"public",
"ThreeWayMerger",
"newMerger",
"(",
"Repository",
"db",
")",
"{",
"return",
"new",
"ResolveMerger",
"(",
"db",
",",
"false",
")",
";",
"}"
] | public override Merger NewMerger(Repository db){return new ResolveMerger(db, false);}
| train | false |
2,106 | public LongBuffer put(long c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}
| [
"public",
"LongBuffer",
"put",
"(",
"long",
"c",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"backingArray",
"[",
"offset",
"+",
"position",
"++",
"]",
"=",
"c",
";",
"return"... | public override java.nio.LongBuffer put(long c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
| train | false |
2,107 | public ConstValueSource(float constant) {this.constant = constant;this.dv = constant;}
| [
"public",
"ConstValueSource",
"(",
"float",
"constant",
")",
"{",
"this",
".",
"constant",
"=",
"constant",
";",
"this",
".",
"dv",
"=",
"constant",
";",
"}"
] | public ConstValueSource(float constant){this.constant = constant;this.dv = constant;}
| train | false |
2,108 | public boolean matches(char c) {return punctCharacters.indexOf(c) != -1;}
| [
"public",
"boolean",
"matches",
"(",
"char",
"c",
")",
"{",
"return",
"punctCharacters",
".",
"indexOf",
"(",
"c",
")",
"!=",
"-",
"1",
";",
"}"
] | public bool Matches(char c){return punctCharacters.IndexOf(c) != -1;}
| train | false |
2,109 | public FlushInfo(int numDocs, long estimatedSegmentSize) {this.numDocs = numDocs;this.estimatedSegmentSize = estimatedSegmentSize;}
| [
"public",
"FlushInfo",
"(",
"int",
"numDocs",
",",
"long",
"estimatedSegmentSize",
")",
"{",
"this",
".",
"numDocs",
"=",
"numDocs",
";",
"this",
".",
"estimatedSegmentSize",
"=",
"estimatedSegmentSize",
";",
"}"
] | public FlushInfo(int numDocs, long estimatedSegmentSize){this.NumDocs = numDocs;this.EstimatedSegmentSize = estimatedSegmentSize;}
| train | false |
2,110 | public void print(char[] chars) {print(new String(chars, 0, chars.length));}
| [
"public",
"void",
"print",
"(",
"char",
"[",
"]",
"chars",
")",
"{",
"print",
"(",
"new",
"String",
"(",
"chars",
",",
"0",
",",
"chars",
".",
"length",
")",
")",
";",
"}"
] | public virtual void print(char[] chars){print(new string(chars, 0, chars.Length));}
| train | false |
2,111 | public E element() {return getFirstImpl();}
| [
"public",
"E",
"element",
"(",
")",
"{",
"return",
"getFirstImpl",
"(",
")",
";",
"}"
] | public virtual E element(){return getFirstImpl();}
| train | false |
2,112 | public ListNodegroupsResult listNodegroups(ListNodegroupsRequest request) {request = beforeClientExecution(request);return executeListNodegroups(request);}
| [
"public",
"ListNodegroupsResult",
"listNodegroups",
"(",
"ListNodegroupsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListNodegroups",
"(",
"request",
")",
";",
"}"
] | public virtual ListNodegroupsResponse ListNodegroups(ListNodegroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNodegroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNodegroupsResponseUnmarshaller.Instance;return Invoke<ListNodegroupsResponse>(request, options);}
| train | false |
2,113 | public PutSkillAuthorizationResult putSkillAuthorization(PutSkillAuthorizationRequest request) {request = beforeClientExecution(request);return executePutSkillAuthorization(request);}
| [
"public",
"PutSkillAuthorizationResult",
"putSkillAuthorization",
"(",
"PutSkillAuthorizationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutSkillAuthorization",
"(",
"request",
")",
";",
"}"
] | public virtual PutSkillAuthorizationResponse PutSkillAuthorization(PutSkillAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutSkillAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutSkillAuthorizationResponseUnmarshaller.Instance;return Invoke<PutSkillA... | train | true |
2,114 | public DescribeSourceRegionsResult describeSourceRegions(DescribeSourceRegionsRequest request) {request = beforeClientExecution(request);return executeDescribeSourceRegions(request);}
| [
"public",
"DescribeSourceRegionsResult",
"describeSourceRegions",
"(",
"DescribeSourceRegionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeSourceRegions",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeSourceRegionsResponse DescribeSourceRegions(DescribeSourceRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSourceRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSourceRegionsResponseUnmarshaller.Instance;return Invoke<DescribeS... | train | true |
2,115 | public SplitShardResult splitShard(SplitShardRequest request) {request = beforeClientExecution(request);return executeSplitShard(request);}
| [
"public",
"SplitShardResult",
"splitShard",
"(",
"SplitShardRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSplitShard",
"(",
"request",
")",
";",
"}"
] | public virtual SplitShardResponse SplitShard(SplitShardRequest request){var options = new InvokeOptions();options.RequestMarshaller = SplitShardRequestMarshaller.Instance;options.ResponseUnmarshaller = SplitShardResponseUnmarshaller.Instance;return Invoke<SplitShardResponse>(request, options);}
| train | true |
2,116 | public CreateTableRequest(String tableName, java.util.List<KeySchemaElement> keySchema) {setTableName(tableName);setKeySchema(keySchema);}
| [
"public",
"CreateTableRequest",
"(",
"String",
"tableName",
",",
"java",
".",
"util",
".",
"List",
"<",
"KeySchemaElement",
">",
"keySchema",
")",
"{",
"setTableName",
"(",
"tableName",
")",
";",
"setKeySchema",
"(",
"keySchema",
")",
";",
"}"
] | public CreateTableRequest(string tableName, List<KeySchemaElement> keySchema){_tableName = tableName;_keySchema = keySchema;}
| train | false |
2,117 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_id);out.writeByte(field_4_text.length());if (is16bit) {out.writeByte(0x01);StringUtil.putUnicodeLE(field_4_text, out);} else {out.writeByte(0x00);StringUtil.putCompressedUnicode(field_4_text, out);}}
| [
"public",
"void",
"serialize",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeShort",
"(",
"field_1_id",
")",
";",
"out",
".",
"writeByte",
"(",
"field_4_text",
".",
"length",
"(",
")",
")",
";",
"if",
"(",
"is16bit",
")",
"{",
"out",
".... | public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_id);out1.WriteByte(field_4_text.Length);if (is16bit){out1.WriteByte(0x01);StringUtil.PutUnicodeLE(field_4_text, out1);}else{out1.WriteByte(0x00);StringUtil.PutCompressedUnicode(field_4_text, out1);}}
| train | false |
2,118 | public UpdateVoiceTemplateResult updateVoiceTemplate(UpdateVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceTemplate(request);}
| [
"public",
"UpdateVoiceTemplateResult",
"updateVoiceTemplate",
"(",
"UpdateVoiceTemplateRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateVoiceTemplate",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateVoiceTemplateResponse UpdateVoiceTemplate(UpdateVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceTemplateResponseUnmarshaller.Instance;return Invoke<UpdateVoiceTemplate... | train | false |
2,119 | public BookBoolRecord(RecordInputStream in) {field_1_save_link_values = in.readShort();}
| [
"public",
"BookBoolRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_save_link_values",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] | public BookBoolRecord(RecordInputStream in1){field_1_save_link_values = in1.ReadShort();}
| train | false |
2,120 | public final Buffer flip() {limit = position;position = 0;mark = UNSET_MARK;return this;}
| [
"public",
"final",
"Buffer",
"flip",
"(",
")",
"{",
"limit",
"=",
"position",
";",
"position",
"=",
"0",
";",
"mark",
"=",
"UNSET_MARK",
";",
"return",
"this",
";",
"}"
] | public java.nio.Buffer flip(){_limit = _position;_position = 0;_mark = UNSET_MARK;return this;}
| train | false |
2,121 | public IntBuffer get(int[] dst, int dstOffset, int intCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, intCount);if (intCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + intCount; ++i) {dst[i] = get();}return this;}
| [
"public",
"IntBuffer",
"get",
"(",
"int",
"[",
"]",
"dst",
",",
"int",
"dstOffset",
",",
"int",
"intCount",
")",
"{",
"Arrays",
".",
"checkOffsetAndCount",
"(",
"dst",
".",
"length",
",",
"dstOffset",
",",
"intCount",
")",
";",
"if",
"(",
"intCount",
"... | public virtual java.nio.IntBuffer get(int[] dst, int dstOffset, int intCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, intCount);if (intCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + intCount; ++i){dst[i] = get();}}return this;}
| train | false |
2,122 | public GroupingSearch setGroupDocsOffset(int groupDocsOffset) {this.groupDocsOffset = groupDocsOffset;return this;}
| [
"public",
"GroupingSearch",
"setGroupDocsOffset",
"(",
"int",
"groupDocsOffset",
")",
"{",
"this",
".",
"groupDocsOffset",
"=",
"groupDocsOffset",
";",
"return",
"this",
";",
"}"
] | public virtual GroupingSearch SetGroupDocsOffset(int groupDocsOffset){this.groupDocsOffset = groupDocsOffset;return this;}
| train | false |
2,123 | public Builder() {this(16, 16);}
| [
"public",
"Builder",
"(",
")",
"{",
"this",
"(",
"16",
",",
"16",
")",
";",
"}"
] | public Builder(){InitializeInstanceFields();}
| train | false |
2,124 | public String getCommandName() {return command;}
| [
"public",
"String",
"getCommandName",
"(",
")",
"{",
"return",
"command",
";",
"}"
] | public virtual string GetCommandName(){return command;}
| train | false |
2,125 | public int getFirstInternalSheetIndexForExtIndex(int extRefIndex) {if (extRefIndex >= _externSheetRecord.getNumOfRefs() || extRefIndex < 0) {return -1;}return _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);}
| [
"public",
"int",
"getFirstInternalSheetIndexForExtIndex",
"(",
"int",
"extRefIndex",
")",
"{",
"if",
"(",
"extRefIndex",
">=",
"_externSheetRecord",
".",
"getNumOfRefs",
"(",
")",
"||",
"extRefIndex",
"<",
"0",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",... | public int GetFirstInternalSheetIndexForExtIndex(int extRefIndex){if (extRefIndex >= _externSheetRecord.NumOfRefs || extRefIndex < 0){return -1;}return _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);}
| train | false |
2,126 | public boolean isExpired() {return this.expiredDate == null || this.expiredDate.after(new Date());}
| [
"public",
"boolean",
"isExpired",
"(",
")",
"{",
"return",
"this",
".",
"expiredDate",
"==",
"null",
"||",
"this",
".",
"expiredDate",
".",
"after",
"(",
"new",
"Date",
"(",
")",
")",
";",
"}"
] | public bool IsExpired(){if (null == ExpiredDate){return false;}return !(ExpiredDate < DateTime.UtcNow);}
| train | false |
2,127 | public ListPolicyAttachmentsResult listPolicyAttachments(ListPolicyAttachmentsRequest request) {request = beforeClientExecution(request);return executeListPolicyAttachments(request);}
| [
"public",
"ListPolicyAttachmentsResult",
"listPolicyAttachments",
"(",
"ListPolicyAttachmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListPolicyAttachments",
"(",
"request",
")",
";",
"}"
] | public virtual ListPolicyAttachmentsResponse ListPolicyAttachments(ListPolicyAttachmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPolicyAttachmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPolicyAttachmentsResponseUnmarshaller.Instance;return Invoke<ListPolic... | train | true |
2,128 | public double readDouble() {return Double.longBitsToDouble(readLong());}
| [
"public",
"double",
"readDouble",
"(",
")",
"{",
"return",
"Double",
".",
"longBitsToDouble",
"(",
"readLong",
"(",
")",
")",
";",
"}"
] | public double ReadDouble(){return BitConverter.Int64BitsToDouble(ReadLong());}
| train | false |
2,129 | public UpdateLoginProfileRequest(String userName) {setUserName(userName);}
| [
"public",
"UpdateLoginProfileRequest",
"(",
"String",
"userName",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"}"
] | public UpdateLoginProfileRequest(string userName){_userName = userName;}
| train | false |
2,130 | public String getResultPath() {return resultPath;}
| [
"public",
"String",
"getResultPath",
"(",
")",
"{",
"return",
"resultPath",
";",
"}"
] | public virtual string GetResultPath(){return resultPath;}
| train | false |
2,131 | public DescribeInstanceAttributeRequest(String instanceId, InstanceAttributeName attribute) {setInstanceId(instanceId);setAttribute(attribute.toString());}
| [
"public",
"DescribeInstanceAttributeRequest",
"(",
"String",
"instanceId",
",",
"InstanceAttributeName",
"attribute",
")",
"{",
"setInstanceId",
"(",
"instanceId",
")",
";",
"setAttribute",
"(",
"attribute",
".",
"toString",
"(",
")",
")",
";",
"}"
] | public DescribeInstanceAttributeRequest(string instanceId, InstanceAttributeName attribute){_instanceId = instanceId;_attribute = attribute;}
| train | false |
2,132 | public int previousIndex() {return index - 1;}
| [
"public",
"int",
"previousIndex",
"(",
")",
"{",
"return",
"index",
"-",
"1",
";",
"}"
] | public virtual int previousIndex(){return index - 1;}
| train | false |
2,134 | public void reset() {seek(0);}
| [
"public",
"void",
"reset",
"(",
")",
"{",
"seek",
"(",
"0",
")",
";",
"}"
] | public virtual void Reset(){Seek(0);}
| train | false |
2,135 | public ListResourceRecordSetsRequest(String hostedZoneId) {setHostedZoneId(hostedZoneId);}
| [
"public",
"ListResourceRecordSetsRequest",
"(",
"String",
"hostedZoneId",
")",
"{",
"setHostedZoneId",
"(",
"hostedZoneId",
")",
";",
"}"
] | public ListResourceRecordSetsRequest(string hostedZoneId){_hostedZoneId = hostedZoneId;}
| train | false |
2,136 | public EventBasedExcelExtractor(POIFSFileSystem fs) {this(fs.getRoot());super.setFilesystem(fs);}
| [
"public",
"EventBasedExcelExtractor",
"(",
"POIFSFileSystem",
"fs",
")",
"{",
"this",
"(",
"fs",
".",
"getRoot",
"(",
")",
")",
";",
"super",
".",
"setFilesystem",
"(",
"fs",
")",
";",
"}"
] | public EventBasedExcelExtractor(POIFSFileSystem fs): base(null){this.fs = fs;}
| train | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.