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
2,349
public String toFormulaString() {return "UNKNOWN";}
[ "public", "String", "toFormulaString", "(", ")", "{", "return", "\"UNKNOWN\"", ";", "}" ]
public override String ToFormulaString(){return "UNKNOWN";}
train
false
2,350
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);return new NumberEval(evaluate(d0, d1, false));} catch (EvaluationException e) {return e.getErrorEval();}}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ")", "{", "try", "{", "double", "d0", "=", "NumericFunction", ".", "singleOperandEvaluate", "(", "arg0", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "double", "d1", "=", "NumericFunction", ".", "singleOperandEvaluate", "(", "arg1", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "return", "new", "NumberEval", "(", "evaluate", "(", "d0", ",", "d1", ",", "false", ")", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
train
false
2,352
public ProtectionRev4Record(boolean protect) {this(0);setProtect(protect);}
[ "public", "ProtectionRev4Record", "(", "boolean", "protect", ")", "{", "this", "(", "0", ")", ";", "setProtect", "(", "protect", ")", ";", "}" ]
public ProtectionRev4Record(bool protect):this(0){Protect = protect;}
train
false
2,353
public UpdateAuditStreamConfigurationResult updateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateAuditStreamConfiguration(request);}
[ "public", "UpdateAuditStreamConfigurationResult", "updateAuditStreamConfiguration", "(", "UpdateAuditStreamConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateAuditStreamConfiguration", "(", "request", ")", ";", "}" ]
public virtual UpdateAuditStreamConfigurationResponse UpdateAuditStreamConfiguration(UpdateAuditStreamConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuditStreamConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuditStreamConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateAuditStreamConfigurationResponse>(request, options);}
train
true
2,354
public Sheet build() {Sheet sheet = (sheetName == null) ? workbook.createSheet() : workbook.createSheet(sheetName);Row currentRow;Cell currentCell;for (int rowIndex = 0; rowIndex < cells.length; ++rowIndex) {Object[] rowArray = cells[rowIndex];currentRow = sheet.createRow(rowIndex);for (int cellIndex = 0; cellIndex < rowArray.length; ++cellIndex) {Object cellValue = rowArray[cellIndex];if (cellValue != null || shouldCreateEmptyCells) {currentCell = currentRow.createCell(cellIndex);setCellValue(currentCell, cellValue);}}}return sheet;}
[ "public", "Sheet", "build", "(", ")", "{", "Sheet", "sheet", "=", "(", "sheetName", "==", "null", ")", "?", "workbook", ".", "createSheet", "(", ")", ":", "workbook", ".", "createSheet", "(", "sheetName", ")", ";", "Row", "currentRow", ";", "Cell", "currentCell", ";", "for", "(", "int", "rowIndex", "=", "0", ";", "rowIndex", "<", "cells", ".", "length", ";", "++", "rowIndex", ")", "{", "Object", "[", "]", "rowArray", "=", "cells", "[", "rowIndex", "]", ";", "currentRow", "=", "sheet", ".", "createRow", "(", "rowIndex", ")", ";", "for", "(", "int", "cellIndex", "=", "0", ";", "cellIndex", "<", "rowArray", ".", "length", ";", "++", "cellIndex", ")", "{", "Object", "cellValue", "=", "rowArray", "[", "cellIndex", "]", ";", "if", "(", "cellValue", "!=", "null", "||", "shouldCreateEmptyCells", ")", "{", "currentCell", "=", "currentRow", ".", "createCell", "(", "cellIndex", ")", ";", "setCellValue", "(", "currentCell", ",", "cellValue", ")", ";", "}", "}", "}", "return", "sheet", ";", "}" ]
public ISheet Build(){ISheet sheet = (sheetName == null) ? workbook.CreateSheet() : workbook.CreateSheet(sheetName);IRow currentRow = null;ICell currentCell = null;for (int rowIndex = 0; rowIndex < cells.Length; ++rowIndex){Object[] rowArray = cells[rowIndex];currentRow = sheet.CreateRow(rowIndex);for (int cellIndex = 0; cellIndex < rowArray.Length; ++cellIndex){Object cellValue = rowArray[cellIndex];if (cellValue != null || shouldCreateEmptyCells){currentCell = currentRow.CreateCell(cellIndex);SetCellValue(currentCell, cellValue);}}}return sheet;}
train
false
2,355
public CharArrayWriter(int initialSize) {if (initialSize < 0) {throw new IllegalArgumentException("size < 0");}buf = new char[initialSize];lock = buf;}
[ "public", "CharArrayWriter", "(", "int", "initialSize", ")", "{", "if", "(", "initialSize", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"size < 0\"", ")", ";", "}", "buf", "=", "new", "char", "[", "initialSize", "]", ";", "lock", "=", "buf", ";", "}" ]
public CharArrayWriter(int initialSize){if (initialSize < 0){throw new System.ArgumentException("size < 0");}buf = new char[initialSize];@lock = buf;}
train
false
2,356
public AtomicReference(V initialValue) {value = initialValue;}
[ "public", "AtomicReference", "(", "V", "initialValue", ")", "{", "value", "=", "initialValue", ";", "}" ]
public AtomicReference(V initialValue){value = initialValue;}
train
false
2,357
public static ISignatureComposer getComposer() {if (null == composer) {composer = new RpcSignatureComposer();}return composer;}
[ "public", "static", "ISignatureComposer", "getComposer", "(", ")", "{", "if", "(", "null", "==", "composer", ")", "{", "composer", "=", "new", "RpcSignatureComposer", "(", ")", ";", "}", "return", "composer", ";", "}" ]
public static ISignatureComposer GetComposer(){if (null == composer){composer = new RpcSignatureComposer();}return composer;}
train
false
2,358
public ListHITsForQualificationTypeResult listHITsForQualificationType(ListHITsForQualificationTypeRequest request) {request = beforeClientExecution(request);return executeListHITsForQualificationType(request);}
[ "public", "ListHITsForQualificationTypeResult", "listHITsForQualificationType", "(", "ListHITsForQualificationTypeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListHITsForQualificationType", "(", "request", ")", ";", "}" ]
public virtual ListHITsForQualificationTypeResponse ListHITsForQualificationType(ListHITsForQualificationTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHITsForQualificationTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHITsForQualificationTypeResponseUnmarshaller.Instance;return Invoke<ListHITsForQualificationTypeResponse>(request, options);}
train
true
2,359
public AddTagsToStreamResult addTagsToStream(AddTagsToStreamRequest request) {request = beforeClientExecution(request);return executeAddTagsToStream(request);}
[ "public", "AddTagsToStreamResult", "addTagsToStream", "(", "AddTagsToStreamRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddTagsToStream", "(", "request", ")", ";", "}" ]
public virtual AddTagsToStreamResponse AddTagsToStream(AddTagsToStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddTagsToStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = AddTagsToStreamResponseUnmarshaller.Instance;return Invoke<AddTagsToStreamResponse>(request, options);}
train
true
2,360
public String toString(){StringBuilder buffer = new StringBuilder();final String nl = System.getProperty("line.separator");buffer.append('[' + getRecordName() + ']' + nl);if (escherRecords.size() == 0)buffer.append("No Escher Records Decoded" + nl);for (EscherRecord r : escherRecords) {buffer.append(r);}buffer.append("[/" + getRecordName() + ']' + nl);return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "final", "String", "nl", "=", "System", ".", "getProperty", "(", "\"line.separator\"", ")", ";", "buffer", ".", "append", "(", "'['", "+", "getRecordName", "(", ")", "+", "']'", "+", "nl", ")", ";", "if", "(", "escherRecords", ".", "size", "(", ")", "==", "0", ")", "buffer", ".", "append", "(", "\"No Escher Records Decoded\"", "+", "nl", ")", ";", "for", "(", "EscherRecord", "r", ":", "escherRecords", ")", "{", "buffer", ".", "append", "(", "r", ")", ";", "}", "buffer", ".", "append", "(", "\"[/\"", "+", "getRecordName", "(", ")", "+", "']'", "+", "nl", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();String nl = Environment.NewLine;buffer.Append('[' + RecordName + ']' + nl);if (escherRecords.Count == 0)buffer.Append("No Escher Records Decoded" + nl);foreach (EscherRecord r in escherRecords){buffer.Append(r.ToString());}buffer.Append("[/" + RecordName + ']' + nl);return buffer.ToString();}
train
false
2,361
public WSBoolRecord(RecordInputStream in) {byte[] data = in.readRemainder();field_1_wsbool =data[ 1 ]; field_2_wsbool =data[ 0 ]; }
[ "public", "WSBoolRecord", "(", "RecordInputStream", "in", ")", "{", "byte", "[", "]", "data", "=", "in", ".", "readRemainder", "(", ")", ";", "field_1_wsbool", "=", "data", "[", "1", "]", ";", "field_2_wsbool", "=", "data", "[", "0", "]", ";", "}" ]
public WSBoolRecord(RecordInputStream in1){byte[] data = in1.ReadRemainder();field_1_wsbool =data[0];field_2_wsbool =data[1];}
train
false
2,362
public BrazilianStemFilter create(TokenStream in) {return new BrazilianStemFilter(in);}
[ "public", "BrazilianStemFilter", "create", "(", "TokenStream", "in", ")", "{", "return", "new", "BrazilianStemFilter", "(", "in", ")", ";", "}" ]
public override TokenStream Create(TokenStream @in){return new BrazilianStemFilter(@in);}
train
false
2,363
public ResetCommand setRef(String ref) {this.ref = ref;return this;}
[ "public", "ResetCommand", "setRef", "(", "String", "ref", ")", "{", "this", ".", "ref", "=", "ref", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.ResetCommand SetRef(string @ref){this.@ref = @ref;return this;}
train
false
2,364
public EnableOrganizationAdminAccountResult enableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request) {request = beforeClientExecution(request);return executeEnableOrganizationAdminAccount(request);}
[ "public", "EnableOrganizationAdminAccountResult", "enableOrganizationAdminAccount", "(", "EnableOrganizationAdminAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEnableOrganizationAdminAccount", "(", "request", ")", ";", "}" ]
public virtual EnableOrganizationAdminAccountResponse EnableOrganizationAdminAccount(EnableOrganizationAdminAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableOrganizationAdminAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableOrganizationAdminAccountResponseUnmarshaller.Instance;return Invoke<EnableOrganizationAdminAccountResponse>(request, options);}
train
false
2,365
public ValueEval getInnerValueEval(int sheetIndex) {return _evaluator.getEvalForCell(sheetIndex, getRow(), getColumn());}
[ "public", "ValueEval", "getInnerValueEval", "(", "int", "sheetIndex", ")", "{", "return", "_evaluator", ".", "getEvalForCell", "(", "sheetIndex", ",", "getRow", "(", ")", ",", "getColumn", "(", ")", ")", ";", "}" ]
public override ValueEval GetInnerValueEval(int sheetIndex){return _evaluator.GetEvalForCell(sheetIndex, Row, Column);}
train
false
2,366
public DeleteRecommenderConfigurationResult deleteRecommenderConfiguration(DeleteRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteRecommenderConfiguration(request);}
[ "public", "DeleteRecommenderConfigurationResult", "deleteRecommenderConfiguration", "(", "DeleteRecommenderConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRecommenderConfiguration", "(", "request", ")", ";", "}" ]
public virtual DeleteRecommenderConfigurationResponse DeleteRecommenderConfiguration(DeleteRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteRecommenderConfigurationResponse>(request, options);}
train
false
2,367
public UpdateIntegrationResponseResult updateIntegrationResponse(UpdateIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeUpdateIntegrationResponse(request);}
[ "public", "UpdateIntegrationResponseResult", "updateIntegrationResponse", "(", "UpdateIntegrationResponseRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateIntegrationResponse", "(", "request", ")", ";", "}" ]
public virtual UpdateIntegrationResponseResponse UpdateIntegrationResponse(UpdateIntegrationResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateIntegrationResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateIntegrationResponseResponseUnmarshaller.Instance;return Invoke<UpdateIntegrationResponseResponse>(request, options);}
train
true
2,368
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[INTERFACEHDR]\n");buffer.append(" .codepage = ").append(HexDump.shortToHex(_codepage)).append("\n");buffer.append("[/INTERFACEHDR]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[INTERFACEHDR]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .codepage = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "_codepage", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/INTERFACEHDR]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[INTERFACEHDR]\n");buffer.Append(" .codepage = ").Append(StringUtil.ToHexString(_codepage)).Append("\n");buffer.Append("[/INTERFACEHDR]\n");return buffer.ToString();}
train
false
2,369
public String outputToString(BytesRef output) {return output.toString();}
[ "public", "String", "outputToString", "(", "BytesRef", "output", ")", "{", "return", "output", ".", "toString", "(", ")", ";", "}" ]
public override string OutputToString(BytesRef output){return output.ToString();}
train
false
2,370
public String toString() {StringBuilder sb = new StringBuilder();sb.append("dim=");sb.append(dim);sb.append(" path=");sb.append(Arrays.toString(path));sb.append(" value=");sb.append(value);sb.append(" childCount=");sb.append(childCount);sb.append('\n');for(LabelAndValue labelValue : labelValues) {sb.append(" ").append(labelValue).append("\n");}return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"dim=\"", ")", ";", "sb", ".", "append", "(", "dim", ")", ";", "sb", ".", "append", "(", "\" path=\"", ")", ";", "sb", ".", "append", "(", "Arrays", ".", "toString", "(", "path", ")", ")", ";", "sb", ".", "append", "(", "\" value=\"", ")", ";", "sb", ".", "append", "(", "value", ")", ";", "sb", ".", "append", "(", "\" childCount=\"", ")", ";", "sb", ".", "append", "(", "childCount", ")", ";", "sb", ".", "append", "(", "'\\n'", ")", ";", "for", "(", "LabelAndValue", "labelValue", ":", "labelValues", ")", "{", "sb", ".", "append", "(", "\" \"", ")", ".", "append", "(", "labelValue", ")", ".", "append", "(", "\"\\n\"", ")", ";", "}", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append("dim=");sb.Append(Dim);sb.Append(" path=");sb.Append(Arrays.ToString(Path));sb.Append(" value=");if (TypeOfValue == typeof(int)){sb.AppendFormat(CultureInfo.InvariantCulture, "{0:0}", Value); }else{sb.AppendFormat(CultureInfo.InvariantCulture, "{0:0.0#####}", Value); }sb.Append(" childCount=");sb.Append(ChildCount);sb.Append('\n');foreach (LabelAndValue labelValue in LabelValues){sb.Append(" " + labelValue + "\n");}return sb.ToString();}
train
false
2,371
public AcceptVpcEndpointConnectionsResult acceptVpcEndpointConnections(AcceptVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeAcceptVpcEndpointConnections(request);}
[ "public", "AcceptVpcEndpointConnectionsResult", "acceptVpcEndpointConnections", "(", "AcceptVpcEndpointConnectionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAcceptVpcEndpointConnections", "(", "request", ")", ";", "}" ]
public virtual AcceptVpcEndpointConnectionsResponse AcceptVpcEndpointConnections(AcceptVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke<AcceptVpcEndpointConnectionsResponse>(request, options);}
train
true
2,372
public DescribeIdentityProviderConfigurationResult describeIdentityProviderConfiguration(DescribeIdentityProviderConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityProviderConfiguration(request);}
[ "public", "DescribeIdentityProviderConfigurationResult", "describeIdentityProviderConfiguration", "(", "DescribeIdentityProviderConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeIdentityProviderConfiguration", "(", "request", ")", ";", "}" ]
public virtual DescribeIdentityProviderConfigurationResponse DescribeIdentityProviderConfiguration(DescribeIdentityProviderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityProviderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityProviderConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeIdentityProviderConfigurationResponse>(request, options);}
train
true
2,373
public void clear() {head = null;free.clear();}
[ "public", "void", "clear", "(", ")", "{", "head", "=", "null", ";", "free", ".", "clear", "(", ")", ";", "}" ]
public override void Clear(){head = null;free.Clear();}
train
false
2,374
public String toString() {return getClass().getSimpleName() + "[" + getFile().getPath() + "]";}
[ "public", "String", "toString", "(", ")", "{", "return", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\"[\"", "+", "getFile", "(", ")", ".", "getPath", "(", ")", "+", "\"]\"", ";", "}" ]
public override string ToString(){return GetType().Name + "[" + GetFile().GetPath() + "]";}
train
false
2,375
public GetRelationalDatabaseBlueprintsResult getRelationalDatabaseBlueprints(GetRelationalDatabaseBlueprintsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseBlueprints(request);}
[ "public", "GetRelationalDatabaseBlueprintsResult", "getRelationalDatabaseBlueprints", "(", "GetRelationalDatabaseBlueprintsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetRelationalDatabaseBlueprints", "(", "request", ")", ";", "}" ]
public virtual GetRelationalDatabaseBlueprintsResponse GetRelationalDatabaseBlueprints(GetRelationalDatabaseBlueprintsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseBlueprintsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseBlueprintsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseBlueprintsResponse>(request, options);}
train
true
2,376
public void concatenate(byte[] array) {if (array == null) {throw new IllegalArgumentException("array cannot be null");}arrays.add(array);}
[ "public", "void", "concatenate", "(", "byte", "[", "]", "array", ")", "{", "if", "(", "array", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"array cannot be null\"", ")", ";", "}", "arrays", ".", "add", "(", "array", ")", ";", "}" ]
public void Concatenate(byte[] array){if (array == null){throw new ArgumentException("array cannot be null");}arrays.Add(array);}
train
false
2,377
public final ByteBuffer get(byte[] dst, int dstOffset, int byteCount) {checkGetBounds(1, dst.length, dstOffset, byteCount);System.arraycopy(backingArray, offset + position, dst, dstOffset, byteCount);position += byteCount;return this;}
[ "public", "final", "ByteBuffer", "get", "(", "byte", "[", "]", "dst", ",", "int", "dstOffset", ",", "int", "byteCount", ")", "{", "checkGetBounds", "(", "1", ",", "dst", ".", "length", ",", "dstOffset", ",", "byteCount", ")", ";", "System", ".", "arraycopy", "(", "backingArray", ",", "offset", "+", "position", ",", "dst", ",", "dstOffset", ",", "byteCount", ")", ";", "position", "+=", "byteCount", ";", "return", "this", ";", "}" ]
public sealed override java.nio.ByteBuffer get(byte[] dst, int dstOffset, int byteCount){checkGetBounds(1, dst.Length, dstOffset, byteCount);System.Array.Copy(backingArray, offset + _position, dst, dstOffset, byteCount);_position += byteCount;return this;}
train
false
2,378
public DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes() {return describeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest());}
[ "public", "DescribeAutoScalingNotificationTypesResult", "describeAutoScalingNotificationTypes", "(", ")", "{", "return", "describeAutoScalingNotificationTypes", "(", "new", "DescribeAutoScalingNotificationTypesRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(){return DescribeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest());}
train
false
2,379
public int compareTo(LookupResult o) {return CHARSEQUENCE_COMPARATOR.compare(key, o.key);}
[ "public", "int", "compareTo", "(", "LookupResult", "o", ")", "{", "return", "CHARSEQUENCE_COMPARATOR", ".", "compare", "(", "key", ",", "o", ".", "key", ")", ";", "}" ]
public int CompareTo(LookupResult o){return CHARSEQUENCE_COMPARER.Compare(Key, o.Key);}
train
false
2,380
public UpdateVariableResult updateVariable(UpdateVariableRequest request) {request = beforeClientExecution(request);return executeUpdateVariable(request);}
[ "public", "UpdateVariableResult", "updateVariable", "(", "UpdateVariableRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateVariable", "(", "request", ")", ";", "}" ]
public virtual UpdateVariableResponse UpdateVariable(UpdateVariableRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVariableRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVariableResponseUnmarshaller.Instance;return Invoke<UpdateVariableResponse>(request, options);}
train
false
2,381
public TranslateTextRequest() {super("hiknoengine", "2019-06-25", "TranslateText", "hiknoengine");setMethod(MethodType.POST);}
[ "public", "TranslateTextRequest", "(", ")", "{", "super", "(", "\"hiknoengine\"", ",", "\"2019-06-25\"", ",", "\"TranslateText\"", ",", "\"hiknoengine\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public TranslateTextRequest(): base("hiknoengine", "2019-06-25", "TranslateText", "hiknoengine", "openAPI"){Method = MethodType.POST;}
train
false
2,382
public E set(int location, E object) {E result = a[location];a[location] = object;return result;}
[ "public", "E", "set", "(", "int", "location", ",", "E", "object", ")", "{", "E", "result", "=", "a", "[", "location", "]", ";", "a", "[", "location", "]", "=", "object", ";", "return", "result", ";", "}" ]
public override E set(int location, E @object){E result = a[location];a[location] = @object;return result;}
train
false
2,384
public void setTokenStream(TokenStream tokenStream) {if (type.indexOptions() == IndexOptions.NONE || !type.tokenized()) {throw new IllegalArgumentException("TokenStream fields must be indexed and tokenized");}this.tokenStream = tokenStream;}
[ "public", "void", "setTokenStream", "(", "TokenStream", "tokenStream", ")", "{", "if", "(", "type", ".", "indexOptions", "(", ")", "==", "IndexOptions", ".", "NONE", "||", "!", "type", ".", "tokenized", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"TokenStream fields must be indexed and tokenized\"", ")", ";", "}", "this", ".", "tokenStream", "=", "tokenStream", ";", "}" ]
public virtual void SetTokenStream(TokenStream tokenStream){if (!m_type.IsIndexed || !m_type.IsTokenized){throw new System.ArgumentException("TokenStream fields must be indexed and tokenized");}if (m_type.NumericType != Documents.NumericType.NONE){throw new System.ArgumentException("cannot set private TokenStream on numeric fields");}this.m_tokenStream = tokenStream;}
train
false
2,385
public ValueEval getArea3DEval(Area3DPtg aptg) {SheetRangeEvaluator sre = createExternSheetRefEvaluator(aptg.getExternSheetIndex());return new LazyAreaEval(aptg.getFirstRow(), aptg.getFirstColumn(),aptg.getLastRow(), aptg.getLastColumn(), sre);}
[ "public", "ValueEval", "getArea3DEval", "(", "Area3DPtg", "aptg", ")", "{", "SheetRangeEvaluator", "sre", "=", "createExternSheetRefEvaluator", "(", "aptg", ".", "getExternSheetIndex", "(", ")", ")", ";", "return", "new", "LazyAreaEval", "(", "aptg", ".", "getFirstRow", "(", ")", ",", "aptg", ".", "getFirstColumn", "(", ")", ",", "aptg", ".", "getLastRow", "(", ")", ",", "aptg", ".", "getLastColumn", "(", ")", ",", "sre", ")", ";", "}" ]
public ValueEval GetArea3DEval(Area3DPtg aptg){SheetRangeEvaluator sre = CreateExternSheetRefEvaluator(aptg.ExternSheetIndex);return new LazyAreaEval(aptg.FirstRow, aptg.FirstColumn,aptg.LastRow, aptg.LastColumn, sre);}
train
false
2,386
public MulBlankRecord(int row, int firstCol, short[] xfs) {_row = row;_firstCol = firstCol;_xfs = xfs;_lastCol = firstCol + xfs.length - 1;}
[ "public", "MulBlankRecord", "(", "int", "row", ",", "int", "firstCol", ",", "short", "[", "]", "xfs", ")", "{", "_row", "=", "row", ";", "_firstCol", "=", "firstCol", ";", "_xfs", "=", "xfs", ";", "_lastCol", "=", "firstCol", "+", "xfs", ".", "length", "-", "1", ";", "}" ]
public MulBlankRecord(int row, int firstCol, short[] xfs){_row = row;_first_col = firstCol;_xfs = xfs;_last_col = firstCol + xfs.Length - 1;}
train
false
2,387
public EngineDefaults describeEngineDefaultParameters(DescribeEngineDefaultParametersRequest request) {request = beforeClientExecution(request);return executeDescribeEngineDefaultParameters(request);}
[ "public", "EngineDefaults", "describeEngineDefaultParameters", "(", "DescribeEngineDefaultParametersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeEngineDefaultParameters", "(", "request", ")", ";", "}" ]
public virtual DescribeEngineDefaultParametersResponse DescribeEngineDefaultParameters(DescribeEngineDefaultParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEngineDefaultParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEngineDefaultParametersResponseUnmarshaller.Instance;return Invoke<DescribeEngineDefaultParametersResponse>(request, options);}
train
true
2,388
public AttachVolumeResult attachVolume(AttachVolumeRequest request) {request = beforeClientExecution(request);return executeAttachVolume(request);}
[ "public", "AttachVolumeResult", "attachVolume", "(", "AttachVolumeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachVolume", "(", "request", ")", ";", "}" ]
public virtual AttachVolumeResponse AttachVolume(AttachVolumeRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachVolumeRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachVolumeResponseUnmarshaller.Instance;return Invoke<AttachVolumeResponse>(request, options);}
train
true
2,389
public long ramBytesUsed() {return ((termOffsets!=null)? termOffsets.ramBytesUsed() : 0) +((termsDictOffsets!=null)? termsDictOffsets.ramBytesUsed() : 0);}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "return", "(", "(", "termOffsets", "!=", "null", ")", "?", "termOffsets", ".", "ramBytesUsed", "(", ")", ":", "0", ")", "+", "(", "(", "termsDictOffsets", "!=", "null", ")", "?", "termsDictOffsets", ".", "ramBytesUsed", "(", ")", ":", "0", ")", ";", "}" ]
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}
train
false
2,390
public DeleteWorkerBlockResult deleteWorkerBlock(DeleteWorkerBlockRequest request) {request = beforeClientExecution(request);return executeDeleteWorkerBlock(request);}
[ "public", "DeleteWorkerBlockResult", "deleteWorkerBlock", "(", "DeleteWorkerBlockRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteWorkerBlock", "(", "request", ")", ";", "}" ]
public virtual DeleteWorkerBlockResponse DeleteWorkerBlock(DeleteWorkerBlockRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkerBlockRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkerBlockResponseUnmarshaller.Instance;return Invoke<DeleteWorkerBlockResponse>(request, options);}
train
true
2,391
public static void unregister(TransportProtocol proto) {for (WeakReference<TransportProtocol> ref : protocols) {TransportProtocol refProto = ref.get();if (refProto == null || refProto == proto)protocols.remove(ref);}}
[ "public", "static", "void", "unregister", "(", "TransportProtocol", "proto", ")", "{", "for", "(", "WeakReference", "<", "TransportProtocol", ">", "ref", ":", "protocols", ")", "{", "TransportProtocol", "refProto", "=", "ref", ".", "get", "(", ")", ";", "if", "(", "refProto", "==", "null", "||", "refProto", "==", "proto", ")", "protocols", ".", "remove", "(", "ref", ")", ";", "}", "}" ]
public static void Unregister(TransportProtocol proto){foreach (JavaWeakReference<TransportProtocol> @ref in protocols){TransportProtocol refProto = @ref.Get();if (refProto == null || refProto == proto){protocols.Remove(@ref);}}}
train
false
2,392
public CreateNetworkInterfacePermissionResult createNetworkInterfacePermission(CreateNetworkInterfacePermissionRequest request) {request = beforeClientExecution(request);return executeCreateNetworkInterfacePermission(request);}
[ "public", "CreateNetworkInterfacePermissionResult", "createNetworkInterfacePermission", "(", "CreateNetworkInterfacePermissionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateNetworkInterfacePermission", "(", "request", ")", ";", "}" ]
public virtual CreateNetworkInterfacePermissionResponse CreateNetworkInterfacePermission(CreateNetworkInterfacePermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkInterfacePermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkInterfacePermissionResponseUnmarshaller.Instance;return Invoke<CreateNetworkInterfacePermissionResponse>(request, options);}
train
true
2,393
public void parseLine(DocData docData, String line) {String[] parts = line.split("\\t", 7);docData.setID(Integer.parseInt(parts[0]));docData.setName(parts[1]);String latitude = parts[4];String longitude = parts[5];docData.setBody("POINT("+longitude+" "+latitude+")");}
[ "public", "void", "parseLine", "(", "DocData", "docData", ",", "String", "line", ")", "{", "String", "[", "]", "parts", "=", "line", ".", "split", "(", "\"\\\\t\"", ",", "7", ")", ";", "docData", ".", "setID", "(", "Integer", ".", "parseInt", "(", "parts", "[", "0", "]", ")", ")", ";", "docData", ".", "setName", "(", "parts", "[", "1", "]", ")", ";", "String", "latitude", "=", "parts", "[", "4", "]", ";", "String", "longitude", "=", "parts", "[", "5", "]", ";", "docData", ".", "setBody", "(", "\"POINT(\"", "+", "longitude", "+", "\" \"", "+", "latitude", "+", "\")\"", ")", ";", "}" ]
public override void ParseLine(DocData docData, string line){string[] parts = new Regex("\\t").Split(line, 7);docData.ID = Convert.ToInt32(parts[0], CultureInfo.InvariantCulture);docData.Name = parts[1];string latitude = parts[4];string longitude = parts[5];docData.Body = "POINT(" + longitude + " " + latitude + ")";}
train
false
2,394
public DeleteArchiveRequest(String accountId, String vaultName, String archiveId) {setAccountId(accountId);setVaultName(vaultName);setArchiveId(archiveId);}
[ "public", "DeleteArchiveRequest", "(", "String", "accountId", ",", "String", "vaultName", ",", "String", "archiveId", ")", "{", "setAccountId", "(", "accountId", ")", ";", "setVaultName", "(", "vaultName", ")", ";", "setArchiveId", "(", "archiveId", ")", ";", "}" ]
public DeleteArchiveRequest(string accountId, string vaultName, string archiveId){_accountId = accountId;_vaultName = vaultName;_archiveId = archiveId;}
train
false
2,395
public static void close(@NonNull Repository db) {if (db.getDirectory() != null) {FileKey key = FileKey.exact(db.getDirectory(), db.getFS());cache.unregisterAndCloseRepository(key);}}
[ "public", "static", "void", "close", "(", "@", "NonNull", "Repository", "db", ")", "{", "if", "(", "db", ".", "getDirectory", "(", ")", "!=", "null", ")", "{", "FileKey", "key", "=", "FileKey", ".", "exact", "(", "db", ".", "getDirectory", "(", ")", ",", "db", ".", "getFS", "(", ")", ")", ";", "cache", ".", "unregisterAndCloseRepository", "(", "key", ")", ";", "}", "}" ]
public static void Close(Repository db){if (db.Directory != null){RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(db.Directory, db.FileSystem);cache.UnregisterRepository(key);}}
train
false
2,396
public OrQueryNode(List<QueryNode> clauses) {super(clauses);if ((clauses == null) || (clauses.size() == 0)) {throw new IllegalArgumentException("OR query must have at least one clause");}}
[ "public", "OrQueryNode", "(", "List", "<", "QueryNode", ">", "clauses", ")", "{", "super", "(", "clauses", ")", ";", "if", "(", "(", "clauses", "==", "null", ")", "||", "(", "clauses", ".", "size", "(", ")", "==", "0", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"OR query must have at least one clause\"", ")", ";", "}", "}" ]
public OrQueryNode(IList<IQueryNode> clauses): base(clauses){if ((clauses == null) || (clauses.Count == 0)){throw new ArgumentException("OR query must have at least one clause");}}
train
false
2,397
public ReplicationGroup createReplicationGroup(CreateReplicationGroupRequest request) {request = beforeClientExecution(request);return executeCreateReplicationGroup(request);}
[ "public", "ReplicationGroup", "createReplicationGroup", "(", "CreateReplicationGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateReplicationGroup", "(", "request", ")", ";", "}" ]
public virtual CreateReplicationGroupResponse CreateReplicationGroup(CreateReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateReplicationGroupResponseUnmarshaller.Instance;return Invoke<CreateReplicationGroupResponse>(request, options);}
train
true
2,398
public ListCollectionsResult listCollections(ListCollectionsRequest request) {request = beforeClientExecution(request);return executeListCollections(request);}
[ "public", "ListCollectionsResult", "listCollections", "(", "ListCollectionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListCollections", "(", "request", ")", ";", "}" ]
public virtual ListCollectionsResponse ListCollections(ListCollectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCollectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCollectionsResponseUnmarshaller.Instance;return Invoke<ListCollectionsResponse>(request, options);}
train
true
2,399
public void setParentIds(AnyObjectId parent1, AnyObjectId parent2) {parentIds = new ObjectId[] { parent1.copy(), parent2.copy() };}
[ "public", "void", "setParentIds", "(", "AnyObjectId", "parent1", ",", "AnyObjectId", "parent2", ")", "{", "parentIds", "=", "new", "ObjectId", "[", "]", "{", "parent1", ".", "copy", "(", ")", ",", "parent2", ".", "copy", "(", ")", "}", ";", "}" ]
public virtual void SetParentIds(AnyObjectId parent1, AnyObjectId parent2){parentIds = new ObjectId[] { parent1.Copy(), parent2.Copy() };}
train
false
2,400
public TokenOffsetPayloadTokenFilter create(TokenStream input) {return new TokenOffsetPayloadTokenFilter(input);}
[ "public", "TokenOffsetPayloadTokenFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "TokenOffsetPayloadTokenFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new TokenOffsetPayloadTokenFilter(input);}
train
false
2,401
public CreateDataSourceResult createDataSource(CreateDataSourceRequest request) {request = beforeClientExecution(request);return executeCreateDataSource(request);}
[ "public", "CreateDataSourceResult", "createDataSource", "(", "CreateDataSourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateDataSource", "(", "request", ")", ";", "}" ]
public virtual CreateDataSourceResponse CreateDataSource(CreateDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceResponseUnmarshaller.Instance;return Invoke<CreateDataSourceResponse>(request, options);}
train
true
2,402
public DeleteBranchCommand setBranchNames(String... branchnames) {checkCallable();this.branchNames.clear();this.branchNames.addAll(Arrays.asList(branchnames));return this;}
[ "public", "DeleteBranchCommand", "setBranchNames", "(", "String", "...", "branchnames", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "branchNames", ".", "clear", "(", ")", ";", "this", ".", "branchNames", ".", "addAll", "(", "Arrays", ".", "asList", "(", "branchnames", ")", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.DeleteBranchCommand SetBranchNames(params string[] branchnames){CheckCallable();this.branchNames.Clear();foreach (string branch in branchnames){this.branchNames.AddItem(branch);}return this;}
train
false
2,403
public void setCoordinates(int x1, int y1, int x2, int y2) {_spgrRecord.setRectX1(x1);_spgrRecord.setRectX2(x2);_spgrRecord.setRectY1(y1);_spgrRecord.setRectY2(y2);}
[ "public", "void", "setCoordinates", "(", "int", "x1", ",", "int", "y1", ",", "int", "x2", ",", "int", "y2", ")", "{", "_spgrRecord", ".", "setRectX1", "(", "x1", ")", ";", "_spgrRecord", ".", "setRectX2", "(", "x2", ")", ";", "_spgrRecord", ".", "setRectY1", "(", "y1", ")", ";", "_spgrRecord", ".", "setRectY2", "(", "y2", ")", ";", "}" ]
public void SetCoordinates(int x1, int y1, int x2, int y2){_spgrRecord.RectX1 = (x1);_spgrRecord.RectX2 = (x2);_spgrRecord.RectY1 = (y1);_spgrRecord.RectY2 = (y2);}
train
false
2,404
public DescribeNotificationConfigurationsResult describeNotificationConfigurations() {return describeNotificationConfigurations(new DescribeNotificationConfigurationsRequest());}
[ "public", "DescribeNotificationConfigurationsResult", "describeNotificationConfigurations", "(", ")", "{", "return", "describeNotificationConfigurations", "(", "new", "DescribeNotificationConfigurationsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(){return DescribeNotificationConfigurations(new DescribeNotificationConfigurationsRequest());}
train
false
2,405
public GetStatusResult getStatus(GetStatusRequest request) {request = beforeClientExecution(request);return executeGetStatus(request);}
[ "public", "GetStatusResult", "getStatus", "(", "GetStatusRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetStatus", "(", "request", ")", ";", "}" ]
public virtual GetStatusResponse GetStatus(GetStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStatusResponseUnmarshaller.Instance;return Invoke<GetStatusResponse>(request, options);}
train
true
2,407
public ExternalSheet getExternalSheet(int externSheetIndex) {String[] extNames = linkTable.getExternalBookAndSheetName(externSheetIndex);if (extNames == null) {return null;}if (extNames.length == 2) {return new ExternalSheet(extNames[0], extNames[1]);} else {return new ExternalSheetRange(extNames[0], extNames[1], extNames[2]);}}
[ "public", "ExternalSheet", "getExternalSheet", "(", "int", "externSheetIndex", ")", "{", "String", "[", "]", "extNames", "=", "linkTable", ".", "getExternalBookAndSheetName", "(", "externSheetIndex", ")", ";", "if", "(", "extNames", "==", "null", ")", "{", "return", "null", ";", "}", "if", "(", "extNames", ".", "length", "==", "2", ")", "{", "return", "new", "ExternalSheet", "(", "extNames", "[", "0", "]", ",", "extNames", "[", "1", "]", ")", ";", "}", "else", "{", "return", "new", "ExternalSheetRange", "(", "extNames", "[", "0", "]", ",", "extNames", "[", "1", "]", ",", "extNames", "[", "2", "]", ")", ";", "}", "}" ]
public ExternalSheet GetExternalSheet(int externSheetIndex){String[] extNames = linkTable.GetExternalBookAndSheetName(externSheetIndex);if (extNames == null){return null;}if (extNames.Length == 2){return new ExternalSheet(extNames[0], extNames[1]);}else{return new ExternalSheetRange(extNames[0], extNames[1], extNames[2]);}}
train
false
2,408
public static int delete(char s[], int pos, int len) {assert pos < len;if (pos < len - 1) { System.arraycopy(s, pos + 1, s, pos, len - pos - 1);}return len - 1;}
[ "public", "static", "int", "delete", "(", "char", "s", "[", "]", ",", "int", "pos", ",", "int", "len", ")", "{", "assert", "pos", "<", "len", ";", "if", "(", "pos", "<", "len", "-", "1", ")", "{", "System", ".", "arraycopy", "(", "s", ",", "pos", "+", "1", ",", "s", ",", "pos", ",", "len", "-", "pos", "-", "1", ")", ";", "}", "return", "len", "-", "1", ";", "}" ]
public static int Delete(char[] s, int pos, int len){Debug.Assert(pos < len);if (pos < len - 1) {Array.Copy(s, pos + 1, s, pos, len - pos - 1);}return len - 1;}
train
false
2,409
public HSSFConditionalFormatting getConditionalFormattingAt(int index) {CFRecordsAggregate cf = _conditionalFormattingTable.get(index);if (cf == null) {return null;}return new HSSFConditionalFormatting(_sheet, cf);}
[ "public", "HSSFConditionalFormatting", "getConditionalFormattingAt", "(", "int", "index", ")", "{", "CFRecordsAggregate", "cf", "=", "_conditionalFormattingTable", ".", "get", "(", "index", ")", ";", "if", "(", "cf", "==", "null", ")", "{", "return", "null", ";", "}", "return", "new", "HSSFConditionalFormatting", "(", "_sheet", ",", "cf", ")", ";", "}" ]
public IConditionalFormatting GetConditionalFormattingAt(int index){CFRecordsAggregate cf = _conditionalFormattingTable.Get(index);if (cf == null){return null;}return new HSSFConditionalFormatting((HSSFWorkbook)_sheet.Workbook, cf);}
train
false
2,410
public static Cell createCell(Row row, int column, String value, CellStyle style) {Cell cell = getCell(row, column);cell.setCellValue(cell.getRow().getSheet().getWorkbook().getCreationHelper().createRichTextString(value));if (style != null) {cell.setCellStyle(style);}return cell;}
[ "public", "static", "Cell", "createCell", "(", "Row", "row", ",", "int", "column", ",", "String", "value", ",", "CellStyle", "style", ")", "{", "Cell", "cell", "=", "getCell", "(", "row", ",", "column", ")", ";", "cell", ".", "setCellValue", "(", "cell", ".", "getRow", "(", ")", ".", "getSheet", "(", ")", ".", "getWorkbook", "(", ")", ".", "getCreationHelper", "(", ")", ".", "createRichTextString", "(", "value", ")", ")", ";", "if", "(", "style", "!=", "null", ")", "{", "cell", ".", "setCellStyle", "(", "style", ")", ";", "}", "return", "cell", ";", "}" ]
public static ICell CreateCell(IRow row, int column, String value, HSSFCellStyle style){ICell cell = GetCell(row, column);cell.SetCellValue(new HSSFRichTextString(value));if (style != null){cell.CellStyle = (style);}return cell;}
train
false
2,411
public void setFillColor(int red, int green, int blue) {int fillColor = ((blue) << 16) | ((green) << 8) | red;setPropertyValue(new EscherRGBProperty(EscherPropertyTypes.FILL__FILLCOLOR, fillColor));}
[ "public", "void", "setFillColor", "(", "int", "red", ",", "int", "green", ",", "int", "blue", ")", "{", "int", "fillColor", "=", "(", "(", "blue", ")", "<<", "16", ")", "|", "(", "(", "green", ")", "<<", "8", ")", "|", "red", ";", "setPropertyValue", "(", "new", "EscherRGBProperty", "(", "EscherPropertyTypes", ".", "FILL__FILLCOLOR", ",", "fillColor", ")", ")", ";", "}" ]
public void SetFillColor(int red, int green, int blue){int fillColor = ((blue) << 16) | ((green) << 8) | red;SetPropertyValue(new EscherRGBProperty(EscherProperties.FILL__FILLCOLOR, fillColor));}
train
false
2,412
public ErrorResponseBody error() {return this.error;}
[ "public", "ErrorResponseBody", "error", "(", ")", "{", "return", "this", ".", "error", ";", "}" ]
public virtual IPolicyOperations Policy { get; private set; }
train
false
2,413
public void write(int b) throws IOException {try {beginWrite();dst.write(b);} catch (InterruptedIOException e) {throw writeTimedOut(e);} finally {endWrite();}}
[ "public", "void", "write", "(", "int", "b", ")", "throws", "IOException", "{", "try", "{", "beginWrite", "(", ")", ";", "dst", ".", "write", "(", "b", ")", ";", "}", "catch", "(", "InterruptedIOException", "e", ")", "{", "throw", "writeTimedOut", "(", "e", ")", ";", "}", "finally", "{", "endWrite", "(", ")", ";", "}", "}" ]
public override void Write(int b){try{BeginWrite();dst.Write(b);}catch (ThreadInterruptedException){throw WriteTimedOut();}finally{EndWrite();}}
train
false
2,414
public void add(String key, ParserExtension extension) {this.extensions.put(key, extension);}
[ "public", "void", "add", "(", "String", "key", ",", "ParserExtension", "extension", ")", "{", "this", ".", "extensions", ".", "put", "(", "key", ",", "extension", ")", ";", "}" ]
public virtual void Add(string key, ParserExtension extension){this.extensions[key] = extension;}
train
false
2,415
public SignOutUserResult signOutUser(SignOutUserRequest request) {request = beforeClientExecution(request);return executeSignOutUser(request);}
[ "public", "SignOutUserResult", "signOutUser", "(", "SignOutUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSignOutUser", "(", "request", ")", ";", "}" ]
public virtual SignOutUserResponse SignOutUser(SignOutUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignOutUserRequestMarshaller.Instance;options.ResponseUnmarshaller = SignOutUserResponseUnmarshaller.Instance;return Invoke<SignOutUserResponse>(request, options);}
train
true
2,416
public PutImageTagMutabilityResult putImageTagMutability(PutImageTagMutabilityRequest request) {request = beforeClientExecution(request);return executePutImageTagMutability(request);}
[ "public", "PutImageTagMutabilityResult", "putImageTagMutability", "(", "PutImageTagMutabilityRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePutImageTagMutability", "(", "request", ")", ";", "}" ]
public virtual PutImageTagMutabilityResponse PutImageTagMutability(PutImageTagMutabilityRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageTagMutabilityRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageTagMutabilityResponseUnmarshaller.Instance;return Invoke<PutImageTagMutabilityResponse>(request, options);}
train
false
2,417
public CreateIAMPolicyAssignmentResult createIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest request) {request = beforeClientExecution(request);return executeCreateIAMPolicyAssignment(request);}
[ "public", "CreateIAMPolicyAssignmentResult", "createIAMPolicyAssignment", "(", "CreateIAMPolicyAssignmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateIAMPolicyAssignment", "(", "request", ")", ";", "}" ]
public virtual CreateIAMPolicyAssignmentResponse CreateIAMPolicyAssignment(CreateIAMPolicyAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIAMPolicyAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIAMPolicyAssignmentResponseUnmarshaller.Instance;return Invoke<CreateIAMPolicyAssignmentResponse>(request, options);}
train
false
2,418
public GetRoomResult getRoom(GetRoomRequest request) {request = beforeClientExecution(request);return executeGetRoom(request);}
[ "public", "GetRoomResult", "getRoom", "(", "GetRoomRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetRoom", "(", "request", ")", ";", "}" ]
public virtual GetRoomResponse GetRoom(GetRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoomResponseUnmarshaller.Instance;return Invoke<GetRoomResponse>(request, options);}
train
true
2,419
public DescribeLaunchConfigurationsResult describeLaunchConfigurations() {return describeLaunchConfigurations(new DescribeLaunchConfigurationsRequest());}
[ "public", "DescribeLaunchConfigurationsResult", "describeLaunchConfigurations", "(", ")", "{", "return", "describeLaunchConfigurations", "(", "new", "DescribeLaunchConfigurationsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(){return DescribeLaunchConfigurations(new DescribeLaunchConfigurationsRequest());}
train
false
2,420
public UpdateTaskSetResult updateTaskSet(UpdateTaskSetRequest request) {request = beforeClientExecution(request);return executeUpdateTaskSet(request);}
[ "public", "UpdateTaskSetResult", "updateTaskSet", "(", "UpdateTaskSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateTaskSet", "(", "request", ")", ";", "}" ]
public virtual UpdateTaskSetResponse UpdateTaskSet(UpdateTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTaskSetResponseUnmarshaller.Instance;return Invoke<UpdateTaskSetResponse>(request, options);}
train
true
2,421
public boolean equals(Object other_) {if (other_ == this) {return true;} else if (!(other_ instanceof FSTTermOutputs.TermData)) {return false;}TermData other = (TermData) other_;return statsEqual(this, other) &&bytesEqual(this, other);}
[ "public", "boolean", "equals", "(", "Object", "other_", ")", "{", "if", "(", "other_", "==", "this", ")", "{", "return", "true", ";", "}", "else", "if", "(", "!", "(", "other_", "instanceof", "FSTTermOutputs", ".", "TermData", ")", ")", "{", "return", "false", ";", "}", "TermData", "other", "=", "(", "TermData", ")", "other_", ";", "return", "statsEqual", "(", "this", ",", "other", ")", "&&", "bytesEqual", "(", "this", ",", "other", ")", ";", "}" ]
public override bool Equals(object other){if (other == this)return true;if (!(other is TermData))return false;var _other = (TermData) other;return StatsEqual(this, _other) && Int64sEqual(this, _other) && BytesEqual(this, _other);}
train
false
2,422
public int getSequenceIndex() {return sequenceIndex;}
[ "public", "int", "getSequenceIndex", "(", ")", "{", "return", "sequenceIndex", ";", "}" ]
public virtual int GetSequenceIndex(){return sequenceIndex;}
train
false
2,423
public DeleteAutoScalingGroupResult deleteAutoScalingGroup(DeleteAutoScalingGroupRequest request) {request = beforeClientExecution(request);return executeDeleteAutoScalingGroup(request);}
[ "public", "DeleteAutoScalingGroupResult", "deleteAutoScalingGroup", "(", "DeleteAutoScalingGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAutoScalingGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance;return Invoke<DeleteAutoScalingGroupResponse>(request, options);}
train
true
2,425
public Collection<ChildScorable> getChildren() {return Collections.singleton(new ChildScorable(parentScorer, "BLOCK_JOIN"));}
[ "public", "Collection", "<", "ChildScorable", ">", "getChildren", "(", ")", "{", "return", "Collections", ".", "singleton", "(", "new", "ChildScorable", "(", "parentScorer", ",", "\"BLOCK_JOIN\"", ")", ")", ";", "}" ]
public override ICollection<ChildScorer> GetChildren(){return new List<ChildScorer> { new ChildScorer(_parentScorer, "BLOCK_JOIN") };}
train
false
2,426
public void endTask() {if (!isMainThread())throw new IllegalStateException();pm.endTask();}
[ "public", "void", "endTask", "(", ")", "{", "if", "(", "!", "isMainThread", "(", ")", ")", "throw", "new", "IllegalStateException", "(", ")", ";", "pm", ".", "endTask", "(", ")", ";", "}" ]
public override void EndTask(){if (!IsMainThread()){throw new InvalidOperationException();}pm.EndTask();}
train
false
2,427
public UpdateConfigurationSetEventDestinationResult updateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest request) {request = beforeClientExecution(request);return executeUpdateConfigurationSetEventDestination(request);}
[ "public", "UpdateConfigurationSetEventDestinationResult", "updateConfigurationSetEventDestination", "(", "UpdateConfigurationSetEventDestinationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateConfigurationSetEventDestination", "(", "request", ")", ";", "}" ]
public virtual UpdateConfigurationSetEventDestinationResponse UpdateConfigurationSetEventDestination(UpdateConfigurationSetEventDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationSetEventDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationSetEventDestinationResponseUnmarshaller.Instance;return Invoke<UpdateConfigurationSetEventDestinationResponse>(request, options);}
train
true
2,428
public void serialize(LittleEndianOutput out) {out.writeShort(getBackup());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "getBackup", "(", ")", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Backup);}
train
false
2,429
public DescribeBundleTasksResult describeBundleTasks(DescribeBundleTasksRequest request) {request = beforeClientExecution(request);return executeDescribeBundleTasks(request);}
[ "public", "DescribeBundleTasksResult", "describeBundleTasks", "(", "DescribeBundleTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeBundleTasks", "(", "request", ")", ";", "}" ]
public virtual DescribeBundleTasksResponse DescribeBundleTasks(DescribeBundleTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBundleTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBundleTasksResponseUnmarshaller.Instance;return Invoke<DescribeBundleTasksResponse>(request, options);}
train
true
2,431
public DescribeFleetEventsResult describeFleetEvents(DescribeFleetEventsRequest request) {request = beforeClientExecution(request);return executeDescribeFleetEvents(request);}
[ "public", "DescribeFleetEventsResult", "describeFleetEvents", "(", "DescribeFleetEventsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeFleetEvents", "(", "request", ")", ";", "}" ]
public virtual DescribeFleetEventsResponse DescribeFleetEvents(DescribeFleetEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFleetEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFleetEventsResponseUnmarshaller.Instance;return Invoke<DescribeFleetEventsResponse>(request, options);}
train
true
2,432
public BasicCredentials(String accessKeyId, String accessKeySecret) {if (accessKeyId == null) {throw new IllegalArgumentException("Access key ID cannot be null.");}if (accessKeySecret == null) {throw new IllegalArgumentException("Access key secret cannot be null.");}this.accessKeyId = accessKeyId;this.accessKeySecret = accessKeySecret;}
[ "public", "BasicCredentials", "(", "String", "accessKeyId", ",", "String", "accessKeySecret", ")", "{", "if", "(", "accessKeyId", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Access key ID cannot be null.\"", ")", ";", "}", "if", "(", "accessKeySecret", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Access key secret cannot be null.\"", ")", ";", "}", "this", ".", "accessKeyId", "=", "accessKeyId", ";", "this", ".", "accessKeySecret", "=", "accessKeySecret", ";", "}" ]
public BasicCredentials(string accessKeyId, string accessKeySecret){if (accessKeyId == null){throw new ArgumentOutOfRangeException("Access key ID cannot be null.");}if (accessKeySecret == null){throw new ArgumentOutOfRangeException("Access key secret cannot be null.");}this.accessKeyId = accessKeyId;this.accessKeySecret = accessKeySecret;}
train
false
2,433
public String getOldPath() {return oldPath;}
[ "public", "String", "getOldPath", "(", ")", "{", "return", "oldPath", ";", "}" ]
public virtual string GetOldPath(){return oldPath;}
train
false
2,434
public int nextIndex() {return iterator.nextIndex() - start;}
[ "public", "int", "nextIndex", "(", ")", "{", "return", "iterator", ".", "nextIndex", "(", ")", "-", "start", ";", "}" ]
public int nextIndex(){return iterator.nextIndex() - start;}
train
false
2,435
public Snapshot deleteClusterSnapshot(DeleteClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteClusterSnapshot(request);}
[ "public", "Snapshot", "deleteClusterSnapshot", "(", "DeleteClusterSnapshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteClusterSnapshot", "(", "request", ")", ";", "}" ]
public virtual DeleteClusterSnapshotResponse DeleteClusterSnapshot(DeleteClusterSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteClusterSnapshotResponse>(request, options);}
train
true
2,436
public String getColsNamesForValsByRound() {if (colForValByRound.size() == 0) {return "";}StringBuilder sb = new StringBuilder();for (final String colName : colForValByRound.values()) {sb.append(' ').append(colName);}return sb.toString();}
[ "public", "String", "getColsNamesForValsByRound", "(", ")", "{", "if", "(", "colForValByRound", ".", "size", "(", ")", "==", "0", ")", "{", "return", "\"\"", ";", "}", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "final", "String", "colName", ":", "colForValByRound", ".", "values", "(", ")", ")", "{", "sb", ".", "append", "(", "' '", ")", ".", "append", "(", "colName", ")", ";", "}", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public virtual string GetColsNamesForValsByRound(){if (colForValByRound.Count == 0){return "";}StringBuilder sb = new StringBuilder();foreach (string name in colForValByRound.Keys){string colName = colForValByRound[name];sb.Append(" ").Append(colName);}return sb.ToString();}
train
false
2,437
public void deprecateActivityType(DeprecateActivityTypeRequest request) {request = beforeClientExecution(request);executeDeprecateActivityType(request);}
[ "public", "void", "deprecateActivityType", "(", "DeprecateActivityTypeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "executeDeprecateActivityType", "(", "request", ")", ";", "}" ]
public virtual DeprecateActivityTypeResponse DeprecateActivityType(DeprecateActivityTypeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeprecateActivityTypeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeprecateActivityTypeResponseUnmarshaller.Instance;return Invoke<DeprecateActivityTypeResponse>(request, options);}
train
false
2,438
public PartETag(int partNumber, String eTag) {this.partNumber = partNumber;this.eTag = eTag;}
[ "public", "PartETag", "(", "int", "partNumber", ",", "String", "eTag", ")", "{", "this", ".", "partNumber", "=", "partNumber", ";", "this", ".", "eTag", "=", "eTag", ";", "}" ]
public PartETag(int partNumber, string eTag){this.partNumber = partNumber;this.eTag = eTag;}
train
false
2,439
@Override public boolean remove(Object object) {if (object instanceof Multiset.Entry) {Multiset.Entry<?> entry = (Multiset.Entry<?>) object;Object element = entry.getElement();int entryCount = entry.getCount();return countMap.remove(element, entryCount);}return false;}
[ "@", "Override", "public", "boolean", "remove", "(", "Object", "object", ")", "{", "if", "(", "object", "instanceof", "Multiset", ".", "Entry", ")", "{", "Multiset", ".", "Entry", "<", "?", ">", "entry", "=", "(", "Multiset", ".", "Entry", "<", "?", ">", ")", "object", ";", "Object", "element", "=", "entry", ".", "getElement", "(", ")", ";", "int", "entryCount", "=", "entry", ".", "getCount", "(", ")", ";", "return", "countMap", ".", "remove", "(", "element", ",", "entryCount", ")", ";", "}", "return", "false", ";", "}" ]
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
train
false
2,440
public ListAccessControlRulesResult listAccessControlRules(ListAccessControlRulesRequest request) {request = beforeClientExecution(request);return executeListAccessControlRules(request);}
[ "public", "ListAccessControlRulesResult", "listAccessControlRules", "(", "ListAccessControlRulesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListAccessControlRules", "(", "request", ")", ";", "}" ]
public virtual ListAccessControlRulesResponse ListAccessControlRules(ListAccessControlRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAccessControlRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAccessControlRulesResponseUnmarshaller.Instance;return Invoke<ListAccessControlRulesResponse>(request, options);}
train
false
2,441
public final CharBuffer get(char[] dst, int srcOffset, int charCount) {if (charCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, srcOffset, charCount);position += charCount;return this;}
[ "public", "final", "CharBuffer", "get", "(", "char", "[", "]", "dst", ",", "int", "srcOffset", ",", "int", "charCount", ")", "{", "if", "(", "charCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferUnderflowException", "(", ")", ";", "}", "System", ".", "arraycopy", "(", "backingArray", ",", "offset", "+", "position", ",", "dst", ",", "srcOffset", ",", "charCount", ")", ";", "position", "+=", "charCount", ";", "return", "this", ";", "}" ]
public sealed override java.nio.CharBuffer get(char[] dst, int srcOffset, int charCount){if (charCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, srcOffset, charCount);_position += charCount;return this;}
train
false
2,442
public DescribeDBClusterBacktracksResult describeDBClusterBacktracks(DescribeDBClusterBacktracksRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterBacktracks(request);}
[ "public", "DescribeDBClusterBacktracksResult", "describeDBClusterBacktracks", "(", "DescribeDBClusterBacktracksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDBClusterBacktracks", "(", "request", ")", ";", "}" ]
public virtual DescribeDBClusterBacktracksResponse DescribeDBClusterBacktracks(DescribeDBClusterBacktracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterBacktracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterBacktracksResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterBacktracksResponse>(request, options);}
train
true
2,443
public boolean equals(ATNConfig other) {if (this == other) {return true;}else if (other == null) {return false;}return this.state.stateNumber==other.state.stateNumber&& this.alt==other.alt&& (this.context==other.context || (this.context != null && this.context.equals(other.context)))&& this.semanticContext.equals(other.semanticContext)&& this.isPrecedenceFilterSuppressed() == other.isPrecedenceFilterSuppressed();}
[ "public", "boolean", "equals", "(", "ATNConfig", "other", ")", "{", "if", "(", "this", "==", "other", ")", "{", "return", "true", ";", "}", "else", "if", "(", "other", "==", "null", ")", "{", "return", "false", ";", "}", "return", "this", ".", "state", ".", "stateNumber", "==", "other", ".", "state", ".", "stateNumber", "&&", "this", ".", "alt", "==", "other", ".", "alt", "&&", "(", "this", ".", "context", "==", "other", ".", "context", "||", "(", "this", ".", "context", "!=", "null", "&&", "this", ".", "context", ".", "equals", "(", "other", ".", "context", ")", ")", ")", "&&", "this", ".", "semanticContext", ".", "equals", "(", "other", ".", "semanticContext", ")", "&&", "this", ".", "isPrecedenceFilterSuppressed", "(", ")", "==", "other", ".", "isPrecedenceFilterSuppressed", "(", ")", ";", "}" ]
public virtual bool Equals(ATNConfig other){if (this == other){return true;}else if (other == null){return false;}return this.state.stateNumber == other.state.stateNumber&& this.alt == other.alt&& (this.context == other.context || (this.context != null && this.context.Equals(other.context)))&& this.semanticContext.Equals(other.semanticContext)&& this.IsPrecedenceFilterSuppressed == other.IsPrecedenceFilterSuppressed;}
train
false
2,444
public AbbreviatedObjectId getId(Side side) {return side == Side.OLD ? getOldId() : getNewId();}
[ "public", "AbbreviatedObjectId", "getId", "(", "Side", "side", ")", "{", "return", "side", "==", "Side", ".", "OLD", "?", "getOldId", "(", ")", ":", "getNewId", "(", ")", ";", "}" ]
public virtual AbbreviatedObjectId GetId(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldId() : GetNewId();}
train
false
2,445
public CatLabRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();wOffset = in.readShort();at = in.readShort();grbit = in.readShort();if(in.available() == 0) {unused = null;} else {unused = in.readShort();}}
[ "public", "CatLabRecord", "(", "RecordInputStream", "in", ")", "{", "rt", "=", "in", ".", "readShort", "(", ")", ";", "grbitFrt", "=", "in", ".", "readShort", "(", ")", ";", "wOffset", "=", "in", ".", "readShort", "(", ")", ";", "at", "=", "in", ".", "readShort", "(", ")", ";", "grbit", "=", "in", ".", "readShort", "(", ")", ";", "if", "(", "in", ".", "available", "(", ")", "==", "0", ")", "{", "unused", "=", "null", ";", "}", "else", "{", "unused", "=", "in", ".", "readShort", "(", ")", ";", "}", "}" ]
public CatLabRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();wOffset = in1.ReadShort();at = in1.ReadShort();grbit = in1.ReadShort();if (in1.Available() == 0){unused = null;}else{unused = in1.ReadShort();}}
train
false
2,446
public String substring(int start, int end) {if (start >= 0 && start <= end && end <= count) {if (start == end) {return "";}return new String(value, start, end - start);}throw startEndAndLength(start, end);}
[ "public", "String", "substring", "(", "int", "start", ",", "int", "end", ")", "{", "if", "(", "start", ">=", "0", "&&", "start", "<=", "end", "&&", "end", "<=", "count", ")", "{", "if", "(", "start", "==", "end", ")", "{", "return", "\"\"", ";", "}", "return", "new", "String", "(", "value", ",", "start", ",", "end", "-", "start", ")", ";", "}", "throw", "startEndAndLength", "(", "start", ",", "end", ")", ";", "}" ]
public virtual string substring(int start, int end){if (start >= 0 && start <= end && end <= count){if (start == end){return string.Empty;}return new string(value, start, end - start);}throw startEndAndLength(start, end);}
train
false
2,447
public int remove(final int index){if (index >= _limit){throw new IndexOutOfBoundsException();}int rval = _array[ index ];System.arraycopy(_array, index + 1, _array, index, _limit - index);_limit--;return rval;}
[ "public", "int", "remove", "(", "final", "int", "index", ")", "{", "if", "(", "index", ">=", "_limit", ")", "{", "throw", "new", "IndexOutOfBoundsException", "(", ")", ";", "}", "int", "rval", "=", "_array", "[", "index", "]", ";", "System", ".", "arraycopy", "(", "_array", ",", "index", "+", "1", ",", "_array", ",", "index", ",", "_limit", "-", "index", ")", ";", "_limit", "--", ";", "return", "rval", ";", "}" ]
public int Remove(int index){if (index >= _limit){throw new IndexOutOfRangeException();}int rval = _array[index];Array.Copy(_array, index + 1, _array, index, _limit - index);_limit--;return rval;}
train
false
2,448
public K getKey() {return super.get();}
[ "public", "K", "getKey", "(", ")", "{", "return", "super", ".", "get", "(", ")", ";", "}" ]
public K getKey(){return base.get();}
train
false
2,450
public void setDeltaCacheLimit(int size) {deltaCacheLimit = size;}
[ "public", "void", "setDeltaCacheLimit", "(", "int", "size", ")", "{", "deltaCacheLimit", "=", "size", ";", "}" ]
public virtual void SetDeltaCacheLimit(int size){deltaCacheLimit = size;}
train
false
2,451
public String toString() {return "L";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"L\"", ";", "}" ]
public override string ToString(){return "L";}
train
false
2,452
public Map<String, String> read(String response, String endpoint) {return read(new StringCharacterIterator(response), endpoint, FIRST_POSITION);}
[ "public", "Map", "<", "String", ",", "String", ">", "read", "(", "String", "response", ",", "String", "endpoint", ")", "{", "return", "read", "(", "new", "StringCharacterIterator", "(", "response", ")", ",", "endpoint", ",", "FIRST_POSITION", ")", ";", "}" ]
public Dictionary<string, string> Read(string response, string endpoint){return Read(response.GetEnumerator(), endpoint);}
train
false
2,453
public DeleteMessageResult deleteMessage(DeleteMessageRequest request) {request = beforeClientExecution(request);return executeDeleteMessage(request);}
[ "public", "DeleteMessageResult", "deleteMessage", "(", "DeleteMessageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteMessage", "(", "request", ")", ";", "}" ]
public virtual DeleteMessageResponse DeleteMessage(DeleteMessageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMessageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMessageResponseUnmarshaller.Instance;return Invoke<DeleteMessageResponse>(request, options);}
train
true
2,454
public SearchFind(boolean isCaseSensitive) {_isCaseSensitive = isCaseSensitive;}
[ "public", "SearchFind", "(", "boolean", "isCaseSensitive", ")", "{", "_isCaseSensitive", "=", "isCaseSensitive", ";", "}" ]
public SearchFind(bool isCaseSensitive){_isCaseSensitive = isCaseSensitive;}
train
false