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
5,949
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length < 2) {return ErrorEval.VALUE_INVALID;}try {int ix = evaluateFirstArg(args[0], srcRowIndex, srcColumnIndex);if (ix < 1 || ix >= args.length) {return ErrorEval.VALUE_INVALID;}ValueEval result = OperandResolver.getSingleValue(args[ix], srcRowIndex, srcColumnIndex);if (result == MissingArgEval.instance) {return BlankEval.instance;}return result;} catch (EvaluationException e) {return e.getErrorEval();}}
[ "public", "ValueEval", "evaluate", "(", "ValueEval", "[", "]", "args", ",", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ")", "{", "if", "(", "args", ".", "length", "<", "2", ")", "{", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "try", "{", "int", "ix", "=", "evaluateFirstArg", "(", "args", "[", "0", "]", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "if", "(", "ix", "<", "1", "||", "ix", ">=", "args", ".", "length", ")", "{", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "ValueEval", "result", "=", "OperandResolver", ".", "getSingleValue", "(", "args", "[", "ix", "]", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "if", "(", "result", "==", "MissingArgEval", ".", "instance", ")", "{", "return", "BlankEval", ".", "instance", ";", "}", "return", "result", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "}" ]
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length < 2){return ErrorEval.VALUE_INVALID;}try{int ix = EvaluateFirstArg(args[0], srcRowIndex, srcColumnIndex);if (ix < 1 || ix >= args.Length){return ErrorEval.VALUE_INVALID;}ValueEval result = OperandResolver.GetSingleValue(args[ix], srcRowIndex, srcColumnIndex);if (result == MissingArgEval.instance){return BlankEval.instance;}return result;}catch (EvaluationException e){return e.GetErrorEval();}}
train
false
5,950
public DatRecord clone() {return copy();}
[ "public", "DatRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){DatRecord rec = new DatRecord();rec.field_1_options = field_1_options;return rec;}
train
false
5,951
public GlobalReplicationGroup createGlobalReplicationGroup(CreateGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeCreateGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "createGlobalReplicationGroup", "(", "CreateGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateGlobalReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual CreateGlobalReplicationGroupResponse CreateGlobalReplicationGroup(CreateGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<CreateGlobalReplicationGroupResponse>(request, options);}
train
false
5,952
public String getText(Interval interval) {if (interval.a < 0 || interval.b < interval.a - 1) {throw new IllegalArgumentException("invalid interval");}int bufferStartIndex = getBufferStartIndex();if (n > 0 && data[n - 1] == Character.MAX_VALUE) {if (interval.a + interval.length() > bufferStartIndex + n) {throw new IllegalArgumentException("the interval extends past the end of the stream");}}if (interval.a < bufferStartIndex || interval.b >= bufferStartIndex + n) {throw new UnsupportedOperationException("interval "+interval+" outside buffer: "+bufferStartIndex+".."+(bufferStartIndex+n-1));}int i = interval.a - bufferStartIndex;return new String(data, i, interval.length());}
[ "public", "String", "getText", "(", "Interval", "interval", ")", "{", "if", "(", "interval", ".", "a", "<", "0", "||", "interval", ".", "b", "<", "interval", ".", "a", "-", "1", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"invalid interval\"", ")", ";", "}", "int", "bufferStartIndex", "=", "getBufferStartIndex", "(", ")", ";", "if", "(", "n", ">", "0", "&&", "data", "[", "n", "-", "1", "]", "==", "Character", ".", "MAX_VALUE", ")", "{", "if", "(", "interval", ".", "a", "+", "interval", ".", "length", "(", ")", ">", "bufferStartIndex", "+", "n", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"the interval extends past the end of the stream\"", ")", ";", "}", "}", "if", "(", "interval", ".", "a", "<", "bufferStartIndex", "||", "interval", ".", "b", ">=", "bufferStartIndex", "+", "n", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "\"interval \"", "+", "interval", "+", "\" outside buffer: \"", "+", "bufferStartIndex", "+", "\"..\"", "+", "(", "bufferStartIndex", "+", "n", "-", "1", ")", ")", ";", "}", "int", "i", "=", "interval", ".", "a", "-", "bufferStartIndex", ";", "return", "new", "String", "(", "data", ",", "i", ",", "interval", ".", "length", "(", ")", ")", ";", "}" ]
public virtual string GetText(Interval interval){if (interval.a < 0 || interval.b < interval.a - 1){throw new ArgumentException("invalid interval");}int bufferStartIndex = BufferStartIndex;if (n > 0 && data[n - 1] == IntStreamConstants.EOF){if (interval.a + interval.Length > bufferStartIndex + n){throw new ArgumentException("the interval extends past the end of the stream");}}if (interval.a < bufferStartIndex || interval.b >= bufferStartIndex + n){throw new NotSupportedException("interval " + interval + " outside buffer: " + bufferStartIndex + ".." + (bufferStartIndex + n - 1));}int i = interval.a - bufferStartIndex;var sb = new StringBuilder(interval.Length);for (int offset = 0; offset < interval.Length; offset++) {sb.Append(Char.ConvertFromUtf32(data[i + offset]));}return sb.ToString();}
train
false
5,953
public void addClass(String chargroup) {if (chargroup.length() > 0) {char equivChar = chargroup.charAt(0);char[] key = new char[2];key[1] = 0;for (int i = 0; i < chargroup.length(); i++) {key[0] = chargroup.charAt(i);classmap.insert(key, 0, equivChar);}}}
[ "public", "void", "addClass", "(", "String", "chargroup", ")", "{", "if", "(", "chargroup", ".", "length", "(", ")", ">", "0", ")", "{", "char", "equivChar", "=", "chargroup", ".", "charAt", "(", "0", ")", ";", "char", "[", "]", "key", "=", "new", "char", "[", "2", "]", ";", "key", "[", "1", "]", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "chargroup", ".", "length", "(", ")", ";", "i", "++", ")", "{", "key", "[", "0", "]", "=", "chargroup", ".", "charAt", "(", "i", ")", ";", "classmap", ".", "insert", "(", "key", ",", "0", ",", "equivChar", ")", ";", "}", "}", "}" ]
public virtual void AddClass(string chargroup){if (chargroup.Length > 0){char equivChar = chargroup[0];char[] key = new char[2];key[1] = (char)0;for (int i = 0; i < chargroup.Length; i++){key[0] = chargroup[i];m_classmap.Insert(key, 0, equivChar);}}}
train
true
5,954
public MultiPhraseQuery build() {int[] positionsArray = new int[this.positions.size()];for (int i = 0; i < this.positions.size(); ++i) {positionsArray[i] = this.positions.get(i);}Term[][] termArraysArray = termArrays.toArray(new Term[termArrays.size()][]);return new MultiPhraseQuery(field, termArraysArray, positionsArray, slop);}
[ "public", "MultiPhraseQuery", "build", "(", ")", "{", "int", "[", "]", "positionsArray", "=", "new", "int", "[", "this", ".", "positions", ".", "size", "(", ")", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "this", ".", "positions", ".", "size", "(", ")", ";", "++", "i", ")", "{", "positionsArray", "[", "i", "]", "=", "this", ".", "positions", ".", "get", "(", "i", ")", ";", "}", "Term", "[", "]", "[", "]", "termArraysArray", "=", "termArrays", ".", "toArray", "(", "new", "Term", "[", "termArrays", ".", "size", "(", ")", "]", "[", "]", ")", ";", "return", "new", "MultiPhraseQuery", "(", "field", ",", "termArraysArray", ",", "positionsArray", ",", "slop", ")", ";", "}" ]
public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder<BytesRef> builder = new Builder<BytesRef>(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);}
train
false
5,955
public DFRSimilarity(BasicModel basicModel,AfterEffect afterEffect,Normalization normalization) {if (basicModel == null || afterEffect == null || normalization == null) {throw new NullPointerException("null parameters not allowed.");}this.basicModel = basicModel;this.afterEffect = afterEffect;this.normalization = normalization;}
[ "public", "DFRSimilarity", "(", "BasicModel", "basicModel", ",", "AfterEffect", "afterEffect", ",", "Normalization", "normalization", ")", "{", "if", "(", "basicModel", "==", "null", "||", "afterEffect", "==", "null", "||", "normalization", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", "\"null parameters not allowed.\"", ")", ";", "}", "this", ".", "basicModel", "=", "basicModel", ";", "this", ".", "afterEffect", "=", "afterEffect", ";", "this", ".", "normalization", "=", "normalization", ";", "}" ]
public DFRSimilarity(BasicModel basicModel, AfterEffect afterEffect, Normalization normalization){if (basicModel == null || afterEffect == null || normalization == null){throw new System.NullReferenceException("null parameters not allowed.");}this.m_basicModel = basicModel;this.m_afterEffect = afterEffect;this.m_normalization = normalization;}
train
false
5,956
public ResetSnapshotAttributeRequest(String snapshotId, SnapshotAttributeName attribute) {setSnapshotId(snapshotId);setAttribute(attribute.toString());}
[ "public", "ResetSnapshotAttributeRequest", "(", "String", "snapshotId", ",", "SnapshotAttributeName", "attribute", ")", "{", "setSnapshotId", "(", "snapshotId", ")", ";", "setAttribute", "(", "attribute", ".", "toString", "(", ")", ")", ";", "}" ]
public ResetSnapshotAttributeRequest(string snapshotId, SnapshotAttributeName attribute){_snapshotId = snapshotId;_attribute = attribute;}
train
false
5,958
public String getScheme() {return scheme;}
[ "public", "String", "getScheme", "(", ")", "{", "return", "scheme", ";", "}" ]
public string getScheme(){return scheme;}
train
false
5,959
public void seekExact(long ord) {throw new UnsupportedOperationException();}
[ "public", "void", "seekExact", "(", "long", "ord", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public override void SeekExact(long ord){throw new System.NotSupportedException();}
train
false
5,960
public XPathElement(String nodeName) {this.nodeName = nodeName;}
[ "public", "XPathElement", "(", "String", "nodeName", ")", "{", "this", ".", "nodeName", "=", "nodeName", ";", "}" ]
public XPathElement(string nodeName){this.nodeName = nodeName;}
train
false
5,961
public DeleteAccountResult deleteAccount(DeleteAccountRequest request) {request = beforeClientExecution(request);return executeDeleteAccount(request);}
[ "public", "DeleteAccountResult", "deleteAccount", "(", "DeleteAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAccount", "(", "request", ")", ";", "}" ]
public virtual DeleteAccountResponse DeleteAccount(DeleteAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccountResponseUnmarshaller.Instance;return Invoke<DeleteAccountResponse>(request, options);}
train
true
5,962
public boolean matches(ParseTree tree, ParseTreePattern pattern) {MultiMap<String, ParseTree> labels = new MultiMap<String, ParseTree>();ParseTree mismatchedNode = matchImpl(tree, pattern.getPatternTree(), labels);return mismatchedNode == null;}
[ "public", "boolean", "matches", "(", "ParseTree", "tree", ",", "ParseTreePattern", "pattern", ")", "{", "MultiMap", "<", "String", ",", "ParseTree", ">", "labels", "=", "new", "MultiMap", "<", "String", ",", "ParseTree", ">", "(", ")", ";", "ParseTree", "mismatchedNode", "=", "matchImpl", "(", "tree", ",", "pattern", ".", "getPatternTree", "(", ")", ",", "labels", ")", ";", "return", "mismatchedNode", "==", "null", ";", "}" ]
public virtual bool Matches(IParseTree tree, ParseTreePattern pattern){MultiMap<string, IParseTree> labels = new MultiMap<string, IParseTree>();IParseTree mismatchedNode = MatchImpl(tree, pattern.PatternTree, labels);return mismatchedNode == null;}
train
false
5,963
public PredictionContext get(PredictionContext ctx) {return cache.get(ctx);}
[ "public", "PredictionContext", "get", "(", "PredictionContext", "ctx", ")", "{", "return", "cache", ".", "get", "(", "ctx", ")", ";", "}" ]
public PredictionContext Get(PredictionContext ctx){return cache.Get(ctx);}
train
false
5,964
public SpotPlacement(String availabilityZone) {setAvailabilityZone(availabilityZone);}
[ "public", "SpotPlacement", "(", "String", "availabilityZone", ")", "{", "setAvailabilityZone", "(", "availabilityZone", ")", ";", "}" ]
public SpotPlacement(string availabilityZone){_availabilityZone = availabilityZone;}
train
false
5,965
public DescribeFleetInstancesResult describeFleetInstances(DescribeFleetInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeFleetInstances(request);}
[ "public", "DescribeFleetInstancesResult", "describeFleetInstances", "(", "DescribeFleetInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFleetInstances", "(", "request", ")", ";", "}" ]
public virtual DescribeFleetInstancesResponse DescribeFleetInstances(DescribeFleetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetInstancesResponseUnmarshaller.Instance;return Invoke<DescribeFleetInstancesResponse>(request, options);}
train
true
5,966
public void setWorkingTreeIterator(WorkingTreeIterator workingTreeIterator) {this.workingTreeIterator = workingTreeIterator;}
[ "public", "void", "setWorkingTreeIterator", "(", "WorkingTreeIterator", "workingTreeIterator", ")", "{", "this", ".", "workingTreeIterator", "=", "workingTreeIterator", ";", "}" ]
public virtual void SetWorkingTreeIterator(WorkingTreeIterator workingTreeIterator){this.workingTreeIterator = workingTreeIterator;}
train
false
5,967
public static long pop_array(long[] arr, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr[i]);}return popCount;}
[ "public", "static", "long", "pop_array", "(", "long", "[", "]", "arr", ",", "int", "wordOffset", ",", "int", "numWords", ")", "{", "long", "popCount", "=", "0", ";", "for", "(", "int", "i", "=", "wordOffset", ",", "end", "=", "wordOffset", "+", "numWords", ";", "i", "<", "end", ";", "++", "i", ")", "{", "popCount", "+=", "Long", ".", "bitCount", "(", "arr", "[", "i", "]", ")", ";", "}", "return", "popCount", ";", "}" ]
public static long Pop_Array(long[] arr, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += arr[i].PopCount();}return popCount;}
train
true
5,968
public static FileKey lenient(File directory, FS fs) {final File gitdir = resolve(directory, fs);return new FileKey(gitdir != null ? gitdir : directory, fs);}
[ "public", "static", "FileKey", "lenient", "(", "File", "directory", ",", "FS", "fs", ")", "{", "final", "File", "gitdir", "=", "resolve", "(", "directory", ",", "fs", ")", ";", "return", "new", "FileKey", "(", "gitdir", "!=", "null", "?", "gitdir", ":", "directory", ",", "fs", ")", ";", "}" ]
public static RepositoryCache.FileKey Lenient(FilePath directory, FS fs){FilePath gitdir = Resolve(directory, fs);return new RepositoryCache.FileKey(gitdir != null ? gitdir : directory, fs);}
train
false
5,970
public RegisterImageRequest(String imageLocation) {setImageLocation(imageLocation);}
[ "public", "RegisterImageRequest", "(", "String", "imageLocation", ")", "{", "setImageLocation", "(", "imageLocation", ")", ";", "}" ]
public RegisterImageRequest(string imageLocation){_imageLocation = imageLocation;}
train
false
5,971
public void write(String s) {reserve(s.length());s.getChars(0,s.length(),buf, len);len +=s.length();}
[ "public", "void", "write", "(", "String", "s", ")", "{", "reserve", "(", "s", ".", "length", "(", ")", ")", ";", "s", ".", "getChars", "(", "0", ",", "s", ".", "length", "(", ")", ",", "buf", ",", "len", ")", ";", "len", "+=", "s", ".", "length", "(", ")", ";", "}" ]
public virtual void Write(string s){EnsureCapacity(s.Length);s.CopyTo(0, m_buf, m_len, s.Length - 0);m_len += s.Length;}
train
true
5,972
public RefCountedRevision(Revision revision) {this.revision = revision;}
[ "public", "RefCountedRevision", "(", "Revision", "revision", ")", "{", "this", ".", "revision", "=", "revision", ";", "}" ]
public RefCountedRevision(IRevision revision){Revision = revision;}
train
false
5,973
public ListTagsForResourcesResult listTagsForResources(ListTagsForResourcesRequest request) {request = beforeClientExecution(request);return executeListTagsForResources(request);}
[ "public", "ListTagsForResourcesResult", "listTagsForResources", "(", "ListTagsForResourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTagsForResources", "(", "request", ")", ";", "}" ]
public virtual ListTagsForResourcesResponse ListTagsForResources(ListTagsForResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourcesResponseUnmarshaller.Instance;return Invoke<ListTagsForResourcesResponse>(request, options);}
train
true
5,974
public byte readByte() {return bytes[pos++];}
[ "public", "byte", "readByte", "(", ")", "{", "return", "bytes", "[", "pos", "++", "]", ";", "}" ]
public override byte ReadByte(){return bytes[pos++];}
train
false
5,975
public GlobalReplicationGroup deleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "deleteGlobalReplicationGroup", "(", "DeleteGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteGlobalReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteGlobalReplicationGroupResponse DeleteGlobalReplicationGroup(DeleteGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<DeleteGlobalReplicationGroupResponse>(request, options);}
train
false
5,976
public IntBuffer asReadOnlyBuffer() {return duplicate();}
[ "public", "IntBuffer", "asReadOnlyBuffer", "(", ")", "{", "return", "duplicate", "(", ")", ";", "}" ]
public override java.nio.IntBuffer asReadOnlyBuffer(){return duplicate();}
train
false
5,977
public DescribeFileSystemPolicyResult describeFileSystemPolicy(DescribeFileSystemPolicyRequest request) {request = beforeClientExecution(request);return executeDescribeFileSystemPolicy(request);}
[ "public", "DescribeFileSystemPolicyResult", "describeFileSystemPolicy", "(", "DescribeFileSystemPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFileSystemPolicy", "(", "request", ")", ";", "}" ]
public virtual DescribeFileSystemPolicyResponse DescribeFileSystemPolicy(DescribeFileSystemPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFileSystemPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFileSystemPolicyResponseUnmarshaller.Instance;return Invoke<DescribeFileSystemPolicyResponse>(request, options);}
train
false
5,978
public ListAttributesResult listAttributes(ListAttributesRequest request) {request = beforeClientExecution(request);return executeListAttributes(request);}
[ "public", "ListAttributesResult", "listAttributes", "(", "ListAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListAttributes", "(", "request", ")", ";", "}" ]
public virtual ListAttributesResponse ListAttributes(ListAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttributesResponseUnmarshaller.Instance;return Invoke<ListAttributesResponse>(request, options);}
train
true
5,979
public ModifyStrategyTargetRequest() {super("aegis", "2016-11-11", "ModifyStrategyTarget", "vipaegis");setMethod(MethodType.POST);}
[ "public", "ModifyStrategyTargetRequest", "(", ")", "{", "super", "(", "\"aegis\"", ",", "\"2016-11-11\"", ",", "\"ModifyStrategyTarget\"", ",", "\"vipaegis\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public ModifyStrategyTargetRequest(): base("aegis", "2016-11-11", "ModifyStrategyTarget", "vipaegis", "openAPI"){Method = MethodType.POST;}
train
false
5,980
public void removeFontRecord(FontRecord rec) {records.remove(rec); numfonts--;}
[ "public", "void", "removeFontRecord", "(", "FontRecord", "rec", ")", "{", "records", ".", "remove", "(", "rec", ")", ";", "numfonts", "--", ";", "}" ]
public void RemoveFontRecord(FontRecord rec){records.Remove(rec); numfonts--;}
train
false
5,981
public static Class<? extends TokenFilterFactory> lookupClass(String name) {return loader.lookupClass(name);}
[ "public", "static", "Class", "<", "?", "extends", "TokenFilterFactory", ">", "lookupClass", "(", "String", "name", ")", "{", "return", "loader", ".", "lookupClass", "(", "name", ")", ";", "}" ]
public static Type LookupClass(string name){return loader.LookupClass(name);}
train
false
5,982
public void reset(TermsEnum terms, BytesRef term) {this.terms = terms;current = term;}
[ "public", "void", "reset", "(", "TermsEnum", "terms", ",", "BytesRef", "term", ")", "{", "this", ".", "terms", "=", "terms", ";", "current", "=", "term", ";", "}" ]
public void Reset(TermsEnum terms, BytesRef term){this.Terms = terms;Current = term;}
train
false
5,983
public LinkedDataRecord getDataValues(){return dataValues;}
[ "public", "LinkedDataRecord", "getDataValues", "(", ")", "{", "return", "dataValues", ";", "}" ]
public BRAIRecord GetDataValues(){return dataValues;}
train
false
5,984
public synchronized static DefaultProfile getProfile(String regionId, ICredentialProvider icredential) {profile = new DefaultProfile(regionId, icredential);return profile;}
[ "public", "synchronized", "static", "DefaultProfile", "getProfile", "(", "String", "regionId", ",", "ICredentialProvider", "icredential", ")", "{", "profile", "=", "new", "DefaultProfile", "(", "regionId", ",", "icredential", ")", ";", "return", "profile", ";", "}" ]
public static DefaultProfile GetProfile(string regionId, ICredentialProvider icredential){_profile = new DefaultProfile(regionId, icredential);return _profile;}
train
false
5,985
public ListFieldLevelEncryptionProfilesResult listFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request) {request = beforeClientExecution(request);return executeListFieldLevelEncryptionProfiles(request);}
[ "public", "ListFieldLevelEncryptionProfilesResult", "listFieldLevelEncryptionProfiles", "(", "ListFieldLevelEncryptionProfilesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListFieldLevelEncryptionProfiles", "(", "request", ")", ";", "}" ]
public virtual ListFieldLevelEncryptionProfilesResponse ListFieldLevelEncryptionProfiles(ListFieldLevelEncryptionProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFieldLevelEncryptionProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFieldLevelEncryptionProfilesResponseUnmarshaller.Instance;return Invoke<ListFieldLevelEncryptionProfilesResponse>(request, options);}
train
true
5,986
public RegisterTaskDefinitionResult registerTaskDefinition(RegisterTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeRegisterTaskDefinition(request);}
[ "public", "RegisterTaskDefinitionResult", "registerTaskDefinition", "(", "RegisterTaskDefinitionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRegisterTaskDefinition", "(", "request", ")", ";", "}" ]
public virtual RegisterTaskDefinitionResponse RegisterTaskDefinition(RegisterTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterTaskDefinitionResponseUnmarshaller.Instance;return Invoke<RegisterTaskDefinitionResponse>(request, options);}
train
true
5,987
public String toString() {return String.format("type(%d)", type);}
[ "public", "String", "toString", "(", ")", "{", "return", "String", ".", "format", "(", "\"type(%d)\"", ",", "type", ")", ";", "}" ]
public override string ToString(){return string.Format("type({0})", type);}
train
false
5,988
public DisableEnhancedMonitoringResult disableEnhancedMonitoring(DisableEnhancedMonitoringRequest request) {request = beforeClientExecution(request);return executeDisableEnhancedMonitoring(request);}
[ "public", "DisableEnhancedMonitoringResult", "disableEnhancedMonitoring", "(", "DisableEnhancedMonitoringRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisableEnhancedMonitoring", "(", "request", ")", ";", "}" ]
public virtual DisableEnhancedMonitoringResponse DisableEnhancedMonitoring(DisableEnhancedMonitoringRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableEnhancedMonitoringRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableEnhancedMonitoringResponseUnmarshaller.Instance;return Invoke<DisableEnhancedMonitoringResponse>(request, options);}
train
true
5,989
public NodeHash(FST<T> fst, FST.BytesReader in) {table = new PagedGrowableWriter(16, 1<<27, 8, PackedInts.COMPACT);mask = 15;this.fst = fst;this.in = in;}
[ "public", "NodeHash", "(", "FST", "<", "T", ">", "fst", ",", "FST", ".", "BytesReader", "in", ")", "{", "table", "=", "new", "PagedGrowableWriter", "(", "16", ",", "1", "<<", "27", ",", "8", ",", "PackedInts", ".", "COMPACT", ")", ";", "mask", "=", "15", ";", "this", ".", "fst", "=", "fst", ";", "this", ".", "in", "=", "in", ";", "}" ]
public NodeHash(FST<T> fst, FST.BytesReader input){table = new PagedGrowableWriter(16, 1 << 30, 8, PackedInt32s.COMPACT);mask = 15;this.fst = fst;this.input = input;}
train
false
5,990
public static final String toString(ObjectId i) {return i != null ? i.name() : ZEROID_STR;}
[ "public", "static", "final", "String", "toString", "(", "ObjectId", "i", ")", "{", "return", "i", "!=", "null", "?", "i", ".", "name", "(", ")", ":", "ZEROID_STR", ";", "}" ]
public static string ToString(NGit.ObjectId i){return i != null ? i.Name : ZEROID_STR;}
train
false
5,991
public LittleEndianOutput createDelayedOutput(int size) {return this;}
[ "public", "LittleEndianOutput", "createDelayedOutput", "(", "int", "size", ")", "{", "return", "this", ";", "}" ]
public ILittleEndianOutput CreateDelayedOutput(int size){return this;}
train
false
5,992
public String toFormulaString(FormulaRenderingWorkbook book) {return book.getNameText(this);}
[ "public", "String", "toFormulaString", "(", "FormulaRenderingWorkbook", "book", ")", "{", "return", "book", ".", "getNameText", "(", "this", ")", ";", "}" ]
public String ToFormulaString(IFormulaRenderingWorkbook book){return book.GetNameText(this);}
train
false
5,994
public ListTagsResult listTags(ListTagsRequest request) {request = beforeClientExecution(request);return executeListTags(request);}
[ "public", "ListTagsResult", "listTags", "(", "ListTagsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTags", "(", "request", ")", ";", "}" ]
public virtual ListTagsResponse ListTags(ListTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsResponseUnmarshaller.Instance;return Invoke<ListTagsResponse>(request, options);}
train
true
5,995
public ListTypeVersionsResult listTypeVersions(ListTypeVersionsRequest request) {request = beforeClientExecution(request);return executeListTypeVersions(request);}
[ "public", "ListTypeVersionsResult", "listTypeVersions", "(", "ListTypeVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTypeVersions", "(", "request", ")", ";", "}" ]
public virtual ListTypeVersionsResponse ListTypeVersions(ListTypeVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeVersionsResponseUnmarshaller.Instance;return Invoke<ListTypeVersionsResponse>(request, options);}
train
false
5,996
public ObjectLinkRecord(RecordInputStream in) {field_1_anchorId = in.readShort();field_2_link1 = in.readShort();field_3_link2 = in.readShort();}
[ "public", "ObjectLinkRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_anchorId", "=", "in", ".", "readShort", "(", ")", ";", "field_2_link1", "=", "in", ".", "readShort", "(", ")", ";", "field_3_link2", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public ObjectLinkRecord(RecordInputStream in1){field_1_anchorId = in1.ReadShort();field_2_link1 = in1.ReadShort();field_3_link2 = in1.ReadShort();}
train
false
5,997
public String getPromptText() {return promptText;}
[ "public", "String", "getPromptText", "(", ")", "{", "return", "promptText", ";", "}" ]
public virtual string GetPromptText(){return promptText;}
train
false
5,998
public static String toLowerCase(String in) {final StringBuilder r = new StringBuilder(in.length());for (int i = 0; i < in.length(); i++)r.append(toLowerCase(in.charAt(i)));return r.toString();}
[ "public", "static", "String", "toLowerCase", "(", "String", "in", ")", "{", "final", "StringBuilder", "r", "=", "new", "StringBuilder", "(", "in", ".", "length", "(", ")", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "in", ".", "length", "(", ")", ";", "i", "++", ")", "r", ".", "append", "(", "toLowerCase", "(", "in", ".", "charAt", "(", "i", ")", ")", ")", ";", "return", "r", ".", "toString", "(", ")", ";", "}" ]
public static string ToLowerCase(string @in){StringBuilder r = new StringBuilder(@in.Length);for (int i = 0; i < @in.Length; i++){r.Append(ToLowerCase(@in[i]));}return r.ToString();}
train
false
5,999
public static boolean isBeginRecord(int sid) {return sid == UserSViewBegin.sid;}
[ "public", "static", "boolean", "isBeginRecord", "(", "int", "sid", ")", "{", "return", "sid", "==", "UserSViewBegin", ".", "sid", ";", "}" ]
public static bool IsBeginRecord(int sid){return sid == UserSViewBegin.sid;}
train
false
6,000
public GetInstanceMetricDataResult getInstanceMetricData(GetInstanceMetricDataRequest request) {request = beforeClientExecution(request);return executeGetInstanceMetricData(request);}
[ "public", "GetInstanceMetricDataResult", "getInstanceMetricData", "(", "GetInstanceMetricDataRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetInstanceMetricData", "(", "request", ")", ";", "}" ]
public virtual GetInstanceMetricDataResponse GetInstanceMetricData(GetInstanceMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceMetricDataResponseUnmarshaller.Instance;return Invoke<GetInstanceMetricDataResponse>(request, options);}
train
true
6,002
public NGramDistance(int size) {this.n = size;}
[ "public", "NGramDistance", "(", "int", "size", ")", "{", "this", ".", "n", "=", "size", ";", "}" ]
public NGramDistance(int size){this.n = size;}
train
false
6,003
public AllocateConnectionOnInterconnectResult allocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request) {request = beforeClientExecution(request);return executeAllocateConnectionOnInterconnect(request);}
[ "public", "AllocateConnectionOnInterconnectResult", "allocateConnectionOnInterconnect", "(", "AllocateConnectionOnInterconnectRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAllocateConnectionOnInterconnect", "(", "request", ")", ";", "}" ]
public virtual AllocateConnectionOnInterconnectResponse AllocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateConnectionOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateConnectionOnInterconnectResponseUnmarshaller.Instance;return Invoke<AllocateConnectionOnInterconnectResponse>(request, options);}
train
false
6,005
public void serialize(LittleEndianOutput out) {_range.serialize(out);serializeExtraData(out);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "_range", ".", "serialize", "(", "out", ")", ";", "serializeExtraData", "(", "out", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){_range.Serialize(out1);SerializeExtraData(out1);}
train
false
6,006
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return isDefaultField(field)? "/"+text+"/": field + ":/" + text + "/";}
[ "public", "CharSequence", "toQueryString", "(", "EscapeQuerySyntax", "escapeSyntaxParser", ")", "{", "return", "isDefaultField", "(", "field", ")", "?", "\"/\"", "+", "text", "+", "\"/\"", ":", "field", "+", "\":/\"", "+", "text", "+", "\"/\"", ";", "}" ]
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return IsDefaultField(field) ? "/" + text + "/" : field + ":/" + text + "/";}
train
false
6,007
public static boolean isRowBlockRecord(int sid) {switch (sid) {case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;}
[ "public", "static", "boolean", "isRowBlockRecord", "(", "int", "sid", ")", "{", "switch", "(", "sid", ")", "{", "case", "RowRecord", ".", "sid", ":", "case", "BlankRecord", ".", "sid", ":", "case", "BoolErrRecord", ".", "sid", ":", "case", "FormulaRecord", ".", "sid", ":", "case", "LabelRecord", ".", "sid", ":", "case", "LabelSSTRecord", ".", "sid", ":", "case", "NumberRecord", ".", "sid", ":", "case", "RKRecord", ".", "sid", ":", "case", "ArrayRecord", ".", "sid", ":", "case", "SharedFormulaRecord", ".", "sid", ":", "case", "TableRecord", ".", "sid", ":", "return", "true", ";", "}", "return", "false", ";", "}" ]
public static bool IsRowBlockRecord(int sid){switch (sid){case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;}
train
false
6,008
public static final int endOfParagraph(byte[] b, int start) {int ptr = start;final int sz = b.length;while (ptr < sz && (b[ptr] != '\n' && b[ptr] != '\r'))ptr = nextLF(b, ptr);if (ptr > start && b[ptr - 1] == '\n')ptr--;if (ptr > start && b[ptr - 1] == '\r')ptr--;return ptr;}
[ "public", "static", "final", "int", "endOfParagraph", "(", "byte", "[", "]", "b", ",", "int", "start", ")", "{", "int", "ptr", "=", "start", ";", "final", "int", "sz", "=", "b", ".", "length", ";", "while", "(", "ptr", "<", "sz", "&&", "(", "b", "[", "ptr", "]", "!=", "'\\n'", "&&", "b", "[", "ptr", "]", "!=", "'\\r'", ")", ")", "ptr", "=", "nextLF", "(", "b", ",", "ptr", ")", ";", "if", "(", "ptr", ">", "start", "&&", "b", "[", "ptr", "-", "1", "]", "==", "'\\n'", ")", "ptr", "--", ";", "if", "(", "ptr", ">", "start", "&&", "b", "[", "ptr", "-", "1", "]", "==", "'\\r'", ")", "ptr", "--", ";", "return", "ptr", ";", "}" ]
public static int EndOfParagraph(byte[] b, int start){int ptr = start;int sz = b.Length;while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}while (0 < ptr && start < ptr && b[ptr - 1] == '\n'){ptr--;}return ptr;}
train
false
6,009
public VerifyDomainDkimResult verifyDomainDkim(VerifyDomainDkimRequest request) {request = beforeClientExecution(request);return executeVerifyDomainDkim(request);}
[ "public", "VerifyDomainDkimResult", "verifyDomainDkim", "(", "VerifyDomainDkimRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeVerifyDomainDkim", "(", "request", ")", ";", "}" ]
public virtual VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyDomainDkimRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance;return Invoke<VerifyDomainDkimResponse>(request, options);}
train
true
6,010
public boolean equals(Object o) {if (o instanceof HSSFRichTextString) {return _string.equals(((HSSFRichTextString)o)._string);}return false;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "o", "instanceof", "HSSFRichTextString", ")", "{", "return", "_string", ".", "equals", "(", "(", "(", "HSSFRichTextString", ")", "o", ")", ".", "_string", ")", ";", "}", "return", "false", ";", "}" ]
public override bool Equals(Object o){if (o is HSSFRichTextString){return _string.Equals(((HSSFRichTextString)o)._string);}return false;}
train
false
6,011
public boolean equals(Object obj) {if (!(obj instanceof RowColKey)) {return false;}RowColKey other = (RowColKey) obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "!", "(", "obj", "instanceof", "RowColKey", ")", ")", "{", "return", "false", ";", "}", "RowColKey", "other", "=", "(", "RowColKey", ")", "obj", ";", "return", "_rowIndex", "==", "other", ".", "_rowIndex", "&&", "_columnIndex", "==", "other", ".", "_columnIndex", ";", "}" ]
public override bool Equals(Object obj){RowColKey other = (RowColKey)obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;}
train
false
6,012
public GetIdentityPoolConfigurationResult getIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolConfiguration(request);}
[ "public", "GetIdentityPoolConfigurationResult", "getIdentityPoolConfiguration", "(", "GetIdentityPoolConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetIdentityPoolConfiguration", "(", "request", ")", ";", "}" ]
public virtual GetIdentityPoolConfigurationResponse GetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoolConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoolConfigurationResponseUnmarshaller.Instance;return Invoke<GetIdentityPoolConfigurationResponse>(request, options);}
train
true
6,013
public DeleteTrafficMirrorFilterResult deleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilter(request);}
[ "public", "DeleteTrafficMirrorFilterResult", "deleteTrafficMirrorFilter", "(", "DeleteTrafficMirrorFilterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTrafficMirrorFilter", "(", "request", ")", ";", "}" ]
public virtual DeleteTrafficMirrorFilterResponse DeleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorFilterResponseUnmarshaller.Instance;return Invoke<DeleteTrafficMirrorFilterResponse>(request, options);}
train
false
6,014
public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException {assert info.hasDeletions();BytesRefBuilder scratch = new BytesRefBuilder();CharsRefBuilder scratchUTF16 = new CharsRefBuilder();String fileName = IndexFileNames.fileNameFromGeneration(info.info.name, LIVEDOCS_EXTENSION, info.getDelGen());ChecksumIndexInput in = null;boolean success = false;try {in = dir.openChecksumInput(fileName, context);SimpleTextUtil.readLine(in, scratch);assert StringHelper.startsWith(scratch.get(), SIZE);int size = parseIntAt(scratch.get(), SIZE.length, scratchUTF16);BitSet bits = new BitSet(size);SimpleTextUtil.readLine(in, scratch);while (!scratch.get().equals(END)) {assert StringHelper.startsWith(scratch.get(), DOC);int docid = parseIntAt(scratch.get(), DOC.length, scratchUTF16);bits.set(docid);SimpleTextUtil.readLine(in, scratch);}SimpleTextUtil.checkFooter(in);success = true;return new SimpleTextBits(bits, size);} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}
[ "public", "Bits", "readLiveDocs", "(", "Directory", "dir", ",", "SegmentCommitInfo", "info", ",", "IOContext", "context", ")", "throws", "IOException", "{", "assert", "info", ".", "hasDeletions", "(", ")", ";", "BytesRefBuilder", "scratch", "=", "new", "BytesRefBuilder", "(", ")", ";", "CharsRefBuilder", "scratchUTF16", "=", "new", "CharsRefBuilder", "(", ")", ";", "String", "fileName", "=", "IndexFileNames", ".", "fileNameFromGeneration", "(", "info", ".", "info", ".", "name", ",", "LIVEDOCS_EXTENSION", ",", "info", ".", "getDelGen", "(", ")", ")", ";", "ChecksumIndexInput", "in", "=", "null", ";", "boolean", "success", "=", "false", ";", "try", "{", "in", "=", "dir", ".", "openChecksumInput", "(", "fileName", ",", "context", ")", ";", "SimpleTextUtil", ".", "readLine", "(", "in", ",", "scratch", ")", ";", "assert", "StringHelper", ".", "startsWith", "(", "scratch", ".", "get", "(", ")", ",", "SIZE", ")", ";", "int", "size", "=", "parseIntAt", "(", "scratch", ".", "get", "(", ")", ",", "SIZE", ".", "length", ",", "scratchUTF16", ")", ";", "BitSet", "bits", "=", "new", "BitSet", "(", "size", ")", ";", "SimpleTextUtil", ".", "readLine", "(", "in", ",", "scratch", ")", ";", "while", "(", "!", "scratch", ".", "get", "(", ")", ".", "equals", "(", "END", ")", ")", "{", "assert", "StringHelper", ".", "startsWith", "(", "scratch", ".", "get", "(", ")", ",", "DOC", ")", ";", "int", "docid", "=", "parseIntAt", "(", "scratch", ".", "get", "(", ")", ",", "DOC", ".", "length", ",", "scratchUTF16", ")", ";", "bits", ".", "set", "(", "docid", ")", ";", "SimpleTextUtil", ".", "readLine", "(", "in", ",", "scratch", ")", ";", "}", "SimpleTextUtil", ".", "checkFooter", "(", "in", ")", ";", "success", "=", "true", ";", "return", "new", "SimpleTextBits", "(", "bits", ",", "size", ")", ";", "}", "finally", "{", "if", "(", "success", ")", "{", "IOUtils", ".", "close", "(", "in", ")", ";", "}", "else", "{", "IOUtils", ".", "closeWhileHandlingException", "(", "in", ")", ";", "}", "}", "}" ]
public override IBits ReadLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context){Debug.Assert(info.HasDeletions);var scratch = new BytesRef();var scratchUtf16 = new CharsRef();var fileName = IndexFileNames.FileNameFromGeneration(info.Info.Name, LIVEDOCS_EXTENSION, info.DelGen);ChecksumIndexInput input = null;var success = false;try{input = dir.OpenChecksumInput(fileName, context);SimpleTextUtil.ReadLine(input, scratch);Debug.Assert(StringHelper.StartsWith(scratch, SIZE));var size = ParseInt32At(scratch, SIZE.Length, scratchUtf16);var bits = new BitArray(size);SimpleTextUtil.ReadLine(input, scratch);while (!scratch.Equals(END)){Debug.Assert(StringHelper.StartsWith(scratch, DOC));var docid = ParseInt32At(scratch, DOC.Length, scratchUtf16);bits.SafeSet(docid, true);SimpleTextUtil.ReadLine(input, scratch);}SimpleTextUtil.CheckFooter(input);success = true;return new SimpleTextBits(bits, size);}finally{if (success){IOUtils.Dispose(input);}else{IOUtils.DisposeWhileHandlingException(input);}}}
train
false
6,015
public CreateConferenceProviderResult createConferenceProvider(CreateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeCreateConferenceProvider(request);}
[ "public", "CreateConferenceProviderResult", "createConferenceProvider", "(", "CreateConferenceProviderRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateConferenceProvider", "(", "request", ")", ";", "}" ]
public virtual CreateConferenceProviderResponse CreateConferenceProvider(CreateConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConferenceProviderResponseUnmarshaller.Instance;return Invoke<CreateConferenceProviderResponse>(request, options);}
train
true
6,016
public SimpleQQParser(String qqNames[], String indexField) {this.qqNames = qqNames;this.indexField = indexField;}
[ "public", "SimpleQQParser", "(", "String", "qqNames", "[", "]", ",", "String", "indexField", ")", "{", "this", ".", "qqNames", "=", "qqNames", ";", "this", ".", "indexField", "=", "indexField", ";", "}" ]
public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }, indexField);
train
false
6,017
public boolean isCaseSensitive() {return false;}
[ "public", "boolean", "isCaseSensitive", "(", ")", "{", "return", "false", ";", "}" ]
public override bool IsCaseSensitive(){return false;}
train
false
6,018
public TokenFilter create(TokenStream input) {return new HyphenationCompoundWordTokenFilter(input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}
[ "public", "TokenFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "HyphenationCompoundWordTokenFilter", "(", "input", ",", "hyphenator", ",", "dictionary", ",", "minWordSize", ",", "minSubwordSize", ",", "maxSubwordSize", ",", "onlyLongestMatch", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new HyphenationCompoundWordTokenFilter(m_luceneMatchVersion, input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}
train
false
6,019
public TokenStream create(TokenStream input) {return new JapaneseBaseFormFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "JapaneseBaseFormFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new JapaneseBaseFormFilter(input);}
train
false
6,020
public OrderedATNConfigSet() {this.configLookup = new LexerConfigHashSet();}
[ "public", "OrderedATNConfigSet", "(", ")", "{", "this", ".", "configLookup", "=", "new", "LexerConfigHashSet", "(", ")", ";", "}" ]
public OrderedATNConfigSet(){this.configLookup = new LexerConfigHashSet();}
train
false
6,021
public static ValueEval dereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum) {ValueEval value;try {value = OperandResolver.getSingleValue(evaluationResult, srcRowNum, srcColNum);} catch (EvaluationException e) {return e.getErrorEval();}if (value == BlankEval.instance) {return NumberEval.ZERO;}return value;}
[ "public", "static", "ValueEval", "dereferenceResult", "(", "ValueEval", "evaluationResult", ",", "int", "srcRowNum", ",", "int", "srcColNum", ")", "{", "ValueEval", "value", ";", "try", "{", "value", "=", "OperandResolver", ".", "getSingleValue", "(", "evaluationResult", ",", "srcRowNum", ",", "srcColNum", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "if", "(", "value", "==", "BlankEval", ".", "instance", ")", "{", "return", "NumberEval", ".", "ZERO", ";", "}", "return", "value", ";", "}" ]
public static ValueEval DereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum){ValueEval value;try{value = OperandResolver.GetSingleValue(evaluationResult, srcRowNum, srcColNum);}catch (EvaluationException e){return e.GetErrorEval();}if (value == BlankEval.instance){return NumberEval.ZERO;}return value;}
train
false
6,022
public GetGroupRequest(String groupName) {setGroupName(groupName);}
[ "public", "GetGroupRequest", "(", "String", "groupName", ")", "{", "setGroupName", "(", "groupName", ")", ";", "}" ]
public GetGroupRequest(string groupName){_groupName = groupName;}
train
false
6,023
public void narrowSearch(int midIx, boolean isLessThan) {if(isLessThan) {_highIx = midIx;} else {_lowIx = midIx;}}
[ "public", "void", "narrowSearch", "(", "int", "midIx", ",", "boolean", "isLessThan", ")", "{", "if", "(", "isLessThan", ")", "{", "_highIx", "=", "midIx", ";", "}", "else", "{", "_lowIx", "=", "midIx", ";", "}", "}" ]
public void NarrowSearch(int midIx, bool isLessThan){if (isLessThan){_highIx = midIx;}else{_lowIx = midIx;}}
train
false
6,025
public String toString() {return cfAggregate.toString();}
[ "public", "String", "toString", "(", ")", "{", "return", "cfAggregate", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){return cfAggregate.ToString();}
train
false
6,026
public void setConfig(Config config) {super.setConfig(config);random = new Random(config.get("rand.seed", 13));maxDocFacets = config.get("max.doc.facets", 10);maxDims = config.get("max.doc.facets.dims", 5);maxFacetDepth = config.get("max.facet.depth", 3);if (maxFacetDepth < 2) {throw new IllegalArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}
[ "public", "void", "setConfig", "(", "Config", "config", ")", "{", "super", ".", "setConfig", "(", "config", ")", ";", "random", "=", "new", "Random", "(", "config", ".", "get", "(", "\"rand.seed\"", ",", "13", ")", ")", ";", "maxDocFacets", "=", "config", ".", "get", "(", "\"max.doc.facets\"", ",", "10", ")", ";", "maxDims", "=", "config", ".", "get", "(", "\"max.doc.facets.dims\"", ",", "5", ")", ";", "maxFacetDepth", "=", "config", ".", "get", "(", "\"max.facet.depth\"", ",", "3", ")", ";", "if", "(", "maxFacetDepth", "<", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"max.facet.depth must be at least 2; got: \"", "+", "maxFacetDepth", ")", ";", "}", "maxValue", "=", "maxDocFacets", "*", "maxFacetDepth", ";", "}" ]
public override void SetConfig(Config config){base.SetConfig(config);random = new Random(config.Get("rand.seed", 13));maxDocFacets = config.Get("max.doc.facets", 10);maxDims = config.Get("max.doc.facets.dims", 5);maxFacetDepth = config.Get("max.facet.depth", 3);if (maxFacetDepth < 2){throw new ArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}
train
false
6,027
public interface Experiments extends SupportsCreating<Experiment.DefinitionStages.Blank>, HasInner<ExperimentsInner> {Observable<Experiment> getAsync(String resourceGroupName, String workspaceName, String experimentName);Observable<Experiment> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName);Completable deleteAsync(String resourceGroupName, String workspaceName, String experimentName);}
[ "public", "interface", "Experiments", "extends", "SupportsCreating", "<", "Experiment", ".", "DefinitionStages", ".", "Blank", ">", ",", "HasInner", "<", "ExperimentsInner", ">", "{", "Observable", "<", "Experiment", ">", "getAsync", "(", "String", "resourceGroupName", ",", "String", "workspaceName", ",", "String", "experimentName", ")", ";", "Observable", "<", "Experiment", ">", "listByWorkspaceAsync", "(", "final", "String", "resourceGroupName", ",", "final", "String", "workspaceName", ")", ";", "Completable", "deleteAsync", "(", "String", "resourceGroupName", ",", "String", "workspaceName", ",", "String", "experimentName", ")", ";", "}" ]
public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string experimentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false);return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);}
train
false
6,028
public Builder add(long l) {if (pending == null) {throw new IllegalStateException("Cannot be reused after build()");}if (pendingOff == pending.length) {if (values.length == valuesOff) {final int newLength = ArrayUtil.oversize(valuesOff + 1, 8);grow(newLength);}pack();}pending[pendingOff++] = l;size += 1;return this;}
[ "public", "Builder", "add", "(", "long", "l", ")", "{", "if", "(", "pending", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Cannot be reused after build()\"", ")", ";", "}", "if", "(", "pendingOff", "==", "pending", ".", "length", ")", "{", "if", "(", "values", ".", "length", "==", "valuesOff", ")", "{", "final", "int", "newLength", "=", "ArrayUtil", ".", "oversize", "(", "valuesOff", "+", "1", ",", "8", ")", ";", "grow", "(", "newLength", ")", ";", "}", "pack", "(", ")", ";", "}", "pending", "[", "pendingOff", "++", "]", "=", "l", ";", "size", "+=", "1", ";", "return", "this", ";", "}" ]
public virtual Builder Add(int doc){if (doc <= previousDoc){throw new System.ArgumentException("Doc IDs must be provided in order, but previousDoc=" + previousDoc + " and doc=" + doc);}buffer[bufferSize++] = doc - previousDoc - 1;if (bufferSize == BLOCK_SIZE){EncodeBlock();bufferSize = 0;}previousDoc = doc;++cardinality;return this;}
train
false
6,029
public static boolean isBuiltInFunctionName(String name) {short ix = FunctionMetadataRegistry.lookupIndexByName(name.toUpperCase(Locale.ROOT));return ix >= 0;}
[ "public", "static", "boolean", "isBuiltInFunctionName", "(", "String", "name", ")", "{", "short", "ix", "=", "FunctionMetadataRegistry", ".", "lookupIndexByName", "(", "name", ".", "toUpperCase", "(", "Locale", ".", "ROOT", ")", ")", ";", "return", "ix", ">=", "0", ";", "}" ]
public static bool IsBuiltInFunctionName(String name){short ix = FunctionMetadataRegistry.LookupIndexByName(name.ToUpper());return ix >= 0;}
train
false
6,030
public void readBytes(byte[] b, int offset, int len) {while(len > 0) {final int numLeft = limit-upto;if (numLeft < len) {System.arraycopy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;nextSlice();} else {System.arraycopy(buffer, upto, b, offset, len);upto += len;break;}}}
[ "public", "void", "readBytes", "(", "byte", "[", "]", "b", ",", "int", "offset", ",", "int", "len", ")", "{", "while", "(", "len", ">", "0", ")", "{", "final", "int", "numLeft", "=", "limit", "-", "upto", ";", "if", "(", "numLeft", "<", "len", ")", "{", "System", ".", "arraycopy", "(", "buffer", ",", "upto", ",", "b", ",", "offset", ",", "numLeft", ")", ";", "offset", "+=", "numLeft", ";", "len", "-=", "numLeft", ";", "nextSlice", "(", ")", ";", "}", "else", "{", "System", ".", "arraycopy", "(", "buffer", ",", "upto", ",", "b", ",", "offset", ",", "len", ")", ";", "upto", "+=", "len", ";", "break", ";", "}", "}", "}" ]
public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int numLeft = limit - upto;if (numLeft < len){Array.Copy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;NextSlice();}else{Array.Copy(buffer, upto, b, offset, len);upto += len;break;}}}
train
false
6,032
public ListResolverRuleAssociationsResult listResolverRuleAssociations(ListResolverRuleAssociationsRequest request) {request = beforeClientExecution(request);return executeListResolverRuleAssociations(request);}
[ "public", "ListResolverRuleAssociationsResult", "listResolverRuleAssociations", "(", "ListResolverRuleAssociationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListResolverRuleAssociations", "(", "request", ")", ";", "}" ]
public virtual ListResolverRuleAssociationsResponse ListResolverRuleAssociations(ListResolverRuleAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverRuleAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverRuleAssociationsResponseUnmarshaller.Instance;return Invoke<ListResolverRuleAssociationsResponse>(request, options);}
train
true
6,033
public TokenStream create(TokenStream input) {return new ApostropheFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "ApostropheFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new ApostropheFilter(input);}
train
false
6,034
public static String getExtension(String name) {int i = name.lastIndexOf('.');if (i == -1) {return "";}String ext = name.substring(i + 1);if (ext.equals("tmp")) {Matcher matcher = EXT_PATTERN.matcher(name.substring(0, i + 1));if (matcher.find()) {return matcher.group(1);}}return ext;}
[ "public", "static", "String", "getExtension", "(", "String", "name", ")", "{", "int", "i", "=", "name", ".", "lastIndexOf", "(", "'.'", ")", ";", "if", "(", "i", "==", "-", "1", ")", "{", "return", "\"\"", ";", "}", "String", "ext", "=", "name", ".", "substring", "(", "i", "+", "1", ")", ";", "if", "(", "ext", ".", "equals", "(", "\"tmp\"", ")", ")", "{", "Matcher", "matcher", "=", "EXT_PATTERN", ".", "matcher", "(", "name", ".", "substring", "(", "0", ",", "i", "+", "1", ")", ")", ";", "if", "(", "matcher", ".", "find", "(", ")", ")", "{", "return", "matcher", ".", "group", "(", "1", ")", ";", "}", "}", "return", "ext", ";", "}" ]
public static string GetExtension(string name){int i = name.LastIndexOf('.');if (i == -1){return "";}return name.Substring(i + 1, name.Length - (i + 1));}
train
false
6,037
public void trimToSize() {balance();redimNodeArrays(freenode);CharVector kx = new CharVector();kx.alloc(1);TernaryTree map = new TernaryTree();compact(kx, map, root);kv = kx;kv.trimToSize();}
[ "public", "void", "trimToSize", "(", ")", "{", "balance", "(", ")", ";", "redimNodeArrays", "(", "freenode", ")", ";", "CharVector", "kx", "=", "new", "CharVector", "(", ")", ";", "kx", ".", "alloc", "(", "1", ")", ";", "TernaryTree", "map", "=", "new", "TernaryTree", "(", ")", ";", "compact", "(", "kx", ",", "map", ",", "root", ")", ";", "kv", "=", "kx", ";", "kv", ".", "trimToSize", "(", ")", ";", "}" ]
public virtual void TrimToSize(){Balance();RedimNodeArrays(m_freenode);CharVector kx = new CharVector();kx.Alloc(1);TernaryTree map = new TernaryTree();Compact(kx, map, m_root);m_kv = kx;m_kv.TrimToSize();}
train
true
6,038
public GetRepoSyncTaskRequest() {super("cr", "2016-06-07", "GetRepoSyncTask", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]");setMethod(MethodType.GET);}
[ "public", "GetRepoSyncTaskRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetRepoSyncTask\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetRepoSyncTaskRequest(): base("cr", "2016-06-07", "GetRepoSyncTask", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]";Method = MethodType.GET;}
train
false
6,039
public ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);setVisibilityTimeout(visibilityTimeout);}
[ "public", "ChangeMessageVisibilityRequest", "(", "String", "queueUrl", ",", "String", "receiptHandle", ",", "Integer", "visibilityTimeout", ")", "{", "setQueueUrl", "(", "queueUrl", ")", ";", "setReceiptHandle", "(", "receiptHandle", ")", ";", "setVisibilityTimeout", "(", "visibilityTimeout", ")", ";", "}" ]
public ChangeMessageVisibilityRequest(string queueUrl, string receiptHandle, int visibilityTimeout){_queueUrl = queueUrl;_receiptHandle = receiptHandle;_visibilityTimeout = visibilityTimeout;}
train
false
6,040
public String toString() {return "[SAVERECALC]\n" +" .recalc = " + getRecalc() +"\n" +"[/SAVERECALC]\n";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"[SAVERECALC]\\n\"", "+", "\" .recalc = \"", "+", "getRecalc", "(", ")", "+", "\"\\n\"", "+", "\"[/SAVERECALC]\\n\"", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SAVERECALC]\n");buffer.Append(" .recalc = ").Append(Recalc).Append("\n");buffer.Append("[/SAVERECALC]\n");return buffer.ToString();}
train
false
6,041
public Status getStatus() {return status;}
[ "public", "Status", "getStatus", "(", ")", "{", "return", "status", ";", "}" ]
public virtual CheckoutResult.Status GetStatus(){return myStatus;}
train
false
6,042
public StartRepoBuildByRuleRequest() {super("cr", "2016-06-07", "StartRepoBuildByRule", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build");setMethod(MethodType.PUT);}
[ "public", "StartRepoBuildByRuleRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"StartRepoBuildByRule\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public StartRepoBuildByRuleRequest(): base("cr", "2016-06-07", "StartRepoBuildByRule", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build";Method = MethodType.PUT;}
train
false
6,043
public ModifyAvailabilityZoneGroupResult modifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request) {request = beforeClientExecution(request);return executeModifyAvailabilityZoneGroup(request);}
[ "public", "ModifyAvailabilityZoneGroupResult", "modifyAvailabilityZoneGroup", "(", "ModifyAvailabilityZoneGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyAvailabilityZoneGroup", "(", "request", ")", ";", "}" ]
public virtual ModifyAvailabilityZoneGroupResponse ModifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyAvailabilityZoneGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyAvailabilityZoneGroupResponseUnmarshaller.Instance;return Invoke<ModifyAvailabilityZoneGroupResponse>(request, options);}
train
false
6,044
public int compareSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;int c = value.get().compareTo(b.value.get());if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;}
[ "public", "int", "compareSameType", "(", "Object", "other", ")", "{", "assert", "exists", "||", "0", "==", "value", ".", "length", "(", ")", ";", "MutableValueStr", "b", "=", "(", "MutableValueStr", ")", "other", ";", "int", "c", "=", "value", ".", "get", "(", ")", ".", "compareTo", "(", "b", ".", "value", ".", "get", "(", ")", ")", ";", "if", "(", "c", "!=", "0", ")", "return", "c", ";", "if", "(", "exists", "==", "b", ".", "exists", ")", "return", "0", ";", "return", "exists", "?", "1", ":", "-", "1", ";", "}" ]
public override int CompareSameType(object other){MutableValueStr b = (MutableValueStr)other;int c = Value.CompareTo(b.Value);if (c != 0){return c;}if (Exists == b.Exists){return 0;}return Exists ? 1 : -1;}
train
false
6,046
public DescribeChangeSetResult describeChangeSet(DescribeChangeSetRequest request) {request = beforeClientExecution(request);return executeDescribeChangeSet(request);}
[ "public", "DescribeChangeSetResult", "describeChangeSet", "(", "DescribeChangeSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeChangeSet", "(", "request", ")", ";", "}" ]
public virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance;return Invoke<DescribeChangeSetResponse>(request, options);}
train
true
6,047
public static int initialize(int seed) {return seed;}
[ "public", "static", "int", "initialize", "(", "int", "seed", ")", "{", "return", "seed", ";", "}" ]
public static int Initialize(int seed){return seed;}
train
false
6,048
public File getIdentityFile() {return identityFile;}
[ "public", "File", "getIdentityFile", "(", ")", "{", "return", "identityFile", ";", "}" ]
public virtual FilePath GetIdentityFile(){return identityFile;}
train
false
6,049
public String toString() {String n = getClass().getName();int lastDot = n.lastIndexOf('.');if (lastDot >= 0) {n = n.substring(lastDot + 1);}return n.replace('$', '.');}
[ "public", "String", "toString", "(", ")", "{", "String", "n", "=", "getClass", "(", ")", ".", "getName", "(", ")", ";", "int", "lastDot", "=", "n", ".", "lastIndexOf", "(", "'.'", ")", ";", "if", "(", "lastDot", ">=", "0", ")", "{", "n", "=", "n", ".", "substring", "(", "lastDot", "+", "1", ")", ";", "}", "return", "n", ".", "replace", "(", "'$'", ",", "'.'", ")", ";", "}" ]
public override string ToString(){string n = GetType().FullName;int lastDot = n.LastIndexOf('.');if (lastDot >= 0){n = Sharpen.Runtime.Substring(n, lastDot + 1);}return n.Replace('$', '.');}
train
false
6,050
public DeleteVoiceConnectorProxyResult deleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorProxy(request);}
[ "public", "DeleteVoiceConnectorProxyResult", "deleteVoiceConnectorProxy", "(", "DeleteVoiceConnectorProxyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteVoiceConnectorProxy", "(", "request", ")", ";", "}" ]
public virtual DeleteVoiceConnectorProxyResponse DeleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorProxyResponse>(request, options);}
train
false
6,051
public ByteArrayDataInput(byte[] bytes) {reset(bytes);}
[ "public", "ByteArrayDataInput", "(", "byte", "[", "]", "bytes", ")", "{", "reset", "(", "bytes", ")", ";", "}" ]
public ByteArrayDataInput(byte[] bytes){Reset(bytes);}
train
false
6,052
public CreateLocalGatewayRouteResult createLocalGatewayRoute(CreateLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRoute(request);}
[ "public", "CreateLocalGatewayRouteResult", "createLocalGatewayRoute", "(", "CreateLocalGatewayRouteRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateLocalGatewayRoute", "(", "request", ")", ";", "}" ]
public virtual CreateLocalGatewayRouteResponse CreateLocalGatewayRoute(CreateLocalGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLocalGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLocalGatewayRouteResponseUnmarshaller.Instance;return Invoke<CreateLocalGatewayRouteResponse>(request, options);}
train
false
6,053
public static int strlen(char[] a, int start) {int len = 0;for (int i = start; i < a.length && a[i] != 0; i++) {len++;}return len;}
[ "public", "static", "int", "strlen", "(", "char", "[", "]", "a", ",", "int", "start", ")", "{", "int", "len", "=", "0", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<", "a", ".", "length", "&&", "a", "[", "i", "]", "!=", "0", ";", "i", "++", ")", "{", "len", "++", ";", "}", "return", "len", ";", "}" ]
public static int StrLen(char[] a, int start){int len = 0;for (int i = start; i < a.Length && a[i] != 0; i++){len++;}return len;}
train
true
6,054
public AttachPolicyResult attachPolicy(AttachPolicyRequest request) {request = beforeClientExecution(request);return executeAttachPolicy(request);}
[ "public", "AttachPolicyResult", "attachPolicy", "(", "AttachPolicyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachPolicy", "(", "request", ")", ";", "}" ]
public virtual AttachPolicyResponse AttachPolicy(AttachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachPolicyResponseUnmarshaller.Instance;return Invoke<AttachPolicyResponse>(request, options);}
train
true
6,055
public void print(double dnum) {print(String.valueOf(dnum));}
[ "public", "void", "print", "(", "double", "dnum", ")", "{", "print", "(", "String", ".", "valueOf", "(", "dnum", ")", ")", ";", "}" ]
public virtual void print(double dnum){print(dnum.ToString());}
train
false
6,056
public static BreakIterator getCharacterInstance() {return getCharacterInstance(Locale.getDefault());}
[ "public", "static", "BreakIterator", "getCharacterInstance", "(", ")", "{", "return", "getCharacterInstance", "(", "Locale", ".", "getDefault", "(", ")", ")", ";", "}" ]
public static java.text.BreakIterator getCharacterInstance(){return getCharacterInstance(System.Globalization.CultureInfo.CurrentCulture);}
train
false
6,057
public boolean add(E object) {throw new UnsupportedOperationException();}
[ "public", "boolean", "add", "(", "E", "object", ")", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public virtual bool add(E @object){throw new System.NotSupportedException();}
train
false
6,058
public SendMessageRequest(String queueUrl, String messageBody) {setQueueUrl(queueUrl);setMessageBody(messageBody);}
[ "public", "SendMessageRequest", "(", "String", "queueUrl", ",", "String", "messageBody", ")", "{", "setQueueUrl", "(", "queueUrl", ")", ";", "setMessageBody", "(", "messageBody", ")", ";", "}" ]
public SendMessageRequest(string queueUrl, string messageBody){_queueUrl = queueUrl;_messageBody = messageBody;}
train
false