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 |
|---|---|---|---|---|---|
4,036
|
public static ShortBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteShortArrayBuffer(capacity);}
|
[
"public",
"static",
"ShortBuffer",
"allocate",
"(",
"int",
"capacity",
")",
"{",
"if",
"(",
"capacity",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
")",
";",
"}",
"return",
"new",
"ReadWriteShortArrayBuffer",
"(",
"capacity",
")",
";",
"}"
] |
public static java.nio.ShortBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteShortArrayBuffer(capacity_1);}
|
train
| false
|
4,037
|
public DescribeDatasetImportJobResult describeDatasetImportJob(DescribeDatasetImportJobRequest request) {request = beforeClientExecution(request);return executeDescribeDatasetImportJob(request);}
|
[
"public",
"DescribeDatasetImportJobResult",
"describeDatasetImportJob",
"(",
"DescribeDatasetImportJobRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeDatasetImportJob",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeDatasetImportJobResponse DescribeDatasetImportJob(DescribeDatasetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDatasetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDatasetImportJobResponseUnmarshaller.Instance;return Invoke<DescribeDatasetImportJobResponse>(request, options);}
|
train
| false
|
4,038
|
public DescribeClusterSnapshotsResult describeClusterSnapshots() {return describeClusterSnapshots(new DescribeClusterSnapshotsRequest());}
|
[
"public",
"DescribeClusterSnapshotsResult",
"describeClusterSnapshots",
"(",
")",
"{",
"return",
"describeClusterSnapshots",
"(",
"new",
"DescribeClusterSnapshotsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeClusterSnapshotsResponse DescribeClusterSnapshots(){return DescribeClusterSnapshots(new DescribeClusterSnapshotsRequest());}
|
train
| false
|
4,039
|
public PushbackReader(Reader in, int size) {super(in);if (size <= 0) {throw new IllegalArgumentException("size <= 0");}buf = new char[size];pos = size;}
|
[
"public",
"PushbackReader",
"(",
"Reader",
"in",
",",
"int",
"size",
")",
"{",
"super",
"(",
"in",
")",
";",
"if",
"(",
"size",
"<=",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"size <= 0\"",
")",
";",
"}",
"buf",
"=",
"new",
"char",
"[",
"size",
"]",
";",
"pos",
"=",
"size",
";",
"}"
] |
public PushbackReader(java.io.Reader @in, int size) : base(@in){if (size <= 0){throw new System.ArgumentException("size <= 0");}buf = new char[size];pos = size;}
|
train
| false
|
4,040
|
public final char getChar(int index) {checkIndex(index, SizeOf.CHAR);return (char) Memory.peekShort(backingArray, offset + index, order);}
|
[
"public",
"final",
"char",
"getChar",
"(",
"int",
"index",
")",
"{",
"checkIndex",
"(",
"index",
",",
"SizeOf",
".",
"CHAR",
")",
";",
"return",
"(",
"char",
")",
"Memory",
".",
"peekShort",
"(",
"backingArray",
",",
"offset",
"+",
"index",
",",
"order",
")",
";",
"}"
] |
public sealed override char getChar(int index){checkIndex(index, libcore.io.SizeOf.CHAR);return (char)libcore.io.Memory.peekShort(backingArray, offset + index, _order);}
|
train
| false
|
4,041
|
public SingleCellValueArray(ValueEval value) {super(1);_value = value;}
|
[
"public",
"SingleCellValueArray",
"(",
"ValueEval",
"value",
")",
"{",
"super",
"(",
"1",
")",
";",
"_value",
"=",
"value",
";",
"}"
] |
public SingleCellValueArray(ValueEval value): base(1){_value = value;}
|
train
| false
|
4,042
|
public List<Ref> getCherryPickedRefs() {return cherryPickedRefs;}
|
[
"public",
"List",
"<",
"Ref",
">",
"getCherryPickedRefs",
"(",
")",
"{",
"return",
"cherryPickedRefs",
";",
"}"
] |
public virtual IList<Ref> GetCherryPickedRefs(){return cherryPickedRefs;}
|
train
| false
|
4,043
|
public Destination(java.util.List<String> toAddresses) {setToAddresses(toAddresses);}
|
[
"public",
"Destination",
"(",
"java",
".",
"util",
".",
"List",
"<",
"String",
">",
"toAddresses",
")",
"{",
"setToAddresses",
"(",
"toAddresses",
")",
";",
"}"
] |
public Destination(List<string> toAddresses){_toAddresses = toAddresses;}
|
train
| false
|
4,044
|
public String getHostname() {return Host.this.getHostName();}
|
[
"public",
"String",
"getHostname",
"(",
")",
"{",
"return",
"Host",
".",
"this",
".",
"getHostName",
"(",
")",
";",
"}"
] |
public virtual string GetHostName(){return hostName;}
|
train
| false
|
4,045
|
public void setSize(int taxonomySize) {map = new int[taxonomySize];}
|
[
"public",
"void",
"setSize",
"(",
"int",
"taxonomySize",
")",
"{",
"map",
"=",
"new",
"int",
"[",
"taxonomySize",
"]",
";",
"}"
] |
public void SetSize(int taxonomySize){map = new int[taxonomySize];}
|
train
| false
|
4,046
|
public void writeShort(int v) {int b1 = (v >>> 8) & 0xFF;int b0 = (v) & 0xFF;try {out.write(b0);out.write(b1);} catch (IOException e) {throw new RuntimeException(e);}}
|
[
"public",
"void",
"writeShort",
"(",
"int",
"v",
")",
"{",
"int",
"b1",
"=",
"(",
"v",
">",
">",
">",
"8",
")",
"&",
"0xFF",
";",
"int",
"b0",
"=",
"(",
"v",
")",
"&",
"0xFF",
";",
"try",
"{",
"out",
".",
"write",
"(",
"b0",
")",
";",
"out",
".",
"write",
"(",
"b1",
")",
";",
"}",
"catch",
"(",
"IOException",
"e",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"e",
")",
";",
"}",
"}"
] |
public void WriteShort(int v){int b1 = (v >> 8) & 0xFF;int b0 = (v >> 0) & 0xFF;try{out1.WriteByte((byte)b0);out1.WriteByte((byte)b1);}catch (IOException e){throw new RuntimeException(e);}}
|
train
| false
|
4,047
|
public PathQueryNode(List<QueryText> pathElements) {this.values = pathElements;if (pathElements.size() <= 1) {throw new RuntimeException("PathQuerynode requires more 2 or more path elements.");}}
|
[
"public",
"PathQueryNode",
"(",
"List",
"<",
"QueryText",
">",
"pathElements",
")",
"{",
"this",
".",
"values",
"=",
"pathElements",
";",
"if",
"(",
"pathElements",
".",
"size",
"(",
")",
"<=",
"1",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"PathQuerynode requires more 2 or more path elements.\"",
")",
";",
"}",
"}"
] |
public PathQueryNode(IList<QueryText> pathElements){this.values = pathElements;if (pathElements.Count <= 1){throw new Exception("PathQuerynode requires more 2 or more path elements.");}}
|
train
| false
|
4,048
|
public int getMaxDeltaDepth() {return maxDeltaDepth;}
|
[
"public",
"int",
"getMaxDeltaDepth",
"(",
")",
"{",
"return",
"maxDeltaDepth",
";",
"}"
] |
public virtual int GetMaxDeltaDepth(){return maxDeltaDepth;}
|
train
| false
|
4,049
|
public DomainInfos listDomains(ListDomainsRequest request) {request = beforeClientExecution(request);return executeListDomains(request);}
|
[
"public",
"DomainInfos",
"listDomains",
"(",
"ListDomainsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDomains",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDomainsResponse ListDomains(ListDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance;return Invoke<ListDomainsResponse>(request, options);}
|
train
| true
|
4,050
|
public float weight(int contentLength, int totalTermFreq) {float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float) Math.log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}
|
[
"public",
"float",
"weight",
"(",
"int",
"contentLength",
",",
"int",
"totalTermFreq",
")",
"{",
"float",
"numDocs",
"=",
"1",
"+",
"contentLength",
"/",
"pivot",
";",
"return",
"(",
"k1",
"+",
"1",
")",
"*",
"(",
"float",
")",
"Math",
".",
"log",
"(",
"1",
"+",
"(",
"numDocs",
"+",
"0.5D",
")",
"/",
"(",
"totalTermFreq",
"+",
"0.5D",
")",
")",
";",
"}"
] |
public virtual float Weight(int contentLength, int totalTermFreq){float numDocs = 1 + contentLength / pivot;return (k1 + 1) * (float)Math.Log(1 + (numDocs + 0.5D) / (totalTermFreq + 0.5D));}
|
train
| false
|
4,051
|
public PutIdentityPolicyResult putIdentityPolicy(PutIdentityPolicyRequest request) {request = beforeClientExecution(request);return executePutIdentityPolicy(request);}
|
[
"public",
"PutIdentityPolicyResult",
"putIdentityPolicy",
"(",
"PutIdentityPolicyRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutIdentityPolicy",
"(",
"request",
")",
";",
"}"
] |
public virtual PutIdentityPolicyResponse PutIdentityPolicy(PutIdentityPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutIdentityPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = PutIdentityPolicyResponseUnmarshaller.Instance;return Invoke<PutIdentityPolicyResponse>(request, options);}
|
train
| true
|
4,053
|
public static File[] listRoots() {return new File[] { new File("/") };}
|
[
"public",
"static",
"File",
"[",
"]",
"listRoots",
"(",
")",
"{",
"return",
"new",
"File",
"[",
"]",
"{",
"new",
"File",
"(",
"\"/\"",
")",
"}",
";",
"}"
] |
public static java.io.File[] listRoots(){return new java.io.File[] { new java.io.File("/") };}
|
train
| false
|
4,054
|
public CharBuffer slice() {return new ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + position);}
|
[
"public",
"CharBuffer",
"slice",
"(",
")",
"{",
"return",
"new",
"ReadOnlyCharArrayBuffer",
"(",
"remaining",
"(",
")",
",",
"backingArray",
",",
"offset",
"+",
"position",
")",
";",
"}"
] |
public override java.nio.CharBuffer slice(){return new java.nio.ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + _position);}
|
train
| false
|
4,055
|
public JapaneseKatakanaStemFilter(TokenStream input, int minimumLength) {super(input);this.minimumKatakanaLength = minimumLength;}
|
[
"public",
"JapaneseKatakanaStemFilter",
"(",
"TokenStream",
"input",
",",
"int",
"minimumLength",
")",
"{",
"super",
"(",
"input",
")",
";",
"this",
".",
"minimumKatakanaLength",
"=",
"minimumLength",
";",
"}"
] |
public JapaneseKatakanaStemFilter(TokenStream input, int minimumLength): base(input){this.minimumKatakanaLength = minimumLength;this.termAttr = AddAttribute<ICharTermAttribute>();this.keywordAttr = AddAttribute<IKeywordAttribute>();}
|
train
| false
|
4,056
|
public String toString() {return brToString(termBytes);}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"brToString",
"(",
"termBytes",
")",
";",
"}"
] |
public override string ToString(){return Term.Utf8ToString();}
|
train
| false
|
4,057
|
public void unsafeWrite(char b[], int off, int len) {System.arraycopy(b, off, buf, this.len, len);this.len += len;}
|
[
"public",
"void",
"unsafeWrite",
"(",
"char",
"b",
"[",
"]",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"System",
".",
"arraycopy",
"(",
"b",
",",
"off",
",",
"buf",
",",
"this",
".",
"len",
",",
"len",
")",
";",
"this",
".",
"len",
"+=",
"len",
";",
"}"
] |
public virtual void UnsafeWrite(char[] b, int off, int len){System.Array.Copy(b, off, m_buf, this.m_len, len);this.m_len += len;}
|
train
| true
|
4,058
|
public ExternalNameRecord(RecordInputStream in) {field_1_option_flag = in.readShort();field_2_ixals = in.readShort();field_3_not_used = in.readShort();int numChars = in.readUByte();field_4_name = StringUtil.readUnicodeString(in, numChars);if(!isOLELink() && !isStdDocumentNameIdentifier()){if(isAutomaticLink()){if(in.available() > 0) {int nColumns = in.readUByte() + 1;int nRows = in.readShort() + 1;int totalCount = nRows * nColumns;_ddeValues = ConstantValueParser.parse(in, totalCount);_nColumns = nColumns;_nRows = nRows;}} else {int formulaLen = in.readUShort();field_5_name_definition = Formula.read(formulaLen, in);}}}
|
[
"public",
"ExternalNameRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_option_flag",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_ixals",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_not_used",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"int",
"numChars",
"=",
"in",
".",
"readUByte",
"(",
")",
";",
"field_4_name",
"=",
"StringUtil",
".",
"readUnicodeString",
"(",
"in",
",",
"numChars",
")",
";",
"if",
"(",
"!",
"isOLELink",
"(",
")",
"&&",
"!",
"isStdDocumentNameIdentifier",
"(",
")",
")",
"{",
"if",
"(",
"isAutomaticLink",
"(",
")",
")",
"{",
"if",
"(",
"in",
".",
"available",
"(",
")",
">",
"0",
")",
"{",
"int",
"nColumns",
"=",
"in",
".",
"readUByte",
"(",
")",
"+",
"1",
";",
"int",
"nRows",
"=",
"in",
".",
"readShort",
"(",
")",
"+",
"1",
";",
"int",
"totalCount",
"=",
"nRows",
"*",
"nColumns",
";",
"_ddeValues",
"=",
"ConstantValueParser",
".",
"parse",
"(",
"in",
",",
"totalCount",
")",
";",
"_nColumns",
"=",
"nColumns",
";",
"_nRows",
"=",
"nRows",
";",
"}",
"}",
"else",
"{",
"int",
"formulaLen",
"=",
"in",
".",
"readUShort",
"(",
")",
";",
"field_5_name_definition",
"=",
"Formula",
".",
"read",
"(",
"formulaLen",
",",
"in",
")",
";",
"}",
"}",
"}"
] |
public ExternalNameRecord(RecordInputStream in1){field_1_option_flag = in1.ReadShort();field_2_ixals = in1.ReadShort();field_3_not_used = in1.ReadShort();int numChars = in1.ReadUByte();field_4_name = StringUtil.ReadUnicodeString(in1, numChars);if (!IsOLELink && !IsStdDocumentNameIdentifier){if (IsAutomaticLink){if (in1.Available() > 0){int nColumns = in1.ReadUByte() + 1;int nRows = in1.ReadShort() + 1;int totalCount = nRows * nColumns;_ddeValues = ConstantValueParser.Parse(in1, totalCount);_nColumns = nColumns;_nRows = nRows;}}else{int formulaLen = in1.ReadUShort();field_5_name_definition = Formula.Read(formulaLen, in1);}}}
|
train
| false
|
4,059
|
public PorterStemFilter create(TokenStream input) {return new PorterStemFilter(input);}
|
[
"public",
"PorterStemFilter",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"PorterStemFilter",
"(",
"input",
")",
";",
"}"
] |
public override TokenStream Create(TokenStream input){return new PorterStemFilter(input);}
|
train
| false
|
4,060
|
public LoginProfile(String userName, java.util.Date createDate) {setUserName(userName);setCreateDate(createDate);}
|
[
"public",
"LoginProfile",
"(",
"String",
"userName",
",",
"java",
".",
"util",
".",
"Date",
"createDate",
")",
"{",
"setUserName",
"(",
"userName",
")",
";",
"setCreateDate",
"(",
"createDate",
")",
";",
"}"
] |
public LoginProfile(string userName, DateTime createDate){_userName = userName;_createDate = createDate;}
|
train
| false
|
4,061
|
public void setUnknownFormulaData(byte[] formularData) {field_2_unknownFormulaData = formularData;}
|
[
"public",
"void",
"setUnknownFormulaData",
"(",
"byte",
"[",
"]",
"formularData",
")",
"{",
"field_2_unknownFormulaData",
"=",
"formularData",
";",
"}"
] |
public void SetUnknownFormulaData(byte[] formularData){field_2_unknownFormulaData = formularData;}
|
train
| false
|
4,062
|
public Reader create(Reader input) {return normMap == null ? input : new MappingCharFilter(normMap,input);}
|
[
"public",
"Reader",
"create",
"(",
"Reader",
"input",
")",
"{",
"return",
"normMap",
"==",
"null",
"?",
"input",
":",
"new",
"MappingCharFilter",
"(",
"normMap",
",",
"input",
")",
";",
"}"
] |
public override TextReader Create(TextReader input){return m_normMap == null ? input : new MappingCharFilter(m_normMap, input);}
|
train
| false
|
4,064
|
public final Buffer clear() {position = 0;mark = UNSET_MARK;limit = capacity;return this;}
|
[
"public",
"final",
"Buffer",
"clear",
"(",
")",
"{",
"position",
"=",
"0",
";",
"mark",
"=",
"UNSET_MARK",
";",
"limit",
"=",
"capacity",
";",
"return",
"this",
";",
"}"
] |
public java.nio.Buffer clear(){_position = 0;_mark = UNSET_MARK;_limit = _capacity;return this;}
|
train
| false
|
4,065
|
public int getNameIx(int definedNameIndex) {return _externalNameRecords[definedNameIndex].getIx();}
|
[
"public",
"int",
"getNameIx",
"(",
"int",
"definedNameIndex",
")",
"{",
"return",
"_externalNameRecords",
"[",
"definedNameIndex",
"]",
".",
"getIx",
"(",
")",
";",
"}"
] |
public int GetNameIx(int definedNameIndex){return _externalNameRecords[definedNameIndex].Ix;}
|
train
| false
|
4,066
|
public DeleteReceiptRuleResult deleteReceiptRule(DeleteReceiptRuleRequest request) {request = beforeClientExecution(request);return executeDeleteReceiptRule(request);}
|
[
"public",
"DeleteReceiptRuleResult",
"deleteReceiptRule",
"(",
"DeleteReceiptRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteReceiptRule",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteReceiptRuleResponse DeleteReceiptRule(DeleteReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteReceiptRuleResponseUnmarshaller.Instance;return Invoke<DeleteReceiptRuleResponse>(request, options);}
|
train
| true
|
4,067
|
public boolean equals(Object obj) {if (this == obj) return true;if (!super.equals(obj)) return false;if (getClass() != obj.getClass()) return false;SortedSetSortField other = (SortedSetSortField) obj;if (selector != other.selector) return false;return true;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"!",
"super",
".",
"equals",
"(",
"obj",
")",
")",
"return",
"false",
";",
"if",
"(",
"getClass",
"(",
")",
"!=",
"obj",
".",
"getClass",
"(",
")",
")",
"return",
"false",
";",
"SortedSetSortField",
"other",
"=",
"(",
"SortedSetSortField",
")",
"obj",
";",
"if",
"(",
"selector",
"!=",
"other",
".",
"selector",
")",
"return",
"false",
";",
"return",
"true",
";",
"}"
] |
public override bool Equals(object obj){if (this == obj) return true;if (!base.Equals(obj)) return false;if (GetType() != obj.GetType()) return false;SortedSetSortField other = (SortedSetSortField)obj;if (selector != other.selector) return false;return true;}
|
train
| false
|
4,068
|
public JobFlowDetail(String jobFlowId, String name, JobFlowExecutionStatusDetail executionStatusDetail, JobFlowInstancesDetail instances) {setJobFlowId(jobFlowId);setName(name);setExecutionStatusDetail(executionStatusDetail);setInstances(instances);}
|
[
"public",
"JobFlowDetail",
"(",
"String",
"jobFlowId",
",",
"String",
"name",
",",
"JobFlowExecutionStatusDetail",
"executionStatusDetail",
",",
"JobFlowInstancesDetail",
"instances",
")",
"{",
"setJobFlowId",
"(",
"jobFlowId",
")",
";",
"setName",
"(",
"name",
")",
";",
"setExecutionStatusDetail",
"(",
"executionStatusDetail",
")",
";",
"setInstances",
"(",
"instances",
")",
";",
"}"
] |
public JobFlowDetail(string jobFlowId, string name, JobFlowExecutionStatusDetail executionStatusDetail, JobFlowInstancesDetail instances){_jobFlowId = jobFlowId;_name = name;_executionStatusDetail = executionStatusDetail;_instances = instances;}
|
train
| false
|
4,069
|
public PutVoiceConnectorOriginationResult putVoiceConnectorOrigination(PutVoiceConnectorOriginationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorOrigination(request);}
|
[
"public",
"PutVoiceConnectorOriginationResult",
"putVoiceConnectorOrigination",
"(",
"PutVoiceConnectorOriginationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executePutVoiceConnectorOrigination",
"(",
"request",
")",
";",
"}"
] |
public virtual PutVoiceConnectorOriginationResponse PutVoiceConnectorOrigination(PutVoiceConnectorOriginationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutVoiceConnectorOriginationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutVoiceConnectorOriginationResponseUnmarshaller.Instance;return Invoke<PutVoiceConnectorOriginationResponse>(request, options);}
|
train
| true
|
4,070
|
public DBInstance startDBInstance(StartDBInstanceRequest request) {request = beforeClientExecution(request);return executeStartDBInstance(request);}
|
[
"public",
"DBInstance",
"startDBInstance",
"(",
"StartDBInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStartDBInstance",
"(",
"request",
")",
";",
"}"
] |
public virtual StartDBInstanceResponse StartDBInstance(StartDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDBInstanceResponseUnmarshaller.Instance;return Invoke<StartDBInstanceResponse>(request, options);}
|
train
| true
|
4,071
|
public DeleteChangeSetResult deleteChangeSet(DeleteChangeSetRequest request) {request = beforeClientExecution(request);return executeDeleteChangeSet(request);}
|
[
"public",
"DeleteChangeSetResult",
"deleteChangeSet",
"(",
"DeleteChangeSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteChangeSet",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteChangeSetResponse DeleteChangeSet(DeleteChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteChangeSetResponseUnmarshaller.Instance;return Invoke<DeleteChangeSetResponse>(request, options);}
|
train
| true
|
4,072
|
public int nextIndex() {return pos + 1;}
|
[
"public",
"int",
"nextIndex",
"(",
")",
"{",
"return",
"pos",
"+",
"1",
";",
"}"
] |
public int nextIndex(){return this.pos + 1;}
|
train
| false
|
4,073
|
public DescribeGameSessionDetailsResult describeGameSessionDetails(DescribeGameSessionDetailsRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessionDetails(request);}
|
[
"public",
"DescribeGameSessionDetailsResult",
"describeGameSessionDetails",
"(",
"DescribeGameSessionDetailsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeGameSessionDetails",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeGameSessionDetailsResponse DescribeGameSessionDetails(DescribeGameSessionDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionDetailsResponseUnmarshaller.Instance;return Invoke<DescribeGameSessionDetailsResponse>(request, options);}
|
train
| true
|
4,074
|
public ListDatasetImportJobsResult listDatasetImportJobs(ListDatasetImportJobsRequest request) {request = beforeClientExecution(request);return executeListDatasetImportJobs(request);}
|
[
"public",
"ListDatasetImportJobsResult",
"listDatasetImportJobs",
"(",
"ListDatasetImportJobsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDatasetImportJobs",
"(",
"request",
")",
";",
"}"
] |
public virtual ListDatasetImportJobsResponse ListDatasetImportJobs(ListDatasetImportJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDatasetImportJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDatasetImportJobsResponseUnmarshaller.Instance;return Invoke<ListDatasetImportJobsResponse>(request, options);}
|
train
| false
|
4,075
|
public String toString() {return new StringBuilder().append("(").append(x).append(",").append(y).append(")").toString();}
|
[
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"new",
"StringBuilder",
"(",
")",
".",
"append",
"(",
"\"(\"",
")",
".",
"append",
"(",
"x",
")",
".",
"append",
"(",
"\",\"",
")",
".",
"append",
"(",
"y",
")",
".",
"append",
"(",
"\")\"",
")",
".",
"toString",
"(",
")",
";",
"}"
] |
public override string ToString(){return "Point(" + x + ", " + y + ")";}
|
train
| false
|
4,076
|
public CharBlockArray append(char c) {if (this.current.length == this.blockSize) {addBlock();}this.current.chars[this.current.length++] = c;this.length++;return this;}
|
[
"public",
"CharBlockArray",
"append",
"(",
"char",
"c",
")",
"{",
"if",
"(",
"this",
".",
"current",
".",
"length",
"==",
"this",
".",
"blockSize",
")",
"{",
"addBlock",
"(",
")",
";",
"}",
"this",
".",
"current",
".",
"chars",
"[",
"this",
".",
"current",
".",
"length",
"++",
"]",
"=",
"c",
";",
"this",
".",
"length",
"++",
";",
"return",
"this",
";",
"}"
] |
public virtual CharBlockArray Append(char c){if (this.current.length == this.blockSize){AddBlock();}this.current.chars[this.current.length++] = c;this.length++;return this;}
|
train
| false
|
4,077
|
public SimpleBoolFunction(ValueSource source) {this.source = source;}
|
[
"public",
"SimpleBoolFunction",
"(",
"ValueSource",
"source",
")",
"{",
"this",
".",
"source",
"=",
"source",
";",
"}"
] |
public SimpleBoolFunction(ValueSource source){this.m_source = source;}
|
train
| false
|
4,078
|
public String toStringUnquoted() {return getPrefix();}
|
[
"public",
"String",
"toStringUnquoted",
"(",
")",
"{",
"return",
"getPrefix",
"(",
")",
";",
"}"
] |
public override string ToStringUnquoted(){return Prefix;}
|
train
| false
|
4,079
|
public static Transport open(URIish uri) throws NotSupportedException, TransportException {for (WeakReference<TransportProtocol> ref : protocols) {TransportProtocol proto = ref.get();if (proto == null) {protocols.remove(ref);continue;}if (proto.canHandle(uri, null, null))return proto.open(uri);}throw new NotSupportedException(MessageFormat.format(JGitText.get().URINotSupported, uri));}
|
[
"public",
"static",
"Transport",
"open",
"(",
"URIish",
"uri",
")",
"throws",
"NotSupportedException",
",",
"TransportException",
"{",
"for",
"(",
"WeakReference",
"<",
"TransportProtocol",
">",
"ref",
":",
"protocols",
")",
"{",
"TransportProtocol",
"proto",
"=",
"ref",
".",
"get",
"(",
")",
";",
"if",
"(",
"proto",
"==",
"null",
")",
"{",
"protocols",
".",
"remove",
"(",
"ref",
")",
";",
"continue",
";",
"}",
"if",
"(",
"proto",
".",
"canHandle",
"(",
"uri",
",",
"null",
",",
"null",
")",
")",
"return",
"proto",
".",
"open",
"(",
"uri",
")",
";",
"}",
"throw",
"new",
"NotSupportedException",
"(",
"MessageFormat",
".",
"format",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"URINotSupported",
",",
"uri",
")",
")",
";",
"}"
] |
public static NGit.Transport.Transport Open(URIish uri){foreach (JavaWeakReference<TransportProtocol> @ref in protocols){TransportProtocol proto = @ref.Get();if (proto == null){protocols.Remove(@ref);continue;}if (proto.CanHandle(uri, null, null)){return proto.Open(uri);}}throw new NGit.Errors.NotSupportedException(MessageFormat.Format(JGitText.Get().URINotSupported, uri));}
|
train
| false
|
4,080
|
public void mark(int readAheadLimit) throws IOException {throw new IOException("mark/reset not supported");}
|
[
"public",
"void",
"mark",
"(",
"int",
"readAheadLimit",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"IOException",
"(",
"\"mark/reset not supported\"",
")",
";",
"}"
] |
public override void mark(int readAheadLimit){throw new System.IO.IOException("mark/reset not supported");}
|
train
| false
|
4,081
|
public DeleteClusterSecurityGroupResult deleteClusterSecurityGroup(DeleteClusterSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteClusterSecurityGroup(request);}
|
[
"public",
"DeleteClusterSecurityGroupResult",
"deleteClusterSecurityGroup",
"(",
"DeleteClusterSecurityGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteClusterSecurityGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteClusterSecurityGroupResponse DeleteClusterSecurityGroup(DeleteClusterSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterSecurityGroupResponseUnmarshaller.Instance;return Invoke<DeleteClusterSecurityGroupResponse>(request, options);}
|
train
| true
|
4,082
|
public GlobalReplicationGroup rebalanceSlotsInGlobalReplicationGroup(RebalanceSlotsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeRebalanceSlotsInGlobalReplicationGroup(request);}
|
[
"public",
"GlobalReplicationGroup",
"rebalanceSlotsInGlobalReplicationGroup",
"(",
"RebalanceSlotsInGlobalReplicationGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRebalanceSlotsInGlobalReplicationGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual RebalanceSlotsInGlobalReplicationGroupResponse RebalanceSlotsInGlobalReplicationGroup(RebalanceSlotsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebalanceSlotsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = RebalanceSlotsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<RebalanceSlotsInGlobalReplicationGroupResponse>(request, options);}
|
train
| false
|
4,083
|
public DeleteLocalGatewayRouteResult deleteLocalGatewayRoute(DeleteLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeDeleteLocalGatewayRoute(request);}
|
[
"public",
"DeleteLocalGatewayRouteResult",
"deleteLocalGatewayRoute",
"(",
"DeleteLocalGatewayRouteRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteLocalGatewayRoute",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteLocalGatewayRouteResponse DeleteLocalGatewayRoute(DeleteLocalGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLocalGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLocalGatewayRouteResponseUnmarshaller.Instance;return Invoke<DeleteLocalGatewayRouteResponse>(request, options);}
|
train
| false
|
4,084
|
public DBCluster restoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreDBClusterFromSnapshot(request);}
|
[
"public",
"DBCluster",
"restoreDBClusterFromSnapshot",
"(",
"RestoreDBClusterFromSnapshotRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRestoreDBClusterFromSnapshot",
"(",
"request",
")",
";",
"}"
] |
public virtual RestoreDBClusterFromSnapshotResponse RestoreDBClusterFromSnapshot(RestoreDBClusterFromSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreDBClusterFromSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreDBClusterFromSnapshotResponseUnmarshaller.Instance;return Invoke<RestoreDBClusterFromSnapshotResponse>(request, options);}
|
train
| true
|
4,085
|
public String getReading(int wordId, char surface[], int off, int len) {return null;}
|
[
"public",
"String",
"getReading",
"(",
"int",
"wordId",
",",
"char",
"surface",
"[",
"]",
",",
"int",
"off",
",",
"int",
"len",
")",
"{",
"return",
"null",
";",
"}"
] |
public override string GetReading(int wordId, char[] surface, int off, int len){return null;}
|
train
| false
|
4,086
|
public CreateDBSnapshotRequest(String dBSnapshotIdentifier, String dBInstanceIdentifier) {setDBSnapshotIdentifier(dBSnapshotIdentifier);setDBInstanceIdentifier(dBInstanceIdentifier);}
|
[
"public",
"CreateDBSnapshotRequest",
"(",
"String",
"dBSnapshotIdentifier",
",",
"String",
"dBInstanceIdentifier",
")",
"{",
"setDBSnapshotIdentifier",
"(",
"dBSnapshotIdentifier",
")",
";",
"setDBInstanceIdentifier",
"(",
"dBInstanceIdentifier",
")",
";",
"}"
] |
public CreateDBSnapshotRequest(string dbSnapshotIdentifier, string dbInstanceIdentifier){_dbSnapshotIdentifier = dbSnapshotIdentifier;_dbInstanceIdentifier = dbInstanceIdentifier;}
|
train
| false
|
4,087
|
public RemoveRoleFromDBInstanceResult removeRoleFromDBInstance(RemoveRoleFromDBInstanceRequest request) {request = beforeClientExecution(request);return executeRemoveRoleFromDBInstance(request);}
|
[
"public",
"RemoveRoleFromDBInstanceResult",
"removeRoleFromDBInstance",
"(",
"RemoveRoleFromDBInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRemoveRoleFromDBInstance",
"(",
"request",
")",
";",
"}"
] |
public virtual RemoveRoleFromDBInstanceResponse RemoveRoleFromDBInstance(RemoveRoleFromDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveRoleFromDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveRoleFromDBInstanceResponseUnmarshaller.Instance;return Invoke<RemoveRoleFromDBInstanceResponse>(request, options);}
|
train
| true
|
4,088
|
public Token nextToken() {if (i >= tokens.size()) {if (eofToken == null) {int start = -1;if (tokens.size() > 0) {int previousStop = tokens.get(tokens.size() - 1).getStopIndex();if (previousStop != -1) {start = previousStop + 1;}}int stop = Math.max(-1, start - 1);eofToken = _factory.create(new Pair<TokenSource, CharStream>(this, getInputStream()), Token.EOF, "EOF", Token.DEFAULT_CHANNEL, start, stop, getLine(), getCharPositionInLine());}return eofToken;}Token t = tokens.get(i);if (i == tokens.size() - 1 && t.getType() == Token.EOF) {eofToken = t;}i++;return t;}
|
[
"public",
"Token",
"nextToken",
"(",
")",
"{",
"if",
"(",
"i",
">=",
"tokens",
".",
"size",
"(",
")",
")",
"{",
"if",
"(",
"eofToken",
"==",
"null",
")",
"{",
"int",
"start",
"=",
"-",
"1",
";",
"if",
"(",
"tokens",
".",
"size",
"(",
")",
">",
"0",
")",
"{",
"int",
"previousStop",
"=",
"tokens",
".",
"get",
"(",
"tokens",
".",
"size",
"(",
")",
"-",
"1",
")",
".",
"getStopIndex",
"(",
")",
";",
"if",
"(",
"previousStop",
"!=",
"-",
"1",
")",
"{",
"start",
"=",
"previousStop",
"+",
"1",
";",
"}",
"}",
"int",
"stop",
"=",
"Math",
".",
"max",
"(",
"-",
"1",
",",
"start",
"-",
"1",
")",
";",
"eofToken",
"=",
"_factory",
".",
"create",
"(",
"new",
"Pair",
"<",
"TokenSource",
",",
"CharStream",
">",
"(",
"this",
",",
"getInputStream",
"(",
")",
")",
",",
"Token",
".",
"EOF",
",",
"\"EOF\"",
",",
"Token",
".",
"DEFAULT_CHANNEL",
",",
"start",
",",
"stop",
",",
"getLine",
"(",
")",
",",
"getCharPositionInLine",
"(",
")",
")",
";",
"}",
"return",
"eofToken",
";",
"}",
"Token",
"t",
"=",
"tokens",
".",
"get",
"(",
"i",
")",
";",
"if",
"(",
"i",
"==",
"tokens",
".",
"size",
"(",
")",
"-",
"1",
"&&",
"t",
".",
"getType",
"(",
")",
"==",
"Token",
".",
"EOF",
")",
"{",
"eofToken",
"=",
"t",
";",
"}",
"i",
"++",
";",
"return",
"t",
";",
"}"
] |
public virtual IToken NextToken(){if (i >= tokens.Count){if (eofToken == null){int start = -1;if (tokens.Count > 0){int previousStop = tokens[tokens.Count - 1].StopIndex;if (previousStop != -1){start = previousStop + 1;}}int stop = Math.Max(-1, start - 1);eofToken = _factory.Create(Tuple.Create((ITokenSource)this, InputStream), TokenConstants.EOF, "EOF", TokenConstants.DefaultChannel, start, stop, Line, Column);}return eofToken;}IToken t = tokens[i];if (i == tokens.Count - 1 && t.Type == TokenConstants.EOF){eofToken = t;}i++;return t;}
|
train
| false
|
4,089
|
public QueryMaker getQueryMaker() {return null; }
|
[
"public",
"QueryMaker",
"getQueryMaker",
"(",
")",
"{",
"return",
"null",
";",
"}"
] |
public override IQueryMaker GetQueryMaker(){return null; }
|
train
| false
|
4,090
|
public GC(FileRepository repo) {this.repo = repo;this.pconfig = new PackConfig(repo);this.pm = NullProgressMonitor.INSTANCE;}
|
[
"public",
"GC",
"(",
"FileRepository",
"repo",
")",
"{",
"this",
".",
"repo",
"=",
"repo",
";",
"this",
".",
"pconfig",
"=",
"new",
"PackConfig",
"(",
"repo",
")",
";",
"this",
".",
"pm",
"=",
"NullProgressMonitor",
".",
"INSTANCE",
";",
"}"
] |
public GC(FileRepository repo){this.repo = repo;this.pm = NullProgressMonitor.INSTANCE;}
|
train
| false
|
4,091
|
public synchronized void setLength(int length) {super.setLength(length);}
|
[
"public",
"synchronized",
"void",
"setLength",
"(",
"int",
"length",
")",
"{",
"super",
".",
"setLength",
"(",
"length",
")",
";",
"}"
] |
public override void setLength(int length_1){lock (this){base.setLength(length_1);}}
|
train
| false
|
4,092
|
public CancelImportTaskResult cancelImportTask(CancelImportTaskRequest request) {request = beforeClientExecution(request);return executeCancelImportTask(request);}
|
[
"public",
"CancelImportTaskResult",
"cancelImportTask",
"(",
"CancelImportTaskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCancelImportTask",
"(",
"request",
")",
";",
"}"
] |
public virtual CancelImportTaskResponse CancelImportTask(CancelImportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelImportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelImportTaskResponseUnmarshaller.Instance;return Invoke<CancelImportTaskResponse>(request, options);}
|
train
| true
|
4,093
|
public int first() {return (current = start);}
|
[
"public",
"int",
"first",
"(",
")",
"{",
"return",
"(",
"current",
"=",
"start",
")",
";",
"}"
] |
public override int First(){return (current = start);}
|
train
| false
|
4,094
|
public DeleteDiskResult deleteDisk(DeleteDiskRequest request) {request = beforeClientExecution(request);return executeDeleteDisk(request);}
|
[
"public",
"DeleteDiskResult",
"deleteDisk",
"(",
"DeleteDiskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteDisk",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteDiskResponse DeleteDisk(DeleteDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDiskResponseUnmarshaller.Instance;return Invoke<DeleteDiskResponse>(request, options);}
|
train
| true
|
4,095
|
public DeleteVpcEndpointConnectionNotificationsResult deleteVpcEndpointConnectionNotifications(DeleteVpcEndpointConnectionNotificationsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpointConnectionNotifications(request);}
|
[
"public",
"DeleteVpcEndpointConnectionNotificationsResult",
"deleteVpcEndpointConnectionNotifications",
"(",
"DeleteVpcEndpointConnectionNotificationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteVpcEndpointConnectionNotifications",
"(",
"request",
")",
";",
"}"
] |
public virtual DeleteVpcEndpointConnectionNotificationsResponse DeleteVpcEndpointConnectionNotifications(DeleteVpcEndpointConnectionNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointConnectionNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointConnectionNotificationsResponseUnmarshaller.Instance;return Invoke<DeleteVpcEndpointConnectionNotificationsResponse>(request, options);}
|
train
| true
|
4,097
|
public DescribeConfigurationSettingsRequest(String applicationName) {setApplicationName(applicationName);}
|
[
"public",
"DescribeConfigurationSettingsRequest",
"(",
"String",
"applicationName",
")",
"{",
"setApplicationName",
"(",
"applicationName",
")",
";",
"}"
] |
public DescribeConfigurationSettingsRequest(string applicationName){_applicationName = applicationName;}
|
train
| false
|
4,098
|
public ET next() {if (expectedModCount == list.modCount) {LinkedList.Link<ET> next = link.next;if (next != list.voidLink) {lastLink = link = next;pos++;return link.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}
|
[
"public",
"ET",
"next",
"(",
")",
"{",
"if",
"(",
"expectedModCount",
"==",
"list",
".",
"modCount",
")",
"{",
"LinkedList",
".",
"Link",
"<",
"ET",
">",
"next",
"=",
"link",
".",
"next",
";",
"if",
"(",
"next",
"!=",
"list",
".",
"voidLink",
")",
"{",
"lastLink",
"=",
"link",
"=",
"next",
";",
"pos",
"++",
";",
"return",
"link",
".",
"data",
";",
"}",
"throw",
"new",
"NoSuchElementException",
"(",
")",
";",
"}",
"throw",
"new",
"ConcurrentModificationException",
"(",
")",
";",
"}"
] |
public ET next(){if (expectedModCount == list.modCount){java.util.LinkedList.Link<ET> next_1 = link.next;if (next_1 != list.voidLink){lastLink = link = next_1;pos++;return link.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}
|
train
| false
|
4,099
|
public CreateConfigurationResult createConfiguration(CreateConfigurationRequest request) {request = beforeClientExecution(request);return executeCreateConfiguration(request);}
|
[
"public",
"CreateConfigurationResult",
"createConfiguration",
"(",
"CreateConfigurationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateConfiguration",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateConfigurationResponse CreateConfiguration(CreateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConfigurationResponseUnmarshaller.Instance;return Invoke<CreateConfigurationResponse>(request, options);}
|
train
| true
|
4,100
|
public ResetClusterParameterGroupResult resetClusterParameterGroup(ResetClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetClusterParameterGroup(request);}
|
[
"public",
"ResetClusterParameterGroupResult",
"resetClusterParameterGroup",
"(",
"ResetClusterParameterGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeResetClusterParameterGroup",
"(",
"request",
")",
";",
"}"
] |
public virtual ResetClusterParameterGroupResponse ResetClusterParameterGroup(ResetClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetClusterParameterGroupResponse>(request, options);}
|
train
| true
|
4,101
|
public void mark(int readlimit) {in.mark(readlimit);}
|
[
"public",
"void",
"mark",
"(",
"int",
"readlimit",
")",
"{",
"in",
".",
"mark",
"(",
"readlimit",
")",
";",
"}"
] |
public override void Mark(int readlimit){@in.Mark(readlimit);}
|
train
| false
|
4,103
|
public SendTemplatedEmailResult sendTemplatedEmail(SendTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendTemplatedEmail(request);}
|
[
"public",
"SendTemplatedEmailResult",
"sendTemplatedEmail",
"(",
"SendTemplatedEmailRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSendTemplatedEmail",
"(",
"request",
")",
";",
"}"
] |
public virtual SendTemplatedEmailResponse SendTemplatedEmail(SendTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTemplatedEmailResponseUnmarshaller.Instance;return Invoke<SendTemplatedEmailResponse>(request, options);}
|
train
| true
|
4,104
|
public boolean equals(Object obj) {if ( !(obj instanceof Predicate) ) return false;if ( this == obj ) return true;Predicate p = (Predicate)obj;return this.ruleIndex == p.ruleIndex &&this.predIndex == p.predIndex &&this.isCtxDependent == p.isCtxDependent;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"!",
"(",
"obj",
"instanceof",
"Predicate",
")",
")",
"return",
"false",
";",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"Predicate",
"p",
"=",
"(",
"Predicate",
")",
"obj",
";",
"return",
"this",
".",
"ruleIndex",
"==",
"p",
".",
"ruleIndex",
"&&",
"this",
".",
"predIndex",
"==",
"p",
".",
"predIndex",
"&&",
"this",
".",
"isCtxDependent",
"==",
"p",
".",
"isCtxDependent",
";",
"}"
] |
public override bool Equals(object obj){if (!(obj is SemanticContext.Predicate)){return false;}if (this == obj){return true;}SemanticContext.Predicate p = (SemanticContext.Predicate)obj;return this.ruleIndex == p.ruleIndex && this.predIndex == p.predIndex && this.isCtxDependent == p.isCtxDependent;}
|
train
| false
|
4,105
|
public void writeBoolean(boolean value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBoolean(value);}
|
[
"public",
"void",
"writeBoolean",
"(",
"boolean",
"value",
")",
"throws",
"IOException",
"{",
"checkWritePrimitiveTypes",
"(",
")",
";",
"primitiveTypes",
".",
"writeBoolean",
"(",
"value",
")",
";",
"}"
] |
public virtual void writeBoolean(bool value){throw new System.NotImplementedException();}
|
train
| false
|
4,106
|
public boolean checkPosition(int position) {Iterator<PositionSpan> positionSpanIt = positionSpans.iterator();while (positionSpanIt.hasNext()) {PositionSpan posSpan = positionSpanIt.next();if (((position >= posSpan.start) && (position <= posSpan.end))) {return true;}}return false;}
|
[
"public",
"boolean",
"checkPosition",
"(",
"int",
"position",
")",
"{",
"Iterator",
"<",
"PositionSpan",
">",
"positionSpanIt",
"=",
"positionSpans",
".",
"iterator",
"(",
")",
";",
"while",
"(",
"positionSpanIt",
".",
"hasNext",
"(",
")",
")",
"{",
"PositionSpan",
"posSpan",
"=",
"positionSpanIt",
".",
"next",
"(",
")",
";",
"if",
"(",
"(",
"(",
"position",
">=",
"posSpan",
".",
"start",
")",
"&&",
"(",
"position",
"<=",
"posSpan",
".",
"end",
")",
")",
")",
"{",
"return",
"true",
";",
"}",
"}",
"return",
"false",
";",
"}"
] |
public virtual bool CheckPosition(int position){foreach (var positionSpan in _positionSpans){if ((position >= positionSpan.Start) && (position <= positionSpan.End)){return true;}}return false;}
|
train
| false
|
4,107
|
public static int log(long x, int base) {if (base <= 1) {throw new IllegalArgumentException("base must be > 1");}int ret = 0;while (x >= base) {x /= base;ret++;}return ret;}
|
[
"public",
"static",
"int",
"log",
"(",
"long",
"x",
",",
"int",
"base",
")",
"{",
"if",
"(",
"base",
"<=",
"1",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"base must be > 1\"",
")",
";",
"}",
"int",
"ret",
"=",
"0",
";",
"while",
"(",
"x",
">=",
"base",
")",
"{",
"x",
"/=",
"base",
";",
"ret",
"++",
";",
"}",
"return",
"ret",
";",
"}"
] |
public static int Log(long x, int @base){if (@base <= 1){throw new System.ArgumentException("base must be > 1");}int ret = 0;while (x >= @base){x /= @base;ret++;}return ret;}
|
train
| false
|
4,108
|
public final LongBuffer get(long[] dst, int dstOffset, int longCount) {if (longCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, longCount);position += longCount;return this;}
|
[
"public",
"final",
"LongBuffer",
"get",
"(",
"long",
"[",
"]",
"dst",
",",
"int",
"dstOffset",
",",
"int",
"longCount",
")",
"{",
"if",
"(",
"longCount",
">",
"remaining",
"(",
")",
")",
"{",
"throw",
"new",
"BufferUnderflowException",
"(",
")",
";",
"}",
"System",
".",
"arraycopy",
"(",
"backingArray",
",",
"offset",
"+",
"position",
",",
"dst",
",",
"dstOffset",
",",
"longCount",
")",
";",
"position",
"+=",
"longCount",
";",
"return",
"this",
";",
"}"
] |
public sealed override java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, longCount);_position += longCount;return this;}
|
train
| false
|
4,109
|
public boolean equals(Object obj) {return obj == this;}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"return",
"obj",
"==",
"this",
";",
"}"
] |
public override bool Equals(object obj){return obj == this;}
|
train
| false
|
4,110
|
public void exportRepository(String name, Repository db) {exports.put(nameWithDotGit(name), db);}
|
[
"public",
"void",
"exportRepository",
"(",
"String",
"name",
",",
"Repository",
"db",
")",
"{",
"exports",
".",
"put",
"(",
"nameWithDotGit",
"(",
"name",
")",
",",
"db",
")",
";",
"}"
] |
public virtual void ExportRepository(string name, Repository db){exports.Put(NameWithDotGit(name), db);}
|
train
| false
|
4,111
|
public void println(long l) {println(String.valueOf(l));}
|
[
"public",
"void",
"println",
"(",
"long",
"l",
")",
"{",
"println",
"(",
"String",
".",
"valueOf",
"(",
"l",
")",
")",
";",
"}"
] |
public virtual void println(long l){println(l.ToString());}
|
train
| false
|
4,112
|
public HSSFFormulaEvaluator createFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);}
|
[
"public",
"HSSFFormulaEvaluator",
"createFormulaEvaluator",
"(",
")",
"{",
"return",
"new",
"HSSFFormulaEvaluator",
"(",
"workbook",
")",
";",
"}"
] |
public NPOI.SS.UserModel.IFormulaEvaluator CreateFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);}
|
train
| false
|
4,113
|
public boolean equals(Object obj) {if ( obj==null || !(obj instanceof IntervalSet) ) {return false;}IntervalSet other = (IntervalSet)obj;return this.intervals.equals(other.intervals);}
|
[
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"obj",
"==",
"null",
"||",
"!",
"(",
"obj",
"instanceof",
"IntervalSet",
")",
")",
"{",
"return",
"false",
";",
"}",
"IntervalSet",
"other",
"=",
"(",
"IntervalSet",
")",
"obj",
";",
"return",
"this",
".",
"intervals",
".",
"equals",
"(",
"other",
".",
"intervals",
")",
";",
"}"
] |
public override bool Equals(object obj){if (obj == null || !(obj is Antlr4.Runtime.Misc.IntervalSet)){return false;}Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)obj;return this.intervals.SequenceEqual(other.intervals);}
|
train
| false
|
4,114
|
public FileMode getIndexFileMode(DirCacheIterator indexIter) {final FileMode wtMode = getEntryFileMode();if (indexIter == null) {return wtMode;}final FileMode iMode = indexIter.getEntryFileMode();if (getOptions().isFileMode() && iMode != FileMode.GITLINK && iMode != FileMode.TREE) {return wtMode;}if (!getOptions().isFileMode()) {if (FileMode.REGULAR_FILE == wtMode&& FileMode.EXECUTABLE_FILE == iMode) {return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode&& FileMode.REGULAR_FILE == iMode) {return iMode;}}if (FileMode.GITLINK == iMode&& FileMode.TREE == wtMode && !getOptions().isDirNoGitLinks()) {return iMode;}if (FileMode.TREE == iMode&& FileMode.GITLINK == wtMode) {return iMode;}return wtMode;}
|
[
"public",
"FileMode",
"getIndexFileMode",
"(",
"DirCacheIterator",
"indexIter",
")",
"{",
"final",
"FileMode",
"wtMode",
"=",
"getEntryFileMode",
"(",
")",
";",
"if",
"(",
"indexIter",
"==",
"null",
")",
"{",
"return",
"wtMode",
";",
"}",
"final",
"FileMode",
"iMode",
"=",
"indexIter",
".",
"getEntryFileMode",
"(",
")",
";",
"if",
"(",
"getOptions",
"(",
")",
".",
"isFileMode",
"(",
")",
"&&",
"iMode",
"!=",
"FileMode",
".",
"GITLINK",
"&&",
"iMode",
"!=",
"FileMode",
".",
"TREE",
")",
"{",
"return",
"wtMode",
";",
"}",
"if",
"(",
"!",
"getOptions",
"(",
")",
".",
"isFileMode",
"(",
")",
")",
"{",
"if",
"(",
"FileMode",
".",
"REGULAR_FILE",
"==",
"wtMode",
"&&",
"FileMode",
".",
"EXECUTABLE_FILE",
"==",
"iMode",
")",
"{",
"return",
"iMode",
";",
"}",
"if",
"(",
"FileMode",
".",
"EXECUTABLE_FILE",
"==",
"wtMode",
"&&",
"FileMode",
".",
"REGULAR_FILE",
"==",
"iMode",
")",
"{",
"return",
"iMode",
";",
"}",
"}",
"if",
"(",
"FileMode",
".",
"GITLINK",
"==",
"iMode",
"&&",
"FileMode",
".",
"TREE",
"==",
"wtMode",
"&&",
"!",
"getOptions",
"(",
")",
".",
"isDirNoGitLinks",
"(",
")",
")",
"{",
"return",
"iMode",
";",
"}",
"if",
"(",
"FileMode",
".",
"TREE",
"==",
"iMode",
"&&",
"FileMode",
".",
"GITLINK",
"==",
"wtMode",
")",
"{",
"return",
"iMode",
";",
"}",
"return",
"wtMode",
";",
"}"
] |
public virtual FileMode GetIndexFileMode(DirCacheIterator indexIter){FileMode wtMode = EntryFileMode;if (indexIter == null){return wtMode;}if (GetOptions().IsFileMode()){return wtMode;}FileMode iMode = indexIter.EntryFileMode;if (FileMode.REGULAR_FILE == wtMode && FileMode.EXECUTABLE_FILE == iMode){return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode && FileMode.REGULAR_FILE == iMode){return iMode;}return wtMode;}
|
train
| false
|
4,115
|
public CreateScheduledActionResult createScheduledAction(CreateScheduledActionRequest request) {request = beforeClientExecution(request);return executeCreateScheduledAction(request);}
|
[
"public",
"CreateScheduledActionResult",
"createScheduledAction",
"(",
"CreateScheduledActionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateScheduledAction",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateScheduledActionResponse CreateScheduledAction(CreateScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateScheduledActionResponseUnmarshaller.Instance;return Invoke<CreateScheduledActionResponse>(request, options);}
|
train
| false
|
4,116
|
public PackConfig getConfig() {return config;}
|
[
"public",
"PackConfig",
"getConfig",
"(",
")",
"{",
"return",
"config",
";",
"}"
] |
public virtual PackConfig GetConfig(){return this._enclosing.config;}
|
train
| false
|
4,117
|
public CharBuffer put(char c) {throw new ReadOnlyBufferException();}
|
[
"public",
"CharBuffer",
"put",
"(",
"char",
"c",
")",
"{",
"throw",
"new",
"ReadOnlyBufferException",
"(",
")",
";",
"}"
] |
public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();}
|
train
| false
|
4,118
|
public DeleteDistributionRequest(String id, String ifMatch) {setId(id);setIfMatch(ifMatch);}
|
[
"public",
"DeleteDistributionRequest",
"(",
"String",
"id",
",",
"String",
"ifMatch",
")",
"{",
"setId",
"(",
"id",
")",
";",
"setIfMatch",
"(",
"ifMatch",
")",
";",
"}"
] |
public DeleteDistributionRequest(string id, string ifMatch){_id = id;_ifMatch = ifMatch;}
|
train
| false
|
4,120
|
public boolean include(TreeWalk walker) {return true;}
|
[
"public",
"boolean",
"include",
"(",
"TreeWalk",
"walker",
")",
"{",
"return",
"true",
";",
"}"
] |
public override bool Include(TreeWalk walker){return true;}
|
train
| false
|
4,121
|
public DescribeReservedDBInstancesOfferingsResult describeReservedDBInstancesOfferings() {return describeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}
|
[
"public",
"DescribeReservedDBInstancesOfferingsResult",
"describeReservedDBInstancesOfferings",
"(",
")",
"{",
"return",
"describeReservedDBInstancesOfferings",
"(",
"new",
"DescribeReservedDBInstancesOfferingsRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeReservedDBInstancesOfferingsResponse DescribeReservedDBInstancesOfferings(){return DescribeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}
|
train
| false
|
4,122
|
public ByteVector(byte[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;}
|
[
"public",
"ByteVector",
"(",
"byte",
"[",
"]",
"a",
")",
"{",
"blockSize",
"=",
"DEFAULT_BLOCK_SIZE",
";",
"array",
"=",
"a",
";",
"n",
"=",
"0",
";",
"}"
] |
public ByteVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;}
|
train
| false
|
4,123
|
public Appendable append(CharSequence csq) {return append(csq, 0, csq.length());}
|
[
"public",
"Appendable",
"append",
"(",
"CharSequence",
"csq",
")",
"{",
"return",
"append",
"(",
"csq",
",",
"0",
",",
"csq",
".",
"length",
"(",
")",
")",
";",
"}"
] |
public virtual OpenStringBuilder Append(ICharSequence csq){return Append(csq, 0, csq.Length);}
|
train
| false
|
4,124
|
public String getLookaheadName(TokenStream input) {return getTokenName(input.LA(1));}
|
[
"public",
"String",
"getLookaheadName",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"getTokenName",
"(",
"input",
".",
"LA",
"(",
"1",
")",
")",
";",
"}"
] |
public string GetLookaheadName(ITokenStream input){return GetTokenName(input.LA(1));}
|
train
| false
|
4,125
|
public static final ObjectId fromRaw(byte[] bs) {return fromRaw(bs, 0);}
|
[
"public",
"static",
"final",
"ObjectId",
"fromRaw",
"(",
"byte",
"[",
"]",
"bs",
")",
"{",
"return",
"fromRaw",
"(",
"bs",
",",
"0",
")",
";",
"}"
] |
public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);}
|
train
| false
|
4,126
|
public GutsRecord(RecordInputStream in) {field_1_left_row_gutter = in.readShort();field_2_top_col_gutter = in.readShort();field_3_row_level_max = in.readShort();field_4_col_level_max = in.readShort();}
|
[
"public",
"GutsRecord",
"(",
"RecordInputStream",
"in",
")",
"{",
"field_1_left_row_gutter",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_2_top_col_gutter",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_3_row_level_max",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"field_4_col_level_max",
"=",
"in",
".",
"readShort",
"(",
")",
";",
"}"
] |
public GutsRecord(RecordInputStream in1){field_1_left_row_gutter = in1.ReadShort();field_2_top_col_gutter = in1.ReadShort();field_3_row_level_max = in1.ReadShort();field_4_col_level_max = in1.ReadShort();}
|
train
| false
|
4,127
|
public GermanMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"GermanMinimalStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public GermanMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
4,128
|
public DescribeActiveReceiptRuleSetResult describeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDescribeActiveReceiptRuleSet(request);}
|
[
"public",
"DescribeActiveReceiptRuleSetResult",
"describeActiveReceiptRuleSet",
"(",
"DescribeActiveReceiptRuleSetRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeActiveReceiptRuleSet",
"(",
"request",
")",
";",
"}"
] |
public virtual DescribeActiveReceiptRuleSetResponse DescribeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<DescribeActiveReceiptRuleSetResponse>(request, options);}
|
train
| true
|
4,129
|
public GetGeoLocationResult getGeoLocation(GetGeoLocationRequest request) {request = beforeClientExecution(request);return executeGetGeoLocation(request);}
|
[
"public",
"GetGeoLocationResult",
"getGeoLocation",
"(",
"GetGeoLocationRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetGeoLocation",
"(",
"request",
")",
";",
"}"
] |
public virtual GetGeoLocationResponse GetGeoLocation(GetGeoLocationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGeoLocationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGeoLocationResponseUnmarshaller.Instance;return Invoke<GetGeoLocationResponse>(request, options);}
|
train
| true
|
4,130
|
public KStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
|
[
"public",
"KStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] |
public KStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
train
| false
|
4,131
|
public PublishRequest(String topicArn, String message) {setTopicArn(topicArn);setMessage(message);}
|
[
"public",
"PublishRequest",
"(",
"String",
"topicArn",
",",
"String",
"message",
")",
"{",
"setTopicArn",
"(",
"topicArn",
")",
";",
"setMessage",
"(",
"message",
")",
";",
"}"
] |
public PublishRequest(string topicArn, string message){_topicArn = topicArn;_message = message;}
|
train
| false
|
4,132
|
public void replace(int start, int limit, String text) {final int charsLen = text.length();final int newLength = shiftForReplace(start, limit, charsLen);text.getChars(0, charsLen, buffer, start);token.setLength(length = newLength);}
|
[
"public",
"void",
"replace",
"(",
"int",
"start",
",",
"int",
"limit",
",",
"String",
"text",
")",
"{",
"final",
"int",
"charsLen",
"=",
"text",
".",
"length",
"(",
")",
";",
"final",
"int",
"newLength",
"=",
"shiftForReplace",
"(",
"start",
",",
"limit",
",",
"charsLen",
")",
";",
"text",
".",
"getChars",
"(",
"0",
",",
"charsLen",
",",
"buffer",
",",
"start",
")",
";",
"token",
".",
"setLength",
"(",
"length",
"=",
"newLength",
")",
";",
"}"
] |
public void Replace(int start, int length, string text) {int charsLen = text.Length;int newLength = ShiftForReplace(start, length + start, charsLen); text.CopyTo(0, buffer, start, charsLen);token.Length = (this.length = newLength);}
|
train
| false
|
4,133
|
public DescribeInternetGatewaysResult describeInternetGateways() {return describeInternetGateways(new DescribeInternetGatewaysRequest());}
|
[
"public",
"DescribeInternetGatewaysResult",
"describeInternetGateways",
"(",
")",
"{",
"return",
"describeInternetGateways",
"(",
"new",
"DescribeInternetGatewaysRequest",
"(",
")",
")",
";",
"}"
] |
public virtual DescribeInternetGatewaysResponse DescribeInternetGateways(){return DescribeInternetGateways(new DescribeInternetGatewaysRequest());}
|
train
| false
|
4,134
|
public ListQualificationTypesResult listQualificationTypes(ListQualificationTypesRequest request) {request = beforeClientExecution(request);return executeListQualificationTypes(request);}
|
[
"public",
"ListQualificationTypesResult",
"listQualificationTypes",
"(",
"ListQualificationTypesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListQualificationTypes",
"(",
"request",
")",
";",
"}"
] |
public virtual ListQualificationTypesResponse ListQualificationTypes(ListQualificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationTypesResponseUnmarshaller.Instance;return Invoke<ListQualificationTypesResponse>(request, options);}
|
train
| true
|
4,135
|
public DetachInstancesResult detachInstances(DetachInstancesRequest request) {request = beforeClientExecution(request);return executeDetachInstances(request);}
|
[
"public",
"DetachInstancesResult",
"detachInstances",
"(",
"DetachInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDetachInstances",
"(",
"request",
")",
";",
"}"
] |
public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance;return Invoke<DetachInstancesResponse>(request, options);}
|
train
| true
|
4,136
|
public boolean include(TreeWalk walker) {final int n = walker.getTreeCount();if (n == 1) return true;final int m = walker.getRawMode(baseTree);for (int i = 1; i < n; i++)if (walker.getRawMode(i) != m || !walker.idEqual(i, baseTree))return true;return false;}
|
[
"public",
"boolean",
"include",
"(",
"TreeWalk",
"walker",
")",
"{",
"final",
"int",
"n",
"=",
"walker",
".",
"getTreeCount",
"(",
")",
";",
"if",
"(",
"n",
"==",
"1",
")",
"return",
"true",
";",
"final",
"int",
"m",
"=",
"walker",
".",
"getRawMode",
"(",
"baseTree",
")",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"n",
";",
"i",
"++",
")",
"if",
"(",
"walker",
".",
"getRawMode",
"(",
"i",
")",
"!=",
"m",
"||",
"!",
"walker",
".",
"idEqual",
"(",
"i",
",",
"baseTree",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}"
] |
public override bool Include(TreeWalk walker){int n = walker.TreeCount;if (n == 1){return true;}int m = walker.GetRawMode(0);for (int i = 1; i < n; i++){if (walker.GetRawMode(i) != m || !walker.IdEqual(i, 0)){return true;}}return false;}
|
train
| false
|
4,137
|
public List<MatchingDocs> getMatchingDocs() {List<MatchingDocs> matchingDocs = super.getMatchingDocs();if (totalHits == NOT_CALCULATED) {totalHits = 0;for (MatchingDocs md : matchingDocs) {totalHits += md.totalHits;}}if (totalHits <= sampleSize) {return matchingDocs;}if (sampledDocs == null) {samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = createSampledDocs(matchingDocs);}return sampledDocs;}
|
[
"public",
"List",
"<",
"MatchingDocs",
">",
"getMatchingDocs",
"(",
")",
"{",
"List",
"<",
"MatchingDocs",
">",
"matchingDocs",
"=",
"super",
".",
"getMatchingDocs",
"(",
")",
";",
"if",
"(",
"totalHits",
"==",
"NOT_CALCULATED",
")",
"{",
"totalHits",
"=",
"0",
";",
"for",
"(",
"MatchingDocs",
"md",
":",
"matchingDocs",
")",
"{",
"totalHits",
"+=",
"md",
".",
"totalHits",
";",
"}",
"}",
"if",
"(",
"totalHits",
"<=",
"sampleSize",
")",
"{",
"return",
"matchingDocs",
";",
"}",
"if",
"(",
"sampledDocs",
"==",
"null",
")",
"{",
"samplingRate",
"=",
"(",
"1.0",
"*",
"sampleSize",
")",
"/",
"totalHits",
";",
"sampledDocs",
"=",
"createSampledDocs",
"(",
"matchingDocs",
")",
";",
"}",
"return",
"sampledDocs",
";",
"}"
] |
public override IList<MatchingDocs> GetMatchingDocs(){IList<MatchingDocs> matchingDocs = base.GetMatchingDocs();if (totalHits == NOT_CALCULATED){totalHits = 0;foreach (MatchingDocs md in matchingDocs){totalHits += md.TotalHits;}}if (totalHits <= sampleSize){return matchingDocs;}if (sampledDocs == null){samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = CreateSampledDocs(matchingDocs);}return sampledDocs;}
|
train
| false
|
4,138
|
public CreateDataSourceFromS3Result createDataSourceFromS3(CreateDataSourceFromS3Request request) {request = beforeClientExecution(request);return executeCreateDataSourceFromS3(request);}
|
[
"public",
"CreateDataSourceFromS3Result",
"createDataSourceFromS3",
"(",
"CreateDataSourceFromS3Request",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateDataSourceFromS3",
"(",
"request",
")",
";",
"}"
] |
public virtual CreateDataSourceFromS3Response CreateDataSourceFromS3(CreateDataSourceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromS3ResponseUnmarshaller.Instance;return Invoke<CreateDataSourceFromS3Response>(request, options);}
|
train
| true
|
4,139
|
public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateFleetMetadata(request);}
|
[
"public",
"UpdateFleetMetadataResult",
"updateFleetMetadata",
"(",
"UpdateFleetMetadataRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateFleetMetadata",
"(",
"request",
")",
";",
"}"
] |
public virtual UpdateFleetMetadataResponse UpdateFleetMetadata(UpdateFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetMetadataResponseUnmarshaller.Instance;return Invoke<UpdateFleetMetadataResponse>(request, options);}
|
train
| true
|
4,140
|
public ObjectId getNewObjectId() {return newValue;}
|
[
"public",
"ObjectId",
"getNewObjectId",
"(",
")",
"{",
"return",
"newValue",
";",
"}"
] |
public virtual ObjectId GetNewObjectId(){return newValue;}
|
train
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.