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
7,010
public Trie reduce(Reduce by) {return by.optimize(this);}
[ "public", "Trie", "reduce", "(", "Reduce", "by", ")", "{", "return", "by", ".", "optimize", "(", "this", ")", ";", "}" ]
public virtual Trie Reduce(Reduce by){return by.Optimize(this);}
train
false
7,011
public AbstractEscherHolderRecord clone() {return copy();}
[ "public", "AbstractEscherHolderRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override object Clone(){return CloneViaReserialise();}
train
false
7,012
public void setParams(String params) {super.setParams(params);commitUserData = new HashMap<>();commitUserData.put(OpenReaderTask.USER_DATA, params);}
[ "public", "void", "setParams", "(", "String", "params", ")", "{", "super", ".", "setParams", "(", "params", ")", ";", "commitUserData", "=", "new", "HashMap", "<", ">", "(", ")", ";", "commitUserData", ".", "put", "(", "OpenReaderTask", ".", "USER_DATA", ",", "params", ")", ";", "}" ]
public override void SetParams(string @params){base.SetParams(@params);commitUserData = new Dictionary<string, string>();commitUserData[OpenReaderTask.USER_DATA] = @params;}
train
false
7,013
public String getSrcRef() {return srcRef;}
[ "public", "String", "getSrcRef", "(", ")", "{", "return", "srcRef", ";", "}" ]
public virtual string GetSrcRef(){return srcRef;}
train
false
7,014
public final String getShortMessage() {byte[] raw = buffer;int msgB = RawParseUtils.commitMessage(raw, 0);if (msgB < 0) {return ""; }int msgE = RawParseUtils.endOfParagraph(raw, msgB);String str = RawParseUtils.decode(guessEncoding(), raw, msgB, msgE);if (hasLF(raw, msgB, msgE)) {str = StringUtils.replaceLineBreaksWithSpace(str);}return str;}
[ "public", "final", "String", "getShortMessage", "(", ")", "{", "byte", "[", "]", "raw", "=", "buffer", ";", "int", "msgB", "=", "RawParseUtils", ".", "commitMessage", "(", "raw", ",", "0", ")", ";", "if", "(", "msgB", "<", "0", ")", "{", "return", "\"\"", ";", "}", "int", "msgE", "=", "RawParseUtils", ".", "endOfParagraph", "(", "raw", ",", "msgB", ")", ";", "String", "str", "=", "RawParseUtils", ".", "decode", "(", "guessEncoding", "(", ")", ",", "raw", ",", "msgB", ",", "msgE", ")", ";", "if", "(", "hasLF", "(", "raw", ",", "msgB", ",", "msgE", ")", ")", "{", "str", "=", "StringUtils", ".", "replaceLineBreaksWithSpace", "(", "str", ")", ";", "}", "return", "str", ";", "}" ]
public string GetShortMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);int msgE = RawParseUtils.EndOfParagraph(raw, msgB);string str = RawParseUtils.Decode(enc, raw, msgB, msgE);if (HasLF(raw, msgB, msgE)){str = str.Replace('\n', ' ');}return str;}
train
false
7,015
public static Boolean coerceValueToBoolean(ValueEval ve, boolean stringsAreBlanks) throws EvaluationException {if (ve == null || ve == BlankEval.instance) {return null;}if (ve instanceof BoolEval) {return Boolean.valueOf(((BoolEval) ve).getBooleanValue());}if (ve instanceof StringEval) {if (stringsAreBlanks) {return null;}String str = ((StringEval) ve).getStringValue();if (str.equalsIgnoreCase("true")) {return Boolean.TRUE;}if (str.equalsIgnoreCase("false")) {return Boolean.FALSE;}throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (ve instanceof NumericValueEval) {NumericValueEval ne = (NumericValueEval) ve;double d = ne.getNumberValue();if (Double.isNaN(d)) {throw new EvaluationException(ErrorEval.VALUE_INVALID);}return Boolean.valueOf(d != 0);}if (ve instanceof ErrorEval) {throw new EvaluationException((ErrorEval) ve);}throw new RuntimeException("Unexpected eval (" + ve.getClass().getName() + ")");}
[ "public", "static", "Boolean", "coerceValueToBoolean", "(", "ValueEval", "ve", ",", "boolean", "stringsAreBlanks", ")", "throws", "EvaluationException", "{", "if", "(", "ve", "==", "null", "||", "ve", "==", "BlankEval", ".", "instance", ")", "{", "return", "null", ";", "}", "if", "(", "ve", "instanceof", "BoolEval", ")", "{", "return", "Boolean", ".", "valueOf", "(", "(", "(", "BoolEval", ")", "ve", ")", ".", "getBooleanValue", "(", ")", ")", ";", "}", "if", "(", "ve", "instanceof", "StringEval", ")", "{", "if", "(", "stringsAreBlanks", ")", "{", "return", "null", ";", "}", "String", "str", "=", "(", "(", "StringEval", ")", "ve", ")", ".", "getStringValue", "(", ")", ";", "if", "(", "str", ".", "equalsIgnoreCase", "(", "\"true\"", ")", ")", "{", "return", "Boolean", ".", "TRUE", ";", "}", "if", "(", "str", ".", "equalsIgnoreCase", "(", "\"false\"", ")", ")", "{", "return", "Boolean", ".", "FALSE", ";", "}", "throw", "new", "EvaluationException", "(", "ErrorEval", ".", "VALUE_INVALID", ")", ";", "}", "if", "(", "ve", "instanceof", "NumericValueEval", ")", "{", "NumericValueEval", "ne", "=", "(", "NumericValueEval", ")", "ve", ";", "double", "d", "=", "ne", ".", "getNumberValue", "(", ")", ";", "if", "(", "Double", ".", "isNaN", "(", "d", ")", ")", "{", "throw", "new", "EvaluationException", "(", "ErrorEval", ".", "VALUE_INVALID", ")", ";", "}", "return", "Boolean", ".", "valueOf", "(", "d", "!=", "0", ")", ";", "}", "if", "(", "ve", "instanceof", "ErrorEval", ")", "{", "throw", "new", "EvaluationException", "(", "(", "ErrorEval", ")", "ve", ")", ";", "}", "throw", "new", "RuntimeException", "(", "\"Unexpected eval (\"", "+", "ve", ".", "getClass", "(", ")", ".", "getName", "(", ")", "+", "\")\"", ")", ";", "}" ]
public static Boolean? CoerceValueToBoolean(ValueEval ve, bool stringsAreBlanks){if (ve == null || ve == BlankEval.instance){return null;}if (ve is BoolEval){return ((BoolEval)ve).BooleanValue;}if (ve is StringEval){if (stringsAreBlanks){return null;}String str = ((StringEval)ve).StringValue;if (str.Equals("true", StringComparison.OrdinalIgnoreCase)){return true;}if (str.Equals("false", StringComparison.OrdinalIgnoreCase)){return false;}throw new EvaluationException(ErrorEval.VALUE_INVALID);}if (ve is NumericValueEval){NumericValueEval ne = (NumericValueEval)ve;double d = ne.NumberValue;if (Double.IsNaN(d)){throw new EvaluationException(ErrorEval.VALUE_INVALID);}return d != 0;}if (ve is ErrorEval){throw new EvaluationException((ErrorEval)ve);}throw new InvalidOperationException("Unexpected eval (" + ve.GetType().Name + ")");}
train
false
7,016
public synchronized List<IndexCommit> getSnapshots() {return new ArrayList<>(indexCommits.values());}
[ "public", "synchronized", "List", "<", "IndexCommit", ">", "getSnapshots", "(", ")", "{", "return", "new", "ArrayList", "<", ">", "(", "indexCommits", ".", "values", "(", ")", ")", ";", "}" ]
public virtual IList<IndexCommit> GetSnapshots(){lock (this){return new List<IndexCommit>(m_indexCommits.Values);}}
train
false
7,017
public static int subIndex(int n, int[] docStarts) { int size = docStarts.length;int lo = 0; int hi = size - 1; while (hi >= lo) {int mid = (lo + hi) >>> 1;int midValue = docStarts[mid];if (n < midValue)hi = mid - 1;else if (n > midValue)lo = mid + 1;else { while (mid + 1 < size && docStarts[mid + 1] == midValue) {mid++; }return mid;}}return hi;}
[ "public", "static", "int", "subIndex", "(", "int", "n", ",", "int", "[", "]", "docStarts", ")", "{", "int", "size", "=", "docStarts", ".", "length", ";", "int", "lo", "=", "0", ";", "int", "hi", "=", "size", "-", "1", ";", "while", "(", "hi", ">=", "lo", ")", "{", "int", "mid", "=", "(", "lo", "+", "hi", ")", ">", ">", ">", "1", ";", "int", "midValue", "=", "docStarts", "[", "mid", "]", ";", "if", "(", "n", "<", "midValue", ")", "hi", "=", "mid", "-", "1", ";", "else", "if", "(", "n", ">", "midValue", ")", "lo", "=", "mid", "+", "1", ";", "else", "{", "while", "(", "mid", "+", "1", "<", "size", "&&", "docStarts", "[", "mid", "+", "1", "]", "==", "midValue", ")", "{", "mid", "++", ";", "}", "return", "mid", ";", "}", "}", "return", "hi", ";", "}" ]
public static int SubIndex(int n, int[] docStarts) {int size = docStarts.Length;int lo = 0; int hi = size - 1; while (hi >= lo){int mid = (int)((uint)(lo + hi) >> 1);int midValue = docStarts[mid];if (n < midValue){hi = mid - 1;}else if (n > midValue){lo = mid + 1;}else {while (mid + 1 < size && docStarts[mid + 1] == midValue){mid++; }return mid;}}return hi;}
train
false
7,018
public static Date getJavaDate(double date, boolean use1904windowing) {return getJavaDate(date, use1904windowing, null, false);}
[ "public", "static", "Date", "getJavaDate", "(", "double", "date", ",", "boolean", "use1904windowing", ")", "{", "return", "getJavaDate", "(", "date", ",", "use1904windowing", ",", "null", ",", "false", ")", ";", "}" ]
public static DateTime GetJavaDate(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);}
train
false
7,019
public CharSequence getLastOnPath(CharSequence key) {Row now = getRow(root);int w;CharSequence last = null;StrEnum e = new StrEnum(key, forward);for (int i = 0; i < key.length() - 1; i++) {Character ch = e.next();w = now.getCmd(ch);if (w >= 0) {last = cmds.get(w);}w = now.getRef(ch);if (w >= 0) {now = getRow(w);} else {return last;}}w = now.getCmd(e.next());return (w >= 0) ? cmds.get(w) : last;}
[ "public", "CharSequence", "getLastOnPath", "(", "CharSequence", "key", ")", "{", "Row", "now", "=", "getRow", "(", "root", ")", ";", "int", "w", ";", "CharSequence", "last", "=", "null", ";", "StrEnum", "e", "=", "new", "StrEnum", "(", "key", ",", "forward", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "key", ".", "length", "(", ")", "-", "1", ";", "i", "++", ")", "{", "Character", "ch", "=", "e", ".", "next", "(", ")", ";", "w", "=", "now", ".", "getCmd", "(", "ch", ")", ";", "if", "(", "w", ">=", "0", ")", "{", "last", "=", "cmds", ".", "get", "(", "w", ")", ";", "}", "w", "=", "now", ".", "getRef", "(", "ch", ")", ";", "if", "(", "w", ">=", "0", ")", "{", "now", "=", "getRow", "(", "w", ")", ";", "}", "else", "{", "return", "last", ";", "}", "}", "w", "=", "now", ".", "getCmd", "(", "e", ".", "next", "(", ")", ")", ";", "return", "(", "w", ">=", "0", ")", "?", "cmds", ".", "get", "(", "w", ")", ":", "last", ";", "}" ]
public virtual string GetLastOnPath(string key){Row now = GetRow(root);int w;string last = null;StrEnum e = new StrEnum(key, forward);for (int i = 0; i < key.Length - 1; i++){char ch = e.Next();w = now.GetCmd(ch);if (w >= 0){last = cmds[w];}w = now.GetRef(ch);if (w >= 0){now = GetRow(w);}else{return last;}}w = now.GetCmd(e.Next());return (w >= 0) ? cmds[w] : last;}
train
false
7,020
public Hashtable(int capacity) {if (capacity < 0) {throw new IllegalArgumentException("Capacity: " + capacity);}if (capacity == 0) {@SuppressWarnings("unchecked")HashtableEntry<K, V>[] tab = (HashtableEntry<K, V>[]) EMPTY_TABLE;table = tab;threshold = -1; return;}if (capacity < MINIMUM_CAPACITY) {capacity = MINIMUM_CAPACITY;} else if (capacity > MAXIMUM_CAPACITY) {capacity = MAXIMUM_CAPACITY;} else {capacity = roundUpToPowerOfTwo(capacity);}makeTable(capacity);}
[ "public", "Hashtable", "(", "int", "capacity", ")", "{", "if", "(", "capacity", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Capacity: \"", "+", "capacity", ")", ";", "}", "if", "(", "capacity", "==", "0", ")", "{", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "HashtableEntry", "<", "K", ",", "V", ">", "[", "]", "tab", "=", "(", "HashtableEntry", "<", "K", ",", "V", ">", "[", "]", ")", "EMPTY_TABLE", ";", "table", "=", "tab", ";", "threshold", "=", "-", "1", ";", "return", ";", "}", "if", "(", "capacity", "<", "MINIMUM_CAPACITY", ")", "{", "capacity", "=", "MINIMUM_CAPACITY", ";", "}", "else", "if", "(", "capacity", ">", "MAXIMUM_CAPACITY", ")", "{", "capacity", "=", "MAXIMUM_CAPACITY", ";", "}", "else", "{", "capacity", "=", "roundUpToPowerOfTwo", "(", "capacity", ")", ";", "}", "makeTable", "(", "capacity", ")", ";", "}" ]
public Hashtable(int capacity){if (capacity < 0){throw new System.ArgumentException("Capacity: " + capacity);}if (capacity == 0){java.util.Hashtable.HashtableEntry<K, V>[] tab = (java.util.Hashtable.HashtableEntry<K, V>[])EMPTY_TABLE;table = tab;threshold = -1;return;}if (capacity < java.util.Hashtable.MINIMUM_CAPACITY){capacity = java.util.Hashtable.MINIMUM_CAPACITY;}else{if (capacity > java.util.Hashtable.MAXIMUM_CAPACITY){capacity = java.util.Hashtable.MAXIMUM_CAPACITY;}else{capacity = roundUpToPowerOfTwo(capacity);}}makeTable(capacity);}
train
false
7,021
public void reset() {heads.clear();heads.addAll(headsStartValue);}
[ "public", "void", "reset", "(", ")", "{", "heads", ".", "clear", "(", ")", ";", "heads", ".", "addAll", "(", "headsStartValue", ")", ";", "}" ]
public virtual void Reset(){heads.Clear();Sharpen.Collections.AddAll(heads, headsStartValue);}
train
false
7,022
public CreatePlacementGroupResult createPlacementGroup(CreatePlacementGroupRequest request) {request = beforeClientExecution(request);return executeCreatePlacementGroup(request);}
[ "public", "CreatePlacementGroupResult", "createPlacementGroup", "(", "CreatePlacementGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreatePlacementGroup", "(", "request", ")", ";", "}" ]
public virtual CreatePlacementGroupResponse CreatePlacementGroup(CreatePlacementGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePlacementGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePlacementGroupResponseUnmarshaller.Instance;return Invoke<CreatePlacementGroupResponse>(request, options);}
train
true
7,023
public final float maxCharsPerByte() {return maxCharsPerByte;}
[ "public", "final", "float", "maxCharsPerByte", "(", ")", "{", "return", "maxCharsPerByte", ";", "}" ]
public float maxCharsPerByte(){return _maxCharsPerByte;}
train
false
7,024
public static String getRFC2616Date(Date date) {SimpleDateFormat df = new SimpleDateFormat(FORMAT_RFC2616, Locale.ENGLISH);df.setTimeZone(new SimpleTimeZone(0, TIME_ZONE));return df.format(date);}
[ "public", "static", "String", "getRFC2616Date", "(", "Date", "date", ")", "{", "SimpleDateFormat", "df", "=", "new", "SimpleDateFormat", "(", "FORMAT_RFC2616", ",", "Locale", ".", "ENGLISH", ")", ";", "df", ".", "setTimeZone", "(", "new", "SimpleTimeZone", "(", "0", ",", "TIME_ZONE", ")", ")", ";", "return", "df", ".", "format", "(", "date", ")", ";", "}" ]
public static string GetRFC2616Date(DateTime datetime){if (null == datetime){datetime = DateTime.UtcNow;}return datetime.ToUniversalTime().GetDateTimeFormats('r') [0];}
train
true
7,025
public ListContributorInsightsResult listContributorInsights(ListContributorInsightsRequest request) {request = beforeClientExecution(request);return executeListContributorInsights(request);}
[ "public", "ListContributorInsightsResult", "listContributorInsights", "(", "ListContributorInsightsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListContributorInsights", "(", "request", ")", ";", "}" ]
public virtual ListContributorInsightsResponse ListContributorInsights(ListContributorInsightsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListContributorInsightsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListContributorInsightsResponseUnmarshaller.Instance;return Invoke<ListContributorInsightsResponse>(request, options);}
train
false
7,026
public void setPackedGitOpenFiles(int fdLimit) {packedGitOpenFiles = fdLimit;}
[ "public", "void", "setPackedGitOpenFiles", "(", "int", "fdLimit", ")", "{", "packedGitOpenFiles", "=", "fdLimit", ";", "}" ]
public virtual void SetPackedGitOpenFiles(int fdLimit){packedGitOpenFiles = fdLimit;}
train
false
7,027
public DBCluster failoverDBCluster(FailoverDBClusterRequest request) {request = beforeClientExecution(request);return executeFailoverDBCluster(request);}
[ "public", "DBCluster", "failoverDBCluster", "(", "FailoverDBClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeFailoverDBCluster", "(", "request", ")", ";", "}" ]
public virtual FailoverDBClusterResponse FailoverDBCluster(FailoverDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = FailoverDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = FailoverDBClusterResponseUnmarshaller.Instance;return Invoke<FailoverDBClusterResponse>(request, options);}
train
true
7,028
public StringBuilder insert(int offset, double d) {insert0(offset, Double.toString(d));return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "double", "d", ")", "{", "insert0", "(", "offset", ",", "Double", ".", "toString", "(", "d", ")", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, double d){insert0(offset, System.Convert.ToString(d));return this;}
train
false
7,029
public void serialize(LittleEndianOutput out) {futureHeader.serialize(out);out.writeShort(isf_sharedFeatureType);out.writeByte(reserved1);out.writeInt((int)reserved2);out.writeShort(cellRefs.length);out.writeInt((int)cbFeatData);out.writeShort(reserved3);for(int i=0; i<cellRefs.length; i++) {cellRefs[i].serialize(out);}sharedFeature.serialize(out);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "futureHeader", ".", "serialize", "(", "out", ")", ";", "out", ".", "writeShort", "(", "isf_sharedFeatureType", ")", ";", "out", ".", "writeByte", "(", "reserved1", ")", ";", "out", ".", "writeInt", "(", "(", "int", ")", "reserved2", ")", ";", "out", ".", "writeShort", "(", "cellRefs", ".", "length", ")", ";", "out", ".", "writeInt", "(", "(", "int", ")", "cbFeatData", ")", ";", "out", ".", "writeShort", "(", "reserved3", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "cellRefs", ".", "length", ";", "i", "++", ")", "{", "cellRefs", "[", "i", "]", ".", "serialize", "(", "out", ")", ";", "}", "sharedFeature", ".", "serialize", "(", "out", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){futureHeader.Serialize(out1);out1.WriteShort(isf_sharedFeatureType);out1.WriteByte(reserved1);out1.WriteInt((int)reserved2);out1.WriteShort(cellRefs.Length);out1.WriteInt((int)cbFeatData);out1.WriteShort(reserved3);for (int i = 0; i < cellRefs.Length; i++){cellRefs[i].Serialize(out1);}sharedFeature.Serialize(out1);}
train
false
7,030
public void writeDouble(double value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeDouble(value);}
[ "public", "void", "writeDouble", "(", "double", "value", ")", "throws", "IOException", "{", "checkWritePrimitiveTypes", "(", ")", ";", "primitiveTypes", ".", "writeDouble", "(", "value", ")", ";", "}" ]
public virtual void writeDouble(double value){throw new System.NotImplementedException();}
train
false
7,031
public DisassociateWebsiteAuthorizationProviderResult disassociateWebsiteAuthorizationProvider(DisassociateWebsiteAuthorizationProviderRequest request) {request = beforeClientExecution(request);return executeDisassociateWebsiteAuthorizationProvider(request);}
[ "public", "DisassociateWebsiteAuthorizationProviderResult", "disassociateWebsiteAuthorizationProvider", "(", "DisassociateWebsiteAuthorizationProviderRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateWebsiteAuthorizationProvider", "(", "request", ")", ";", "}" ]
public virtual DisassociateWebsiteAuthorizationProviderResponse DisassociateWebsiteAuthorizationProvider(DisassociateWebsiteAuthorizationProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateWebsiteAuthorizationProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateWebsiteAuthorizationProviderResponseUnmarshaller.Instance;return Invoke<DisassociateWebsiteAuthorizationProviderResponse>(request, options);}
train
false
7,033
public Cell next() {if (!hasNext()) {throw new NoSuchElementException("At last element");}HSSFCell cell = cells[nextId];thisId = nextId;findNext();return cell;}
[ "public", "Cell", "next", "(", ")", "{", "if", "(", "!", "hasNext", "(", ")", ")", "{", "throw", "new", "NoSuchElementException", "(", "\"At last element\"", ")", ";", "}", "HSSFCell", "cell", "=", "cells", "[", "nextId", "]", ";", "thisId", "=", "nextId", ";", "findNext", "(", ")", ";", "return", "cell", ";", "}" ]
public ICell next(){if (hasNext())return _cells[pos++];else throw new NullReferenceException();}
train
false
7,035
public synchronized StringBuffer insert(int index, String string) {insert0(index, string);return this;}
[ "public", "synchronized", "StringBuffer", "insert", "(", "int", "index", ",", "String", "string", ")", "{", "insert0", "(", "index", ",", "string", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuffer insert(int index, string @string){lock (this){insert0(index, @string);return this;}}
train
false
7,036
public DomainDetail describeDomain(DescribeDomainRequest request) {request = beforeClientExecution(request);return executeDescribeDomain(request);}
[ "public", "DomainDetail", "describeDomain", "(", "DescribeDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDomain", "(", "request", ")", ";", "}" ]
public virtual DescribeDomainResponse DescribeDomain(DescribeDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainResponseUnmarshaller.Instance;return Invoke<DescribeDomainResponse>(request, options);}
train
true
7,037
public void reset() {this.reset(true, true);}
[ "public", "void", "reset", "(", ")", "{", "this", ".", "reset", "(", "true", ",", "true", ")", ";", "}" ]
public void Reset(){this.Reset(true, true);}
train
false
7,038
public void serialize(LittleEndianOutput out) {out.writeShort(_reserved);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "_reserved", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(_reserved);}
train
false
7,039
public int getStartOffset() {return startOffset;}
[ "public", "int", "getStartOffset", "(", ")", "{", "return", "startOffset", ";", "}" ]
public virtual int GetStartOffset(){return startOffset;}
train
false
7,040
public synchronized String[] listAll() throws IOException {final Set<String> files = new HashSet<>();for (String f : cacheDirectory.listAll()) {files.add(f);}for (String f : in.listAll()) {files.add(f);}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}
[ "public", "synchronized", "String", "[", "]", "listAll", "(", ")", "throws", "IOException", "{", "final", "Set", "<", "String", ">", "files", "=", "new", "HashSet", "<", ">", "(", ")", ";", "for", "(", "String", "f", ":", "cacheDirectory", ".", "listAll", "(", ")", ")", "{", "files", ".", "add", "(", "f", ")", ";", "}", "for", "(", "String", "f", ":", "in", ".", "listAll", "(", ")", ")", "{", "files", ".", "add", "(", "f", ")", ";", "}", "String", "[", "]", "result", "=", "files", ".", "toArray", "(", "new", "String", "[", "files", ".", "size", "(", ")", "]", ")", ";", "Arrays", ".", "sort", "(", "result", ")", ";", "return", "result", ";", "}" ]
public override string[] ListAll(){lock (this){ISet<string> files = new JCG.HashSet<string>();foreach (string f in cache.ListAll()){files.Add(f);}try{foreach (string f in @delegate.ListAll()){files.Add(f);}}catch (DirectoryNotFoundException ){if (files.Count == 0){throw; }}return files.ToArray();}}
train
false
7,041
public byte clearByte(final byte holder){return ( byte ) clear(holder);}
[ "public", "byte", "clearByte", "(", "final", "byte", "holder", ")", "{", "return", "(", "byte", ")", "clear", "(", "holder", ")", ";", "}" ]
public byte ClearByte(byte holder){return (byte)this.Clear(holder);}
train
false
7,042
public ScenarioProtectRecord getHCenter() {return _scenarioProtectRecord;}
[ "public", "ScenarioProtectRecord", "getHCenter", "(", ")", "{", "return", "_scenarioProtectRecord", ";", "}" ]
public ScenarioProtectRecord GetHCenter(){return _scenarioProtectRecord;}
train
false
7,043
public HSSFRow createRow(int rownum) {HSSFRow row = new HSSFRow(_workbook, this, rownum);row.setHeight(getDefaultRowHeight());row.getRowRecord().setBadFontHeight(false);addRow(row, true);return row;}
[ "public", "HSSFRow", "createRow", "(", "int", "rownum", ")", "{", "HSSFRow", "row", "=", "new", "HSSFRow", "(", "_workbook", ",", "this", ",", "rownum", ")", ";", "row", ".", "setHeight", "(", "getDefaultRowHeight", "(", ")", ")", ";", "row", ".", "getRowRecord", "(", ")", ".", "setBadFontHeight", "(", "false", ")", ";", "addRow", "(", "row", ",", "true", ")", ";", "return", "row", ";", "}" ]
public NPOI.SS.UserModel.IRow CreateRow(int rownum){HSSFRow row = new HSSFRow(_workbook, this, rownum);row.Height = (DefaultRowHeight);row.RowRecord.BadFontHeight = (false);AddRow(row, true);return row;}
train
false
7,044
public ListQueryExecutionsResult listQueryExecutions(ListQueryExecutionsRequest request) {request = beforeClientExecution(request);return executeListQueryExecutions(request);}
[ "public", "ListQueryExecutionsResult", "listQueryExecutions", "(", "ListQueryExecutionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListQueryExecutions", "(", "request", ")", ";", "}" ]
public virtual ListQueryExecutionsResponse ListQueryExecutions(ListQueryExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueryExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueryExecutionsResponseUnmarshaller.Instance;return Invoke<ListQueryExecutionsResponse>(request, options);}
train
true
7,045
public DeleteSuppressedDestinationResult deleteSuppressedDestination(DeleteSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executeDeleteSuppressedDestination(request);}
[ "public", "DeleteSuppressedDestinationResult", "deleteSuppressedDestination", "(", "DeleteSuppressedDestinationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteSuppressedDestination", "(", "request", ")", ";", "}" ]
public virtual DeleteSuppressedDestinationResponse DeleteSuppressedDestination(DeleteSuppressedDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSuppressedDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSuppressedDestinationResponseUnmarshaller.Instance;return Invoke<DeleteSuppressedDestinationResponse>(request, options);}
train
false
7,046
public CharsRef subtract(CharsRef output, CharsRef inc) {assert output != null;assert inc != null;if (inc == NO_OUTPUT) {return output;} else if (inc.length == output.length) {return NO_OUTPUT;} else {assert inc.length < output.length: "inc.length=" + inc.length + " vs output.length=" + output.length;assert inc.length > 0;return new CharsRef(output.chars, output.offset + inc.length, output.length-inc.length);}}
[ "public", "CharsRef", "subtract", "(", "CharsRef", "output", ",", "CharsRef", "inc", ")", "{", "assert", "output", "!=", "null", ";", "assert", "inc", "!=", "null", ";", "if", "(", "inc", "==", "NO_OUTPUT", ")", "{", "return", "output", ";", "}", "else", "if", "(", "inc", ".", "length", "==", "output", ".", "length", ")", "{", "return", "NO_OUTPUT", ";", "}", "else", "{", "assert", "inc", ".", "length", "<", "output", ".", "length", ":", "\"inc.length=\"", "+", "inc", ".", "length", "+", "\" vs output.length=\"", "+", "output", ".", "length", ";", "assert", "inc", ".", "length", ">", "0", ";", "return", "new", "CharsRef", "(", "output", ".", "chars", ",", "output", ".", "offset", "+", "inc", ".", "length", ",", "output", ".", "length", "-", "inc", ".", "length", ")", ";", "}", "}" ]
public override CharsRef Subtract(CharsRef output, CharsRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, "inc.Length=" + inc.Length + " vs output.Length=" + output.Length);Debug.Assert(inc.Length > 0);return new CharsRef(output.Chars, output.Offset + inc.Length, output.Length - inc.Length);}}
train
false
7,047
public void requestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeRequestCancelWorkflowExecution(request);}
[ "public", "void", "requestCancelWorkflowExecution", "(", "RequestCancelWorkflowExecutionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "executeRequestCancelWorkflowExecution", "(", "request", ")", ";", "}" ]
public virtual RequestCancelWorkflowExecutionResponse RequestCancelWorkflowExecution(RequestCancelWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = RequestCancelWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = RequestCancelWorkflowExecutionResponseUnmarshaller.Instance;return Invoke<RequestCancelWorkflowExecutionResponse>(request, options);}
train
false
7,048
public boolean equals(Object o) {if (this == o) {return true;}if (o == null || getClass() != o.getClass()) {return false;}Arn arn = (Arn) o;if (!partition.equals(arn.partition)) {return false;}if (!service.equals(arn.service)) {return false;}if (region != null ? !region.equals(arn.region) : arn.region != null) {return false;}if (accountId != null ? !accountId.equals(arn.accountId) : arn.accountId != null) {return false;}return resource.equals(arn.resource);}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "this", "==", "o", ")", "{", "return", "true", ";", "}", "if", "(", "o", "==", "null", "||", "getClass", "(", ")", "!=", "o", ".", "getClass", "(", ")", ")", "{", "return", "false", ";", "}", "Arn", "arn", "=", "(", "Arn", ")", "o", ";", "if", "(", "!", "partition", ".", "equals", "(", "arn", ".", "partition", ")", ")", "{", "return", "false", ";", "}", "if", "(", "!", "service", ".", "equals", "(", "arn", ".", "service", ")", ")", "{", "return", "false", ";", "}", "if", "(", "region", "!=", "null", "?", "!", "region", ".", "equals", "(", "arn", ".", "region", ")", ":", "arn", ".", "region", "!=", "null", ")", "{", "return", "false", ";", "}", "if", "(", "accountId", "!=", "null", "?", "!", "accountId", ".", "equals", "(", "arn", ".", "accountId", ")", ":", "arn", ".", "accountId", "!=", "null", ")", "{", "return", "false", ";", "}", "return", "resource", ".", "equals", "(", "arn", ".", "resource", ")", ";", "}" ]
public override bool Equals(object o){if (this == o){return true;}var arn = o as Arn;if(arn == null){return false;}if (!Partition.Equals(arn.Partition)){return false;}if (!Service.Equals(arn.Service)){return false;}if (Region != arn.Region){return false;}if (AccountId != arn.AccountId){return false;}return Resource.Equals(arn.Resource);}
train
false
7,049
public UpdateDataSetPermissionsResult updateDataSetPermissions(UpdateDataSetPermissionsRequest request) {request = beforeClientExecution(request);return executeUpdateDataSetPermissions(request);}
[ "public", "UpdateDataSetPermissionsResult", "updateDataSetPermissions", "(", "UpdateDataSetPermissionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDataSetPermissions", "(", "request", ")", ";", "}" ]
public virtual UpdateDataSetPermissionsResponse UpdateDataSetPermissions(UpdateDataSetPermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetPermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetPermissionsResponseUnmarshaller.Instance;return Invoke<UpdateDataSetPermissionsResponse>(request, options);}
train
false
7,050
public DeleteCloudFrontOriginAccessIdentityResult deleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request) {request = beforeClientExecution(request);return executeDeleteCloudFrontOriginAccessIdentity(request);}
[ "public", "DeleteCloudFrontOriginAccessIdentityResult", "deleteCloudFrontOriginAccessIdentity", "(", "DeleteCloudFrontOriginAccessIdentityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteCloudFrontOriginAccessIdentity", "(", "request", ")", ";", "}" ]
public virtual DeleteCloudFrontOriginAccessIdentityResponse DeleteCloudFrontOriginAccessIdentity(DeleteCloudFrontOriginAccessIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCloudFrontOriginAccessIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCloudFrontOriginAccessIdentityResponseUnmarshaller.Instance;return Invoke<DeleteCloudFrontOriginAccessIdentityResponse>(request, options);}
train
true
7,051
public TokenStream create(TokenStream input) {return new PortugueseMinimalStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "PortugueseMinimalStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new PortugueseMinimalStemFilter(input);}
train
false
7,052
public PutDashboardResult putDashboard(PutDashboardRequest request) {request = beforeClientExecution(request);return executePutDashboard(request);}
[ "public", "PutDashboardResult", "putDashboard", "(", "PutDashboardRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutDashboard", "(", "request", ")", ";", "}" ]
public virtual PutDashboardResponse PutDashboard(PutDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = PutDashboardResponseUnmarshaller.Instance;return Invoke<PutDashboardResponse>(request, options);}
train
true
7,053
public void addChar( char c, int width ){charWidths.put(Character.valueOf(c), Integer.valueOf(width));}
[ "public", "void", "addChar", "(", "char", "c", ",", "int", "width", ")", "{", "charWidths", ".", "put", "(", "Character", ".", "valueOf", "(", "c", ")", ",", "Integer", ".", "valueOf", "(", "width", ")", ")", ";", "}" ]
public void AddChar(char c, int width){charWidths[c] = width;}
train
false
7,054
public DeleteRoomSkillParameterResult deleteRoomSkillParameter(DeleteRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executeDeleteRoomSkillParameter(request);}
[ "public", "DeleteRoomSkillParameterResult", "deleteRoomSkillParameter", "(", "DeleteRoomSkillParameterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRoomSkillParameter", "(", "request", ")", ";", "}" ]
public virtual DeleteRoomSkillParameterResponse DeleteRoomSkillParameter(DeleteRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRoomSkillParameterResponseUnmarshaller.Instance;return Invoke<DeleteRoomSkillParameterResponse>(request, options);}
train
true
7,056
public DBClusterSnapshotAttributesResult describeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterSnapshotAttributes(request);}
[ "public", "DBClusterSnapshotAttributesResult", "describeDBClusterSnapshotAttributes", "(", "DescribeDBClusterSnapshotAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBClusterSnapshotAttributes", "(", "request", ")", ";", "}" ]
public virtual DescribeDBClusterSnapshotAttributesResponse DescribeDBClusterSnapshotAttributes(DescribeDBClusterSnapshotAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterSnapshotAttributesResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterSnapshotAttributesResponse>(request, options);}
train
true
7,057
public void addFile(FileHeader fh) {files.add(fh);}
[ "public", "void", "addFile", "(", "FileHeader", "fh", ")", "{", "files", ".", "add", "(", "fh", ")", ";", "}" ]
public virtual void AddFile(FileHeader fh){files.AddItem(fh);}
train
false
7,058
public TokenStream create(TokenStream input) {return new ItalianLightStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "ItalianLightStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new ItalianLightStemFilter(input);}
train
false
7,059
public LinkedHashMap() {init();accessOrder = false;}
[ "public", "LinkedHashMap", "(", ")", "{", "init", "(", ")", ";", "accessOrder", "=", "false", ";", "}" ]
public LinkedHashMap(){init();accessOrder = false;}
train
false
7,060
public DeleteStackInstancesResult deleteStackInstances(DeleteStackInstancesRequest request) {request = beforeClientExecution(request);return executeDeleteStackInstances(request);}
[ "public", "DeleteStackInstancesResult", "deleteStackInstances", "(", "DeleteStackInstancesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteStackInstances", "(", "request", ")", ";", "}" ]
public virtual DeleteStackInstancesResponse DeleteStackInstances(DeleteStackInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStackInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStackInstancesResponseUnmarshaller.Instance;return Invoke<DeleteStackInstancesResponse>(request, options);}
train
true
7,062
public StringWriter() {buf = new StringBuffer(16);lock = buf;}
[ "public", "StringWriter", "(", ")", "{", "buf", "=", "new", "StringBuffer", "(", "16", ")", ";", "lock", "=", "buf", ";", "}" ]
public StringWriter(){buf = new java.lang.StringBuffer(16);@lock = buf;}
train
false
7,063
public List<MatchingDocs> getOriginalMatchingDocs() {return super.getMatchingDocs();}
[ "public", "List", "<", "MatchingDocs", ">", "getOriginalMatchingDocs", "(", ")", "{", "return", "super", ".", "getMatchingDocs", "(", ")", ";", "}" ]
public virtual IList<MatchingDocs> GetOriginalMatchingDocs(){return base.GetMatchingDocs();}
train
false
7,064
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1);checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ")", "{", "double", "result", ";", "try", "{", "double", "d0", "=", "singleOperandEvaluate", "(", "arg0", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "double", "d1", "=", "singleOperandEvaluate", "(", "arg1", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "result", "=", "evaluate", "(", "d0", ",", "d1", ")", ";", "checkValue", "(", "result", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "return", "new", "NumberEval", "(", "result", ")", ";", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
train
false
7,065
public String toString() {return "[HCENTER]\n" +" .hcenter = " + getHCenter() +"\n" +"[/HCENTER]\n";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"[HCENTER]\\n\"", "+", "\" .hcenter = \"", "+", "getHCenter", "(", ")", "+", "\"\\n\"", "+", "\"[/HCENTER]\\n\"", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[HCENTER]\n");buffer.Append(" .hcenter = ").Append(HCenter).Append("\n");buffer.Append("[/HCENTER]\n");return buffer.ToString();}
train
false
7,066
public GetEbsEncryptionByDefaultResult getEbsEncryptionByDefault(GetEbsEncryptionByDefaultRequest request) {request = beforeClientExecution(request);return executeGetEbsEncryptionByDefault(request);}
[ "public", "GetEbsEncryptionByDefaultResult", "getEbsEncryptionByDefault", "(", "GetEbsEncryptionByDefaultRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetEbsEncryptionByDefault", "(", "request", ")", ";", "}" ]
public virtual GetEbsEncryptionByDefaultResponse GetEbsEncryptionByDefault(GetEbsEncryptionByDefaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsEncryptionByDefaultRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsEncryptionByDefaultResponseUnmarshaller.Instance;return Invoke<GetEbsEncryptionByDefaultResponse>(request, options);}
train
false
7,068
public int getCharWidth( char c ){Integer widthInteger = charWidths.get(Character.valueOf(c));if (widthInteger == null) {return 'W' == c ? 0 : getCharWidth('W');}return widthInteger;}
[ "public", "int", "getCharWidth", "(", "char", "c", ")", "{", "Integer", "widthInteger", "=", "charWidths", ".", "get", "(", "Character", ".", "valueOf", "(", "c", ")", ")", ";", "if", "(", "widthInteger", "==", "null", ")", "{", "return", "'W'", "==", "c", "?", "0", ":", "getCharWidth", "(", "'W'", ")", ";", "}", "return", "widthInteger", ";", "}" ]
public int GetCharWidth(char c){object widthInteger = charWidths[c];if (widthInteger == null)return 'W' == c ? 0 : GetCharWidth('W');else return (int)widthInteger;}
train
false
7,069
public DescribeSecurityGroupReferencesResult describeSecurityGroupReferences(DescribeSecurityGroupReferencesRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityGroupReferences(request);}
[ "public", "DescribeSecurityGroupReferencesResult", "describeSecurityGroupReferences", "(", "DescribeSecurityGroupReferencesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeSecurityGroupReferences", "(", "request", ")", ";", "}" ]
public virtual DescribeSecurityGroupReferencesResponse DescribeSecurityGroupReferences(DescribeSecurityGroupReferencesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupReferencesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupReferencesResponseUnmarshaller.Instance;return Invoke<DescribeSecurityGroupReferencesResponse>(request, options);}
train
true
7,070
public final V getValue() {return value;}
[ "public", "final", "V", "getValue", "(", ")", "{", "return", "value", ";", "}" ]
public virtual V getValue(){return value;}
train
false
7,071
public EscherContainerRecord getEscherContainer() {for (EscherRecord er : escherRecords) {if(er instanceof EscherContainerRecord) {return (EscherContainerRecord)er;}}return null;}
[ "public", "EscherContainerRecord", "getEscherContainer", "(", ")", "{", "for", "(", "EscherRecord", "er", ":", "escherRecords", ")", "{", "if", "(", "er", "instanceof", "EscherContainerRecord", ")", "{", "return", "(", "EscherContainerRecord", ")", "er", ";", "}", "}", "return", "null", ";", "}" ]
public EscherContainerRecord GetEscherContainer(){for (IEnumerator it = escherRecords.GetEnumerator(); it.MoveNext(); ){Object er = it.Current;if (er is EscherContainerRecord){return (EscherContainerRecord)er;}}return null;}
train
false
7,072
public boolean removeShape(HSSFShape shape) {boolean isRemoved = getEscherContainer().removeChildRecord(shape.getEscherContainer());if (isRemoved){shape.afterRemove(this.getPatriarch());shapes.remove(shape);}return isRemoved;}
[ "public", "boolean", "removeShape", "(", "HSSFShape", "shape", ")", "{", "boolean", "isRemoved", "=", "getEscherContainer", "(", ")", ".", "removeChildRecord", "(", "shape", ".", "getEscherContainer", "(", ")", ")", ";", "if", "(", "isRemoved", ")", "{", "shape", ".", "afterRemove", "(", "this", ".", "getPatriarch", "(", ")", ")", ";", "shapes", ".", "remove", "(", "shape", ")", ";", "}", "return", "isRemoved", ";", "}" ]
public bool RemoveShape(HSSFShape shape){bool isRemoved = GetEscherContainer().RemoveChildRecord(shape.GetEscherContainer());if (isRemoved){shape.AfterRemove(this.Patriarch);shapes.Remove(shape);}return isRemoved;}
train
false
7,073
public boolean changeExternalReference(String oldUrl, String newUrl) {return linkTable.changeExternalReference(oldUrl, newUrl);}
[ "public", "boolean", "changeExternalReference", "(", "String", "oldUrl", ",", "String", "newUrl", ")", "{", "return", "linkTable", ".", "changeExternalReference", "(", "oldUrl", ",", "newUrl", ")", ";", "}" ]
public bool ChangeExternalReference(String oldUrl, String newUrl){return linkTable.ChangeExternalReference(oldUrl, newUrl);}
train
false
7,074
public String toString() {return "BLOCK: " + brToString(prefix);}
[ "public", "String", "toString", "(", ")", "{", "return", "\"BLOCK: \"", "+", "brToString", "(", "prefix", ")", ";", "}" ]
public override string ToString(){return "BLOCK: " + Prefix.Utf8ToString();}
train
false
7,075
public static String pathToString(String[] path) {return pathToString(path, path.length);}
[ "public", "static", "String", "pathToString", "(", "String", "[", "]", "path", ")", "{", "return", "pathToString", "(", "path", ",", "path", ".", "length", ")", ";", "}" ]
public static string PathToString(string[] path){return PathToString(path, path.Length);}
train
false
7,076
public final boolean isInRange(int rowIx, int colIx) {CellRangeAddress8Bit r = _range;return r.getFirstRow() <= rowIx&& r.getLastRow() >= rowIx&& r.getFirstColumn() <= colIx&& r.getLastColumn() >= colIx;}
[ "public", "final", "boolean", "isInRange", "(", "int", "rowIx", ",", "int", "colIx", ")", "{", "CellRangeAddress8Bit", "r", "=", "_range", ";", "return", "r", ".", "getFirstRow", "(", ")", "<=", "rowIx", "&&", "r", ".", "getLastRow", "(", ")", ">=", "rowIx", "&&", "r", ".", "getFirstColumn", "(", ")", "<=", "colIx", "&&", "r", ".", "getLastColumn", "(", ")", ">=", "colIx", ";", "}" ]
public bool IsInRange(int rowIx, int colIx){CellRangeAddress8Bit r = _range;return r.FirstRow <= rowIx&& r.LastRow >= rowIx&& r.FirstColumn <= colIx&& r.LastColumn >= colIx;}
train
false
7,077
public RmCommand rm() {return new RmCommand(repo);}
[ "public", "RmCommand", "rm", "(", ")", "{", "return", "new", "RmCommand", "(", "repo", ")", ";", "}" ]
public virtual RmCommand Rm(){return new RmCommand(repo);}
train
false
7,078
public static String[] parse(String line) {boolean insideQuote = false;ArrayList<String> result = new ArrayList<>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for(int i = 0; i < line.length(); i++) {char c = line.charAt(i);if(c == QUOTE) {insideQuote = !insideQuote;quoteCount++;}if(c == COMMA && !insideQuote) {String value = sb.toString();value = unQuoteUnEscape(value);result.add(value);sb.setLength(0);continue;}sb.append(c);}result.add(sb.toString());if(quoteCount % 2 != 0) {return new String[0];}return result.toArray(new String[0]);}
[ "public", "static", "String", "[", "]", "parse", "(", "String", "line", ")", "{", "boolean", "insideQuote", "=", "false", ";", "ArrayList", "<", "String", ">", "result", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "int", "quoteCount", "=", "0", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "line", ".", "length", "(", ")", ";", "i", "++", ")", "{", "char", "c", "=", "line", ".", "charAt", "(", "i", ")", ";", "if", "(", "c", "==", "QUOTE", ")", "{", "insideQuote", "=", "!", "insideQuote", ";", "quoteCount", "++", ";", "}", "if", "(", "c", "==", "COMMA", "&&", "!", "insideQuote", ")", "{", "String", "value", "=", "sb", ".", "toString", "(", ")", ";", "value", "=", "unQuoteUnEscape", "(", "value", ")", ";", "result", ".", "add", "(", "value", ")", ";", "sb", ".", "setLength", "(", "0", ")", ";", "continue", ";", "}", "sb", ".", "append", "(", "c", ")", ";", "}", "result", ".", "add", "(", "sb", ".", "toString", "(", ")", ")", ";", "if", "(", "quoteCount", "%", "2", "!=", "0", ")", "{", "return", "new", "String", "[", "0", "]", ";", "}", "return", "result", ".", "toArray", "(", "new", "String", "[", "0", "]", ")", ";", "}" ]
public static string[] Parse(string line){bool insideQuote = false;List<string> result = new List<string>();int quoteCount = 0;StringBuilder sb = new StringBuilder();for (int i = 0; i < line.Length; i++){char c = line[i];if (c == QUOTE){insideQuote = !insideQuote;quoteCount++;}if (c == COMMA && !insideQuote){string value = sb.ToString();value = UnQuoteUnEscape(value);result.Add(value);sb.Length = 0;continue;}sb.Append(c);}result.Add(sb.ToString());if (quoteCount % 2 != 0){return new string[0];}return result.ToArray();}
train
true
7,080
public void connect(PipedOutputStream src) throws IOException {src.connect(this);}
[ "public", "void", "connect", "(", "PipedOutputStream", "src", ")", "throws", "IOException", "{", "src", ".", "connect", "(", "this", ")", ";", "}" ]
public virtual void connect(java.io.PipedOutputStream src){throw new System.NotImplementedException();}
train
false
7,081
public WeightedPhraseInfo( Collection< WeightedPhraseInfo > toMerge ) {Iterator< WeightedPhraseInfo > toMergeItr = toMerge.iterator();if ( !toMergeItr.hasNext() ) {throw new IllegalArgumentException( "toMerge must contain at least one WeightedPhraseInfo." );}WeightedPhraseInfo first = toMergeItr.next();@SuppressWarnings( { "rawtypes", "unchecked" } )Iterator< Toffs >[] allToffs = new Iterator[ toMerge.size() ];termsInfos = new ArrayList<>();seqnum = first.seqnum;boost = first.boost;allToffs[ 0 ] = first.termsOffsets.iterator();int index = 1;while ( toMergeItr.hasNext() ) {WeightedPhraseInfo info = toMergeItr.next();boost += info.boost;termsInfos.addAll( info.termsInfos );allToffs[ index++ ] = info.termsOffsets.iterator();}MergedIterator< Toffs > itr = new MergedIterator<>( false, allToffs );termsOffsets = new ArrayList<>();if ( !itr.hasNext() ) {return;}Toffs work = itr.next();while ( itr.hasNext() ) {Toffs current = itr.next();if ( current.startOffset <= work.endOffset ) {work.endOffset = Math.max( work.endOffset, current.endOffset );} else {termsOffsets.add( work );work = current;}}termsOffsets.add( work );}
[ "public", "WeightedPhraseInfo", "(", "Collection", "<", "WeightedPhraseInfo", ">", "toMerge", ")", "{", "Iterator", "<", "WeightedPhraseInfo", ">", "toMergeItr", "=", "toMerge", ".", "iterator", "(", ")", ";", "if", "(", "!", "toMergeItr", ".", "hasNext", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"toMerge must contain at least one WeightedPhraseInfo.\"", ")", ";", "}", "WeightedPhraseInfo", "first", "=", "toMergeItr", ".", "next", "(", ")", ";", "@", "SuppressWarnings", "(", "{", "\"rawtypes\"", ",", "\"unchecked\"", "}", ")", "Iterator", "<", "Toffs", ">", "[", "]", "allToffs", "=", "new", "Iterator", "[", "toMerge", ".", "size", "(", ")", "]", ";", "termsInfos", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "seqnum", "=", "first", ".", "seqnum", ";", "boost", "=", "first", ".", "boost", ";", "allToffs", "[", "0", "]", "=", "first", ".", "termsOffsets", ".", "iterator", "(", ")", ";", "int", "index", "=", "1", ";", "while", "(", "toMergeItr", ".", "hasNext", "(", ")", ")", "{", "WeightedPhraseInfo", "info", "=", "toMergeItr", ".", "next", "(", ")", ";", "boost", "+=", "info", ".", "boost", ";", "termsInfos", ".", "addAll", "(", "info", ".", "termsInfos", ")", ";", "allToffs", "[", "index", "++", "]", "=", "info", ".", "termsOffsets", ".", "iterator", "(", ")", ";", "}", "MergedIterator", "<", "Toffs", ">", "itr", "=", "new", "MergedIterator", "<", ">", "(", "false", ",", "allToffs", ")", ";", "termsOffsets", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "if", "(", "!", "itr", ".", "hasNext", "(", ")", ")", "{", "return", ";", "}", "Toffs", "work", "=", "itr", ".", "next", "(", ")", ";", "while", "(", "itr", ".", "hasNext", "(", ")", ")", "{", "Toffs", "current", "=", "itr", ".", "next", "(", ")", ";", "if", "(", "current", ".", "startOffset", "<=", "work", ".", "endOffset", ")", "{", "work", ".", "endOffset", "=", "Math", ".", "max", "(", "work", ".", "endOffset", ",", "current", ".", "endOffset", ")", ";", "}", "else", "{", "termsOffsets", ".", "add", "(", "work", ")", ";", "work", "=", "current", ";", "}", "}", "termsOffsets", ".", "add", "(", "work", ")", ";", "}" ]
public WeightedPhraseInfo(ICollection<WeightedPhraseInfo> toMerge){IEnumerator<Toffs>[] allToffs = new IEnumerator<Toffs>[toMerge.Count];try{using (IEnumerator<WeightedPhraseInfo> toMergeItr = toMerge.GetEnumerator()){if (!toMergeItr.MoveNext()){throw new ArgumentException("toMerge must contain at least one WeightedPhraseInfo.");}WeightedPhraseInfo first = toMergeItr.Current;termsInfos = new List<TermInfo>();seqnum = first.seqnum;boost = first.boost;allToffs[0] = first.termsOffsets.GetEnumerator();int index = 1;while (toMergeItr.MoveNext()){WeightedPhraseInfo info = toMergeItr.Current;boost += info.boost;termsInfos.AddRange(info.termsInfos);allToffs[index++] = info.termsOffsets.GetEnumerator();}using (MergedIterator<Toffs> itr = new MergedIterator<Toffs>(false, allToffs)){termsOffsets = new List<Toffs>();if (!itr.MoveNext()){return;}Toffs work = itr.Current;while (itr.MoveNext()){Toffs current = itr.Current;if (current.StartOffset <= work.EndOffset){work.EndOffset = Math.Max(work.EndOffset, current.EndOffset);}else{termsOffsets.Add(work);work = current;}}termsOffsets.Add(work);}}}finally{foreach (var allToff in allToffs){allToff.Dispose();}}}
train
false
7,082
public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancerPolicyTypes(request);}
[ "public", "DescribeLoadBalancerPolicyTypesResult", "describeLoadBalancerPolicyTypes", "(", "DescribeLoadBalancerPolicyTypesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLoadBalancerPolicyTypes", "(", "request", ")", ";", "}" ]
public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(DescribeLoadBalancerPolicyTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancerPolicyTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancerPolicyTypesResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancerPolicyTypesResponse>(request, options);}
train
true
7,083
public Entry<K, V> next() {return nextEntry();}
[ "public", "Entry", "<", "K", ",", "V", ">", "next", "(", ")", "{", "return", "nextEntry", "(", ")", ";", "}" ]
public override java.util.MapClass.Entry<K, V> next(){return this.nextEntry();}
train
false
7,084
public int getCmd(Character way) {Cell c = at(way);return (c == null) ? -1 : c.cmd;}
[ "public", "int", "getCmd", "(", "Character", "way", ")", "{", "Cell", "c", "=", "at", "(", "way", ")", ";", "return", "(", "c", "==", "null", ")", "?", "-", "1", ":", "c", ".", "cmd", ";", "}" ]
public int GetCmd(char way){Cell c = At(way);return (c == null) ? -1 : c.cmd;}
train
false
7,085
public int readInt(){int ch1 = _in.readUByte();int ch2 = _in.readUByte();int ch3 = _in.readUByte();int ch4 = _in.readUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}
[ "public", "int", "readInt", "(", ")", "{", "int", "ch1", "=", "_in", ".", "readUByte", "(", ")", ";", "int", "ch2", "=", "_in", ".", "readUByte", "(", ")", ";", "int", "ch3", "=", "_in", ".", "readUByte", "(", ")", ";", "int", "ch4", "=", "_in", ".", "readUByte", "(", ")", ";", "return", "(", "ch4", "<<", "24", ")", "+", "(", "ch3", "<<", "16", ")", "+", "(", "ch2", "<<", "8", ")", "+", "(", "ch1", "<<", "0", ")", ";", "}" ]
public int ReadInt(){int ch1 = _in.ReadUByte();int ch2 = _in.ReadUByte();int ch3 = _in.ReadUByte();int ch4 = _in.ReadUByte();return (ch4 << 24) + (ch3 << 16) + (ch2 << 8) + (ch1 << 0);}
train
false
7,086
public String toString() {return "Reverse" + super.toString(); }
[ "public", "String", "toString", "(", ")", "{", "return", "\"Reverse\"", "+", "super", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){return "Reverse" + base.ToString();}
train
false
7,087
public Explanation explain(Explanation freq, long norm) {return SimilarityBase.this.explain(stats, freq, getLengthValue(norm));}
[ "public", "Explanation", "explain", "(", "Explanation", "freq", ",", "long", "norm", ")", "{", "return", "SimilarityBase", ".", "this", ".", "explain", "(", "stats", ",", "freq", ",", "getLengthValue", "(", "norm", ")", ")", ";", "}" ]
public override Explanation Explain(int doc, Explanation freq){return outerInstance.Explain(stats, doc, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));}
train
false
7,088
public static ListenerList getGlobalListenerList() {return globalListeners;}
[ "public", "static", "ListenerList", "getGlobalListenerList", "(", ")", "{", "return", "globalListeners", ";", "}" ]
public static ListenerList GetGlobalListenerList(){return globalListeners;}
train
false
7,089
public GetInvitationsCountResult getInvitationsCount(GetInvitationsCountRequest request) {request = beforeClientExecution(request);return executeGetInvitationsCount(request);}
[ "public", "GetInvitationsCountResult", "getInvitationsCount", "(", "GetInvitationsCountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetInvitationsCount", "(", "request", ")", ";", "}" ]
public virtual GetInvitationsCountResponse GetInvitationsCount(GetInvitationsCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvitationsCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvitationsCountResponseUnmarshaller.Instance;return Invoke<GetInvitationsCountResponse>(request, options);}
train
true
7,091
public final V setValue(V value) {if (value == null) {throw new NullPointerException();}V oldValue = this.value;this.value = value;return oldValue;}
[ "public", "final", "V", "setValue", "(", "V", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "V", "oldValue", "=", "this", ".", "value", ";", "this", ".", "value", "=", "value", ";", "return", "oldValue", ";", "}" ]
public virtual V setValue(V value){if ((object)value == null){throw new System.ArgumentNullException();}V oldValue = this.value;this.value = value;return oldValue;}
train
false
7,092
@Override public boolean isEmpty() {return Impl.this.isEmpty();}
[ "@", "Override", "public", "boolean", "isEmpty", "(", ")", "{", "return", "Impl", ".", "this", ".", "isEmpty", "(", ")", ";", "}" ]
public override bool isEmpty(){return this._enclosing._size == 0;}
train
false
7,093
public void setCategoryLabelsCellRange(CellRangeAddressBase range) {Integer count = setVerticalCellRange(dataCategoryLabels, range);if (count == null){return;}series.setNumCategories((short)(int)count);}
[ "public", "void", "setCategoryLabelsCellRange", "(", "CellRangeAddressBase", "range", ")", "{", "Integer", "count", "=", "setVerticalCellRange", "(", "dataCategoryLabels", ",", "range", ")", ";", "if", "(", "count", "==", "null", ")", "{", "return", ";", "}", "series", ".", "setNumCategories", "(", "(", "short", ")", "(", "int", ")", "count", ")", ";", "}" ]
public void SetCategoryLabelsCellRange(CellRangeAddressBase range){int count = SetVerticalCellRange(dataCategoryLabels, range);series.NumCategories = (short)count;}
train
false
7,094
final public SrndQuery OrQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries = null;Token oprt = null;q = AndQuery();label_2:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case OR:;break;default:jj_la1[0] = jj_gen;break label_2;}oprt = jj_consume_token(OR);if (queries == null) {queries = new ArrayList<SrndQuery>();queries.add(q);}q = AndQuery();queries.add(q);}{if (true) return (queries == null) ? q : getOrQuery(queries, true , oprt);}throw new Error("Missing return statement in function");}
[ "final", "public", "SrndQuery", "OrQuery", "(", ")", "throws", "ParseException", "{", "SrndQuery", "q", ";", "ArrayList", "<", "SrndQuery", ">", "queries", "=", "null", ";", "Token", "oprt", "=", "null", ";", "q", "=", "AndQuery", "(", ")", ";", "label_2", ":", "while", "(", "true", ")", "{", "switch", "(", "(", "jj_ntk", "==", "-", "1", ")", "?", "jj_ntk", "(", ")", ":", "jj_ntk", ")", "{", "case", "OR", ":", ";", "break", ";", "default", ":", "jj_la1", "[", "0", "]", "=", "jj_gen", ";", "break", "label_2", ";", "}", "oprt", "=", "jj_consume_token", "(", "OR", ")", ";", "if", "(", "queries", "==", "null", ")", "{", "queries", "=", "new", "ArrayList", "<", "SrndQuery", ">", "(", ")", ";", "queries", ".", "add", "(", "q", ")", ";", "}", "q", "=", "AndQuery", "(", ")", ";", "queries", ".", "add", "(", "q", ")", ";", "}", "{", "if", "(", "true", ")", "return", "(", "queries", "==", "null", ")", "?", "q", ":", "getOrQuery", "(", "queries", ",", "true", ",", "oprt", ")", ";", "}", "throw", "new", "Error", "(", "\"Missing return statement in function\"", ")", ";", "}" ]
public SrndQuery OrQuery(){SrndQuery q;IList<SrndQuery> queries = null;Token oprt = null;q = AndQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.OR:;break;default:jj_la1[0] = jj_gen;goto label_2;}oprt = Jj_consume_token(RegexpToken.OR);if (queries == null){queries = new List<SrndQuery>();queries.Add(q);}q = AndQuery();queries.Add(q);}label_2:{ if (true) return (queries == null) ? q : GetOrQuery(queries, true , oprt); }throw new Exception("Missing return statement in function");}
train
false
7,095
public DeleteScheduledActionResult deleteScheduledAction(DeleteScheduledActionRequest request) {request = beforeClientExecution(request);return executeDeleteScheduledAction(request);}
[ "public", "DeleteScheduledActionResult", "deleteScheduledAction", "(", "DeleteScheduledActionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteScheduledAction", "(", "request", ")", ";", "}" ]
public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance;return Invoke<DeleteScheduledActionResponse>(request, options);}
train
true
7,096
public CharBuffer put(String str, int start, int end) {if (start < 0 || end < start || end > str.length()) {throw new IndexOutOfBoundsException("str.length()=" + str.length() +", start=" + start + ", end=" + end);}if (end - start > remaining()) {throw new BufferOverflowException();}for (int i = start; i < end; i++) {put(str.charAt(i));}return this;}
[ "public", "CharBuffer", "put", "(", "String", "str", ",", "int", "start", ",", "int", "end", ")", "{", "if", "(", "start", "<", "0", "||", "end", "<", "start", "||", "end", ">", "str", ".", "length", "(", ")", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", "\"str.length()=\"", "+", "str", ".", "length", "(", ")", "+", "\", start=\"", "+", "start", "+", "\", end=\"", "+", "end", ")", ";", "}", "if", "(", "end", "-", "start", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "for", "(", "int", "i", "=", "start", ";", "i", "<", "end", ";", "i", "++", ")", "{", "put", "(", "str", ".", "charAt", "(", "i", ")", ")", ";", "}", "return", "this", ";", "}" ]
public virtual java.nio.CharBuffer put(string str, int start, int end){if (start < 0 || end < start || end > str.Length){throw new System.IndexOutOfRangeException("str.length()=" + str.Length + ", start="+ start + ", end=" + end);}if (end - start > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = start; i < end; i++){put(str[i]);}}return this;}
train
true
7,097
public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.write(unused);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "rt", ")", ";", "out", ".", "writeShort", "(", "grbitFrt", ")", ";", "out", ".", "writeShort", "(", "iObjectKind", ")", ";", "out", ".", "write", "(", "unused", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.Write(unused);}
train
false
7,098
public ChangeInfo(String id, ChangeStatus status, java.util.Date submittedAt) {setId(id);setStatus(status.toString());setSubmittedAt(submittedAt);}
[ "public", "ChangeInfo", "(", "String", "id", ",", "ChangeStatus", "status", ",", "java", ".", "util", ".", "Date", "submittedAt", ")", "{", "setId", "(", "id", ")", ";", "setStatus", "(", "status", ".", "toString", "(", ")", ")", ";", "setSubmittedAt", "(", "submittedAt", ")", ";", "}" ]
public ChangeInfo(string id, ChangeStatus status, DateTime submittedAt){_id = id;_status = status;_submittedAt = submittedAt;}
train
false
7,099
public SwedishLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "SwedishLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public SwedishLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
7,100
public ErrorMatcher(int errorCode, CmpOp operator) {super(operator);_value = errorCode;}
[ "public", "ErrorMatcher", "(", "int", "errorCode", ",", "CmpOp", "operator", ")", "{", "super", "(", "operator", ")", ";", "_value", "=", "errorCode", ";", "}" ]
public ErrorMatcher(int errorCode, CmpOp operator1): base(operator1){;_value = errorCode;}
train
false
7,101
public static Console getConsole() {return console;}
[ "public", "static", "Console", "getConsole", "(", ")", "{", "return", "console", ";", "}" ]
public static java.io.Console getConsole(){return console;}
train
false
7,102
public UpdateTrialComponentResult updateTrialComponent(UpdateTrialComponentRequest request) {request = beforeClientExecution(request);return executeUpdateTrialComponent(request);}
[ "public", "UpdateTrialComponentResult", "updateTrialComponent", "(", "UpdateTrialComponentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateTrialComponent", "(", "request", ")", ";", "}" ]
public virtual UpdateTrialComponentResponse UpdateTrialComponent(UpdateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrialComponentResponseUnmarshaller.Instance;return Invoke<UpdateTrialComponentResponse>(request, options);}
train
false
7,103
public AddCommand setWorkingTreeIterator(WorkingTreeIterator f) {workingTreeIterator = f;return this;}
[ "public", "AddCommand", "setWorkingTreeIterator", "(", "WorkingTreeIterator", "f", ")", "{", "workingTreeIterator", "=", "f", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.AddCommand SetWorkingTreeIterator(WorkingTreeIterator f){workingTreeIterator = f;return this;}
train
false
7,104
public RefWriter(Map<String, Ref> refs) {if (refs instanceof RefMap)this.refs = refs.values();elsethis.refs = RefComparator.sort(refs.values());}
[ "public", "RefWriter", "(", "Map", "<", "String", ",", "Ref", ">", "refs", ")", "{", "if", "(", "refs", "instanceof", "RefMap", ")", "this", ".", "refs", "=", "refs", ".", "values", "(", ")", ";", "elsethis", ".", "refs", "=", "RefComparator", ".", "sort", "(", "refs", ".", "values", "(", ")", ")", ";", "}" ]
public RefWriter(IDictionary<string, Ref> refs){if (refs is RefMap){this.refs = refs.Values;}else{this.refs = RefComparator.Sort(refs.Values);}}
train
false
7,105
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) {super(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex);_evaluator = evaluator;}
[ "public", "LazyAreaEval", "(", "int", "firstRowIndex", ",", "int", "firstColumnIndex", ",", "int", "lastRowIndex", ",", "int", "lastColumnIndex", ",", "SheetRangeEvaluator", "evaluator", ")", "{", "super", "(", "evaluator", ",", "firstRowIndex", ",", "firstColumnIndex", ",", "lastRowIndex", ",", "lastColumnIndex", ")", ";", "_evaluator", "=", "evaluator", ";", "}" ]
public LazyAreaEval(int firstRowIndex, int firstColumnIndex, int lastRowIndex,int lastColumnIndex, SheetRangeEvaluator evaluator) :base(evaluator, firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex){_evaluator = evaluator;}
train
false
7,106
public BatchSuspendUserResult batchSuspendUser(BatchSuspendUserRequest request) {request = beforeClientExecution(request);return executeBatchSuspendUser(request);}
[ "public", "BatchSuspendUserResult", "batchSuspendUser", "(", "BatchSuspendUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchSuspendUser", "(", "request", ")", ";", "}" ]
public virtual BatchSuspendUserResponse BatchSuspendUser(BatchSuspendUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchSuspendUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchSuspendUserResponseUnmarshaller.Instance;return Invoke<BatchSuspendUserResponse>(request, options);}
train
true
7,107
public CreateVpnGatewayRequest(GatewayType type) {setType(type.toString());}
[ "public", "CreateVpnGatewayRequest", "(", "GatewayType", "type", ")", "{", "setType", "(", "type", ".", "toString", "(", ")", ")", ";", "}" ]
public CreateVpnGatewayRequest(GatewayType type){_type = type;}
train
false
7,108
public BundleInstanceResult bundleInstance(BundleInstanceRequest request) {request = beforeClientExecution(request);return executeBundleInstance(request);}
[ "public", "BundleInstanceResult", "bundleInstance", "(", "BundleInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBundleInstance", "(", "request", ")", ";", "}" ]
public virtual BundleInstanceResponse BundleInstance(BundleInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = BundleInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = BundleInstanceResponseUnmarshaller.Instance;return Invoke<BundleInstanceResponse>(request, options);}
train
true
7,109
public ListDeploymentsResult listDeployments(ListDeploymentsRequest request) {request = beforeClientExecution(request);return executeListDeployments(request);}
[ "public", "ListDeploymentsResult", "listDeployments", "(", "ListDeploymentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeployments", "(", "request", ")", ";", "}" ]
public virtual ListDeploymentsResponse ListDeployments(ListDeploymentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentsResponseUnmarshaller.Instance;return Invoke<ListDeploymentsResponse>(request, options);}
train
true
7,110
public String toString() {return "(FOLLOW(" + path.toString() + ")" + " AND " + ANY_DIFF.toString() + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"(FOLLOW(\"", "+", "path", ".", "toString", "(", ")", "+", "\")\"", "+", "\" AND \"", "+", "ANY_DIFF", ".", "toString", "(", ")", "+", "\")\"", ";", "}" ]
public override string ToString(){return "(FOLLOW(" + path.ToString() + ")" + " AND " + ANY_DIFF.ToString() + ")";}
train
false
7,111
public DetectFacesResult detectFaces(DetectFacesRequest request) {request = beforeClientExecution(request);return executeDetectFaces(request);}
[ "public", "DetectFacesResult", "detectFaces", "(", "DetectFacesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetectFaces", "(", "request", ")", ";", "}" ]
public virtual DetectFacesResponse DetectFaces(DetectFacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectFacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectFacesResponseUnmarshaller.Instance;return Invoke<DetectFacesResponse>(request, options);}
train
true
7,112
public GetRegionsResult getRegions(GetRegionsRequest request) {request = beforeClientExecution(request);return executeGetRegions(request);}
[ "public", "GetRegionsResult", "getRegions", "(", "GetRegionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetRegions", "(", "request", ")", ";", "}" ]
public virtual GetRegionsResponse GetRegions(GetRegionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRegionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRegionsResponseUnmarshaller.Instance;return Invoke<GetRegionsResponse>(request, options);}
train
true
7,113
public WikipediaTokenizerFactory(Map<String,String> args) {super(args);tokenOutput = getInt(args, TOKEN_OUTPUT, WikipediaTokenizer.TOKENS_ONLY);untokenizedTypes = getSet(args, UNTOKENIZED_TYPES);if (untokenizedTypes == null) {untokenizedTypes = Collections.emptySet();}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "WikipediaTokenizerFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "tokenOutput", "=", "getInt", "(", "args", ",", "TOKEN_OUTPUT", ",", "WikipediaTokenizer", ".", "TOKENS_ONLY", ")", ";", "untokenizedTypes", "=", "getSet", "(", "args", ",", "UNTOKENIZED_TYPES", ")", ";", "if", "(", "untokenizedTypes", "==", "null", ")", "{", "untokenizedTypes", "=", "Collections", ".", "emptySet", "(", ")", ";", "}", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public WikipediaTokenizerFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
7,114
public int getSheetIndex(String name) {int retval = -1;final int size = boundsheets.size();for (int k = 0; k < size; k++) {String sheet = getSheetName(k);if (sheet.equalsIgnoreCase(name)) {retval = k;break;}}return retval;}
[ "public", "int", "getSheetIndex", "(", "String", "name", ")", "{", "int", "retval", "=", "-", "1", ";", "final", "int", "size", "=", "boundsheets", ".", "size", "(", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "size", ";", "k", "++", ")", "{", "String", "sheet", "=", "getSheetName", "(", "k", ")", ";", "if", "(", "sheet", ".", "equalsIgnoreCase", "(", "name", ")", ")", "{", "retval", "=", "k", ";", "break", ";", "}", "}", "return", "retval", ";", "}" ]
public int GetSheetIndex(String name){int retval = -1;for (int k = 0; k < boundsheets.Count; k++){String sheet = GetSheetName(k);if (sheet.Equals(name,StringComparison.OrdinalIgnoreCase)){retval = k;break;}}return retval;}
train
false
7,115
public PagedBytesDataInput getDataInput() {if (!frozen) {throw new IllegalStateException("must call freeze() before getDataInput");}return new PagedBytesDataInput();}
[ "public", "PagedBytesDataInput", "getDataInput", "(", ")", "{", "if", "(", "!", "frozen", ")", "{", "throw", "new", "IllegalStateException", "(", "\"must call freeze() before getDataInput\"", ")", ";", "}", "return", "new", "PagedBytesDataInput", "(", ")", ";", "}" ]
public PagedBytesDataInput GetDataInput(){if (!frozen){throw new InvalidOperationException("must call Freeze() before GetDataInput()");}return new PagedBytesDataInput(this);}
train
false
7,116
public AddTagsToResourceResult addTagsToResource(AddTagsToResourceRequest request) {request = beforeClientExecution(request);return executeAddTagsToResource(request);}
[ "public", "AddTagsToResourceResult", "addTagsToResource", "(", "AddTagsToResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddTagsToResource", "(", "request", ")", ";", "}" ]
public virtual AddTagsToResourceResponse AddTagsToResource(AddTagsToResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToResourceResponseUnmarshaller.Instance;return Invoke<AddTagsToResourceResponse>(request, options);}
train
true