id_within_dataset
int64 0
10.3k
| snippet
stringlengths 29
1.4k
| tokens
sequencelengths 10
314
| cs
stringlengths 28
1.38k
| split_within_dataset
stringclasses 1
value | is_duplicated
bool 2
classes |
---|---|---|---|---|---|
331 | public String toString() {return String.format("pushMode(%d)", mode);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"String",
".",
"format",
"(",
"\"pushMode(%d)\"",
",",
"mode",
")",
";",
"}"
] | public override string ToString(){return string.Format("pushMode({0})", mode);}
| train | false |
332 | public CreateBranchCommand setStartPoint(String startPoint) {checkCallable();this.startPoint = startPoint;this.startCommit = null;return this;}
| [
"public",
"CreateBranchCommand",
"setStartPoint",
"(",
"String",
"startPoint",
")",
"{",
"checkCallable",
"(",
")",
";",
"this",
".",
"startPoint",
"=",
"startPoint",
";",
"this",
".",
"startCommit",
"=",
"null",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Api.CreateBranchCommand SetStartPoint(string startPoint){CheckCallable();this.startPoint = startPoint;this.startCommit = null;return this;}
| train | false |
333 | public DBInstance stopDBInstance(StopDBInstanceRequest request) {request = beforeClientExecution(request);return executeStopDBInstance(request);}
| [
"public",
"DBInstance",
"stopDBInstance",
"(",
"StopDBInstanceRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeStopDBInstance",
"(",
"request",
")",
";",
"}"
] | public virtual StopDBInstanceResponse StopDBInstance(StopDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDBInstanceResponseUnmarshaller.Instance;return Invoke<StopDBInstanceResponse>(request, options);}
| train | true |
334 | public SuggestWordQueue(int size, Comparator<SuggestWord> comparator){super(size);this.comparator = comparator;}
| [
"public",
"SuggestWordQueue",
"(",
"int",
"size",
",",
"Comparator",
"<",
"SuggestWord",
">",
"comparator",
")",
"{",
"super",
"(",
"size",
")",
";",
"this",
".",
"comparator",
"=",
"comparator",
";",
"}"
] | public SuggestWordQueue(int size, IComparer<SuggestWord> comparer): base(size){this.comparer = comparer;}
| train | false |
335 | public LBCookieStickinessPolicy(String policyName, Long cookieExpirationPeriod) {setPolicyName(policyName);setCookieExpirationPeriod(cookieExpirationPeriod);}
| [
"public",
"LBCookieStickinessPolicy",
"(",
"String",
"policyName",
",",
"Long",
"cookieExpirationPeriod",
")",
"{",
"setPolicyName",
"(",
"policyName",
")",
";",
"setCookieExpirationPeriod",
"(",
"cookieExpirationPeriod",
")",
";",
"}"
] | public LBCookieStickinessPolicy(string policyName, long cookieExpirationPeriod){_policyName = policyName;_cookieExpirationPeriod = cookieExpirationPeriod;}
| train | false |
336 | public SheetRangeEvaluator(int firstSheetIndex, int lastSheetIndex, SheetRefEvaluator[] sheetEvaluators) {if (firstSheetIndex < 0) {throw new IllegalArgumentException("Invalid firstSheetIndex: " + firstSheetIndex + ".");}if (lastSheetIndex < firstSheetIndex) {throw new IllegalArgumentException("Invalid lastSheetIndex: " + lastSheetIndex + " for firstSheetIndex: " + firstSheetIndex + ".");}_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;_sheetEvaluators = sheetEvaluators.clone();}
| [
"public",
"SheetRangeEvaluator",
"(",
"int",
"firstSheetIndex",
",",
"int",
"lastSheetIndex",
",",
"SheetRefEvaluator",
"[",
"]",
"sheetEvaluators",
")",
"{",
"if",
"(",
"firstSheetIndex",
"<",
"0",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Invalid firstSheetIndex: \"",
"+",
"firstSheetIndex",
"+",
"\".\"",
")",
";",
"}",
"if",
"(",
"lastSheetIndex",
"<",
"firstSheetIndex",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Invalid lastSheetIndex: \"",
"+",
"lastSheetIndex",
"+",
"\" for firstSheetIndex: \"",
"+",
"firstSheetIndex",
"+",
"\".\"",
")",
";",
"}",
"_firstSheetIndex",
"=",
"firstSheetIndex",
";",
"_lastSheetIndex",
"=",
"lastSheetIndex",
";",
"_sheetEvaluators",
"=",
"sheetEvaluators",
".",
"clone",
"(",
")",
";",
"}"
] | public SheetRangeEvaluator(int firstSheetIndex, int lastSheetIndex, SheetRefEvaluator[] sheetEvaluators){if (firstSheetIndex < 0){throw new ArgumentException("Invalid firstSheetIndex: " + firstSheetIndex + ".");}if (lastSheetIndex < firstSheetIndex){throw new ArgumentException("Invalid lastSheetIndex: " + lastSheetIndex + " for firstSheetIndex: " + firstSheetIndex + ".");}_firstSheetIndex = firstSheetIndex;_lastSheetIndex = lastSheetIndex;_sheetEvaluators = sheetEvaluators;}
| train | false |
337 | public RevokeTokenRequest() {super("OnsMqtt", "2019-12-11", "RevokeToken", "onsmqtt");setMethod(MethodType.POST);}
| [
"public",
"RevokeTokenRequest",
"(",
")",
"{",
"super",
"(",
"\"OnsMqtt\"",
",",
"\"2019-12-11\"",
",",
"\"RevokeToken\"",
",",
"\"onsmqtt\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public RevokeTokenRequest(): base("OnsMqtt", "2019-12-11", "RevokeToken", "onsmqtt", "openAPI"){Method = MethodType.POST;}
| train | false |
338 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {ValueEval ve = OperandResolver.getSingleValue(arg0, srcRowIndex, srcColumnIndex);double result = OperandResolver.coerceValueToDouble(ve);if (Double.isNaN(result) || Double.isInfinite(result)) {throw new EvaluationException(ErrorEval.NUM_ERROR);}if (arg1 instanceof RefListEval) {return eval(result, ((RefListEval)arg1), true);}final AreaEval aeRange = convertRangeArg(arg1);return eval(result, aeRange, true);} catch (EvaluationException e) {return e.getErrorEval();}}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
",",
"ValueEval",
"arg1",
")",
"{",
"try",
"{",
"ValueEval",
"ve",
"=",
"OperandResolver",
".",
"getSingleValue",
"(",
"arg0",
",",
"srcRowIndex",
",",
"srcColumnIndex",
")",
";",
"double",
"result",
"=",
"OperandResolver",
".",
"coerceValueToDouble",
"(",
"ve",
")",
";",
"if",
"(",
"Double",
".",
"isNaN",
"(",
"result",
")",
"||",
"Double",
".",
"isInfinite",
"(",
"result",
")",
")",
"{",
"throw",
"new",
"EvaluationException",
"(",
"ErrorEval",
".",
"NUM_ERROR",
")",
";",
"}",
"if",
"(",
"arg1",
"instanceof",
"RefListEval",
")",
"{",
"return",
"eval",
"(",
"result",
",",
"(",
"(",
"RefListEval",
")",
"arg1",
")",
",",
"true",
")",
";",
"}",
"final",
"AreaEval",
"aeRange",
"=",
"convertRangeArg",
"(",
"arg1",
")",
";",
"return",
"eval",
"(",
"result",
",",
"aeRange",
",",
"true",
")",
";",
"}",
"catch",
"(",
"EvaluationException",
"e",
")",
"{",
"return",
"e",
".",
"getErrorEval",
"(",
")",
";",
"}",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){AreaEval aeRange;double result;try{ValueEval ve = OperandResolver.GetSingleValue(arg0, srcRowIndex, srcColumnIndex);result = OperandResolver.CoerceValueToDouble(ve);if (Double.IsNaN(result) || Double.IsInfinity(result)){throw new EvaluationException(ErrorEval.NUM_ERROR);}aeRange = ConvertRangeArg(arg1);}catch (EvaluationException e){return e.GetErrorEval();}return eval(srcRowIndex, srcColumnIndex, result, aeRange, true);}
| train | false |
339 | public String toFormulaString() {return "";}
| [
"public",
"String",
"toFormulaString",
"(",
")",
"{",
"return",
"\"\"",
";",
"}"
] | public override String ToFormulaString(){return "";}
| train | false |
340 | public byte readByte() throws IOException {if (bufferPos == bufferSize) {refill();}assert bufferPos == buffer.position() : "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position();bufferPos++;return buffer.get();}
| [
"public",
"byte",
"readByte",
"(",
")",
"throws",
"IOException",
"{",
"if",
"(",
"bufferPos",
"==",
"bufferSize",
")",
"{",
"refill",
"(",
")",
";",
"}",
"assert",
"bufferPos",
"==",
"buffer",
".",
"position",
"(",
")",
":",
"\"bufferPos=\"",
"+",
"bufferPos",
"+",
"\" vs buffer.position()=\"",
"+",
"buffer",
".",
"position",
"(",
")",
";",
"bufferPos",
"++",
";",
"return",
"buffer",
".",
"get",
"(",
")",
";",
"}"
] | public sbyte readByte() throws IOException{if (bufferPos == bufferSize){refill();}Debug.Assert(bufferPos == buffer.position(), "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position());bufferPos++;return buffer.get();}
| train | false |
341 | public ListTargetsByRuleResult listTargetsByRule(ListTargetsByRuleRequest request) {request = beforeClientExecution(request);return executeListTargetsByRule(request);}
| [
"public",
"ListTargetsByRuleResult",
"listTargetsByRule",
"(",
"ListTargetsByRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTargetsByRule",
"(",
"request",
")",
";",
"}"
] | public virtual ListTargetsByRuleResponse ListTargetsByRule(ListTargetsByRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTargetsByRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTargetsByRuleResponseUnmarshaller.Instance;return Invoke<ListTargetsByRuleResponse>(request, options);}
| train | true |
342 | public DisassociateQualificationFromWorkerResult disassociateQualificationFromWorker(DisassociateQualificationFromWorkerRequest request) {request = beforeClientExecution(request);return executeDisassociateQualificationFromWorker(request);}
| [
"public",
"DisassociateQualificationFromWorkerResult",
"disassociateQualificationFromWorker",
"(",
"DisassociateQualificationFromWorkerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDisassociateQualificationFromWorker",
"(",
"request",
")",
";",
"}"
] | public virtual DisassociateQualificationFromWorkerResponse DisassociateQualificationFromWorker(DisassociateQualificationFromWorkerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateQualificationFromWorkerRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateQualificationFromWorkerResponseUnmarshaller.Instance;return Invoke<DisassociateQualificationFromWorkerResponse>(request, options);}
| train | true |
343 | public boolean equals(Object obj) {if (this == obj) return true;if (obj == null) return false;if (getClass() != obj.getClass()) return false;CompiledAutomaton other = (CompiledAutomaton) obj;if (type != other.type) return false;if (type == AUTOMATON_TYPE.SINGLE) {if (!term.equals(other.term)) return false;} else if (type == AUTOMATON_TYPE.NORMAL) {if (!runAutomaton.equals(other.runAutomaton)) return false;}return true;}
| [
"public",
"boolean",
"equals",
"(",
"Object",
"obj",
")",
"{",
"if",
"(",
"this",
"==",
"obj",
")",
"return",
"true",
";",
"if",
"(",
"obj",
"==",
"null",
")",
"return",
"false",
";",
"if",
"(",
"getClass",
"(",
")",
"!=",
"obj",
".",
"getClass",
"(",
")",
")",
"return",
"false",
";",
"CompiledAutomaton",
"other",
"=",
"(",
"CompiledAutomaton",
")",
"obj",
";",
"if",
"(",
"type",
"!=",
"other",
".",
"type",
")",
"return",
"false",
";",
"if",
"(",
"type",
"==",
"AUTOMATON_TYPE",
".",
"SINGLE",
")",
"{",
"if",
"(",
"!",
"term",
".",
"equals",
"(",
"other",
".",
"term",
")",
")",
"return",
"false",
";",
"}",
"else",
"if",
"(",
"type",
"==",
"AUTOMATON_TYPE",
".",
"NORMAL",
")",
"{",
"if",
"(",
"!",
"runAutomaton",
".",
"equals",
"(",
"other",
".",
"runAutomaton",
")",
")",
"return",
"false",
";",
"}",
"return",
"true",
";",
"}"
] | public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (this.GetType() != obj.GetType()){return false;}CompiledAutomaton other = (CompiledAutomaton)obj;if (Type != other.Type){return false;}if (Type == AUTOMATON_TYPE.SINGLE || Type == AUTOMATON_TYPE.PREFIX){if (!Term.Equals(other.Term)){return false;}}else if (Type == AUTOMATON_TYPE.NORMAL){if (!RunAutomaton.Equals(other.RunAutomaton)){return false;}}return true;}
| train | false |
344 | public static CharFilterFactory forName(String name, Map<String,String> args) {return loader.newInstance(name, args);}
| [
"public",
"static",
"CharFilterFactory",
"forName",
"(",
"String",
"name",
",",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"return",
"loader",
".",
"newInstance",
"(",
"name",
",",
"args",
")",
";",
"}"
] | public static CharFilterFactory ForName(string name, IDictionary<string, string> args){return loader.NewInstance(name, args);}
| train | false |
345 | public String toString() {String[] units = { "bytes", "KiB", "MiB", "GiB" };long sz = getIndexSize();int u = 0;while (1024 <= sz && u < units.length - 1) {int rem = (int) (sz % 1024);sz /= 1024;if (rem != 0)sz++;u++;}return "DeltaIndex[" + sz + " " + units[u] + "]";}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"String",
"[",
"]",
"units",
"=",
"{",
"\"bytes\"",
",",
"\"KiB\"",
",",
"\"MiB\"",
",",
"\"GiB\"",
"}",
";",
"long",
"sz",
"=",
"getIndexSize",
"(",
")",
";",
"int",
"u",
"=",
"0",
";",
"while",
"(",
"1024",
"<=",
"sz",
"&&",
"u",
"<",
"units",
".",
"length",
"-",
"1",
")",
"{",
"int",
"rem",
"=",
"(",
"int",
")",
"(",
"sz",
"%",
"1024",
")",
";",
"sz",
"/=",
"1024",
";",
"if",
"(",
"rem",
"!=",
"0",
")",
"sz",
"++",
";",
"u",
"++",
";",
"}",
"return",
"\"DeltaIndex[\"",
"+",
"sz",
"+",
"\" \"",
"+",
"units",
"[",
"u",
"]",
"+",
"\"]\"",
";",
"}"
] | public override string ToString(){string[] units = new string[] { "bytes", "KiB", "MiB", "GiB" };long sz = GetIndexSize();int u = 0;while (1024 <= sz && u < units.Length - 1){int rem = (int)(sz % 1024);sz /= 1024;if (rem != 0){sz++;}u++;}return "DeltaIndex[" + sz + " " + units[u] + "]";}
| train | false |
346 | public SimilarityConfig build() {return new SimilarityConfig(this);}
| [
"public",
"SimilarityConfig",
"build",
"(",
")",
"{",
"return",
"new",
"SimilarityConfig",
"(",
"this",
")",
";",
"}"
] | public CompositeReaderContext Build(){return (CompositeReaderContext)Build(null, reader, 0, 0);}
| train | false |
347 | public void mark(int readLimit) throws IOException {throw new IOException();}
| [
"public",
"void",
"mark",
"(",
"int",
"readLimit",
")",
"throws",
"IOException",
"{",
"throw",
"new",
"IOException",
"(",
")",
";",
"}"
] | public virtual void mark(int readLimit){throw new System.IO.IOException();}
| train | false |
348 | public void collect(int doc) throws IOException {final long time = clock.get();if (time - timeout > 0L) {if (greedy) {in.collect(doc);}throw new TimeExceededException( timeout-t0, time-t0, docBase + doc );}in.collect(doc);}
| [
"public",
"void",
"collect",
"(",
"int",
"doc",
")",
"throws",
"IOException",
"{",
"final",
"long",
"time",
"=",
"clock",
".",
"get",
"(",
")",
";",
"if",
"(",
"time",
"-",
"timeout",
">",
"0L",
")",
"{",
"if",
"(",
"greedy",
")",
"{",
"in",
".",
"collect",
"(",
"doc",
")",
";",
"}",
"throw",
"new",
"TimeExceededException",
"(",
"timeout",
"-",
"t0",
",",
"time",
"-",
"t0",
",",
"docBase",
"+",
"doc",
")",
";",
"}",
"in",
".",
"collect",
"(",
"doc",
")",
";",
"}"
] | public virtual void Collect(int doc){long time = clock.Get();if (timeout < time){if (greedy){collector.Collect(doc);}throw new TimeExceededException(timeout - t0, time - t0, docBase + doc);}collector.Collect(doc);}
| train | false |
349 | public LocalFile(File directory, int inCoreLimit) {super(inCoreLimit);this.directory = directory;}
| [
"public",
"LocalFile",
"(",
"File",
"directory",
",",
"int",
"inCoreLimit",
")",
"{",
"super",
"(",
"inCoreLimit",
")",
";",
"this",
".",
"directory",
"=",
"directory",
";",
"}"
] | public LocalFile(FilePath directory, int inCoreLimit) : base(inCoreLimit){this.directory = directory;}
| train | false |
350 | @Override public E remove(int index) {Object[] a = array;int s = size;if (index >= s) {throwIndexOutOfBoundsException(index, s);}@SuppressWarnings("unchecked") E result = (E) a[index];System.arraycopy(a, index + 1, a, index, --s - index);a[s] = null; size = s;modCount++;return result;}
| [
"@",
"Override",
"public",
"E",
"remove",
"(",
"int",
"index",
")",
"{",
"Object",
"[",
"]",
"a",
"=",
"array",
";",
"int",
"s",
"=",
"size",
";",
"if",
"(",
"index",
">=",
"s",
")",
"{",
"throwIndexOutOfBoundsException",
"(",
"index",
",",
"s",
")",
";",
"}",
"@",
"SuppressWarnings",
"(",
"\"unchecked\"",
")",
"E",
"result",
"=",
"(",
"E",
")",
"a",
"[",
"index",
"]",
";",
"System",
".",
"arraycopy",
"(",
"a",
",",
"index",
"+",
"1",
",",
"a",
",",
"index",
",",
"--",
"s",
"-",
"index",
")",
";",
"a",
"[",
"s",
"]",
"=",
"null",
";",
"size",
"=",
"s",
";",
"modCount",
"++",
";",
"return",
"result",
";",
"}"
] | public override E remove(int index){object[] a = array;int s = _size;if (index >= s){throwIndexOutOfBoundsException(index, s);}E result = (E)a[index];System.Array.Copy(a, index + 1, a, index, --s - index);a[s] = null;_size = s;modCount++;return result;}
| train | false |
351 | public RequestUploadCredentialsResult requestUploadCredentials(RequestUploadCredentialsRequest request) {request = beforeClientExecution(request);return executeRequestUploadCredentials(request);}
| [
"public",
"RequestUploadCredentialsResult",
"requestUploadCredentials",
"(",
"RequestUploadCredentialsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRequestUploadCredentials",
"(",
"request",
")",
";",
"}"
] | public virtual RequestUploadCredentialsResponse RequestUploadCredentials(RequestUploadCredentialsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestUploadCredentialsRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestUploadCredentialsResponseUnmarshaller.Instance;return Invoke<RequestUploadCredentialsResponse>(request, options);}
| train | true |
352 | public void copyTo(OutputStream out) throws MissingObjectException,IOException {if (isLarge()) {try (ObjectStream in = openStream()) {final long sz = in.getSize();byte[] tmp = new byte[8192];long copied = 0;while (copied < sz) {int n = in.read(tmp);if (n < 0)throw new EOFException();out.write(tmp, 0, n);copied += n;}if (0 <= in.read())throw new EOFException();}} else {out.write(getCachedBytes());}}
| [
"public",
"void",
"copyTo",
"(",
"OutputStream",
"out",
")",
"throws",
"MissingObjectException",
",",
"IOException",
"{",
"if",
"(",
"isLarge",
"(",
")",
")",
"{",
"try",
"(",
"ObjectStream",
"in",
"=",
"openStream",
"(",
")",
")",
"{",
"final",
"long",
"sz",
"=",
"in",
".",
"getSize",
"(",
")",
";",
"byte",
"[",
"]",
"tmp",
"=",
"new",
"byte",
"[",
"8192",
"]",
";",
"long",
"copied",
"=",
"0",
";",
"while",
"(",
"copied",
"<",
"sz",
")",
"{",
"int",
"n",
"=",
"in",
".",
"read",
"(",
"tmp",
")",
";",
"if",
"(",
"n",
"<",
"0",
")",
"throw",
"new",
"EOFException",
"(",
")",
";",
"out",
".",
"write",
"(",
"tmp",
",",
"0",
",",
"n",
")",
";",
"copied",
"+=",
"n",
";",
"}",
"if",
"(",
"0",
"<=",
"in",
".",
"read",
"(",
")",
")",
"throw",
"new",
"EOFException",
"(",
")",
";",
"}",
"}",
"else",
"{",
"out",
".",
"write",
"(",
"getCachedBytes",
"(",
")",
")",
";",
"}",
"}"
] | public virtual void CopyTo(OutputStream @out){if (IsLarge()){ObjectStream @in = OpenStream();try{long sz = @in.GetSize();byte[] tmp = new byte[8192];long copied = 0;while (copied < sz){int n = @in.Read(tmp);if (n < 0){throw new EOFException();}@out.Write(tmp, 0, n);copied += n;}if (0 <= @in.Read()){throw new EOFException();}}finally{@in.Close();}}else{@out.Write(GetCachedBytes());}}
| train | false |
354 | public RevFilter negate() {return a;}
| [
"public",
"RevFilter",
"negate",
"(",
")",
"{",
"return",
"a",
";",
"}"
] | public override RevFilter Negate(){return a;}
| train | false |
355 | public DescribeVpcsResult describeVpcs(DescribeVpcsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcs(request);}
| [
"public",
"DescribeVpcsResult",
"describeVpcs",
"(",
"DescribeVpcsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeVpcs",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeVpcsResponse DescribeVpcs(DescribeVpcsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcsResponseUnmarshaller.Instance;return Invoke<DescribeVpcsResponse>(request, options);}
| train | true |
356 | public UpdateGameSessionQueueResult updateGameSessionQueue(UpdateGameSessionQueueRequest request) {request = beforeClientExecution(request);return executeUpdateGameSessionQueue(request);}
| [
"public",
"UpdateGameSessionQueueResult",
"updateGameSessionQueue",
"(",
"UpdateGameSessionQueueRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateGameSessionQueue",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateGameSessionQueueResponse UpdateGameSessionQueue(UpdateGameSessionQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameSessionQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameSessionQueueResponseUnmarshaller.Instance;return Invoke<UpdateGameSessionQueueResponse>(request, options);}
| train | true |
357 | public String getTitle() {return title;}
| [
"public",
"String",
"getTitle",
"(",
")",
"{",
"return",
"title",
";",
"}"
] | public String GetTitle(){return title;}
| train | false |
358 | public final void setNewHeads(List<Head> newHeads) {if (this.newHeads != null)throw new IllegalStateException(JGitText.get().propertyIsAlreadyNonNull);this.newHeads = newHeads;}
| [
"public",
"final",
"void",
"setNewHeads",
"(",
"List",
"<",
"Head",
">",
"newHeads",
")",
"{",
"if",
"(",
"this",
".",
"newHeads",
"!=",
"null",
")",
"throw",
"new",
"IllegalStateException",
"(",
"JGitText",
".",
"get",
"(",
")",
".",
"propertyIsAlreadyNonNull",
")",
";",
"this",
".",
"newHeads",
"=",
"newHeads",
";",
"}"
] | public void SetNewHeads(IList<Head> newHeads){if (this.newHeads != null){throw new InvalidOperationException(JGitText.Get().propertyIsAlreadyNonNull);}this.newHeads = newHeads;}
| train | false |
359 | public ObjectId getExpectedOldObjectId() {return expectedOldObjectId;}
| [
"public",
"ObjectId",
"getExpectedOldObjectId",
"(",
")",
"{",
"return",
"expectedOldObjectId",
";",
"}"
] | public virtual ObjectId GetExpectedOldObjectId(){return expectedOldObjectId;}
| train | false |
360 | public GetRecordsResult getRecords(GetRecordsRequest request) {request = beforeClientExecution(request);return executeGetRecords(request);}
| [
"public",
"GetRecordsResult",
"getRecords",
"(",
"GetRecordsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetRecords",
"(",
"request",
")",
";",
"}"
] | public virtual GetRecordsResponse GetRecords(GetRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecordsResponseUnmarshaller.Instance;return Invoke<GetRecordsResponse>(request, options);}
| train | true |
361 | public Deleted3DPxg(int externalWorkbookNumber, String sheetName) {this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;}
| [
"public",
"Deleted3DPxg",
"(",
"int",
"externalWorkbookNumber",
",",
"String",
"sheetName",
")",
"{",
"this",
".",
"externalWorkbookNumber",
"=",
"externalWorkbookNumber",
";",
"this",
".",
"sheetName",
"=",
"sheetName",
";",
"}"
] | public Deleted3DPxg(int externalWorkbookNumber, String sheetName){this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;}
| train | false |
362 | public void execute(Lexer lexer) {lexer.skip();}
| [
"public",
"void",
"execute",
"(",
"Lexer",
"lexer",
")",
"{",
"lexer",
".",
"skip",
"(",
")",
";",
"}"
] | public void Execute(Lexer lexer){lexer.Skip();}
| train | false |
363 | public DescribeScheduledInstancesResult describeScheduledInstances(DescribeScheduledInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeScheduledInstances(request);}
| [
"public",
"DescribeScheduledInstancesResult",
"describeScheduledInstances",
"(",
"DescribeScheduledInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDescribeScheduledInstances",
"(",
"request",
")",
";",
"}"
] | public virtual DescribeScheduledInstancesResponse DescribeScheduledInstances(DescribeScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScheduledInstancesResponseUnmarshaller.Instance;return Invoke<DescribeScheduledInstancesResponse>(request, options);}
| train | true |
364 | public MultiFields(Fields[] subs, ReaderSlice[] subSlices) {this.subs = subs;this.subSlices = subSlices;}
| [
"public",
"MultiFields",
"(",
"Fields",
"[",
"]",
"subs",
",",
"ReaderSlice",
"[",
"]",
"subSlices",
")",
"{",
"this",
".",
"subs",
"=",
"subs",
";",
"this",
".",
"subSlices",
"=",
"subSlices",
";",
"}"
] | public MultiFields(Fields[] subs, ReaderSlice[] subSlices){this.subs = subs;this.subSlices = subSlices;}
| train | false |
365 | public int peekNextSid() {if(!hasNext()) {return -1;}return _list.get(_nextIndex).getSid();}
| [
"public",
"int",
"peekNextSid",
"(",
")",
"{",
"if",
"(",
"!",
"hasNext",
"(",
")",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"_list",
".",
"get",
"(",
"_nextIndex",
")",
".",
"getSid",
"(",
")",
";",
"}"
] | public int PeekNextSid(){if (!HasNext()){return -1;}return ((Record)_list[_nextIndex]).Sid;}
| train | false |
366 | public ConfigureAgentResult configureAgent(ConfigureAgentRequest request) {request = beforeClientExecution(request);return executeConfigureAgent(request);}
| [
"public",
"ConfigureAgentResult",
"configureAgent",
"(",
"ConfigureAgentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeConfigureAgent",
"(",
"request",
")",
";",
"}"
] | public virtual ConfigureAgentResponse ConfigureAgent(ConfigureAgentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureAgentRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureAgentResponseUnmarshaller.Instance;return Invoke<ConfigureAgentResponse>(request, options);}
| train | false |
367 | public GetStreamingDistributionResult getStreamingDistribution(GetStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeGetStreamingDistribution(request);}
| [
"public",
"GetStreamingDistributionResult",
"getStreamingDistribution",
"(",
"GetStreamingDistributionRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetStreamingDistribution",
"(",
"request",
")",
";",
"}"
] | public virtual GetStreamingDistributionResponse GetStreamingDistribution(GetStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStreamingDistributionResponseUnmarshaller.Instance;return Invoke<GetStreamingDistributionResponse>(request, options);}
| train | true |
368 | public ListTrialComponentsResult listTrialComponents(ListTrialComponentsRequest request) {request = beforeClientExecution(request);return executeListTrialComponents(request);}
| [
"public",
"ListTrialComponentsResult",
"listTrialComponents",
"(",
"ListTrialComponentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTrialComponents",
"(",
"request",
")",
";",
"}"
] | public virtual ListTrialComponentsResponse ListTrialComponents(ListTrialComponentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrialComponentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrialComponentsResponseUnmarshaller.Instance;return Invoke<ListTrialComponentsResponse>(request, options);}
| train | false |
370 | public int compareNormalised(NormalisedDecimal other) {int cmp = _relativeDecimalExponent - other._relativeDecimalExponent;if (cmp != 0) {return cmp;}if (_wholePart > other._wholePart) {return 1;}if (_wholePart < other._wholePart) {return -1;}return _fractionalPart - other._fractionalPart;}
| [
"public",
"int",
"compareNormalised",
"(",
"NormalisedDecimal",
"other",
")",
"{",
"int",
"cmp",
"=",
"_relativeDecimalExponent",
"-",
"other",
".",
"_relativeDecimalExponent",
";",
"if",
"(",
"cmp",
"!=",
"0",
")",
"{",
"return",
"cmp",
";",
"}",
"if",
"(",
"_wholePart",
">",
"other",
".",
"_wholePart",
")",
"{",
"return",
"1",
";",
"}",
"if",
"(",
"_wholePart",
"<",
"other",
".",
"_wholePart",
")",
"{",
"return",
"-",
"1",
";",
"}",
"return",
"_fractionalPart",
"-",
"other",
".",
"_fractionalPart",
";",
"}"
] | public int CompareNormalised(NormalisedDecimal other){int cmp = _relativeDecimalExponent - other._relativeDecimalExponent;if (cmp != 0){return cmp;}if (_wholePart > other._wholePart){return 1;}if (_wholePart < other._wholePart){return -1;}return _fractionalPart - other._fractionalPart;}
| train | false |
371 | public TokenStream create(TokenStream input) {return new JapaneseKatakanaStemFilter(input, minimumLength);}
| [
"public",
"TokenStream",
"create",
"(",
"TokenStream",
"input",
")",
"{",
"return",
"new",
"JapaneseKatakanaStemFilter",
"(",
"input",
",",
"minimumLength",
")",
";",
"}"
] | public override TokenStream Create(TokenStream input){return new JapaneseKatakanaStemFilter(input, minimumLength);}
| train | false |
372 | public EnableAvailabilityZonesForLoadBalancerResult enableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest request) {request = beforeClientExecution(request);return executeEnableAvailabilityZonesForLoadBalancer(request);}
| [
"public",
"EnableAvailabilityZonesForLoadBalancerResult",
"enableAvailabilityZonesForLoadBalancer",
"(",
"EnableAvailabilityZonesForLoadBalancerRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeEnableAvailabilityZonesForLoadBalancer",
"(",
"request",
")",
";",
"}"
] | public virtual EnableAvailabilityZonesForLoadBalancerResponse EnableAvailabilityZonesForLoadBalancer(EnableAvailabilityZonesForLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAvailabilityZonesForLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAvailabilityZonesForLoadBalancerResponseUnmarshaller.Instance;return Invoke<EnableAvailabilityZonesForLoadBalancerResponse>(request, options);}
| train | true |
373 | public UpdateEnvironmentResult updateEnvironment(UpdateEnvironmentRequest request) {request = beforeClientExecution(request);return executeUpdateEnvironment(request);}
| [
"public",
"UpdateEnvironmentResult",
"updateEnvironment",
"(",
"UpdateEnvironmentRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeUpdateEnvironment",
"(",
"request",
")",
";",
"}"
] | public virtual UpdateEnvironmentResponse UpdateEnvironment(UpdateEnvironmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEnvironmentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEnvironmentResponseUnmarshaller.Instance;return Invoke<UpdateEnvironmentResponse>(request, options);}
| train | true |
374 | public ListTagsForDomainResult listTagsForDomain(ListTagsForDomainRequest request) {request = beforeClientExecution(request);return executeListTagsForDomain(request);}
| [
"public",
"ListTagsForDomainResult",
"listTagsForDomain",
"(",
"ListTagsForDomainRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListTagsForDomain",
"(",
"request",
")",
";",
"}"
] | public virtual ListTagsForDomainResponse ListTagsForDomain(ListTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForDomainResponseUnmarshaller.Instance;return Invoke<ListTagsForDomainResponse>(request, options);}
| train | true |
375 | public static double log(double base, double x) {return Math.log(x) / Math.log(base);}
| [
"public",
"static",
"double",
"log",
"(",
"double",
"base",
",",
"double",
"x",
")",
"{",
"return",
"Math",
".",
"log",
"(",
"x",
")",
"/",
"Math",
".",
"log",
"(",
"base",
")",
";",
"}"
] | public static double Log(double @base, double x){return Math.Log(x) / Math.Log(@base);}
| train | false |
376 | public final void writeBoolean(boolean val) throws IOException {out.write(val ? 1 : 0);written++;}
| [
"public",
"final",
"void",
"writeBoolean",
"(",
"boolean",
"val",
")",
"throws",
"IOException",
"{",
"out",
".",
"write",
"(",
"val",
"?",
"1",
":",
"0",
")",
";",
"written",
"++",
";",
"}"
] | public virtual void writeBoolean(bool val){throw new System.NotImplementedException();}
| train | false |
378 | public DescribeVirtualGatewaysResult describeVirtualGateways() {return describeVirtualGateways(new DescribeVirtualGatewaysRequest());}
| [
"public",
"DescribeVirtualGatewaysResult",
"describeVirtualGateways",
"(",
")",
"{",
"return",
"describeVirtualGateways",
"(",
"new",
"DescribeVirtualGatewaysRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeVirtualGatewaysResponse DescribeVirtualGateways(){return DescribeVirtualGateways(new DescribeVirtualGatewaysRequest());}
| train | false |
379 | public FieldConfig getFieldConfig(String fieldName) {FieldConfig fieldConfig = new FieldConfig(StringUtils.toString(fieldName));for (FieldConfigListener listener : this.listeners) {listener.buildFieldConfig(fieldConfig);}return fieldConfig;}
| [
"public",
"FieldConfig",
"getFieldConfig",
"(",
"String",
"fieldName",
")",
"{",
"FieldConfig",
"fieldConfig",
"=",
"new",
"FieldConfig",
"(",
"StringUtils",
".",
"toString",
"(",
"fieldName",
")",
")",
";",
"for",
"(",
"FieldConfigListener",
"listener",
":",
"this",
".",
"listeners",
")",
"{",
"listener",
".",
"buildFieldConfig",
"(",
"fieldConfig",
")",
";",
"}",
"return",
"fieldConfig",
";",
"}"
] | public virtual FieldConfig GetFieldConfig(string fieldName){FieldConfig fieldConfig = new FieldConfig(StringUtils.ToString(fieldName));foreach (IFieldConfigListener listener in this.listeners){listener.BuildFieldConfig(fieldConfig);}return fieldConfig;}
| train | false |
380 | public void setProperty(Row row, int column) {Cell cell = CellUtil.getCell(row, column);CellUtil.setCellStyleProperty(cell, _propertyName, _propertyValue);}
| [
"public",
"void",
"setProperty",
"(",
"Row",
"row",
",",
"int",
"column",
")",
"{",
"Cell",
"cell",
"=",
"CellUtil",
".",
"getCell",
"(",
"row",
",",
"column",
")",
";",
"CellUtil",
".",
"setCellStyleProperty",
"(",
"cell",
",",
"_propertyName",
",",
"_propertyValue",
")",
";",
"}"
] | public void SetProperty(IRow row, int column){ICell cell = CellUtil.GetCell(row, column);CellUtil.SetCellStyleProperty(cell, _workbook, _propertyName, _propertyValue);}
| train | false |
381 | public RebootInstancesResult rebootInstances(RebootInstancesRequest request) {request = beforeClientExecution(request);return executeRebootInstances(request);}
| [
"public",
"RebootInstancesResult",
"rebootInstances",
"(",
"RebootInstancesRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeRebootInstances",
"(",
"request",
")",
";",
"}"
] | public virtual RebootInstancesResponse RebootInstances(RebootInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootInstancesResponseUnmarshaller.Instance;return Invoke<RebootInstancesResponse>(request, options);}
| train | true |
382 | public Predicate(int ruleIndex, int predIndex, boolean isCtxDependent) {this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}
| [
"public",
"Predicate",
"(",
"int",
"ruleIndex",
",",
"int",
"predIndex",
",",
"boolean",
"isCtxDependent",
")",
"{",
"this",
".",
"ruleIndex",
"=",
"ruleIndex",
";",
"this",
".",
"predIndex",
"=",
"predIndex",
";",
"this",
".",
"isCtxDependent",
"=",
"isCtxDependent",
";",
"}"
] | public Predicate(int ruleIndex, int predIndex, bool isCtxDependent){this.ruleIndex = ruleIndex;this.predIndex = predIndex;this.isCtxDependent = isCtxDependent;}
| train | false |
383 | public void fillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = findBiggest(xPoints);int bottom = findBiggest(yPoints);int left = findSmallest(xPoints);int top = findSmallest(yPoints);HSSFPolygon shape = escherGroup.createPolygon(new HSSFChildAnchor(left,top,right,bottom) );shape.setPolygonDrawArea(right - left, bottom - top);shape.setPoints(addToAll(xPoints, -left), addToAll(yPoints, -top));shape.setLineStyleColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());shape.setFillColor(foreground.getRed(), foreground.getGreen(), foreground.getBlue());}
| [
"public",
"void",
"fillPolygon",
"(",
"int",
"[",
"]",
"xPoints",
",",
"int",
"[",
"]",
"yPoints",
",",
"int",
"nPoints",
")",
"{",
"int",
"right",
"=",
"findBiggest",
"(",
"xPoints",
")",
";",
"int",
"bottom",
"=",
"findBiggest",
"(",
"yPoints",
")",
";",
"int",
"left",
"=",
"findSmallest",
"(",
"xPoints",
")",
";",
"int",
"top",
"=",
"findSmallest",
"(",
"yPoints",
")",
";",
"HSSFPolygon",
"shape",
"=",
"escherGroup",
".",
"createPolygon",
"(",
"new",
"HSSFChildAnchor",
"(",
"left",
",",
"top",
",",
"right",
",",
"bottom",
")",
")",
";",
"shape",
".",
"setPolygonDrawArea",
"(",
"right",
"-",
"left",
",",
"bottom",
"-",
"top",
")",
";",
"shape",
".",
"setPoints",
"(",
"addToAll",
"(",
"xPoints",
",",
"-",
"left",
")",
",",
"addToAll",
"(",
"yPoints",
",",
"-",
"top",
")",
")",
";",
"shape",
".",
"setLineStyleColor",
"(",
"foreground",
".",
"getRed",
"(",
")",
",",
"foreground",
".",
"getGreen",
"(",
")",
",",
"foreground",
".",
"getBlue",
"(",
")",
")",
";",
"shape",
".",
"setFillColor",
"(",
"foreground",
".",
"getRed",
"(",
")",
",",
"foreground",
".",
"getGreen",
"(",
")",
",",
"foreground",
".",
"getBlue",
"(",
")",
")",
";",
"}"
] | public void FillPolygon(int[] xPoints, int[] yPoints,int nPoints){int right = FindBiggest(xPoints);int bottom = FindBiggest(yPoints);int left = FindSmallest(xPoints);int top = FindSmallest(yPoints);HSSFPolygon shape = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));shape.SetPolygonDrawArea(right - left, bottom - top);shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);shape.SetFillColor(foreground.R, foreground.G, foreground.B);}
| train | false |
384 | public ListEventsRequest() {super("Status", "2020-01-17", "ListEvents", "StatusAPI");setMethod(MethodType.POST);}
| [
"public",
"ListEventsRequest",
"(",
")",
"{",
"super",
"(",
"\"Status\"",
",",
"\"2020-01-17\"",
",",
"\"ListEvents\"",
",",
"\"StatusAPI\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public ListEventsRequest(): base("CloudPhoto", "2017-07-11", "ListEvents", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
| train | false |
385 | public ListIAMPolicyAssignmentsResult listIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest request) {request = beforeClientExecution(request);return executeListIAMPolicyAssignments(request);}
| [
"public",
"ListIAMPolicyAssignmentsResult",
"listIAMPolicyAssignments",
"(",
"ListIAMPolicyAssignmentsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListIAMPolicyAssignments",
"(",
"request",
")",
";",
"}"
] | public virtual ListIAMPolicyAssignmentsResponse ListIAMPolicyAssignments(ListIAMPolicyAssignmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsResponseUnmarshaller.Instance;return Invoke<ListIAMPolicyAssignmentsResponse>(request, options);}
| train | false |
386 | public CountingOutputStream(OutputStream out) {this.out = out;}
| [
"public",
"CountingOutputStream",
"(",
"OutputStream",
"out",
")",
"{",
"this",
".",
"out",
"=",
"out",
";",
"}"
] | public CountingOutputStream(OutputStream @out){this.@out = @out;}
| train | false |
387 | public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}
| [
"public",
"void",
"seekExact",
"(",
"BytesRef",
"target",
",",
"TermState",
"otherState",
")",
"{",
"if",
"(",
"!",
"target",
".",
"equals",
"(",
"term",
")",
")",
"{",
"state",
".",
"copyFrom",
"(",
"otherState",
")",
";",
"term",
"=",
"BytesRef",
".",
"deepCopyOf",
"(",
"target",
")",
";",
"seekPending",
"=",
"true",
";",
"}",
"}"
] | public override void SeekExact(BytesRef target, TermState otherState){if (!target.Equals(term)){state.CopyFrom(otherState);term = BytesRef.DeepCopyOf(target);seekPending = true;}}
| train | false |
388 | public void seek(long pos) throws IOException {if (pos != getFilePointer()) {final long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos-bufferSize;final int delta = (int) (pos - alignedPos);if (delta != 0) {refill();buffer.position(delta);bufferPos = delta;} else {bufferPos = bufferSize;}}}
| [
"public",
"void",
"seek",
"(",
"long",
"pos",
")",
"throws",
"IOException",
"{",
"if",
"(",
"pos",
"!=",
"getFilePointer",
"(",
")",
")",
"{",
"final",
"long",
"alignedPos",
"=",
"pos",
"&",
"ALIGN_NOT_MASK",
";",
"filePos",
"=",
"alignedPos",
"-",
"bufferSize",
";",
"final",
"int",
"delta",
"=",
"(",
"int",
")",
"(",
"pos",
"-",
"alignedPos",
")",
";",
"if",
"(",
"delta",
"!=",
"0",
")",
"{",
"refill",
"(",
")",
";",
"buffer",
".",
"position",
"(",
"delta",
")",
";",
"bufferPos",
"=",
"delta",
";",
"}",
"else",
"{",
"bufferPos",
"=",
"bufferSize",
";",
"}",
"}",
"}"
] | public void seek(long pos) throws IOException{if (pos != FilePointer){long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos - bufferSize;int delta = (int)(pos - alignedPos);if (delta != 0){refill();buffer.position(delta);bufferPos = delta;}else{bufferPos = bufferSize;}}}
| train | false |
389 | public void clear() {removeAllElements();}
| [
"public",
"void",
"clear",
"(",
")",
"{",
"removeAllElements",
"(",
")",
";",
"}"
] | public override void clear(){removeAllElements();}
| train | false |
390 | public QueryCustomerByPhoneRequest() {super("xspace", "2017-07-20", "QueryCustomerByPhone");setUriPattern("/customerbyphone");setMethod(MethodType.POST);}
| [
"public",
"QueryCustomerByPhoneRequest",
"(",
")",
"{",
"super",
"(",
"\"xspace\"",
",",
"\"2017-07-20\"",
",",
"\"QueryCustomerByPhone\"",
")",
";",
"setUriPattern",
"(",
"\"/customerbyphone\"",
")",
";",
"setMethod",
"(",
"MethodType",
".",
"POST",
")",
";",
"}"
] | public QueryCustomerByPhoneRequest(): base("xspace", "2017-07-20", "QueryCustomerByPhone"){UriPattern = "/customerbyphone";Method = MethodType.POST;}
| train | false |
391 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {return this.evaluate(srcRowIndex, srcColumnIndex, arg0, null);}
| [
"public",
"ValueEval",
"evaluate",
"(",
"int",
"srcRowIndex",
",",
"int",
"srcColumnIndex",
",",
"ValueEval",
"arg0",
")",
"{",
"return",
"this",
".",
"evaluate",
"(",
"srcRowIndex",
",",
"srcColumnIndex",
",",
"arg0",
",",
"null",
")",
";",
"}"
] | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){return this.Evaluate(srcRowIndex, srcColumnIndex, arg0, null);}
| train | false |
392 | public ListDashboardVersionsResult listDashboardVersions(ListDashboardVersionsRequest request) {request = beforeClientExecution(request);return executeListDashboardVersions(request);}
| [
"public",
"ListDashboardVersionsResult",
"listDashboardVersions",
"(",
"ListDashboardVersionsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListDashboardVersions",
"(",
"request",
")",
";",
"}"
] | public virtual ListDashboardVersionsResponse ListDashboardVersions(ListDashboardVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardVersionsResponseUnmarshaller.Instance;return Invoke<ListDashboardVersionsResponse>(request, options);}
| train | false |
393 | public IntBuffer put(int c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}
| [
"public",
"IntBuffer",
"put",
"(",
"int",
"c",
")",
"{",
"if",
"(",
"position",
"==",
"limit",
")",
"{",
"throw",
"new",
"BufferOverflowException",
"(",
")",
";",
"}",
"backingArray",
"[",
"offset",
"+",
"position",
"++",
"]",
"=",
"c",
";",
"return",
"this",
";",
"}"
] | public override java.nio.IntBuffer put(int c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
| train | false |
394 | public DeleteHostedZoneResult deleteHostedZone(DeleteHostedZoneRequest request) {request = beforeClientExecution(request);return executeDeleteHostedZone(request);}
| [
"public",
"DeleteHostedZoneResult",
"deleteHostedZone",
"(",
"DeleteHostedZoneRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeDeleteHostedZone",
"(",
"request",
")",
";",
"}"
] | public virtual DeleteHostedZoneResponse DeleteHostedZone(DeleteHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHostedZoneResponseUnmarshaller.Instance;return Invoke<DeleteHostedZoneResponse>(request, options);}
| train | true |
395 | public CreateReceiptRuleResult createReceiptRule(CreateReceiptRuleRequest request) {request = beforeClientExecution(request);return executeCreateReceiptRule(request);}
| [
"public",
"CreateReceiptRuleResult",
"createReceiptRule",
"(",
"CreateReceiptRuleRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateReceiptRule",
"(",
"request",
")",
";",
"}"
] | public virtual CreateReceiptRuleResponse CreateReceiptRule(CreateReceiptRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReceiptRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReceiptRuleResponseUnmarshaller.Instance;return Invoke<CreateReceiptRuleResponse>(request, options);}
| train | true |
396 | public Result rename() throws IOException {try {result = doRename();return result;} catch (IOException err) {result = Result.IO_FAILURE;throw err;}}
| [
"public",
"Result",
"rename",
"(",
")",
"throws",
"IOException",
"{",
"try",
"{",
"result",
"=",
"doRename",
"(",
")",
";",
"return",
"result",
";",
"}",
"catch",
"(",
"IOException",
"err",
")",
"{",
"result",
"=",
"Result",
".",
"IO_FAILURE",
";",
"throw",
"err",
";",
"}",
"}"
] | public virtual RefUpdate.Result Rename(){try{result = DoRename();return result;}catch (IOException err){result = RefUpdate.Result.IO_FAILURE;throw;}}
| train | false |
397 | public DescribeDBInstancesResult describeDBInstances() {return describeDBInstances(new DescribeDBInstancesRequest());}
| [
"public",
"DescribeDBInstancesResult",
"describeDBInstances",
"(",
")",
"{",
"return",
"describeDBInstances",
"(",
"new",
"DescribeDBInstancesRequest",
"(",
")",
")",
";",
"}"
] | public virtual DescribeDBInstancesResponse DescribeDBInstances(){return DescribeDBInstances(new DescribeDBInstancesRequest());}
| train | false |
398 | public String toString() {if (label != null) {return label + ":" + tag;}return tag;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"if",
"(",
"label",
"!=",
"null",
")",
"{",
"return",
"label",
"+",
"\":\"",
"+",
"tag",
";",
"}",
"return",
"tag",
";",
"}"
] | public override string ToString(){return ruleName + ":" + bypassTokenType;}
| train | false |
399 | public CharSequence toQueryString(EscapeQuerySyntax escaper) {return "[DELETEDCHILD]";}
| [
"public",
"CharSequence",
"toQueryString",
"(",
"EscapeQuerySyntax",
"escaper",
")",
"{",
"return",
"\"[DELETEDCHILD]\"",
";",
"}"
] | public override string ToQueryString(IEscapeQuerySyntax escaper){return "[DELETEDCHILD]";}
| train | false |
400 | public CreateAccountResult createAccount(CreateAccountRequest request) {request = beforeClientExecution(request);return executeCreateAccount(request);}
| [
"public",
"CreateAccountResult",
"createAccount",
"(",
"CreateAccountRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateAccount",
"(",
"request",
")",
";",
"}"
] | public virtual CreateAccountResponse CreateAccount(CreateAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccountResponseUnmarshaller.Instance;return Invoke<CreateAccountResponse>(request, options);}
| train | true |
401 | public Map.Entry<K,V> next() {HashEntry<K,V> e = super.nextEntry();return new WriteThroughEntry(e.key, e.value);}
| [
"public",
"Map",
".",
"Entry",
"<",
"K",
",",
"V",
">",
"next",
"(",
")",
"{",
"HashEntry",
"<",
"K",
",",
"V",
">",
"e",
"=",
"super",
".",
"nextEntry",
"(",
")",
";",
"return",
"new",
"WriteThroughEntry",
"(",
"e",
".",
"key",
",",
"e",
".",
"value",
")",
";",
"}"
] | public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
| train | false |
402 | public BaseRef(RefEval re) {_refEval = re;_areaEval = null;_firstRowIndex = re.getRow();_firstColumnIndex = re.getColumn();_height = 1;_width = 1;}
| [
"public",
"BaseRef",
"(",
"RefEval",
"re",
")",
"{",
"_refEval",
"=",
"re",
";",
"_areaEval",
"=",
"null",
";",
"_firstRowIndex",
"=",
"re",
".",
"getRow",
"(",
")",
";",
"_firstColumnIndex",
"=",
"re",
".",
"getColumn",
"(",
")",
";",
"_height",
"=",
"1",
";",
"_width",
"=",
"1",
";",
"}"
] | public BaseRef(RefEval re){_refEval = re;_areaEval = null;_firstRowIndex = re.Row;_firstColumnIndex = re.Column;_height = 1;_width = 1;}
| train | false |
404 | public void unrollRecursionContexts(ParserRuleContext _parentctx) {_precedenceStack.pop();_ctx.stop = _input.LT(-1);ParserRuleContext retctx = _ctx; if ( _parseListeners != null ) {while ( _ctx != _parentctx ) {triggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.parent;}}else {_ctx = _parentctx;}retctx.parent = _parentctx;if (_buildParseTrees && _parentctx != null) {_parentctx.addChild(retctx);}}
| [
"public",
"void",
"unrollRecursionContexts",
"(",
"ParserRuleContext",
"_parentctx",
")",
"{",
"_precedenceStack",
".",
"pop",
"(",
")",
";",
"_ctx",
".",
"stop",
"=",
"_input",
".",
"LT",
"(",
"-",
"1",
")",
";",
"ParserRuleContext",
"retctx",
"=",
"_ctx",
";",
"if",
"(",
"_parseListeners",
"!=",
"null",
")",
"{",
"while",
"(",
"_ctx",
"!=",
"_parentctx",
")",
"{",
"triggerExitRuleEvent",
"(",
")",
";",
"_ctx",
"=",
"(",
"ParserRuleContext",
")",
"_ctx",
".",
"parent",
";",
"}",
"}",
"else",
"{",
"_ctx",
"=",
"_parentctx",
";",
"}",
"retctx",
".",
"parent",
"=",
"_parentctx",
";",
"if",
"(",
"_buildParseTrees",
"&&",
"_parentctx",
"!=",
"null",
")",
"{",
"_parentctx",
".",
"addChild",
"(",
"retctx",
")",
";",
"}",
"}"
] | public virtual void UnrollRecursionContexts(ParserRuleContext _parentctx){_precedenceStack.RemoveAt(_precedenceStack.Count - 1);_ctx.Stop = _input.LT(-1);ParserRuleContext retctx = _ctx;if (_parseListeners != null){while (_ctx != _parentctx){TriggerExitRuleEvent();_ctx = (ParserRuleContext)_ctx.Parent;}}else{_ctx = _parentctx;}retctx.Parent = _parentctx;if (_buildParseTrees && _parentctx != null){_parentctx.AddChild(retctx);}}
| train | false |
405 | public CancelBundleTaskRequest(String bundleId) {setBundleId(bundleId);}
| [
"public",
"CancelBundleTaskRequest",
"(",
"String",
"bundleId",
")",
"{",
"setBundleId",
"(",
"bundleId",
")",
";",
"}"
] | public CancelBundleTaskRequest(string bundleId){_bundleId = bundleId;}
| train | false |
406 | public void add(CharsRef input, CharsRef output, boolean includeOrig) {add(input, countWords(input), output, countWords(output), includeOrig);}
| [
"public",
"void",
"add",
"(",
"CharsRef",
"input",
",",
"CharsRef",
"output",
",",
"boolean",
"includeOrig",
")",
"{",
"add",
"(",
"input",
",",
"countWords",
"(",
"input",
")",
",",
"output",
",",
"countWords",
"(",
"output",
")",
",",
"includeOrig",
")",
";",
"}"
] | public virtual void Add(CharsRef input, CharsRef output, bool includeOrig){Add(input, CountWords(input), output, CountWords(output), includeOrig);}
| train | false |
407 | public SetIdentityDkimEnabledResult setIdentityDkimEnabled(SetIdentityDkimEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityDkimEnabled(request);}
| [
"public",
"SetIdentityDkimEnabledResult",
"setIdentityDkimEnabled",
"(",
"SetIdentityDkimEnabledRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeSetIdentityDkimEnabled",
"(",
"request",
")",
";",
"}"
] | public virtual SetIdentityDkimEnabledResponse SetIdentityDkimEnabled(SetIdentityDkimEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityDkimEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityDkimEnabledResponseUnmarshaller.Instance;return Invoke<SetIdentityDkimEnabledResponse>(request, options);}
| train | true |
408 | public GetResolverEndpointResult getResolverEndpoint(GetResolverEndpointRequest request) {request = beforeClientExecution(request);return executeGetResolverEndpoint(request);}
| [
"public",
"GetResolverEndpointResult",
"getResolverEndpoint",
"(",
"GetResolverEndpointRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeGetResolverEndpoint",
"(",
"request",
")",
";",
"}"
] | public virtual GetResolverEndpointResponse GetResolverEndpoint(GetResolverEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverEndpointResponseUnmarshaller.Instance;return Invoke<GetResolverEndpointResponse>(request, options);}
| train | true |
409 | public void setText(String value) {string = value;start = offset = 0;end = value.length();}
| [
"public",
"void",
"setText",
"(",
"String",
"value",
")",
"{",
"string",
"=",
"value",
";",
"start",
"=",
"offset",
"=",
"0",
";",
"end",
"=",
"value",
".",
"length",
"(",
")",
";",
"}"
] | public void setText(string value){@string = value;start = offset = 0;end = value.Length;}
| train | true |
410 | public String toString() {return toString(0);}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"toString",
"(",
"0",
")",
";",
"}"
] | public override string ToString(){return ToString(0);}
| train | false |
411 | public void adjustIndex(int offset) {_firstSheetIndex += offset;_lastSheetIndex += offset;}
| [
"public",
"void",
"adjustIndex",
"(",
"int",
"offset",
")",
"{",
"_firstSheetIndex",
"+=",
"offset",
";",
"_lastSheetIndex",
"+=",
"offset",
";",
"}"
] | public void AdjustIndex(int offset){_firstSheetIndex += offset;_lastSheetIndex += offset;}
| train | false |
412 | public GalicianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"GalicianStemFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] | public GalicianStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
413 | public ListRepositoryAssociationsResult listRepositoryAssociations(ListRepositoryAssociationsRequest request) {request = beforeClientExecution(request);return executeListRepositoryAssociations(request);}
| [
"public",
"ListRepositoryAssociationsResult",
"listRepositoryAssociations",
"(",
"ListRepositoryAssociationsRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeListRepositoryAssociations",
"(",
"request",
")",
";",
"}"
] | public virtual ListRepositoryAssociationsResponse ListRepositoryAssociations(ListRepositoryAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRepositoryAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRepositoryAssociationsResponseUnmarshaller.Instance;return Invoke<ListRepositoryAssociationsResponse>(request, options);}
| train | false |
414 | public void setParams(String params) {super.setParams(params);maxNumSegments = (int)Double.parseDouble(params);}
| [
"public",
"void",
"setParams",
"(",
"String",
"params",
")",
"{",
"super",
".",
"setParams",
"(",
"params",
")",
";",
"maxNumSegments",
"=",
"(",
"int",
")",
"Double",
".",
"parseDouble",
"(",
"params",
")",
";",
"}"
] | public override void SetParams(string @params){base.SetParams(@params);maxNumSegments = (int)double.Parse(@params, CultureInfo.InvariantCulture);}
| train | false |
415 | public char getChar() {return (char) getShort();}
| [
"public",
"char",
"getChar",
"(",
")",
"{",
"return",
"(",
"char",
")",
"getShort",
"(",
")",
";",
"}"
] | public override char getChar(){return (char)getShort();}
| train | false |
416 | public void next(int delta) {if (delta == 1) {prevPtr = currPtr;currPtr = nextPtr;if (!eof())parseEntry();return;}final int end = raw.length;int ptr = nextPtr;while (--delta > 0 && ptr != end) {prevPtr = ptr;while (raw[ptr] != 0)ptr++;ptr += OBJECT_ID_LENGTH + 1;}if (delta != 0)throw new ArrayIndexOutOfBoundsException(delta);currPtr = ptr;if (!eof())parseEntry();}
| [
"public",
"void",
"next",
"(",
"int",
"delta",
")",
"{",
"if",
"(",
"delta",
"==",
"1",
")",
"{",
"prevPtr",
"=",
"currPtr",
";",
"currPtr",
"=",
"nextPtr",
";",
"if",
"(",
"!",
"eof",
"(",
")",
")",
"parseEntry",
"(",
")",
";",
"return",
";",
"}",
"final",
"int",
"end",
"=",
"raw",
".",
"length",
";",
"int",
"ptr",
"=",
"nextPtr",
";",
"while",
"(",
"--",
"delta",
">",
"0",
"&&",
"ptr",
"!=",
"end",
")",
"{",
"prevPtr",
"=",
"ptr",
";",
"while",
"(",
"raw",
"[",
"ptr",
"]",
"!=",
"0",
")",
"ptr",
"++",
";",
"ptr",
"+=",
"OBJECT_ID_LENGTH",
"+",
"1",
";",
"}",
"if",
"(",
"delta",
"!=",
"0",
")",
"throw",
"new",
"ArrayIndexOutOfBoundsException",
"(",
"delta",
")",
";",
"currPtr",
"=",
"ptr",
";",
"if",
"(",
"!",
"eof",
"(",
")",
")",
"parseEntry",
"(",
")",
";",
"}"
] | public override void Next(int delta){if (delta == 1){prevPtr = currPtr;currPtr = nextPtr;if (!Eof){ParseEntry();}return;}int end = raw.Length;int ptr = nextPtr;while (--delta > 0 && ptr != end){prevPtr = ptr;while (raw[ptr] != 0){ptr++;}ptr += Constants.OBJECT_ID_LENGTH + 1;}if (delta != 0){throw Sharpen.Extensions.CreateIndexOutOfRangeException(delta);}currPtr = ptr;if (!Eof){ParseEntry();}}
| train | false |
417 | public Type getType() {return type;}
| [
"public",
"Type",
"getType",
"(",
")",
"{",
"return",
"type",
";",
"}"
] | public virtual ReceiveCommand.Type GetType(){return type;}
| train | false |
418 | public CharBuffer duplicate() {return copy(this, mark);}
| [
"public",
"CharBuffer",
"duplicate",
"(",
")",
"{",
"return",
"copy",
"(",
"this",
",",
"mark",
")",
";",
"}"
] | public override java.nio.CharBuffer duplicate(){return copy(this, _mark);}
| train | false |
419 | public NGramFilterFactory(Map<String, String> args) {super(args);minGramSize = requireInt(args, "minGramSize");maxGramSize = requireInt(args, "maxGramSize");preserveOriginal = getBoolean(args, "preserveOriginal", NGramTokenFilter.DEFAULT_PRESERVE_ORIGINAL);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| [
"public",
"NGramFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"minGramSize",
"=",
"requireInt",
"(",
"args",
",",
"\"minGramSize\"",
")",
";",
"maxGramSize",
"=",
"requireInt",
"(",
"args",
",",
"\"maxGramSize\"",
")",
";",
"preserveOriginal",
"=",
"getBoolean",
"(",
"args",
",",
"\"preserveOriginal\"",
",",
"NGramTokenFilter",
".",
"DEFAULT_PRESERVE_ORIGINAL",
")",
";",
"if",
"(",
"!",
"args",
".",
"isEmpty",
"(",
")",
")",
"{",
"throw",
"new",
"IllegalArgumentException",
"(",
"\"Unknown parameters: \"",
"+",
"args",
")",
";",
"}",
"}"
] | public NGramFilterFactory(IDictionary<string, string> args): base(args){minGramSize = GetInt32(args, "minGramSize", NGramTokenFilter.DEFAULT_MIN_NGRAM_SIZE);maxGramSize = GetInt32(args, "maxGramSize", NGramTokenFilter.DEFAULT_MAX_NGRAM_SIZE);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
| train | false |
420 | public AddRoleToDBClusterResult addRoleToDBCluster(AddRoleToDBClusterRequest request) {request = beforeClientExecution(request);return executeAddRoleToDBCluster(request);}
| [
"public",
"AddRoleToDBClusterResult",
"addRoleToDBCluster",
"(",
"AddRoleToDBClusterRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeAddRoleToDBCluster",
"(",
"request",
")",
";",
"}"
] | public virtual AddRoleToDBClusterResponse AddRoleToDBCluster(AddRoleToDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddRoleToDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = AddRoleToDBClusterResponseUnmarshaller.Instance;return Invoke<AddRoleToDBClusterResponse>(request, options);}
| train | true |
421 | public BlameGenerator setTextComparator(RawTextComparator comparator) {textComparator = comparator;return this;}
| [
"public",
"BlameGenerator",
"setTextComparator",
"(",
"RawTextComparator",
"comparator",
")",
"{",
"textComparator",
"=",
"comparator",
";",
"return",
"this",
";",
"}"
] | public virtual NGit.Blame.BlameGenerator SetTextComparator(RawTextComparator comparator){textComparator = comparator;return this;}
| train | false |
422 | public PatternCaptureGroupFilterFactory(Map<String,String> args) {super(args);pattern = getPattern(args, "pattern");preserveOriginal = args.containsKey("preserve_original") ? Boolean.parseBoolean(args.get("preserve_original")) : true;}
| [
"public",
"PatternCaptureGroupFilterFactory",
"(",
"Map",
"<",
"String",
",",
"String",
">",
"args",
")",
"{",
"super",
"(",
"args",
")",
";",
"pattern",
"=",
"getPattern",
"(",
"args",
",",
"\"pattern\"",
")",
";",
"preserveOriginal",
"=",
"args",
".",
"containsKey",
"(",
"\"preserve_original\"",
")",
"?",
"Boolean",
".",
"parseBoolean",
"(",
"args",
".",
"get",
"(",
"\"preserve_original\"",
")",
")",
":",
"true",
";",
"}"
] | public PatternCaptureGroupFilterFactory(IDictionary<string, string> args): base(args){pattern = GetPattern(args, "pattern");preserveOriginal = args.TryGetValue("preserve_original", out string value) ? bool.Parse(value) : true;}
| train | false |
423 | public CreateObjectResult createObject(CreateObjectRequest request) {request = beforeClientExecution(request);return executeCreateObject(request);}
| [
"public",
"CreateObjectResult",
"createObject",
"(",
"CreateObjectRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateObject",
"(",
"request",
")",
";",
"}"
] | public virtual CreateObjectResponse CreateObject(CreateObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateObjectResponseUnmarshaller.Instance;return Invoke<CreateObjectResponse>(request, options);}
| train | true |
424 | @Override public String getActions() { return null; }
| [
"@",
"Override",
"public",
"String",
"getActions",
"(",
")",
"{",
"return",
"null",
";",
"}"
] | public override string getActions(){return null;}
| train | false |
425 | public void onChanged() {if (mAdapter != null) {post(new Runnable());}}
| [
"public",
"void",
"onChanged",
"(",
")",
"{",
"if",
"(",
"mAdapter",
"!=",
"null",
")",
"{",
"post",
"(",
"new",
"Runnable",
"(",
")",
")",
";",
"}",
"}"
] | public override void onChanged(){if (this._enclosing.isShowing()){this._enclosing.show();}}
| train | false |
426 | public CreateResourceGroupResult createResourceGroup(CreateResourceGroupRequest request) {request = beforeClientExecution(request);return executeCreateResourceGroup(request);}
| [
"public",
"CreateResourceGroupResult",
"createResourceGroup",
"(",
"CreateResourceGroupRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCreateResourceGroup",
"(",
"request",
")",
";",
"}"
] | public virtual CreateResourceGroupResponse CreateResourceGroup(CreateResourceGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateResourceGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateResourceGroupResponseUnmarshaller.Instance;return Invoke<CreateResourceGroupResponse>(request, options);}
| train | true |
427 | public static RevFilter has(RevFlag a) {final RevFlagSet s = new RevFlagSet();s.add(a);return new HasAll(s);}
| [
"public",
"static",
"RevFilter",
"has",
"(",
"RevFlag",
"a",
")",
"{",
"final",
"RevFlagSet",
"s",
"=",
"new",
"RevFlagSet",
"(",
")",
";",
"s",
".",
"add",
"(",
"a",
")",
";",
"return",
"new",
"HasAll",
"(",
"s",
")",
";",
"}"
] | public static RevFilter Has(RevFlag a){RevFlagSet s = new RevFlagSet();s.AddItem(a);return new RevFlagFilter.HasAll(s);}
| train | false |
428 | @Override public int size() {return totalSize;}
| [
"@",
"Override",
"public",
"int",
"size",
"(",
")",
"{",
"return",
"totalSize",
";",
"}"
] | public override int size(){return this._enclosing._size;}
| train | false |
429 | public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);}
| [
"public",
"void",
"write",
"(",
"LittleEndianOutput",
"out",
")",
"{",
"out",
".",
"writeByte",
"(",
"sid",
"+",
"getPtgClass",
"(",
")",
")",
";",
"out",
".",
"writeShort",
"(",
"field_1_index_extern_sheet",
")",
";",
"out",
".",
"writeInt",
"(",
"unused1",
")",
";",
"}"
] | public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);}
| train | false |
430 | public String toString() {return this.getClass().getSimpleName() + "@" + directory + " lockFactory=" + lockFactory;}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"this",
".",
"getClass",
"(",
")",
".",
"getSimpleName",
"(",
")",
"+",
"\"@\"",
"+",
"directory",
"+",
"\" lockFactory=\"",
"+",
"lockFactory",
";",
"}"
] | public override string ToString(){return this.GetType().Name + "@" + m_directory + " lockFactory=" + LockFactory;}
| train | false |
432 | public CancelDataRepositoryTaskResult cancelDataRepositoryTask(CancelDataRepositoryTaskRequest request) {request = beforeClientExecution(request);return executeCancelDataRepositoryTask(request);}
| [
"public",
"CancelDataRepositoryTaskResult",
"cancelDataRepositoryTask",
"(",
"CancelDataRepositoryTaskRequest",
"request",
")",
"{",
"request",
"=",
"beforeClientExecution",
"(",
"request",
")",
";",
"return",
"executeCancelDataRepositoryTask",
"(",
"request",
")",
";",
"}"
] | public virtual CancelDataRepositoryTaskResponse CancelDataRepositoryTask(CancelDataRepositoryTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelDataRepositoryTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelDataRepositoryTaskResponseUnmarshaller.Instance;return Invoke<CancelDataRepositoryTaskResponse>(request, options);}
| train | false |
433 | public DateFormatTokenizer(String format) {this.format = format;}
| [
"public",
"DateFormatTokenizer",
"(",
"String",
"format",
")",
"{",
"this",
".",
"format",
"=",
"format",
";",
"}"
] | public DateFormatTokenizer(string format){this.format = format;}
| train | false |
434 | public static int getBiasedExponent(long rawBits) {return Math.toIntExact((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}
| [
"public",
"static",
"int",
"getBiasedExponent",
"(",
"long",
"rawBits",
")",
"{",
"return",
"Math",
".",
"toIntExact",
"(",
"(",
"rawBits",
"&",
"EXPONENT_MASK",
")",
">",
">",
"EXPONENT_SHIFT",
")",
";",
"}"
] | public static int GetBiasedExponent(long rawBits){return (int)((rawBits & EXPONENT_MASK) >> EXPONENT_SHIFT);}
| train | false |
435 | public String toString() {return "IB " + distribution.toString() + "-" + lambda.toString()+ normalization.toString();}
| [
"public",
"String",
"toString",
"(",
")",
"{",
"return",
"\"IB \"",
"+",
"distribution",
".",
"toString",
"(",
")",
"+",
"\"-\"",
"+",
"lambda",
".",
"toString",
"(",
")",
"+",
"normalization",
".",
"toString",
"(",
")",
";",
"}"
] | public override string ToString(){return "IB " + m_distribution.ToString() + "-" + m_lambda.ToString() + m_normalization.ToString();}
| train | false |
Subsets and Splits