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
6,059
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {AreaEval reA = evaluateRef(arg0);AreaEval reB = evaluateRef(arg1);return resolveRange(reA, reB);} catch (EvaluationException e) {return e.getErrorEval();}}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ")", "{", "try", "{", "AreaEval", "reA", "=", "evaluateRef", "(", "arg0", ")", ";", "AreaEval", "reB", "=", "evaluateRef", "(", "arg1", ")", ";", "return", "resolveRange", "(", "reA", ",", "reB", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){try{AreaEval reA = EvaluateRef(arg0);AreaEval reB = EvaluateRef(arg1);return ResolveRange(reA, reB);}catch (EvaluationException e){return e.GetErrorEval();}}
train
false
6,060
public CharBuffer put(char[] src, int srcOffset, int charCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, charCount);if (charCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + charCount; ++i) {put(src[i]);}return this;}
[ "public", "CharBuffer", "put", "(", "char", "[", "]", "src", ",", "int", "srcOffset", ",", "int", "charCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "src", ".", "length", ",", "srcOffset", ",", "charCount", ")", ";", "if", "(", "charCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "for", "(", "int", "i", "=", "srcOffset", ";", "i", "<", "srcOffset", "+", "charCount", ";", "++", "i", ")", "{", "put", "(", "src", "[", "i", "]", ")", ";", "}", "return", "this", ";", "}" ]
public virtual java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, charCount);if (charCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + charCount; ++i){put(src[i]);}}return this;}
train
false
6,061
public void writeByte(byte b) {assert slice != null;if (slice[upto] != 0) {upto = pool.allocSlice(slice, upto);slice = pool.buffer;offset0 = pool.byteOffset;assert slice != null;}slice[upto++] = b;assert upto != slice.length;}
[ "public", "void", "writeByte", "(", "byte", "b", ")", "{", "assert", "slice", "!=", "null", ";", "if", "(", "slice", "[", "upto", "]", "!=", "0", ")", "{", "upto", "=", "pool", ".", "allocSlice", "(", "slice", ",", "upto", ")", ";", "slice", "=", "pool", ".", "buffer", ";", "offset0", "=", "pool", ".", "byteOffset", ";", "assert", "slice", "!=", "null", ";", "}", "slice", "[", "upto", "++", "]", "=", "b", ";", "assert", "upto", "!=", "slice", ".", "length", ";", "}" ]
public override void WriteByte(byte b){Debug.Assert(slice != null);if (slice[upto] != 0){upto = pool.AllocSlice(slice, upto);slice = pool.Buffer;offset0 = pool.ByteOffset;Debug.Assert(slice != null);}slice[upto++] = (byte)b;Debug.Assert(upto != slice.Length);}
train
false
6,062
public static double atanh(double a) {final double mult;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);mult = -0.5d;} else {mult = 0.5d;}return mult * Math.log((1.0d + a) / (1.0d - a));}
[ "public", "static", "double", "atanh", "(", "double", "a", ")", "{", "final", "double", "mult", ";", "if", "(", "Double", ".", "doubleToRawLongBits", "(", "a", ")", "<", "0", ")", "{", "a", "=", "Math", ".", "abs", "(", "a", ")", ";", "mult", "=", "-", "0.5d", ";", "}", "else", "{", "mult", "=", "0.5d", ";", "}", "return", "mult", "*", "Math", ".", "log", "(", "(", "1.0d", "+", "a", ")", "/", "(", "1.0d", "-", "a", ")", ")", ";", "}" ]
public static double Atanh(double a){double mult;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);mult = -0.5d;}else{mult = 0.5d;}return mult * Math.Log((1.0d + a) / (1.0d - a));}
train
false
6,063
public static double asinh(double a) {final double sign;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);sign = -1.0d;} else {sign = 1.0d;}return sign * Math.log(Math.sqrt(a * a + 1.0d) + a);}
[ "public", "static", "double", "asinh", "(", "double", "a", ")", "{", "final", "double", "sign", ";", "if", "(", "Double", ".", "doubleToRawLongBits", "(", "a", ")", "<", "0", ")", "{", "a", "=", "Math", ".", "abs", "(", "a", ")", ";", "sign", "=", "-", "1.0d", ";", "}", "else", "{", "sign", "=", "1.0d", ";", "}", "return", "sign", "*", "Math", ".", "log", "(", "Math", ".", "sqrt", "(", "a", "*", "a", "+", "1.0d", ")", "+", "a", ")", ";", "}" ]
public static double Asinh(double a){double sign;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);sign = -1.0d;}else{sign = 1.0d;}return sign * Math.Log(Math.Sqrt(a * a + 1.0d) + a);}
train
false
6,064
public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){this.analyzer=analyzer;this.maxNumTerms = maxNumTerms;}
[ "public", "FuzzyLikeThisQuery", "(", "int", "maxNumTerms", ",", "Analyzer", "analyzer", ")", "{", "this", ".", "analyzer", "=", "analyzer", ";", "this", ".", "maxNumTerms", "=", "maxNumTerms", ";", "}" ]
public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){q = new ScoreTermQueue(maxNumTerms);this.analyzer = analyzer;this.maxNumTerms = maxNumTerms;}
train
false
6,065
public boolean precpred(RuleContext localctx, int precedence) {return precedence >= _precedenceStack.peek();}
[ "public", "boolean", "precpred", "(", "RuleContext", "localctx", ",", "int", "precedence", ")", "{", "return", "precedence", ">=", "_precedenceStack", ".", "peek", "(", ")", ";", "}" ]
public override bool Precpred(RuleContext localctx, int precedence){return precedence >= _precedenceStack[_precedenceStack.Count - 1];}
train
false
6,066
public UpdateStackResult updateStack(UpdateStackRequest request) {request = beforeClientExecution(request);return executeUpdateStack(request);}
[ "public", "UpdateStackResult", "updateStack", "(", "UpdateStackRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateStack", "(", "request", ")", ";", "}" ]
public virtual UpdateStackResponse UpdateStack(UpdateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance;return Invoke<UpdateStackResponse>(request, options);}
train
true
6,067
public StartJumpserverRequest() {super("HPC", "2016-06-03", "StartJumpserver", "hpc");setMethod(MethodType.POST);}
[ "public", "StartJumpserverRequest", "(", ")", "{", "super", "(", "\"HPC\"", ",", "\"2016-06-03\"", ",", "\"StartJumpserver\"", ",", "\"hpc\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public StartJumpserverRequest(): base("HPC", "2016-06-03", "StartJumpserver"){Method = MethodType.POST;}
train
false
6,068
public List<FastIgnoreRule> getRules() {return Collections.unmodifiableList(rules);}
[ "public", "List", "<", "FastIgnoreRule", ">", "getRules", "(", ")", "{", "return", "Collections", ".", "unmodifiableList", "(", "rules", ")", ";", "}" ]
public virtual IList<IgnoreRule> GetRules(){return Sharpen.Collections.UnmodifiableList(rules);}
train
false
6,069
public RefMap() {prefix = ""; packed = RefList.emptyList();loose = RefList.emptyList();resolved = RefList.emptyList();}
[ "public", "RefMap", "(", ")", "{", "prefix", "=", "\"\"", ";", "packed", "=", "RefList", ".", "emptyList", "(", ")", ";", "loose", "=", "RefList", ".", "emptyList", "(", ")", ";", "resolved", "=", "RefList", ".", "emptyList", "(", ")", ";", "}" ]
public RefMap(){prefix = string.Empty;packed = RefList.EmptyList();loose = RefList.EmptyList();resolved = RefList.EmptyList();}
train
false
6,070
public Collection<ObjectId> getCandidates() {return candidates;}
[ "public", "Collection", "<", "ObjectId", ">", "getCandidates", "(", ")", "{", "return", "candidates", ";", "}" ]
public virtual ICollection<ObjectId> GetCandidates(){return candidates;}
train
false
6,071
public int get(Object key) {int index = findIndex(key, keys);if (keys[index] == key) {return values[index];}return -1;}
[ "public", "int", "get", "(", "Object", "key", ")", "{", "int", "index", "=", "findIndex", "(", "key", ",", "keys", ")", ";", "if", "(", "keys", "[", "index", "]", "==", "key", ")", "{", "return", "values", "[", "index", "]", ";", "}", "return", "-", "1", ";", "}" ]
public int get(object key){int index = findIndex(key, keys);if (keys[index] == key){return values[index];}return -1;}
train
true
6,073
public DiffCommand setCached(boolean cached) {this.cached = cached;return this;}
[ "public", "DiffCommand", "setCached", "(", "boolean", "cached", ")", "{", "this", ".", "cached", "=", "cached", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.DiffCommand SetCached(bool cached){this.cached = cached;return this;}
train
false
6,074
public RevertCommand revert() {return new RevertCommand(repo);}
[ "public", "RevertCommand", "revert", "(", ")", "{", "return", "new", "RevertCommand", "(", "repo", ")", ";", "}" ]
public virtual RevertCommand Revert(){return new RevertCommand(repo);}
train
false
6,075
@Override public void clear() {if (size != 0) {Arrays.fill(table, null);entryForNullKey = null;modCount++;size = 0;}}
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "if", "(", "size", "!=", "0", ")", "{", "Arrays", ".", "fill", "(", "table", ",", "null", ")", ";", "entryForNullKey", "=", "null", ";", "modCount", "++", ";", "size", "=", "0", ";", "}", "}" ]
public override void clear(){if (_size != 0){java.util.Arrays.fill(table, null);entryForNullKey = null;modCount++;_size = 0;}}
train
false
6,076
public static double log2(double x) {return Math.log(x) / LOG_2;}
[ "public", "static", "double", "log2", "(", "double", "x", ")", "{", "return", "Math", ".", "log", "(", "x", ")", "/", "LOG_2", ";", "}" ]
public static double Log2(double x){return Math.Log(x) / LOG_2;}
train
false
6,077
public boolean isHorizontalBorder(){return horizontalBorder.isSet(field_1_options);}
[ "public", "boolean", "isHorizontalBorder", "(", ")", "{", "return", "horizontalBorder", ".", "isSet", "(", "field_1_options", ")", ";", "}" ]
public bool IsHorizontalBorder(){return horizontalBorder.IsSet(field_1_options);}
train
false
6,078
public void validate() throws IllegalArgumentException {if (distErr != null && distErrPct != null)throw new IllegalArgumentException("Only distErr or distErrPct can be specified.");}
[ "public", "void", "validate", "(", ")", "throws", "IllegalArgumentException", "{", "if", "(", "distErr", "!=", "null", "&&", "distErrPct", "!=", "null", ")", "throw", "new", "IllegalArgumentException", "(", "\"Only distErr or distErrPct can be specified.\"", ")", ";", "}" ]
public virtual void Validate(){if (Operation.IsTargetNeedsArea && !Shape.HasArea){throw new ArgumentException(Operation + " only supports geometry with area");}if (DistErr != null && DistErrPct != null){throw new ArgumentException("Only DistErr or DistErrPct can be specified.");}}
train
false
6,079
public DeleteConfigurationSetResult deleteConfigurationSet(DeleteConfigurationSetRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSet(request);}
[ "public", "DeleteConfigurationSetResult", "deleteConfigurationSet", "(", "DeleteConfigurationSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteConfigurationSet", "(", "request", ")", ";", "}" ]
public virtual DeleteConfigurationSetResponse DeleteConfigurationSet(DeleteConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationSetResponseUnmarshaller.Instance;return Invoke<DeleteConfigurationSetResponse>(request, options);}
train
true
6,081
public static DoubleBuffer wrap(double[] array, int start, int doubleCount) {Arrays.checkOffsetAndCount(array.length, start, doubleCount);DoubleBuffer buf = new ReadWriteDoubleArrayBuffer(array);buf.position = start;buf.limit = start + doubleCount;return buf;}
[ "public", "static", "DoubleBuffer", "wrap", "(", "double", "[", "]", "array", ",", "int", "start", ",", "int", "doubleCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "array", ".", "length", ",", "start", ",", "doubleCount", ")", ";", "DoubleBuffer", "buf", "=", "new", "ReadWriteDoubleArrayBuffer", "(", "array", ")", ";", "buf", ".", "position", "=", "start", ";", "buf", ".", "limit", "=", "start", "+", "doubleCount", ";", "return", "buf", ";", "}" ]
public static java.nio.DoubleBuffer wrap(double[] array_1, int start, int doubleCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, doubleCount);java.nio.DoubleBuffer buf = new java.nio.ReadWriteDoubleArrayBuffer(array_1);buf._position = start;buf._limit = start + doubleCount;return buf;}
train
false
6,082
public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeDescribeSpotInstanceRequests(request);}
[ "public", "DescribeSpotInstanceRequestsResult", "describeSpotInstanceRequests", "(", "DescribeSpotInstanceRequestsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeSpotInstanceRequests", "(", "request", ")", ";", "}" ]
public virtual DescribeSpotInstanceRequestsResponse DescribeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotInstanceRequestsResponseUnmarshaller.Instance;return Invoke<DescribeSpotInstanceRequestsResponse>(request, options);}
train
true
6,083
public UpdateFieldLevelEncryptionConfigResult updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeUpdateFieldLevelEncryptionConfig(request);}
[ "public", "UpdateFieldLevelEncryptionConfigResult", "updateFieldLevelEncryptionConfig", "(", "UpdateFieldLevelEncryptionConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateFieldLevelEncryptionConfig", "(", "request", ")", ";", "}" ]
public virtual UpdateFieldLevelEncryptionConfigResponse UpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke<UpdateFieldLevelEncryptionConfigResponse>(request, options);}
train
true
6,084
public void setCachedResultTypeString() {specialCachedValue = FormulaSpecialCachedValue.createForString();}
[ "public", "void", "setCachedResultTypeString", "(", ")", "{", "specialCachedValue", "=", "FormulaSpecialCachedValue", ".", "createForString", "(", ")", ";", "}" ]
public void SetCachedResultTypeString(){specialCachedValue = SpecialCachedValue.CreateForString();}
train
false
6,085
public SpanNearBuilder(SpanQueryBuilder factory) {this.factory = factory;}
[ "public", "SpanNearBuilder", "(", "SpanQueryBuilder", "factory", ")", "{", "this", ".", "factory", "=", "factory", ";", "}" ]
public SpanNearBuilder(ISpanQueryBuilder factory){this.factory = factory;}
train
false
6,086
public long ramBytesUsed() {long sizeInBytes = 0;for(Map.Entry<String,DirectField> entry: fields.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "long", "sizeInBytes", "=", "0", ";", "for", "(", "Map", ".", "Entry", "<", "String", ",", "DirectField", ">", "entry", ":", "fields", ".", "entrySet", "(", ")", ")", "{", "sizeInBytes", "+=", "entry", ".", "getKey", "(", ")", ".", "length", "(", ")", "*", "Character", ".", "BYTES", ";", "sizeInBytes", "+=", "entry", ".", "getValue", "(", ")", ".", "ramBytesUsed", "(", ")", ";", "}", "return", "sizeInBytes", ";", "}" ]
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair<string, DirectField> entry in fields){sizeInBytes += entry.Key.Length*RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;}
train
false
6,087
public GlobalCluster deleteGlobalCluster(DeleteGlobalClusterRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalCluster(request);}
[ "public", "GlobalCluster", "deleteGlobalCluster", "(", "DeleteGlobalClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGlobalCluster", "(", "request", ")", ";", "}" ]
public virtual DeleteGlobalClusterResponse DeleteGlobalCluster(DeleteGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGlobalClusterResponseUnmarshaller.Instance;return Invoke<DeleteGlobalClusterResponse>(request, options);}
train
true
6,088
public String toString() {return type.getSimpleName() + "[" + listener + "]";}
[ "public", "String", "toString", "(", ")", "{", "return", "type", ".", "getSimpleName", "(", ")", "+", "\"[\"", "+", "listener", "+", "\"]\"", ";", "}" ]
public override string ToString(){return type.Name + "[" + listener + "]";}
train
false
6,089
public void parseLine(DocData docData, String line) {int k1 = 0;int k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.setTitle(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.setDate(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2>=0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (too many separators)!");}docData.setBody(line.substring(k1));}
[ "public", "void", "parseLine", "(", "DocData", "docData", ",", "String", "line", ")", "{", "int", "k1", "=", "0", ";", "int", "k2", "=", "line", ".", "indexOf", "(", "WriteLineDocTask", ".", "SEP", ",", "k1", ")", ";", "if", "(", "k2", "<", "0", ")", "{", "throw", "new", "RuntimeException", "(", "\"line: [\"", "+", "line", "+", "\"] is in an invalid format (missing: separator title::date)!\"", ")", ";", "}", "docData", ".", "setTitle", "(", "line", ".", "substring", "(", "k1", ",", "k2", ")", ")", ";", "k1", "=", "k2", "+", "1", ";", "k2", "=", "line", ".", "indexOf", "(", "WriteLineDocTask", ".", "SEP", ",", "k1", ")", ";", "if", "(", "k2", "<", "0", ")", "{", "throw", "new", "RuntimeException", "(", "\"line: [\"", "+", "line", "+", "\"] is in an invalid format (missing: separator date::body)!\"", ")", ";", "}", "docData", ".", "setDate", "(", "line", ".", "substring", "(", "k1", ",", "k2", ")", ")", ";", "k1", "=", "k2", "+", "1", ";", "k2", "=", "line", ".", "indexOf", "(", "WriteLineDocTask", ".", "SEP", ",", "k1", ")", ";", "if", "(", "k2", ">=", "0", ")", "{", "throw", "new", "RuntimeException", "(", "\"line: [\"", "+", "line", "+", "\"] is in an invalid format (too many separators)!\"", ")", ";", "}", "docData", ".", "setBody", "(", "line", ".", "substring", "(", "k1", ")", ")", ";", "}" ]
public override void ParseLine(DocData docData, string line){int k1 = 0;int k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.Title = line.Substring(k1, k2 - k1);k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.SetDate(line.Substring(k1, k2 - k1));k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 >= 0){throw new Exception("line: [" + line + "] is in an invalid format (too many separators)!");}docData.Body = line.Substring(k1);}
train
false
6,090
public boolean isLarge() {return false;}
[ "public", "boolean", "isLarge", "(", ")", "{", "return", "false", ";", "}" ]
public override bool IsLarge(){return false;}
train
false
6,091
public String toString() {StringBuilder sb = new StringBuilder();sb.append("TrackingRefUpdate[");sb.append(remoteName);sb.append(" -> ");sb.append(localName);if (forceUpdate)sb.append(" (forced)");sb.append(" ");sb.append(oldObjectId == null ? "" : oldObjectId.abbreviate(7).name());sb.append("..");sb.append(newObjectId == null ? "" : newObjectId.abbreviate(7).name());sb.append("]");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"TrackingRefUpdate[\"", ")", ";", "sb", ".", "append", "(", "remoteName", ")", ";", "sb", ".", "append", "(", "\" -> \"", ")", ";", "sb", ".", "append", "(", "localName", ")", ";", "if", "(", "forceUpdate", ")", "sb", ".", "append", "(", "\" (forced)\"", ")", ";", "sb", ".", "append", "(", "\" \"", ")", ";", "sb", ".", "append", "(", "oldObjectId", "==", "null", "?", "\"\"", ":", "oldObjectId", ".", "abbreviate", "(", "7", ")", ".", "name", "(", ")", ")", ";", "sb", ".", "append", "(", "\"..\"", ")", ";", "sb", ".", "append", "(", "newObjectId", "==", "null", "?", "\"\"", ":", "newObjectId", ".", "abbreviate", "(", "7", ")", ".", "name", "(", ")", ")", ";", "sb", ".", "append", "(", "\"]\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append("TrackingRefUpdate[");sb.Append(remoteName);sb.Append(" -> ");sb.Append(localName);if (forceUpdate){sb.Append(" (forced)");}sb.Append(" ");sb.Append(oldObjectId == null ? string.Empty : oldObjectId.Abbreviate(7).Name);sb.Append("..");sb.Append(newObjectId == null ? string.Empty : newObjectId.Abbreviate(7).Name);sb.Append("]");return sb.ToString();}
train
false
6,092
public DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes() {return describeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());}
[ "public", "DescribeTerminationPolicyTypesResult", "describeTerminationPolicyTypes", "(", ")", "{", "return", "describeTerminationPolicyTypes", "(", "new", "DescribeTerminationPolicyTypesRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(){return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());}
train
false
6,093
public DeleteTagsRequest() {super("Ots", "2016-06-20", "DeleteTags", "ots");setMethod(MethodType.POST);}
[ "public", "DeleteTagsRequest", "(", ")", "{", "super", "(", "\"Ots\"", ",", "\"2016-06-20\"", ",", "\"DeleteTags\"", ",", "\"ots\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public DeleteTagsRequest(): base("Ots", "2016-06-20", "DeleteTags", "ots", "openAPI"){Method = MethodType.POST;}
train
false
6,094
public ChartFormatRecord(RecordInputStream in) {field1_x_position = in.readInt();field2_y_position = in.readInt();field3_width = in.readInt();field4_height = in.readInt();field5_grbit = in.readUShort();field6_unknown = in.readUShort();}
[ "public", "ChartFormatRecord", "(", "RecordInputStream", "in", ")", "{", "field1_x_position", "=", "in", ".", "readInt", "(", ")", ";", "field2_y_position", "=", "in", ".", "readInt", "(", ")", ";", "field3_width", "=", "in", ".", "readInt", "(", ")", ";", "field4_height", "=", "in", ".", "readInt", "(", ")", ";", "field5_grbit", "=", "in", ".", "readUShort", "(", ")", ";", "field6_unknown", "=", "in", ".", "readUShort", "(", ")", ";", "}" ]
public ChartFormatRecord(RecordInputStream in1){field1_x_position = in1.ReadInt();field2_y_position = in1.ReadInt();field3_width = in1.ReadInt();field4_height = in1.ReadInt();field5_grbit = in1.ReadShort();field6_icrt = in1.ReadShort();}
train
false
6,095
public void dispatch(IndexChangedListener listener) {listener.onIndexChanged(this);}
[ "public", "void", "dispatch", "(", "IndexChangedListener", "listener", ")", "{", "listener", ".", "onIndexChanged", "(", "this", ")", ";", "}" ]
public override void Dispatch(IndexChangedListener listener){listener.OnIndexChanged(this);}
train
false
6,096
public NameRecord cloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = getNameRecord(filterDbNameIndex);int newExtSheetIx = checkExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.getNameDefinition();for (int i=0; i< ptgs.length; i++) {Ptg ptg = ptgs[i];if (ptg instanceof Area3DPtg) {Area3DPtg a3p = (Area3DPtg) ((OperandPtg) ptg).copy();a3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = a3p;} else if (ptg instanceof Ref3DPtg) {Ref3DPtg r3p = (Ref3DPtg) ((OperandPtg) ptg).copy();r3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = createBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex+1);newNameRecord.setNameDefinition(ptgs);newNameRecord.setHidden(true);return newNameRecord;}
[ "public", "NameRecord", "cloneFilter", "(", "int", "filterDbNameIndex", ",", "int", "newSheetIndex", ")", "{", "NameRecord", "origNameRecord", "=", "getNameRecord", "(", "filterDbNameIndex", ")", ";", "int", "newExtSheetIx", "=", "checkExternSheet", "(", "newSheetIndex", ")", ";", "Ptg", "[", "]", "ptgs", "=", "origNameRecord", ".", "getNameDefinition", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "ptgs", ".", "length", ";", "i", "++", ")", "{", "Ptg", "ptg", "=", "ptgs", "[", "i", "]", ";", "if", "(", "ptg", "instanceof", "Area3DPtg", ")", "{", "Area3DPtg", "a3p", "=", "(", "Area3DPtg", ")", "(", "(", "OperandPtg", ")", "ptg", ")", ".", "copy", "(", ")", ";", "a3p", ".", "setExternSheetIndex", "(", "newExtSheetIx", ")", ";", "ptgs", "[", "i", "]", "=", "a3p", ";", "}", "else", "if", "(", "ptg", "instanceof", "Ref3DPtg", ")", "{", "Ref3DPtg", "r3p", "=", "(", "Ref3DPtg", ")", "(", "(", "OperandPtg", ")", "ptg", ")", ".", "copy", "(", ")", ";", "r3p", ".", "setExternSheetIndex", "(", "newExtSheetIx", ")", ";", "ptgs", "[", "i", "]", "=", "r3p", ";", "}", "}", "NameRecord", "newNameRecord", "=", "createBuiltInName", "(", "NameRecord", ".", "BUILTIN_FILTER_DB", ",", "newSheetIndex", "+", "1", ")", ";", "newNameRecord", ".", "setNameDefinition", "(", "ptgs", ")", ";", "newNameRecord", ".", "setHidden", "(", "true", ")", ";", "return", "newNameRecord", ";", "}" ]
public NameRecord CloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = GetNameRecord(filterDbNameIndex);int newExtSheetIx = CheckExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.NameDefinition;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];if (ptg is Area3DPtg){Area3DPtg a3p = (Area3DPtg)((OperandPtg)ptg).Copy();a3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = a3p;}else if (ptg is Ref3DPtg){Ref3DPtg r3p = (Ref3DPtg)((OperandPtg)ptg).Copy();r3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = CreateBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex + 1);newNameRecord.NameDefinition = ptgs;newNameRecord.IsHiddenName = true;return newNameRecord;}
train
false
6,097
public int read(byte[] b) throws IOException {int n = in.read(b);if (n == -1) {close();}return n;}
[ "public", "int", "read", "(", "byte", "[", "]", "b", ")", "throws", "IOException", "{", "int", "n", "=", "in", ".", "read", "(", "b", ")", ";", "if", "(", "n", "==", "-", "1", ")", "{", "close", "(", ")", ";", "}", "return", "n", ";", "}" ]
public override int read(byte[] buffer){throw new System.NotImplementedException();}
train
false
6,098
public void serializeArrayConstantData(LittleEndianOutput out) {int len = _byteEncoding.length-_encodedTokenLen;out.write(_byteEncoding, _encodedTokenLen, len);}
[ "public", "void", "serializeArrayConstantData", "(", "LittleEndianOutput", "out", ")", "{", "int", "len", "=", "_byteEncoding", ".", "length", "-", "_encodedTokenLen", ";", "out", ".", "write", "(", "_byteEncoding", ",", "_encodedTokenLen", ",", "len", ")", ";", "}" ]
public void SerializeArrayConstantData(ILittleEndianOutput out1){int len = _byteEncoding.Length - _encodedTokenLen;out1.Write(_byteEncoding, _encodedTokenLen, len);}
train
false
6,099
public GetGcmChannelResult getGcmChannel(GetGcmChannelRequest request) {request = beforeClientExecution(request);return executeGetGcmChannel(request);}
[ "public", "GetGcmChannelResult", "getGcmChannel", "(", "GetGcmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetGcmChannel", "(", "request", ")", ";", "}" ]
public virtual GetGcmChannelResponse GetGcmChannel(GetGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGcmChannelResponseUnmarshaller.Instance;return Invoke<GetGcmChannelResponse>(request, options);}
train
true
6,100
public long ramBytesUsed() {return indexReader.ramBytesUsed();}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "return", "indexReader", ".", "ramBytesUsed", "(", ")", ";", "}" ]
public override long RamBytesUsed(){return indexReader.RamBytesUsed();}
train
false
6,101
public short getCalcMode(){return field_1_calcmode;}
[ "public", "short", "getCalcMode", "(", ")", "{", "return", "field_1_calcmode", ";", "}" ]
public short GetCalcMode(){return field_1_calcmode;}
train
false
6,102
public DeleteStreamResult deleteStream(DeleteStreamRequest request) {request = beforeClientExecution(request);return executeDeleteStream(request);}
[ "public", "DeleteStreamResult", "deleteStream", "(", "DeleteStreamRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteStream", "(", "request", ")", ";", "}" ]
public virtual DeleteStreamResponse DeleteStream(DeleteStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamResponseUnmarshaller.Instance;return Invoke<DeleteStreamResponse>(request, options);}
train
true
6,103
public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, doubleCount);if (doubleCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + doubleCount; ++i) {put(src[i]);}return this;}
[ "public", "DoubleBuffer", "put", "(", "double", "[", "]", "src", ",", "int", "srcOffset", ",", "int", "doubleCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "src", ".", "length", ",", "srcOffset", ",", "doubleCount", ")", ";", "if", "(", "doubleCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "for", "(", "int", "i", "=", "srcOffset", ";", "i", "<", "srcOffset", "+", "doubleCount", ";", "++", "i", ")", "{", "put", "(", "src", "[", "i", "]", ")", ";", "}", "return", "this", ";", "}" ]
public virtual java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, doubleCount);if (doubleCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + doubleCount; ++i){put(src[i]);}}return this;}
train
false
6,104
public RevokeSecurityGroupEgressResult revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupEgress(request);}
[ "public", "RevokeSecurityGroupEgressResult", "revokeSecurityGroupEgress", "(", "RevokeSecurityGroupEgressRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRevokeSecurityGroupEgress", "(", "request", ")", ";", "}" ]
public virtual RevokeSecurityGroupEgressResponse RevokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSecurityGroupEgressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSecurityGroupEgressResponseUnmarshaller.Instance;return Invoke<RevokeSecurityGroupEgressResponse>(request, options);}
train
true
6,105
public CreateRepoWebhookRequest() {super("cr", "2016-06-07", "CreateRepoWebhook", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/webhooks");setMethod(MethodType.PUT);}
[ "public", "CreateRepoWebhookRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"CreateRepoWebhook\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/webhooks\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public CreateRepoWebhookRequest(): base("cr", "2016-06-07", "CreateRepoWebhook", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/webhooks";Method = MethodType.PUT;}
train
false
6,106
public int getCnt(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cnt;}
[ "public", "int", "getCnt", "(", "Character", "way", ")", "{", "Cell", "c", "=", "at", "(", "way", ")", ";", "return", "(", "c", "==", "null", ")", "?", "-", "1", ":", "c", ".", "cnt", ";", "}" ]
public int GetCnt(char way){Cell c = At(way);return (c == null) ? -1 : c.cnt;}
train
false
6,107
public SortField[] getSort() {return fields;}
[ "public", "SortField", "[", "]", "getSort", "(", ")", "{", "return", "fields", ";", "}" ]
public virtual SortField[] GetSort(){return fields;}
train
false
6,108
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[BOF RECORD]\n");buffer.append(" .version = ").append(HexDump.shortToHex(getVersion())).append("\n");buffer.append(" .type = ").append(HexDump.shortToHex(getType()));buffer.append(" (").append(getTypeName()).append(")").append("\n");buffer.append(" .build = ").append(HexDump.shortToHex(getBuild())).append("\n");buffer.append(" .buildyear= ").append(getBuildYear()).append("\n");buffer.append(" .history = ").append(HexDump.intToHex(getHistoryBitMask())).append("\n");buffer.append(" .reqver = ").append(HexDump.intToHex(getRequiredVersion())).append("\n");buffer.append("[/BOF RECORD]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[BOF RECORD]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .version = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "getVersion", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .type = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "getType", "(", ")", ")", ")", ";", "buffer", ".", "append", "(", "\" (\"", ")", ".", "append", "(", "getTypeName", "(", ")", ")", ".", "append", "(", "\")\"", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .build = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "getBuild", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .buildyear= \"", ")", ".", "append", "(", "getBuildYear", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .history = \"", ")", ".", "append", "(", "HexDump", ".", "intToHex", "(", "getHistoryBitMask", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .reqver = \"", ")", ".", "append", "(", "HexDump", ".", "intToHex", "(", "getRequiredVersion", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/BOF RECORD]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[BOF RECORD]\n");buffer.Append(" .version = ").Append(StringUtil.ToHexString(Version)).Append("\n");buffer.Append(" .type = ").Append(StringUtil.ToHexString((int) Type)).Append("\n");buffer.Append(" (").Append(TypeName).Append(")").Append("\n");buffer.Append(" .build = ").Append(StringUtil.ToHexString(Build)).Append("\n");buffer.Append(" .buildyear = ").Append(BuildYear).Append("\n");buffer.Append(" .history = ").Append(StringUtil.ToHexString(HistoryBitMask)).Append("\n");buffer.Append(" .requiredversion = ").Append(StringUtil.ToHexString(RequiredVersion)).Append("\n");buffer.Append("[/BOF RECORD]\n");return buffer.ToString();}
train
false
6,109
public DBInstance createDBInstance(CreateDBInstanceRequest request) {request = beforeClientExecution(request);return executeCreateDBInstance(request);}
[ "public", "DBInstance", "createDBInstance", "(", "CreateDBInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateDBInstance", "(", "request", ")", ";", "}" ]
public virtual CreateDBInstanceResponse CreateDBInstance(CreateDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBInstanceResponseUnmarshaller.Instance;return Invoke<CreateDBInstanceResponse>(request, options);}
train
true
6,110
public CreateStackInstancesResult createStackInstances(CreateStackInstancesRequest request) {request = beforeClientExecution(request);return executeCreateStackInstances(request);}
[ "public", "CreateStackInstancesResult", "createStackInstances", "(", "CreateStackInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateStackInstances", "(", "request", ")", ";", "}" ]
public virtual CreateStackInstancesResponse CreateStackInstances(CreateStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackInstancesResponseUnmarshaller.Instance;return Invoke<CreateStackInstancesResponse>(request, options);}
train
true
6,111
public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort(data, offset, getOptions());LittleEndian.putShort(data, offset+2, getRecordId());int remainingBytes = 0;for (EscherRecord r : this) {remainingBytes += r.getRecordSize();}remainingBytes += _remainingLength;LittleEndian.putInt(data, offset+4, remainingBytes);int pos = offset+8;for (EscherRecord r : this) {pos += r.serialize(pos, data, listener );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}
[ "public", "int", "serialize", "(", "int", "offset", ",", "byte", "[", "]", "data", ",", "EscherSerializationListener", "listener", ")", "{", "listener", ".", "beforeRecordSerialize", "(", "offset", ",", "getRecordId", "(", ")", ",", "this", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", ",", "getOptions", "(", ")", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", "+", "2", ",", "getRecordId", "(", ")", ")", ";", "int", "remainingBytes", "=", "0", ";", "for", "(", "EscherRecord", "r", ":", "this", ")", "{", "remainingBytes", "+=", "r", ".", "getRecordSize", "(", ")", ";", "}", "remainingBytes", "+=", "_remainingLength", ";", "LittleEndian", ".", "putInt", "(", "data", ",", "offset", "+", "4", ",", "remainingBytes", ")", ";", "int", "pos", "=", "offset", "+", "8", ";", "for", "(", "EscherRecord", "r", ":", "this", ")", "{", "pos", "+=", "r", ".", "serialize", "(", "pos", ",", "data", ",", "listener", ")", ";", "}", "listener", ".", "afterRecordSerialize", "(", "pos", ",", "getRecordId", "(", ")", ",", "pos", "-", "offset", ",", "this", ")", ";", "return", "pos", "-", "offset", ";", "}" ]
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 0;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;remainingBytes += r.RecordSize;}remainingBytes += _remainingLength;LittleEndian.PutInt(data, offset + 4, remainingBytes);int pos = offset + 8;for (IEnumerator iterator = ChildRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord r = (EscherRecord)iterator.Current;pos += r.Serialize(pos, data, listener);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
train
false
6,112
public String toString() {return "SnapshotDeletionPolicy.SnapshotCommitPoint(" + cp + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"SnapshotDeletionPolicy.SnapshotCommitPoint(\"", "+", "cp", "+", "\")\"", ";", "}" ]
public override string ToString(){return "SnapshotDeletionPolicy.SnapshotCommitPoint(" + m_cp + ")";}
train
false
6,113
public MissingRecordAwareHSSFListener(HSSFListener listener) {resetCounts();childListener = listener;}
[ "public", "MissingRecordAwareHSSFListener", "(", "HSSFListener", "listener", ")", "{", "resetCounts", "(", ")", ";", "childListener", "=", "listener", ";", "}" ]
public MissingRecordAwareHSSFListener(IHSSFListener listener){ResetCounts();childListener = listener;}
train
false
6,114
public int clear(final int holder){return holder & ~_mask;}
[ "public", "int", "clear", "(", "final", "int", "holder", ")", "{", "return", "holder", "&", "~", "_mask", ";", "}" ]
public int Clear(int holder){return (holder & ~this._mask);}
train
false
6,115
public void serialize(LittleEndianOutput out) {out.writeInt(field_13_border_styles1);out.writeInt(field_14_border_styles2);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeInt", "(", "field_13_border_styles1", ")", ";", "out", ".", "writeInt", "(", "field_14_border_styles2", ")", ";", "}" ]
public void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_13_border_styles1);out1.WriteInt(field_14_border_styles2);}
train
false
6,116
public void setParams(String params) {super.setParams(params);traversalSize = (int)Float.parseFloat(params);}
[ "public", "void", "setParams", "(", "String", "params", ")", "{", "super", ".", "setParams", "(", "params", ")", ";", "traversalSize", "=", "(", "int", ")", "Float", ".", "parseFloat", "(", "params", ")", ";", "}" ]
public override void SetParams(string @params){base.SetParams(@params);m_traversalSize = (int)float.Parse(@params, CultureInfo.InvariantCulture);}
train
false
6,117
public String toStringTree(List<String> ruleNames) {return Trees.toStringTree(this, ruleNames);}
[ "public", "String", "toStringTree", "(", "List", "<", "String", ">", "ruleNames", ")", "{", "return", "Trees", ".", "toStringTree", "(", "this", ",", "ruleNames", ")", ";", "}" ]
public virtual string ToStringTree(IList<string> ruleNames){return Trees.ToStringTree(this, ruleNames);}
train
false
6,118
public HSSFTextbox createTextbox(HSSFClientAnchor anchor) {HSSFTextbox shape = new HSSFTextbox(null, anchor);addShape(shape);onCreate(shape);return shape;}
[ "public", "HSSFTextbox", "createTextbox", "(", "HSSFClientAnchor", "anchor", ")", "{", "HSSFTextbox", "shape", "=", "new", "HSSFTextbox", "(", "null", ",", "anchor", ")", ";", "addShape", "(", "shape", ")", ";", "onCreate", "(", "shape", ")", ";", "return", "shape", ";", "}" ]
public HSSFSimpleShape CreateTextbox(IClientAnchor anchor){HSSFTextbox shape = new HSSFTextbox(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;}
train
false
6,119
public UpdateDevicePolicyConfigurationResult updateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateDevicePolicyConfiguration(request);}
[ "public", "UpdateDevicePolicyConfigurationResult", "updateDevicePolicyConfiguration", "(", "UpdateDevicePolicyConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDevicePolicyConfiguration", "(", "request", ")", ";", "}" ]
public virtual UpdateDevicePolicyConfigurationResponse UpdateDevicePolicyConfiguration(UpdateDevicePolicyConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDevicePolicyConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDevicePolicyConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateDevicePolicyConfigurationResponse>(request, options);}
train
true
6,120
public float norm(int passageStart) {return 1 + 1 / (float) Math.log(pivot + passageStart);}
[ "public", "float", "norm", "(", "int", "passageStart", ")", "{", "return", "1", "+", "1", "/", "(", "float", ")", "Math", ".", "log", "(", "pivot", "+", "passageStart", ")", ";", "}" ]
public virtual float Norm(int passageStart){return 1 + 1 / (float)Math.Log(pivot + passageStart);}
train
false
6,121
public Record nextRecord() {Record r;r = getNextUnreadRecord();if (r != null) {return r;}while (true) {if (!_recStream.hasNextRecord()) {return null;}if (_lastRecordWasEOFLevelZero) {if (_recStream.getNextSid() != BOFRecord.sid) {return null;}}_recStream.nextRecord();r = readNextRecord();if (r == null) {continue;}return r;}}
[ "public", "Record", "nextRecord", "(", ")", "{", "Record", "r", ";", "r", "=", "getNextUnreadRecord", "(", ")", ";", "if", "(", "r", "!=", "null", ")", "{", "return", "r", ";", "}", "while", "(", "true", ")", "{", "if", "(", "!", "_recStream", ".", "hasNextRecord", "(", ")", ")", "{", "return", "null", ";", "}", "if", "(", "_lastRecordWasEOFLevelZero", ")", "{", "if", "(", "_recStream", ".", "getNextSid", "(", ")", "!=", "BOFRecord", ".", "sid", ")", "{", "return", "null", ";", "}", "}", "_recStream", ".", "nextRecord", "(", ")", ";", "r", "=", "readNextRecord", "(", ")", ";", "if", "(", "r", "==", "null", ")", "{", "continue", ";", "}", "return", "r", ";", "}", "}" ]
public Record NextRecord(){Record r;r = GetNextUnreadRecord();if (r != null){return r;}while (true){if (!_recStream.HasNextRecord){return null;}_recStream.NextRecord();if (_lastRecordWasEOFLevelZero){if (_recStream.Sid != BOFRecord.sid){return null;}}r = ReadNextRecord();if (r == null){continue;}return r;}}
train
false
6,122
public final FileDescriptor getFD() throws IOException {return fd;}
[ "public", "final", "FileDescriptor", "getFD", "(", ")", "throws", "IOException", "{", "return", "fd", ";", "}" ]
public java.io.FileDescriptor getFD(){throw new System.NotImplementedException();}
train
false
6,123
public MoveAlbumPhotosRequest() {super("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "MoveAlbumPhotosRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"MoveAlbumPhotos\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public MoveAlbumPhotosRequest(): base("CloudPhoto", "2017-07-11", "MoveAlbumPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
6,124
public UpdateStackSetResult updateStackSet(UpdateStackSetRequest request) {request = beforeClientExecution(request);return executeUpdateStackSet(request);}
[ "public", "UpdateStackSetResult", "updateStackSet", "(", "UpdateStackSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateStackSet", "(", "request", ")", ";", "}" ]
public virtual UpdateStackSetResponse UpdateStackSet(UpdateStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackSetResponseUnmarshaller.Instance;return Invoke<UpdateStackSetResponse>(request, options);}
train
true
6,125
public static double acosh(double d) {return Math.log(Math.sqrt(Math.pow(d, 2) - 1) + d);}
[ "public", "static", "double", "acosh", "(", "double", "d", ")", "{", "return", "Math", ".", "log", "(", "Math", ".", "sqrt", "(", "Math", ".", "pow", "(", "d", ",", "2", ")", "-", "1", ")", "+", "d", ")", ";", "}" ]
public static double Acosh(double d){return Math.Log(Math.Sqrt(Math.Pow(d, 2) - 1) + d);}
train
false
6,126
public int stem(char s[], int len) {for (int i = 0; i < len; i++)switch(s[i]) {case 'ä':case 'à':case 'á':case 'â': s[i] = 'a'; break;case 'ö':case 'ò':case 'ó':case 'ô': s[i] = 'o'; break;case 'ï':case 'ì':case 'í':case 'î': s[i] = 'i'; break;case 'ü':case 'ù':case 'ú':case 'û': s[i] = 'u'; break;}len = step1(s, len);return step2(s, len);}
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "len", ";", "i", "++", ")", "switch", "(", "s", "[", "i", "]", ")", "{", "case", "'ä'", ":", "case", "'à'", ":", "case", "'á'", ":", "case", "'â'", ":", "s", "[", "i", "]", "=", "'a'", ";", "break", ";", "case", "'ö'", ":", "case", "'ò'", ":", "case", "'ó'", ":", "case", "'ô'", ":", "s", "[", "i", "]", "=", "'o'", ";", "break", ";", "case", "'ï'", ":", "case", "'ì'", ":", "case", "'í'", ":", "case", "'î'", ":", "s", "[", "i", "]", "=", "'i'", ";", "break", ";", "case", "'ü'", ":", "case", "'ù'", ":", "case", "'ú'", ":", "case", "'û'", ":", "s", "[", "i", "]", "=", "'u'", ";", "break", ";", "}", "len", "=", "step1", "(", "s", ",", "len", ")", ";", "return", "step2", "(", "s", ",", "len", ")", ";", "}" ]
public virtual int Stem(char[] s, int len){for (int i = 0; i < len; i++){switch (s[i]){case 'ä':case 'à':case 'á':case 'â':s[i] = 'a';break;case 'ö':case 'ò':case 'ó':case 'ô':s[i] = 'o';break;case 'ï':case 'ì':case 'í':case 'î':s[i] = 'i';break;case 'ü':case 'ù':case 'ú':case 'û':s[i] = 'u';break;}}len = Step1(s, len);return Step2(s, len);}
train
false
6,127
public CreateProposalResult createProposal(CreateProposalRequest request) {request = beforeClientExecution(request);return executeCreateProposal(request);}
[ "public", "CreateProposalResult", "createProposal", "(", "CreateProposalRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateProposal", "(", "request", ")", ";", "}" ]
public virtual CreateProposalResponse CreateProposal(CreateProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProposalResponseUnmarshaller.Instance;return Invoke<CreateProposalResponse>(request, options);}
train
false
6,128
public boolean didFetchIncludeTags() {return false;}
[ "public", "boolean", "didFetchIncludeTags", "(", ")", "{", "return", "false", ";", "}" ]
public virtual bool DidFetchIncludeTags(){return false;}
train
false
6,129
public RevCommit peek() {return head != null ? head.commit : null;}
[ "public", "RevCommit", "peek", "(", ")", "{", "return", "head", "!=", "null", "?", "head", ".", "commit", ":", "null", ";", "}" ]
public virtual RevCommit Peek(){return head != null ? head.commit : null;}
train
false
6,130
public HSSFBorderFormatting getBorderFormatting() {return getBorderFormatting(false);}
[ "public", "HSSFBorderFormatting", "getBorderFormatting", "(", ")", "{", "return", "getBorderFormatting", "(", "false", ")", ";", "}" ]
public IBorderFormatting GetBorderFormatting(){return GetBorderFormatting(false);}
train
false
6,131
public DeletedArea3DPtg(int externSheetIndex) {field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;}
[ "public", "DeletedArea3DPtg", "(", "int", "externSheetIndex", ")", "{", "field_1_index_extern_sheet", "=", "externSheetIndex", ";", "unused1", "=", "0", ";", "unused2", "=", "0", ";", "}" ]
public DeletedArea3DPtg(int externSheetIndex){field_1_index_extern_sheet = externSheetIndex;unused1 = 0;unused2 = 0;}
train
false
6,132
public SheetRecordCollector() {_totalSize = 0;_list = new ArrayList<>(128);}
[ "public", "SheetRecordCollector", "(", ")", "{", "_totalSize", "=", "0", ";", "_list", "=", "new", "ArrayList", "<", ">", "(", "128", ")", ";", "}" ]
public SheetRecordCollector(){_totalSize = 0;_list = new ArrayList(128);}
train
false
6,133
public RemovePermissionResult removePermission(RemovePermissionRequest request) {request = beforeClientExecution(request);return executeRemovePermission(request);}
[ "public", "RemovePermissionResult", "removePermission", "(", "RemovePermissionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemovePermission", "(", "request", ")", ";", "}" ]
public virtual RemovePermissionResponse RemovePermission(RemovePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemovePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = RemovePermissionResponseUnmarshaller.Instance;return Invoke<RemovePermissionResponse>(request, options);}
train
true
6,134
public Cluster modifyClusterIamRoles(ModifyClusterIamRolesRequest request) {request = beforeClientExecution(request);return executeModifyClusterIamRoles(request);}
[ "public", "Cluster", "modifyClusterIamRoles", "(", "ModifyClusterIamRolesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyClusterIamRoles", "(", "request", ")", ";", "}" ]
public virtual ModifyClusterIamRolesResponse ModifyClusterIamRoles(ModifyClusterIamRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterIamRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterIamRolesResponseUnmarshaller.Instance;return Invoke<ModifyClusterIamRolesResponse>(request, options);}
train
true
6,135
public AreaFormatRecord(RecordInputStream in) {field_1_foregroundColor = in.readInt();field_2_backgroundColor = in.readInt();field_3_pattern = in.readShort();field_4_formatFlags = in.readShort();field_5_forecolorIndex = in.readShort();field_6_backcolorIndex = in.readShort();}
[ "public", "AreaFormatRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_foregroundColor", "=", "in", ".", "readInt", "(", ")", ";", "field_2_backgroundColor", "=", "in", ".", "readInt", "(", ")", ";", "field_3_pattern", "=", "in", ".", "readShort", "(", ")", ";", "field_4_formatFlags", "=", "in", ".", "readShort", "(", ")", ";", "field_5_forecolorIndex", "=", "in", ".", "readShort", "(", ")", ";", "field_6_backcolorIndex", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public AreaFormatRecord(RecordInputStream in1){field_1_foregroundColor = in1.ReadInt();field_2_backgroundColor = in1.ReadInt();field_3_pattern = in1.ReadShort();field_4_formatFlags = in1.ReadShort();field_5_forecolorIndex = in1.ReadShort();field_6_backcolorIndex = in1.ReadShort();}
train
false
6,136
public int available() {return _lei.available();}
[ "public", "int", "available", "(", ")", "{", "return", "_lei", ".", "available", "(", ")", ";", "}" ]
public int Available(){return _lei.Available();}
train
false
6,137
public final String toString() {return toString("");}
[ "public", "final", "String", "toString", "(", ")", "{", "return", "toString", "(", "\"\"", ")", ";", "}" ]
public override string ToString(){return ToString("");}
train
false
6,138
public short setShort(final short holder){return ( short ) set(holder);}
[ "public", "short", "setShort", "(", "final", "short", "holder", ")", "{", "return", "(", "short", ")", "set", "(", "holder", ")", ";", "}" ]
public short SetShort(short holder){return (short)this.Set(holder);}
train
false
6,139
public synchronized void setFlushPending(ThreadState perThread) {assert !perThread.flushPending;if (perThread.dwpt.getNumDocsInRAM() > 0) {perThread.flushPending = true; final long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; assert assertMemory();} }
[ "public", "synchronized", "void", "setFlushPending", "(", "ThreadState", "perThread", ")", "{", "assert", "!", "perThread", ".", "flushPending", ";", "if", "(", "perThread", ".", "dwpt", ".", "getNumDocsInRAM", "(", ")", ">", "0", ")", "{", "perThread", ".", "flushPending", "=", "true", ";", "final", "long", "bytes", "=", "perThread", ".", "bytesUsed", ";", "flushBytes", "+=", "bytes", ";", "activeBytes", "-=", "bytes", ";", "numPending", "++", ";", "assert", "assertMemory", "(", ")", ";", "}", "}" ]
public void SetFlushPending(ThreadState perThread){lock (this){Debug.Assert(!perThread.flushPending);if (perThread.dwpt.NumDocsInRAM > 0){perThread.flushPending = true; long bytes = perThread.bytesUsed;flushBytes += bytes;activeBytes -= bytes;numPending++; Debug.Assert(AssertMemory());} }}
train
false
6,140
public StringBuilder insert(int offset, char[] ch) {insert0(offset, ch);return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "char", "[", "]", "ch", ")", "{", "insert0", "(", "offset", ",", "ch", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, char[] ch){insert0(offset, ch);return this;}
train
false
6,142
public String getName() {return String.format(Locale.ROOT, "Jelinek-Mercer(%f)", getLambda());}
[ "public", "String", "getName", "(", ")", "{", "return", "String", ".", "format", "(", "Locale", ".", "ROOT", ",", "\"Jelinek-Mercer(%f)\"", ",", "getLambda", "(", ")", ")", ";", "}" ]
public override string GetName(){return "Jelinek-Mercer(" + Number.ToString(Lambda) + ")";}
train
false
6,143
public ReleaseAddressRequest(String publicIp) {setPublicIp(publicIp);}
[ "public", "ReleaseAddressRequest", "(", "String", "publicIp", ")", "{", "setPublicIp", "(", "publicIp", ")", ";", "}" ]
public ReleaseAddressRequest(string publicIp){_publicIp = publicIp;}
train
false
6,144
public DeleteKeyPairResult deleteKeyPair(DeleteKeyPairRequest request) {request = beforeClientExecution(request);return executeDeleteKeyPair(request);}
[ "public", "DeleteKeyPairResult", "deleteKeyPair", "(", "DeleteKeyPairRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteKeyPair", "(", "request", ")", ";", "}" ]
public virtual DeleteKeyPairResponse DeleteKeyPair(DeleteKeyPairRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteKeyPairRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteKeyPairResponseUnmarshaller.Instance;return Invoke<DeleteKeyPairResponse>(request, options);}
train
true
6,145
public byte[] getColor(int byteIndex) {int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= _colors.size()) {return null;}return _colors.get(i).getTriplet();}
[ "public", "byte", "[", "]", "getColor", "(", "int", "byteIndex", ")", "{", "int", "i", "=", "byteIndex", "-", "FIRST_COLOR_INDEX", ";", "if", "(", "i", "<", "0", "||", "i", ">=", "_colors", ".", "size", "(", ")", ")", "{", "return", "null", ";", "}", "return", "_colors", ".", "get", "(", "i", ")", ".", "getTriplet", "(", ")", ";", "}" ]
public byte[] GetColor(short byteIndex){int i = byteIndex - FIRST_COLOR_INDEX;if (i < 0 || i >= field_2_colors.Count){return null;}PColor color = (PColor)field_2_colors[i];return new byte[] { color._red, color._green, color._blue };}
train
false
6,146
public int indexOfValue(E value) {if (mGarbage) {gc();}for (int i = 0; i < mSize; i++)if (mValues[i] == value)return i;return -1;}
[ "public", "int", "indexOfValue", "(", "E", "value", ")", "{", "if", "(", "mGarbage", ")", "{", "gc", "(", ")", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "mSize", ";", "i", "++", ")", "if", "(", "mValues", "[", "i", "]", "==", "value", ")", "return", "i", ";", "return", "-", "1", ";", "}" ]
public virtual int indexOfValue(E value){if (mGarbage){gc();}{for (int i = 0; i < mSize; i++){if (Sharpen.Util.Equals(value, mValues[i])){return i;}}}return -1;}
train
true
6,147
public URIish setScheme(String n) {final URIish r = new URIish(this);r.scheme = n;return r;}
[ "public", "URIish", "setScheme", "(", "String", "n", ")", "{", "final", "URIish", "r", "=", "new", "URIish", "(", "this", ")", ";", "r", ".", "scheme", "=", "n", ";", "return", "r", ";", "}" ]
public virtual NGit.Transport.URIish SetScheme(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.scheme = n;return r;}
train
false
6,148
public void print(char[] charArray) {print(new String(charArray, 0, charArray.length));}
[ "public", "void", "print", "(", "char", "[", "]", "charArray", ")", "{", "print", "(", "new", "String", "(", "charArray", ",", "0", ",", "charArray", ".", "length", ")", ")", ";", "}" ]
public virtual void print(char[] charArray){print(new string(charArray, 0, charArray.Length));}
train
false
6,149
public CommonToken(int type, String text) {this.type = type;this.channel = DEFAULT_CHANNEL;this.text = text;this.source = EMPTY_SOURCE;}
[ "public", "CommonToken", "(", "int", "type", ",", "String", "text", ")", "{", "this", ".", "type", "=", "type", ";", "this", ".", "channel", "=", "DEFAULT_CHANNEL", ";", "this", ".", "text", "=", "text", ";", "this", ".", "source", "=", "EMPTY_SOURCE", ";", "}" ]
public CommonToken(int type, string text){this._type = type;this._channel = TokenConstants.DefaultChannel;this._text = text;this.source = EmptySource;}
train
false
6,150
public final String toString() { return field + ":" + text(); }
[ "public", "final", "String", "toString", "(", ")", "{", "return", "field", "+", "\":\"", "+", "text", "(", ")", ";", "}" ]
public override string ToString(){return Field + ":" + Text();}
train
false
6,151
public LongBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
[ "public", "LongBuffer", "compact", "(", ")", "{", "if", "(", "byteBuffer", ".", "isReadOnly", "(", ")", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}", "byteBuffer", ".", "limit", "(", "limit", "*", "SizeOf", ".", "LONG", ")", ";", "byteBuffer", ".", "position", "(", "position", "*", "SizeOf", ".", "LONG", ")", ";", "byteBuffer", ".", "compact", "(", ")", ";", "byteBuffer", ".", "clear", "(", ")", ";", "position", "=", "limit", "-", "position", ";", "limit", "=", "capacity", ";", "mark", "=", "UNSET_MARK", ";", "return", "this", ";", "}" ]
public override java.nio.LongBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
train
false
6,152
public ATNSimulator(ATN atn,PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;}
[ "public", "ATNSimulator", "(", "ATN", "atn", ",", "PredictionContextCache", "sharedContextCache", ")", "{", "this", ".", "atn", "=", "atn", ";", "this", ".", "sharedContextCache", "=", "sharedContextCache", ";", "}" ]
public ATNSimulator(ATN atn, PredictionContextCache sharedContextCache){this.atn = atn;this.sharedContextCache = sharedContextCache;}
train
false
6,153
public CachedOrdinalsReader(OrdinalsReader source) {this.source = source;}
[ "public", "CachedOrdinalsReader", "(", "OrdinalsReader", "source", ")", "{", "this", ".", "source", "=", "source", ";", "}" ]
public CachedOrdinalsReader(OrdinalsReader source){this.source = source;}
train
false
6,154
public static CompareResult valueOf(boolean matches) {if(matches) {return EQUAL ;}return LESS_THAN;}
[ "public", "static", "CompareResult", "valueOf", "(", "boolean", "matches", ")", "{", "if", "(", "matches", ")", "{", "return", "EQUAL", ";", "}", "return", "LESS_THAN", ";", "}" ]
public static CompareResult ValueOf(bool matches){if (matches){return Equal;}return LessThan;}
train
false
6,155
public void serialize(LittleEndianOutput out) {out.writeShort(getVersion());out.writeShort(getType());out.writeShort(getBuild());out.writeShort(getBuildYear());out.writeInt(getHistoryBitMask());out.writeInt(getRequiredVersion());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getVersion", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getType", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getBuild", "(", ")", ")", ";", "out", ".", "writeShort", "(", "getBuildYear", "(", ")", ")", ";", "out", ".", "writeInt", "(", "getHistoryBitMask", "(", ")", ")", ";", "out", ".", "writeInt", "(", "getRequiredVersion", "(", ")", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Version);out1.WriteShort((int) Type);out1.WriteShort(Build);out1.WriteShort(BuildYear);out1.WriteInt(HistoryBitMask);out1.WriteInt(RequiredVersion);}
train
false
6,156
public File getAbsoluteFile() {return new File(getAbsolutePath());}
[ "public", "File", "getAbsoluteFile", "(", ")", "{", "return", "new", "File", "(", "getAbsolutePath", "(", ")", ")", ";", "}" ]
public java.io.File getAbsoluteFile(){return new java.io.File(getAbsolutePath());}
train
false
6,157
public DescribeTemplatePermissionsResult describeTemplatePermissions(DescribeTemplatePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeTemplatePermissions(request);}
[ "public", "DescribeTemplatePermissionsResult", "describeTemplatePermissions", "(", "DescribeTemplatePermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeTemplatePermissions", "(", "request", ")", ";", "}" ]
public virtual DescribeTemplatePermissionsResponse DescribeTemplatePermissions(DescribeTemplatePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplatePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplatePermissionsResponseUnmarshaller.Instance;return Invoke<DescribeTemplatePermissionsResponse>(request, options);}
train
false
6,158
public WorkflowExecutionCount countOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeCountOpenWorkflowExecutions(request);}
[ "public", "WorkflowExecutionCount", "countOpenWorkflowExecutions", "(", "CountOpenWorkflowExecutionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCountOpenWorkflowExecutions", "(", "request", ")", ";", "}" ]
public virtual CountOpenWorkflowExecutionsResponse CountOpenWorkflowExecutions(CountOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = CountOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke<CountOpenWorkflowExecutionsResponse>(request, options);}
train
true
6,159
public DescribeAccountLimitsResult describeAccountLimits() {return describeAccountLimits(new DescribeAccountLimitsRequest());}
[ "public", "DescribeAccountLimitsResult", "describeAccountLimits", "(", ")", "{", "return", "describeAccountLimits", "(", "new", "DescribeAccountLimitsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeAccountLimitsResponse DescribeAccountLimits(){return DescribeAccountLimits(new DescribeAccountLimitsRequest());}
train
false
6,160
public Object get(CharSequence key) {if (fst == null) {return null;}Arc<Long> arc = new Arc<>();Long result = null;try {result = lookupPrefix(new BytesRef(key), arc);} catch (IOException bogus) { throw new RuntimeException(bogus); }if (result == null || !arc.isFinal()) {return null;} else {return Integer.valueOf(decodeWeight(result + arc.nextFinalOutput()));}}
[ "public", "Object", "get", "(", "CharSequence", "key", ")", "{", "if", "(", "fst", "==", "null", ")", "{", "return", "null", ";", "}", "Arc", "<", "Long", ">", "arc", "=", "new", "Arc", "<", ">", "(", ")", ";", "Long", "result", "=", "null", ";", "try", "{", "result", "=", "lookupPrefix", "(", "new", "BytesRef", "(", "key", ")", ",", "arc", ")", ";", "}", "catch", "(", "IOException", "bogus", ")", "{", "throw", "new", "RuntimeException", "(", "bogus", ")", ";", "}", "if", "(", "result", "==", "null", "||", "!", "arc", ".", "isFinal", "(", ")", ")", "{", "return", "null", ";", "}", "else", "{", "return", "Integer", ".", "valueOf", "(", "decodeWeight", "(", "result", "+", "arc", ".", "nextFinalOutput", "(", ")", ")", ")", ";", "}", "}" ]
public virtual object Get(string key){if (fst == null){return null;}FST.Arc<long?> arc = new FST.Arc<long?>();long? result = null;try{result = LookupPrefix(new BytesRef(key), arc);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}if (result == null || !arc.IsFinal){return null;}else{return DecodeWeight(result.GetValueOrDefault() + arc.NextFinalOutput.GetValueOrDefault());}}
train
false
6,161
public CreateGameServerGroupResult createGameServerGroup(CreateGameServerGroupRequest request) {request = beforeClientExecution(request);return executeCreateGameServerGroup(request);}
[ "public", "CreateGameServerGroupResult", "createGameServerGroup", "(", "CreateGameServerGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateGameServerGroup", "(", "request", ")", ";", "}" ]
public virtual CreateGameServerGroupResponse CreateGameServerGroup(CreateGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGameServerGroupResponseUnmarshaller.Instance;return Invoke<CreateGameServerGroupResponse>(request, options);}
train
false