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,430
public LengthFilter create(TokenStream input) {final LengthFilter filter = new LengthFilter(input,min,max);return filter;}
[ "public", "LengthFilter", "create", "(", "TokenStream", "input", ")", "{", "final", "LengthFilter", "filter", "=", "new", "LengthFilter", "(", "input", ",", "min", ",", "max", ")", ";", "return", "filter", ";", "}" ]
public override TokenStream Create(TokenStream input){var filter = new LengthFilter(m_luceneMatchVersion, enablePositionIncrements, input, min, max);return filter;}
train
false
7,431
public StandardQueryParser() {super(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder());setEnablePositionIncrements(true);}
[ "public", "StandardQueryParser", "(", ")", "{", "super", "(", "new", "StandardQueryConfigHandler", "(", ")", ",", "new", "StandardSyntaxParser", "(", ")", ",", "new", "StandardQueryNodeProcessorPipeline", "(", "null", ")", ",", "new", "StandardQueryTreeBuilder", "(", ")", ")", ";", "setEnablePositionIncrements", "(", "true", ")", ";", "}" ]
public StandardQueryParser(): base(new StandardQueryConfigHandler(), new StandardSyntaxParser(),new StandardQueryNodeProcessorPipeline(null),new StandardQueryTreeBuilder()){EnablePositionIncrements = true;}
train
false
7,432
public GetUserSourceRepoRefListRequest() {super("cr", "2016-06-07", "GetUserSourceRepoRefList", "cr");setUriPattern("/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs");setMethod(MethodType.GET);}
[ "public", "GetUserSourceRepoRefListRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"GetUserSourceRepoRefList\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs\"", ")", ";", "setMethod", "(", "MethodType", ".", "GET", ")", ";", "}" ]
public GetUserSourceRepoRefListRequest(): base("cr", "2016-06-07", "GetUserSourceRepoRefList", "cr", "openAPI"){UriPattern = "/users/sourceAccount/[SourceAccountId]/repos/[SourceRepoNamespace]/[SourceRepoName]/refs";Method = MethodType.GET;}
train
false
7,433
public static LongBuffer wrap(long[] array, int start, int longCount) {Arrays.checkOffsetAndCount(array.length, start, longCount);LongBuffer buf = new ReadWriteLongArrayBuffer(array);buf.position = start;buf.limit = start + longCount;return buf;}
[ "public", "static", "LongBuffer", "wrap", "(", "long", "[", "]", "array", ",", "int", "start", ",", "int", "longCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "array", ".", "length", ",", "start", ",", "longCount", ")", ";", "LongBuffer", "buf", "=", "new", "ReadWriteLongArrayBuffer", "(", "array", ")", ";", "buf", ".", "position", "=", "start", ";", "buf", ".", "limit", "=", "start", "+", "longCount", ";", "return", "buf", ";", "}" ]
public static java.nio.LongBuffer wrap(long[] array_1, int start, int longCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, longCount);java.nio.LongBuffer buf = new java.nio.ReadWriteLongArrayBuffer(array_1);buf._position = start;buf._limit = start + longCount;return buf;}
train
false
7,434
public UpperCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "UpperCaseFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public UpperCaseFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
7,435
public ListNotesCommand notesList() {return new ListNotesCommand(repo);}
[ "public", "ListNotesCommand", "notesList", "(", ")", "{", "return", "new", "ListNotesCommand", "(", "repo", ")", ";", "}" ]
public virtual ListNotesCommand NotesList(){return new ListNotesCommand(repo);}
train
false
7,436
public boolean isMissingNewlineAtEnd() {final int end = lines.get(lines.size() - 1);if (end == 0)return true;return content[end - 1] != '\n';}
[ "public", "boolean", "isMissingNewlineAtEnd", "(", ")", "{", "final", "int", "end", "=", "lines", ".", "get", "(", "lines", ".", "size", "(", ")", "-", "1", ")", ";", "if", "(", "end", "==", "0", ")", "return", "true", ";", "return", "content", "[", "end", "-", "1", "]", "!=", "'\\n'", ";", "}" ]
public virtual bool IsMissingNewlineAtEnd(){int end = lines.Get(lines.Size() - 1);if (end == 0){return true;}return content[end - 1] != '\n';}
train
false
7,437
public CreateDashboardResult createDashboard(CreateDashboardRequest request) {request = beforeClientExecution(request);return executeCreateDashboard(request);}
[ "public", "CreateDashboardResult", "createDashboard", "(", "CreateDashboardRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateDashboard", "(", "request", ")", ";", "}" ]
public virtual CreateDashboardResponse CreateDashboard(CreateDashboardRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDashboardRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDashboardResponseUnmarshaller.Instance;return Invoke<CreateDashboardResponse>(request, options);}
train
false
7,438
public void write(String str, int offset, int count) {write(str.substring(offset, offset + count).toCharArray());}
[ "public", "void", "write", "(", "String", "str", ",", "int", "offset", ",", "int", "count", ")", "{", "write", "(", "str", ".", "substring", "(", "offset", ",", "offset", "+", "count", ")", ".", "toCharArray", "(", ")", ")", ";", "}" ]
public override void write(string str, int offset, int count){write(Sharpen.StringHelper.Substring(str, offset, offset + count).ToCharArray());}
train
false
7,439
public UpdateNamespaceAuthorizationRequest() {super("cr", "2016-06-07", "UpdateNamespaceAuthorization", "cr");setUriPattern("/namespace/[Namespace]/authorizations/[AuthorizeId]");setMethod(MethodType.POST);}
[ "public", "UpdateNamespaceAuthorizationRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"UpdateNamespaceAuthorization\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/namespace/[Namespace]/authorizations/[AuthorizeId]\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public UpdateNamespaceAuthorizationRequest(): base("cr", "2016-06-07", "UpdateNamespaceAuthorization", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations/[AuthorizeId]";Method = MethodType.POST;}
train
false
7,440
public DescribeStreamResult describeStream(DescribeStreamRequest request) {request = beforeClientExecution(request);return executeDescribeStream(request);}
[ "public", "DescribeStreamResult", "describeStream", "(", "DescribeStreamRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeStream", "(", "request", ")", ";", "}" ]
public virtual DescribeStreamResponse DescribeStream(DescribeStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamResponseUnmarshaller.Instance;return Invoke<DescribeStreamResponse>(request, options);}
train
true
7,441
public void mark(int markLimit) throws IOException {if (markLimit < 0) {throw new IllegalArgumentException();}synchronized (lock) {checkNotClosed();this.markLimit = markLimit;mark = pos;}}
[ "public", "void", "mark", "(", "int", "markLimit", ")", "throws", "IOException", "{", "if", "(", "markLimit", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "synchronized", "(", "lock", ")", "{", "checkNotClosed", "(", ")", ";", "this", ".", "markLimit", "=", "markLimit", ";", "mark", "=", "pos", ";", "}", "}" ]
public override void mark(int markLimit){if (markLimit < 0){throw new System.ArgumentException();}lock (@lock){checkNotClosed();this.markLimit = markLimit;_mark = pos;}}
train
false
7,443
public String toString() {return String.format("channel(%d)", channel);}
[ "public", "String", "toString", "(", ")", "{", "return", "String", ".", "format", "(", "\"channel(%d)\"", ",", "channel", ")", ";", "}" ]
public override string ToString(){return string.Format("channel({0})", channel);}
train
false
7,444
public String getName() {int separatorIndex = path.lastIndexOf(separator);return (separatorIndex < 0) ? path : path.substring(separatorIndex + 1, path.length());}
[ "public", "String", "getName", "(", ")", "{", "int", "separatorIndex", "=", "path", ".", "lastIndexOf", "(", "separator", ")", ";", "return", "(", "separatorIndex", "<", "0", ")", "?", "path", ":", "path", ".", "substring", "(", "separatorIndex", "+", "1", ",", "path", ".", "length", "(", ")", ")", ";", "}" ]
public string getName(){int separatorIndex = path.LastIndexOf(separator);return (separatorIndex < 0) ? path : Sharpen.StringHelper.Substring(path, separatorIndex+ 1, path.Length);}
train
true
7,445
public TestInvokeMethodResult testInvokeMethod(TestInvokeMethodRequest request) {request = beforeClientExecution(request);return executeTestInvokeMethod(request);}
[ "public", "TestInvokeMethodResult", "testInvokeMethod", "(", "TestInvokeMethodRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeTestInvokeMethod", "(", "request", ")", ";", "}" ]
public virtual TestInvokeMethodResponse TestInvokeMethod(TestInvokeMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestInvokeMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = TestInvokeMethodResponseUnmarshaller.Instance;return Invoke<TestInvokeMethodResponse>(request, options);}
train
true
7,446
public final void clearAttributes() {for (State state = getCurrentState(); state != null; state = state.next) {state.attribute.clear();}}
[ "public", "final", "void", "clearAttributes", "(", ")", "{", "for", "(", "State", "state", "=", "getCurrentState", "(", ")", ";", "state", "!=", "null", ";", "state", "=", "state", ".", "next", ")", "{", "state", ".", "attribute", ".", "clear", "(", ")", ";", "}", "}" ]
public void ClearAttributes(){for (State state = GetCurrentState(); state != null; state = state.next){state.attribute.Clear();}}
train
false
7,447
public ListRecipesResult listRecipes(ListRecipesRequest request) {request = beforeClientExecution(request);return executeListRecipes(request);}
[ "public", "ListRecipesResult", "listRecipes", "(", "ListRecipesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListRecipes", "(", "request", ")", ";", "}" ]
public virtual ListRecipesResponse ListRecipes(ListRecipesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRecipesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRecipesResponseUnmarshaller.Instance;return Invoke<ListRecipesResponse>(request, options);}
train
false
7,448
public void setText(CharacterIterator newText) {text = newText;text.setIndex(text.getBeginIndex());currentSentence = 0;Span[] spans = sentenceOp.splitSentences(characterIteratorToString());sentenceStarts = new int[spans.length];for (int i = 0; i < spans.length; ++i) {sentenceStarts[i] = spans[i].getStart() + text.getBeginIndex();}}
[ "public", "void", "setText", "(", "CharacterIterator", "newText", ")", "{", "text", "=", "newText", ";", "text", ".", "setIndex", "(", "text", ".", "getBeginIndex", "(", ")", ")", ";", "currentSentence", "=", "0", ";", "Span", "[", "]", "spans", "=", "sentenceOp", ".", "splitSentences", "(", "characterIteratorToString", "(", ")", ")", ";", "sentenceStarts", "=", "new", "int", "[", "spans", ".", "length", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "spans", ".", "length", ";", "++", "i", ")", "{", "sentenceStarts", "[", "i", "]", "=", "spans", "[", "i", "]", ".", "getStart", "(", ")", "+", "text", ".", "getBeginIndex", "(", ")", ";", "}", "}" ]
public override void SetText(CharacterIterator newText){text = newText;text.SetIndex(text.BeginIndex);currentSentence = 0;Span[] spans = sentenceOp.SplitSentences(CharacterIteratorToString());sentenceStarts = new int[spans.Length];for (int i = 0; i < spans.Length; ++i){sentenceStarts[i] = spans[i].getStart() + text.BeginIndex;}}
train
false
7,449
public String formatWithConflicts(String message,List<String> conflictingPaths) {StringBuilder sb = new StringBuilder();String[] lines = message.split("\n"); int firstFooterLine = ChangeIdUtil.indexOfFirstFooterLine(lines);for (int i = 0; i < firstFooterLine; i++)sb.append(lines[i]).append('\n');if (firstFooterLine == lines.length && message.length() != 0)sb.append('\n');addConflictsMessage(conflictingPaths, sb);if (firstFooterLine < lines.length)sb.append('\n');for (int i = firstFooterLine; i < lines.length; i++)sb.append(lines[i]).append('\n');return sb.toString();}
[ "public", "String", "formatWithConflicts", "(", "String", "message", ",", "List", "<", "String", ">", "conflictingPaths", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "String", "[", "]", "lines", "=", "message", ".", "split", "(", "\"\\n\"", ")", ";", "int", "firstFooterLine", "=", "ChangeIdUtil", ".", "indexOfFirstFooterLine", "(", "lines", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "firstFooterLine", ";", "i", "++", ")", "sb", ".", "append", "(", "lines", "[", "i", "]", ")", ".", "append", "(", "'\\n'", ")", ";", "if", "(", "firstFooterLine", "==", "lines", ".", "length", "&&", "message", ".", "length", "(", ")", "!=", "0", ")", "sb", ".", "append", "(", "'\\n'", ")", ";", "addConflictsMessage", "(", "conflictingPaths", ",", "sb", ")", ";", "if", "(", "firstFooterLine", "<", "lines", ".", "length", ")", "sb", ".", "append", "(", "'\\n'", ")", ";", "for", "(", "int", "i", "=", "firstFooterLine", ";", "i", "<", "lines", ".", "length", ";", "i", "++", ")", "sb", ".", "append", "(", "lines", "[", "i", "]", ")", ".", "append", "(", "'\\n'", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public virtual string FormatWithConflicts(string message, IList<string> conflictingPaths){StringBuilder sb = new StringBuilder(message);if (!message.EndsWith("\n") && message.Length != 0){sb.Append("\n");}sb.Append("\n");sb.Append("Conflicts:\n");foreach (string conflictingPath in conflictingPaths){sb.Append('\t').Append(conflictingPath).Append('\n');}return sb.ToString();}
train
false
7,450
public boolean get(int index) {return bits.get(index);}
[ "public", "boolean", "get", "(", "int", "index", ")", "{", "return", "bits", ".", "get", "(", "index", ")", ";", "}" ]
public virtual bool Get(int index){return bits.SafeGet(index);}
train
false
7,451
public DescribeTaskSetsResult describeTaskSets(DescribeTaskSetsRequest request) {request = beforeClientExecution(request);return executeDescribeTaskSets(request);}
[ "public", "DescribeTaskSetsResult", "describeTaskSets", "(", "DescribeTaskSetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeTaskSets", "(", "request", ")", ";", "}" ]
public virtual DescribeTaskSetsResponse DescribeTaskSets(DescribeTaskSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTaskSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTaskSetsResponseUnmarshaller.Instance;return Invoke<DescribeTaskSetsResponse>(request, options);}
train
true
7,452
public void add(FormulaRecordAggregate agg) {if (_numberOfFormulas == 0) {if (_firstCell.getRow() != agg.getRow() || _firstCell.getCol() != agg.getColumn()) {throw new IllegalStateException("shared formula coding error: "+_firstCell.getCol()+'/'+_firstCell.getRow()+" != "+agg.getColumn()+'/'+agg.getRow());}}if (_numberOfFormulas >= _frAggs.length) {throw new RuntimeException("Too many formula records for shared formula group");}_frAggs[_numberOfFormulas++] = agg;}
[ "public", "void", "add", "(", "FormulaRecordAggregate", "agg", ")", "{", "if", "(", "_numberOfFormulas", "==", "0", ")", "{", "if", "(", "_firstCell", ".", "getRow", "(", ")", "!=", "agg", ".", "getRow", "(", ")", "||", "_firstCell", ".", "getCol", "(", ")", "!=", "agg", ".", "getColumn", "(", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"shared formula coding error: \"", "+", "_firstCell", ".", "getCol", "(", ")", "+", "'/'", "+", "_firstCell", ".", "getRow", "(", ")", "+", "\" != \"", "+", "agg", ".", "getColumn", "(", ")", "+", "'/'", "+", "agg", ".", "getRow", "(", ")", ")", ";", "}", "}", "if", "(", "_numberOfFormulas", ">=", "_frAggs", ".", "length", ")", "{", "throw", "new", "RuntimeException", "(", "\"Too many formula records for shared formula group\"", ")", ";", "}", "_frAggs", "[", "_numberOfFormulas", "++", "]", "=", "agg", ";", "}" ]
public void Add(FormulaRecordAggregate agg){if (_numberOfFormulas == 0){if (_firstCell.Row != agg.Row || _firstCell.Col != agg.Column){throw new InvalidOperationException("shared formula coding error");}}if (_numberOfFormulas >= _frAggs.Length){throw new Exception("Too many formula records for shared formula group");}_frAggs[_numberOfFormulas++] = agg;}
train
false
7,453
public PacketLineOutRefAdvertiser(PacketLineOut out) {pckOut = out;}
[ "public", "PacketLineOutRefAdvertiser", "(", "PacketLineOut", "out", ")", "{", "pckOut", "=", "out", ";", "}" ]
public PacketLineOutRefAdvertiser(PacketLineOut @out){pckOut = @out;}
train
false
7,454
public UpdateDataSetResult updateDataSet(UpdateDataSetRequest request) {request = beforeClientExecution(request);return executeUpdateDataSet(request);}
[ "public", "UpdateDataSetResult", "updateDataSet", "(", "UpdateDataSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateDataSet", "(", "request", ")", ";", "}" ]
public virtual UpdateDataSetResponse UpdateDataSet(UpdateDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDataSetResponseUnmarshaller.Instance;return Invoke<UpdateDataSetResponse>(request, options);}
train
false
7,455
public ListKeyPhrasesDetectionJobsResult listKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListKeyPhrasesDetectionJobs(request);}
[ "public", "ListKeyPhrasesDetectionJobsResult", "listKeyPhrasesDetectionJobs", "(", "ListKeyPhrasesDetectionJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListKeyPhrasesDetectionJobs", "(", "request", ")", ";", "}" ]
public virtual ListKeyPhrasesDetectionJobsResponse ListKeyPhrasesDetectionJobs(ListKeyPhrasesDetectionJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListKeyPhrasesDetectionJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListKeyPhrasesDetectionJobsResponseUnmarshaller.Instance;return Invoke<ListKeyPhrasesDetectionJobsResponse>(request, options);}
train
true
7,456
@Override public void clear() {Impl.this.clear();}
[ "@", "Override", "public", "void", "clear", "(", ")", "{", "Impl", ".", "this", ".", "clear", "(", ")", ";", "}" ]
public override void clear(){this._enclosing.clear();}
train
false
7,457
public VaultNotificationConfig(String sNSTopic, java.util.List<String> events) {setSNSTopic(sNSTopic);setEvents(events);}
[ "public", "VaultNotificationConfig", "(", "String", "sNSTopic", ",", "java", ".", "util", ".", "List", "<", "String", ">", "events", ")", "{", "setSNSTopic", "(", "sNSTopic", ")", ";", "setEvents", "(", "events", ")", ";", "}" ]
public VaultNotificationConfig(string snsTopic, List<string> events){_snsTopic = snsTopic;_events = events;}
train
false
7,458
public String[] lemmatize(String[] words, String[] postags) {String[] lemmas = null;String[] maxEntLemmas = null;if (dictionaryLemmatizer != null) {lemmas = dictionaryLemmatizer.lemmatize(words, postags);for (int i = 0; i < lemmas.length; ++i) {if (lemmas[i].equals("O")) { if (lemmatizerME != null) { if (maxEntLemmas == null) {maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if ("_".equals(maxEntLemmas[i])) {lemmas[i] = words[i]; } else {lemmas[i] = maxEntLemmas[i];}} else { lemmas[i] = words[i]; }}}} else { maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0 ; i < maxEntLemmas.length ; ++i) {if ("_".equals(maxEntLemmas[i])) {maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}
[ "public", "String", "[", "]", "lemmatize", "(", "String", "[", "]", "words", ",", "String", "[", "]", "postags", ")", "{", "String", "[", "]", "lemmas", "=", "null", ";", "String", "[", "]", "maxEntLemmas", "=", "null", ";", "if", "(", "dictionaryLemmatizer", "!=", "null", ")", "{", "lemmas", "=", "dictionaryLemmatizer", ".", "lemmatize", "(", "words", ",", "postags", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "lemmas", ".", "length", ";", "++", "i", ")", "{", "if", "(", "lemmas", "[", "i", "]", ".", "equals", "(", "\"O\"", ")", ")", "{", "if", "(", "lemmatizerME", "!=", "null", ")", "{", "if", "(", "maxEntLemmas", "==", "null", ")", "{", "maxEntLemmas", "=", "lemmatizerME", ".", "lemmatize", "(", "words", ",", "postags", ")", ";", "}", "if", "(", "\"_\"", ".", "equals", "(", "maxEntLemmas", "[", "i", "]", ")", ")", "{", "lemmas", "[", "i", "]", "=", "words", "[", "i", "]", ";", "}", "else", "{", "lemmas", "[", "i", "]", "=", "maxEntLemmas", "[", "i", "]", ";", "}", "}", "else", "{", "lemmas", "[", "i", "]", "=", "words", "[", "i", "]", ";", "}", "}", "}", "}", "else", "{", "maxEntLemmas", "=", "lemmatizerME", ".", "lemmatize", "(", "words", ",", "postags", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "maxEntLemmas", ".", "length", ";", "++", "i", ")", "{", "if", "(", "\"_\"", ".", "equals", "(", "maxEntLemmas", "[", "i", "]", ")", ")", "{", "maxEntLemmas", "[", "i", "]", "=", "words", "[", "i", "]", ";", "}", "}", "lemmas", "=", "maxEntLemmas", ";", "}", "return", "lemmas", ";", "}" ]
public virtual string[] Lemmatize(string[] words, string[] postags){string[] lemmas = null;string[] maxEntLemmas = null;if (dictionaryLemmatizer != null){lemmas = dictionaryLemmatizer.lemmatize(words, postags);for (int i = 0; i < lemmas.Length; ++i){if (lemmas[i].Equals("O")){ if (lemmatizerME != null){ if (maxEntLemmas == null){maxEntLemmas = lemmatizerME.lemmatize(words, postags);}if ("_".Equals(maxEntLemmas[i])){lemmas[i] = words[i]; }else{lemmas[i] = maxEntLemmas[i];}}else{ lemmas[i] = words[i]; }}}}else{ maxEntLemmas = lemmatizerME.lemmatize(words, postags);for (int i = 0; i < maxEntLemmas.Length; ++i){if ("_".Equals(maxEntLemmas[i])){maxEntLemmas[i] = words[i]; }}lemmas = maxEntLemmas;}return lemmas;}
train
false
7,459
public PaletteRecord(RecordInputStream in) {int field_1_numcolors = in.readShort();_colors.ensureCapacity(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++) {_colors.add(new PColor(in));}}
[ "public", "PaletteRecord", "(", "RecordInputStream", "in", ")", "{", "int", "field_1_numcolors", "=", "in", ".", "readShort", "(", ")", ";", "_colors", ".", "ensureCapacity", "(", "field_1_numcolors", ")", ";", "for", "(", "int", "k", "=", "0", ";", "k", "<", "field_1_numcolors", ";", "k", "++", ")", "{", "_colors", ".", "add", "(", "new", "PColor", "(", "in", ")", ")", ";", "}", "}" ]
public PaletteRecord(RecordInputStream in1){short field_1_numcolors = in1.ReadShort();field_2_colors = new List<PColor>(field_1_numcolors);for (int k = 0; k < field_1_numcolors; k++){field_2_colors.Add(new PColor(in1));}}
train
false
7,460
public GetJobOutputRequest(String accountId, String vaultName, String jobId, String range) {setAccountId(accountId);setVaultName(vaultName);setJobId(jobId);setRange(range);}
[ "public", "GetJobOutputRequest", "(", "String", "accountId", ",", "String", "vaultName", ",", "String", "jobId", ",", "String", "range", ")", "{", "setAccountId", "(", "accountId", ")", ";", "setVaultName", "(", "vaultName", ")", ";", "setJobId", "(", "jobId", ")", ";", "setRange", "(", "range", ")", ";", "}" ]
public GetJobOutputRequest(string accountId, string vaultName, string jobId, string range){_accountId = accountId;_vaultName = vaultName;_jobId = jobId;_range = range;}
train
false
7,461
public ISigner getSigner() {return null;}
[ "public", "ISigner", "getSigner", "(", ")", "{", "return", "null", ";", "}" ]
public ISigner GetSigner(){return null;}
train
false
7,462
public static int codePointCount(BytesRef utf8) {int pos = utf8.offset;final int limit = pos + utf8.length;final byte[] bytes = utf8.bytes;int codePointCount = 0;for (; pos < limit; codePointCount++) {int v = bytes[pos] & 0xFF;if (v < 0x80) { pos += 1; continue; }if (v >= 0xc0) {if (v < 0xe0) { pos += 2; continue; }if (v < 0xf0) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new IllegalArgumentException();}if (pos > limit) throw new IllegalArgumentException();return codePointCount;}
[ "public", "static", "int", "codePointCount", "(", "BytesRef", "utf8", ")", "{", "int", "pos", "=", "utf8", ".", "offset", ";", "final", "int", "limit", "=", "pos", "+", "utf8", ".", "length", ";", "final", "byte", "[", "]", "bytes", "=", "utf8", ".", "bytes", ";", "int", "codePointCount", "=", "0", ";", "for", "(", ";", "pos", "<", "limit", ";", "codePointCount", "++", ")", "{", "int", "v", "=", "bytes", "[", "pos", "]", "&", "0xFF", ";", "if", "(", "v", "<", "0x80", ")", "{", "pos", "+=", "1", ";", "continue", ";", "}", "if", "(", "v", ">=", "0xc0", ")", "{", "if", "(", "v", "<", "0xe0", ")", "{", "pos", "+=", "2", ";", "continue", ";", "}", "if", "(", "v", "<", "0xf0", ")", "{", "pos", "+=", "3", ";", "continue", ";", "}", "if", "(", "v", "<", "0xf8", ")", "{", "pos", "+=", "4", ";", "continue", ";", "}", "}", "throw", "new", "IllegalArgumentException", "(", ")", ";", "}", "if", "(", "pos", ">", "limit", ")", "throw", "new", "IllegalArgumentException", "(", ")", ";", "return", "codePointCount", ";", "}" ]
public static int CodePointCount(BytesRef utf8){int pos = utf8.Offset;int limit = pos + utf8.Length;var bytes = utf8.Bytes;int codePointCount = 0;for (; pos < limit; codePointCount++){int v = bytes[pos] & 0xFF;if (v < 0x80) { pos += 1; continue; }if (v >= 0xc0){if (v < 0xe0) { pos += 2; continue; }if (v < 0xf0) { pos += 3; continue; }if (v < 0xf8) { pos += 4; continue; }}throw new ArgumentException();}if (pos > limit) throw new ArgumentException();return codePointCount;}
train
false
7,463
public static Class<? extends Record> getRecordClass(int sid) {I_RecordCreator rc = _recordCreatorsById.get(Integer.valueOf(sid));if (rc == null) {return null;}return rc.getRecordClass();}
[ "public", "static", "Class", "<", "?", "extends", "Record", ">", "getRecordClass", "(", "int", "sid", ")", "{", "I_RecordCreator", "rc", "=", "_recordCreatorsById", ".", "get", "(", "Integer", ".", "valueOf", "(", "sid", ")", ")", ";", "if", "(", "rc", "==", "null", ")", "{", "return", "null", ";", "}", "return", "rc", ".", "getRecordClass", "(", ")", ";", "}" ]
public static Type GetRecordClass(int sid){I_RecordCreator rc = _recordCreatorsById[(short)sid];if (rc == null){return null;}return rc.GetRecordClass();}
train
false
7,464
public WriteAccessRecord(RecordInputStream in) {if (in.remaining() > DATA_SIZE) {throw new RecordFormatException("Expected data size (" + DATA_SIZE + ") but got ("+ in.remaining() + ")");}int nChars = in.readUShort();int is16BitFlag = in.readUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0) {byte[] data = new byte[3 + in.remaining()];LittleEndian.putUShort(data, 0, nChars);LittleEndian.putByte(data, 2, is16BitFlag);in.readFully(data, 3, data.length-3);String rawValue = new String(data, StringUtil.UTF8);setUsername(rawValue.trim());return;}String rawText;if ((is16BitFlag & 0x01) == 0x00) {rawText = StringUtil.readCompressedUnicode(in, nChars);} else {rawText = StringUtil.readUnicodeLE(in, nChars);}field_1_username = rawText.trim();int padSize = in.remaining();while (padSize > 0) {in.readUByte();padSize--;}}
[ "public", "WriteAccessRecord", "(", "RecordInputStream", "in", ")", "{", "if", "(", "in", ".", "remaining", "(", ")", ">", "DATA_SIZE", ")", "{", "throw", "new", "RecordFormatException", "(", "\"Expected data size (\"", "+", "DATA_SIZE", "+", "\") but got (\"", "+", "in", ".", "remaining", "(", ")", "+", "\")\"", ")", ";", "}", "int", "nChars", "=", "in", ".", "readUShort", "(", ")", ";", "int", "is16BitFlag", "=", "in", ".", "readUByte", "(", ")", ";", "if", "(", "nChars", ">", "DATA_SIZE", "||", "(", "is16BitFlag", "&", "0xFE", ")", "!=", "0", ")", "{", "byte", "[", "]", "data", "=", "new", "byte", "[", "3", "+", "in", ".", "remaining", "(", ")", "]", ";", "LittleEndian", ".", "putUShort", "(", "data", ",", "0", ",", "nChars", ")", ";", "LittleEndian", ".", "putByte", "(", "data", ",", "2", ",", "is16BitFlag", ")", ";", "in", ".", "readFully", "(", "data", ",", "3", ",", "data", ".", "length", "-", "3", ")", ";", "String", "rawValue", "=", "new", "String", "(", "data", ",", "StringUtil", ".", "UTF8", ")", ";", "setUsername", "(", "rawValue", ".", "trim", "(", ")", ")", ";", "return", ";", "}", "String", "rawText", ";", "if", "(", "(", "is16BitFlag", "&", "0x01", ")", "==", "0x00", ")", "{", "rawText", "=", "StringUtil", ".", "readCompressedUnicode", "(", "in", ",", "nChars", ")", ";", "}", "else", "{", "rawText", "=", "StringUtil", ".", "readUnicodeLE", "(", "in", ",", "nChars", ")", ";", "}", "field_1_username", "=", "rawText", ".", "trim", "(", ")", ";", "int", "padSize", "=", "in", ".", "remaining", "(", ")", ";", "while", "(", "padSize", ">", "0", ")", "{", "in", ".", "readUByte", "(", ")", ";", "padSize", "--", ";", "}", "}" ]
public WriteAccessRecord(RecordInputStream in1){if (in1.Remaining > DATA_SIZE){throw new RecordFormatException("Expected data size (" + DATA_SIZE + ") but got ("+ in1.Remaining + ")");}int nChars = in1.ReadUShort();int is16BitFlag = in1.ReadUByte();if (nChars > DATA_SIZE || (is16BitFlag & 0xFE) != 0){byte[] data = new byte[3 + in1.Remaining];LittleEndian.PutUShort(data, 0, nChars);LittleEndian.PutByte(data, 2, is16BitFlag);in1.ReadFully(data, 3, data.Length - 3);char[] data1=new char[data.Length];for (int i = 0; i < data.Length; i++){data1[i] = (char)data[i];}String rawValue = new String(data1);Username = rawValue.Trim();return;}String rawText;if ((is16BitFlag & 0x01) == 0x00){rawText = StringUtil.ReadCompressedUnicode(in1, nChars);}else{rawText = StringUtil.ReadUnicodeLE(in1, nChars);}field_1_username = rawText.Trim();int padSize = in1.Remaining;while (padSize > 0){in1.ReadUByte();padSize--;}}
train
false
7,465
public FontBasisRecord(RecordInputStream in){field_1_xBasis = in.readShort();field_2_yBasis = in.readShort();field_3_heightBasis = in.readShort();field_4_scale = in.readShort();field_5_indexToFontTable = in.readShort();}
[ "public", "FontBasisRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_xBasis", "=", "in", ".", "readShort", "(", ")", ";", "field_2_yBasis", "=", "in", ".", "readShort", "(", ")", ";", "field_3_heightBasis", "=", "in", ".", "readShort", "(", ")", ";", "field_4_scale", "=", "in", ".", "readShort", "(", ")", ";", "field_5_indexToFontTable", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public FontBasisRecord(RecordInputStream in1){field_1_xBasis = in1.ReadShort();field_2_yBasis = in1.ReadShort();field_3_heightBasis = in1.ReadShort();field_4_scale = in1.ReadShort();field_5_indexToFontTable = in1.ReadShort();}
train
false
7,466
public String encodeText(String originalText) {return originalText;}
[ "public", "String", "encodeText", "(", "String", "originalText", ")", "{", "return", "originalText", ";", "}" ]
public virtual string EncodeText(string originalText){return originalText;}
train
false
7,467
public PathEdit(String entryPath) {path = Constants.encode(entryPath);}
[ "public", "PathEdit", "(", "String", "entryPath", ")", "{", "path", "=", "Constants", ".", "encode", "(", "entryPath", ")", ";", "}" ]
public PathEdit(string entryPath){path = Constants.Encode(entryPath);}
train
false
7,469
public ResolveAliasResult resolveAlias(ResolveAliasRequest request) {request = beforeClientExecution(request);return executeResolveAlias(request);}
[ "public", "ResolveAliasResult", "resolveAlias", "(", "ResolveAliasRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResolveAlias", "(", "request", ")", ";", "}" ]
public virtual ResolveAliasResponse ResolveAlias(ResolveAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResolveAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = ResolveAliasResponseUnmarshaller.Instance;return Invoke<ResolveAliasResponse>(request, options);}
train
true
7,470
public TokenStream create(TokenStream input) {return new GreekStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "GreekStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new GreekStemFilter(input);}
train
false
7,471
public DescribeCacheSecurityGroupsRequest(String cacheSecurityGroupName) {setCacheSecurityGroupName(cacheSecurityGroupName);}
[ "public", "DescribeCacheSecurityGroupsRequest", "(", "String", "cacheSecurityGroupName", ")", "{", "setCacheSecurityGroupName", "(", "cacheSecurityGroupName", ")", ";", "}" ]
public DescribeCacheSecurityGroupsRequest(string cacheSecurityGroupName){_cacheSecurityGroupName = cacheSecurityGroupName;}
train
false
7,472
public void readFully(byte[] buf, int off, int len) {if (shouldSkipEncryptionOnCurrentRecord) {readPlain(buf, off, buf.length);} else {ccis.readFully(buf, off, len);}}
[ "public", "void", "readFully", "(", "byte", "[", "]", "buf", ",", "int", "off", ",", "int", "len", ")", "{", "if", "(", "shouldSkipEncryptionOnCurrentRecord", ")", "{", "readPlain", "(", "buf", ",", "off", ",", "buf", ".", "length", ")", ";", "}", "else", "{", "ccis", ".", "readFully", "(", "buf", ",", "off", ",", "len", ")", ";", "}", "}" ]
public void ReadFully(byte[] buf, int off, int len){_le.ReadFully(buf, off, len);_rc4.Xor(buf, off, len);}
train
false
7,474
public DeleteDomainNameResult deleteDomainName(DeleteDomainNameRequest request) {request = beforeClientExecution(request);return executeDeleteDomainName(request);}
[ "public", "DeleteDomainNameResult", "deleteDomainName", "(", "DeleteDomainNameRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDomainName", "(", "request", ")", ";", "}" ]
public virtual DeleteDomainNameResponse DeleteDomainName(DeleteDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDomainNameResponseUnmarshaller.Instance;return Invoke<DeleteDomainNameResponse>(request, options);}
train
true
7,475
public GlobalReplicationGroup decreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDecreaseNodeGroupsInGlobalReplicationGroup(request);}
[ "public", "GlobalReplicationGroup", "decreaseNodeGroupsInGlobalReplicationGroup", "(", "DecreaseNodeGroupsInGlobalReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDecreaseNodeGroupsInGlobalReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual DecreaseNodeGroupsInGlobalReplicationGroupResponse DecreaseNodeGroupsInGlobalReplicationGroup(DecreaseNodeGroupsInGlobalReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DecreaseNodeGroupsInGlobalReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DecreaseNodeGroupsInGlobalReplicationGroupResponseUnmarshaller.Instance;return Invoke<DecreaseNodeGroupsInGlobalReplicationGroupResponse>(request, options);}
train
false
7,476
public SelectRequest(String selectExpression, Boolean consistentRead) {setSelectExpression(selectExpression);setConsistentRead(consistentRead);}
[ "public", "SelectRequest", "(", "String", "selectExpression", ",", "Boolean", "consistentRead", ")", "{", "setSelectExpression", "(", "selectExpression", ")", ";", "setConsistentRead", "(", "consistentRead", ")", ";", "}" ]
public SelectRequest(string selectExpression, bool consistentRead){_selectExpression = selectExpression;_consistentRead = consistentRead;}
train
false
7,477
public SubmoduleAddCommand setURI(String uri) {this.uri = uri;return this;}
[ "public", "SubmoduleAddCommand", "setURI", "(", "String", "uri", ")", "{", "this", ".", "uri", "=", "uri", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.SubmoduleAddCommand SetURI(string uri){this.uri = uri;return this;}
train
false
7,478
public PutRestApiResult putRestApi(PutRestApiRequest request) {request = beforeClientExecution(request);return executePutRestApi(request);}
[ "public", "PutRestApiResult", "putRestApi", "(", "PutRestApiRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutRestApi", "(", "request", ")", ";", "}" ]
public virtual PutRestApiResponse PutRestApi(PutRestApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRestApiRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRestApiResponseUnmarshaller.Instance;return Invoke<PutRestApiResponse>(request, options);}
train
true
7,479
public Ptg get3DReferencePtg(AreaReference areaRef, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Area3DPtg(areaRef, extIx);}
[ "public", "Ptg", "get3DReferencePtg", "(", "AreaReference", "areaRef", ",", "SheetIdentifier", "sheet", ")", "{", "int", "extIx", "=", "getSheetExtIx", "(", "sheet", ")", ";", "return", "new", "Area3DPtg", "(", "areaRef", ",", "extIx", ")", ";", "}" ]
public Ptg Get3DReferencePtg(CellReference cr, SheetIdentifier sheet){int extIx = GetSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
train
false
7,480
public CreateRequestValidatorResult createRequestValidator(CreateRequestValidatorRequest request) {request = beforeClientExecution(request);return executeCreateRequestValidator(request);}
[ "public", "CreateRequestValidatorResult", "createRequestValidator", "(", "CreateRequestValidatorRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateRequestValidator", "(", "request", ")", ";", "}" ]
public virtual CreateRequestValidatorResponse CreateRequestValidator(CreateRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRequestValidatorResponseUnmarshaller.Instance;return Invoke<CreateRequestValidatorResponse>(request, options);}
train
true
7,481
public ByteBuffer duplicate() {return copy(this, mark);}
[ "public", "ByteBuffer", "duplicate", "(", ")", "{", "return", "copy", "(", "this", ",", "mark", ")", ";", "}" ]
public override java.nio.ByteBuffer duplicate(){return copy(this, _mark);}
train
false
7,482
public void setPackedGitWindowSize(int newSize) {packedGitWindowSize = newSize;}
[ "public", "void", "setPackedGitWindowSize", "(", "int", "newSize", ")", "{", "packedGitWindowSize", "=", "newSize", ";", "}" ]
public virtual void SetPackedGitWindowSize(int newSize){packedGitWindowSize = newSize;}
train
false
7,483
public DisassociateMembershipResult disassociateMembership(DisassociateMembershipRequest request) {request = beforeClientExecution(request);return executeDisassociateMembership(request);}
[ "public", "DisassociateMembershipResult", "disassociateMembership", "(", "DisassociateMembershipRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateMembership", "(", "request", ")", ";", "}" ]
public virtual DisassociateMembershipResponse DisassociateMembership(DisassociateMembershipRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembershipRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembershipResponseUnmarshaller.Instance;return Invoke<DisassociateMembershipResponse>(request, options);}
train
false
7,484
public void parse(Reader in) throws IOException, ParseException {LineNumberReader br = new LineNumberReader(in);try {String line = null;String lastSynSetID = "";CharsRef synset[] = new CharsRef[8];int synsetSize = 0;while ((line = br.readLine()) != null) {String synSetID = line.substring(2, 11);if (!synSetID.equals(lastSynSetID)) {addInternal(synset, synsetSize);synsetSize = 0;}synset = ArrayUtil.grow(synset, synsetSize + 1);synset[synsetSize] = parseSynonym(line, new CharsRefBuilder());synsetSize++;lastSynSetID = synSetID;}addInternal(synset, synsetSize);} catch (IllegalArgumentException e) {ParseException ex = new ParseException("Invalid synonym rule at line " + br.getLineNumber(), 0);ex.initCause(e);throw ex;} finally {br.close();}}
[ "public", "void", "parse", "(", "Reader", "in", ")", "throws", "IOException", ",", "ParseException", "{", "LineNumberReader", "br", "=", "new", "LineNumberReader", "(", "in", ")", ";", "try", "{", "String", "line", "=", "null", ";", "String", "lastSynSetID", "=", "\"\"", ";", "CharsRef", "synset", "[", "]", "=", "new", "CharsRef", "[", "8", "]", ";", "int", "synsetSize", "=", "0", ";", "while", "(", "(", "line", "=", "br", ".", "readLine", "(", ")", ")", "!=", "null", ")", "{", "String", "synSetID", "=", "line", ".", "substring", "(", "2", ",", "11", ")", ";", "if", "(", "!", "synSetID", ".", "equals", "(", "lastSynSetID", ")", ")", "{", "addInternal", "(", "synset", ",", "synsetSize", ")", ";", "synsetSize", "=", "0", ";", "}", "synset", "=", "ArrayUtil", ".", "grow", "(", "synset", ",", "synsetSize", "+", "1", ")", ";", "synset", "[", "synsetSize", "]", "=", "parseSynonym", "(", "line", ",", "new", "CharsRefBuilder", "(", ")", ")", ";", "synsetSize", "++", ";", "lastSynSetID", "=", "synSetID", ";", "}", "addInternal", "(", "synset", ",", "synsetSize", ")", ";", "}", "catch", "(", "IllegalArgumentException", "e", ")", "{", "ParseException", "ex", "=", "new", "ParseException", "(", "\"Invalid synonym rule at line \"", "+", "br", ".", "getLineNumber", "(", ")", ",", "0", ")", ";", "ex", ".", "initCause", "(", "e", ")", ";", "throw", "ex", ";", "}", "finally", "{", "br", ".", "close", "(", ")", ";", "}", "}" ]
public override void Parse(TextReader @in){int lineNumber = 0;TextReader br = @in;try{string line = null;string lastSynSetID = "";CharsRef[] synset = new CharsRef[8];int synsetSize = 0;while ((line = br.ReadLine()) != null){lineNumber++;string synSetID = line.Substring(2, 9);if (!synSetID.Equals(lastSynSetID, StringComparison.Ordinal)){AddInternal(synset, synsetSize);synsetSize = 0;}if (synset.Length <= synsetSize + 1){CharsRef[] larger = new CharsRef[synset.Length * 2];Array.Copy(synset, 0, larger, 0, synsetSize);synset = larger;}synset[synsetSize] = ParseSynonym(line, synset[synsetSize]);synsetSize++;lastSynSetID = synSetID;}AddInternal(synset, synsetSize);}catch (System.ArgumentException e){throw new Exception("Invalid synonym rule at line " + lineNumber.ToString(), e);}finally{br.Dispose();}}
train
false
7,485
public String[] list() {return listImpl(path);}
[ "public", "String", "[", "]", "list", "(", ")", "{", "return", "listImpl", "(", "path", ")", ";", "}" ]
public string[] list(){return listImpl(path);}
train
false
7,488
public static Element getFirstChildElement(Element element) {for (Node kid = element.getFirstChild(); kid != null; kid = kid.getNextSibling()) {if (kid.getNodeType() == Node.ELEMENT_NODE) {return (Element) kid;}}return null;}
[ "public", "static", "Element", "getFirstChildElement", "(", "Element", "element", ")", "{", "for", "(", "Node", "kid", "=", "element", ".", "getFirstChild", "(", ")", ";", "kid", "!=", "null", ";", "kid", "=", "kid", ".", "getNextSibling", "(", ")", ")", "{", "if", "(", "kid", ".", "getNodeType", "(", ")", "==", "Node", ".", "ELEMENT_NODE", ")", "{", "return", "(", "Element", ")", "kid", ";", "}", "}", "return", "null", ";", "}" ]
public static XmlElement GetFirstChildElement(XmlElement element){for (XmlNode kid = element.FirstChild; kid != null; kid = kid.NextSibling){if (kid.NodeType == XmlNodeType.Element){return (XmlElement)kid;}}return null;}
train
false
7,489
@Override public boolean add(E object) {synchronized (mutex) {return c.add(object);}}
[ "@", "Override", "public", "boolean", "add", "(", "E", "object", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "c", ".", "add", "(", "object", ")", ";", "}", "}" ]
public virtual bool add(E @object){lock (mutex){return c.add(@object);}}
train
false
7,490
public LongMap() {table = createArray(64);growAt = (int) (table.length * LOAD_FACTOR);}
[ "public", "LongMap", "(", ")", "{", "table", "=", "createArray", "(", "64", ")", ";", "growAt", "=", "(", "int", ")", "(", "table", ".", "length", "*", "LOAD_FACTOR", ")", ";", "}" ]
public LongMap(){table = CreateArray<V>(64);growAt = (int)(table.Length * LOAD_FACTOR);}
train
false
7,491
public ClaimGameServerResult claimGameServer(ClaimGameServerRequest request) {request = beforeClientExecution(request);return executeClaimGameServer(request);}
[ "public", "ClaimGameServerResult", "claimGameServer", "(", "ClaimGameServerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeClaimGameServer", "(", "request", ")", ";", "}" ]
public virtual ClaimGameServerResponse ClaimGameServer(ClaimGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClaimGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = ClaimGameServerResponseUnmarshaller.Instance;return Invoke<ClaimGameServerResponse>(request, options);}
train
false
7,492
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator) {double enumerator = 0;try {enumerator = OperandResolver.coerceValueToDouble(venumerator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}double denominator = 0;try {denominator = OperandResolver.coerceValueToDouble(vedenominator);} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}if (denominator == 0) {return ErrorEval.DIV_ZERO;}return new NumberEval((int)(enumerator / denominator));}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "venumerator", ",", "ValueEval", "vedenominator", ")", "{", "double", "enumerator", "=", "0", ";", "try", "{", "enumerator", "=", "OperandResolver", ".", "coerceValueToDouble", "(", "venumerator", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "double", "denominator", "=", "0", ";", "try", "{", "denominator", "=", "OperandResolver", ".", "coerceValueToDouble", "(", "vedenominator", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "if", "(", "denominator", "==", "0", ")", "{", "return", "ErrorEval", ".", "DIV_ZERO", ";", "}", "return", "new", "NumberEval", "(", "(", "int", ")", "(", "enumerator", "/", "denominator", ")", ")", ";", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval venumerator, ValueEval vedenominator){double enumerator = 0;try{enumerator = OperandResolver.CoerceValueToDouble(venumerator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}double denominator = 0;try{denominator = OperandResolver.CoerceValueToDouble(vedenominator);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (denominator == 0){return ErrorEval.DIV_ZERO;}return new NumberEval(((int)(enumerator / denominator)));}
train
false
7,493
public synchronized V put(K key, V value) {if (value == null) {throw new NullPointerException();}int hash = secondaryHash(key.hashCode());HashtableEntry<K, V>[] tab = table;int index = hash & (tab.length - 1);HashtableEntry<K, V> first = tab[index];for (HashtableEntry<K, V> e = first; e != null; e = e.next) {if (e.hash == hash && key.equals(e.key)) {V oldValue = e.value;e.value = value;return oldValue;}}modCount++;if (size++ > threshold) {rehash(); tab = doubleCapacity();index = hash & (tab.length - 1);first = tab[index];}tab[index] = new HashtableEntry<K, V>(key, value, hash, first);return null;}
[ "public", "synchronized", "V", "put", "(", "K", "key", ",", "V", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "int", "hash", "=", "secondaryHash", "(", "key", ".", "hashCode", "(", ")", ")", ";", "HashtableEntry", "<", "K", ",", "V", ">", "[", "]", "tab", "=", "table", ";", "int", "index", "=", "hash", "&", "(", "tab", ".", "length", "-", "1", ")", ";", "HashtableEntry", "<", "K", ",", "V", ">", "first", "=", "tab", "[", "index", "]", ";", "for", "(", "HashtableEntry", "<", "K", ",", "V", ">", "e", "=", "first", ";", "e", "!=", "null", ";", "e", "=", "e", ".", "next", ")", "{", "if", "(", "e", ".", "hash", "==", "hash", "&&", "key", ".", "equals", "(", "e", ".", "key", ")", ")", "{", "V", "oldValue", "=", "e", ".", "value", ";", "e", ".", "value", "=", "value", ";", "return", "oldValue", ";", "}", "}", "modCount", "++", ";", "if", "(", "size", "++", ">", "threshold", ")", "{", "rehash", "(", ")", ";", "tab", "=", "doubleCapacity", "(", ")", ";", "index", "=", "hash", "&", "(", "tab", ".", "length", "-", "1", ")", ";", "first", "=", "tab", "[", "index", "]", ";", "}", "tab", "[", "index", "]", "=", "new", "HashtableEntry", "<", "K", ",", "V", ">", "(", "key", ",", "value", ",", "hash", ",", "first", ")", ";", "return", "null", ";", "}" ]
public override V put(K key, V value){lock (this){if ((object)value == null){throw new System.ArgumentNullException();}int hash = secondaryHash(key.GetHashCode());java.util.Hashtable.HashtableEntry<K, V>[] tab = table;int index = hash & (tab.Length - 1);java.util.Hashtable.HashtableEntry<K, V> first = tab[index];{for (java.util.Hashtable.HashtableEntry<K, V> e = first; e != null; e = e.next){if (e.hash == hash && key.Equals(e.key)){V oldValue = e.value;e.value = value;return oldValue;}}}modCount++;if (_size++ > threshold){rehash();tab = doubleCapacity();index = hash & (tab.Length - 1);first = tab[index];}tab[index] = new java.util.Hashtable.HashtableEntry<K, V>(key, value, hash, first);return default(V);}}
train
false
7,494
public DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingNotificationTypes(request);}
[ "public", "DescribeAutoScalingNotificationTypesResult", "describeAutoScalingNotificationTypes", "(", "DescribeAutoScalingNotificationTypesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeAutoScalingNotificationTypes", "(", "request", ")", ";", "}" ]
public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance;return Invoke<DescribeAutoScalingNotificationTypesResponse>(request, options);}
train
true
7,495
public ScandinavianFoldingFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "ScandinavianFoldingFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public ScandinavianFoldingFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
7,496
public ContentHandler getContentHandler () {return (theContentHandler == this) ? null : theContentHandler;}
[ "public", "ContentHandler", "getContentHandler", "(", ")", "{", "return", "(", "theContentHandler", "==", "this", ")", "?", "null", ":", "theContentHandler", ";", "}" ]
public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}
train
false
7,497
public String toString() {return "$";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"$\"", ";", "}" ]
public override string ToString(){return "$";}
train
false
7,498
public ListAssessmentRunsResult listAssessmentRuns(ListAssessmentRunsRequest request) {request = beforeClientExecution(request);return executeListAssessmentRuns(request);}
[ "public", "ListAssessmentRunsResult", "listAssessmentRuns", "(", "ListAssessmentRunsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListAssessmentRuns", "(", "request", ")", ";", "}" ]
public virtual ListAssessmentRunsResponse ListAssessmentRuns(ListAssessmentRunsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAssessmentRunsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAssessmentRunsResponseUnmarshaller.Instance;return Invoke<ListAssessmentRunsResponse>(request, options);}
train
true
7,499
public ShortBuffer compact() {throw new ReadOnlyBufferException();}
[ "public", "ShortBuffer", "compact", "(", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}" ]
public override java.nio.ShortBuffer compact(){throw new java.nio.ReadOnlyBufferException();}
train
false
7,500
public DeleteAssessmentRunResult deleteAssessmentRun(DeleteAssessmentRunRequest request) {request = beforeClientExecution(request);return executeDeleteAssessmentRun(request);}
[ "public", "DeleteAssessmentRunResult", "deleteAssessmentRun", "(", "DeleteAssessmentRunRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAssessmentRun", "(", "request", ")", ";", "}" ]
public virtual DeleteAssessmentRunResponse DeleteAssessmentRun(DeleteAssessmentRunRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAssessmentRunRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAssessmentRunResponseUnmarshaller.Instance;return Invoke<DeleteAssessmentRunResponse>(request, options);}
train
true
7,501
public GetAppsResult getApps(GetAppsRequest request) {request = beforeClientExecution(request);return executeGetApps(request);}
[ "public", "GetAppsResult", "getApps", "(", "GetAppsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApps", "(", "request", ")", ";", "}" ]
public virtual GetAppsResponse GetApps(GetAppsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppsResponseUnmarshaller.Instance;return Invoke<GetAppsResponse>(request, options);}
train
true
7,502
public String highlightTerm(String originalText, TokenGroup tokenGroup){if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0){return originalText;}StringBuilder sb = new StringBuilder();sb.append("<font ");if (highlightForeground){sb.append("color=\"");sb.append(getForegroundColorString(score));sb.append("\" ");}if (highlightBackground){sb.append("bgcolor=\"");sb.append(getBackgroundColorString(score));sb.append("\" ");}sb.append(">");sb.append(originalText);sb.append("</font>");return sb.toString();}
[ "public", "String", "highlightTerm", "(", "String", "originalText", ",", "TokenGroup", "tokenGroup", ")", "{", "if", "(", "tokenGroup", ".", "getTotalScore", "(", ")", "==", "0", ")", "return", "originalText", ";", "float", "score", "=", "tokenGroup", ".", "getTotalScore", "(", ")", ";", "if", "(", "score", "==", "0", ")", "{", "return", "originalText", ";", "}", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"<font \"", ")", ";", "if", "(", "highlightForeground", ")", "{", "sb", ".", "append", "(", "\"color=\\\"\"", ")", ";", "sb", ".", "append", "(", "getForegroundColorString", "(", "score", ")", ")", ";", "sb", ".", "append", "(", "\"\\\" \"", ")", ";", "}", "if", "(", "highlightBackground", ")", "{", "sb", ".", "append", "(", "\"bgcolor=\\\"\"", ")", ";", "sb", ".", "append", "(", "getBackgroundColorString", "(", "score", ")", ")", ";", "sb", ".", "append", "(", "\"\\\" \"", ")", ";", "}", "sb", ".", "append", "(", "\">\"", ")", ";", "sb", ".", "append", "(", "originalText", ")", ";", "sb", ".", "append", "(", "\"</font>\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore == 0)return originalText;float score = tokenGroup.TotalScore;if (score == 0){return originalText;}var sb = new StringBuilder();sb.Append("<font ");if (m_highlightForeground){sb.Append("color=\"");sb.Append(GetForegroundColorString(score));sb.Append("\" ");}if (m_highlightBackground){sb.Append("bgcolor=\"");sb.Append(GetBackgroundColorString(score));sb.Append("\" ");}sb.Append(">");sb.Append(originalText);sb.Append("</font>");return sb.ToString();}
train
false
7,503
public PendingTerm(BytesRef term, BlockTermState state) {super(true);this.termBytes = new byte[term.length];System.arraycopy(term.bytes, term.offset, termBytes, 0, term.length);this.state = state;}
[ "public", "PendingTerm", "(", "BytesRef", "term", ",", "BlockTermState", "state", ")", "{", "super", "(", "true", ")", ";", "this", ".", "termBytes", "=", "new", "byte", "[", "term", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "term", ".", "bytes", ",", "term", ".", "offset", ",", "termBytes", ",", "0", ",", "term", ".", "length", ")", ";", "this", ".", "state", "=", "state", ";", "}" ]
public PendingTerm(BytesRef term, BlockTermState state): base(true){this.Term = term;this.State = state;}
train
false
7,504
public IntBuffer asReadOnlyBuffer() {IntToByteBufferAdapter buf = new IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}
[ "public", "IntBuffer", "asReadOnlyBuffer", "(", ")", "{", "IntToByteBufferAdapter", "buf", "=", "new", "IntToByteBufferAdapter", "(", "byteBuffer", ".", "asReadOnlyBuffer", "(", ")", ")", ";", "buf", ".", "limit", "=", "limit", ";", "buf", ".", "position", "=", "position", ";", "buf", ".", "mark", "=", "mark", ";", "buf", ".", "byteBuffer", ".", "order", "=", "byteBuffer", ".", "order", ";", "return", "buf", ";", "}" ]
public override java.nio.IntBuffer asReadOnlyBuffer(){java.nio.IntToByteBufferAdapter buf = new java.nio.IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
train
false
7,505
public final void addParents(RevCommit c, RevFlag queueControl) {final RevCommit[] pList = c.parents;if (pList == null) {return;}for (int i = 0; i < pList.length; i++) {if (firstParent && i > 0) {break;}add(pList[i], queueControl);}}
[ "public", "final", "void", "addParents", "(", "RevCommit", "c", ",", "RevFlag", "queueControl", ")", "{", "final", "RevCommit", "[", "]", "pList", "=", "c", ".", "parents", ";", "if", "(", "pList", "==", "null", ")", "{", "return", ";", "}", "for", "(", "int", "i", "=", "0", ";", "i", "<", "pList", ".", "length", ";", "i", "++", ")", "{", "if", "(", "firstParent", "&&", "i", ">", "0", ")", "{", "break", ";", "}", "add", "(", "pList", "[", "i", "]", ",", "queueControl", ")", ";", "}", "}" ]
public void AddParents(RevCommit c, RevFlag queueControl){RevCommit[] pList = c.parents;if (pList == null){return;}foreach (RevCommit p in pList){Add(p, queueControl);}}
train
false
7,506
public IndicNormalizationFilter(TokenStream input) {super(input);}
[ "public", "IndicNormalizationFilter", "(", "TokenStream", "input", ")", "{", "super", "(", "input", ")", ";", "}" ]
public IndicNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
train
false
7,507
public ListTasksResult listTasks(ListTasksRequest request) {request = beforeClientExecution(request);return executeListTasks(request);}
[ "public", "ListTasksResult", "listTasks", "(", "ListTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTasks", "(", "request", ")", ";", "}" ]
public virtual ListTasksResponse ListTasks(ListTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;return Invoke<ListTasksResponse>(request, options);}
train
true
7,508
public ListTemplateAliasesResult listTemplateAliases(ListTemplateAliasesRequest request) {request = beforeClientExecution(request);return executeListTemplateAliases(request);}
[ "public", "ListTemplateAliasesResult", "listTemplateAliases", "(", "ListTemplateAliasesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTemplateAliases", "(", "request", ")", ";", "}" ]
public virtual ListTemplateAliasesResponse ListTemplateAliases(ListTemplateAliasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTemplateAliasesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTemplateAliasesResponseUnmarshaller.Instance;return Invoke<ListTemplateAliasesResponse>(request, options);}
train
false
7,509
public DescribeEventCategoriesResult describeEventCategories() {return describeEventCategories(new DescribeEventCategoriesRequest());}
[ "public", "DescribeEventCategoriesResult", "describeEventCategories", "(", ")", "{", "return", "describeEventCategories", "(", "new", "DescribeEventCategoriesRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeEventCategoriesResponse DescribeEventCategories(){return DescribeEventCategories(new DescribeEventCategoriesRequest());}
train
false
7,510
public static File createTempFile(String prefix, String suffix) throws IOException {return createTempFile(prefix, suffix, null);}
[ "public", "static", "File", "createTempFile", "(", "String", "prefix", ",", "String", "suffix", ")", "throws", "IOException", "{", "return", "createTempFile", "(", "prefix", ",", "suffix", ",", "null", ")", ";", "}" ]
public static java.io.File createTempFile(string prefix, string suffix){throw new System.NotImplementedException();}
train
true
7,512
public String getReading(int wordId, char surface[], int off, int len) {return getFeature(wordId, 0);}
[ "public", "String", "getReading", "(", "int", "wordId", ",", "char", "surface", "[", "]", ",", "int", "off", ",", "int", "len", ")", "{", "return", "getFeature", "(", "wordId", ",", "0", ")", ";", "}" ]
public string GetReading(int wordId, char[] surface, int off, int len){return GetFeature(wordId, 0);}
train
false
7,513
public CodepointCountFilter create(TokenStream input) {return new CodepointCountFilter(input, min, max);}
[ "public", "CodepointCountFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "CodepointCountFilter", "(", "input", ",", "min", ",", "max", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new CodepointCountFilter(m_luceneMatchVersion, input, min, max);}
train
false
7,514
public String toString() {StringBuilder res = new StringBuilder(task.getName());res.append(" ");res.append(count);res.append(" ");res.append(elapsed);return res.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "res", "=", "new", "StringBuilder", "(", "task", ".", "getName", "(", ")", ")", ";", "res", ".", "append", "(", "\" \"", ")", ";", "res", ".", "append", "(", "count", ")", ";", "res", ".", "append", "(", "\" \"", ")", ";", "res", ".", "append", "(", "elapsed", ")", ";", "return", "res", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder res = new StringBuilder(task.GetName());res.Append(" ");res.Append(count);res.Append(" ");res.Append(elapsed);return res.ToString();}
train
false
7,515
public void build(InputIterator iterator) throws IOException {if (iterator.hasPayloads()) {throw new IllegalArgumentException("this suggester doesn't support payloads");}if (iterator.hasContexts()) {throw new IllegalArgumentException("this suggester doesn't support contexts");}root = new TernaryTreeNode();iterator = new SortedInputIterator(tempDir, tempFileNamePrefix, iterator, utf8SortedAsUTF16SortOrder);count = 0;ArrayList<String> tokens = new ArrayList<>();ArrayList<Number> vals = new ArrayList<>();BytesRef spare;CharsRefBuilder charsSpare = new CharsRefBuilder();while ((spare = iterator.next()) != null) {charsSpare.copyUTF8Bytes(spare);tokens.add(charsSpare.toString());vals.add(Long.valueOf(iterator.weight()));count++;}autocomplete.balancedTree(tokens.toArray(), vals.toArray(), 0, tokens.size() - 1, root);}
[ "public", "void", "build", "(", "InputIterator", "iterator", ")", "throws", "IOException", "{", "if", "(", "iterator", ".", "hasPayloads", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"this suggester doesn't support payloads\"", ")", ";", "}", "if", "(", "iterator", ".", "hasContexts", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"this suggester doesn't support contexts\"", ")", ";", "}", "root", "=", "new", "TernaryTreeNode", "(", ")", ";", "iterator", "=", "new", "SortedInputIterator", "(", "tempDir", ",", "tempFileNamePrefix", ",", "iterator", ",", "utf8SortedAsUTF16SortOrder", ")", ";", "count", "=", "0", ";", "ArrayList", "<", "String", ">", "tokens", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "ArrayList", "<", "Number", ">", "vals", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "BytesRef", "spare", ";", "CharsRefBuilder", "charsSpare", "=", "new", "CharsRefBuilder", "(", ")", ";", "while", "(", "(", "spare", "=", "iterator", ".", "next", "(", ")", ")", "!=", "null", ")", "{", "charsSpare", ".", "copyUTF8Bytes", "(", "spare", ")", ";", "tokens", ".", "add", "(", "charsSpare", ".", "toString", "(", ")", ")", ";", "vals", ".", "add", "(", "Long", ".", "valueOf", "(", "iterator", ".", "weight", "(", ")", ")", ")", ";", "count", "++", ";", "}", "autocomplete", ".", "balancedTree", "(", "tokens", ".", "toArray", "(", ")", ",", "vals", ".", "toArray", "(", ")", ",", "0", ",", "tokens", ".", "size", "(", ")", "-", "1", ",", "root", ")", ";", "}" ]
public override void Build(IInputIterator tfit){if (tfit.HasPayloads){throw new System.ArgumentException("this suggester doesn't support payloads");}if (tfit.HasContexts){throw new System.ArgumentException("this suggester doesn't support contexts");}root = new TernaryTreeNode();if (tfit.Comparer != BytesRef.UTF8SortedAsUTF16Comparer){tfit = new SortedInputIterator(tfit, BytesRef.UTF8SortedAsUTF16Comparer);}List<string> tokens = new List<string>();List<object> vals = new List<object>();BytesRef spare;CharsRef charsSpare = new CharsRef();while ((spare = tfit.Next()) != null){charsSpare.Grow(spare.Length);UnicodeUtil.UTF8toUTF16(spare.Bytes, spare.Offset, spare.Length, charsSpare);tokens.Add(charsSpare.ToString());vals.Add(tfit.Weight);}autocomplete.BalancedTree(tokens.ToArray(), vals.ToArray(), 0, tokens.Count - 1, root);}
train
false
7,516
public void setAllowThin(boolean allow) {allowThin = allow;}
[ "public", "void", "setAllowThin", "(", "boolean", "allow", ")", "{", "allowThin", "=", "allow", ";", "}" ]
public virtual void SetAllowThin(bool allow){allowThin = allow;}
train
false
7,517
public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength) {this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}
[ "public", "PhRun", "(", "int", "phoneticTextFirstCharacterOffset", ",", "int", "realTextFirstCharacterOffset", ",", "int", "realTextLength", ")", "{", "this", ".", "phoneticTextFirstCharacterOffset", "=", "phoneticTextFirstCharacterOffset", ";", "this", ".", "realTextFirstCharacterOffset", "=", "realTextFirstCharacterOffset", ";", "this", ".", "realTextLength", "=", "realTextLength", ";", "}" ]
public PhRun(int phoneticTextFirstCharacterOffset,int realTextFirstCharacterOffset, int realTextLength){this.phoneticTextFirstCharacterOffset = phoneticTextFirstCharacterOffset;this.realTextFirstCharacterOffset = realTextFirstCharacterOffset;this.realTextLength = realTextLength;}
train
false
7,519
public CreateHostedZoneResult createHostedZone(CreateHostedZoneRequest request) {request = beforeClientExecution(request);return executeCreateHostedZone(request);}
[ "public", "CreateHostedZoneResult", "createHostedZone", "(", "CreateHostedZoneRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateHostedZone", "(", "request", ")", ";", "}" ]
public virtual CreateHostedZoneResponse CreateHostedZone(CreateHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHostedZoneResponseUnmarshaller.Instance;return Invoke<CreateHostedZoneResponse>(request, options);}
train
true
7,520
public ListFacetAttributesResult listFacetAttributes(ListFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListFacetAttributes(request);}
[ "public", "ListFacetAttributesResult", "listFacetAttributes", "(", "ListFacetAttributesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListFacetAttributes", "(", "request", ")", ";", "}" ]
public virtual ListFacetAttributesResponse ListFacetAttributes(ListFacetAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFacetAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFacetAttributesResponseUnmarshaller.Instance;return Invoke<ListFacetAttributesResponse>(request, options);}
train
true
7,521
public GetTrafficPolicyInstanceCountResult getTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicyInstanceCount(request);}
[ "public", "GetTrafficPolicyInstanceCountResult", "getTrafficPolicyInstanceCount", "(", "GetTrafficPolicyInstanceCountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetTrafficPolicyInstanceCount", "(", "request", ")", ";", "}" ]
public virtual GetTrafficPolicyInstanceCountResponse GetTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyInstanceCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyInstanceCountResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyInstanceCountResponse>(request, options);}
train
true
7,522
public ModifyTrafficMirrorSessionResult modifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorSession(request);}
[ "public", "ModifyTrafficMirrorSessionResult", "modifyTrafficMirrorSession", "(", "ModifyTrafficMirrorSessionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyTrafficMirrorSession", "(", "request", ")", ";", "}" ]
public virtual ModifyTrafficMirrorSessionResponse ModifyTrafficMirrorSession(ModifyTrafficMirrorSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorSessionResponseUnmarshaller.Instance;return Invoke<ModifyTrafficMirrorSessionResponse>(request, options);}
train
false
7,523
public DefaultClusterParameters describeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDefaultClusterParameters(request);}
[ "public", "DefaultClusterParameters", "describeDefaultClusterParameters", "(", "DescribeDefaultClusterParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDefaultClusterParameters", "(", "request", ")", ";", "}" ]
public virtual DescribeDefaultClusterParametersResponse DescribeDefaultClusterParameters(DescribeDefaultClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDefaultClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDefaultClusterParametersResponseUnmarshaller.Instance;return Invoke<DescribeDefaultClusterParametersResponse>(request, options);}
train
true
7,524
public ConsoleWriter(OutputStream out) {super(out, true);lock = CONSOLE_LOCK;}
[ "public", "ConsoleWriter", "(", "OutputStream", "out", ")", "{", "super", "(", "out", ",", "true", ")", ";", "lock", "=", "CONSOLE_LOCK", ";", "}" ]
public ConsoleWriter(java.io.OutputStream @out) : base(@out, true){@lock = CONSOLE_LOCK;}
train
false
7,525
public MutableValue duplicate() {MutableValueBool v = new MutableValueBool();v.value = this.value;v.exists = this.exists;return v;}
[ "public", "MutableValue", "duplicate", "(", ")", "{", "MutableValueBool", "v", "=", "new", "MutableValueBool", "(", ")", ";", "v", ".", "value", "=", "this", ".", "value", ";", "v", ".", "exists", "=", "this", ".", "exists", ";", "return", "v", ";", "}" ]
public override MutableValue Duplicate(){MutableValueBool v = new MutableValueBool();v.Value = this.Value;v.Exists = this.Exists;return v;}
train
false
7,526
public PatternTokenizerFactory(Map<String,String> args) {super(args);pattern = getPattern(args, PATTERN);group = getInt(args, GROUP, -1);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "PatternTokenizerFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "pattern", "=", "getPattern", "(", "args", ",", "PATTERN", ")", ";", "group", "=", "getInt", "(", "args", ",", "GROUP", ",", "-", "1", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public PatternTokenizerFactory(IDictionary<string, string> args): base(args){m_pattern = GetPattern(args, PATTERN);m_group = GetInt32(args, GROUP, -1);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
7,527
public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1,ConditionalFormattingRule rule2) {return addConditionalFormatting(regions,(HSSFConditionalFormattingRule)rule1,(HSSFConditionalFormattingRule)rule2);}
[ "public", "int", "addConditionalFormatting", "(", "CellRangeAddress", "[", "]", "regions", ",", "ConditionalFormattingRule", "rule1", ",", "ConditionalFormattingRule", "rule2", ")", "{", "return", "addConditionalFormatting", "(", "regions", ",", "(", "HSSFConditionalFormattingRule", ")", "rule1", ",", "(", "HSSFConditionalFormattingRule", ")", "rule2", ")", ";", "}" ]
public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1,IConditionalFormattingRule rule2){return AddConditionalFormatting(regions,new HSSFConditionalFormattingRule[]{(HSSFConditionalFormattingRule)rule1, (HSSFConditionalFormattingRule)rule2});}
train
false
7,529
public void reset(int point) {this.point = point;ends.next = 0;starts.next = 0;}
[ "public", "void", "reset", "(", "int", "point", ")", "{", "this", ".", "point", "=", "point", ";", "ends", ".", "next", "=", "0", ";", "starts", ".", "next", "=", "0", ";", "}" ]
public void Reset(int point){this.point = point;ends.count = 0;starts.count = 0;}
train
false
7,530
public BottomMarginRecord( RecordInputStream in ) {field_1_margin = in.readDouble();}
[ "public", "BottomMarginRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_margin", "=", "in", ".", "readDouble", "(", ")", ";", "}" ]
public BottomMarginRecord(RecordInputStream in1){field_1_margin = in1.ReadDouble();}
train
false
7,532
public Token LT(int k) {lazyInit();if ( k == 0 ) return null;if ( k < 0 ) return LB(-k);int i = p;int n = 1; while ( n<k ) {if (sync(i + 1)) {i = nextTokenOnChannel(i + 1, channel);}n++;}return tokens.get(i);}
[ "public", "Token", "LT", "(", "int", "k", ")", "{", "lazyInit", "(", ")", ";", "if", "(", "k", "==", "0", ")", "return", "null", ";", "if", "(", "k", "<", "0", ")", "return", "LB", "(", "-", "k", ")", ";", "int", "i", "=", "p", ";", "int", "n", "=", "1", ";", "while", "(", "n", "<", "k", ")", "{", "if", "(", "sync", "(", "i", "+", "1", ")", ")", "{", "i", "=", "nextTokenOnChannel", "(", "i", "+", "1", ",", "channel", ")", ";", "}", "n", "++", ";", "}", "return", "tokens", ".", "get", "(", "i", ")", ";", "}" ]
public override IToken LT(int k){LazyInit();if (k == 0){return null;}if (k < 0){return Lb(-k);}int i = p;int n = 1;while (n < k){if (Sync(i + 1)){i = NextTokenOnChannel(i + 1, channel);}n++;}return tokens[i];}
train
false
7,533
public FloatBuffer put(float c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putFloat(position++ * SizeOf.FLOAT, c);return this;}
[ "public", "FloatBuffer", "put", "(", "float", "c", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "byteBuffer", ".", "putFloat", "(", "position", "++", "*", "SizeOf", ".", "FLOAT", ",", "c", ")", ";", "return", "this", ";", "}" ]
public override java.nio.FloatBuffer put(float c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putFloat(_position++ * libcore.io.SizeOf.FLOAT, c);return this;}
train
false
7,534
public ExternalNameEval(EvaluationName name) {_name = name;}
[ "public", "ExternalNameEval", "(", "EvaluationName", "name", ")", "{", "_name", "=", "name", ";", "}" ]
public ExternalNameEval(IEvaluationName name){_name = name;}
train
false
7,535
public GetLoadBalancerMetricDataResult getLoadBalancerMetricData(GetLoadBalancerMetricDataRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancerMetricData(request);}
[ "public", "GetLoadBalancerMetricDataResult", "getLoadBalancerMetricData", "(", "GetLoadBalancerMetricDataRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetLoadBalancerMetricData", "(", "request", ")", ";", "}" ]
public virtual GetLoadBalancerMetricDataResponse GetLoadBalancerMetricData(GetLoadBalancerMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancerMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancerMetricDataResponseUnmarshaller.Instance;return Invoke<GetLoadBalancerMetricDataResponse>(request, options);}
train
true
7,536
public String getResultPath() {return resultPath.getPath();}
[ "public", "String", "getResultPath", "(", ")", "{", "return", "resultPath", ".", "getPath", "(", ")", ";", "}" ]
public virtual string GetResultPath(){return resultPath.GetPath();}
train
false
7,538
public HSSFWorkbook getStubHSSFWorkbook() {HSSFWorkbook wb = HSSFWorkbook.create(getStubWorkbook());for (BoundSheetRecord bsr : boundSheetRecords) {wb.createSheet(bsr.getSheetname());}return wb;}
[ "public", "HSSFWorkbook", "getStubHSSFWorkbook", "(", ")", "{", "HSSFWorkbook", "wb", "=", "HSSFWorkbook", ".", "create", "(", "getStubWorkbook", "(", ")", ")", ";", "for", "(", "BoundSheetRecord", "bsr", ":", "boundSheetRecords", ")", "{", "wb", ".", "createSheet", "(", "bsr", ".", "getSheetname", "(", ")", ")", ";", "}", "return", "wb", ";", "}" ]
public HSSFWorkbook GetStubHSSFWorkbook(){HSSFWorkbook wb = HSSFWorkbook.Create(GetStubWorkbook());foreach (BoundSheetRecord bsr in boundSheetRecords) {wb.CreateSheet(bsr.Sheetname);}return wb;}
train
false
7,539
public static SupBookRecord createExternalReferences(String url, String[] sheetNames) {return new SupBookRecord(url, sheetNames);}
[ "public", "static", "SupBookRecord", "createExternalReferences", "(", "String", "url", ",", "String", "[", "]", "sheetNames", ")", "{", "return", "new", "SupBookRecord", "(", "url", ",", "sheetNames", ")", ";", "}" ]
public static SupBookRecord CreateExternalReferences(String url, String[] sheetNames){return new SupBookRecord(url, sheetNames);}
train
false