id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
sequencelengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
10,092
public boolean isPeeled() {return true;}
[ "public", "boolean", "isPeeled", "(", ")", "{", "return", "true", ";", "}" ]
public override bool IsPeeled(){return true;}
train
false
10,093
public CreateTransitVirtualInterfaceResult createTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreateTransitVirtualInterface(request);}
[ "public", "CreateTransitVirtualInterfaceResult", "createTransitVirtualInterface", "(", "CreateTransitVirtualInterfaceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateTransitVirtualInterface", "(", "request", ")", ";", "}" ]
public virtual CreateTransitVirtualInterfaceResponse CreateTransitVirtualInterface(CreateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<CreateTransitVirtualInterfaceResponse>(request, options);}
train
false
10,094
public BatchDetectSentimentResult batchDetectSentiment(BatchDetectSentimentRequest request) {request = beforeClientExecution(request);return executeBatchDetectSentiment(request);}
[ "public", "BatchDetectSentimentResult", "batchDetectSentiment", "(", "BatchDetectSentimentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchDetectSentiment", "(", "request", ")", ";", "}" ]
public virtual BatchDetectSentimentResponse BatchDetectSentiment(BatchDetectSentimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSentimentRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSentimentResponseUnmarshaller.Instance;return Invoke<BatchDetectSentimentResponse>(request, options);}
train
true
10,095
public boolean equals(Object o) {if ( o==null || !(o instanceof Interval) ) {return false;}Interval other = (Interval)o;return this.a==other.a && this.b==other.b;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "null", "||", "!", "(", "o", "instanceof", "Interval", ")", ")", "{", "return", "false", ";", "}", "Interval", "other", "=", "(", "Interval", ")", "o", ";", "return", "this", ".", "a", "==", "other", ".", "a", "&&", "this", ".", "b", "==", "other", ".", "b", ";", "}" ]
public override bool Equals(object o){if (!(o is Antlr4.Runtime.Misc.Interval)){return false;}Antlr4.Runtime.Misc.Interval other = (Antlr4.Runtime.Misc.Interval)o;return this.a == other.a && this.b == other.b;}
train
false
10,097
public SmallDocSet union(SmallDocSet other) {SmallDocSet bigger;SmallDocSet smaller;if (other.intSet.size() > this.intSet.size()) {bigger = other;smaller = this;} else {bigger = this;smaller = other;}for (int v : smaller.intSet.keys) {if (v == smaller.intSet.emptyVal)continue;bigger.set(v);}return bigger;}
[ "public", "SmallDocSet", "union", "(", "SmallDocSet", "other", ")", "{", "SmallDocSet", "bigger", ";", "SmallDocSet", "smaller", ";", "if", "(", "other", ".", "intSet", ".", "size", "(", ")", ">", "this", ".", "intSet", ".", "size", "(", ")", ")", "{", "bigger", "=", "other", ";", "smaller", "=", "this", ";", "}", "else", "{", "bigger", "=", "this", ";", "smaller", "=", "other", ";", "}", "for", "(", "int", "v", ":", "smaller", ".", "intSet", ".", "keys", ")", "{", "if", "(", "v", "==", "smaller", ".", "intSet", ".", "emptyVal", ")", "continue", ";", "bigger", ".", "set", "(", "v", ")", ";", "}", "return", "bigger", ";", "}" ]
public virtual SmallDocSet Union(SmallDocSet other){SmallDocSet bigger;SmallDocSet smaller;if (other.intSet.Count > this.intSet.Count){bigger = other;smaller = this;}else{bigger = this;smaller = other;}foreach (int v in smaller.intSet.Keys){if (v == smaller.intSet.EmptyVal){continue;}bigger.Set(v);}return bigger;}
train
false
10,098
public boolean equals(Object o) {if (o instanceof Edit) {final Edit e = (Edit) o;return this.beginA == e.beginA && this.endA == e.endA&& this.beginB == e.beginB && this.endB == e.endB;}return false;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "o", "instanceof", "Edit", ")", "{", "final", "Edit", "e", "=", "(", "Edit", ")", "o", ";", "return", "this", ".", "beginA", "==", "e", ".", "beginA", "&&", "this", ".", "endA", "==", "e", ".", "endA", "&&", "this", ".", "beginB", "==", "e", ".", "beginB", "&&", "this", ".", "endB", "==", "e", ".", "endB", ";", "}", "return", "false", ";", "}" ]
public override bool Equals(object o){if (o is NGit.Diff.Edit){NGit.Diff.Edit e = (NGit.Diff.Edit)o;return this.beginA == e.beginA && this.endA == e.endA && this.beginB == e.beginB&& this.endB == e.endB;}return false;}
train
false
10,099
public int getBigFileThreshold() {return bigFileThreshold;}
[ "public", "int", "getBigFileThreshold", "(", ")", "{", "return", "bigFileThreshold", ";", "}" ]
public virtual int GetBigFileThreshold(){return bigFileThreshold;}
train
false
10,100
public String toString() {final StringBuilder r = new StringBuilder();r.append(getSeverity().name().toLowerCase(Locale.ROOT));r.append(": at offset "); r.append(getOffset());r.append(": "); r.append(getMessage());r.append("\n"); r.append(" in "); r.append(getLineText());return r.toString();}
[ "public", "String", "toString", "(", ")", "{", "final", "StringBuilder", "r", "=", "new", "StringBuilder", "(", ")", ";", "r", ".", "append", "(", "getSeverity", "(", ")", ".", "name", "(", ")", ".", "toLowerCase", "(", "Locale", ".", "ROOT", ")", ")", ";", "r", ".", "append", "(", "\": at offset \"", ")", ";", "r", ".", "append", "(", "getOffset", "(", ")", ")", ";", "r", ".", "append", "(", "\": \"", ")", ";", "r", ".", "append", "(", "getMessage", "(", ")", ")", ";", "r", ".", "append", "(", "\"\\n\"", ")", ";", "r", ".", "append", "(", "\" in \"", ")", ";", "r", ".", "append", "(", "getLineText", "(", ")", ")", ";", "return", "r", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder r = new StringBuilder();r.Append(GetSeverity().ToString().ToLower());r.Append(": at offset ");r.Append(GetOffset());r.Append(": ");r.Append(GetMessage());r.Append("\n");r.Append(" in ");r.Append(GetLineText());return r.ToString();}
train
false
10,101
public IntBuffer slice() {return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position);}
[ "public", "IntBuffer", "slice", "(", ")", "{", "return", "new", "ReadWriteIntArrayBuffer", "(", "remaining", "(", ")", ",", "backingArray", ",", "offset", "+", "position", ")", ";", "}" ]
public override java.nio.IntBuffer slice(){return new java.nio.ReadWriteIntArrayBuffer(remaining(), backingArray, offset + _position);}
train
false
10,102
public DeleteApplicationResult deleteApplication(DeleteApplicationRequest request) {request = beforeClientExecution(request);return executeDeleteApplication(request);}
[ "public", "DeleteApplicationResult", "deleteApplication", "(", "DeleteApplicationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApplication", "(", "request", ")", ";", "}" ]
public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance;return Invoke<DeleteApplicationResponse>(request, options);}
train
true
10,103
public TokenOffsetPayloadTokenFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "TokenOffsetPayloadTokenFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public TokenOffsetPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
10,104
public boolean equals(Object o) {if (this.getClass() != o.getClass()) return false;MultiFunction other = (MultiFunction)o;return this.sources.equals(other.sources);}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "this", ".", "getClass", "(", ")", "!=", "o", ".", "getClass", "(", ")", ")", "return", "false", ";", "MultiFunction", "other", "=", "(", "MultiFunction", ")", "o", ";", "return", "this", ".", "sources", ".", "equals", "(", "other", ".", "sources", ")", ";", "}" ]
public override bool Equals(object o){if (this.GetType() != o.GetType()){return false;}var other = (MultiFunction)o;return JCG.ListEqualityComparer<ValueSource>.Default.Equals(this.m_sources, other.m_sources);}
train
false
10,105
public SpanQuery getSpanQuery(Element e) throws ParserException {SpanQueryBuilder builder = builders.get(e.getNodeName());if (builder == null) {throw new ParserException("No SpanQueryObjectBuilder defined for node " + e.getNodeName());}return builder.getSpanQuery(e);}
[ "public", "SpanQuery", "getSpanQuery", "(", "Element", "e", ")", "throws", "ParserException", "{", "SpanQueryBuilder", "builder", "=", "builders", ".", "get", "(", "e", ".", "getNodeName", "(", ")", ")", ";", "if", "(", "builder", "==", "null", ")", "{", "throw", "new", "ParserException", "(", "\"No SpanQueryObjectBuilder defined for node \"", "+", "e", ".", "getNodeName", "(", ")", ")", ";", "}", "return", "builder", ".", "getSpanQuery", "(", "e", ")", ";", "}" ]
public virtual SpanQuery GetSpanQuery(XmlElement e){ISpanQueryBuilder builder;if (!builders.TryGetValue(e.Name, out builder) || builder == null){throw new ParserException("No SpanQueryObjectBuilder defined for node " + e.Name);}return builder.GetSpanQuery(e);}
train
false
10,106
public void incRef() {final int rc = refCount.incrementAndGet();assert rc > 1: "seg=" + info;}
[ "public", "void", "incRef", "(", ")", "{", "final", "int", "rc", "=", "refCount", ".", "incrementAndGet", "(", ")", ";", "assert", "rc", ">", "1", ":", "\"seg=\"", "+", "info", ";", "}" ]
public virtual void IncRef(){int rc = refCount.IncrementAndGet();Debug.Assert(rc > 1);}
train
false
10,107
public String formula() {return _formula;}
[ "public", "String", "formula", "(", ")", "{", "return", "_formula", ";", "}" ]
public String formula(){return _formula;}
train
false
10,108
public T removeTop() {T currentTop = top;if (iter.hasNext()) {top = iter.next();} else {top = null;}return currentTop;}
[ "public", "T", "removeTop", "(", ")", "{", "T", "currentTop", "=", "top", ";", "if", "(", "iter", ".", "hasNext", "(", ")", ")", "{", "top", "=", "iter", ".", "next", "(", ")", ";", "}", "else", "{", "top", "=", "null", ";", "}", "return", "currentTop", ";", "}" ]
public T RemoveTop(){T currentTop = top;if (iter.MoveNext()){top = iter.Current;}else{top = default(T);}return currentTop;}
train
false
10,109
public ObjectId getExpectedOldObjectId() {return expValue;}
[ "public", "ObjectId", "getExpectedOldObjectId", "(", ")", "{", "return", "expValue", ";", "}" ]
public virtual ObjectId GetExpectedOldObjectId(){return expValue;}
train
false
10,110
public DefaultPassageFormatter(String preTag, String postTag, String ellipsis, boolean escape) {if (preTag == null || postTag == null || ellipsis == null) {throw new NullPointerException();}this.preTag = preTag;this.postTag = postTag;this.ellipsis = ellipsis;this.escape = escape;}
[ "public", "DefaultPassageFormatter", "(", "String", "preTag", ",", "String", "postTag", ",", "String", "ellipsis", ",", "boolean", "escape", ")", "{", "if", "(", "preTag", "==", "null", "||", "postTag", "==", "null", "||", "ellipsis", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "this", ".", "preTag", "=", "preTag", ";", "this", ".", "postTag", "=", "postTag", ";", "this", ".", "ellipsis", "=", "ellipsis", ";", "this", ".", "escape", "=", "escape", ";", "}" ]
public DefaultPassageFormatter(string preTag, string postTag, string ellipsis, bool escape){if (preTag == null || postTag == null || ellipsis == null){throw new ArgumentException(); }this.m_preTag = preTag;this.m_postTag = postTag;this.m_ellipsis = ellipsis;this.m_escape = escape;}
train
false
10,111
public UpdateImagePermissionsResult updateImagePermissions(UpdateImagePermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateImagePermissions(request);}
[ "public", "UpdateImagePermissionsResult", "updateImagePermissions", "(", "UpdateImagePermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateImagePermissions", "(", "request", ")", ";", "}" ]
public virtual UpdateImagePermissionsResponse UpdateImagePermissions(UpdateImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateImagePermissionsResponseUnmarshaller.Instance;return Invoke<UpdateImagePermissionsResponse>(request, options);}
train
true
10,112
public ListCustomVerificationEmailTemplatesResult listCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request) {request = beforeClientExecution(request);return executeListCustomVerificationEmailTemplates(request);}
[ "public", "ListCustomVerificationEmailTemplatesResult", "listCustomVerificationEmailTemplates", "(", "ListCustomVerificationEmailTemplatesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListCustomVerificationEmailTemplates", "(", "request", ")", ";", "}" ]
public virtual ListCustomVerificationEmailTemplatesResponse ListCustomVerificationEmailTemplates(ListCustomVerificationEmailTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCustomVerificationEmailTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCustomVerificationEmailTemplatesResponseUnmarshaller.Instance;return Invoke<ListCustomVerificationEmailTemplatesResponse>(request, options);}
train
true
10,114
public StringCharacterIterator(String value, int location) {string = value;start = 0;end = string.length();if (location < 0 || location > end) {throw new IllegalArgumentException();}offset = location;}
[ "public", "StringCharacterIterator", "(", "String", "value", ",", "int", "location", ")", "{", "string", "=", "value", ";", "start", "=", "0", ";", "end", "=", "string", ".", "length", "(", ")", ";", "if", "(", "location", "<", "0", "||", "location", ">", "end", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "offset", "=", "location", ";", "}" ]
public StringCharacterIterator(string value, int location){@string = value;start = 0;end = @string.Length;if (location < 0 || location > end){throw new System.ArgumentException();}offset = location;}
train
false
10,115
public DeleteQueryLoggingConfigResult deleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeDeleteQueryLoggingConfig(request);}
[ "public", "DeleteQueryLoggingConfigResult", "deleteQueryLoggingConfig", "(", "DeleteQueryLoggingConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteQueryLoggingConfig", "(", "request", ")", ";", "}" ]
public virtual DeleteQueryLoggingConfigResponse DeleteQueryLoggingConfig(DeleteQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke<DeleteQueryLoggingConfigResponse>(request, options);}
train
true
10,116
public InvalidPatternException(String message, String pattern) {super(message);this.pattern = pattern;}
[ "public", "InvalidPatternException", "(", "String", "message", ",", "String", "pattern", ")", "{", "super", "(", "message", ")", ";", "this", ".", "pattern", "=", "pattern", ";", "}" ]
public InvalidPatternException(string message, string pattern) : base(message){this.pattern = pattern;}
train
false
10,117
public int resolveNameXIx(int refIndex, int definedNameIndex) {int extBookIndex = _externSheetRecord.getExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].getNameIx(definedNameIndex);}
[ "public", "int", "resolveNameXIx", "(", "int", "refIndex", ",", "int", "definedNameIndex", ")", "{", "int", "extBookIndex", "=", "_externSheetRecord", ".", "getExtbookIndexFromRefIndex", "(", "refIndex", ")", ";", "return", "_externalBookBlocks", "[", "extBookIndex", "]", ".", "getNameIx", "(", "definedNameIndex", ")", ";", "}" ]
public int ResolveNameXIx(int refIndex, int definedNameIndex){int extBookIndex = _externSheetRecord.GetExtbookIndexFromRefIndex(refIndex);return _externalBookBlocks[extBookIndex].GetNameIx(definedNameIndex);}
train
false
10,118
public boolean equals(Object obj) {if (this == obj)return true;if (!super.equals(obj))return false;if (getClass() != obj.getClass())return false;FuzzyQuery other = (FuzzyQuery) obj;if (maxEdits != other.maxEdits)return false;if (prefixLength != other.prefixLength)return false;if (maxExpansions != other.maxExpansions)return false;if (transpositions != other.transpositions)return false;if (term == null) {if (other.term != null)return false;} else if (!term.equals(other.term))return false;return true;}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "!", "super", ".", "equals", "(", "obj", ")", ")", "return", "false", ";", "if", "(", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "return", "false", ";", "FuzzyQuery", "other", "=", "(", "FuzzyQuery", ")", "obj", ";", "if", "(", "maxEdits", "!=", "other", ".", "maxEdits", ")", "return", "false", ";", "if", "(", "prefixLength", "!=", "other", ".", "prefixLength", ")", "return", "false", ";", "if", "(", "maxExpansions", "!=", "other", ".", "maxExpansions", ")", "return", "false", ";", "if", "(", "transpositions", "!=", "other", ".", "transpositions", ")", "return", "false", ";", "if", "(", "term", "==", "null", ")", "{", "if", "(", "other", ".", "term", "!=", "null", ")", "return", "false", ";", "}", "else", "if", "(", "!", "term", ".", "equals", "(", "other", ".", "term", ")", ")", "return", "false", ";", "return", "true", ";", "}" ]
public override bool Equals(object obj){if (this == obj){return true;}if (!base.Equals(obj)){return false;}if (this.GetType() != obj.GetType()){return false;}FuzzyQuery other = (FuzzyQuery)obj;if (maxEdits != other.maxEdits){return false;}if (prefixLength != other.prefixLength){return false;}if (maxExpansions != other.maxExpansions){return false;}if (transpositions != other.transpositions){return false;}if (term == null){if (other.term != null){return false;}}else if (!term.Equals(other.term)){return false;}return true;}
train
false
10,119
public Term getLuceneTerm(String fieldName) {return new Term(fieldName, getTermText());}
[ "public", "Term", "getLuceneTerm", "(", "String", "fieldName", ")", "{", "return", "new", "Term", "(", "fieldName", ",", "getTermText", "(", ")", ")", ";", "}" ]
public virtual Term GetLuceneTerm(string fieldName){return new Term(fieldName, TermText);}
train
false
10,120
public static MessageDigest newMessageDigest() {try {return MessageDigest.getInstance(LONG_HASH_FUNCTION);} catch (NoSuchAlgorithmException nsae) {throw new RuntimeException(MessageFormat.format(LfsText.get().requiredHashFunctionNotAvailable,LONG_HASH_FUNCTION), nsae);}}
[ "public", "static", "MessageDigest", "newMessageDigest", "(", ")", "{", "try", "{", "return", "MessageDigest", ".", "getInstance", "(", "LONG_HASH_FUNCTION", ")", ";", "}", "catch", "(", "NoSuchAlgorithmException", "nsae", ")", "{", "throw", "new", "RuntimeException", "(", "MessageFormat", ".", "format", "(", "LfsText", ".", "get", "(", ")", ".", "requiredHashFunctionNotAvailable", ",", "LONG_HASH_FUNCTION", ")", ",", "nsae", ")", ";", "}", "}" ]
public static MessageDigest NewMessageDigest(){try{return MessageDigest.GetInstance(HASH_FUNCTION);}catch (NoSuchAlgorithmException nsae){throw new RuntimeException(MessageFormat.Format(JGitText.Get().requiredHashFunctionNotAvailable, HASH_FUNCTION), nsae);}}
train
false
10,121
public void reset() {synchronized (lock) {count = 0;}}
[ "public", "void", "reset", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "count", "=", "0", ";", "}", "}" ]
public virtual void reset(){lock (@lock){count = 0;}}
train
false
10,122
public HyphenationTree() {stoplist = new HashMap<>(23); classmap = new TernaryTree();vspace = new ByteVector();vspace.alloc(1); }
[ "public", "HyphenationTree", "(", ")", "{", "stoplist", "=", "new", "HashMap", "<", ">", "(", "23", ")", ";", "classmap", "=", "new", "TernaryTree", "(", ")", ";", "vspace", "=", "new", "ByteVector", "(", ")", ";", "vspace", ".", "alloc", "(", "1", ")", ";", "}" ]
public HyphenationTree(){m_stoplist = new JCG.Dictionary<string, IList<object>>(23); m_classmap = new TernaryTree();m_vspace = new ByteVector();m_vspace.Alloc(1); }
train
false
10,123
public DescribeCollectionResult describeCollection(DescribeCollectionRequest request) {request = beforeClientExecution(request);return executeDescribeCollection(request);}
[ "public", "DescribeCollectionResult", "describeCollection", "(", "DescribeCollectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeCollection", "(", "request", ")", ";", "}" ]
public virtual DescribeCollectionResponse DescribeCollection(DescribeCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCollectionResponseUnmarshaller.Instance;return Invoke<DescribeCollectionResponse>(request, options);}
train
true
10,124
public synchronized StringBuffer insert(int index, char[] chars) {insert0(index, chars);return this;}
[ "public", "synchronized", "StringBuffer", "insert", "(", "int", "index", ",", "char", "[", "]", "chars", ")", "{", "insert0", "(", "index", ",", "chars", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuffer insert(int index, char[] chars){lock (this){insert0(index, chars);return this;}}
train
false
10,126
public GetSearchRequest() {super("cr", "2016-06-07", "GetSearch", "cr");setUriPattern("/search-delete");setMethod(MethodType.GET);}
[ "public", "GetSearchRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetSearch\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/search-delete\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetSearchRequest(): base("cr", "2016-06-07", "GetSearch", "cr", "openAPI"){UriPattern = "/search-delete";Method = MethodType.GET;}
train
false
10,127
public void consume() {boolean skipEofCheck;if (p >= 0) {if (fetchedEOF) {skipEofCheck = p < tokens.size() - 1;}else {skipEofCheck = p < tokens.size();}}else {skipEofCheck = false;}if (!skipEofCheck && LA(1) == EOF) {throw new IllegalStateException("cannot consume EOF");}if (sync(p + 1)) {p = adjustSeekIndex(p + 1);}}
[ "public", "void", "consume", "(", ")", "{", "boolean", "skipEofCheck", ";", "if", "(", "p", ">=", "0", ")", "{", "if", "(", "fetchedEOF", ")", "{", "skipEofCheck", "=", "p", "<", "tokens", ".", "size", "(", ")", "-", "1", ";", "}", "else", "{", "skipEofCheck", "=", "p", "<", "tokens", ".", "size", "(", ")", ";", "}", "}", "else", "{", "skipEofCheck", "=", "false", ";", "}", "if", "(", "!", "skipEofCheck", "&&", "LA", "(", "1", ")", "==", "EOF", ")", "{", "throw", "new", "IllegalStateException", "(", "\"cannot consume EOF\"", ")", ";", "}", "if", "(", "sync", "(", "p", "+", "1", ")", ")", "{", "p", "=", "adjustSeekIndex", "(", "p", "+", "1", ")", ";", "}", "}" ]
public virtual void Consume(){bool skipEofCheck;if (p >= 0){if (fetchedEOF){skipEofCheck = p < tokens.Count - 1;}else{skipEofCheck = p < tokens.Count;}}else{skipEofCheck = false;}if (!skipEofCheck && LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException("cannot consume EOF");}if (Sync(p + 1)){p = AdjustSeekIndex(p + 1);}}
train
false
10,128
public CharBlockArray append(String s) {int remain = s.length();int offset = 0;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}s.getChars(offset, offset + toCopy, this.current.chars, this.current.length);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.length();return this;}
[ "public", "CharBlockArray", "append", "(", "String", "s", ")", "{", "int", "remain", "=", "s", ".", "length", "(", ")", ";", "int", "offset", "=", "0", ";", "while", "(", "remain", ">", "0", ")", "{", "if", "(", "this", ".", "current", ".", "length", "==", "this", ".", "blockSize", ")", "{", "addBlock", "(", ")", ";", "}", "int", "toCopy", "=", "remain", ";", "int", "remainingInBlock", "=", "this", ".", "blockSize", "-", "this", ".", "current", ".", "length", ";", "if", "(", "remainingInBlock", "<", "toCopy", ")", "{", "toCopy", "=", "remainingInBlock", ";", "}", "s", ".", "getChars", "(", "offset", ",", "offset", "+", "toCopy", ",", "this", ".", "current", ".", "chars", ",", "this", ".", "current", ".", "length", ")", ";", "offset", "+=", "toCopy", ";", "remain", "-=", "toCopy", ";", "this", ".", "current", ".", "length", "+=", "toCopy", ";", "}", "this", ".", "length", "+=", "s", ".", "length", "(", ")", ";", "return", "this", ";", "}" ]
public virtual CharBlockArray Append(string s){int remain = s.Length;int offset = 0;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}s.CopyTo(offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += s.Length;return this;}
train
false
10,129
public ConfigureHealthCheckResult configureHealthCheck(ConfigureHealthCheckRequest request) {request = beforeClientExecution(request);return executeConfigureHealthCheck(request);}
[ "public", "ConfigureHealthCheckResult", "configureHealthCheck", "(", "ConfigureHealthCheckRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeConfigureHealthCheck", "(", "request", ")", ";", "}" ]
public virtual ConfigureHealthCheckResponse ConfigureHealthCheck(ConfigureHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfigureHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfigureHealthCheckResponseUnmarshaller.Instance;return Invoke<ConfigureHealthCheckResponse>(request, options);}
train
true
10,130
public CommonRoaRequest(String product) {super(product);setSysAcceptFormat(FormatType.JSON);}
[ "public", "CommonRoaRequest", "(", "String", "product", ")", "{", "super", "(", "product", ")", ";", "setSysAcceptFormat", "(", "FormatType", ".", "JSON", ")", ";", "}" ]
public CommonRoaRequest(string product) : base(product){AcceptFormat = FormatType.JSON;}
train
false
10,131
public static int strlen(char[] a) {return strlen(a, 0);}
[ "public", "static", "int", "strlen", "(", "char", "[", "]", "a", ")", "{", "return", "strlen", "(", "a", ",", "0", ")", ";", "}" ]
public static int StrLen(char[] a){return StrLen(a, 0);}
train
false
10,132
public void setReaderValue(Reader value) {if (!(fieldsData instanceof Reader)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to Reader");}fieldsData = value;}
[ "public", "void", "setReaderValue", "(", "Reader", "value", ")", "{", "if", "(", "!", "(", "fieldsData", "instanceof", "Reader", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cannot change value type from \"", "+", "fieldsData", ".", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\" to Reader\"", ")", ";", "}", "fieldsData", "=", "value", ";", "}" ]
public virtual void SetReaderValue(TextReader value){if (!(FieldsData is TextReader)){throw new ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to TextReader");}FieldsData = value;}
train
false
10,133
public DeleteUsagePlanResult deleteUsagePlan(DeleteUsagePlanRequest request) {request = beforeClientExecution(request);return executeDeleteUsagePlan(request);}
[ "public", "DeleteUsagePlanResult", "deleteUsagePlan", "(", "DeleteUsagePlanRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteUsagePlan", "(", "request", ")", ";", "}" ]
public virtual DeleteUsagePlanResponse DeleteUsagePlan(DeleteUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUsagePlanResponseUnmarshaller.Instance;return Invoke<DeleteUsagePlanResponse>(request, options);}
train
true
10,134
public DeleteThreatIntelSetResult deleteThreatIntelSet(DeleteThreatIntelSetRequest request) {request = beforeClientExecution(request);return executeDeleteThreatIntelSet(request);}
[ "public", "DeleteThreatIntelSetResult", "deleteThreatIntelSet", "(", "DeleteThreatIntelSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteThreatIntelSet", "(", "request", ")", ";", "}" ]
public virtual DeleteThreatIntelSetResponse DeleteThreatIntelSet(DeleteThreatIntelSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteThreatIntelSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteThreatIntelSetResponseUnmarshaller.Instance;return Invoke<DeleteThreatIntelSetResponse>(request, options);}
train
true
10,135
public DescribePlacementGroupsResult describePlacementGroups(DescribePlacementGroupsRequest request) {request = beforeClientExecution(request);return executeDescribePlacementGroups(request);}
[ "public", "DescribePlacementGroupsResult", "describePlacementGroups", "(", "DescribePlacementGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribePlacementGroups", "(", "request", ")", ";", "}" ]
public virtual DescribePlacementGroupsResponse DescribePlacementGroups(DescribePlacementGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlacementGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlacementGroupsResponseUnmarshaller.Instance;return Invoke<DescribePlacementGroupsResponse>(request, options);}
train
true
10,136
public EnableAddOnResult enableAddOn(EnableAddOnRequest request) {request = beforeClientExecution(request);return executeEnableAddOn(request);}
[ "public", "EnableAddOnResult", "enableAddOn", "(", "EnableAddOnRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableAddOn", "(", "request", ")", ";", "}" ]
public virtual EnableAddOnResponse EnableAddOn(EnableAddOnRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableAddOnRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableAddOnResponseUnmarshaller.Instance;return Invoke<EnableAddOnResponse>(request, options);}
train
false
10,138
public ListTagsForResourceOutput listTagsForResource(ListTagsForResourceRequest request) {request = beforeClientExecution(request);return executeListTagsForResource(request);}
[ "public", "ListTagsForResourceOutput", "listTagsForResource", "(", "ListTagsForResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTagsForResource", "(", "request", ")", ";", "}" ]
public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;return Invoke<ListTagsForResourceResponse>(request, options);}
train
false
10,139
public WeightedSpanTerm getWeightedSpanTerm(String token) {return fieldWeightedSpanTerms.get(token);}
[ "public", "WeightedSpanTerm", "getWeightedSpanTerm", "(", "String", "token", ")", "{", "return", "fieldWeightedSpanTerms", ".", "get", "(", "token", ")", ";", "}" ]
public virtual WeightedSpanTerm GetWeightedSpanTerm(string token){WeightedSpanTerm result;fieldWeightedSpanTerms.TryGetValue(token, out result);return result;}
train
false
10,140
public Slope() {func = new LinearRegressionFunction(FUNCTION.SLOPE);}
[ "public", "Slope", "(", ")", "{", "func", "=", "new", "LinearRegressionFunction", "(", "FUNCTION", ".", "SLOPE", ")", ";", "}" ]
public Slope(){func = new LinearRegressionFunction(LinearRegressionFunction.FUNCTION.SLOPE);}
train
false
10,141
public String toStringUnquoted() {return getTruncated();}
[ "public", "String", "toStringUnquoted", "(", ")", "{", "return", "getTruncated", "(", ")", ";", "}" ]
public override string ToStringUnquoted(){return Truncated;}
train
false
10,142
public UpdateSubnetGroupResult updateSubnetGroup(UpdateSubnetGroupRequest request) {request = beforeClientExecution(request);return executeUpdateSubnetGroup(request);}
[ "public", "UpdateSubnetGroupResult", "updateSubnetGroup", "(", "UpdateSubnetGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateSubnetGroup", "(", "request", ")", ";", "}" ]
public virtual UpdateSubnetGroupResponse UpdateSubnetGroup(UpdateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSubnetGroupResponseUnmarshaller.Instance;return Invoke<UpdateSubnetGroupResponse>(request, options);}
train
true
10,143
public void remove(int index) {checkIndex(index);_cfHeaders.remove(index);}
[ "public", "void", "remove", "(", "int", "index", ")", "{", "checkIndex", "(", "index", ")", ";", "_cfHeaders", ".", "remove", "(", "index", ")", ";", "}" ]
public void Remove(int index){CheckIndex(index);_cfHeaders.RemoveAt(index);}
train
false
10,145
public boolean shouldBeRecursive() {return true;}
[ "public", "boolean", "shouldBeRecursive", "(", ")", "{", "return", "true", ";", "}" ]
public override bool ShouldBeRecursive(){return true;}
train
false
10,146
public JapaneseBaseFormFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "JapaneseBaseFormFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public JapaneseBaseFormFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
10,147
public void visitContainedRecords(RecordVisitor rv) {rv.visitRecord(header);for (CFRuleBase rule : rules) {rv.visitRecord(rule);}}
[ "public", "void", "visitContainedRecords", "(", "RecordVisitor", "rv", ")", "{", "rv", ".", "visitRecord", "(", "header", ")", ";", "for", "(", "CFRuleBase", "rule", ":", "rules", ")", "{", "rv", ".", "visitRecord", "(", "rule", ")", ";", "}", "}" ]
public override void VisitContainedRecords(RecordVisitor rv){rv.VisitRecord(header);for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];rv.VisitRecord(rule);}}
train
false
10,148
public void dumpDrawingGroupRecords(boolean fat) {DrawingGroupRecord r = (DrawingGroupRecord) workbook.findFirstRecordBySid( DrawingGroupRecord.sid );if (r == null) {return;}r.decode();List<EscherRecord> escherRecords = r.getEscherRecords();PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out, Charset.defaultCharset()));for (EscherRecord escherRecord : escherRecords) {if (fat) {System.out.println(escherRecord);} else {escherRecord.display(w, 0);}}w.flush();}
[ "public", "void", "dumpDrawingGroupRecords", "(", "boolean", "fat", ")", "{", "DrawingGroupRecord", "r", "=", "(", "DrawingGroupRecord", ")", "workbook", ".", "findFirstRecordBySid", "(", "DrawingGroupRecord", ".", "sid", ")", ";", "if", "(", "r", "==", "null", ")", "{", "return", ";", "}", "r", ".", "decode", "(", ")", ";", "List", "<", "EscherRecord", ">", "escherRecords", "=", "r", ".", "getEscherRecords", "(", ")", ";", "PrintWriter", "w", "=", "new", "PrintWriter", "(", "new", "OutputStreamWriter", "(", "System", ".", "out", ",", "Charset", ".", "defaultCharset", "(", ")", ")", ")", ";", "for", "(", "EscherRecord", "escherRecord", ":", "escherRecords", ")", "{", "if", "(", "fat", ")", "{", "System", ".", "out", ".", "println", "(", "escherRecord", ")", ";", "}", "else", "{", "escherRecord", ".", "display", "(", "w", ",", "0", ")", ";", "}", "}", "w", ".", "flush", "(", ")", ";", "}" ]
public void DumpDrawingGroupRecords(bool fat){DrawingGroupRecord r = (DrawingGroupRecord)workbook.FindFirstRecordBySid(DrawingGroupRecord.sid);r.Decode();IList escherRecords = r.EscherRecords;for (IEnumerator iterator = escherRecords.GetEnumerator(); iterator.MoveNext(); ){EscherRecord escherRecord = (EscherRecord)iterator.Current;if (fat)Console.WriteLine(escherRecord.ToString());elseescherRecord.Display(0);}}
train
false
10,149
public int getLinesDeleted() {return nDeleted;}
[ "public", "int", "getLinesDeleted", "(", ")", "{", "return", "nDeleted", ";", "}" ]
public virtual int GetLinesDeleted(){return nDeleted;}
train
false
10,150
public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");sb.append(_offset).append("...").append(getLastIndex());sb.append("]");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "64", ")", ";", "sb", ".", "append", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ".", "append", "(", "\" [\"", ")", ";", "sb", ".", "append", "(", "_offset", ")", ".", "append", "(", "\"...\"", ")", ".", "append", "(", "getLastIndex", "(", ")", ")", ";", "sb", ".", "append", "(", "\"]\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_offset).Append("...").Append(LastIndex);sb.Append("]");return sb.ToString();}
train
false
10,151
public int[] compact() {assert bytesStart != null : "bytesStart is null - not initialized";int upto = 0;for (int i = 0; i < hashSize; i++) {if (ids[i] != -1) {if (upto < i) {ids[upto] = ids[i];ids[i] = -1;}upto++;}}assert upto == count;lastCount = count;return ids;}
[ "public", "int", "[", "]", "compact", "(", ")", "{", "assert", "bytesStart", "!=", "null", ":", "\"bytesStart is null - not initialized\"", ";", "int", "upto", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "hashSize", ";", "i", "++", ")", "{", "if", "(", "ids", "[", "i", "]", "!=", "-", "1", ")", "{", "if", "(", "upto", "<", "i", ")", "{", "ids", "[", "upto", "]", "=", "ids", "[", "i", "]", ";", "ids", "[", "i", "]", "=", "-", "1", ";", "}", "upto", "++", ";", "}", "}", "assert", "upto", "==", "count", ";", "lastCount", "=", "count", ";", "return", "ids", ";", "}" ]
public int[] Compact(){Debug.Assert(bytesStart != null, "bytesStart is null - not initialized");int upto = 0;for (int i = 0; i < hashSize; i++){if (ids[i] != -1){if (upto < i){ids[upto] = ids[i];ids[i] = -1;}upto++;}}Debug.Assert(upto == count);lastCount = count;return ids;}
train
false
10,152
public AccessKey(String userName, String accessKeyId, StatusType status, String secretAccessKey) {setUserName(userName);setAccessKeyId(accessKeyId);setStatus(status.toString());setSecretAccessKey(secretAccessKey);}
[ "public", "AccessKey", "(", "String", "userName", ",", "String", "accessKeyId", ",", "StatusType", "status", ",", "String", "secretAccessKey", ")", "{", "setUserName", "(", "userName", ")", ";", "setAccessKeyId", "(", "accessKeyId", ")", ";", "setStatus", "(", "status", ".", "toString", "(", ")", ")", ";", "setSecretAccessKey", "(", "secretAccessKey", ")", ";", "}" ]
public AccessKey(string userName, string accessKeyId, StatusType status, string secretAccessKey){_userName = userName;_accessKeyId = accessKeyId;_status = status;_secretAccessKey = secretAccessKey;}
train
false
10,153
public GetDomainResult getDomain(GetDomainRequest request) {request = beforeClientExecution(request);return executeGetDomain(request);}
[ "public", "GetDomainResult", "getDomain", "(", "GetDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDomain", "(", "request", ")", ";", "}" ]
public virtual GetDomainResponse GetDomain(GetDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance;return Invoke<GetDomainResponse>(request, options);}
train
true
10,154
public ListTypeRegistrationsResult listTypeRegistrations(ListTypeRegistrationsRequest request) {request = beforeClientExecution(request);return executeListTypeRegistrations(request);}
[ "public", "ListTypeRegistrationsResult", "listTypeRegistrations", "(", "ListTypeRegistrationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTypeRegistrations", "(", "request", ")", ";", "}" ]
public virtual ListTypeRegistrationsResponse ListTypeRegistrations(ListTypeRegistrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTypeRegistrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTypeRegistrationsResponseUnmarshaller.Instance;return Invoke<ListTypeRegistrationsResponse>(request, options);}
train
false
10,155
public boolean isSymbolic() {return false;}
[ "public", "boolean", "isSymbolic", "(", ")", "{", "return", "false", ";", "}" ]
public virtual bool IsSymbolic(){return false;}
train
false
10,156
public DeleteTableRequest(String tableName) {setTableName(tableName);}
[ "public", "DeleteTableRequest", "(", "String", "tableName", ")", "{", "setTableName", "(", "tableName", ")", ";", "}" ]
public DeleteTableRequest(string tableName){_tableName = tableName;}
train
false
10,157
public UpdateAccountSettingsResult updateAccountSettings(UpdateAccountSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateAccountSettings(request);}
[ "public", "UpdateAccountSettingsResult", "updateAccountSettings", "(", "UpdateAccountSettingsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateAccountSettings", "(", "request", ")", ";", "}" ]
public virtual UpdateAccountSettingsResponse UpdateAccountSettings(UpdateAccountSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountSettingsResponseUnmarshaller.Instance;return Invoke<UpdateAccountSettingsResponse>(request, options);}
train
true
10,158
public SearcherTracker(IndexSearcher searcher) {this.searcher = searcher;version = ((DirectoryReader) searcher.getIndexReader()).getVersion();searcher.getIndexReader().incRef();recordTimeSec = System.nanoTime() / NANOS_PER_SEC;}
[ "public", "SearcherTracker", "(", "IndexSearcher", "searcher", ")", "{", "this", ".", "searcher", "=", "searcher", ";", "version", "=", "(", "(", "DirectoryReader", ")", "searcher", ".", "getIndexReader", "(", ")", ")", ".", "getVersion", "(", ")", ";", "searcher", ".", "getIndexReader", "(", ")", ".", "incRef", "(", ")", ";", "recordTimeSec", "=", "System", ".", "nanoTime", "(", ")", "/", "NANOS_PER_SEC", ";", "}" ]
public SearcherTracker(IndexSearcher searcher){Searcher = searcher;Version = ((DirectoryReader)searcher.IndexReader).Version;searcher.IndexReader.IncRef();RecordTimeSec = Time.NanoTime() / NANOS_PER_SEC;}
train
false
10,159
public Principal(String accountId) {this("AWS", accountId);if (accountId == null) {throw new IllegalArgumentException("Null AWS account ID specified");}}
[ "public", "Principal", "(", "String", "accountId", ")", "{", "this", "(", "\"AWS\"", ",", "accountId", ")", ";", "if", "(", "accountId", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Null AWS account ID specified\"", ")", ";", "}", "}" ]
public Principal(string accountId): this(AWS_PROVIDER, accountId){if (accountId == null){throw new ArgumentNullException("accountId");}}
train
false
10,161
public ListMomentPhotosRequest() {super("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "ListMomentPhotosRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"ListMomentPhotos\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public ListMomentPhotosRequest(): base("CloudPhoto", "2017-07-11", "ListMomentPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
10,163
public LinearOffsetRange(int offset, int length) {if(length == 0) {throw new RuntimeException("length may not be zero");}_offset = offset;_length = length;}
[ "public", "LinearOffsetRange", "(", "int", "offset", ",", "int", "length", ")", "{", "if", "(", "length", "==", "0", ")", "{", "throw", "new", "RuntimeException", "(", "\"length may not be zero\"", ")", ";", "}", "_offset", "=", "offset", ";", "_length", "=", "length", ";", "}" ]
public LinearOffsetRange(int offset, int length){if (length == 0){throw new ArgumentException("Length may not be zero");}_offset = offset;_Length = length;}
train
false
10,164
public ListPipelinesResult listPipelines() {return listPipelines(new ListPipelinesRequest());}
[ "public", "ListPipelinesResult", "listPipelines", "(", ")", "{", "return", "listPipelines", "(", "new", "ListPipelinesRequest", "(", ")", ")", ";", "}" ]
public virtual ListPipelinesResponse ListPipelines(){return ListPipelines(new ListPipelinesRequest());}
train
false
10,165
public static boolean indexExists(Directory directory) throws IOException {String[] files = directory.listAll();String prefix = IndexFileNames.SEGMENTS + "_";for(String file : files) {if (file.startsWith(prefix)) {return true;}}return false;}
[ "public", "static", "boolean", "indexExists", "(", "Directory", "directory", ")", "throws", "IOException", "{", "String", "[", "]", "files", "=", "directory", ".", "listAll", "(", ")", ";", "String", "prefix", "=", "IndexFileNames", ".", "SEGMENTS", "+", "\"_\"", ";", "for", "(", "String", "file", ":", "files", ")", "{", "if", "(", "file", ".", "startsWith", "(", "prefix", ")", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public static bool IndexExists(Directory directory){string[] files;try{files = directory.ListAll();} catch (DirectoryNotFoundException nsde) {return false;}if (files != null){string prefix = IndexFileNames.SEGMENTS + "_";foreach (string file in files){if (file.StartsWith(prefix, StringComparison.Ordinal) || file.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){return true;}}}return false;}
train
false
10,166
public DisassociateFromMasterAccountResult disassociateFromMasterAccount(DisassociateFromMasterAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateFromMasterAccount(request);}
[ "public", "DisassociateFromMasterAccountResult", "disassociateFromMasterAccount", "(", "DisassociateFromMasterAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateFromMasterAccount", "(", "request", ")", ";", "}" ]
public virtual DisassociateFromMasterAccountResponse DisassociateFromMasterAccount(DisassociateFromMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFromMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFromMasterAccountResponseUnmarshaller.Instance;return Invoke<DisassociateFromMasterAccountResponse>(request, options);}
train
true
10,167
public GetVoiceTemplateResult getVoiceTemplate(GetVoiceTemplateRequest request) {request = beforeClientExecution(request);return executeGetVoiceTemplate(request);}
[ "public", "GetVoiceTemplateResult", "getVoiceTemplate", "(", "GetVoiceTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetVoiceTemplate", "(", "request", ")", ";", "}" ]
public virtual GetVoiceTemplateResponse GetVoiceTemplate(GetVoiceTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceTemplateResponseUnmarshaller.Instance;return Invoke<GetVoiceTemplateResponse>(request, options);}
train
false
10,168
public long ramBytesUsed() {return RamUsageEstimator.sizeOf(filter.getBits());}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "return", "RamUsageEstimator", ".", "sizeOf", "(", "filter", ".", "getBits", "(", ")", ")", ";", "}" ]
public virtual long RamBytesUsed(){return RamUsageEstimator.SizeOf(_filter.GetBits());}
train
false
10,169
public RejectInvitationResult rejectInvitation(RejectInvitationRequest request) {request = beforeClientExecution(request);return executeRejectInvitation(request);}
[ "public", "RejectInvitationResult", "rejectInvitation", "(", "RejectInvitationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRejectInvitation", "(", "request", ")", ";", "}" ]
public virtual RejectInvitationResponse RejectInvitation(RejectInvitationRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectInvitationRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectInvitationResponseUnmarshaller.Instance;return Invoke<RejectInvitationResponse>(request, options);}
train
false
10,170
public RejectQualificationRequestResult rejectQualificationRequest(RejectQualificationRequestRequest request) {request = beforeClientExecution(request);return executeRejectQualificationRequest(request);}
[ "public", "RejectQualificationRequestResult", "rejectQualificationRequest", "(", "RejectQualificationRequestRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRejectQualificationRequest", "(", "request", ")", ";", "}" ]
public virtual RejectQualificationRequestResponse RejectQualificationRequest(RejectQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectQualificationRequestResponseUnmarshaller.Instance;return Invoke<RejectQualificationRequestResponse>(request, options);}
train
true
10,171
public final long[] array() {return protectedArray();}
[ "public", "final", "long", "[", "]", "array", "(", ")", "{", "return", "protectedArray", "(", ")", ";", "}" ]
public sealed override object array(){return protectedArray();}
train
false
10,172
public void writeChars(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeChars(value);}
[ "public", "void", "writeChars", "(", "String", "value", ")", "throws", "IOException", "{", "checkWritePrimitiveTypes", "(", ")", ";", "primitiveTypes", ".", "writeChars", "(", "value", ")", ";", "}" ]
public virtual void writeChars(string value){throw new System.NotImplementedException();}
train
false
10,173
public void finish(FieldInfos fis, int numDocs) throws IOException {if (numDocsWritten != numDocs) {throw new RuntimeException("mergeVectors produced an invalid result: mergedDocs is " + numDocs + " but vec numDocs is " + numDocsWritten + " file=" + out.toString() + "; now aborting this merge to prevent index corruption");}write(END);newLine();SimpleTextUtil.writeChecksum(out, scratch);}
[ "public", "void", "finish", "(", "FieldInfos", "fis", ",", "int", "numDocs", ")", "throws", "IOException", "{", "if", "(", "numDocsWritten", "!=", "numDocs", ")", "{", "throw", "new", "RuntimeException", "(", "\"mergeVectors produced an invalid result: mergedDocs is \"", "+", "numDocs", "+", "\" but vec numDocs is \"", "+", "numDocsWritten", "+", "\" file=\"", "+", "out", ".", "toString", "(", ")", "+", "\"; now aborting this merge to prevent index corruption\"", ")", ";", "}", "write", "(", "END", ")", ";", "newLine", "(", ")", ";", "SimpleTextUtil", ".", "writeChecksum", "(", "out", ",", "scratch", ")", ";", "}" ]
public override void Finish(FieldInfos fis, int numDocs){if (_numDocsWritten != numDocs){throw new Exception("mergeVectors produced an invalid result: mergedDocs is " + numDocs +" but vec numDocs is " + _numDocsWritten + " file=" + _output +"; now aborting this merge to prevent index corruption");}Write(END);NewLine();SimpleTextUtil.WriteChecksum(_output, _scratch);}
train
false
10,174
public void readBytes(byte[] b, int offset, int len) throws IOException {while (len > 0) {final int cnt = is.read(b, offset, len);if (cnt < 0) {throw new EOFException();}len -= cnt;offset += cnt;}}
[ "public", "void", "readBytes", "(", "byte", "[", "]", "b", ",", "int", "offset", ",", "int", "len", ")", "throws", "IOException", "{", "while", "(", "len", ">", "0", ")", "{", "final", "int", "cnt", "=", "is", ".", "read", "(", "b", ",", "offset", ",", "len", ")", ";", "if", "(", "cnt", "<", "0", ")", "{", "throw", "new", "EOFException", "(", ")", ";", "}", "len", "-=", "cnt", ";", "offset", "+=", "cnt", ";", "}", "}" ]
public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int cnt = _reader.Read(b, offset, len);if (cnt < 0){throw new EndOfStreamException();}len -= cnt;offset += cnt;}}
train
false
10,176
public boolean equals(Object obj) {if (this == obj) return true;if (null == obj || getClass() != obj.getClass()) return false;JaroWinklerDistance o = (JaroWinklerDistance)obj;return (Float.floatToIntBits(o.threshold)== Float.floatToIntBits(this.threshold));}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "null", "==", "obj", "||", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "return", "false", ";", "JaroWinklerDistance", "o", "=", "(", "JaroWinklerDistance", ")", "obj", ";", "return", "(", "Float", ".", "floatToIntBits", "(", "o", ".", "threshold", ")", "==", "Float", ".", "floatToIntBits", "(", "this", ".", "threshold", ")", ")", ";", "}" ]
public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}JaroWinklerDistance o = (JaroWinklerDistance)obj;return (J2N.BitConversion.SingleToInt32Bits(o.threshold) == J2N.BitConversion.SingleToInt32Bits(this.threshold));}
train
false
10,177
public BatchRefUpdate addCommand(ReceiveCommand... cmd) {return addCommand(Arrays.asList(cmd));}
[ "public", "BatchRefUpdate", "addCommand", "(", "ReceiveCommand", "...", "cmd", ")", "{", "return", "addCommand", "(", "Arrays", ".", "asList", "(", "cmd", ")", ")", ";", "}" ]
public virtual NGit.BatchRefUpdate AddCommand(ReceiveCommand cmd){commands.AddItem(cmd);return this;}
train
false
10,178
public void write(byte[] buf, int off, int len) throws IOException {try {beginWrite();dst.write(buf, off, len);} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}
[ "public", "void", "write", "(", "byte", "[", "]", "buf", ",", "int", "off", ",", "int", "len", ")", "throws", "IOException", "{", "try", "{", "beginWrite", "(", ")", ";", "dst", ".", "write", "(", "buf", ",", "off", ",", "len", ")", ";", "}", "catch", "(", "InterruptedIOException", "e", ")", "{", "throw", "writeTimedOut", "(", "e", ")", ";", "}", "finally", "{", "endWrite", "(", ")", ";", "}", "}" ]
public override void Write(byte[] buf, int off, int len){try{BeginWrite();dst.Write(buf, off, len);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}
train
false
10,179
public DeregisterGameServerResult deregisterGameServer(DeregisterGameServerRequest request) {request = beforeClientExecution(request);return executeDeregisterGameServer(request);}
[ "public", "DeregisterGameServerResult", "deregisterGameServer", "(", "DeregisterGameServerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeregisterGameServer", "(", "request", ")", ";", "}" ]
public virtual DeregisterGameServerResponse DeregisterGameServer(DeregisterGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterGameServerResponseUnmarshaller.Instance;return Invoke<DeregisterGameServerResponse>(request, options);}
train
false
10,180
public void write(byte[] b) {try {super.write(b);} catch (IOException e) {throw new RuntimeException(e);}}
[ "public", "void", "write", "(", "byte", "[", "]", "b", ")", "{", "try", "{", "super", ".", "write", "(", "b", ")", ";", "}", "catch", "(", "IOException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "e", ")", ";", "}", "}" ]
public void Write(byte[] b){try{out1.Write(b, 0, b.Length);}catch (IOException e){throw new RuntimeException(e);}}
train
false
10,181
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return symbol >= from && symbol <= to;}
[ "public", "boolean", "matches", "(", "int", "symbol", ",", "int", "minVocabSymbol", ",", "int", "maxVocabSymbol", ")", "{", "return", "symbol", ">=", "from", "&&", "symbol", "<=", "to", ";", "}" ]
public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return symbol >= from && symbol <= to;}
train
false
10,182
public void finish(FieldInfos fis, int numDocs) throws IOException {if (numBufferedDocs > 0) {flush();numDirtyChunks++; } else {assert bufferedDocs.size() == 0;}if (docBase != numDocs) {throw new RuntimeException("Wrote " + docBase + " docs, finish called with numDocs=" + numDocs);}indexWriter.finish(numDocs, fieldsStream.getFilePointer());fieldsStream.writeVLong(numChunks);fieldsStream.writeVLong(numDirtyChunks);CodecUtil.writeFooter(fieldsStream);assert bufferedDocs.size() == 0;}
[ "public", "void", "finish", "(", "FieldInfos", "fis", ",", "int", "numDocs", ")", "throws", "IOException", "{", "if", "(", "numBufferedDocs", ">", "0", ")", "{", "flush", "(", ")", ";", "numDirtyChunks", "++", ";", "}", "else", "{", "assert", "bufferedDocs", ".", "size", "(", ")", "==", "0", ";", "}", "if", "(", "docBase", "!=", "numDocs", ")", "{", "throw", "new", "RuntimeException", "(", "\"Wrote \"", "+", "docBase", "+", "\" docs, finish called with numDocs=\"", "+", "numDocs", ")", ";", "}", "indexWriter", ".", "finish", "(", "numDocs", ",", "fieldsStream", ".", "getFilePointer", "(", ")", ")", ";", "fieldsStream", ".", "writeVLong", "(", "numChunks", ")", ";", "fieldsStream", ".", "writeVLong", "(", "numDirtyChunks", ")", ";", "CodecUtil", ".", "writeFooter", "(", "fieldsStream", ")", ";", "assert", "bufferedDocs", ".", "size", "(", ")", "==", "0", ";", "}" ]
public override void Finish(FieldInfos fis, int numDocs){if (numBufferedDocs > 0){Flush();}else{Debug.Assert(bufferedDocs.Length == 0);}if (docBase != numDocs){throw new Exception("Wrote " + docBase + " docs, finish called with numDocs=" + numDocs);}indexWriter.Finish(numDocs, fieldsStream.GetFilePointer());CodecUtil.WriteFooter(fieldsStream);Debug.Assert(bufferedDocs.Length == 0);}
train
false
10,183
public Iterator<String> iterator() {final Iterator<String> i = names.values().iterator();return new Iterator<String>();}
[ "public", "Iterator", "<", "String", ">", "iterator", "(", ")", "{", "final", "Iterator", "<", "String", ">", "i", "=", "names", ".", "values", "(", ")", ".", "iterator", "(", ")", ";", "return", "new", "Iterator", "<", "String", ">", "(", ")", ";", "}" ]
public override Sharpen.Iterator<string> Iterator(){Sharpen.Iterator<string> i = names.Values.Iterator();return new _Iterator_276(i);}
train
false
10,184
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[DEFAULTCOLWIDTH]\n");buffer.append(" .colwidth = ").append(Integer.toHexString(getColWidth())).append("\n");buffer.append("[/DEFAULTCOLWIDTH]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[DEFAULTCOLWIDTH]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .colwidth = \"", ")", ".", "append", "(", "Integer", ".", "toHexString", "(", "getColWidth", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/DEFAULTCOLWIDTH]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[DEFAULTCOLWIDTH]\n");buffer.Append(" .colwidth = ").Append(StringUtil.ToHexString(ColWidth)).Append("\n");buffer.Append("[/DEFAULTCOLWIDTH]\n");return buffer.ToString();}
train
false
10,185
public DataValidityTable(RecordStream rs) {_headerRec = (DVALRecord) rs.getNext();List<DVRecord> temp = new ArrayList<>();while (rs.peekNextClass() == DVRecord.class) {temp.add((DVRecord) rs.getNext());}_validationList = temp;}
[ "public", "DataValidityTable", "(", "RecordStream", "rs", ")", "{", "_headerRec", "=", "(", "DVALRecord", ")", "rs", ".", "getNext", "(", ")", ";", "List", "<", "DVRecord", ">", "temp", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "while", "(", "rs", ".", "peekNextClass", "(", ")", "==", "DVRecord", ".", "class", ")", "{", "temp", ".", "add", "(", "(", "DVRecord", ")", "rs", ".", "getNext", "(", ")", ")", ";", "}", "_validationList", "=", "temp", ";", "}" ]
public DataValidityTable(RecordStream rs){_headerRec = (DVALRecord)rs.GetNext();IList temp = new ArrayList();while (rs.PeekNextClass() == typeof(DVRecord)){temp.Add(rs.GetNext());}_validationList = temp;}
train
false
10,186
public DeleteRoomMembershipResult deleteRoomMembership(DeleteRoomMembershipRequest request) {request = beforeClientExecution(request);return executeDeleteRoomMembership(request);}
[ "public", "DeleteRoomMembershipResult", "deleteRoomMembership", "(", "DeleteRoomMembershipRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRoomMembership", "(", "request", ")", ";", "}" ]
public virtual DeleteRoomMembershipResponse DeleteRoomMembership(DeleteRoomMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomMembershipResponseUnmarshaller.Instance;return Invoke<DeleteRoomMembershipResponse>(request, options);}
train
false
10,187
public QueryParserTokenManager(CharStream stream, int lexState){this(stream);SwitchTo(lexState);}
[ "public", "QueryParserTokenManager", "(", "CharStream", "stream", ",", "int", "lexState", ")", "{", "this", "(", "stream", ")", ";", "SwitchTo", "(", "lexState", ")", ";", "}" ]
public QueryParserTokenManager(ICharStream stream, int lexState):this(stream){SwitchTo(lexState);}
train
false
10,188
public RebootDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}
[ "public", "RebootDBInstanceRequest", "(", "String", "dBInstanceIdentifier", ")", "{", "setDBInstanceIdentifier", "(", "dBInstanceIdentifier", ")", ";", "}" ]
public RebootDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}
train
false
10,189
public CreateAutoScalingGroupResult createAutoScalingGroup(CreateAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeCreateAutoScalingGroup(request);}
[ "public", "CreateAutoScalingGroupResult", "createAutoScalingGroup", "(", "CreateAutoScalingGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateAutoScalingGroup", "(", "request", ")", ";", "}" ]
public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance;return Invoke<CreateAutoScalingGroupResponse>(request, options);}
train
true
10,190
public K floorKey(K key) {Entry<K, V> entry = findBounded(key, FLOOR);return entry != null ? entry.getKey() : null;}
[ "public", "K", "floorKey", "(", "K", "key", ")", "{", "Entry", "<", "K", ",", "V", ">", "entry", "=", "findBounded", "(", "key", ",", "FLOOR", ")", ";", "return", "entry", "!=", "null", "?", "entry", ".", "getKey", "(", ")", ":", "null", ";", "}" ]
public K floorKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.FLOOR);return entry != null ? entry.getKey() : default(K);}
train
false
10,191
public boolean include(RevWalk walker, RevCommit c) {return true;}
[ "public", "boolean", "include", "(", "RevWalk", "walker", ",", "RevCommit", "c", ")", "{", "return", "true", ";", "}" ]
public override bool Include(RevWalk walker, RevCommit c){return true;}
train
false
10,192
public boolean isValidating() {return getFeature (XmlPullParser.FEATURE_VALIDATION);}
[ "public", "boolean", "isValidating", "(", ")", "{", "return", "getFeature", "(", "XmlPullParser", ".", "FEATURE_VALIDATION", ")", ";", "}" ]
public virtual bool isValidating(){return getFeature(org.xmlpull.v1.XmlPullParserClass.FEATURE_VALIDATION);}
train
false
10,193
public synchronized void write(int oneByte) {if (out == null) {setError();return;}try {out.write(oneByte);int b = oneByte & 0xFF;boolean isNewline = b == 0x0A || b == 0x15;if (autoFlush && isNewline) {flush();}} catch (IOException e) {setError();}}
[ "public", "synchronized", "void", "write", "(", "int", "oneByte", ")", "{", "if", "(", "out", "==", "null", ")", "{", "setError", "(", ")", ";", "return", ";", "}", "try", "{", "out", ".", "write", "(", "oneByte", ")", ";", "int", "b", "=", "oneByte", "&", "0xFF", ";", "boolean", "isNewline", "=", "b", "==", "0x0A", "||", "b", "==", "0x15", ";", "if", "(", "autoFlush", "&&", "isNewline", ")", "{", "flush", "(", ")", ";", "}", "}", "catch", "(", "IOException", "e", ")", "{", "setError", "(", ")", ";", "}", "}" ]
public override void write(int oneByte){lock (this){if (@out == null){setError();return;}try{@out.write(oneByte);int b = oneByte & unchecked((int)(0xFF));bool isNewline = b == unchecked((int)(0x0A)) || b == unchecked((int)(0x15));if (autoFlush && isNewline){flush();}}catch (System.IO.IOException){setError();}}}
train
false
10,194
public UpdateScalingParametersResult updateScalingParameters(UpdateScalingParametersRequest request) {request = beforeClientExecution(request);return executeUpdateScalingParameters(request);}
[ "public", "UpdateScalingParametersResult", "updateScalingParameters", "(", "UpdateScalingParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateScalingParameters", "(", "request", ")", ";", "}" ]
public virtual UpdateScalingParametersResponse UpdateScalingParameters(UpdateScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateScalingParametersResponseUnmarshaller.Instance;return Invoke<UpdateScalingParametersResponse>(request, options);}
train
true
10,195
public ModifyDBClusterParameterGroupResult modifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterParameterGroup(request);}
[ "public", "ModifyDBClusterParameterGroupResult", "modifyDBClusterParameterGroup", "(", "ModifyDBClusterParameterGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyDBClusterParameterGroup", "(", "request", ")", ";", "}" ]
public virtual ModifyDBClusterParameterGroupResponse ModifyDBClusterParameterGroup(ModifyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<ModifyDBClusterParameterGroupResponse>(request, options);}
train
true
10,196
public GetOperationsForResourceResult getOperationsForResource(GetOperationsForResourceRequest request) {request = beforeClientExecution(request);return executeGetOperationsForResource(request);}
[ "public", "GetOperationsForResourceResult", "getOperationsForResource", "(", "GetOperationsForResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetOperationsForResource", "(", "request", ")", ";", "}" ]
public virtual GetOperationsForResourceResponse GetOperationsForResource(GetOperationsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationsForResourceResponseUnmarshaller.Instance;return Invoke<GetOperationsForResourceResponse>(request, options);}
train
true
10,197
public NLPTokenizerOp(TokenizerModel model) {tokenizer = new TokenizerME(model);}
[ "public", "NLPTokenizerOp", "(", "TokenizerModel", "model", ")", "{", "tokenizer", "=", "new", "TokenizerME", "(", "model", ")", ";", "}" ]
public NLPTokenizerOp(TokenizerModel model){tokenizer = new TokenizerME(model);}
train
false
10,198
public StartImageScanRequest() {super("cr", "2016-06-07", "StartImageScan", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan");setMethod(MethodType.PUT);}
[ "public", "StartImageScanRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"StartImageScan\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public StartImageScanRequest(): base("cr", "2016-06-07", "StartImageScan", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan";Method = MethodType.PUT;}
train
false
10,199
public UpdateFleetResult updateFleet(UpdateFleetRequest request) {request = beforeClientExecution(request);return executeUpdateFleet(request);}
[ "public", "UpdateFleetResult", "updateFleet", "(", "UpdateFleetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateFleet", "(", "request", ")", ";", "}" ]
public virtual UpdateFleetResponse UpdateFleet(UpdateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetResponseUnmarshaller.Instance;return Invoke<UpdateFleetResponse>(request, options);}
train
true