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,563
public ParseTreeMatch match(ParseTree tree, String pattern, int patternRuleIndex) {ParseTreePattern p = compile(pattern, patternRuleIndex);return match(tree, p);}
[ "public", "ParseTreeMatch", "match", "(", "ParseTree", "tree", ",", "String", "pattern", ",", "int", "patternRuleIndex", ")", "{", "ParseTreePattern", "p", "=", "compile", "(", "pattern", ",", "patternRuleIndex", ")", ";", "return", "match", "(", "tree", ",", "p", ")", ";", "}" ]
public virtual ParseTreeMatch Match(IParseTree tree, string pattern, int patternRuleIndex){ParseTreePattern p = Compile(pattern, patternRuleIndex);return Match(tree, p);}
train
false
2,564
public GridsetRecord(RecordInputStream in) {field_1_gridset_flag = in.readShort();}
[ "public", "GridsetRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_gridset_flag", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public GridsetRecord(RecordInputStream in1){field_1_gridset_flag = in1.ReadShort();}
train
false
2,565
public PagedBytesDataInput clone() {PagedBytesDataInput clone = getDataInput();clone.setPosition(getPosition());return clone;}
[ "public", "PagedBytesDataInput", "clone", "(", ")", "{", "PagedBytesDataInput", "clone", "=", "getDataInput", "(", ")", ";", "clone", ".", "setPosition", "(", "getPosition", "(", ")", ")", ";", "return", "clone", ";", "}" ]
public override object Clone(){PagedBytesDataInput clone = outerInstance.GetDataInput();clone.SetPosition(GetPosition());return clone;}
train
false
2,566
public MissingObjectException(AbbreviatedObjectId id, int type) {super(MessageFormat.format(JGitText.get().missingObject, Constants.typeString(type), id.name()));missing = null;}
[ "public", "MissingObjectException", "(", "AbbreviatedObjectId", "id", ",", "int", "type", ")", "{", "super", "(", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "missingObject", ",", "Constants", ".", "typeString", "(", "type", ")", ",", "id", ".", "name", "(", ")", ")", ")", ";", "missing", "=", "null", ";", "}" ]
public MissingObjectException(AbbreviatedObjectId id, int type) : base(MessageFormat.Format(JGitText.Get().missingObject, Constants.TypeString(type), id.Name)){missing = null;}
train
false
2,567
public void getName(byte[] buffer, int offset) {System.arraycopy(path, pathOffset, buffer, offset, pathLen - pathOffset);}
[ "public", "void", "getName", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ")", "{", "System", ".", "arraycopy", "(", "path", ",", "pathOffset", ",", "buffer", ",", "offset", ",", "pathLen", "-", "pathOffset", ")", ";", "}" ]
public virtual void GetName(byte[] buffer, int offset){System.Array.Copy(path, pathOffset, buffer, offset, pathLen - pathOffset);}
train
false
2,568
public List<? extends CombinedHunkHeader> getHunks() {return (List<CombinedHunkHeader>) super.getHunks();}
[ "public", "List", "<", "?", "extends", "CombinedHunkHeader", ">", "getHunks", "(", ")", "{", "return", "(", "List", "<", "CombinedHunkHeader", ">", ")", "super", ".", "getHunks", "(", ")", ";", "}" ]
public override IList<HunkHeader> GetHunks(){return base.GetHunks();}
train
false
2,569
public long getPointer() {if (currentBlock == null) {return 0;} else {return (numBlocks * ((long) blockSize)) + upto;}}
[ "public", "long", "getPointer", "(", ")", "{", "if", "(", "currentBlock", "==", "null", ")", "{", "return", "0", ";", "}", "else", "{", "return", "(", "numBlocks", "*", "(", "(", "long", ")", "blockSize", ")", ")", "+", "upto", ";", "}", "}" ]
public long GetPointer(){if (currentBlock == null){return 0;}else{return (blocks.Count * ((long)blockSize)) + upto;}}
train
false
2,570
public PendingTaskCount countPendingDecisionTasks(CountPendingDecisionTasksRequest request) {request = beforeClientExecution(request);return executeCountPendingDecisionTasks(request);}
[ "public", "PendingTaskCount", "countPendingDecisionTasks", "(", "CountPendingDecisionTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCountPendingDecisionTasks", "(", "request", ")", ";", "}" ]
public virtual CountPendingDecisionTasksResponse CountPendingDecisionTasks(CountPendingDecisionTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountPendingDecisionTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = CountPendingDecisionTasksResponseUnmarshaller.Instance;return Invoke<CountPendingDecisionTasksResponse>(request, options);}
train
true
2,571
public ListStackResourcesResult listStackResources(ListStackResourcesRequest request) {request = beforeClientExecution(request);return executeListStackResources(request);}
[ "public", "ListStackResourcesResult", "listStackResources", "(", "ListStackResourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListStackResources", "(", "request", ")", ";", "}" ]
public virtual ListStackResourcesResponse ListStackResources(ListStackResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStackResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStackResourcesResponseUnmarshaller.Instance;return Invoke<ListStackResourcesResponse>(request, options);}
train
true
2,573
public void writeFields() throws IOException {if (currentPutField == null) {throw new NotActiveException();}writeFieldValues(currentPutField);}
[ "public", "void", "writeFields", "(", ")", "throws", "IOException", "{", "if", "(", "currentPutField", "==", "null", ")", "{", "throw", "new", "NotActiveException", "(", ")", ";", "}", "writeFieldValues", "(", "currentPutField", ")", ";", "}" ]
public virtual void writeFields(){throw new System.NotImplementedException();}
train
false
2,574
public Result getResult() {return status;}
[ "public", "Result", "getResult", "(", ")", "{", "return", "status", ";", "}" ]
public virtual ReceiveCommand.Result GetResult(){return status;}
train
false
2,575
public AssignIpv6AddressesResult assignIpv6Addresses(AssignIpv6AddressesRequest request) {request = beforeClientExecution(request);return executeAssignIpv6Addresses(request);}
[ "public", "AssignIpv6AddressesResult", "assignIpv6Addresses", "(", "AssignIpv6AddressesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssignIpv6Addresses", "(", "request", ")", ";", "}" ]
public virtual AssignIpv6AddressesResponse AssignIpv6Addresses(AssignIpv6AddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssignIpv6AddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = AssignIpv6AddressesResponseUnmarshaller.Instance;return Invoke<AssignIpv6AddressesResponse>(request, options);}
train
true
2,576
public DBInstance modifyDBInstance(ModifyDBInstanceRequest request) {request = beforeClientExecution(request);return executeModifyDBInstance(request);}
[ "public", "DBInstance", "modifyDBInstance", "(", "ModifyDBInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyDBInstance", "(", "request", ")", ";", "}" ]
public virtual ModifyDBInstanceResponse ModifyDBInstance(ModifyDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBInstanceResponseUnmarshaller.Instance;return Invoke<ModifyDBInstanceResponse>(request, options);}
train
true
2,577
public RemoveAttributesFromFindingsResult removeAttributesFromFindings(RemoveAttributesFromFindingsRequest request) {request = beforeClientExecution(request);return executeRemoveAttributesFromFindings(request);}
[ "public", "RemoveAttributesFromFindingsResult", "removeAttributesFromFindings", "(", "RemoveAttributesFromFindingsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRemoveAttributesFromFindings", "(", "request", ")", ";", "}" ]
public virtual RemoveAttributesFromFindingsResponse RemoveAttributesFromFindings(RemoveAttributesFromFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAttributesFromFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAttributesFromFindingsResponseUnmarshaller.Instance;return Invoke<RemoveAttributesFromFindingsResponse>(request, options);}
train
true
2,578
public JoinDocFreqValueSource(String field, String qfield) {super(field);this.qfield = qfield;}
[ "public", "JoinDocFreqValueSource", "(", "String", "field", ",", "String", "qfield", ")", "{", "super", "(", "field", ")", ";", "this", ".", "qfield", "=", "qfield", ";", "}" ]
public JoinDocFreqValueSource(string field, string qfield): base(field){this.m_qfield = qfield;}
train
false
2,579
public double readDouble() {return Double.longBitsToDouble(readLong());}
[ "public", "double", "readDouble", "(", ")", "{", "return", "Double", ".", "longBitsToDouble", "(", "readLong", "(", ")", ")", ";", "}" ]
public virtual double ReadDouble(){return delegate1.ReadDouble();}
train
false
2,580
public DescribeDirectoryConfigsResult describeDirectoryConfigs(DescribeDirectoryConfigsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectoryConfigs(request);}
[ "public", "DescribeDirectoryConfigsResult", "describeDirectoryConfigs", "(", "DescribeDirectoryConfigsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDirectoryConfigs", "(", "request", ")", ";", "}" ]
public virtual DescribeDirectoryConfigsResponse DescribeDirectoryConfigs(DescribeDirectoryConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDirectoryConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDirectoryConfigsResponseUnmarshaller.Instance;return Invoke<DescribeDirectoryConfigsResponse>(request, options);}
train
true
2,581
public GetAccountResult getAccount(GetAccountRequest request) {request = beforeClientExecution(request);return executeGetAccount(request);}
[ "public", "GetAccountResult", "getAccount", "(", "GetAccountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetAccount", "(", "request", ")", ";", "}" ]
public virtual GetAccountResponse GetAccount(GetAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAccountResponseUnmarshaller.Instance;return Invoke<GetAccountResponse>(request, options);}
train
true
2,582
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[BOUNDSHEET]\n");buffer.append(" .bof = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");buffer.append(" .visibility = ").append(HexDump.shortToHex(field_2_visibility)).append("\n");buffer.append(" .type = ").append(HexDump.byteToHex(field_3_type)).append("\n");buffer.append(" .sheetname = ").append(getSheetname()).append("\n");buffer.append("[/BOUNDSHEET]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[BOUNDSHEET]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .bof = \"", ")", ".", "append", "(", "HexDump", ".", "intToHex", "(", "getPositionOfBof", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .visibility = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "field_2_visibility", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .type = \"", ")", ".", "append", "(", "HexDump", ".", "byteToHex", "(", "field_3_type", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .sheetname = \"", ")", ".", "append", "(", "getSheetname", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/BOUNDSHEET]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[BOUNDSHEET]\n");buffer.Append(" .bof = ").Append(HexDump.IntToHex(PositionOfBof)).Append("\n");buffer.Append(" .visibility = ").Append(HexDump.ShortToHex(field_2_visibility)).Append("\n");buffer.Append(" .type = ").Append(HexDump.ByteToHex(field_3_type)).Append("\n");buffer.Append(" .sheetname = ").Append(Sheetname).Append("\n");buffer.Append("[/BOUNDSHEET]\n");return buffer.ToString();}
train
false
2,583
public short getShortRawValue(final short holder){return ( short ) getRawValue(holder);}
[ "public", "short", "getShortRawValue", "(", "final", "short", "holder", ")", "{", "return", "(", "short", ")", "getRawValue", "(", "holder", ")", ";", "}" ]
public short GetShortRawValue(short holder){return (short)this.GetRawValue(holder);}
train
false
2,584
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {double result;try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.singleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);result = evaluate(getYear(d0), (int) (d1 - 1), (int) d2);NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ",", "ValueEval", "arg2", ")", "{", "double", "result", ";", "try", "{", "double", "d0", "=", "NumericFunction", ".", "singleOperandEvaluate", "(", "arg0", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "double", "d1", "=", "NumericFunction", ".", "singleOperandEvaluate", "(", "arg1", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "double", "d2", "=", "NumericFunction", ".", "singleOperandEvaluate", "(", "arg2", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "result", "=", "evaluate", "(", "getYear", "(", "d0", ")", ",", "(", "int", ")", "(", "d1", "-", "1", ")", ",", "(", "int", ")", "d2", ")", ";", "NumericFunction", ".", "checkValue", "(", "result", ")", ";", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "return", "new", "NumberEval", "(", "result", ")", ";", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);double d2 = NumericFunction.SingleOperandEvaluate(arg2, srcRowIndex, srcColumnIndex);result = Evaluate(GetYear(d0), (int)d1, (int)d2);NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
train
false
2,585
public GetPublicKeyConfigResult getPublicKeyConfig(GetPublicKeyConfigRequest request) {request = beforeClientExecution(request);return executeGetPublicKeyConfig(request);}
[ "public", "GetPublicKeyConfigResult", "getPublicKeyConfig", "(", "GetPublicKeyConfigRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetPublicKeyConfig", "(", "request", ")", ";", "}" ]
public virtual GetPublicKeyConfigResponse GetPublicKeyConfig(GetPublicKeyConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPublicKeyConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPublicKeyConfigResponseUnmarshaller.Instance;return Invoke<GetPublicKeyConfigResponse>(request, options);}
train
true
2,586
public URIish setUser(String n) {final URIish r = new URIish(this);r.user = n;return r;}
[ "public", "URIish", "setUser", "(", "String", "n", ")", "{", "final", "URIish", "r", "=", "new", "URIish", "(", "this", ")", ";", "r", ".", "user", "=", "n", ";", "return", "r", ";", "}" ]
public virtual NGit.Transport.URIish SetUser(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.user = n;return r;}
train
false
2,587
public EscherArrayProperty(short id, int complexSize) {super(id, complexSize);emptyComplexPart = (complexSize == 0);}
[ "public", "EscherArrayProperty", "(", "short", "id", ",", "int", "complexSize", ")", "{", "super", "(", "id", ",", "complexSize", ")", ";", "emptyComplexPart", "=", "(", "complexSize", "==", "0", ")", ";", "}" ]
public EscherArrayProperty(short id, byte[] complexData): base(id, CheckComplexData(complexData)){emptyComplexPart = complexData.Length == 0;}
train
false
2,588
public String toASCIIString() {return format(false, true);}
[ "public", "String", "toASCIIString", "(", ")", "{", "return", "format", "(", "false", ",", "true", ")", ";", "}" ]
public virtual string ToASCIIString(){return Format(false, true);}
train
false
2,590
public GetContactResult getContact(GetContactRequest request) {request = beforeClientExecution(request);return executeGetContact(request);}
[ "public", "GetContactResult", "getContact", "(", "GetContactRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetContact", "(", "request", ")", ";", "}" ]
public virtual GetContactResponse GetContact(GetContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetContactRequestMarshaller.Instance;options.ResponseUnmarshaller = GetContactResponseUnmarshaller.Instance;return Invoke<GetContactResponse>(request, options);}
train
true
2,591
public void removeHiddenCount() {remove1stProperty(PropertyIDMap.PID_HIDDENCOUNT);}
[ "public", "void", "removeHiddenCount", "(", ")", "{", "remove1stProperty", "(", "PropertyIDMap", ".", "PID_HIDDENCOUNT", ")", ";", "}" ]
public void RemoveHiddenCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HIDDENCOUNT);}
train
false
2,592
public GetRestApisResult getRestApis(GetRestApisRequest request) {request = beforeClientExecution(request);return executeGetRestApis(request);}
[ "public", "GetRestApisResult", "getRestApis", "(", "GetRestApisRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetRestApis", "(", "request", ")", ";", "}" ]
public virtual GetRestApisResponse GetRestApis(GetRestApisRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRestApisRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRestApisResponseUnmarshaller.Instance;return Invoke<GetRestApisResponse>(request, options);}
train
true
2,593
public ArrayPredictionContext(PredictionContext[] parents, int[] returnStates) {super(calculateHashCode(parents, returnStates));assert parents!=null && parents.length>0;assert returnStates!=null && returnStates.length>0;this.parents = parents;this.returnStates = returnStates;}
[ "public", "ArrayPredictionContext", "(", "PredictionContext", "[", "]", "parents", ",", "int", "[", "]", "returnStates", ")", "{", "super", "(", "calculateHashCode", "(", "parents", ",", "returnStates", ")", ")", ";", "assert", "parents", "!=", "null", "&&", "parents", ".", "length", ">", "0", ";", "assert", "returnStates", "!=", "null", "&&", "returnStates", ".", "length", ">", "0", ";", "this", ".", "parents", "=", "parents", ";", "this", ".", "returnStates", "=", "returnStates", ";", "}" ]
public ArrayPredictionContext(PredictionContext[] parents, int[] returnStates): base(CalculateHashCode(parents, returnStates)){this.parents = parents;this.returnStates = returnStates;}
train
false
2,594
public CharBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
[ "public", "CharBuffer", "compact", "(", ")", "{", "System", ".", "arraycopy", "(", "backingArray", ",", "position", "+", "offset", ",", "backingArray", ",", "offset", ",", "remaining", "(", ")", ")", ";", "position", "=", "limit", "-", "position", ";", "limit", "=", "capacity", ";", "mark", "=", "UNSET_MARK", ";", "return", "this", ";", "}" ]
public override java.nio.CharBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
train
false
2,595
public DeleteStageResult deleteStage(DeleteStageRequest request) {request = beforeClientExecution(request);return executeDeleteStage(request);}
[ "public", "DeleteStageResult", "deleteStage", "(", "DeleteStageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteStage", "(", "request", ")", ";", "}" ]
public virtual DeleteStageResponse DeleteStage(DeleteStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStageResponseUnmarshaller.Instance;return Invoke<DeleteStageResponse>(request, options);}
train
true
2,596
public Object[] toArray() {return elements.clone();}
[ "public", "Object", "[", "]", "toArray", "(", ")", "{", "return", "elements", ".", "clone", "(", ")", ";", "}" ]
public virtual object[] toArray(){return (object[])elements.Clone();}
train
false
2,597
public synchronized void mark(int ignoredReadlimit) {_marked_offset = _current_offset;_marked_offset_count = Math.max(0, _current_block_count - 1);}
[ "public", "synchronized", "void", "mark", "(", "int", "ignoredReadlimit", ")", "{", "_marked_offset", "=", "_current_offset", ";", "_marked_offset_count", "=", "Math", ".", "max", "(", "0", ",", "_current_block_count", "-", "1", ")", ";", "}" ]
public override void Mark(int ignoredReadlimit){delegate1.Mark(ignoredReadlimit);}
train
false
2,598
public String toString() {return "NOT " + a.toString(); }
[ "public", "String", "toString", "(", ")", "{", "return", "\"NOT \"", "+", "a", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){return "NOT " + a.ToString();}
train
false
2,599
public void setExpectDataAfterPackFooter(boolean e) {expectDataAfterPackFooter = e;}
[ "public", "void", "setExpectDataAfterPackFooter", "(", "boolean", "e", ")", "{", "expectDataAfterPackFooter", "=", "e", ";", "}" ]
public virtual void SetExpectDataAfterPackFooter(bool e){expectDataAfterPackFooter = e;}
train
false
2,600
public Request<DeletePublicAccessBlockRequest> marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest) {if (deletePublicAccessBlockRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<DeletePublicAccessBlockRequest> request = new DefaultRequest<DeletePublicAccessBlockRequest>(deletePublicAccessBlockRequest, "AWSS3Control");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicAccessBlockRequest.getAccountId() != null) {request.addHeader("x-amz-account-id", StringUtils.fromString(deletePublicAccessBlockRequest.getAccountId()));}String uriResourcePath = "/v20180820/configuration/publicAccessBlock";request.setResourcePath(uriResourcePath);return request;}
[ "public", "Request", "<", "DeletePublicAccessBlockRequest", ">", "marshall", "(", "DeletePublicAccessBlockRequest", "deletePublicAccessBlockRequest", ")", "{", "if", "(", "deletePublicAccessBlockRequest", "==", "null", ")", "{", "throw", "new", "SdkClientException", "(", "\"Invalid argument passed to marshall(...)\"", ")", ";", "}", "Request", "<", "DeletePublicAccessBlockRequest", ">", "request", "=", "new", "DefaultRequest", "<", "DeletePublicAccessBlockRequest", ">", "(", "deletePublicAccessBlockRequest", ",", "\"AWSS3Control\"", ")", ";", "request", ".", "setHttpMethod", "(", "HttpMethodName", ".", "DELETE", ")", ";", "if", "(", "deletePublicAccessBlockRequest", ".", "getAccountId", "(", ")", "!=", "null", ")", "{", "request", ".", "addHeader", "(", "\"x-amz-account-id\"", ",", "StringUtils", ".", "fromString", "(", "deletePublicAccessBlockRequest", ".", "getAccountId", "(", ")", ")", ")", ";", "}", "String", "uriResourcePath", "=", "\"/v20180820/configuration/publicAccessBlock\"", ";", "request", ".", "setResourcePath", "(", "uriResourcePath", ")", ";", "return", "request", ";", "}" ]
public IRequest Marshall(DeletePublicAccessBlockRequest deletePublicAccessBlockRequest){IRequest request = new DefaultRequest(deletePublicAccessBlockRequest, "AmazonS3");request.HttpMethod = "DELETE";if (string.IsNullOrEmpty(deletePublicAccessBlockRequest.BucketName))throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "deletePublicAccessBlockRequest.BucketName");request.MarshallerVersion = 2;request.ResourcePath = string.Concat("/", S3Transforms.ToStringValue(deletePublicAccessBlockRequest.BucketName));request.AddSubResource("publicAccessBlock");request.UseQueryString = true;return request;}
train
true
2,601
public FetchResult getFetchResult() {return this.fetchResult;}
[ "public", "FetchResult", "getFetchResult", "(", ")", "{", "return", "this", ".", "fetchResult", ";", "}" ]
public virtual FetchResult GetFetchResult(){return this.fetchResult;}
train
false
2,602
public GetJourneyExecutionMetricsResult getJourneyExecutionMetrics(GetJourneyExecutionMetricsRequest request) {request = beforeClientExecution(request);return executeGetJourneyExecutionMetrics(request);}
[ "public", "GetJourneyExecutionMetricsResult", "getJourneyExecutionMetrics", "(", "GetJourneyExecutionMetricsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetJourneyExecutionMetrics", "(", "request", ")", ";", "}" ]
public virtual GetJourneyExecutionMetricsResponse GetJourneyExecutionMetrics(GetJourneyExecutionMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyExecutionMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyExecutionMetricsResponseUnmarshaller.Instance;return Invoke<GetJourneyExecutionMetricsResponse>(request, options);}
train
false
2,604
@Override public String toString() {StringBuilder buf = new StringBuilder();buf.append(getClass().getName());buf.append(", status: capacity=");buf.append(capacity);buf.append(" position=");buf.append(position);buf.append(" limit=");buf.append(limit);return buf.toString();}
[ "@", "Override", "public", "String", "toString", "(", ")", "{", "StringBuilder", "buf", "=", "new", "StringBuilder", "(", ")", ";", "buf", ".", "append", "(", "getClass", "(", ")", ".", "getName", "(", ")", ")", ";", "buf", ".", "append", "(", "\", status: capacity=\"", ")", ";", "buf", ".", "append", "(", "capacity", ")", ";", "buf", ".", "append", "(", "\" position=\"", ")", ";", "buf", ".", "append", "(", "position", ")", ";", "buf", ".", "append", "(", "\" limit=\"", ")", ";", "buf", ".", "append", "(", "limit", ")", ";", "return", "buf", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){java.lang.StringBuilder buf = new java.lang.StringBuilder();buf.append(GetType().FullName);buf.append(", status: capacity=");buf.append(_capacity);buf.append(" position=");buf.append(_position);buf.append(" limit=");buf.append(_limit);return buf.ToString();}
train
false
2,605
public UpdateStreamingDistributionResult updateStreamingDistribution(UpdateStreamingDistributionRequest request) {request = beforeClientExecution(request);return executeUpdateStreamingDistribution(request);}
[ "public", "UpdateStreamingDistributionResult", "updateStreamingDistribution", "(", "UpdateStreamingDistributionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateStreamingDistribution", "(", "request", ")", ";", "}" ]
public virtual UpdateStreamingDistributionResponse UpdateStreamingDistribution(UpdateStreamingDistributionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStreamingDistributionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStreamingDistributionResponseUnmarshaller.Instance;return Invoke<UpdateStreamingDistributionResponse>(request, options);}
train
true
2,606
public DeleteVaultNotificationsRequest(String vaultName) {setVaultName(vaultName);}
[ "public", "DeleteVaultNotificationsRequest", "(", "String", "vaultName", ")", "{", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public DeleteVaultNotificationsRequest(string vaultName){_vaultName = vaultName;}
train
false
2,607
public AttachNetworkInterfaceResult attachNetworkInterface(AttachNetworkInterfaceRequest request) {request = beforeClientExecution(request);return executeAttachNetworkInterface(request);}
[ "public", "AttachNetworkInterfaceResult", "attachNetworkInterface", "(", "AttachNetworkInterfaceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachNetworkInterface", "(", "request", ")", ";", "}" ]
public virtual AttachNetworkInterfaceResponse AttachNetworkInterface(AttachNetworkInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachNetworkInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachNetworkInterfaceResponseUnmarshaller.Instance;return Invoke<AttachNetworkInterfaceResponse>(request, options);}
train
true
2,608
public boolean equals( Object o ) {return o instanceof HungarianStemmer;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "return", "o", "instanceof", "HungarianStemmer", ";", "}" ]
public override bool Equals(object o){return o is HungarianStemmer;}
train
false
2,609
public DescribeDatasetResult describeDataset(DescribeDatasetRequest request) {request = beforeClientExecution(request);return executeDescribeDataset(request);}
[ "public", "DescribeDatasetResult", "describeDataset", "(", "DescribeDatasetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeDataset", "(", "request", ")", ";", "}" ]
public virtual DescribeDatasetResponse DescribeDataset(DescribeDatasetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance;return Invoke<DescribeDatasetResponse>(request, options);}
train
true
2,610
public UpdateShardCountResult updateShardCount(UpdateShardCountRequest request) {request = beforeClientExecution(request);return executeUpdateShardCount(request);}
[ "public", "UpdateShardCountResult", "updateShardCount", "(", "UpdateShardCountRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateShardCount", "(", "request", ")", ";", "}" ]
public virtual UpdateShardCountResponse UpdateShardCount(UpdateShardCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateShardCountRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateShardCountResponseUnmarshaller.Instance;return Invoke<UpdateShardCountResponse>(request, options);}
train
true
2,611
public String getText() {return getText(Interval.of(0,size()-1));}
[ "public", "String", "getText", "(", ")", "{", "return", "getText", "(", "Interval", ".", "of", "(", "0", ",", "size", "(", ")", "-", "1", ")", ")", ";", "}" ]
public virtual string GetText(){Fill();return GetText(Interval.Of(0, Size - 1));}
train
false
2,612
public BoundSheetRecord[] getBoundSheetRecords() {return boundSheetRecords.toArray(new BoundSheetRecord[0]);}
[ "public", "BoundSheetRecord", "[", "]", "getBoundSheetRecords", "(", ")", "{", "return", "boundSheetRecords", ".", "toArray", "(", "new", "BoundSheetRecord", "[", "0", "]", ")", ";", "}" ]
public BoundSheetRecord[] GetBoundSheetRecords(){return (BoundSheetRecord[])boundSheetRecords.ToArray(typeof(BoundSheetRecord));}
train
false
2,613
public boolean matches(FooterKey key) {final byte[] kRaw = key.raw;final int len = kRaw.length;int bPtr = keyStart;if (keyEnd - bPtr != len)return false;for (int kPtr = 0; kPtr < len;) {byte b = buffer[bPtr++];if ('A' <= b && b <= 'Z')b += (byte) ('a' - 'A');if (b != kRaw[kPtr++])return false;}return true;}
[ "public", "boolean", "matches", "(", "FooterKey", "key", ")", "{", "final", "byte", "[", "]", "kRaw", "=", "key", ".", "raw", ";", "final", "int", "len", "=", "kRaw", ".", "length", ";", "int", "bPtr", "=", "keyStart", ";", "if", "(", "keyEnd", "-", "bPtr", "!=", "len", ")", "return", "false", ";", "for", "(", "int", "kPtr", "=", "0", ";", "kPtr", "<", "len", ";", ")", "{", "byte", "b", "=", "buffer", "[", "bPtr", "++", "]", ";", "if", "(", "'A'", "<=", "b", "&&", "b", "<=", "'Z'", ")", "b", "+=", "(", "byte", ")", "(", "'a'", "-", "'A'", ")", ";", "if", "(", "b", "!=", "kRaw", "[", "kPtr", "++", "]", ")", "return", "false", ";", "}", "return", "true", ";", "}" ]
public bool Matches(FooterKey key){byte[] kRaw = key.raw;int len = kRaw.Length;int bPtr = keyStart;if (keyEnd - bPtr != len){return false;}for (int kPtr = 0; kPtr < len; ){byte b = buffer[bPtr++];if ('A' <= b && ((sbyte)b) <= 'Z'){b += (byte)('a') - (byte)('A');}if (b != kRaw[kPtr++]){return false;}}return true;}
train
false
2,614
public CreateUserResult createUser(CreateUserRequest request) {request = beforeClientExecution(request);return executeCreateUser(request);}
[ "public", "CreateUserResult", "createUser", "(", "CreateUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateUser", "(", "request", ")", ";", "}" ]
public virtual CreateUserResponse CreateUser(CreateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUserResponseUnmarshaller.Instance;return Invoke<CreateUserResponse>(request, options);}
train
true
2,615
public S3Origin(String domainName, String originAccessIdentity) {setDomainName(domainName);setOriginAccessIdentity(originAccessIdentity);}
[ "public", "S3Origin", "(", "String", "domainName", ",", "String", "originAccessIdentity", ")", "{", "setDomainName", "(", "domainName", ")", ";", "setOriginAccessIdentity", "(", "originAccessIdentity", ")", ";", "}" ]
public S3Origin(string domainName, string originAccessIdentity){_domainName = domainName;_originAccessIdentity = originAccessIdentity;}
train
false
2,616
public StartTopicsDetectionJobResult startTopicsDetectionJob(StartTopicsDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartTopicsDetectionJob(request);}
[ "public", "StartTopicsDetectionJobResult", "startTopicsDetectionJob", "(", "StartTopicsDetectionJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartTopicsDetectionJob", "(", "request", ")", ";", "}" ]
public virtual StartTopicsDetectionJobResponse StartTopicsDetectionJob(StartTopicsDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartTopicsDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartTopicsDetectionJobResponseUnmarshaller.Instance;return Invoke<StartTopicsDetectionJobResponse>(request, options);}
train
true
2,617
public ClusterSecurityGroup revokeClusterSecurityGroupIngress(RevokeClusterSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeClusterSecurityGroupIngress(request);}
[ "public", "ClusterSecurityGroup", "revokeClusterSecurityGroupIngress", "(", "RevokeClusterSecurityGroupIngressRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRevokeClusterSecurityGroupIngress", "(", "request", ")", ";", "}" ]
public virtual RevokeClusterSecurityGroupIngressResponse RevokeClusterSecurityGroupIngress(RevokeClusterSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeClusterSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeClusterSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeClusterSecurityGroupIngressResponse>(request, options);}
train
true
2,618
public void enterRule(ParserRuleContext localctx, int state, int ruleIndex) {setState(state);_ctx = localctx;_ctx.start = _input.LT(1);if (_buildParseTrees) addContextToParseTree();if ( _parseListeners != null) triggerEnterRuleEvent();}
[ "public", "void", "enterRule", "(", "ParserRuleContext", "localctx", ",", "int", "state", ",", "int", "ruleIndex", ")", "{", "setState", "(", "state", ")", ";", "_ctx", "=", "localctx", ";", "_ctx", ".", "start", "=", "_input", ".", "LT", "(", "1", ")", ";", "if", "(", "_buildParseTrees", ")", "addContextToParseTree", "(", ")", ";", "if", "(", "_parseListeners", "!=", "null", ")", "triggerEnterRuleEvent", "(", ")", ";", "}" ]
public virtual void EnterRule(ParserRuleContext localctx, int state, int ruleIndex){State = state;_ctx = localctx;_ctx.Start = _input.LT(1);if (_buildParseTrees){AddContextToParseTree();}if (_parseListeners != null){TriggerEnterRuleEvent();}}
train
false
2,619
public ObjectReader newReader() {return new WindowCursor(db);}
[ "public", "ObjectReader", "newReader", "(", ")", "{", "return", "new", "WindowCursor", "(", "db", ")", ";", "}" ]
public override ObjectReader NewReader(){return new NGit.Storage.File.WindowCursor(db);}
train
false
2,620
@Override public int size() {return backingMap.size();}
[ "@", "Override", "public", "int", "size", "(", ")", "{", "return", "backingMap", ".", "size", "(", ")", ";", "}" ]
public override int size(){return this._enclosing._size;}
train
false
2,621
public static String pathToString(String[] path, int length) {if (length == 0) {return "";}StringBuilder sb = new StringBuilder();for(int i=0;i<length;i++) {String s = path[i];if (s.length() == 0) {throw new IllegalArgumentException("each path component must have length > 0 (got: \"\")");}int numChars = s.length();for(int j=0;j<numChars;j++) {char ch = s.charAt(j);if (ch == DELIM_CHAR || ch == ESCAPE_CHAR) {sb.append(ESCAPE_CHAR);}sb.append(ch);}sb.append(DELIM_CHAR);}sb.setLength(sb.length()-1);return sb.toString();}
[ "public", "static", "String", "pathToString", "(", "String", "[", "]", "path", ",", "int", "length", ")", "{", "if", "(", "length", "==", "0", ")", "{", "return", "\"\"", ";", "}", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "String", "s", "=", "path", "[", "i", "]", ";", "if", "(", "s", ".", "length", "(", ")", "==", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"each path component must have length > 0 (got: \\\"\\\")\"", ")", ";", "}", "int", "numChars", "=", "s", ".", "length", "(", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "numChars", ";", "j", "++", ")", "{", "char", "ch", "=", "s", ".", "charAt", "(", "j", ")", ";", "if", "(", "ch", "==", "DELIM_CHAR", "||", "ch", "==", "ESCAPE_CHAR", ")", "{", "sb", ".", "append", "(", "ESCAPE_CHAR", ")", ";", "}", "sb", ".", "append", "(", "ch", ")", ";", "}", "sb", ".", "append", "(", "DELIM_CHAR", ")", ";", "}", "sb", ".", "setLength", "(", "sb", ".", "length", "(", ")", "-", "1", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public static string PathToString(string[] path, int length){if (length == 0){return "";}StringBuilder sb = new StringBuilder();for (int i = 0; i < length; i++){string s = path[i];if (s.Length == 0){throw new System.ArgumentException("each path component must have length > 0 (got: \"\")");}int numChars = s.Length;for (int j = 0; j < numChars; j++){char ch = s[j];if (ch == DELIM_CHAR || ch == ESCAPE_CHAR){sb.Append(ESCAPE_CHAR);}sb.Append(ch);}sb.Append(DELIM_CHAR);}sb.Length = sb.Length - 1;return sb.ToString();}
train
false
2,622
public CancelSpotInstanceRequestsRequest(java.util.List<String> spotInstanceRequestIds) {setSpotInstanceRequestIds(spotInstanceRequestIds);}
[ "public", "CancelSpotInstanceRequestsRequest", "(", "java", ".", "util", ".", "List", "<", "String", ">", "spotInstanceRequestIds", ")", "{", "setSpotInstanceRequestIds", "(", "spotInstanceRequestIds", ")", ";", "}" ]
public CancelSpotInstanceRequestsRequest(List<string> spotInstanceRequestIds){_spotInstanceRequestIds = spotInstanceRequestIds;}
train
false
2,623
public String toString() {StringBuilder sb = new StringBuilder();sb.append('[');for (byte[] b : table) {if (b == null)continue;if (sb.length() > 1)sb.append(" , "); sb.append('"');sb.append(RawParseUtils.decode(b));sb.append('"');sb.append('(');sb.append(chainlength(b));sb.append(')');}sb.append(']');return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "'['", ")", ";", "for", "(", "byte", "[", "]", "b", ":", "table", ")", "{", "if", "(", "b", "==", "null", ")", "continue", ";", "if", "(", "sb", ".", "length", "(", ")", ">", "1", ")", "sb", ".", "append", "(", "\" , \"", ")", ";", "sb", ".", "append", "(", "'\"'", ")", ";", "sb", ".", "append", "(", "RawParseUtils", ".", "decode", "(", "b", ")", ")", ";", "sb", ".", "append", "(", "'\"'", ")", ";", "sb", ".", "append", "(", "'('", ")", ";", "sb", ".", "append", "(", "chainlength", "(", "b", ")", ")", ";", "sb", ".", "append", "(", "')'", ")", ";", "}", "sb", ".", "append", "(", "']'", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("(");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(" OR ");}r.Append(subfilters[i].ToString());}r.Append(")");return r.ToString();}
train
false
2,624
public GetConnectionResult getConnection(GetConnectionRequest request) {request = beforeClientExecution(request);return executeGetConnection(request);}
[ "public", "GetConnectionResult", "getConnection", "(", "GetConnectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetConnection", "(", "request", ")", ";", "}" ]
public virtual GetConnectionResponse GetConnection(GetConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConnectionResponseUnmarshaller.Instance;return Invoke<GetConnectionResponse>(request, options);}
train
true
2,625
public String toString() {return a+".."+b;}
[ "public", "String", "toString", "(", ")", "{", "return", "a", "+", "\"..\"", "+", "b", ";", "}" ]
public override string ToString(){return a + ".." + b;}
train
false
2,626
public AddNoteCommand notesAdd() {return new AddNoteCommand(repo);}
[ "public", "AddNoteCommand", "notesAdd", "(", ")", "{", "return", "new", "AddNoteCommand", "(", "repo", ")", ";", "}" ]
public virtual AddNoteCommand NotesAdd(){return new AddNoteCommand(repo);}
train
false
2,627
public static void fill(short[] array, int start, int end, short value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
[ "public", "static", "void", "fill", "(", "short", "[", "]", "array", ",", "int", "start", ",", "int", "end", ",", "short", "value", ")", "{", "Arrays", ".", "checkStartAndEnd", "(", "array", ".", "length", ",", "start", ",", "end", ")", ";", "for", "(", "int", "i", "=", "start", ";", "i", "<", "end", ";", "i", "++", ")", "{", "array", "[", "i", "]", "=", "value", ";", "}", "}" ]
public static void fill(short[] array, int start, int end, short value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}
train
false
2,628
public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerIndexedCustomAction)) {return false;}LexerIndexedCustomAction other = (LexerIndexedCustomAction)obj;return offset == other.offset&& action.equals(other.action);}
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "obj", "==", "this", ")", "{", "return", "true", ";", "}", "else", "if", "(", "!", "(", "obj", "instanceof", "LexerIndexedCustomAction", ")", ")", "{", "return", "false", ";", "}", "LexerIndexedCustomAction", "other", "=", "(", "LexerIndexedCustomAction", ")", "obj", ";", "return", "offset", "==", "other", ".", "offset", "&&", "action", ".", "equals", "(", "other", ".", "action", ")", ";", "}" ]
public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerIndexedCustomAction)){return false;}}Antlr4.Runtime.Atn.LexerIndexedCustomAction other = (Antlr4.Runtime.Atn.LexerIndexedCustomAction)obj;return offset == other.offset && action.Equals(other.action);}
train
false
2,629
public DeleteNamespaceAuthorizationRequest() {super("cr", "2016-06-07", "DeleteNamespaceAuthorization", "cr");setUriPattern("/namespace/[Namespace]/authorizations/[AuthorizeId]");setMethod(MethodType.DELETE);}
[ "public", "DeleteNamespaceAuthorizationRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"DeleteNamespaceAuthorization\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/namespace/[Namespace]/authorizations/[AuthorizeId]\"", ")", ";", "setMethod", "(", "MethodType", ".", "DELETE", ")", ";", "}" ]
public DeleteNamespaceAuthorizationRequest(): base("cr", "2016-06-07", "DeleteNamespaceAuthorization", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations/[AuthorizeId]";Method = MethodType.DELETE;}
train
false
2,630
public static final int author(byte[] b, int ptr) {final int sz = b.length;if (ptr == 0)ptr += 46; while (ptr < sz && b[ptr] == 'p')ptr += 48; return match(b, ptr, author);}
[ "public", "static", "final", "int", "author", "(", "byte", "[", "]", "b", ",", "int", "ptr", ")", "{", "final", "int", "sz", "=", "b", ".", "length", ";", "if", "(", "ptr", "==", "0", ")", "ptr", "+=", "46", ";", "while", "(", "ptr", "<", "sz", "&&", "b", "[", "ptr", "]", "==", "'p'", ")", "ptr", "+=", "48", ";", "return", "match", "(", "b", ",", "ptr", ",", "author", ")", ";", "}" ]
public static int Author(byte[] b, int ptr){int sz = b.Length;if (ptr == 0){ptr += 46;}while (ptr < sz && b[ptr] == 'p'){ptr += 48;}return Match(b, ptr, ObjectChecker.author);}
train
false
2,631
public DescribeHostsResult describeHosts(DescribeHostsRequest request) {request = beforeClientExecution(request);return executeDescribeHosts(request);}
[ "public", "DescribeHostsResult", "describeHosts", "(", "DescribeHostsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeHosts", "(", "request", ")", ";", "}" ]
public virtual DescribeHostsResponse DescribeHosts(DescribeHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostsResponseUnmarshaller.Instance;return Invoke<DescribeHostsResponse>(request, options);}
train
true
2,632
public void reset(byte[] bytes) {reset(bytes, 0, bytes.length);}
[ "public", "void", "reset", "(", "byte", "[", "]", "bytes", ")", "{", "reset", "(", "bytes", ",", "0", ",", "bytes", ".", "length", ")", ";", "}" ]
public void Reset(byte[] bytes){Reset(bytes, 0, bytes.Length);}
train
false
2,633
public OpenNLPChunkerFilterFactory(Map<String,String> args) {super(args);chunkerModelFile = get(args, CHUNKER_MODEL);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "OpenNLPChunkerFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "chunkerModelFile", "=", "get", "(", "args", ",", "CHUNKER_MODEL", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public OpenNLPChunkerFilterFactory(IDictionary<string, string> args): base(args){chunkerModelFile = Get(args, CHUNKER_MODEL);if (args.Any()){throw new ArgumentException("Unknown parameters: " + args);}}
train
false
2,634
public String toString() {StringBuilder r = new StringBuilder();r.append("Ref["); r.append(getName());r.append('=');r.append(ObjectId.toString(getObjectId()));r.append('(');r.append(updateIndex); r.append(")]"); return r.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "r", "=", "new", "StringBuilder", "(", ")", ";", "r", ".", "append", "(", "\"Ref[\"", ")", ";", "r", ".", "append", "(", "getName", "(", ")", ")", ";", "r", ".", "append", "(", "'='", ")", ";", "r", ".", "append", "(", "ObjectId", ".", "toString", "(", "getObjectId", "(", ")", ")", ")", ";", "r", ".", "append", "(", "'('", ")", ";", "r", ".", "append", "(", "updateIndex", ")", ";", "r", ".", "append", "(", "\")]\"", ")", ";", "return", "r", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("Ref[");r.Append(GetName());r.Append('=');r.Append(ObjectId.ToString(GetObjectId()));r.Append(']');return r.ToString();}
train
false
2,635
public StartStreamEncryptionResult startStreamEncryption(StartStreamEncryptionRequest request) {request = beforeClientExecution(request);return executeStartStreamEncryption(request);}
[ "public", "StartStreamEncryptionResult", "startStreamEncryption", "(", "StartStreamEncryptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartStreamEncryption", "(", "request", ")", ";", "}" ]
public virtual StartStreamEncryptionResponse StartStreamEncryption(StartStreamEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartStreamEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartStreamEncryptionResponseUnmarshaller.Instance;return Invoke<StartStreamEncryptionResponse>(request, options);}
train
true
2,636
public DeleteCloudFrontOriginAccessIdentityRequest(String id, String ifMatch) {setId(id);setIfMatch(ifMatch);}
[ "public", "DeleteCloudFrontOriginAccessIdentityRequest", "(", "String", "id", ",", "String", "ifMatch", ")", "{", "setId", "(", "id", ")", ";", "setIfMatch", "(", "ifMatch", ")", ";", "}" ]
public DeleteCloudFrontOriginAccessIdentityRequest(string id, string ifMatch){_id = id;_ifMatch = ifMatch;}
train
false
2,637
public int getWidth() {return mImage.getWidth();}
[ "public", "int", "getWidth", "(", ")", "{", "return", "mImage", ".", "getWidth", "(", ")", ";", "}" ]
public virtual int getWidth(){return mBitmap.getWidth();}
train
false
2,638
public List<String> getUntrackedFolders() {LinkedList<String> ret = new LinkedList<>(untrackedFolders);if (!untrackedParentFolders.isEmpty()) {String toBeAdded = untrackedParentFolders.getLast();while (!ret.isEmpty() && ret.getLast().startsWith(toBeAdded))ret.removeLast();ret.addLast(toBeAdded);}return ret;}
[ "public", "List", "<", "String", ">", "getUntrackedFolders", "(", ")", "{", "LinkedList", "<", "String", ">", "ret", "=", "new", "LinkedList", "<", ">", "(", "untrackedFolders", ")", ";", "if", "(", "!", "untrackedParentFolders", ".", "isEmpty", "(", ")", ")", "{", "String", "toBeAdded", "=", "untrackedParentFolders", ".", "getLast", "(", ")", ";", "while", "(", "!", "ret", ".", "isEmpty", "(", ")", "&&", "ret", ".", "getLast", "(", ")", ".", "startsWith", "(", "toBeAdded", ")", ")", "ret", ".", "removeLast", "(", ")", ";", "ret", ".", "addLast", "(", "toBeAdded", ")", ";", "}", "return", "ret", ";", "}" ]
public virtual IList<string> GetUntrackedFolders(){List<string> ret = new List<string>(untrackedFolders);if (!untrackedParentFolders.IsEmpty()){string toBeAdded = untrackedParentFolders.GetLast();while (!ret.IsEmpty() && ret.GetLast().StartsWith(toBeAdded)){ret.RemoveLast();}ret.AddLast(toBeAdded);}return ret;}
train
false
2,639
public CredentialsProviderUserInfo(Session session,CredentialsProvider credentialsProvider) {this.uri = createURI(session);this.provider = credentialsProvider;}
[ "public", "CredentialsProviderUserInfo", "(", "Session", "session", ",", "CredentialsProvider", "credentialsProvider", ")", "{", "this", ".", "uri", "=", "createURI", "(", "session", ")", ";", "this", ".", "provider", "=", "credentialsProvider", ";", "}" ]
public CredentialsProviderUserInfo(Session session, CredentialsProvider credentialsProvider){this.uri = CreateURI(session);this.provider = credentialsProvider;}
train
false
2,640
public String toString() {return "[SELECTION]\n" +" .pane = " + HexDump.byteToHex(getPane()) + "\n" +" .activecellrow = " + HexDump.shortToHex(getActiveCellRow()) + "\n" +" .activecellcol = " + HexDump.shortToHex(getActiveCellCol()) + "\n" +" .activecellref = " + HexDump.shortToHex(getActiveCellRef()) + "\n" +" .numrefs = " + HexDump.shortToHex(field_6_refs.length) + "\n" +"[/SELECTION]\n";}
[ "public", "String", "toString", "(", ")", "{", "return", "\"[SELECTION]\\n\"", "+", "\" .pane = \"", "+", "HexDump", ".", "byteToHex", "(", "getPane", "(", ")", ")", "+", "\"\\n\"", "+", "\" .activecellrow = \"", "+", "HexDump", ".", "shortToHex", "(", "getActiveCellRow", "(", ")", ")", "+", "\"\\n\"", "+", "\" .activecellcol = \"", "+", "HexDump", ".", "shortToHex", "(", "getActiveCellCol", "(", ")", ")", "+", "\"\\n\"", "+", "\" .activecellref = \"", "+", "HexDump", ".", "shortToHex", "(", "getActiveCellRef", "(", ")", ")", "+", "\"\\n\"", "+", "\" .numrefs = \"", "+", "HexDump", ".", "shortToHex", "(", "field_6_refs", ".", "length", ")", "+", "\"\\n\"", "+", "\"[/SELECTION]\\n\"", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SELECTION]\n");buffer.Append(" .pane = ").Append(StringUtil.ToHexString(Pane)).Append("\n");buffer.Append(" .activecellrow = ").Append(StringUtil.ToHexString(ActiveCellRow)).Append("\n");buffer.Append(" .activecellcol = ").Append(StringUtil.ToHexString(ActiveCellCol)).Append("\n");buffer.Append(" .activecellref = ").Append(StringUtil.ToHexString(ActiveCellRef)).Append("\n");buffer.Append(" .numrefs = ").Append(StringUtil.ToHexString(field_6_refs.Length)).Append("\n");buffer.Append("[/SELECTION]\n");return buffer.ToString();}
train
false
2,641
public static boolean isCellInternalDateFormatted(Cell cell) {if (cell == null) {return false;}boolean bDate = false;double d = cell.getNumericCellValue();if ( DateUtil.isValidExcelDate(d) ) {CellStyle style = cell.getCellStyle();int i = style.getDataFormat();bDate = isInternalDateFormat(i);}return bDate;}
[ "public", "static", "boolean", "isCellInternalDateFormatted", "(", "Cell", "cell", ")", "{", "if", "(", "cell", "==", "null", ")", "{", "return", "false", ";", "}", "boolean", "bDate", "=", "false", ";", "double", "d", "=", "cell", ".", "getNumericCellValue", "(", ")", ";", "if", "(", "DateUtil", ".", "isValidExcelDate", "(", "d", ")", ")", "{", "CellStyle", "style", "=", "cell", ".", "getCellStyle", "(", ")", ";", "int", "i", "=", "style", ".", "getDataFormat", "(", ")", ";", "bDate", "=", "isInternalDateFormat", "(", "i", ")", ";", "}", "return", "bDate", ";", "}" ]
public static bool IsCellInternalDateFormatted(ICell cell){if (cell == null) return false;bool bDate = false;double d = cell.NumericCellValue;if (DateUtil.IsValidExcelDate(d)){ICellStyle style = cell.CellStyle;int i = style.DataFormat;bDate = IsInternalDateFormat(i);}return bDate;}
train
false
2,642
public static String getSegmentsFile(List<String> files, boolean allowEmpty) {if (files.isEmpty()) {if (allowEmpty) {return null;} else {throw new IllegalStateException("empty list of files not allowed");}}String segmentsFile = files.remove(files.size() - 1);if (!segmentsFile.startsWith(IndexFileNames.SEGMENTS)) {throw new IllegalStateException("last file to copy+sync must be segments_N but got " + segmentsFile+ "; check your Revision implementation!");}return segmentsFile;}
[ "public", "static", "String", "getSegmentsFile", "(", "List", "<", "String", ">", "files", ",", "boolean", "allowEmpty", ")", "{", "if", "(", "files", ".", "isEmpty", "(", ")", ")", "{", "if", "(", "allowEmpty", ")", "{", "return", "null", ";", "}", "else", "{", "throw", "new", "IllegalStateException", "(", "\"empty list of files not allowed\"", ")", ";", "}", "}", "String", "segmentsFile", "=", "files", ".", "remove", "(", "files", ".", "size", "(", ")", "-", "1", ")", ";", "if", "(", "!", "segmentsFile", ".", "startsWith", "(", "IndexFileNames", ".", "SEGMENTS", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"last file to copy+sync must be segments_N but got \"", "+", "segmentsFile", "+", "\"; check your Revision implementation!\"", ")", ";", "}", "return", "segmentsFile", ";", "}" ]
public static string GetSegmentsFile(IList<string> files, bool allowEmpty){if (!files.Any()){if (allowEmpty)return null;throw new InvalidOperationException("empty list of files not allowed");}string segmentsFile = files.Last();files.RemoveAt(files.Count - 1);if (!segmentsFile.StartsWith(IndexFileNames.SEGMENTS, StringComparison.Ordinal) || segmentsFile.Equals(IndexFileNames.SEGMENTS_GEN, StringComparison.Ordinal)){throw new InvalidOperationException(string.Format("last file to copy+sync must be segments_N but got {0}; check your Revision implementation!", segmentsFile));}return segmentsFile;}
train
false
2,643
public static boolean hasMultibyte(String value) {if (value == null) {return false;}for (char c : value.toCharArray()) {if (c > 0xFF) {return true;}}return false;}
[ "public", "static", "boolean", "hasMultibyte", "(", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "{", "return", "false", ";", "}", "for", "(", "char", "c", ":", "value", ".", "toCharArray", "(", ")", ")", "{", "if", "(", "c", ">", "0xFF", ")", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public static bool HasMultibyte(String value){if (value == null) return false;for (int i = 0; i < value.Length; i++){char c = value[i];if (c > 0xFF) return true;}return false;}
train
false
2,644
public static ObjectId fromString(String str) {if (str.length() != Constants.OBJECT_ID_STRING_LENGTH) {throw new InvalidObjectIdException(str);}return fromHexString(Constants.encodeASCII(str), 0);}
[ "public", "static", "ObjectId", "fromString", "(", "String", "str", ")", "{", "if", "(", "str", ".", "length", "(", ")", "!=", "Constants", ".", "OBJECT_ID_STRING_LENGTH", ")", "{", "throw", "new", "InvalidObjectIdException", "(", "str", ")", ";", "}", "return", "fromHexString", "(", "Constants", ".", "encodeASCII", "(", "str", ")", ",", "0", ")", ";", "}" ]
public static NGit.ObjectId FromString(string str){if (str.Length != Constants.OBJECT_ID_STRING_LENGTH){throw new ArgumentException("Invalid id: " + str);}return FromHexString(Constants.EncodeASCII(str), 0);}
train
false
2,645
public void reset() throws IOException {throw new IOException();}
[ "public", "void", "reset", "(", ")", "throws", "IOException", "{", "throw", "new", "IOException", "(", ")", ";", "}" ]
public override void reset(){throw new System.IO.IOException();}
train
false
2,646
public GetReservedInstancesExchangeQuoteResult getReservedInstancesExchangeQuote(GetReservedInstancesExchangeQuoteRequest request) {request = beforeClientExecution(request);return executeGetReservedInstancesExchangeQuote(request);}
[ "public", "GetReservedInstancesExchangeQuoteResult", "getReservedInstancesExchangeQuote", "(", "GetReservedInstancesExchangeQuoteRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetReservedInstancesExchangeQuote", "(", "request", ")", ";", "}" ]
public virtual GetReservedInstancesExchangeQuoteResponse GetReservedInstancesExchangeQuote(GetReservedInstancesExchangeQuoteRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReservedInstancesExchangeQuoteRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReservedInstancesExchangeQuoteResponseUnmarshaller.Instance;return Invoke<GetReservedInstancesExchangeQuoteResponse>(request, options);}
train
true
2,647
public IntBuffer put(int c) {throw new ReadOnlyBufferException();}
[ "public", "IntBuffer", "put", "(", "int", "c", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}" ]
public override java.nio.IntBuffer put(int c){throw new java.nio.ReadOnlyBufferException();}
train
false
2,648
public GetFolderPathResult getFolderPath(GetFolderPathRequest request) {request = beforeClientExecution(request);return executeGetFolderPath(request);}
[ "public", "GetFolderPathResult", "getFolderPath", "(", "GetFolderPathRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetFolderPath", "(", "request", ")", ";", "}" ]
public virtual GetFolderPathResponse GetFolderPath(GetFolderPathRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFolderPathRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFolderPathResponseUnmarshaller.Instance;return Invoke<GetFolderPathResponse>(request, options);}
train
true
2,649
public DeleteDirectConnectGatewayAssociationResult deleteDirectConnectGatewayAssociation(DeleteDirectConnectGatewayAssociationRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGatewayAssociation(request);}
[ "public", "DeleteDirectConnectGatewayAssociationResult", "deleteDirectConnectGatewayAssociation", "(", "DeleteDirectConnectGatewayAssociationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDirectConnectGatewayAssociation", "(", "request", ")", ";", "}" ]
public virtual DeleteDirectConnectGatewayAssociationResponse DeleteDirectConnectGatewayAssociation(DeleteDirectConnectGatewayAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayAssociationResponseUnmarshaller.Instance;return Invoke<DeleteDirectConnectGatewayAssociationResponse>(request, options);}
train
true
2,650
public ByteBuffer putDouble(double value) {return putLong(Double.doubleToRawLongBits(value));}
[ "public", "ByteBuffer", "putDouble", "(", "double", "value", ")", "{", "return", "putLong", "(", "Double", ".", "doubleToRawLongBits", "(", "value", ")", ")", ";", "}" ]
public override java.nio.ByteBuffer putDouble(double value){return putLong(Sharpen.Util.DoubleToRawLongBits(value));}
train
false
2,651
public SearchContactsResult searchContacts(SearchContactsRequest request) {request = beforeClientExecution(request);return executeSearchContacts(request);}
[ "public", "SearchContactsResult", "searchContacts", "(", "SearchContactsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSearchContacts", "(", "request", ")", ";", "}" ]
public virtual SearchContactsResponse SearchContacts(SearchContactsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchContactsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchContactsResponseUnmarshaller.Instance;return Invoke<SearchContactsResponse>(request, options);}
train
true
2,652
@Override public boolean isEmpty() {return size == 0;}
[ "@", "Override", "public", "boolean", "isEmpty", "(", ")", "{", "return", "size", "==", "0", ";", "}" ]
public override bool isEmpty(){return _size == 0;}
train
false
2,653
public CreatePartnerEventSourceResult createPartnerEventSource(CreatePartnerEventSourceRequest request) {request = beforeClientExecution(request);return executeCreatePartnerEventSource(request);}
[ "public", "CreatePartnerEventSourceResult", "createPartnerEventSource", "(", "CreatePartnerEventSourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreatePartnerEventSource", "(", "request", ")", ";", "}" ]
public virtual CreatePartnerEventSourceResponse CreatePartnerEventSource(CreatePartnerEventSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePartnerEventSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePartnerEventSourceResponseUnmarshaller.Instance;return Invoke<CreatePartnerEventSourceResponse>(request, options);}
train
false
2,654
public CreateNamespaceAuthorizationRequest() {super("cr", "2016-06-07", "CreateNamespaceAuthorization", "cr");setUriPattern("/namespace/[Namespace]/authorizations");setMethod(MethodType.PUT);}
[ "public", "CreateNamespaceAuthorizationRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"CreateNamespaceAuthorization\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/namespace/[Namespace]/authorizations\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public CreateNamespaceAuthorizationRequest(): base("cr", "2016-06-07", "CreateNamespaceAuthorization", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]/authorizations";Method = MethodType.PUT;}
train
false
2,655
public URIish setPass(String n) {final URIish r = new URIish(this);r.pass = n;return r;}
[ "public", "URIish", "setPass", "(", "String", "n", ")", "{", "final", "URIish", "r", "=", "new", "URIish", "(", "this", ")", ";", "r", ".", "pass", "=", "n", ";", "return", "r", ";", "}" ]
public virtual NGit.Transport.URIish SetPass(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.pass = n;return r;}
train
false
2,657
public CreateModelVersionResult createModelVersion(CreateModelVersionRequest request) {request = beforeClientExecution(request);return executeCreateModelVersion(request);}
[ "public", "CreateModelVersionResult", "createModelVersion", "(", "CreateModelVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateModelVersion", "(", "request", ")", ";", "}" ]
public virtual CreateModelVersionResponse CreateModelVersion(CreateModelVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelVersionResponseUnmarshaller.Instance;return Invoke<CreateModelVersionResponse>(request, options);}
train
false
2,658
public UpdateServicePrimaryTaskSetResult updateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest request) {request = beforeClientExecution(request);return executeUpdateServicePrimaryTaskSet(request);}
[ "public", "UpdateServicePrimaryTaskSetResult", "updateServicePrimaryTaskSet", "(", "UpdateServicePrimaryTaskSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateServicePrimaryTaskSet", "(", "request", ")", ";", "}" ]
public virtual UpdateServicePrimaryTaskSetResponse UpdateServicePrimaryTaskSet(UpdateServicePrimaryTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServicePrimaryTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServicePrimaryTaskSetResponseUnmarshaller.Instance;return Invoke<UpdateServicePrimaryTaskSetResponse>(request, options);}
train
true
2,659
public LinearRegressionFunction(FUNCTION function) {this.function = function;}
[ "public", "LinearRegressionFunction", "(", "FUNCTION", "function", ")", "{", "this", ".", "function", "=", "function", ";", "}" ]
public LinearRegressionFunction(FUNCTION function){this.function = function;}
train
false
2,660
public ATNConfig(ATNConfig old) { this.state = old.state;this.alt = old.alt;this.context = old.context;this.semanticContext = old.semanticContext;this.reachesIntoOuterContext = old.reachesIntoOuterContext;}
[ "public", "ATNConfig", "(", "ATNConfig", "old", ")", "{", "this", ".", "state", "=", "old", ".", "state", ";", "this", ".", "alt", "=", "old", ".", "alt", ";", "this", ".", "context", "=", "old", ".", "context", ";", "this", ".", "semanticContext", "=", "old", ".", "semanticContext", ";", "this", ".", "reachesIntoOuterContext", "=", "old", ".", "reachesIntoOuterContext", ";", "}" ]
public ATNConfig(ATNConfig old){ this.state = old.state;this.alt = old.alt;this.context = old.context;this.semanticContext = old.semanticContext;this.reachesIntoOuterContext = old.reachesIntoOuterContext;}
train
false
2,661
public DescribeEntitiesDetectionJobResult describeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeEntitiesDetectionJob(request);}
[ "public", "DescribeEntitiesDetectionJobResult", "describeEntitiesDetectionJob", "(", "DescribeEntitiesDetectionJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeEntitiesDetectionJob", "(", "request", ")", ";", "}" ]
public virtual DescribeEntitiesDetectionJobResponse DescribeEntitiesDetectionJob(DescribeEntitiesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntitiesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntitiesDetectionJobResponseUnmarshaller.Instance;return Invoke<DescribeEntitiesDetectionJobResponse>(request, options);}
train
true
2,662
public AssociateDhcpOptionsRequest(String vpcId) {setVpcId(vpcId);}
[ "public", "AssociateDhcpOptionsRequest", "(", "String", "vpcId", ")", "{", "setVpcId", "(", "vpcId", ")", ";", "}" ]
public AssociateDhcpOptionsRequest(string vpcId){_vpcId = vpcId;}
train
false
2,663
public ListChangedBlocksResult listChangedBlocks(ListChangedBlocksRequest request) {request = beforeClientExecution(request);return executeListChangedBlocks(request);}
[ "public", "ListChangedBlocksResult", "listChangedBlocks", "(", "ListChangedBlocksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListChangedBlocks", "(", "request", ")", ";", "}" ]
public virtual ListChangedBlocksResponse ListChangedBlocks(ListChangedBlocksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListChangedBlocksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListChangedBlocksResponseUnmarshaller.Instance;return Invoke<ListChangedBlocksResponse>(request, options);}
train
false
2,664
public boolean removeFirstOccurrence(Object o) {return removeFirstOccurrenceImpl(o);}
[ "public", "boolean", "removeFirstOccurrence", "(", "Object", "o", ")", "{", "return", "removeFirstOccurrenceImpl", "(", "o", ")", ";", "}" ]
public virtual bool removeFirstOccurrence(object o){return removeFirstOccurrenceImpl(o);}
train
false
2,665
public ArrayList<PerfTask> extractTasks() {ArrayList<PerfTask> res = new ArrayList<>();extractTasks(res, sequence);return res;}
[ "public", "ArrayList", "<", "PerfTask", ">", "extractTasks", "(", ")", "{", "ArrayList", "<", "PerfTask", ">", "res", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "extractTasks", "(", "res", ",", "sequence", ")", ";", "return", "res", ";", "}" ]
public virtual IList<PerfTask> ExtractTasks(){List<PerfTask> res = new List<PerfTask>();ExtractTasks(res, sequence);return res;}
train
false
2,666
public FacetsCollector(boolean keepScores) {this.keepScores = keepScores;}
[ "public", "FacetsCollector", "(", "boolean", "keepScores", ")", "{", "this", ".", "keepScores", "=", "keepScores", ";", "}" ]
public FacetsCollector(bool keepScores){this.keepScores = keepScores;}
train
false