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
4,880
public ByteSliceWriter(ByteBlockPool pool) {this.pool = pool;}
[ "public", "ByteSliceWriter", "(", "ByteBlockPool", "pool", ")", "{", "this", ".", "pool", "=", "pool", ";", "}" ]
public ByteSliceWriter(ByteBlockPool pool){this.pool = pool;}
train
false
4,881
public void replace(int start, int limit, char[] text, int charsStart,int charsLen) {final int newLength = shiftForReplace(start, limit, charsLen);System.arraycopy(text, charsStart, buffer, start, charsLen);token.setLength(length = newLength);}
[ "public", "void", "replace", "(", "int", "start", ",", "int", "limit", ",", "char", "[", "]", "text", ",", "int", "charsStart", ",", "int", "charsLen", ")", "{", "final", "int", "newLength", "=", "shiftForReplace", "(", "start", ",", "limit", ",", "cha...
public void Replace(int start, int length, char[] text, int charsStart,int charsLen){int newLength = ShiftForReplace(start, length + start, charsLen); System.Array.Copy(text, charsStart, buffer, start, charsLen);token.Length = (this.length = newLength);}
train
false
4,882
public synchronized void getChars(int start, int end, char[] buffer, int idx) {super.getChars(start, end, buffer, idx);}
[ "public", "synchronized", "void", "getChars", "(", "int", "start", ",", "int", "end", ",", "char", "[", "]", "buffer", ",", "int", "idx", ")", "{", "super", ".", "getChars", "(", "start", ",", "end", ",", "buffer", ",", "idx", ")", ";", "}" ]
public override void getChars(int start, int end, char[] buffer, int idx){lock (this){base.getChars(start, end, buffer, idx);}}
train
false
4,883
public RestoreAddressToClassicResult restoreAddressToClassic(RestoreAddressToClassicRequest request) {request = beforeClientExecution(request);return executeRestoreAddressToClassic(request);}
[ "public", "RestoreAddressToClassicResult", "restoreAddressToClassic", "(", "RestoreAddressToClassicRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRestoreAddressToClassic", "(", "request", ")", ";", "}" ]
public virtual RestoreAddressToClassicResponse RestoreAddressToClassic(RestoreAddressToClassicRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreAddressToClassicRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreAddressToClassicResponseUnmarshaller.Instance;return Invoke...
train
true
4,885
public CreateNamespaceRequest() {super("cr", "2016-06-07", "CreateNamespace", "cr");setUriPattern("/namespace");setMethod(MethodType.PUT);}
[ "public", "CreateNamespaceRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"CreateNamespace\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/namespace\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public CreateNamespaceRequest(): base("cr", "2016-06-07", "CreateNamespace", "cr", "openAPI"){UriPattern = "/namespace";Method = MethodType.PUT;}
train
false
4,887
public GetEventsConfigurationResult getEventsConfiguration(GetEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeGetEventsConfiguration(request);}
[ "public", "GetEventsConfigurationResult", "getEventsConfiguration", "(", "GetEventsConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetEventsConfiguration", "(", "request", ")", ";", "}" ]
public virtual GetEventsConfigurationResponse GetEventsConfiguration(GetEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEventsConfigurationResponseUnmarshaller.Instance;return Invoke<GetE...
train
false
4,888
public String toString() {return "docFreq=" + docFreq + " totalTermFreq=" + totalTermFreq + " termBlockOrd=" + termBlockOrd + " blockFP=" + blockFilePointer;}
[ "public", "String", "toString", "(", ")", "{", "return", "\"docFreq=\"", "+", "docFreq", "+", "\" totalTermFreq=\"", "+", "totalTermFreq", "+", "\" termBlockOrd=\"", "+", "termBlockOrd", "+", "\" blockFP=\"", "+", "blockFilePointer", ";", "}" ]
public override string ToString(){return "docFreq=" + DocFreq + " totalTermFreq=" + TotalTermFreq + " termBlockOrd=" + TermBlockOrd + " blockFP=" + BlockFilePointer;}
train
false
4,889
public EstimateTemplateCostResult estimateTemplateCost(EstimateTemplateCostRequest request) {request = beforeClientExecution(request);return executeEstimateTemplateCost(request);}
[ "public", "EstimateTemplateCostResult", "estimateTemplateCost", "(", "EstimateTemplateCostRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeEstimateTemplateCost", "(", "request", ")", ";", "}" ]
public virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request){var options = new InvokeOptions();options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance;options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance;return Invoke<EstimateTempla...
train
true
4,892
public ByteOrder order() {return ByteOrder.nativeOrder();}
[ "public", "ByteOrder", "order", "(", ")", "{", "return", "ByteOrder", ".", "nativeOrder", "(", ")", ";", "}" ]
public override java.nio.ByteOrder order(){return java.nio.ByteOrder.nativeOrder();}
train
false
4,893
public void insert(char[] key, int start, char val) {int len = strlen(key) + 1;if (freenode + len > eq.length) {redimNodeArrays(eq.length + BLOCK_SIZE);}root = insert(root, key, start, val);}
[ "public", "void", "insert", "(", "char", "[", "]", "key", ",", "int", "start", ",", "char", "val", ")", "{", "int", "len", "=", "strlen", "(", "key", ")", "+", "1", ";", "if", "(", "freenode", "+", "len", ">", "eq", ".", "length", ")", "{", "...
public virtual void Insert(char[] key, int start, char val){int len = StrLen(key) + 1;if (m_freenode + len > m_eq.Length){RedimNodeArrays(m_eq.Length + BLOCK_SIZE);}m_root = Insert(m_root, key, start, val);}
train
true
4,894
public final DFAState getPrecedenceStartState(int precedence) {if (!isPrecedenceDfa()) {throw new IllegalStateException("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0 || precedence >= s0.edges.length) {return null;}return s0.edges[precedence];}
[ "public", "final", "DFAState", "getPrecedenceStartState", "(", "int", "precedence", ")", "{", "if", "(", "!", "isPrecedenceDfa", "(", ")", ")", "{", "throw", "new", "IllegalStateException", "(", "\"Only precedence DFAs may contain a precedence start state.\"", ")", ";",...
public DFAState GetPrecedenceStartState(int precedence){if (!IsPrecedenceDfa){throw new Exception("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0 || precedence >= s0.edges.Length){return null;}return s0.edges[precedence];}
train
false
4,895
public SetActiveReceiptRuleSetResult setActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeSetActiveReceiptRuleSet(request);}
[ "public", "SetActiveReceiptRuleSetResult", "setActiveReceiptRuleSet", "(", "SetActiveReceiptRuleSetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSetActiveReceiptRuleSet", "(", "request", ")", ";", "}" ]
public virtual SetActiveReceiptRuleSetResponse SetActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = SetActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke...
train
true
4,896
public CreateLaunchTemplateResult createLaunchTemplate(CreateLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeCreateLaunchTemplate(request);}
[ "public", "CreateLaunchTemplateResult", "createLaunchTemplate", "(", "CreateLaunchTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateLaunchTemplate", "(", "request", ")", ";", "}" ]
public virtual CreateLaunchTemplateResponse CreateLaunchTemplate(CreateLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchTemplateResponseUnmarshaller.Instance;return Invoke<CreateLaunchTe...
train
true
4,897
public ListTrafficPolicyVersionsResult listTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyVersions(request);}
[ "public", "ListTrafficPolicyVersionsResult", "listTrafficPolicyVersions", "(", "ListTrafficPolicyVersionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListTrafficPolicyVersions", "(", "request", ")", ";", ...
public virtual ListTrafficPolicyVersionsResponse ListTrafficPolicyVersions(ListTrafficPolicyVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyVersionsResponseUnmarshaller.Instance;ret...
train
true
4,898
public Locale effectiveLocale() {return effectiveLocale;}
[ "public", "Locale", "effectiveLocale", "(", ")", "{", "return", "effectiveLocale", ";", "}" ]
public virtual CultureInfo EffectiveLocale(){return effectiveLocale;}
train
false
4,899
public void encode(long[] values, int valuesOffset, long[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {blocks[blocksOffset++] = encode(values, valuesOffset);valuesOffset += valueCount;}}
[ "public", "void", "encode", "(", "long", "[", "]", "values", ",", "int", "valuesOffset", ",", "long", "[", "]", "blocks", ",", "int", "blocksOffset", ",", "int", "iterations", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "iterations", ...
public override void Encode(long[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){blocks[blocksOffset++] = Encode(values, valuesOffset);valuesOffset += valueCount;}}
train
false
4,900
public static String revisionVersion(IndexCommit commit) {return Long.toString(commit.getGeneration(), RADIX);}
[ "public", "static", "String", "revisionVersion", "(", "IndexCommit", "commit", ")", "{", "return", "Long", ".", "toString", "(", "commit", ".", "getGeneration", "(", ")", ",", "RADIX", ")", ";", "}" ]
public static string RevisionVersion(IndexCommit commit){return commit.Generation.ToString("X");}
train
false
4,901
public ListServicesResult listServices(ListServicesRequest request) {request = beforeClientExecution(request);return executeListServices(request);}
[ "public", "ListServicesResult", "listServices", "(", "ListServicesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListServices", "(", "request", ")", ";", "}" ]
public virtual ListServicesResponse ListServices(ListServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListServicesResponseUnmarshaller.Instance;return Invoke<ListServicesResponse>(request, options);}
train
true
4,902
public BatchModifyClusterSnapshotsResult batchModifyClusterSnapshots(BatchModifyClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeBatchModifyClusterSnapshots(request);}
[ "public", "BatchModifyClusterSnapshotsResult", "batchModifyClusterSnapshots", "(", "BatchModifyClusterSnapshotsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchModifyClusterSnapshots", "(", "request", ")", ...
public virtual BatchModifyClusterSnapshotsResponse BatchModifyClusterSnapshots(BatchModifyClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchModifyClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchModifyClusterSnapshotsResponseUnmarshaller.In...
train
true
4,903
public DeleteBackupResult deleteBackup(DeleteBackupRequest request) {request = beforeClientExecution(request);return executeDeleteBackup(request);}
[ "public", "DeleteBackupResult", "deleteBackup", "(", "DeleteBackupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteBackup", "(", "request", ")", ";", "}" ]
public virtual DeleteBackupResponse DeleteBackup(DeleteBackupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBackupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBackupResponseUnmarshaller.Instance;return Invoke<DeleteBackupResponse>(request, options);}
train
true
4,904
public DescribeDBParameterGroupsResult describeDBParameterGroups() {return describeDBParameterGroups(new DescribeDBParameterGroupsRequest());}
[ "public", "DescribeDBParameterGroupsResult", "describeDBParameterGroups", "(", ")", "{", "return", "describeDBParameterGroups", "(", "new", "DescribeDBParameterGroupsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeDBParameterGroupsResponse DescribeDBParameterGroups(){return DescribeDBParameterGroups(new DescribeDBParameterGroupsRequest());}
train
false
4,905
public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i<bufferUpto;i++) {Arrays.fill(buffers[i], 0);}Arrays.fill(buffers[bufferUpto], 0, intUpto, 0);}if (bufferUpto > 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleIntBlocks(bu...
[ "public", "void", "reset", "(", "boolean", "zeroFillBuffers", ",", "boolean", "reuseFirst", ")", "{", "if", "(", "bufferUpto", "!=", "-", "1", ")", "{", "if", "(", "zeroFillBuffers", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "bufferU...
public void Reset(bool zeroFillBuffers, bool reuseFirst){if (bufferUpto != -1){if (zeroFillBuffers){for (int i = 0; i < bufferUpto; i++){Arrays.Fill(buffers[i], 0);}Arrays.Fill(buffers[bufferUpto], 0, Int32Upto, 0);}if (bufferUpto > 0 || !reuseFirst){int offset = reuseFirst ? 1 : 0;allocator.RecycleInt32Blocks(buffers,...
train
false
4,906
public SaveRecalcRecord clone() {return copy();}
[ "public", "SaveRecalcRecord", "clone", "(", ")", "{", "return", "copy", "(", ")", ";", "}" ]
public override Object Clone(){SaveRecalcRecord rec = new SaveRecalcRecord();rec.field_1_recalc = field_1_recalc;return rec;}
train
false
4,907
public static void main(String[] args) {exec(args);}
[ "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "exec", "(", "args", ")", ";", "}" ]
public static void Main(string[] args){Exec(args);}
train
false
4,908
public DeregisterImageResult deregisterImage(DeregisterImageRequest request) {request = beforeClientExecution(request);return executeDeregisterImage(request);}
[ "public", "DeregisterImageResult", "deregisterImage", "(", "DeregisterImageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeregisterImage", "(", "request", ")", ";", "}" ]
public virtual DeregisterImageResponse DeregisterImage(DeregisterImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterImageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterImageResponseUnmarshaller.Instance;return Invoke<DeregisterImageResponse>(request, optio...
train
true
4,909
public DBSnapshot modifyDBSnapshot(ModifyDBSnapshotRequest request) {request = beforeClientExecution(request);return executeModifyDBSnapshot(request);}
[ "public", "DBSnapshot", "modifyDBSnapshot", "(", "ModifyDBSnapshotRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyDBSnapshot", "(", "request", ")", ";", "}" ]
public virtual ModifyDBSnapshotResponse ModifyDBSnapshot(ModifyDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBSnapshotResponseUnmarshaller.Instance;return Invoke<ModifyDBSnapshotResponse>(request,...
train
true
4,910
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[BOUNDSHEET]\n");buffer.append(" .bof = ").append(HexDump.intToHex(getPositionOfBof())).append("\n");buffer.append(" .options = ").append(HexDump.shortToHex(field_2_option_flags)).append("\n");buffer.append(" .unicode...
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[BOUNDSHEET]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .bof = \"", ")", ".", "append", "...
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[BOUNDSHEET]\n");buffer.Append(" .bof = ").Append(HexDump.IntToHex(PositionOfBof)).Append("\n");buffer.Append(" .options = ").Append(HexDump.ShortToHex(field_2_option_flags)).Append("\n");buffer.Append(" .unic...
train
false
4,911
public void setParams(String params) {this.params = params; fieldsToLoad = new HashSet<>();for (StringTokenizer tokenizer = new StringTokenizer(params, ","); tokenizer.hasMoreTokens();) {String s = tokenizer.nextToken();fieldsToLoad.add(s);}}
[ "public", "void", "setParams", "(", "String", "params", ")", "{", "this", ".", "params", "=", "params", ";", "fieldsToLoad", "=", "new", "HashSet", "<", ">", "(", ")", ";", "for", "(", "StringTokenizer", "tokenizer", "=", "new", "StringTokenizer", "(", "...
public override void SetParams(string @params){this.m_params = @params; m_fieldsToLoad = new JCG.HashSet<string>();for (StringTokenizer tokenizer = new StringTokenizer(@params, ","); tokenizer.MoveNext();){string s = tokenizer.Current;m_fieldsToLoad.Add(s);}}
train
false
4,912
public GetNamedQueryResult getNamedQuery(GetNamedQueryRequest request) {request = beforeClientExecution(request);return executeGetNamedQuery(request);}
[ "public", "GetNamedQueryResult", "getNamedQuery", "(", "GetNamedQueryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetNamedQuery", "(", "request", ")", ";", "}" ]
public virtual GetNamedQueryResponse GetNamedQuery(GetNamedQueryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNamedQueryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNamedQueryResponseUnmarshaller.Instance;return Invoke<GetNamedQueryResponse>(request, options);}
train
true
4,913
public GermanStemFilter create(TokenStream in) {return new GermanStemFilter(in);}
[ "public", "GermanStemFilter", "create", "(", "TokenStream", "in", ")", "{", "return", "new", "GermanStemFilter", "(", "in", ")", ";", "}" ]
public override TokenStream Create(TokenStream @in){return new GermanStemFilter(@in);}
train
false
4,914
public ExtendedFormatRecord createCellXF() {ExtendedFormatRecord xf = createExtendedFormat();records.add(records.getXfpos()+1, xf);records.setXfpos( records.getXfpos() + 1 );numxfs++;return xf;}
[ "public", "ExtendedFormatRecord", "createCellXF", "(", ")", "{", "ExtendedFormatRecord", "xf", "=", "createExtendedFormat", "(", ")", ";", "records", ".", "add", "(", "records", ".", "getXfpos", "(", ")", "+", "1", ",", "xf", ")", ";", "records", ".", "set...
public ExtendedFormatRecord CreateCellXF(){ExtendedFormatRecord xf = CreateExtendedFormat();records.Add(records.Xfpos + 1, xf);records.Xfpos=records.Xfpos + 1;numxfs++;return xf;}
train
false
4,915
public Cluster modifyClusterMaintenance(ModifyClusterMaintenanceRequest request) {request = beforeClientExecution(request);return executeModifyClusterMaintenance(request);}
[ "public", "Cluster", "modifyClusterMaintenance", "(", "ModifyClusterMaintenanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyClusterMaintenance", "(", "request", ")", ";", "}" ]
public virtual ModifyClusterMaintenanceResponse ModifyClusterMaintenance(ModifyClusterMaintenanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterMaintenanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterMaintenanceResponseUnmarshaller.Instance;return I...
train
true
4,916
public DeleteDBSecurityGroupResult deleteDBSecurityGroup(DeleteDBSecurityGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBSecurityGroup(request);}
[ "public", "DeleteDBSecurityGroupResult", "deleteDBSecurityGroup", "(", "DeleteDBSecurityGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDBSecurityGroup", "(", "request", ")", ";", "}" ]
public virtual DeleteDBSecurityGroupResponse DeleteDBSecurityGroup(DeleteDBSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBSecurityGroupResponseUnmarshaller.Instance;return Invoke<DeleteDBS...
train
true
4,918
public void finish(StringBuffer toAppendTo) {if (hStart >= 0 && !showAmPm) {for (int i = 0; i < hLen; i++) {toAppendTo.setCharAt(hStart + i, 'H');}}}
[ "public", "void", "finish", "(", "StringBuffer", "toAppendTo", ")", "{", "if", "(", "hStart", ">=", "0", "&&", "!", "showAmPm", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "hLen", ";", "i", "++", ")", "{", "toAppendTo", ".", "setCh...
public void Finish(StringBuilder toAppendTo){if (hStart >= 0 && !_formatter.ShowAmPm){for (int i = 0; i < hLen; i++){toAppendTo[hStart + i] = 'H';}}}
train
false
4,919
public SendRawEmailResult sendRawEmail(SendRawEmailRequest request) {request = beforeClientExecution(request);return executeSendRawEmail(request);}
[ "public", "SendRawEmailResult", "sendRawEmail", "(", "SendRawEmailRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSendRawEmail", "(", "request", ")", ";", "}" ]
public virtual SendRawEmailResponse SendRawEmail(SendRawEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendRawEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendRawEmailResponseUnmarshaller.Instance;return Invoke<SendRawEmailResponse>(request, options);}
train
true
4,920
public void clear() {if ( readonly ) throw new IllegalStateException("can't alter readonly IntervalSet");intervals.clear();}
[ "public", "void", "clear", "(", ")", "{", "if", "(", "readonly", ")", "throw", "new", "IllegalStateException", "(", "\"can't alter readonly IntervalSet\"", ")", ";", "intervals", ".", "clear", "(", ")", ";", "}" ]
public virtual void Clear(){if (@readonly){throw new InvalidOperationException("can't alter readonly IntervalSet");}intervals.Clear();}
train
false
4,921
public int previous() {if (current == start) {return DONE;} else {return first();}}
[ "public", "int", "previous", "(", ")", "{", "if", "(", "current", "==", "start", ")", "{", "return", "DONE", ";", "}", "else", "{", "return", "first", "(", ")", ";", "}", "}" ]
public override int Previous(){if (current == start){return Done;}else{return First();}}
train
false
4,922
public DeleteDocumentClassifierResult deleteDocumentClassifier(DeleteDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeDeleteDocumentClassifier(request);}
[ "public", "DeleteDocumentClassifierResult", "deleteDocumentClassifier", "(", "DeleteDocumentClassifierRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteDocumentClassifier", "(", "request", ")", ";", "}"...
public virtual DeleteDocumentClassifierResponse DeleteDocumentClassifier(DeleteDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDocumentClassifierResponseUnmarshaller.Instance;return I...
train
true
4,923
public DeleteDeviceAllGroupRequest() {super("LinkFace", "2018-07-20", "DeleteDeviceAllGroup");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
[ "public", "DeleteDeviceAllGroupRequest", "(", ")", "{", "super", "(", "\"LinkFace\"", ",", "\"2018-07-20\"", ",", "\"DeleteDeviceAllGroup\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ...
public DeleteDeviceAllGroupRequest(): base("LinkFace", "2018-07-20", "DeleteDeviceAllGroup"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
train
false
4,925
public CreateBGPPeerResult createBGPPeer(CreateBGPPeerRequest request) {request = beforeClientExecution(request);return executeCreateBGPPeer(request);}
[ "public", "CreateBGPPeerResult", "createBGPPeer", "(", "CreateBGPPeerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateBGPPeer", "(", "request", ")", ";", "}" ]
public virtual CreateBGPPeerResponse CreateBGPPeer(CreateBGPPeerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBGPPeerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBGPPeerResponseUnmarshaller.Instance;return Invoke<CreateBGPPeerResponse>(request, options);}
train
true
4,926
public String toASCIIString() {StringBuilder result = new StringBuilder();ASCII_ONLY.appendEncoded(result, toString());return result.toString();}
[ "public", "String", "toASCIIString", "(", ")", "{", "StringBuilder", "result", "=", "new", "StringBuilder", "(", ")", ";", "ASCII_ONLY", ".", "appendEncoded", "(", "result", ",", "toString", "(", ")", ")", ";", "return", "result", ".", "toString", "(", ")"...
public string toASCIIString(){java.lang.StringBuilder result = new java.lang.StringBuilder();ASCII_ONLY.appendEncoded(result, ToString());return result.ToString();}
train
false
4,927
public CharSequence subSequence(int start, int end) {int remaining = end - start;StringBuilder sb = new StringBuilder(remaining);int blockIdx = blockIndex(start);int indexInBlock = indexInBlock(start);while (remaining > 0) {Block b = blocks.get(blockIdx++);int numToAppend = Math.min(remaining, b.length - indexInBlock);...
[ "public", "CharSequence", "subSequence", "(", "int", "start", ",", "int", "end", ")", "{", "int", "remaining", "=", "end", "-", "start", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "remaining", ")", ";", "int", "blockIdx", "=", "blockInde...
public virtual ICharSequence Subsequence(int startIndex, int length){int remaining = length;StringBuilder sb = new StringBuilder(remaining);int blockIdx = BlockIndex(startIndex);int indexInBlock = IndexInBlock(startIndex);while (remaining > 0){Block b = blocks[blockIdx++];int numToAppend = Math.Min(remaining, b.length ...
train
false
4,930
public ItalianLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "ItalianLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Un...
public ItalianLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
4,931
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(getNumberOfOperands());out.writeShort(getFunctionIndex());}
[ "public", "void", "write", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "sid", "+", "getPtgClass", "(", ")", ")", ";", "out", ".", "writeByte", "(", "getNumberOfOperands", "(", ")", ")", ";", "out", ".", "writeShort", "(", ...
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(_numberOfArgs);out1.WriteShort(_functionIndex);}
train
false
4,932
public String getTokenErrorDisplay(Token t) {if ( t==null ) return "<no token>";String s = t.getText();if ( s==null ) {if ( t.getType()==Token.EOF ) {s = "<EOF>";}else {s = "<"+t.getType()+">";}}s = s.replace("\n","\\n");s = s.replace("\r","\\r");s = s.replace("\t","\\t");return "'"+s+"'";}
[ "public", "String", "getTokenErrorDisplay", "(", "Token", "t", ")", "{", "if", "(", "t", "==", "null", ")", "return", "\"<no token>\"", ";", "String", "s", "=", "t", ".", "getText", "(", ")", ";", "if", "(", "s", "==", "null", ")", "{", "if", "(", ...
public virtual string GetTokenErrorDisplay(IToken t){if (t == null){return "<no token>";}string s = t.Text;if (s == null){if (t.Type == TokenConstants.EOF){s = "<EOF>";}else{s = "<" + t.Type + ">";}}s = s.Replace("\n", "\\n");s = s.Replace("\r", "\\r");s = s.Replace("\t", "\\t");return "'" + s + "'";}
train
false
4,933
public NumericPayloadTokenFilter create(TokenStream input) {return new NumericPayloadTokenFilter(input,payload,typeMatch);}
[ "public", "NumericPayloadTokenFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "NumericPayloadTokenFilter", "(", "input", ",", "payload", ",", "typeMatch", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new NumericPayloadTokenFilter(input, payload, typeMatch);}
train
false
4,934
public void incrementDrawingsSaved(){dgg.setDrawingsSaved(dgg.getDrawingsSaved()+1);}
[ "public", "void", "incrementDrawingsSaved", "(", ")", "{", "dgg", ".", "setDrawingsSaved", "(", "dgg", ".", "getDrawingsSaved", "(", ")", "+", "1", ")", ";", "}" ]
public void IncrementDrawingsSaved(){dgg.DrawingsSaved = dgg.DrawingsSaved + 1;}
train
false
4,935
public UploadSigningCertificateRequest(String certificateBody) {setCertificateBody(certificateBody);}
[ "public", "UploadSigningCertificateRequest", "(", "String", "certificateBody", ")", "{", "setCertificateBody", "(", "certificateBody", ")", ";", "}" ]
public UploadSigningCertificateRequest(string certificateBody){_certificateBody = certificateBody;}
train
false
4,936
public DeleteJourneyResult deleteJourney(DeleteJourneyRequest request) {request = beforeClientExecution(request);return executeDeleteJourney(request);}
[ "public", "DeleteJourneyResult", "deleteJourney", "(", "DeleteJourneyRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteJourney", "(", "request", ")", ";", "}" ]
public virtual DeleteJourneyResponse DeleteJourney(DeleteJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteJourneyResponseUnmarshaller.Instance;return Invoke<DeleteJourneyResponse>(request, options);}
train
false
4,937
public void reset() {ptr = mark;}
[ "public", "void", "reset", "(", ")", "{", "ptr", "=", "mark", ";", "}" ]
public override void Reset(){ptr = mark;}
train
false
4,938
public DescribeInstanceHealthRequest(String loadBalancerName) {setLoadBalancerName(loadBalancerName);}
[ "public", "DescribeInstanceHealthRequest", "(", "String", "loadBalancerName", ")", "{", "setLoadBalancerName", "(", "loadBalancerName", ")", ";", "}" ]
public DescribeInstanceHealthRequest(string loadBalancerName){_loadBalancerName = loadBalancerName;}
train
false
4,939
public static Automaton toAutomaton(Term wildcardquery) {List<Automaton> automata = new ArrayList<>();String wildcardText = wildcardquery.text();for (int i = 0; i < wildcardText.length();) {final int c = wildcardText.codePointAt(i);int length = Character.charCount(c);switch(c) {case WILDCARD_STRING:automata.add(Automat...
[ "public", "static", "Automaton", "toAutomaton", "(", "Term", "wildcardquery", ")", "{", "List", "<", "Automaton", ">", "automata", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "String", "wildcardText", "=", "wildcardquery", ".", "text", "(", ")", ";",...
public static Automaton ToAutomaton(Term wildcardquery){IList<Automaton> automata = new List<Automaton>();string wildcardText = wildcardquery.Text();for (int i = 0; i < wildcardText.Length; ){int c = Character.CodePointAt(wildcardText, i);int length = Character.CharCount(c);switch (c){case WILDCARD_STRING:automata.Add(...
train
false
4,940
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (obj instanceof ExtendedFormatRecord) {final ExtendedFormatRecord other = (ExtendedFormatRecord) obj;if (field_1_font_index != other.field_1_font_index)return false;if (field_2_format_index != other.field_2_format_index)retur...
[ "public", "boolean", "equals", "(", "Object", "obj", ")", "{", "if", "(", "this", "==", "obj", ")", "return", "true", ";", "if", "(", "obj", "==", "null", ")", "return", "false", ";", "if", "(", "obj", "instanceof", "ExtendedFormatRecord", ")", "{", ...
public override bool Equals(Object obj){if (this == obj)return true;if (obj == null)return false;if (obj is ExtendedFormatRecord){ExtendedFormatRecord other = (ExtendedFormatRecord)obj;if (field_1_font_index != other.field_1_font_index)return false;if (field_2_format_index != other.field_2_format_index)return false;if ...
train
false
4,941
public short[] getTriplet(){return new short[]{(short) (_red & 0xff),(short) (_green & 0xff),(short) (_blue & 0xff)};}
[ "public", "short", "[", "]", "getTriplet", "(", ")", "{", "return", "new", "short", "[", "]", "{", "(", "short", ")", "(", "_red", "&", "0xff", ")", ",", "(", "short", ")", "(", "_green", "&", "0xff", ")", ",", "(", "short", ")", "(", "_blue", ...
public override byte[] GetTriplet(){return new byte[]{(byte)(red & 0xff),(byte)(green & 0xff),(byte)(blue & 0xff)};}
train
false
4,942
public BlameCommand setFollowFileRenames(boolean follow) {followFileRenames = Boolean.valueOf(follow);return this;}
[ "public", "BlameCommand", "setFollowFileRenames", "(", "boolean", "follow", ")", "{", "followFileRenames", "=", "Boolean", ".", "valueOf", "(", "follow", ")", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.BlameCommand SetFollowFileRenames(bool follow){followFileRenames = Sharpen.Extensions.ValueOf(follow);return this;}
train
false
4,943
public StringMatcher(String value, CmpOp operator) {super(operator);_value = value;switch(operator.getCode()) {case CmpOp.NONE:case CmpOp.EQ:case CmpOp.NE:_pattern = getWildCardPattern(value);break;default:_pattern = null;}}
[ "public", "StringMatcher", "(", "String", "value", ",", "CmpOp", "operator", ")", "{", "super", "(", "operator", ")", ";", "_value", "=", "value", ";", "switch", "(", "operator", ".", "getCode", "(", ")", ")", "{", "case", "CmpOp", ".", "NONE", ":", ...
public StringMatcher(String value, CmpOp optr):base(optr){_value = value;_operator = optr;switch (optr.Code){case CmpOp.NONE:case CmpOp.EQ:case CmpOp.NE:_pattern = GetWildCardPattern(value);break;default:_pattern = null;break;}}
train
false
4,944
public DefaultColWidthRecord() {field_1_col_width = DEFAULT_COLUMN_WIDTH;}
[ "public", "DefaultColWidthRecord", "(", ")", "{", "field_1_col_width", "=", "DEFAULT_COLUMN_WIDTH", ";", "}" ]
public DefaultColWidthRecord(){field_1_col_width = DEFAULT_COLUMN_WIDTH;}
train
false
4,945
public GetIndustryInfoListRequest() {super("industry-brain", "2018-07-12", "GetIndustryInfoList");setProtocol(ProtocolType.HTTPS);}
[ "public", "GetIndustryInfoListRequest", "(", ")", "{", "super", "(", "\"industry-brain\"", ",", "\"2018-07-12\"", ",", "\"GetIndustryInfoList\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public GetIndustryInfoListRequest(): base("industry-brain", "2018-07-12", "GetIndustryInfoList"){Protocol = ProtocolType.HTTPS;}
train
false
4,946
public AssociateTrialComponentResult associateTrialComponent(AssociateTrialComponentRequest request) {request = beforeClientExecution(request);return executeAssociateTrialComponent(request);}
[ "public", "AssociateTrialComponentResult", "associateTrialComponent", "(", "AssociateTrialComponentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAssociateTrialComponent", "(", "request", ")", ";", "}" ]
public virtual AssociateTrialComponentResponse AssociateTrialComponent(AssociateTrialComponentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateTrialComponentRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateTrialComponentResponseUnmarshaller.Instance;return Invoke...
train
false
4,947
public FileIdCluster addCluster(int dgId, int numShapedUsed) {return addCluster(dgId, numShapedUsed, true);}
[ "public", "FileIdCluster", "addCluster", "(", "int", "dgId", ",", "int", "numShapedUsed", ")", "{", "return", "addCluster", "(", "dgId", ",", "numShapedUsed", ",", "true", ")", ";", "}" ]
public void AddCluster(int dgId, int numShapedUsed){AddCluster(dgId, numShapedUsed, true);}
train
false
4,948
public GetFieldLevelEncryptionResult getFieldLevelEncryption(GetFieldLevelEncryptionRequest request) {request = beforeClientExecution(request);return executeGetFieldLevelEncryption(request);}
[ "public", "GetFieldLevelEncryptionResult", "getFieldLevelEncryption", "(", "GetFieldLevelEncryptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetFieldLevelEncryption", "(", "request", ")", ";", "}" ]
public virtual GetFieldLevelEncryptionResponse GetFieldLevelEncryption(GetFieldLevelEncryptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFieldLevelEncryptionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFieldLevelEncryptionResponseUnmarshaller.Instance;return Invoke...
train
true
4,949
public CharBuffer get(char[] dst, int dstOffset, int charCount) {Arrays.checkOffsetAndCount(dst.length, dstOffset, charCount);if (charCount > remaining()) {throw new BufferUnderflowException();}for (int i = dstOffset; i < dstOffset + charCount; ++i) {dst[i] = get();}return this;}
[ "public", "CharBuffer", "get", "(", "char", "[", "]", "dst", ",", "int", "dstOffset", ",", "int", "charCount", ")", "{", "Arrays", ".", "checkOffsetAndCount", "(", "dst", ".", "length", ",", "dstOffset", ",", "charCount", ")", ";", "if", "(", "charCount"...
public virtual java.nio.CharBuffer get(char[] dst, int dstOffset, int charCount){java.util.Arrays.checkOffsetAndCount(dst.Length, dstOffset, charCount);if (charCount > remaining()){throw new java.nio.BufferUnderflowException();}{for (int i = dstOffset; i < dstOffset + charCount; ++i){dst[i] = get();}}return this;}
train
false
4,950
public UpdateServiceResult updateService(UpdateServiceRequest request) {request = beforeClientExecution(request);return executeUpdateService(request);}
[ "public", "UpdateServiceResult", "updateService", "(", "UpdateServiceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateService", "(", "request", ")", ";", "}" ]
public virtual UpdateServiceResponse UpdateService(UpdateServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServiceResponseUnmarshaller.Instance;return Invoke<UpdateServiceResponse>(request, options);}
train
true
4,951
public FlushStageCacheResult flushStageCache(FlushStageCacheRequest request) {request = beforeClientExecution(request);return executeFlushStageCache(request);}
[ "public", "FlushStageCacheResult", "flushStageCache", "(", "FlushStageCacheRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeFlushStageCache", "(", "request", ")", ";", "}" ]
public virtual FlushStageCacheResponse FlushStageCache(FlushStageCacheRequest request){var options = new InvokeOptions();options.RequestMarshaller = FlushStageCacheRequestMarshaller.Instance;options.ResponseUnmarshaller = FlushStageCacheResponseUnmarshaller.Instance;return Invoke<FlushStageCacheResponse>(request, optio...
train
true
4,952
public ModifyInstanceMetadataOptionsResult modifyInstanceMetadataOptions(ModifyInstanceMetadataOptionsRequest request) {request = beforeClientExecution(request);return executeModifyInstanceMetadataOptions(request);}
[ "public", "ModifyInstanceMetadataOptionsResult", "modifyInstanceMetadataOptions", "(", "ModifyInstanceMetadataOptionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyInstanceMetadataOptions", "(", "request",...
public virtual ModifyInstanceMetadataOptionsResponse ModifyInstanceMetadataOptions(ModifyInstanceMetadataOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyInstanceMetadataOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyInstanceMetadataOptionsResponseUnmar...
train
false
4,953
public DefaultRowHeightRecord(RecordInputStream in) {field_1_option_flags = in.readShort();field_2_row_height = in.readShort();}
[ "public", "DefaultRowHeightRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_option_flags", "=", "in", ".", "readShort", "(", ")", ";", "field_2_row_height", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public DefaultRowHeightRecord(RecordInputStream in1){field_1_option_flags = in1.ReadShort();field_2_row_height = in1.ReadShort();}
train
false
4,954
public ListModelPackagesResult listModelPackages(ListModelPackagesRequest request) {request = beforeClientExecution(request);return executeListModelPackages(request);}
[ "public", "ListModelPackagesResult", "listModelPackages", "(", "ListModelPackagesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListModelPackages", "(", "request", ")", ";", "}" ]
public virtual ListModelPackagesResponse ListModelPackages(ListModelPackagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListModelPackagesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListModelPackagesResponseUnmarshaller.Instance;return Invoke<ListModelPackagesResponse>(re...
train
true
4,955
public StopFleetActionsResult stopFleetActions(StopFleetActionsRequest request) {request = beforeClientExecution(request);return executeStopFleetActions(request);}
[ "public", "StopFleetActionsResult", "stopFleetActions", "(", "StopFleetActionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopFleetActions", "(", "request", ")", ";", "}" ]
public virtual StopFleetActionsResponse StopFleetActions(StopFleetActionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopFleetActionsRequestMarshaller.Instance;options.ResponseUnmarshaller = StopFleetActionsResponseUnmarshaller.Instance;return Invoke<StopFleetActionsResponse>(request,...
train
true
4,956
public boolean matches(ValueEval x) {double testValue;if(x instanceof StringEval) {switch (getCode()) {case CmpOp.EQ:case CmpOp.NONE:break;case CmpOp.NE:return true;default:return false;}StringEval se = (StringEval)x;Double val = OperandResolver.parseDouble(se.getStringValue());if(val == null) {return false;}return _va...
[ "public", "boolean", "matches", "(", "ValueEval", "x", ")", "{", "double", "testValue", ";", "if", "(", "x", "instanceof", "StringEval", ")", "{", "switch", "(", "getCode", "(", ")", ")", "{", "case", "CmpOp", ".", "EQ", ":", "case", "CmpOp", ".", "N...
public override bool Matches(ValueEval x){double testValue;if (x is StringEval){switch (Code){case CmpOp.EQ:case CmpOp.NONE:break;case CmpOp.NE:return true;default:return false;}StringEval se = (StringEval)x;Double val = OperandResolver.ParseDouble(se.StringValue);if (double.IsNaN(val)){return false;}return _value == v...
train
false
4,957
public boolean include(RevWalk walker, RevCommit c) {throw new UnsupportedOperationException(JGitText.get().cannotBeCombined);}
[ "public", "boolean", "include", "(", "RevWalk", "walker", ",", "RevCommit", "c", ")", "{", "throw", "new", "UnsupportedOperationException", "(", "JGitText", ".", "get", "(", ")", ".", "cannotBeCombined", ")", ";", "}" ]
public override bool Include(RevWalk walker, RevCommit c){throw new NotSupportedException(JGitText.Get().cannotBeCombined);}
train
false
4,958
public LongList(int capacity) {entries = new long[capacity];}
[ "public", "LongList", "(", "int", "capacity", ")", "{", "entries", "=", "new", "long", "[", "capacity", "]", ";", "}" ]
public LongList(int capacity){entries = new long[capacity];}
train
false
4,959
public static String readAsciiLine(InputStream in) throws IOException {StringBuilder result = new StringBuilder(80);while (true) {int c = in.read();if (c == -1) {throw new EOFException();} else if (c == '\n') {break;}result.append((char) c);}int length = result.length();if (length > 0 && result.charAt(length - 1) == '\...
[ "public", "static", "String", "readAsciiLine", "(", "InputStream", "in", ")", "throws", "IOException", "{", "StringBuilder", "result", "=", "new", "StringBuilder", "(", "80", ")", ";", "while", "(", "true", ")", "{", "int", "c", "=", "in", ".", "read", "...
public static string readAsciiLine(java.io.InputStream @in){java.lang.StringBuilder result = new java.lang.StringBuilder(80);while (true){int c = @in.read();if (c == -1){throw new java.io.EOFException();}else{if (c == '\n'){break;}}result.append((char)c);}int length = result.Length;if (length > 0 && result[length - 1] ...
train
true
4,960
public DeleteRouteRequestParameterResult deleteRouteRequestParameter(DeleteRouteRequestParameterRequest request) {request = beforeClientExecution(request);return executeDeleteRouteRequestParameter(request);}
[ "public", "DeleteRouteRequestParameterResult", "deleteRouteRequestParameter", "(", "DeleteRouteRequestParameterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRouteRequestParameter", "(", "request", ")", ...
public virtual DeleteRouteRequestParameterResponse DeleteRouteRequestParameter(DeleteRouteRequestParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRouteRequestParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRouteRequestParameterResponseUnmarshaller.In...
train
false
4,961
public int getRowCountForBlock(int block) {int startIndex = block * DBCellRecord.BLOCK_SIZE;int endIndex = startIndex + DBCellRecord.BLOCK_SIZE - 1;if (endIndex >= _rowRecords.size())endIndex = _rowRecords.size()-1;return endIndex-startIndex+1;}
[ "public", "int", "getRowCountForBlock", "(", "int", "block", ")", "{", "int", "startIndex", "=", "block", "*", "DBCellRecord", ".", "BLOCK_SIZE", ";", "int", "endIndex", "=", "startIndex", "+", "DBCellRecord", ".", "BLOCK_SIZE", "-", "1", ";", "if", "(", "...
public int GetRowCountForBlock(int block){int startIndex = block * DBCellRecord.BLOCK_SIZE;int endIndex = startIndex + DBCellRecord.BLOCK_SIZE - 1;if (endIndex >= _rowRecords.Count)endIndex = _rowRecords.Count - 1;return endIndex - startIndex + 1;}
train
false
4,962
public boolean add(CharSequence text) {return map.put(text, PLACEHOLDER) == null;}
[ "public", "boolean", "add", "(", "CharSequence", "text", ")", "{", "return", "map", ".", "put", "(", "text", ",", "PLACEHOLDER", ")", "==", "null", ";", "}" ]
public virtual bool Add(ICharSequence text){return map.Put(text);}
train
false
4,963
public FSTCompletion(FST<Object> automaton, boolean higherWeightsFirst, boolean exactFirst) {this.automaton = automaton;if (automaton != null) {this.rootArcs = cacheRootArcs(automaton);} else {this.rootArcs = new Arc[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}
[ "public", "FSTCompletion", "(", "FST", "<", "Object", ">", "automaton", ",", "boolean", "higherWeightsFirst", ",", "boolean", "exactFirst", ")", "{", "this", ".", "automaton", "=", "automaton", ";", "if", "(", "automaton", "!=", "null", ")", "{", "this", "...
public FSTCompletion(FST<object> automaton, bool higherWeightsFirst, bool exactFirst){this.automaton = automaton;if (automaton != null){this.rootArcs = CacheRootArcs(automaton);}else{this.rootArcs = new FST.Arc<object>[0];}this.higherWeightsFirst = higherWeightsFirst;this.exactFirst = exactFirst;}
train
false
4,965
public CreateEndpointResult createEndpoint(CreateEndpointRequest request) {request = beforeClientExecution(request);return executeCreateEndpoint(request);}
[ "public", "CreateEndpointResult", "createEndpoint", "(", "CreateEndpointRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateEndpoint", "(", "request", ")", ";", "}" ]
public virtual CreateEndpointResponse CreateEndpoint(CreateEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEndpointResponseUnmarshaller.Instance;return Invoke<CreateEndpointResponse>(request, options);}
train
true
4,966
public int serialize(int offset, byte[] data){LittleEndian.putShort( data, 0 + offset, getSid() );LittleEndian.putShort( data, 2 + offset, (short) ( getRecordSize() - 4 ) );byte[] rawData = getRawData();if ( escherRecords.size() == 0 && rawData != null ){LittleEndian.putShort(data, 0 + offset, getSid());LittleEndian.pu...
[ "public", "int", "serialize", "(", "int", "offset", ",", "byte", "[", "]", "data", ")", "{", "LittleEndian", ".", "putShort", "(", "data", ",", "0", "+", "offset", ",", "getSid", "(", ")", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", ...
public override int Serialize(int offset, byte[] data){LittleEndian.PutShort(data, 0 + offset, Sid);LittleEndian.PutShort(data, 2 + offset, (short)(RecordSize - 4));byte[] rawData = RawData;if (escherRecords.Count == 0 && rawData != null){LittleEndian.PutShort(data, 0 + offset, Sid);LittleEndian.PutShort(data, 2 + offs...
train
false
4,967
public boolean isBelowMaxRep() {int sc = _significand.bitLength() - C_64;return _significand.compareTo(BI_MAX_BASE.shiftLeft(sc)) < 0;}
[ "public", "boolean", "isBelowMaxRep", "(", ")", "{", "int", "sc", "=", "_significand", ".", "bitLength", "(", ")", "-", "C_64", ";", "return", "_significand", ".", "compareTo", "(", "BI_MAX_BASE", ".", "shiftLeft", "(", "sc", ")", ")", "<", "0", ";", "...
public bool IsBelowMaxRep(){int sc = _significand.BitLength() - C_64;return _significand.CompareTo(BI_MAX_BASE.ShiftLeft(sc)) < 0;}
train
false
4,968
public FieldIndexEnum getFieldEnum(FieldInfo fieldInfo) {final FieldIndexData fieldData = fields.get(fieldInfo.name);if (fieldData.fst == null) {return null;} else {return new IndexEnum(fieldData.fst);}}
[ "public", "FieldIndexEnum", "getFieldEnum", "(", "FieldInfo", "fieldInfo", ")", "{", "final", "FieldIndexData", "fieldData", "=", "fields", ".", "get", "(", "fieldInfo", ".", "name", ")", ";", "if", "(", "fieldData", ".", "fst", "==", "null", ")", "{", "re...
public override FieldIndexEnum GetFieldEnum(FieldInfo fieldInfo){FieldIndexData fieldData;if (!fields.TryGetValue(fieldInfo, out fieldData) || fieldData == null || fieldData.fst == null){return null;}else{return new IndexEnum(fieldData.fst);}}
train
false
4,969
public AssociationsFacetsExample() {config = new FacetsConfig();config.setMultiValued("tags", true);config.setIndexFieldName("tags", "$tags");config.setMultiValued("genre", true);config.setIndexFieldName("genre", "$genre");}
[ "public", "AssociationsFacetsExample", "(", ")", "{", "config", "=", "new", "FacetsConfig", "(", ")", ";", "config", ".", "setMultiValued", "(", "\"tags\"", ",", "true", ")", ";", "config", ".", "setIndexFieldName", "(", "\"tags\"", ",", "\"$tags\"", ")", ";...
public AssociationsFacetsExample(){config = new FacetsConfig();config.SetMultiValued("tags", true);config.SetIndexFieldName("tags", "$tags");config.SetMultiValued("genre", true);config.SetIndexFieldName("genre", "$genre");}
train
false
4,970
public void fill(int fromIndex, int toIndex, long val) {ensureCapacity(val);current.fill(fromIndex, toIndex, val);}
[ "public", "void", "fill", "(", "int", "fromIndex", ",", "int", "toIndex", ",", "long", "val", ")", "{", "ensureCapacity", "(", "val", ")", ";", "current", ".", "fill", "(", "fromIndex", ",", "toIndex", ",", "val", ")", ";", "}" ]
public override void Fill(int fromIndex, int toIndex, long val){EnsureCapacity(val);current.Fill(fromIndex, toIndex, val);}
train
false
4,971
public ListDeploymentConfigsResult listDeploymentConfigs(ListDeploymentConfigsRequest request) {request = beforeClientExecution(request);return executeListDeploymentConfigs(request);}
[ "public", "ListDeploymentConfigsResult", "listDeploymentConfigs", "(", "ListDeploymentConfigsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListDeploymentConfigs", "(", "request", ")", ";", "}" ]
public virtual ListDeploymentConfigsResponse ListDeploymentConfigs(ListDeploymentConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDeploymentConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDeploymentConfigsResponseUnmarshaller.Instance;return Invoke<ListDeplo...
train
true
4,972
public ListUserPoliciesRequest(String userName) {setUserName(userName);}
[ "public", "ListUserPoliciesRequest", "(", "String", "userName", ")", "{", "setUserName", "(", "userName", ")", ";", "}" ]
public ListUserPoliciesRequest(string userName){_userName = userName;}
train
false
4,973
public TokenStream create(TokenStream input) {return new FinnishLightStemFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "FinnishLightStemFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new FinnishLightStemFilter(input);}
train
false
4,975
public int getExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName) {int externalBookIndex = getExternalWorkbookIndex(workbookName);if (externalBookIndex == -1) {throw new RuntimeException("No external workbook with name '" + workbookName + "'");}SupBookRecord ebrTarget = _externalBookBlo...
[ "public", "int", "getExternalSheetIndex", "(", "String", "workbookName", ",", "String", "firstSheetName", ",", "String", "lastSheetName", ")", "{", "int", "externalBookIndex", "=", "getExternalWorkbookIndex", "(", "workbookName", ")", ";", "if", "(", "externalBookInde...
public int GetExternalSheetIndex(String workbookName, String firstSheetName, String lastSheetName){int externalBookIndex = GetExternalWorkbookIndex(workbookName);if (externalBookIndex == -1){throw new RuntimeException("No external workbook with name '" + workbookName + "'");}SupBookRecord ebrTarget = _externalBookBlock...
train
false
4,976
public String findSheetLastNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.getLastInternalSheetIndexForExtIndex(externSheetIndex);return findSheetNameFromIndex(indexToSheet);}
[ "public", "String", "findSheetLastNameFromExternSheet", "(", "int", "externSheetIndex", ")", "{", "int", "indexToSheet", "=", "linkTable", ".", "getLastInternalSheetIndexForExtIndex", "(", "externSheetIndex", ")", ";", "return", "findSheetNameFromIndex", "(", "indexToSheet"...
public String FindSheetLastNameFromExternSheet(int externSheetIndex){int indexToSheet = linkTable.GetLastInternalSheetIndexForExtIndex(externSheetIndex);return FindSheetNameFromIndex(indexToSheet);}
train
false
4,978
public final ValueEval getValue() {return _value;}
[ "public", "final", "ValueEval", "getValue", "(", ")", "{", "return", "_value", ";", "}" ]
public ValueEval GetValue(){return _value;}
train
false
4,979
public ImportImageResult importImage(ImportImageRequest request) {request = beforeClientExecution(request);return executeImportImage(request);}
[ "public", "ImportImageResult", "importImage", "(", "ImportImageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeImportImage", "(", "request", ")", ";", "}" ]
public virtual ImportImageResponse ImportImage(ImportImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportImageRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportImageResponseUnmarshaller.Instance;return Invoke<ImportImageResponse>(request, options);}
train
true
4,980
public PruneByAge(double maxAgeSec) {if (maxAgeSec < 0) {throw new IllegalArgumentException("maxAgeSec must be > 0 (got " + maxAgeSec + ")");}this.maxAgeSec = maxAgeSec;}
[ "public", "PruneByAge", "(", "double", "maxAgeSec", ")", "{", "if", "(", "maxAgeSec", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"maxAgeSec must be > 0 (got \"", "+", "maxAgeSec", "+", "\")\"", ")", ";", "}", "this", ".", "maxAgeSec...
public PruneByAge(double maxAgeSec){if (maxAgeSec < 0){throw new System.ArgumentException("maxAgeSec must be > 0 (got " + maxAgeSec + ")");}this.maxAgeSec = maxAgeSec;}
train
false
4,981
public DeleteSecurityGroupRequest(String groupName) {setGroupName(groupName);}
[ "public", "DeleteSecurityGroupRequest", "(", "String", "groupName", ")", "{", "setGroupName", "(", "groupName", ")", ";", "}" ]
public DeleteSecurityGroupRequest(string groupName){_groupName = groupName;}
train
false
4,982
public GetRoomSkillParameterResult getRoomSkillParameter(GetRoomSkillParameterRequest request) {request = beforeClientExecution(request);return executeGetRoomSkillParameter(request);}
[ "public", "GetRoomSkillParameterResult", "getRoomSkillParameter", "(", "GetRoomSkillParameterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetRoomSkillParameter", "(", "request", ")", ";", "}" ]
public virtual GetRoomSkillParameterResponse GetRoomSkillParameter(GetRoomSkillParameterRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoomSkillParameterRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoomSkillParameterResponseUnmarshaller.Instance;return Invoke<GetRoomSk...
train
true
4,983
public ParserRuleContext parse(int startRuleIndex) {RuleStartState startRuleStartState = atn.ruleToStartState[startRuleIndex];rootContext = createInterpreterRuleContext(null, ATNState.INVALID_STATE_NUMBER, startRuleIndex);if (startRuleStartState.isLeftRecursiveRule) {enterRecursionRule(rootContext, startRuleStartState....
[ "public", "ParserRuleContext", "parse", "(", "int", "startRuleIndex", ")", "{", "RuleStartState", "startRuleStartState", "=", "atn", ".", "ruleToStartState", "[", "startRuleIndex", "]", ";", "rootContext", "=", "createInterpreterRuleContext", "(", "null", ",", "ATNSta...
public virtual ParserRuleContext Parse(int startRuleIndex){RuleStartState startRuleStartState = _atn.ruleToStartState[startRuleIndex];InterpreterRuleContext rootContext = new InterpreterRuleContext(null, ATNState.InvalidStateNumber, startRuleIndex);if (startRuleStartState.isPrecedenceRule){EnterRecursionRule(rootContex...
train
false
4,984
public DeleteInstallationMediaResult deleteInstallationMedia(DeleteInstallationMediaRequest request) {request = beforeClientExecution(request);return executeDeleteInstallationMedia(request);}
[ "public", "DeleteInstallationMediaResult", "deleteInstallationMedia", "(", "DeleteInstallationMediaRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteInstallationMedia", "(", "request", ")", ";", "}" ]
public virtual DeleteInstallationMediaResponse DeleteInstallationMedia(DeleteInstallationMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteInstallationMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteInstallationMediaResponseUnmarshaller.Instance;return Invoke...
train
false
4,985
public boolean accept(double value) {return value >= min && value <= max;}
[ "public", "boolean", "accept", "(", "double", "value", ")", "{", "return", "value", ">=", "min", "&&", "value", "<=", "max", ";", "}" ]
public bool Accept(double value){return value >= minIncl && value <= maxIncl;}
train
false
4,986
public GetVariablesResult getVariables(GetVariablesRequest request) {request = beforeClientExecution(request);return executeGetVariables(request);}
[ "public", "GetVariablesResult", "getVariables", "(", "GetVariablesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetVariables", "(", "request", ")", ";", "}" ]
public virtual GetVariablesResponse GetVariables(GetVariablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVariablesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVariablesResponseUnmarshaller.Instance;return Invoke<GetVariablesResponse>(request, options);}
train
false
4,988
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_pointNumber);out.writeShort(field_2_seriesIndex);out.writeShort(field_3_seriesNumber);out.writeShort(field_4_formatFlags);}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeShort", "(", "field_1_pointNumber", ")", ";", "out", ".", "writeShort", "(", "field_2_seriesIndex", ")", ";", "out", ".", "writeShort", "(", "field_3_seriesNumber", ")",...
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_pointNumber);out1.WriteShort(field_2_seriesIndex);out1.WriteShort(field_3_seriesNumber);out1.WriteShort(field_4_formatFlags);}
train
false
4,989
public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, String arearef) {this(externalWorkbookNumber, sheetName, new AreaReference(arearef, SpreadsheetVersion.EXCEL2007));}
[ "public", "Area3DPxg", "(", "int", "externalWorkbookNumber", ",", "SheetIdentifier", "sheetName", ",", "String", "arearef", ")", "{", "this", "(", "externalWorkbookNumber", ",", "sheetName", ",", "new", "AreaReference", "(", "arearef", ",", "SpreadsheetVersion", "."...
public Area3DPxg(int externalWorkbookNumber, SheetIdentifier sheetName, String arearef): this(externalWorkbookNumber, sheetName, new AreaReference(arearef)){;}
train
false
4,990
public final CharSequence subSequence(int start, int end) {checkStartEndRemaining(start, end);CharBuffer result = duplicate();result.limit(position + end);result.position(position + start);return result;}
[ "public", "final", "CharSequence", "subSequence", "(", "int", "start", ",", "int", "end", ")", "{", "checkStartEndRemaining", "(", "start", ",", "end", ")", ";", "CharBuffer", "result", "=", "duplicate", "(", ")", ";", "result", ".", "limit", "(", "positio...
public sealed override java.lang.CharSequence SubSequence(int start, int end){checkStartEndRemaining(start, end);java.nio.CharBuffer result = duplicate();result.limit(_position + end);result.position(_position + start);return result;}
train
false
4,991
public DescribeInstallationMediaResult describeInstallationMedia(DescribeInstallationMediaRequest request) {request = beforeClientExecution(request);return executeDescribeInstallationMedia(request);}
[ "public", "DescribeInstallationMediaResult", "describeInstallationMedia", "(", "DescribeInstallationMediaRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeInstallationMedia", "(", "request", ")", ";", ...
public virtual DescribeInstallationMediaResponse DescribeInstallationMedia(DescribeInstallationMediaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstallationMediaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstallationMediaResponseUnmarshaller.Instance;ret...
train
false