id_within_dataset
int64
0
10.3k
snippet
stringlengths
29
1.4k
tokens
listlengths
10
314
cs
stringlengths
28
1.38k
split_within_dataset
stringclasses
1 value
is_duplicated
bool
2 classes
5,416
public UpdateGroupRequest(String groupName) {setGroupName(groupName);}
[ "public", "UpdateGroupRequest", "(", "String", "groupName", ")", "{", "setGroupName", "(", "groupName", ")", ";", "}" ]
public UpdateGroupRequest(string groupName){_groupName = groupName;}
train
false
5,417
public ListBrokersResult listBrokers(ListBrokersRequest request) {request = beforeClientExecution(request);return executeListBrokers(request);}
[ "public", "ListBrokersResult", "listBrokers", "(", "ListBrokersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListBrokers", "(", "request", ")", ";", "}" ]
public virtual ListBrokersResponse ListBrokers(ListBrokersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListBrokersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListBrokersResponseUnmarshaller.Instance;return Invoke<ListBrokersResponse>(request, options);}
train
true
5,418
public final FormulaCellCacheEntry[] getConsumingCells() {return _consumingCells.toArray();}
[ "public", "final", "FormulaCellCacheEntry", "[", "]", "getConsumingCells", "(", ")", "{", "return", "_consumingCells", ".", "toArray", "(", ")", ";", "}" ]
public FormulaCellCacheEntry[] GetConsumingCells(){return _consumingCells.ToArray();}
train
false
5,419
public int cardinality() {return cardinality;}
[ "public", "int", "cardinality", "(", ")", "{", "return", "cardinality", ";", "}" ]
public int Cardinality(){return cardinality;}
train
false
5,420
public static final WeightedTerm[] getTerms(Query query, boolean prohibited){return getTerms(query,prohibited,null);}
[ "public", "static", "final", "WeightedTerm", "[", "]", "getTerms", "(", "Query", "query", ",", "boolean", "prohibited", ")", "{", "return", "getTerms", "(", "query", ",", "prohibited", ",", "null", ")", ";", "}" ]
public static WeightedTerm[] GetTerms(Query query, bool prohibited){return GetTerms(query, prohibited, null);}
train
false
5,421
public void serialize(LittleEndianOutput out) {out.writeShort(getColWidth());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getColWidth", "(", ")", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ColWidth);}
train
false
5,422
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException {PostingsWriterBase postingsWriter = new Lucene84PostingsWriter(state);boolean success = false;try {FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsWriter);}}}
[ "public", "FieldsConsumer", "fieldsConsumer", "(", "SegmentWriteState", "state", ")", "throws", "IOException", "{", "PostingsWriterBase", "postingsWriter", "=", "new", "Lucene84PostingsWriter", "(", "state", ")", ";", "boolean", "success", "=", "false", ";", "try", "{", "FieldsConsumer", "ret", "=", "new", "FSTTermsWriter", "(", "state", ",", "postingsWriter", ")", ";", "success", "=", "true", ";", "return", "ret", ";", "}", "finally", "{", "if", "(", "!", "success", ")", "{", "IOUtils", ".", "closeWhileHandlingException", "(", "postingsWriter", ")", ";", "}", "}", "}" ]
public override FieldsConsumer FieldsConsumer(SegmentWriteState state){PostingsWriterBase postingsWriter = new Lucene41PostingsWriter(state);bool success = false;try{FieldsConsumer ret = new FSTTermsWriter(state, postingsWriter);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsWriter);}}}
train
false
5,423
public int getThumbOffset() {return mThumbOffset;}
[ "public", "int", "getThumbOffset", "(", ")", "{", "return", "mThumbOffset", ";", "}" ]
public virtual int getThumbOffset(){return mThumbOffset;}
train
false
5,424
public GetApnsChannelResult getApnsChannel(GetApnsChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsChannel(request);}
[ "public", "GetApnsChannelResult", "getApnsChannel", "(", "GetApnsChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetApnsChannel", "(", "request", ")", ";", "}" ]
public virtual GetApnsChannelResponse GetApnsChannel(GetApnsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsChannelResponseUnmarshaller.Instance;return Invoke<GetApnsChannelResponse>(request, options);}
train
true
5,425
public boolean equals(Object obj) {if (this == obj) return true;if (null == obj || getClass() != obj.getClass()) return false;NGramDistance o = (NGramDistance)obj;return o.n == this.n;}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "null", "==", "obj", "||", "getClass", "(", ")", "!=", "obj", ".", "getClass", "(", ")", ")", "return", "false", ";", "NGramDistance", "o", "=", "(", "NGramDistance", ")", "obj", ";", "return", "o", ".", "n", "==", "this", ".", "n", ";", "}" ]
public override bool Equals(object obj){if (this == obj){return true;}if (null == obj || this.GetType() != obj.GetType()){return false;}var o = (NGramDistance)obj;return o.n == this.n;}
train
false
5,426
public GetDomainDetailResult getDomainDetail(GetDomainDetailRequest request) {request = beforeClientExecution(request);return executeGetDomainDetail(request);}
[ "public", "GetDomainDetailResult", "getDomainDetail", "(", "GetDomainDetailRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetDomainDetail", "(", "request", ")", ";", "}" ]
public virtual GetDomainDetailResponse GetDomainDetail(GetDomainDetailRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainDetailRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainDetailResponseUnmarshaller.Instance;return Invoke<GetDomainDetailResponse>(request, options);}
train
true
5,427
public UpdateConfigurationSetReputationMetricsEnabledResult updateConfigurationSetReputationMetricsEnabled(UpdateConfigurationSetReputationMetricsEnabledRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetReputationMetricsEnabled(request);}
[ "public", "UpdateConfigurationSetReputationMetricsEnabledResult", "updateConfigurationSetReputationMetricsEnabled", "(", "UpdateConfigurationSetReputationMetricsEnabledRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateConfigurationSetReputationMetricsEnabled", "(", "request", ")", ";", "}" ]
public virtual UpdateConfigurationSetReputationMetricsEnabledResponse UpdateConfigurationSetReputationMetricsEnabled(UpdateConfigurationSetReputationMetricsEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetReputationMetricsEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetReputationMetricsEnabledResponseUnmarshaller.Instance;return Invoke<UpdateConfigurationSetReputationMetricsEnabledResponse>(request, options);}
train
true
5,428
public PackedDataInput(DataInput in) {this.in = in;skipToNextByte();}
[ "public", "PackedDataInput", "(", "DataInput", "in", ")", "{", "this", ".", "in", "=", "in", ";", "skipToNextByte", "(", ")", ";", "}" ]
public PackedDataInput(DataInput @in){this.@in = @in;SkipToNextByte();}
train
false
5,429
public AssociateQualificationWithWorkerResult associateQualificationWithWorker(AssociateQualificationWithWorkerRequest request) {request = beforeClientExecution(request);return executeAssociateQualificationWithWorker(request);}
[ "public", "AssociateQualificationWithWorkerResult", "associateQualificationWithWorker", "(", "AssociateQualificationWithWorkerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssociateQualificationWithWorker", "(", "request", ")", ";", "}" ]
public virtual AssociateQualificationWithWorkerResponse AssociateQualificationWithWorker(AssociateQualificationWithWorkerRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateQualificationWithWorkerRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateQualificationWithWorkerResponseUnmarshaller.Instance;return Invoke<AssociateQualificationWithWorkerResponse>(request, options);}
train
true
5,430
public String toString() {return "arc=" + fstArc + " state=" + fsaState;}
[ "public", "String", "toString", "(", ")", "{", "return", "\"arc=\"", "+", "fstArc", "+", "\" state=\"", "+", "fsaState", ";", "}" ]
public override string ToString(){return "arc=" + fstArc + " state=" + fsaState;}
train
false
5,431
public void signalWorkflowExecution(SignalWorkflowExecutionRequest request) {request = beforeClientExecution(request);executeSignalWorkflowExecution(request);}
[ "public", "void", "signalWorkflowExecution", "(", "SignalWorkflowExecutionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "executeSignalWorkflowExecution", "(", "request", ")", ";", "}" ]
public virtual SignalWorkflowExecutionResponse SignalWorkflowExecution(SignalWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignalWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = SignalWorkflowExecutionResponseUnmarshaller.Instance;return Invoke<SignalWorkflowExecutionResponse>(request, options);}
train
false
5,432
public String getTokenName(int t) {if (t == Token.EOF) {return "EOF";}Vocabulary vocabulary = parser != null ? parser.getVocabulary() : VocabularyImpl.EMPTY_VOCABULARY;String displayName = vocabulary.getDisplayName(t);if (displayName.equals(Integer.toString(t))) {return displayName;}return displayName + "<" + t + ">";}
[ "public", "String", "getTokenName", "(", "int", "t", ")", "{", "if", "(", "t", "==", "Token", ".", "EOF", ")", "{", "return", "\"EOF\"", ";", "}", "Vocabulary", "vocabulary", "=", "parser", "!=", "null", "?", "parser", ".", "getVocabulary", "(", ")", ":", "VocabularyImpl", ".", "EMPTY_VOCABULARY", ";", "String", "displayName", "=", "vocabulary", ".", "getDisplayName", "(", "t", ")", ";", "if", "(", "displayName", ".", "equals", "(", "Integer", ".", "toString", "(", "t", ")", ")", ")", "{", "return", "displayName", ";", "}", "return", "displayName", "+", "\"<\"", "+", "t", "+", "\">\"", ";", "}" ]
public string GetTokenName(int t){if (t == TokenConstants.EOF){return "EOF";}IVocabulary vocabulary = parser != null ? parser.Vocabulary : Vocabulary.EmptyVocabulary;String displayName = vocabulary.GetDisplayName(t);if (displayName.Equals(t.ToString())){return displayName;}return displayName + "<" + t + ">";}
train
false
5,433
public CJKWidthFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "CJKWidthFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public CJKWidthFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
5,434
public GetHLSStreamingSessionURLResult getHLSStreamingSessionURL(GetHLSStreamingSessionURLRequest request) {request = beforeClientExecution(request);return executeGetHLSStreamingSessionURL(request);}
[ "public", "GetHLSStreamingSessionURLResult", "getHLSStreamingSessionURL", "(", "GetHLSStreamingSessionURLRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetHLSStreamingSessionURL", "(", "request", ")", ";", "}" ]
public virtual GetHLSStreamingSessionURLResponse GetHLSStreamingSessionURL(GetHLSStreamingSessionURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHLSStreamingSessionURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHLSStreamingSessionURLResponseUnmarshaller.Instance;return Invoke<GetHLSStreamingSessionURLResponse>(request, options);}
train
true
5,435
public boolean updateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx) {CellRangeAddress[] cellRanges = header.getCellRanges();boolean changed = false;List<CellRangeAddress> temp = new ArrayList<>();for (CellRangeAddress craOld : cellRanges) {CellRangeAddress craNew = BaseRowColShifter.shiftRange(shifter, craOld, currentExternSheetIx);if (craNew == null) {changed = true;continue;}temp.add(craNew);if (craNew != craOld) {changed = true;}}if (changed) {int nRanges = temp.size();if (nRanges == 0) {return false;}CellRangeAddress[] newRanges = new CellRangeAddress[nRanges];temp.toArray(newRanges);header.setCellRanges(newRanges);}for (CFRuleBase rule : rules) {Ptg[] ptgs;ptgs = rule.getParsedExpression1();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule.setParsedExpression1(ptgs);}ptgs = rule.getParsedExpression2();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule.setParsedExpression2(ptgs);}if (rule instanceof CFRule12Record) {CFRule12Record rule12 = (CFRule12Record)rule;ptgs = rule12.getParsedExpressionScale();if (ptgs != null && shifter.adjustFormula(ptgs, currentExternSheetIx)) {rule12.setParsedExpressionScale(ptgs);}}}return true;}
[ "public", "boolean", "updateFormulasAfterCellShift", "(", "FormulaShifter", "shifter", ",", "int", "currentExternSheetIx", ")", "{", "CellRangeAddress", "[", "]", "cellRanges", "=", "header", ".", "getCellRanges", "(", ")", ";", "boolean", "changed", "=", "false", ";", "List", "<", "CellRangeAddress", ">", "temp", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "for", "(", "CellRangeAddress", "craOld", ":", "cellRanges", ")", "{", "CellRangeAddress", "craNew", "=", "BaseRowColShifter", ".", "shiftRange", "(", "shifter", ",", "craOld", ",", "currentExternSheetIx", ")", ";", "if", "(", "craNew", "==", "null", ")", "{", "changed", "=", "true", ";", "continue", ";", "}", "temp", ".", "add", "(", "craNew", ")", ";", "if", "(", "craNew", "!=", "craOld", ")", "{", "changed", "=", "true", ";", "}", "}", "if", "(", "changed", ")", "{", "int", "nRanges", "=", "temp", ".", "size", "(", ")", ";", "if", "(", "nRanges", "==", "0", ")", "{", "return", "false", ";", "}", "CellRangeAddress", "[", "]", "newRanges", "=", "new", "CellRangeAddress", "[", "nRanges", "]", ";", "temp", ".", "toArray", "(", "newRanges", ")", ";", "header", ".", "setCellRanges", "(", "newRanges", ")", ";", "}", "for", "(", "CFRuleBase", "rule", ":", "rules", ")", "{", "Ptg", "[", "]", "ptgs", ";", "ptgs", "=", "rule", ".", "getParsedExpression1", "(", ")", ";", "if", "(", "ptgs", "!=", "null", "&&", "shifter", ".", "adjustFormula", "(", "ptgs", ",", "currentExternSheetIx", ")", ")", "{", "rule", ".", "setParsedExpression1", "(", "ptgs", ")", ";", "}", "ptgs", "=", "rule", ".", "getParsedExpression2", "(", ")", ";", "if", "(", "ptgs", "!=", "null", "&&", "shifter", ".", "adjustFormula", "(", "ptgs", ",", "currentExternSheetIx", ")", ")", "{", "rule", ".", "setParsedExpression2", "(", "ptgs", ")", ";", "}", "if", "(", "rule", "instanceof", "CFRule12Record", ")", "{", "CFRule12Record", "rule12", "=", "(", "CFRule12Record", ")", "rule", ";", "ptgs", "=", "rule12", ".", "getParsedExpressionScale", "(", ")", ";", "if", "(", "ptgs", "!=", "null", "&&", "shifter", ".", "adjustFormula", "(", "ptgs", ",", "currentExternSheetIx", ")", ")", "{", "rule12", ".", "setParsedExpressionScale", "(", "ptgs", ")", ";", "}", "}", "}", "return", "true", ";", "}" ]
public bool UpdateFormulasAfterCellShift(FormulaShifter shifter, int currentExternSheetIx){CellRangeAddress[] cellRanges = header.CellRanges;bool changed = false;List<CellRangeAddress> temp = new List<CellRangeAddress>();for (int i = 0; i < cellRanges.Length; i++){CellRangeAddress craOld = cellRanges[i];CellRangeAddress craNew = ShiftRange(shifter, craOld, currentExternSheetIx);if (craNew == null){changed = true;continue;}temp.Add(craNew);if (craNew != craOld){changed = true;}}if (changed){int nRanges = temp.Count;if (nRanges == 0){return false;}CellRangeAddress[] newRanges = new CellRangeAddress[nRanges];newRanges = temp.ToArray();header.CellRanges = (newRanges);}for (int i = 0; i < rules.Count; i++){CFRuleRecord rule = rules[i];Ptg[] ptgs;ptgs = rule.ParsedExpression1;if (ptgs != null && shifter.AdjustFormula(ptgs, currentExternSheetIx)){rule.ParsedExpression1 = (ptgs);}ptgs = rule.ParsedExpression2;if (ptgs != null && shifter.AdjustFormula(ptgs, currentExternSheetIx)){rule.ParsedExpression2 = (ptgs);}}return true;}
train
false
5,436
public int keyAt(int index) {if (mGarbage) {gc();}return mKeys[index];}
[ "public", "int", "keyAt", "(", "int", "index", ")", "{", "if", "(", "mGarbage", ")", "{", "gc", "(", ")", ";", "}", "return", "mKeys", "[", "index", "]", ";", "}" ]
public virtual int keyAt(int index){if (mGarbage){gc();}return mKeys[index];}
train
false
5,437
public JapaneseKatakanaStemFilterFactory(Map<String,String> args) {super(args);minimumLength = getInt(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);if (minimumLength < 2) {throw new IllegalArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "JapaneseKatakanaStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "minimumLength", "=", "getInt", "(", "args", ",", "MINIMUM_LENGTH_PARAM", ",", "JapaneseKatakanaStemFilter", ".", "DEFAULT_MINIMUM_LENGTH", ")", ";", "if", "(", "minimumLength", "<", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Illegal \"", "+", "MINIMUM_LENGTH_PARAM", "+", "\" \"", "+", "minimumLength", "+", "\" (must be 2 or greater)\"", ")", ";", "}", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public JapaneseKatakanaStemFilterFactory(IDictionary<string, string> args): base(args){minimumLength = GetInt32(args, MINIMUM_LENGTH_PARAM, JapaneseKatakanaStemFilter.DEFAULT_MINIMUM_LENGTH);if (minimumLength < 2){throw new ArgumentException("Illegal " + MINIMUM_LENGTH_PARAM + " " + minimumLength + " (must be 2 or greater)");}if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
5,438
public static void byteArray(StringBuilder buffer, byte[] bytes) {for (int i = 0; i < bytes.length; i++) {buffer.append("b[").append(i).append("]=").append(bytes[i]);if (i < bytes.length - 1) {buffer.append(',');}}}
[ "public", "static", "void", "byteArray", "(", "StringBuilder", "buffer", ",", "byte", "[", "]", "bytes", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "bytes", ".", "length", ";", "i", "++", ")", "{", "buffer", ".", "append", "(", "\"b[\"", ")", ".", "append", "(", "i", ")", ".", "append", "(", "\"]=\"", ")", ".", "append", "(", "bytes", "[", "i", "]", ")", ";", "if", "(", "i", "<", "bytes", ".", "length", "-", "1", ")", "{", "buffer", ".", "append", "(", "','", ")", ";", "}", "}", "}" ]
public static void ByteArray(StringBuilder buffer, byte[] bytes){for (int i = 0; i < bytes.Length; i++){buffer.Append("b[").Append(i).Append("]=").Append(bytes[i]);if (i < bytes.Length - 1){buffer.Append(',');}}}
train
false
5,439
public int available(){return _in.available();}
[ "public", "int", "available", "(", ")", "{", "return", "_in", ".", "available", "(", ")", ";", "}" ]
public int Available(){return _in.Available();}
train
false
5,440
public DeleteDatasetGroupResult deleteDatasetGroup(DeleteDatasetGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDatasetGroup(request);}
[ "public", "DeleteDatasetGroupResult", "deleteDatasetGroup", "(", "DeleteDatasetGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDatasetGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteDatasetGroupResponse DeleteDatasetGroup(DeleteDatasetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDatasetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDatasetGroupResponseUnmarshaller.Instance;return Invoke<DeleteDatasetGroupResponse>(request, options);}
train
false
5,441
public DescribeBuildResult describeBuild(DescribeBuildRequest request) {request = beforeClientExecution(request);return executeDescribeBuild(request);}
[ "public", "DescribeBuildResult", "describeBuild", "(", "DescribeBuildRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeBuild", "(", "request", ")", ";", "}" ]
public virtual DescribeBuildResponse DescribeBuild(DescribeBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBuildResponseUnmarshaller.Instance;return Invoke<DescribeBuildResponse>(request, options);}
train
true
5,442
public E peekLast() {Link<E> last = voidLink.previous;return (last == voidLink) ? null : last.data;}
[ "public", "E", "peekLast", "(", ")", "{", "Link", "<", "E", ">", "last", "=", "voidLink", ".", "previous", ";", "return", "(", "last", "==", "voidLink", ")", "?", "null", ":", "last", ".", "data", ";", "}" ]
public virtual E peekLast(){java.util.LinkedList.Link<E> last = voidLink.previous;return (last == voidLink) ? default(E) : last.data;}
train
false
5,443
public long get(long index) {assert index >= 0 && index < valueCount;final int block = (int) (index >>> blockShift);final int idx = (int) (index & blockMask);return expected(minValues[block], averages[block], idx) + subReaders[block].get(idx);}
[ "public", "long", "get", "(", "long", "index", ")", "{", "assert", "index", ">=", "0", "&&", "index", "<", "valueCount", ";", "final", "int", "block", "=", "(", "int", ")", "(", "index", ">", ">", ">", "blockShift", ")", ";", "final", "int", "idx", "=", "(", "int", ")", "(", "index", "&", "blockMask", ")", ";", "return", "expected", "(", "minValues", "[", "block", "]", ",", "averages", "[", "block", "]", ",", "idx", ")", "+", "subReaders", "[", "block", "]", ".", "get", "(", "idx", ")", ";", "}" ]
public override long Get(long index){Debug.Assert(index >= 0 && index < valueCount);int block = (int)((long)((ulong)index >> blockShift));int idx = (int)(index & blockMask);return minValues[block] + (long)(float)(idx * averages[block]) + BlockPackedReaderIterator.ZigZagDecode(subReaders[block].Get(idx));}
train
false
5,444
public DescribeVpnGatewaysResult describeVpnGateways() {return describeVpnGateways(new DescribeVpnGatewaysRequest());}
[ "public", "DescribeVpnGatewaysResult", "describeVpnGateways", "(", ")", "{", "return", "describeVpnGateways", "(", "new", "DescribeVpnGatewaysRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeVpnGatewaysResponse DescribeVpnGateways(){return DescribeVpnGateways(new DescribeVpnGatewaysRequest());}
train
false
5,445
public Iterator<E> iterator() {return backingMap.keySet().iterator();}
[ "public", "Iterator", "<", "E", ">", "iterator", "(", ")", "{", "return", "backingMap", ".", "keySet", "(", ")", ".", "iterator", "(", ")", ";", "}" ]
public override java.util.Iterator<E> iterator(){return backingMap.keySet().iterator();}
train
false
5,446
public void parseLine(DocData docData, String line) {int n = 0;int k1 = 0;int k2;while ((k2 = line.indexOf(WriteLineDocTask.SEP, k1)) >= 0) {if (n>=header.length) {throw new RuntimeException("input line has invalid format: "+(n+1)+" fields instead of "+header.length+" :: [" + line + "]");}setDocDataField(docData, n, line.substring(k1,k2));++n;k1 = k2 + 1;}if (n!=header.length-1) {throw new RuntimeException("input line has invalid format: "+(n+1)+" fields instead of "+header.length+" :: [" + line + "]");}setDocDataField(docData, n, line.substring(k1));}
[ "public", "void", "parseLine", "(", "DocData", "docData", ",", "String", "line", ")", "{", "int", "n", "=", "0", ";", "int", "k1", "=", "0", ";", "int", "k2", ";", "while", "(", "(", "k2", "=", "line", ".", "indexOf", "(", "WriteLineDocTask", ".", "SEP", ",", "k1", ")", ")", ">=", "0", ")", "{", "if", "(", "n", ">=", "header", ".", "length", ")", "{", "throw", "new", "RuntimeException", "(", "\"input line has invalid format: \"", "+", "(", "n", "+", "1", ")", "+", "\" fields instead of \"", "+", "header", ".", "length", "+", "\" :: [\"", "+", "line", "+", "\"]\"", ")", ";", "}", "setDocDataField", "(", "docData", ",", "n", ",", "line", ".", "substring", "(", "k1", ",", "k2", ")", ")", ";", "++", "n", ";", "k1", "=", "k2", "+", "1", ";", "}", "if", "(", "n", "!=", "header", ".", "length", "-", "1", ")", "{", "throw", "new", "RuntimeException", "(", "\"input line has invalid format: \"", "+", "(", "n", "+", "1", ")", "+", "\" fields instead of \"", "+", "header", ".", "length", "+", "\" :: [\"", "+", "line", "+", "\"]\"", ")", ";", "}", "setDocDataField", "(", "docData", ",", "n", ",", "line", ".", "substring", "(", "k1", ")", ")", ";", "}" ]
public override void ParseLine(DocData docData, string line){int n = 0;int k1 = 0;int k2;while ((k2 = line.IndexOf(WriteLineDocTask.SEP, k1)) >= 0){if (n >= m_header.Length){throw new Exception("input line has invalid format: " + (n + 1) + " fields instead of " + m_header.Length + " :: [" + line + "]");}SetDocDataField(docData, n, line.Substring(k1, k2 - k1));++n;k1 = k2 + 1;}if (n != m_header.Length - 1){throw new Exception("input line has invalid format: " + (n + 1) + " fields instead of " + m_header.Length + " :: [" + line + "]");}SetDocDataField(docData, n, line.Substring(k1));}
train
false
5,447
public long getTotalLLLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].LL_TotalLook;}return k;}
[ "public", "long", "getTotalLLLookaheadOps", "(", ")", "{", "DecisionInfo", "[", "]", "decisions", "=", "atnSimulator", ".", "getDecisionInfo", "(", ")", ";", "long", "k", "=", "0", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "decisions", ".", "length", ";", "i", "++", ")", "{", "k", "+=", "decisions", "[", "i", "]", ".", "LL_TotalLook", ";", "}", "return", "k", ";", "}" ]
public long getTotalLLLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].LL_TotalLook;}return k;}
train
false
5,448
public static boolean matches(String regularExpression, CharSequence input) {return new Matcher(new Pattern(regularExpression, 0), input).matches();}
[ "public", "static", "boolean", "matches", "(", "String", "regularExpression", ",", "CharSequence", "input", ")", "{", "return", "new", "Matcher", "(", "new", "Pattern", "(", "regularExpression", ",", "0", ")", ",", "input", ")", ".", "matches", "(", ")", ";", "}" ]
public static bool matches(string regularExpression, java.lang.CharSequence input){return new java.util.regex.Matcher(new java.util.regex.Pattern(regularExpression,0), input).matches();}
train
false
5,449
public HSSFChildAnchor(int dx1, int dy1, int dx2, int dy2) {super(Math.min(dx1, dx2), Math.min(dy1, dy2), Math.max(dx1, dx2), Math.max(dy1, dy2));if (dx1 > dx2){_isHorizontallyFlipped = true;}if (dy1 > dy2){_isVerticallyFlipped = true;}}
[ "public", "HSSFChildAnchor", "(", "int", "dx1", ",", "int", "dy1", ",", "int", "dx2", ",", "int", "dy2", ")", "{", "super", "(", "Math", ".", "min", "(", "dx1", ",", "dx2", ")", ",", "Math", ".", "min", "(", "dy1", ",", "dy2", ")", ",", "Math", ".", "max", "(", "dx1", ",", "dx2", ")", ",", "Math", ".", "max", "(", "dy1", ",", "dy2", ")", ")", ";", "if", "(", "dx1", ">", "dx2", ")", "{", "_isHorizontallyFlipped", "=", "true", ";", "}", "if", "(", "dy1", ">", "dy2", ")", "{", "_isVerticallyFlipped", "=", "true", ";", "}", "}" ]
public HSSFChildAnchor(int dx1, int dy1, int dx2, int dy2): base(Math.Min(dx1, dx2), Math.Min(dy1, dy2), Math.Max(dx1, dx2), Math.Max(dy1, dy2)){if (dx1 > dx2){_isHorizontallyFlipped = true;}if (dy1 > dy2){_isVerticallyFlipped = true;}}
train
false
5,450
public final CharBuffer put(String str) {return put(str, 0, str.length());}
[ "public", "final", "CharBuffer", "put", "(", "String", "str", ")", "{", "return", "put", "(", "str", ",", "0", ",", "str", ".", "length", "(", ")", ")", ";", "}" ]
public java.nio.CharBuffer put(string str){return put(str, 0, str.Length);}
train
false
5,451
public StartExportTaskResult startExportTask(StartExportTaskRequest request) {request = beforeClientExecution(request);return executeStartExportTask(request);}
[ "public", "StartExportTaskResult", "startExportTask", "(", "StartExportTaskRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartExportTask", "(", "request", ")", ";", "}" ]
public virtual StartExportTaskResponse StartExportTask(StartExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = StartExportTaskResponseUnmarshaller.Instance;return Invoke<StartExportTaskResponse>(request, options);}
train
true
5,452
public UpdateUserHierarchyResult updateUserHierarchy(UpdateUserHierarchyRequest request) {request = beforeClientExecution(request);return executeUpdateUserHierarchy(request);}
[ "public", "UpdateUserHierarchyResult", "updateUserHierarchy", "(", "UpdateUserHierarchyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateUserHierarchy", "(", "request", ")", ";", "}" ]
public virtual UpdateUserHierarchyResponse UpdateUserHierarchy(UpdateUserHierarchyRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserHierarchyRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserHierarchyResponseUnmarshaller.Instance;return Invoke<UpdateUserHierarchyResponse>(request, options);}
train
true
5,453
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[SERIESTEXT]\n");sb.append(" .id =").append(HexDump.shortToHex(getId())).append('\n');sb.append(" .textLen=").append(field_4_text.length()).append('\n');sb.append(" .is16bit=").append(is16bit).append('\n');sb.append(" .text =").append(" (").append(getText()).append(" )").append('\n');sb.append("[/SERIESTEXT]\n");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"[SERIESTEXT]\\n\"", ")", ";", "sb", ".", "append", "(", "\" .id =\"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "getId", "(", ")", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "sb", ".", "append", "(", "\" .textLen=\"", ")", ".", "append", "(", "field_4_text", ".", "length", "(", ")", ")", ".", "append", "(", "'\\n'", ")", ";", "sb", ".", "append", "(", "\" .is16bit=\"", ")", ".", "append", "(", "is16bit", ")", ".", "append", "(", "'\\n'", ")", ";", "sb", ".", "append", "(", "\" .text =\"", ")", ".", "append", "(", "\" (\"", ")", ".", "append", "(", "getText", "(", ")", ")", ".", "append", "(", "\" )\"", ")", ".", "append", "(", "'\\n'", ")", ";", "sb", ".", "append", "(", "\"[/SERIESTEXT]\\n\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SERIESTEXT]\n");buffer.Append(" .id = ").Append("0x").Append(HexDump.ToHex(Id)).Append(" (").Append(Id).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .textLength = ").Append(field_4_text.Length);buffer.Append(Environment.NewLine);buffer.Append(" .is16bit = ").Append(is16bit);buffer.Append(Environment.NewLine);buffer.Append(" .text = ").Append(" (").Append(Text).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/SERIESTEXT]\n");return buffer.ToString();}
train
false
5,454
public int put(Object key, int value) {Object _key = key;int _value = value;int index = findIndex(_key, keys);if (keys[index] != _key) {if (++size > threshold) {rehash();index = findIndex(_key, keys);}keys[index] = _key;values[index] = -1;}int result = values[index];values[index] = _value;return result;}
[ "public", "int", "put", "(", "Object", "key", ",", "int", "value", ")", "{", "Object", "_key", "=", "key", ";", "int", "_value", "=", "value", ";", "int", "index", "=", "findIndex", "(", "_key", ",", "keys", ")", ";", "if", "(", "keys", "[", "index", "]", "!=", "_key", ")", "{", "if", "(", "++", "size", ">", "threshold", ")", "{", "rehash", "(", ")", ";", "index", "=", "findIndex", "(", "_key", ",", "keys", ")", ";", "}", "keys", "[", "index", "]", "=", "_key", ";", "values", "[", "index", "]", "=", "-", "1", ";", "}", "int", "result", "=", "values", "[", "index", "]", ";", "values", "[", "index", "]", "=", "_value", ";", "return", "result", ";", "}" ]
public int put(object key, int value){object _key = key;int _value = value;int index = findIndex(_key, keys);if (keys[index] != _key){if (++size > threshold){rehash();index = findIndex(_key, keys);}keys[index] = _key;values[index] = -1;}int result = values[index];values[index] = _value;return result;}
train
true
5,455
public TagCommand setMessage(String message) {checkCallable();this.message = message;return this;}
[ "public", "TagCommand", "setMessage", "(", "String", "message", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "message", "=", "message", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.TagCommand SetMessage(string message){CheckCallable();this.message = message;return this;}
train
false
5,456
public DeleteIndexFieldResult deleteIndexField(DeleteIndexFieldRequest request) {request = beforeClientExecution(request);return executeDeleteIndexField(request);}
[ "public", "DeleteIndexFieldResult", "deleteIndexField", "(", "DeleteIndexFieldRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteIndexField", "(", "request", ")", ";", "}" ]
public virtual DeleteIndexFieldResponse DeleteIndexField(DeleteIndexFieldRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIndexFieldRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIndexFieldResponseUnmarshaller.Instance;return Invoke<DeleteIndexFieldResponse>(request, options);}
train
true
5,457
public AbbreviatedObjectId getAbbreviatedObjectId() {return missing;}
[ "public", "AbbreviatedObjectId", "getAbbreviatedObjectId", "(", ")", "{", "return", "missing", ";", "}" ]
public virtual AbbreviatedObjectId GetAbbreviatedObjectId(){return missing;}
train
false
5,458
public ParserRuleContext getInvokingContext(int ruleIndex) {ParserRuleContext p = _ctx;while ( p!=null ) {if ( p.getRuleIndex() == ruleIndex ) return p;p = (ParserRuleContext)p.parent;}return null;}
[ "public", "ParserRuleContext", "getInvokingContext", "(", "int", "ruleIndex", ")", "{", "ParserRuleContext", "p", "=", "_ctx", ";", "while", "(", "p", "!=", "null", ")", "{", "if", "(", "p", ".", "getRuleIndex", "(", ")", "==", "ruleIndex", ")", "return", "p", ";", "p", "=", "(", "ParserRuleContext", ")", "p", ".", "parent", ";", "}", "return", "null", ";", "}" ]
public virtual ParserRuleContext GetInvokingContext(int ruleIndex){ParserRuleContext p = _ctx;while (p != null){if (p.RuleIndex == ruleIndex){return p;}p = (ParserRuleContext)p.Parent;}return null;}
train
false
5,459
public boolean containsCell(int rowIndex, int columnIndex) {if (rowIndex > _lastDefinedRow) return true;for (int i=_rectangleGroups.size()-1; i>=0; i--) {BlankCellRectangleGroup bcrg = _rectangleGroups.get(i);if (bcrg.containsCell(rowIndex, columnIndex)) {return true;}}if(_currentRectangleGroup != null && _currentRectangleGroup.containsCell(rowIndex, columnIndex)) {return true;}if (_currentRowIndex != -1 && _currentRowIndex == rowIndex) {if (_firstColumnIndex <= columnIndex && columnIndex <= _lastColumnIndex) {return true;}}return false;}
[ "public", "boolean", "containsCell", "(", "int", "rowIndex", ",", "int", "columnIndex", ")", "{", "if", "(", "rowIndex", ">", "_lastDefinedRow", ")", "return", "true", ";", "for", "(", "int", "i", "=", "_rectangleGroups", ".", "size", "(", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "BlankCellRectangleGroup", "bcrg", "=", "_rectangleGroups", ".", "get", "(", "i", ")", ";", "if", "(", "bcrg", ".", "containsCell", "(", "rowIndex", ",", "columnIndex", ")", ")", "{", "return", "true", ";", "}", "}", "if", "(", "_currentRectangleGroup", "!=", "null", "&&", "_currentRectangleGroup", ".", "containsCell", "(", "rowIndex", ",", "columnIndex", ")", ")", "{", "return", "true", ";", "}", "if", "(", "_currentRowIndex", "!=", "-", "1", "&&", "_currentRowIndex", "==", "rowIndex", ")", "{", "if", "(", "_firstColumnIndex", "<=", "columnIndex", "&&", "columnIndex", "<=", "_lastColumnIndex", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public bool ContainsCell(int rowIndex, int columnIndex){for (int i = _rectangleGroups.Count - 1; i >= 0; i--){BlankCellRectangleGroup bcrg = (BlankCellRectangleGroup)_rectangleGroups[i];if (bcrg.ContainsCell(rowIndex, columnIndex)){return true;}}if (_currentRectangleGroup != null && _currentRectangleGroup.ContainsCell(rowIndex, columnIndex)){return true;}if (_currentRowIndex != -1 && _currentRowIndex == rowIndex){if (_firstColumnIndex <= columnIndex && columnIndex <= _lastColumnIndex){return true;}}return false;}
train
false
5,460
public DisassociateS3ResourcesResult disassociateS3Resources(DisassociateS3ResourcesRequest request) {request = beforeClientExecution(request);return executeDisassociateS3Resources(request);}
[ "public", "DisassociateS3ResourcesResult", "disassociateS3Resources", "(", "DisassociateS3ResourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateS3Resources", "(", "request", ")", ";", "}" ]
public virtual DisassociateS3ResourcesResponse DisassociateS3Resources(DisassociateS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateS3ResourcesResponseUnmarshaller.Instance;return Invoke<DisassociateS3ResourcesResponse>(request, options);}
train
true
5,461
public FontRecord createNewFont() {FontRecord rec = createFont();records.add(records.getFontpos()+1, rec);records.setFontpos( records.getFontpos() + 1 );numfonts++;return rec;}
[ "public", "FontRecord", "createNewFont", "(", ")", "{", "FontRecord", "rec", "=", "createFont", "(", ")", ";", "records", ".", "add", "(", "records", ".", "getFontpos", "(", ")", "+", "1", ",", "rec", ")", ";", "records", ".", "setFontpos", "(", "records", ".", "getFontpos", "(", ")", "+", "1", ")", ";", "numfonts", "++", ";", "return", "rec", ";", "}" ]
public FontRecord CreateNewFont(){FontRecord rec = (FontRecord)CreateFont();records.Add(records.Fontpos + 1, rec);records.Fontpos=(records.Fontpos + 1);numfonts++;return rec;}
train
false
5,462
public boolean equals( Object o ) {return o instanceof SpanishStemmer;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "return", "o", "instanceof", "SpanishStemmer", ";", "}" ]
public override bool Equals(object o){return o is SpanishStemmer;}
train
false
5,463
public final boolean matches(char c) {return Character.isLowerCase(c);}
[ "public", "final", "boolean", "matches", "(", "char", "c", ")", "{", "return", "Character", ".", "isLowerCase", "(", "c", ")", ";", "}" ]
public bool Matches(char c){return System.Char.IsLower(c);}
train
false
5,464
public ByteOrder order() {return byteBuffer.order();}
[ "public", "ByteOrder", "order", "(", ")", "{", "return", "byteBuffer", ".", "order", "(", ")", ";", "}" ]
public override java.nio.ByteOrder order(){return byteBuffer.order();}
train
false
5,465
public DeleteVolumeRequest(String volumeId) {setVolumeId(volumeId);}
[ "public", "DeleteVolumeRequest", "(", "String", "volumeId", ")", "{", "setVolumeId", "(", "volumeId", ")", ";", "}" ]
public DeleteVolumeRequest(string volumeId){_volumeId = volumeId;}
train
false
5,466
public LinkedDataRecord getDataSecondaryCategoryLabels() {return dataSecondaryCategoryLabels;}
[ "public", "LinkedDataRecord", "getDataSecondaryCategoryLabels", "(", ")", "{", "return", "dataSecondaryCategoryLabels", ";", "}" ]
public BRAIRecord GetDataSecondaryCategoryLabels(){return dataSecondaryCategoryLabels;}
train
false
5,467
public int depth() {int n = 0;RuleContext p = this;while ( p!=null ) {p = p.parent;n++;}return n;}
[ "public", "int", "depth", "(", ")", "{", "int", "n", "=", "0", ";", "RuleContext", "p", "=", "this", ";", "while", "(", "p", "!=", "null", ")", "{", "p", "=", "p", ".", "parent", ";", "n", "++", ";", "}", "return", "n", ";", "}" ]
public virtual int Depth(){int n = 0;Antlr4.Runtime.RuleContext p = this;while (p != null){p = p._parent;n++;}return n;}
train
false
5,468
public PersonIdent getTagger() {return tagger;}
[ "public", "PersonIdent", "getTagger", "(", ")", "{", "return", "tagger", ";", "}" ]
public virtual PersonIdent GetTagger(){return tagger;}
train
false
5,469
public ObjectId insert(int objectType, long length, InputStream in)throws IOException {throw new UnsupportedOperationException();}
[ "public", "ObjectId", "insert", "(", "int", "objectType", ",", "long", "length", ",", "InputStream", "in", ")", "throws", "IOException", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public override ObjectId Insert(int objectType, long length, InputStream @in){throw new NotSupportedException();}
train
false
5,470
public Automaton convert(Automaton utf32) {if (utf32.getNumStates() == 0) {return utf32;}int[] map = new int[utf32.getNumStates()];Arrays.fill(map, -1);List<Integer> pending = new ArrayList<>();int utf32State = 0;pending.add(utf32State);utf8 = new Automaton.Builder();int utf8State = utf8.createState();utf8.setAccept(utf8State, utf32.isAccept(utf32State));map[utf32State] = utf8State;Transition scratch = new Transition();while (pending.size() != 0) {utf32State = pending.remove(pending.size()-1);utf8State = map[utf32State];assert utf8State != -1;int numTransitions = utf32.getNumTransitions(utf32State);utf32.initTransition(utf32State, scratch);for(int i=0;i<numTransitions;i++) {utf32.getNextTransition(scratch);int destUTF32 = scratch.dest;int destUTF8 = map[destUTF32];if (destUTF8 == -1) {destUTF8 = utf8.createState();utf8.setAccept(destUTF8, utf32.isAccept(destUTF32));map[destUTF32] = destUTF8;pending.add(destUTF32);}convertOneEdge(utf8State, destUTF8, scratch.min, scratch.max);}}return utf8.finish();}
[ "public", "Automaton", "convert", "(", "Automaton", "utf32", ")", "{", "if", "(", "utf32", ".", "getNumStates", "(", ")", "==", "0", ")", "{", "return", "utf32", ";", "}", "int", "[", "]", "map", "=", "new", "int", "[", "utf32", ".", "getNumStates", "(", ")", "]", ";", "Arrays", ".", "fill", "(", "map", ",", "-", "1", ")", ";", "List", "<", "Integer", ">", "pending", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "int", "utf32State", "=", "0", ";", "pending", ".", "add", "(", "utf32State", ")", ";", "utf8", "=", "new", "Automaton", ".", "Builder", "(", ")", ";", "int", "utf8State", "=", "utf8", ".", "createState", "(", ")", ";", "utf8", ".", "setAccept", "(", "utf8State", ",", "utf32", ".", "isAccept", "(", "utf32State", ")", ")", ";", "map", "[", "utf32State", "]", "=", "utf8State", ";", "Transition", "scratch", "=", "new", "Transition", "(", ")", ";", "while", "(", "pending", ".", "size", "(", ")", "!=", "0", ")", "{", "utf32State", "=", "pending", ".", "remove", "(", "pending", ".", "size", "(", ")", "-", "1", ")", ";", "utf8State", "=", "map", "[", "utf32State", "]", ";", "assert", "utf8State", "!=", "-", "1", ";", "int", "numTransitions", "=", "utf32", ".", "getNumTransitions", "(", "utf32State", ")", ";", "utf32", ".", "initTransition", "(", "utf32State", ",", "scratch", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "numTransitions", ";", "i", "++", ")", "{", "utf32", ".", "getNextTransition", "(", "scratch", ")", ";", "int", "destUTF32", "=", "scratch", ".", "dest", ";", "int", "destUTF8", "=", "map", "[", "destUTF32", "]", ";", "if", "(", "destUTF8", "==", "-", "1", ")", "{", "destUTF8", "=", "utf8", ".", "createState", "(", ")", ";", "utf8", ".", "setAccept", "(", "destUTF8", ",", "utf32", ".", "isAccept", "(", "destUTF32", ")", ")", ";", "map", "[", "destUTF32", "]", "=", "destUTF8", ";", "pending", ".", "add", "(", "destUTF32", ")", ";", "}", "convertOneEdge", "(", "utf8State", ",", "destUTF8", ",", "scratch", ".", "min", ",", "scratch", ".", "max", ")", ";", "}", "}", "return", "utf8", ".", "finish", "(", ")", ";", "}" ]
public Automaton Convert(Automaton utf32){if (utf32.IsSingleton){utf32 = utf32.CloneExpanded();}State[] map = new State[utf32.GetNumberedStates().Length];List<State> pending = new List<State>();State utf32State = utf32.GetInitialState();pending.Add(utf32State);Automaton utf8 = new Automaton();utf8.IsDeterministic = false;State utf8State = utf8.GetInitialState();utf8States = new State[5];utf8StateCount = 0;utf8State.number = utf8StateCount;utf8States[utf8StateCount] = utf8State;utf8StateCount++;utf8State.Accept = utf32State.Accept;map[utf32State.number] = utf8State;while (pending.Count != 0){utf32State = pending[pending.Count - 1];pending.RemoveAt(pending.Count - 1);utf8State = map[utf32State.number];for (int i = 0; i < utf32State.numTransitions; i++){Transition t = utf32State.TransitionsArray[i];State destUTF32 = t.to;State destUTF8 = map[destUTF32.number];if (destUTF8 == null){destUTF8 = NewUTF8State();destUTF8.accept = destUTF32.accept;map[destUTF32.number] = destUTF8;pending.Add(destUTF32);}ConvertOneEdge(utf8State, destUTF8, t.min, t.max);}}utf8.SetNumberedStates(utf8States, utf8StateCount);return utf8;}
train
false
5,471
public static String[] listServices() throws RemoteException {return null;}
[ "public", "static", "String", "[", "]", "listServices", "(", ")", "throws", "RemoteException", "{", "return", "null", ";", "}" ]
public static string[] listServices(){throw new System.NotImplementedException();}
train
false
5,472
public void startWorkers(int count) {workers.addAndGet(count);}
[ "public", "void", "startWorkers", "(", "int", "count", ")", "{", "workers", ".", "addAndGet", "(", "count", ")", ";", "}" ]
public virtual void StartWorkers(int count){workers.AddAndGet(count);}
train
false
5,473
public FacetEntry(BytesRef value, int count) {this.value = value;this.count = count;}
[ "public", "FacetEntry", "(", "BytesRef", "value", ",", "int", "count", ")", "{", "this", ".", "value", "=", "value", ";", "this", ".", "count", "=", "count", ";", "}" ]
public FacetEntry(BytesRef value, int count){this.value = value;this.count = count;}
train
false
5,474
public String toString() {String inv = invert ? "!" : "";return getClass().getSimpleName()+"["+inv+nodeName+"]";}
[ "public", "String", "toString", "(", ")", "{", "String", "inv", "=", "invert", "?", "\"!\"", ":", "\"\"", ";", "return", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\"[\"", "+", "inv", "+", "nodeName", "+", "\"]\"", ";", "}" ]
public override string ToString(){string inv = invert ? "!" : string.Empty;return GetType().Name + "[" + inv + nodeName + "]";}
train
false
5,475
public RemoveNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
[ "public", "RemoveNoteCommand", "setNotesRef", "(", "String", "notesRef", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "notesRef", "=", "notesRef", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.RemoveNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
train
false
5,476
final public SrndQuery FieldsQuery() throws ParseException {SrndQuery q;ArrayList<String> fieldNames;fieldNames = OptionalFields();q = OrQuery();{if (true) return (fieldNames == null) ? q : getFieldsQuery(q, fieldNames);}throw new Error("Missing return statement in function");}
[ "final", "public", "SrndQuery", "FieldsQuery", "(", ")", "throws", "ParseException", "{", "SrndQuery", "q", ";", "ArrayList", "<", "String", ">", "fieldNames", ";", "fieldNames", "=", "OptionalFields", "(", ")", ";", "q", "=", "OrQuery", "(", ")", ";", "{", "if", "(", "true", ")", "return", "(", "fieldNames", "==", "null", ")", "?", "q", ":", "getFieldsQuery", "(", "q", ",", "fieldNames", ")", ";", "}", "throw", "new", "Error", "(", "\"Missing return statement in function\"", ")", ";", "}" ]
public SrndQuery FieldsQuery(){SrndQuery q;IList<string> fieldNames;fieldNames = OptionalFields();q = OrQuery();{ if (true) return (fieldNames == null) ? q : GetFieldsQuery(q, fieldNames); }throw new Exception("Missing return statement in function");}
train
false
5,477
public DescribeParametersResult describeParameters(DescribeParametersRequest request) {request = beforeClientExecution(request);return executeDescribeParameters(request);}
[ "public", "DescribeParametersResult", "describeParameters", "(", "DescribeParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeParameters", "(", "request", ")", ";", "}" ]
public virtual DescribeParametersResponse DescribeParameters(DescribeParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeParametersResponseUnmarshaller.Instance;return Invoke<DescribeParametersResponse>(request, options);}
train
true
5,478
public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal, String[] tokenImageVal) {super(new MessageImpl(QueryParserMessages.INVALID_SYNTAX, initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)));this.currentToken = currentTokenVal;this.expectedTokenSequences = expectedTokenSequencesVal;this.tokenImage = tokenImageVal;}
[ "public", "ParseException", "(", "Token", "currentTokenVal", ",", "int", "[", "]", "[", "]", "expectedTokenSequencesVal", ",", "String", "[", "]", "tokenImageVal", ")", "{", "super", "(", "new", "MessageImpl", "(", "QueryParserMessages", ".", "INVALID_SYNTAX", ",", "initialise", "(", "currentTokenVal", ",", "expectedTokenSequencesVal", ",", "tokenImageVal", ")", ")", ")", ";", "this", ".", "currentToken", "=", "currentTokenVal", ";", "this", ".", "expectedTokenSequences", "=", "expectedTokenSequencesVal", ";", "this", ".", "tokenImage", "=", "tokenImageVal", ";", "}" ]
public ParseException(Token currentTokenVal,int[][] expectedTokenSequencesVal, string[] tokenImageVal): base(new Message(QueryParserMessages.INVALID_SYNTAX, Initialize(currentTokenVal, expectedTokenSequencesVal, tokenImageVal))){this.CurrentToken = currentTokenVal;this.ExpectedTokenSequences = expectedTokenSequencesVal;this.TokenImage = tokenImageVal;}
train
false
5,479
public ListHumanTaskUisResult listHumanTaskUis(ListHumanTaskUisRequest request) {request = beforeClientExecution(request);return executeListHumanTaskUis(request);}
[ "public", "ListHumanTaskUisResult", "listHumanTaskUis", "(", "ListHumanTaskUisRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListHumanTaskUis", "(", "request", ")", ";", "}" ]
public virtual ListHumanTaskUisResponse ListHumanTaskUis(ListHumanTaskUisRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHumanTaskUisRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHumanTaskUisResponseUnmarshaller.Instance;return Invoke<ListHumanTaskUisResponse>(request, options);}
train
false
5,480
public static ShortBuffer wrap(short[] array) {return wrap(array, 0, array.length);}
[ "public", "static", "ShortBuffer", "wrap", "(", "short", "[", "]", "array", ")", "{", "return", "wrap", "(", "array", ",", "0", ",", "array", ".", "length", ")", ";", "}" ]
public static java.nio.ShortBuffer wrap(short[] array_1){return wrap(array_1, 0, array_1.Length);}
train
false
5,481
public Parser(boolean dedup, Analyzer analyzer) {super(dedup);this.analyzer = analyzer;}
[ "public", "Parser", "(", "boolean", "dedup", ",", "Analyzer", "analyzer", ")", "{", "super", "(", "dedup", ")", ";", "this", ".", "analyzer", "=", "analyzer", ";", "}" ]
public Parser(bool dedup, Analyzer analyzer): base(dedup){this.analyzer = analyzer;}
train
false
5,482
public ObjectProtectRecord(RecordInputStream in) {field_1_protect = in.readShort();}
[ "public", "ObjectProtectRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_protect", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public ObjectProtectRecord(RecordInputStream in1){field_1_protect = in1.ReadShort();}
train
false
5,483
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(_reserved0Int);out.writeShort(_reserved1Short);out.writeByte(_reserved2Byte);}
[ "public", "void", "write", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "sid", "+", "getPtgClass", "(", ")", ")", ";", "out", ".", "writeInt", "(", "_reserved0Int", ")", ";", "out", ".", "writeShort", "(", "_reserved1Short", ")", ";", "out", ".", "writeByte", "(", "_reserved2Byte", ")", ";", "}" ]
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(_reserved0Int);out1.WriteShort(_reserved1Short);out1.WriteByte(_reserved2Byte);}
train
false
5,484
public int size() {if (mGarbage) {gc();}return mSize;}
[ "public", "int", "size", "(", ")", "{", "if", "(", "mGarbage", ")", "{", "gc", "(", ")", ";", "}", "return", "mSize", ";", "}" ]
public virtual int size(){if (mGarbage){gc();}return mSize;}
train
false
5,485
public BigDecimal getFractionalPart() {return new BigDecimal(_fractionalPart).divide(BD_2_POW_24);}
[ "public", "BigDecimal", "getFractionalPart", "(", ")", "{", "return", "new", "BigDecimal", "(", "_fractionalPart", ")", ".", "divide", "(", "BD_2_POW_24", ")", ";", "}" ]
public decimal GetFractionalPart(){return new decimal(_fractionalPart)/(BD_2_POW_24);}
train
false
5,486
public AttachLoadBalancerTlsCertificateResult attachLoadBalancerTlsCertificate(AttachLoadBalancerTlsCertificateRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerTlsCertificate(request);}
[ "public", "AttachLoadBalancerTlsCertificateResult", "attachLoadBalancerTlsCertificate", "(", "AttachLoadBalancerTlsCertificateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachLoadBalancerTlsCertificate", "(", "request", ")", ";", "}" ]
public virtual AttachLoadBalancerTlsCertificateResponse AttachLoadBalancerTlsCertificate(AttachLoadBalancerTlsCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerTlsCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerTlsCertificateResponseUnmarshaller.Instance;return Invoke<AttachLoadBalancerTlsCertificateResponse>(request, options);}
train
true
5,487
public final int step(int state, int c) {assert c < alphabetSize;if (c >= classmap.length) {return transitions[state * points.length + getCharClass(c)];} else {return transitions[state * points.length + classmap[c]];}}
[ "public", "final", "int", "step", "(", "int", "state", ",", "int", "c", ")", "{", "assert", "c", "<", "alphabetSize", ";", "if", "(", "c", ">=", "classmap", ".", "length", ")", "{", "return", "transitions", "[", "state", "*", "points", ".", "length", "+", "getCharClass", "(", "c", ")", "]", ";", "}", "else", "{", "return", "transitions", "[", "state", "*", "points", ".", "length", "+", "classmap", "[", "c", "]", "]", ";", "}", "}" ]
public int Step(int state, int c){if (_classmap == null){return m_transitions[state * _points.Length + GetCharClass(c)];}else{return m_transitions[state * _points.Length + _classmap[c]];}}
train
false
5,488
public UpdateVoiceChannelResult updateVoiceChannel(UpdateVoiceChannelRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceChannel(request);}
[ "public", "UpdateVoiceChannelResult", "updateVoiceChannel", "(", "UpdateVoiceChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateVoiceChannel", "(", "request", ")", ";", "}" ]
public virtual UpdateVoiceChannelResponse UpdateVoiceChannel(UpdateVoiceChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceChannelResponseUnmarshaller.Instance;return Invoke<UpdateVoiceChannelResponse>(request, options);}
train
true
5,490
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 1) {return ErrorEval.VALUE_INVALID;}return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0]);}
[ "public", "ValueEval", "evaluate", "(", "ValueEval", "[", "]", "args", ",", "OperationEvaluationContext", "ec", ")", "{", "if", "(", "args", ".", "length", "!=", "1", ")", "{", "return", "ErrorEval", ".", "VALUE_INVALID", ";", "}", "return", "evaluate", "(", "ec", ".", "getRowIndex", "(", ")", ",", "ec", ".", "getColumnIndex", "(", ")", ",", "args", "[", "0", "]", ")", ";", "}" ]
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 1){return ErrorEval.VALUE_INVALID;}return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0]);}
train
false
5,491
public DescribeSpotDatafeedSubscriptionResult describeSpotDatafeedSubscription() {return describeSpotDatafeedSubscription(new DescribeSpotDatafeedSubscriptionRequest());}
[ "public", "DescribeSpotDatafeedSubscriptionResult", "describeSpotDatafeedSubscription", "(", ")", "{", "return", "describeSpotDatafeedSubscription", "(", "new", "DescribeSpotDatafeedSubscriptionRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeSpotDatafeedSubscriptionResponse DescribeSpotDatafeedSubscription(){return DescribeSpotDatafeedSubscription(new DescribeSpotDatafeedSubscriptionRequest());}
train
false
5,492
public int getTimeZoneOffset() {return tzOffset;}
[ "public", "int", "getTimeZoneOffset", "(", ")", "{", "return", "tzOffset", ";", "}" ]
public virtual int GetTimeZoneOffset(){return tzOffset;}
train
false
5,493
public void close() {allocationSite = null;}
[ "public", "void", "close", "(", ")", "{", "allocationSite", "=", "null", ";", "}" ]
public void close(){allocationSite = null;}
train
false
5,494
public AssociateClientVpnTargetNetworkResult associateClientVpnTargetNetwork(AssociateClientVpnTargetNetworkRequest request) {request = beforeClientExecution(request);return executeAssociateClientVpnTargetNetwork(request);}
[ "public", "AssociateClientVpnTargetNetworkResult", "associateClientVpnTargetNetwork", "(", "AssociateClientVpnTargetNetworkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssociateClientVpnTargetNetwork", "(", "request", ")", ";", "}" ]
public virtual AssociateClientVpnTargetNetworkResponse AssociateClientVpnTargetNetwork(AssociateClientVpnTargetNetworkRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateClientVpnTargetNetworkRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateClientVpnTargetNetworkResponseUnmarshaller.Instance;return Invoke<AssociateClientVpnTargetNetworkResponse>(request, options);}
train
true
5,495
public ListEnvironmentsResult listEnvironments(ListEnvironmentsRequest request) {request = beforeClientExecution(request);return executeListEnvironments(request);}
[ "public", "ListEnvironmentsResult", "listEnvironments", "(", "ListEnvironmentsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListEnvironments", "(", "request", ")", ";", "}" ]
public virtual ListEnvironmentsResponse ListEnvironments(ListEnvironmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEnvironmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEnvironmentsResponseUnmarshaller.Instance;return Invoke<ListEnvironmentsResponse>(request, options);}
train
true
5,496
public String toFormulaString() {if(semiVolatile.isSet(_options)) {return "ATTR(semiVolatile)";}if(optiIf.isSet(_options)) {return "IF";}if( optiChoose.isSet(_options)) {return "CHOOSE";}if(optiSkip.isSet(_options)) {return "";}if(optiSum.isSet(_options)) {return "SUM";}if(baxcel.isSet(_options)) {return "ATTR(baxcel)";}if(space.isSet(_options)) {return "";}return "UNKNOWN ATTRIBUTE";}
[ "public", "String", "toFormulaString", "(", ")", "{", "if", "(", "semiVolatile", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"ATTR(semiVolatile)\"", ";", "}", "if", "(", "optiIf", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"IF\"", ";", "}", "if", "(", "optiChoose", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"CHOOSE\"", ";", "}", "if", "(", "optiSkip", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"\"", ";", "}", "if", "(", "optiSum", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"SUM\"", ";", "}", "if", "(", "baxcel", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"ATTR(baxcel)\"", ";", "}", "if", "(", "space", ".", "isSet", "(", "_options", ")", ")", "{", "return", "\"\"", ";", "}", "return", "\"UNKNOWN ATTRIBUTE\"", ";", "}" ]
public override String ToFormulaString(){if (semiVolatile.IsSet(field_1_options)){return "ATTR(semiVolatile)";}if (optiIf.IsSet(field_1_options)){return "IF";}if (optiChoose.IsSet(field_1_options)){return "CHOOSE";}if (optiSkip.IsSet(field_1_options)){return "";}if (optiSum.IsSet(field_1_options)){return "SUM";}if (baxcel.IsSet(field_1_options)){return "ATTR(baxcel)";}if (space.IsSet(field_1_options)){return "";}return "UNKNOWN ATTRIBUTE";}
train
false
5,497
public int capacity() {return value.length;}
[ "public", "int", "capacity", "(", ")", "{", "return", "value", ".", "length", ";", "}" ]
public virtual int capacity(){return value.Length;}
train
false
5,498
public synchronized void setMax(int max) {if (max < 0) {max = 0;}if (max != mMax) {mMax = max;postInvalidate();if (mProgress > max) {mProgress = max;}refreshProgress(R.id.progress, mProgress, false);}}
[ "public", "synchronized", "void", "setMax", "(", "int", "max", ")", "{", "if", "(", "max", "<", "0", ")", "{", "max", "=", "0", ";", "}", "if", "(", "max", "!=", "mMax", ")", "{", "mMax", "=", "max", ";", "postInvalidate", "(", ")", ";", "if", "(", "mProgress", ">", "max", ")", "{", "mProgress", "=", "max", ";", "}", "refreshProgress", "(", "R", ".", "id", ".", "progress", ",", "mProgress", ",", "false", ")", ";", "}", "}" ]
public virtual void setMax(int max){lock (this){if (max < 0){max = 0;}if (max != mMax){mMax = max;postInvalidate();if (mProgress > max){mProgress = max;}refreshProgress(android.@internal.R.id.progress, mProgress, false);}}}
train
true
5,499
public GetVaultNotificationsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
[ "public", "GetVaultNotificationsRequest", "(", "String", "accountId", ",", "String", "vaultName", ")", "{", "setAccountId", "(", "accountId", ")", ";", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public GetVaultNotificationsRequest(string accountId, string vaultName){_accountId = accountId;_vaultName = vaultName;}
train
false
5,500
public FloatBuffer asReadOnlyBuffer() {return ReadOnlyFloatArrayBuffer.copy(this, mark);}
[ "public", "FloatBuffer", "asReadOnlyBuffer", "(", ")", "{", "return", "ReadOnlyFloatArrayBuffer", ".", "copy", "(", "this", ",", "mark", ")", ";", "}" ]
public override java.nio.FloatBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyFloatArrayBuffer.copy(this, _mark);}
train
false
5,501
public MissingResourceException(String detailMessage, String className,String resourceName) {super(detailMessage);this.className = className;key = resourceName;}
[ "public", "MissingResourceException", "(", "String", "detailMessage", ",", "String", "className", ",", "String", "resourceName", ")", "{", "super", "(", "detailMessage", ")", ";", "this", ".", "className", "=", "className", ";", "key", "=", "resourceName", ";", "}" ]
public MissingResourceException(string detailMessage, string className, string resourceName) : base(detailMessage){this.className = className;key = resourceName;}
train
false
5,502
public ValueEval getRelativeValue(int relativeRowIndex, int relativeColumnIndex) {return getRelativeValue(getFirstSheetIndex(), relativeRowIndex, relativeColumnIndex);}
[ "public", "ValueEval", "getRelativeValue", "(", "int", "relativeRowIndex", ",", "int", "relativeColumnIndex", ")", "{", "return", "getRelativeValue", "(", "getFirstSheetIndex", "(", ")", ",", "relativeRowIndex", ",", "relativeColumnIndex", ")", ";", "}" ]
public override ValueEval GetRelativeValue(int relativeRowIndex, int relativeColumnIndex){return GetRelativeValue(FirstSheetIndex, relativeRowIndex, relativeColumnIndex);}
train
false
5,503
public Matcher matcher(CharSequence input) {return new Matcher(this, input);}
[ "public", "Matcher", "matcher", "(", "CharSequence", "input", ")", "{", "return", "new", "Matcher", "(", "this", ",", "input", ")", ";", "}" ]
public java.util.regex.Matcher matcher(java.lang.CharSequence input){return new java.util.regex.Matcher(this, input);}
train
false
5,504
public ListRoomMembershipsResult listRoomMemberships(ListRoomMembershipsRequest request) {request = beforeClientExecution(request);return executeListRoomMemberships(request);}
[ "public", "ListRoomMembershipsResult", "listRoomMemberships", "(", "ListRoomMembershipsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListRoomMemberships", "(", "request", ")", ";", "}" ]
public virtual ListRoomMembershipsResponse ListRoomMemberships(ListRoomMembershipsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListRoomMembershipsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListRoomMembershipsResponseUnmarshaller.Instance;return Invoke<ListRoomMembershipsResponse>(request, options);}
train
false
5,505
public StringBuilder insert(int offset, String str) {insert0(offset, str);return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "String", "str", ")", "{", "insert0", "(", "offset", ",", "str", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, string str){insert0(offset, str);return this;}
train
false
5,506
public void registerActivityType(RegisterActivityTypeRequest request) {request = beforeClientExecution(request);executeRegisterActivityType(request);}
[ "public", "void", "registerActivityType", "(", "RegisterActivityTypeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "executeRegisterActivityType", "(", "request", ")", ";", "}" ]
public virtual RegisterActivityTypeResponse RegisterActivityType(RegisterActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterActivityTypeResponseUnmarshaller.Instance;return Invoke<RegisterActivityTypeResponse>(request, options);}
train
false
5,507
public DescribeSuggestersResult describeSuggesters(DescribeSuggestersRequest request) {request = beforeClientExecution(request);return executeDescribeSuggesters(request);}
[ "public", "DescribeSuggestersResult", "describeSuggesters", "(", "DescribeSuggestersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeSuggesters", "(", "request", ")", ";", "}" ]
public virtual DescribeSuggestersResponse DescribeSuggesters(DescribeSuggestersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSuggestersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSuggestersResponseUnmarshaller.Instance;return Invoke<DescribeSuggestersResponse>(request, options);}
train
true
5,508
public boolean acceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex) {if (firstColumnIndex != _firstColumnIndex) {return false;}if (lastColumnIndex != _lastColumnIndex) {return false;}if (rowIndex != _lastRowIndex+1) {return false;}_lastRowIndex = rowIndex;return true;}
[ "public", "boolean", "acceptRow", "(", "int", "rowIndex", ",", "int", "firstColumnIndex", ",", "int", "lastColumnIndex", ")", "{", "if", "(", "firstColumnIndex", "!=", "_firstColumnIndex", ")", "{", "return", "false", ";", "}", "if", "(", "lastColumnIndex", "!=", "_lastColumnIndex", ")", "{", "return", "false", ";", "}", "if", "(", "rowIndex", "!=", "_lastRowIndex", "+", "1", ")", "{", "return", "false", ";", "}", "_lastRowIndex", "=", "rowIndex", ";", "return", "true", ";", "}" ]
public bool AcceptRow(int rowIndex, int firstColumnIndex, int lastColumnIndex){if (firstColumnIndex != _firstColumnIndex){return false;}if (lastColumnIndex != _lastColumnIndex){return false;}if (rowIndex != _lastRowIndex + 1){return false;}_lastRowIndex = rowIndex;return true;}
train
false
5,509
public boolean equals( Object o ) {return o instanceof FinnishStemmer;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "return", "o", "instanceof", "FinnishStemmer", ";", "}" ]
public override bool Equals(object o){return o is FinnishStemmer;}
train
false
5,510
public StopDeploymentResult stopDeployment(StopDeploymentRequest request) {request = beforeClientExecution(request);return executeStopDeployment(request);}
[ "public", "StopDeploymentResult", "stopDeployment", "(", "StopDeploymentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopDeployment", "(", "request", ")", ";", "}" ]
public virtual StopDeploymentResponse StopDeployment(StopDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StopDeploymentResponseUnmarshaller.Instance;return Invoke<StopDeploymentResponse>(request, options);}
train
true
5,511
public ListGitHubAccountTokenNamesResult listGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request) {request = beforeClientExecution(request);return executeListGitHubAccountTokenNames(request);}
[ "public", "ListGitHubAccountTokenNamesResult", "listGitHubAccountTokenNames", "(", "ListGitHubAccountTokenNamesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListGitHubAccountTokenNames", "(", "request", ")", ";", "}" ]
public virtual ListGitHubAccountTokenNamesResponse ListGitHubAccountTokenNames(ListGitHubAccountTokenNamesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGitHubAccountTokenNamesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGitHubAccountTokenNamesResponseUnmarshaller.Instance;return Invoke<ListGitHubAccountTokenNamesResponse>(request, options);}
train
true
5,512
public CreateBackupResult createBackup(CreateBackupRequest request) {request = beforeClientExecution(request);return executeCreateBackup(request);}
[ "public", "CreateBackupResult", "createBackup", "(", "CreateBackupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateBackup", "(", "request", ")", ";", "}" ]
public virtual CreateBackupResponse CreateBackup(CreateBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBackupResponseUnmarshaller.Instance;return Invoke<CreateBackupResponse>(request, options);}
train
true
5,513
public ModifyTransitGatewayVpcAttachmentResult modifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeModifyTransitGatewayVpcAttachment(request);}
[ "public", "ModifyTransitGatewayVpcAttachmentResult", "modifyTransitGatewayVpcAttachment", "(", "ModifyTransitGatewayVpcAttachmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyTransitGatewayVpcAttachment", "(", "request", ")", ";", "}" ]
public virtual ModifyTransitGatewayVpcAttachmentResponse ModifyTransitGatewayVpcAttachment(ModifyTransitGatewayVpcAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTransitGatewayVpcAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTransitGatewayVpcAttachmentResponseUnmarshaller.Instance;return Invoke<ModifyTransitGatewayVpcAttachmentResponse>(request, options);}
train
true
5,514
public RejectSkillResult rejectSkill(RejectSkillRequest request) {request = beforeClientExecution(request);return executeRejectSkill(request);}
[ "public", "RejectSkillResult", "rejectSkill", "(", "RejectSkillRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRejectSkill", "(", "request", ")", ";", "}" ]
public virtual RejectSkillResponse RejectSkill(RejectSkillRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectSkillRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectSkillResponseUnmarshaller.Instance;return Invoke<RejectSkillResponse>(request, options);}
train
true
5,515
public String getHexString() {return getGnumericPart(_red) + ":" + getGnumericPart(_green) + ":" + getGnumericPart(_blue);}
[ "public", "String", "getHexString", "(", ")", "{", "return", "getGnumericPart", "(", "_red", ")", "+", "\":\"", "+", "getGnumericPart", "(", "_green", ")", "+", "\":\"", "+", "getGnumericPart", "(", "_blue", ")", ";", "}" ]
public override String GetHexString(){StringBuilder sb = new StringBuilder();sb.Append(GetGnumericPart(red));sb.Append(':');sb.Append(GetGnumericPart(green));sb.Append(':');sb.Append(GetGnumericPart(blue));return sb.ToString();}
train
false
5,516
public String toString() {return "<prefixWildcard field='" + this.field + "' term='" + this.text+ "'/>";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"<prefixWildcard field='\"", "+", "this", ".", "field", "+", "\"' term='\"", "+", "this", ".", "text", "+", "\"'/>\"", ";", "}" ]
public override string ToString(){return "<prefixWildcard field='" + this.m_field + "' term='" + this.m_text+ "'/>";}
train
false