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
3,305
public DetachInstancesFromLoadBalancerResult detachInstancesFromLoadBalancer(DetachInstancesFromLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDetachInstancesFromLoadBalancer(request);}
[ "public", "DetachInstancesFromLoadBalancerResult", "detachInstancesFromLoadBalancer", "(", "DetachInstancesFromLoadBalancerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetachInstancesFromLoadBalancer", "(", "request", ")", ";", "}" ]
public virtual DetachInstancesFromLoadBalancerResponse DetachInstancesFromLoadBalancer(DetachInstancesFromLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesFromLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesFromLoadBalancerResponseUnmarshaller.Instance;return Invoke<DetachInstancesFromLoadBalancerResponse>(request, options);}
train
true
3,306
public int getSourceStart() {return outRegion.sourceStart;}
[ "public", "int", "getSourceStart", "(", ")", "{", "return", "outRegion", ".", "sourceStart", ";", "}" ]
public virtual int GetSourceStart(){return currentSource.regionList.sourceStart;}
train
false
3,307
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[FORMAT]\n");buffer.append(" .indexcode = ").append(HexDump.shortToHex(getIndexCode())).append("\n");buffer.append(" .isUnicode = ").append(field_3_hasMultibyte ).append("\n");buffer.append(" .formatstring = ").append(getFormatString()).append("\n");buffer.append("[/FORMAT]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[FORMAT]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .indexcode = \"", ")", ".", "append", "(", "HexDump", ".", "shortToHex", "(", "getIndexCode", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .isUnicode = \"", ")", ".", "append", "(", "field_3_hasMultibyte", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .formatstring = \"", ")", ".", "append", "(", "getFormatString", "(", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/FORMAT]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FORMAT]\n");buffer.Append(" .indexcode = ").Append(HexDump.ShortToHex(IndexCode)).Append("\n");buffer.Append(" .isUnicode = ").Append(field_3_hasMultibyte).Append("\n");buffer.Append(" .formatstring = ").Append(FormatString).Append("\n");buffer.Append("[/FORMAT]\n");return buffer.ToString();}
train
false
3,308
public void remove() {if (lastReturned == null) {throw new IllegalStateException();}Impl.this.remove(lastReturned.getKey());lastReturned = null;}
[ "public", "void", "remove", "(", ")", "{", "if", "(", "lastReturned", "==", "null", ")", "{", "throw", "new", "IllegalStateException", "(", ")", ";", "}", "Impl", ".", "this", ".", "remove", "(", "lastReturned", ".", "getKey", "(", ")", ")", ";", "lastReturned", "=", "null", ";", "}" ]
public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCount = this._enclosing.modCount;}
train
false
3,309
public String toString() {if (getChildren() == null || getChildren().size() == 0)return "<boolean operation='or'/>";StringBuilder sb = new StringBuilder();sb.append("<boolean operation='or'>");for (QueryNode child : getChildren()) {sb.append("\n");sb.append(child.toString());}sb.append("\n</boolean>");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "if", "(", "getChildren", "(", ")", "==", "null", "||", "getChildren", "(", ")", ".", "size", "(", ")", "==", "0", ")", "return", "\"<boolean operation='or'/>\"", ";", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "\"<boolean operation='or'>\"", ")", ";", "for", "(", "QueryNode", "child", ":", "getChildren", "(", ")", ")", "{", "sb", ".", "append", "(", "\"\\n\"", ")", ";", "sb", ".", "append", "(", "child", ".", "toString", "(", ")", ")", ";", "}", "sb", ".", "append", "(", "\"\\n</boolean>\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){var children = GetChildren();if (children == null || children.Count == 0)return "<boolean operation='or'/>";StringBuilder sb = new StringBuilder();sb.Append("<boolean operation='or'>");foreach (IQueryNode child in children){sb.Append("\n");sb.Append(child.ToString());}sb.Append("\n</boolean>");return sb.ToString();}
train
false
3,310
public String getPartOfSpeech(int wordId) {return getFeature(wordId, 1);}
[ "public", "String", "getPartOfSpeech", "(", "int", "wordId", ")", "{", "return", "getFeature", "(", "wordId", ",", "1", ")", ";", "}" ]
public string GetPartOfSpeech(int wordId){return GetFeature(wordId, 1);}
train
false
3,311
public BatchWriteResult batchWrite(BatchWriteRequest request) {request = beforeClientExecution(request);return executeBatchWrite(request);}
[ "public", "BatchWriteResult", "batchWrite", "(", "BatchWriteRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchWrite", "(", "request", ")", ";", "}" ]
public virtual BatchWriteResponse BatchWrite(BatchWriteRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchWriteRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchWriteResponseUnmarshaller.Instance;return Invoke<BatchWriteResponse>(request, options);}
train
true
3,313
public ConfirmTransitVirtualInterfaceResult confirmTransitVirtualInterface(ConfirmTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeConfirmTransitVirtualInterface(request);}
[ "public", "ConfirmTransitVirtualInterfaceResult", "confirmTransitVirtualInterface", "(", "ConfirmTransitVirtualInterfaceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeConfirmTransitVirtualInterface", "(", "request", ")", ";", "}" ]
public virtual ConfirmTransitVirtualInterfaceResponse ConfirmTransitVirtualInterface(ConfirmTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<ConfirmTransitVirtualInterfaceResponse>(request, options);}
train
false
3,314
public GetFileUploadURLResult getFileUploadURL(GetFileUploadURLRequest request) {request = beforeClientExecution(request);return executeGetFileUploadURL(request);}
[ "public", "GetFileUploadURLResult", "getFileUploadURL", "(", "GetFileUploadURLRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetFileUploadURL", "(", "request", ")", ";", "}" ]
public virtual GetFileUploadURLResponse GetFileUploadURL(GetFileUploadURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFileUploadURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFileUploadURLResponseUnmarshaller.Instance;return Invoke<GetFileUploadURLResponse>(request, options);}
train
true
3,315
public TokenStream create(TokenStream input) {return new KeywordRepeatFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "KeywordRepeatFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new KeywordRepeatFilter(input);}
train
false
3,316
public StartWorkspacesResult startWorkspaces(StartWorkspacesRequest request) {request = beforeClientExecution(request);return executeStartWorkspaces(request);}
[ "public", "StartWorkspacesResult", "startWorkspaces", "(", "StartWorkspacesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartWorkspaces", "(", "request", ")", ";", "}" ]
public virtual StartWorkspacesResponse StartWorkspaces(StartWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = StartWorkspacesResponseUnmarshaller.Instance;return Invoke<StartWorkspacesResponse>(request, options);}
train
true
3,317
public int getDeltaCacheLimit() {return deltaCacheLimit;}
[ "public", "int", "getDeltaCacheLimit", "(", ")", "{", "return", "deltaCacheLimit", ";", "}" ]
public virtual int GetDeltaCacheLimit(){return deltaCacheLimit;}
train
false
3,318
public RebootJumpserverRequest() {super("HPC", "2016-06-03", "RebootJumpserver", "hpc");setMethod(MethodType.POST);}
[ "public", "RebootJumpserverRequest", "(", ")", "{", "super", "(", "\"HPC\"", ",", "\"2016-06-03\"", ",", "\"RebootJumpserver\"", ",", "\"hpc\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public RebootJumpserverRequest(): base("HPC", "2016-06-03", "RebootJumpserver"){Method = MethodType.POST;}
train
false
3,319
public int getResultEnd() {Region r = outRegion;return r.resultStart + r.length;}
[ "public", "int", "getResultEnd", "(", ")", "{", "Region", "r", "=", "outRegion", ";", "return", "r", ".", "resultStart", "+", "r", ".", "length", ";", "}" ]
public virtual int GetResultEnd(){Region r = currentSource.regionList;return r.resultStart + r.length;}
train
false
3,320
public CreateLagResult createLag(CreateLagRequest request) {request = beforeClientExecution(request);return executeCreateLag(request);}
[ "public", "CreateLagResult", "createLag", "(", "CreateLagRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateLag", "(", "request", ")", ";", "}" ]
public virtual CreateLagResponse CreateLag(CreateLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLagRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLagResponseUnmarshaller.Instance;return Invoke<CreateLagResponse>(request, options);}
train
true
3,321
public ConflictState getConflictState() {return conflictState;}
[ "public", "ConflictState", "getConflictState", "(", ")", "{", "return", "conflictState", ";", "}" ]
public virtual MergeChunk.ConflictState GetConflictState(){return conflictState;}
train
false
3,322
public final void writeByte(int val) throws IOException {write(val & 0xFF);}
[ "public", "final", "void", "writeByte", "(", "int", "val", ")", "throws", "IOException", "{", "write", "(", "val", "&", "0xFF", ")", ";", "}" ]
public virtual void writeByte(int val){throw new System.NotImplementedException();}
train
false
3,323
public UpdateRelationalDatabaseResult updateRelationalDatabase(UpdateRelationalDatabaseRequest request) {request = beforeClientExecution(request);return executeUpdateRelationalDatabase(request);}
[ "public", "UpdateRelationalDatabaseResult", "updateRelationalDatabase", "(", "UpdateRelationalDatabaseRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateRelationalDatabase", "(", "request", ")", ";", "}" ]
public virtual UpdateRelationalDatabaseResponse UpdateRelationalDatabase(UpdateRelationalDatabaseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRelationalDatabaseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRelationalDatabaseResponseUnmarshaller.Instance;return Invoke<UpdateRelationalDatabaseResponse>(request, options);}
train
true
3,324
public Entry<K, V> lowerEntry(K key) {return immutableCopy(findBounded(key, LOWER));}
[ "public", "Entry", "<", "K", ",", "V", ">", "lowerEntry", "(", "K", "key", ")", "{", "return", "immutableCopy", "(", "findBounded", "(", "key", ",", "LOWER", ")", ")", ";", "}" ]
public java.util.MapClass.Entry<K, V> lowerEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.LOWER));}
train
false
3,325
public ExternalNameRecord() {field_2_ixals = 0;}
[ "public", "ExternalNameRecord", "(", ")", "{", "field_2_ixals", "=", "0", ";", "}" ]
public ExternalNameRecord(){field_2_ixals = 0;}
train
false
3,326
public int stem(char s[], int len) {len = stemPrefix(s, len);len = stemSuffix(s, len);return len;}
[ "public", "int", "stem", "(", "char", "s", "[", "]", ",", "int", "len", ")", "{", "len", "=", "stemPrefix", "(", "s", ",", "len", ")", ";", "len", "=", "stemSuffix", "(", "s", ",", "len", ")", ";", "return", "len", ";", "}" ]
public virtual int Stem(char[] s, int len){len = StemPrefix(s, len);len = StemSuffix(s, len);return len;}
train
false
3,328
public IllegalFormatFlagsException(String flags) {if (flags == null) {throw new NullPointerException();}this.flags = flags;}
[ "public", "IllegalFormatFlagsException", "(", "String", "flags", ")", "{", "if", "(", "flags", "==", "null", ")", "{", "throw", "new", "NullPointerException", "(", ")", ";", "}", "this", ".", "flags", "=", "flags", ";", "}" ]
public IllegalFormatFlagsException(string flags){if (flags == null){throw new System.ArgumentNullException();}this.flags = flags;}
train
false
3,329
public boolean shouldBeRecursive() {return false;}
[ "public", "boolean", "shouldBeRecursive", "(", ")", "{", "return", "false", ";", "}" ]
public override bool ShouldBeRecursive(){return false;}
train
false
3,330
public CapitalizationFilter create(TokenStream input) {return new CapitalizationFilter(input, onlyFirstWord, keep,forceFirstLetter, okPrefix, minWordLength, maxWordCount, maxTokenLength);}
[ "public", "CapitalizationFilter", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "CapitalizationFilter", "(", "input", ",", "onlyFirstWord", ",", "keep", ",", "forceFirstLetter", ",", "okPrefix", ",", "minWordLength", ",", "maxWordCount", ",", "maxTokenLength", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new CapitalizationFilter(input, onlyFirstWord, keep, forceFirstLetter, okPrefix, minWordLength, maxWordCount, maxTokenLength, culture);}
train
false
3,331
public GetAppliedSchemaVersionResult getAppliedSchemaVersion(GetAppliedSchemaVersionRequest request) {request = beforeClientExecution(request);return executeGetAppliedSchemaVersion(request);}
[ "public", "GetAppliedSchemaVersionResult", "getAppliedSchemaVersion", "(", "GetAppliedSchemaVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetAppliedSchemaVersion", "(", "request", ")", ";", "}" ]
public virtual GetAppliedSchemaVersionResponse GetAppliedSchemaVersion(GetAppliedSchemaVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppliedSchemaVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppliedSchemaVersionResponseUnmarshaller.Instance;return Invoke<GetAppliedSchemaVersionResponse>(request, options);}
train
true
3,332
public DescribeLabelingJobResult describeLabelingJob(DescribeLabelingJobRequest request) {request = beforeClientExecution(request);return executeDescribeLabelingJob(request);}
[ "public", "DescribeLabelingJobResult", "describeLabelingJob", "(", "DescribeLabelingJobRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLabelingJob", "(", "request", ")", ";", "}" ]
public virtual DescribeLabelingJobResponse DescribeLabelingJob(DescribeLabelingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLabelingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLabelingJobResponseUnmarshaller.Instance;return Invoke<DescribeLabelingJobResponse>(request, options);}
train
true
3,333
public DeleteAttendeeResult deleteAttendee(DeleteAttendeeRequest request) {request = beforeClientExecution(request);return executeDeleteAttendee(request);}
[ "public", "DeleteAttendeeResult", "deleteAttendee", "(", "DeleteAttendeeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteAttendee", "(", "request", ")", ";", "}" ]
public virtual DeleteAttendeeResponse DeleteAttendee(DeleteAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAttendeeResponseUnmarshaller.Instance;return Invoke<DeleteAttendeeResponse>(request, options);}
train
false
3,334
public final String toString(List<String> ruleNames) {return toString(ruleNames, null);}
[ "public", "final", "String", "toString", "(", "List", "<", "String", ">", "ruleNames", ")", "{", "return", "toString", "(", "ruleNames", ",", "null", ")", ";", "}" ]
public string ToString(IList<string> ruleNames){return ToString(ruleNames, null);}
train
false
3,335
public RejectAssignmentResult rejectAssignment(RejectAssignmentRequest request) {request = beforeClientExecution(request);return executeRejectAssignment(request);}
[ "public", "RejectAssignmentResult", "rejectAssignment", "(", "RejectAssignmentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRejectAssignment", "(", "request", ")", ";", "}" ]
public virtual RejectAssignmentResponse RejectAssignment(RejectAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = RejectAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = RejectAssignmentResponseUnmarshaller.Instance;return Invoke<RejectAssignmentResponse>(request, options);}
train
true
3,336
public CharVector(char[] a, int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = a.length;}
[ "public", "CharVector", "(", "char", "[", "]", "a", ",", "int", "capacity", ")", "{", "if", "(", "capacity", ">", "0", ")", "{", "blockSize", "=", "capacity", ";", "}", "else", "{", "blockSize", "=", "DEFAULT_BLOCK_SIZE", ";", "}", "array", "=", "a", ";", "n", "=", "a", ".", "length", ";", "}" ]
public CharVector(char[] a, int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = a.Length;}
train
false
3,337
public UnsubscribeFromEventResult unsubscribeFromEvent(UnsubscribeFromEventRequest request) {request = beforeClientExecution(request);return executeUnsubscribeFromEvent(request);}
[ "public", "UnsubscribeFromEventResult", "unsubscribeFromEvent", "(", "UnsubscribeFromEventRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUnsubscribeFromEvent", "(", "request", ")", ";", "}" ]
public virtual UnsubscribeFromEventResponse UnsubscribeFromEvent(UnsubscribeFromEventRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnsubscribeFromEventRequestMarshaller.Instance;options.ResponseUnmarshaller = UnsubscribeFromEventResponseUnmarshaller.Instance;return Invoke<UnsubscribeFromEventResponse>(request, options);}
train
true
3,338
public String getNextToken() {if( pos >= format.length() ) {return null;}int subStart = pos;final char curChar = format.charAt(pos);++pos;if( curChar == '\'' ) {while( ( pos < format.length() ) && ( format.charAt(pos) != '\'' ) ) {++pos;}if( pos < format.length() ) {++pos;}} else {while( ( pos < format.length() ) && ( format.charAt(pos) == curChar ) ) {++pos;}}return format.substring(subStart,pos);}
[ "public", "String", "getNextToken", "(", ")", "{", "if", "(", "pos", ">=", "format", ".", "length", "(", ")", ")", "{", "return", "null", ";", "}", "int", "subStart", "=", "pos", ";", "final", "char", "curChar", "=", "format", ".", "charAt", "(", "pos", ")", ";", "++", "pos", ";", "if", "(", "curChar", "==", "'\\''", ")", "{", "while", "(", "(", "pos", "<", "format", ".", "length", "(", ")", ")", "&&", "(", "format", ".", "charAt", "(", "pos", ")", "!=", "'\\''", ")", ")", "{", "++", "pos", ";", "}", "if", "(", "pos", "<", "format", ".", "length", "(", ")", ")", "{", "++", "pos", ";", "}", "}", "else", "{", "while", "(", "(", "pos", "<", "format", ".", "length", "(", ")", ")", "&&", "(", "format", ".", "charAt", "(", "pos", ")", "==", "curChar", ")", ")", "{", "++", "pos", ";", "}", "}", "return", "format", ".", "substring", "(", "subStart", ",", "pos", ")", ";", "}" ]
public string GetNextToken(){if (pos >= format.Length){return null;}int subStart = pos;char curChar = format[pos];++pos;if (curChar == '\''){while ((pos < format.Length) && ((curChar = format[pos]) != '\'')){++pos;}if (pos < format.Length){++pos;}}else{char activeChar = curChar;while ((pos < format.Length) && ((curChar = format[pos])) == activeChar){++pos;}}return format.Substring(subStart, pos - subStart);}
train
false
3,339
public Policy withId(String id) {setId(id);return this;}
[ "public", "Policy", "withId", "(", "String", "id", ")", "{", "setId", "(", "id", ")", ";", "return", "this", ";", "}" ]
public Policy WithId(string id){Id = id;return this;}
train
false
3,340
public void setStringValue(String value) {if (!(fieldsData instanceof String)) {throw new IllegalArgumentException("cannot change value type from " + fieldsData.getClass().getSimpleName() + " to String");}if (value == null) {throw new IllegalArgumentException("value must not be null");}fieldsData = value;}
[ "public", "void", "setStringValue", "(", "String", "value", ")", "{", "if", "(", "!", "(", "fieldsData", "instanceof", "String", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"cannot change value type from \"", "+", "fieldsData", ".", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\" to String\"", ")", ";", "}", "if", "(", "value", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"value must not be null\"", ")", ";", "}", "fieldsData", "=", "value", ";", "}" ]
public virtual void SetStringValue(string value){if (!(FieldsData is string)){throw new ArgumentException("cannot change value type from " + FieldsData.GetType().Name + " to string");}FieldsData = value;}
train
false
3,341
public Area3DPtg(String arearef, int externIdx) {super(new AreaReference(arearef, SpreadsheetVersion.EXCEL97));setExternSheetIndex(externIdx);}
[ "public", "Area3DPtg", "(", "String", "arearef", ",", "int", "externIdx", ")", "{", "super", "(", "new", "AreaReference", "(", "arearef", ",", "SpreadsheetVersion", ".", "EXCEL97", ")", ")", ";", "setExternSheetIndex", "(", "externIdx", ")", ";", "}" ]
public Area3DPtg(String arearef, int externIdx):base(arearef){ExternSheetIndex=externIdx;}
train
false
3,342
public boolean empty() {return isEmpty();}
[ "public", "boolean", "empty", "(", ")", "{", "return", "isEmpty", "(", ")", ";", "}" ]
public virtual bool empty(){return isEmpty();}
train
false
3,343
public DeleteMemberResult deleteMember(DeleteMemberRequest request) {request = beforeClientExecution(request);return executeDeleteMember(request);}
[ "public", "DeleteMemberResult", "deleteMember", "(", "DeleteMemberRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteMember", "(", "request", ")", ";", "}" ]
public virtual DeleteMemberResponse DeleteMember(DeleteMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance;return Invoke<DeleteMemberResponse>(request, options);}
train
false
3,344
public DeleteRepositoryResult deleteRepository(DeleteRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteRepository(request);}
[ "public", "DeleteRepositoryResult", "deleteRepository", "(", "DeleteRepositoryRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRepository", "(", "request", ")", ";", "}" ]
public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance;return Invoke<DeleteRepositoryResponse>(request, options);}
train
true
3,345
public GetChangeResult getChange(GetChangeRequest request) {request = beforeClientExecution(request);return executeGetChange(request);}
[ "public", "GetChangeResult", "getChange", "(", "GetChangeRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetChange", "(", "request", ")", ";", "}" ]
public virtual GetChangeResponse GetChange(GetChangeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChangeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChangeResponseUnmarshaller.Instance;return Invoke<GetChangeResponse>(request, options);}
train
true
3,346
public PrefixCodedTerms finish() {return new PrefixCodedTerms(output.toBufferList(), size);}
[ "public", "PrefixCodedTerms", "finish", "(", ")", "{", "return", "new", "PrefixCodedTerms", "(", "output", ".", "toBufferList", "(", ")", ",", "size", ")", ";", "}" ]
public FieldInfos Finish(){return new FieldInfos(byName.Values.ToArray());}
train
false
3,347
@Override public synchronized void clear() {elements = EmptyArray.OBJECT;}
[ "@", "Override", "public", "synchronized", "void", "clear", "(", ")", "{", "elements", "=", "EmptyArray", ".", "OBJECT", ";", "}" ]
public virtual void clear(){lock (this){elements = libcore.util.EmptyArray.OBJECT;}}
train
false
3,348
public LongBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());LongToByteBufferAdapter buf = new LongToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
[ "public", "LongBuffer", "duplicate", "(", ")", "{", "ByteBuffer", "bb", "=", "byteBuffer", ".", "duplicate", "(", ")", ".", "order", "(", "byteBuffer", ".", "order", "(", ")", ")", ";", "LongToByteBufferAdapter", "buf", "=", "new", "LongToByteBufferAdapter", "(", "bb", ")", ";", "buf", ".", "limit", "=", "limit", ";", "buf", ".", "position", "=", "position", ";", "buf", ".", "mark", "=", "mark", ";", "return", "buf", ";", "}" ]
public override java.nio.LongBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.LongToByteBufferAdapter buf = new java.nio.LongToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
train
false
3,349
public StyleRecord() {field_1_xf_index = isBuiltinFlag.set(0);}
[ "public", "StyleRecord", "(", ")", "{", "field_1_xf_index", "=", "isBuiltinFlag", ".", "set", "(", "0", ")", ";", "}" ]
public StyleRecord(){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);}
train
false
3,350
public boolean equals(Object o) {if (o instanceof AbbreviatedObjectId) {final AbbreviatedObjectId b = (AbbreviatedObjectId) o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2&& w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "o", "instanceof", "AbbreviatedObjectId", ")", "{", "final", "AbbreviatedObjectId", "b", "=", "(", "AbbreviatedObjectId", ")", "o", ";", "return", "nibbles", "==", "b", ".", "nibbles", "&&", "w1", "==", "b", ".", "w1", "&&", "w2", "==", "b", ".", "w2", "&&", "w3", "==", "b", ".", "w3", "&&", "w4", "==", "b", ".", "w4", "&&", "w5", "==", "b", ".", "w5", ";", "}", "return", "false", ";", "}" ]
public override bool Equals(object o){if (o is NGit.AbbreviatedObjectId){NGit.AbbreviatedObjectId b = (NGit.AbbreviatedObjectId)o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2 && w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}
train
false
3,352
public ExtendedFormatRecord getExFormatAt(int index) {int xfptr = records.getXfpos() - (numxfs - 1);xfptr += index;return ( ExtendedFormatRecord ) records.get(xfptr);}
[ "public", "ExtendedFormatRecord", "getExFormatAt", "(", "int", "index", ")", "{", "int", "xfptr", "=", "records", ".", "getXfpos", "(", ")", "-", "(", "numxfs", "-", "1", ")", ";", "xfptr", "+=", "index", ";", "return", "(", "ExtendedFormatRecord", ")", "records", ".", "get", "(", "xfptr", ")", ";", "}" ]
public ExtendedFormatRecord GetExFormatAt(int index){int xfptr = records.Xfpos - (numxfs - 1);xfptr += index;ExtendedFormatRecord retval =(ExtendedFormatRecord)records[xfptr];return retval;}
train
false
3,353
public Resource(String resource) {this.resource = resource;}
[ "public", "Resource", "(", "String", "resource", ")", "{", "this", ".", "resource", "=", "resource", ";", "}" ]
public Resource(string resource){this.resource = resource;}
train
false
3,354
public NorwegianLightStemFilterFactory(Map<String,String> args) {super(args);String variant = get(args, "variant");if (variant == null || "nb".equals(variant)) {flags = BOKMAAL;} else if ("nn".equals(variant)) {flags = NYNORSK;} else if ("no".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException("invalid variant: " + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "NorwegianLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "String", "variant", "=", "get", "(", "args", ",", "\"variant\"", ")", ";", "if", "(", "variant", "==", "null", "||", "\"nb\"", ".", "equals", "(", "variant", ")", ")", "{", "flags", "=", "BOKMAAL", ";", "}", "else", "if", "(", "\"nn\"", ".", "equals", "(", "variant", ")", ")", "{", "flags", "=", "NYNORSK", ";", "}", "else", "if", "(", "\"no\"", ".", "equals", "(", "variant", ")", ")", "{", "flags", "=", "BOKMAAL", "|", "NYNORSK", ";", "}", "else", "{", "throw", "new", "IllegalArgumentException", "(", "\"invalid variant: \"", "+", "variant", ")", ";", "}", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public NorwegianLightStemFilterFactory(IDictionary<string, string> args): base(args){string variant = Get(args, "variant");if (variant == null || "nb".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if ("nn".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if ("no".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException("invalid variant: " + variant);}if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
3,355
public UpdateTypedLinkFacetResult updateTypedLinkFacet(UpdateTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeUpdateTypedLinkFacet(request);}
[ "public", "UpdateTypedLinkFacetResult", "updateTypedLinkFacet", "(", "UpdateTypedLinkFacetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateTypedLinkFacet", "(", "request", ")", ";", "}" ]
public virtual UpdateTypedLinkFacetResponse UpdateTypedLinkFacet(UpdateTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTypedLinkFacetResponseUnmarshaller.Instance;return Invoke<UpdateTypedLinkFacetResponse>(request, options);}
train
true
3,356
public E higher(E e) {return backingMap.higherKey(e);}
[ "public", "E", "higher", "(", "E", "e", ")", "{", "return", "backingMap", ".", "higherKey", "(", "e", ")", ";", "}" ]
public virtual E higher(E e){return backingMap.higherKey(e);}
train
false
3,357
public ListReceiptFiltersResult listReceiptFilters(ListReceiptFiltersRequest request) {request = beforeClientExecution(request);return executeListReceiptFilters(request);}
[ "public", "ListReceiptFiltersResult", "listReceiptFilters", "(", "ListReceiptFiltersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListReceiptFilters", "(", "request", ")", ";", "}" ]
public virtual ListReceiptFiltersResponse ListReceiptFilters(ListReceiptFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptFiltersResponseUnmarshaller.Instance;return Invoke<ListReceiptFiltersResponse>(request, options);}
train
true
3,358
public int size() {synchronized (lock) {return count;}}
[ "public", "int", "size", "(", ")", "{", "synchronized", "(", "lock", ")", "{", "return", "count", ";", "}", "}" ]
public virtual int size(){lock (@lock){return count;}}
train
false
3,359
public CreateVaultRequest(String vaultName) {setVaultName(vaultName);}
[ "public", "CreateVaultRequest", "(", "String", "vaultName", ")", "{", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public CreateVaultRequest(string vaultName){_vaultName = vaultName;}
train
false
3,360
public PendingOutputs() {outputs = new CharsRefBuilder[1];endOffsets = new int[1];posLengths = new int[1];}
[ "public", "PendingOutputs", "(", ")", "{", "outputs", "=", "new", "CharsRefBuilder", "[", "1", "]", ";", "endOffsets", "=", "new", "int", "[", "1", "]", ";", "posLengths", "=", "new", "int", "[", "1", "]", ";", "}" ]
public PendingOutputs(){outputs = new CharsRef[1];endOffsets = new int[1];posLengths = new int[1];}
train
false
3,361
public static double getExcelDate(Date date, boolean use1904windowing) {Calendar calStart = LocaleUtil.getLocaleCalendar();calStart.setTime(date);int year = calStart.get(Calendar.YEAR);int dayOfYear = calStart.get(Calendar.DAY_OF_YEAR);int hour = calStart.get(Calendar.HOUR_OF_DAY);int minute = calStart.get(Calendar.MINUTE);int second = calStart.get(Calendar.SECOND);int milliSecond = calStart.get(Calendar.MILLISECOND);return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}
[ "public", "static", "double", "getExcelDate", "(", "Date", "date", ",", "boolean", "use1904windowing", ")", "{", "Calendar", "calStart", "=", "LocaleUtil", ".", "getLocaleCalendar", "(", ")", ";", "calStart", ".", "setTime", "(", "date", ")", ";", "int", "year", "=", "calStart", ".", "get", "(", "Calendar", ".", "YEAR", ")", ";", "int", "dayOfYear", "=", "calStart", ".", "get", "(", "Calendar", ".", "DAY_OF_YEAR", ")", ";", "int", "hour", "=", "calStart", ".", "get", "(", "Calendar", ".", "HOUR_OF_DAY", ")", ";", "int", "minute", "=", "calStart", ".", "get", "(", "Calendar", ".", "MINUTE", ")", ";", "int", "second", "=", "calStart", ".", "get", "(", "Calendar", ".", "SECOND", ")", ";", "int", "milliSecond", "=", "calStart", ".", "get", "(", "Calendar", ".", "MILLISECOND", ")", ";", "return", "internalGetExcelDate", "(", "year", ",", "dayOfYear", ",", "hour", ",", "minute", ",", "second", ",", "milliSecond", ",", "use1904windowing", ")", ";", "}" ]
public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900) || (use1904windowing && date.Year < 1904)) {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}
train
false
3,362
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {int nIncomingArgs = args.length;if(nIncomingArgs < 1) {throw new RuntimeException("function name argument missing");}ValueEval nameArg = args[0];String functionName;if (nameArg instanceof FunctionNameEval) {functionName = ((FunctionNameEval) nameArg).getFunctionName();} else {throw new RuntimeException("First argument should be a NameEval, but got ("+ nameArg.getClass().getName() + ")");}FreeRefFunction targetFunc = ec.findUserDefinedFunction(functionName);if (targetFunc == null) {throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs -1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];System.arraycopy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.evaluate(outGoingArgs, ec);}
[ "public", "ValueEval", "evaluate", "(", "ValueEval", "[", "]", "args", ",", "OperationEvaluationContext", "ec", ")", "{", "int", "nIncomingArgs", "=", "args", ".", "length", ";", "if", "(", "nIncomingArgs", "<", "1", ")", "{", "throw", "new", "RuntimeException", "(", "\"function name argument missing\"", ")", ";", "}", "ValueEval", "nameArg", "=", "args", "[", "0", "]", ";", "String", "functionName", ";", "if", "(", "nameArg", "instanceof", "FunctionNameEval", ")", "{", "functionName", "=", "(", "(", "FunctionNameEval", ")", "nameArg", ")", ".", "getFunctionName", "(", ")", ";", "}", "else", "{", "throw", "new", "RuntimeException", "(", "\"First argument should be a NameEval, but got (\"", "+", "nameArg", ".", "getClass", "(", ")", ".", "getName", "(", ")", "+", "\")\"", ")", ";", "}", "FreeRefFunction", "targetFunc", "=", "ec", ".", "findUserDefinedFunction", "(", "functionName", ")", ";", "if", "(", "targetFunc", "==", "null", ")", "{", "throw", "new", "NotImplementedFunctionException", "(", "functionName", ")", ";", "}", "int", "nOutGoingArgs", "=", "nIncomingArgs", "-", "1", ";", "ValueEval", "[", "]", "outGoingArgs", "=", "new", "ValueEval", "[", "nOutGoingArgs", "]", ";", "System", ".", "arraycopy", "(", "args", ",", "1", ",", "outGoingArgs", ",", "0", ",", "nOutGoingArgs", ")", ";", "return", "targetFunc", ".", "evaluate", "(", "outGoingArgs", ",", "ec", ")", ";", "}" ]
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){int nIncomingArgs = args.Length;if (nIncomingArgs < 1){throw new Exception("function name argument missing");}ValueEval nameArg = args[0];String functionName = string.Empty ;if (nameArg is FunctionNameEval){functionName = ((FunctionNameEval)nameArg).FunctionName;}else{throw new Exception("First argument should be a NameEval, but got ("+ nameArg.GetType().Name + ")");}FreeRefFunction targetFunc = ec.FindUserDefinedFunction(functionName);if (targetFunc == null){throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs - 1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];Array.Copy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.Evaluate(outGoingArgs, ec);}
train
false
3,363
public int indexOf(Object object) {int pos = 0;Link<E> link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return pos;}link = link.next;pos++;}} else {while (link != voidLink) {if (link.data == null) {return pos;}link = link.next;pos++;}}return -1;}
[ "public", "int", "indexOf", "(", "Object", "object", ")", "{", "int", "pos", "=", "0", ";", "Link", "<", "E", ">", "link", "=", "voidLink", ".", "next", ";", "if", "(", "object", "!=", "null", ")", "{", "while", "(", "link", "!=", "voidLink", ")", "{", "if", "(", "object", ".", "equals", "(", "link", ".", "data", ")", ")", "{", "return", "pos", ";", "}", "link", "=", "link", ".", "next", ";", "pos", "++", ";", "}", "}", "else", "{", "while", "(", "link", "!=", "voidLink", ")", "{", "if", "(", "link", ".", "data", "==", "null", ")", "{", "return", "pos", ";", "}", "link", "=", "link", ".", "next", ";", "pos", "++", ";", "}", "}", "return", "-", "1", ";", "}" ]
public override int indexOf(object @object){int pos = 0;java.util.LinkedList.Link<E> link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return pos;}link = link.next;pos++;}}else{while (link != voidLink){if ((object)link.data == null){return pos;}link = link.next;pos++;}}return -1;}
train
false
3,364
public DescribeVpcClassicLinkResult describeVpcClassicLink(DescribeVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeDescribeVpcClassicLink(request);}
[ "public", "DescribeVpcClassicLinkResult", "describeVpcClassicLink", "(", "DescribeVpcClassicLinkRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeVpcClassicLink", "(", "request", ")", ";", "}" ]
public virtual DescribeVpcClassicLinkResponse DescribeVpcClassicLink(DescribeVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcClassicLinkResponseUnmarshaller.Instance;return Invoke<DescribeVpcClassicLinkResponse>(request, options);}
train
true
3,365
public void sort(RevSort s, boolean use) {if (s == RevSort.TOPO && !use)throw new IllegalArgumentException(JGitText.get().topologicalSortRequired);super.sort(s, use);}
[ "public", "void", "sort", "(", "RevSort", "s", ",", "boolean", "use", ")", "{", "if", "(", "s", "==", "RevSort", ".", "TOPO", "&&", "!", "use", ")", "throw", "new", "IllegalArgumentException", "(", "JGitText", ".", "get", "(", ")", ".", "topologicalSortRequired", ")", ";", "super", ".", "sort", "(", "s", ",", "use", ")", ";", "}" ]
public override void Sort(RevSort s, bool use){if (s == RevSort.TOPO && !use){throw new ArgumentException(JGitText.Get().topologicalSortRequired);}base.Sort(s, use);}
train
false
3,366
public synchronized StringBuffer delete(int start, int end) {delete0(start, end);return this;}
[ "public", "synchronized", "StringBuffer", "delete", "(", "int", "start", ",", "int", "end", ")", "{", "delete0", "(", "start", ",", "end", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuffer delete(int start, int end){lock (this){delete0(start, end);return this;}}
train
false
3,367
public void write(int b) throws IOException {throw new UnsupportedOperationException();}
[ "public", "void", "write", "(", "int", "b", ")", "throws", "IOException", "{", "throw", "new", "UnsupportedOperationException", "(", ")", ";", "}" ]
public override void Write(int b){throw new NGit.Errors.NotSupportedException();}
train
false
3,368
public boolean isModeDifferent(int rawMode) {int modeDiff = getEntryRawMode() ^ rawMode;if (modeDiff == 0)return false;if (getOptions().getSymLinks() == SymLinks.FALSE)if (FileMode.SYMLINK.equals(rawMode))return false;if (!state.options.isFileMode())modeDiff &= ~FileMode.EXECUTABLE_FILE.getBits();return modeDiff != 0;}
[ "public", "boolean", "isModeDifferent", "(", "int", "rawMode", ")", "{", "int", "modeDiff", "=", "getEntryRawMode", "(", ")", "^", "rawMode", ";", "if", "(", "modeDiff", "==", "0", ")", "return", "false", ";", "if", "(", "getOptions", "(", ")", ".", "getSymLinks", "(", ")", "==", "SymLinks", ".", "FALSE", ")", "if", "(", "FileMode", ".", "SYMLINK", ".", "equals", "(", "rawMode", ")", ")", "return", "false", ";", "if", "(", "!", "state", ".", "options", ".", "isFileMode", "(", ")", ")", "modeDiff", "&=", "~", "FileMode", ".", "EXECUTABLE_FILE", ".", "getBits", "(", ")", ";", "return", "modeDiff", "!=", "0", ";", "}" ]
public virtual bool IsModeDifferent(int rawMode){int modeDiff = EntryRawMode ^ rawMode;if (modeDiff == 0){return false;}if (FileMode.SYMLINK.Equals(rawMode)){return false;}if (!state.options.IsFileMode()){modeDiff &= ~FileMode.EXECUTABLE_FILE.GetBits();}return modeDiff != 0;}
train
false
3,369
public DescribeReservedInstancesModificationsResult describeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesModifications(request);}
[ "public", "DescribeReservedInstancesModificationsResult", "describeReservedInstancesModifications", "(", "DescribeReservedInstancesModificationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeReservedInstancesModifications", "(", "request", ")", ";", "}" ]
public virtual DescribeReservedInstancesModificationsResponse DescribeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesModificationsResponseUnmarshaller.Instance;return Invoke<DescribeReservedInstancesModificationsResponse>(request, options);}
train
true
3,370
public EventSubscription addSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request) {request = beforeClientExecution(request);return executeAddSourceIdentifierToSubscription(request);}
[ "public", "EventSubscription", "addSourceIdentifierToSubscription", "(", "AddSourceIdentifierToSubscriptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddSourceIdentifierToSubscription", "(", "request", ")", ";", "}" ]
public virtual AddSourceIdentifierToSubscriptionResponse AddSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddSourceIdentifierToSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddSourceIdentifierToSubscriptionResponseUnmarshaller.Instance;return Invoke<AddSourceIdentifierToSubscriptionResponse>(request, options);}
train
true
3,371
@Override public boolean equals(Object o) {if (o == this) {return true;}synchronized (mutex) {return delegate().equals(o);}}
[ "@", "Override", "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "o", "==", "this", ")", "{", "return", "true", ";", "}", "synchronized", "(", "mutex", ")", "{", "return", "delegate", "(", ")", ".", "equals", "(", "o", ")", ";", "}", "}" ]
public override bool Equals(object @object){lock (mutex){return list.Equals(@object);}}
train
false
3,372
public PagedBytesDataOutput getDataOutput() {if (frozen) {throw new IllegalStateException("cannot get DataOutput after freeze()");}return new PagedBytesDataOutput();}
[ "public", "PagedBytesDataOutput", "getDataOutput", "(", ")", "{", "if", "(", "frozen", ")", "{", "throw", "new", "IllegalStateException", "(", "\"cannot get DataOutput after freeze()\"", ")", ";", "}", "return", "new", "PagedBytesDataOutput", "(", ")", ";", "}" ]
public PagedBytesDataOutput GetDataOutput(){if (frozen){throw new InvalidOperationException("cannot get DataOutput after Freeze()");}return new PagedBytesDataOutput(this);}
train
false
3,374
public boolean removeURI(URIish toRemove) {return uris.remove(toRemove);}
[ "public", "boolean", "removeURI", "(", "URIish", "toRemove", ")", "{", "return", "uris", ".", "remove", "(", "toRemove", ")", ";", "}" ]
public virtual bool RemoveURI(URIish toRemove){return uris.Remove(toRemove);}
train
false
3,375
public DescribeGameServerResult describeGameServer(DescribeGameServerRequest request) {request = beforeClientExecution(request);return executeDescribeGameServer(request);}
[ "public", "DescribeGameServerResult", "describeGameServer", "(", "DescribeGameServerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeGameServer", "(", "request", ")", ";", "}" ]
public virtual DescribeGameServerResponse DescribeGameServer(DescribeGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameServerResponseUnmarshaller.Instance;return Invoke<DescribeGameServerResponse>(request, options);}
train
false
3,376
public boolean hasNext() {return pos < keys.length;}
[ "public", "boolean", "hasNext", "(", ")", "{", "return", "pos", "<", "keys", ".", "length", ";", "}" ]
public bool HasNext(){return this.next_Renamed != null;}
train
false
3,377
public IntervalSet subtract(IntSet a) {if (a == null || a.isNil()) {return new IntervalSet(this);}if (a instanceof IntervalSet) {return subtract(this, (IntervalSet)a);}IntervalSet other = new IntervalSet();other.addAll(a);return subtract(this, other);}
[ "public", "IntervalSet", "subtract", "(", "IntSet", "a", ")", "{", "if", "(", "a", "==", "null", "||", "a", ".", "isNil", "(", ")", ")", "{", "return", "new", "IntervalSet", "(", "this", ")", ";", "}", "if", "(", "a", "instanceof", "IntervalSet", ")", "{", "return", "subtract", "(", "this", ",", "(", "IntervalSet", ")", "a", ")", ";", "}", "IntervalSet", "other", "=", "new", "IntervalSet", "(", ")", ";", "other", ".", "addAll", "(", "a", ")", ";", "return", "subtract", "(", "this", ",", "other", ")", ";", "}" ]
public virtual Antlr4.Runtime.Misc.IntervalSet Subtract(IIntSet a){if (a == null || a.IsNil){return new Antlr4.Runtime.Misc.IntervalSet(this);}if (a is Antlr4.Runtime.Misc.IntervalSet){return Subtract(this, (Antlr4.Runtime.Misc.IntervalSet)a);}Antlr4.Runtime.Misc.IntervalSet other = new Antlr4.Runtime.Misc.IntervalSet();other.AddAll(a);return Subtract(this, other);}
train
false
3,378
public String displayName() {return this.canonicalName;}
[ "public", "String", "displayName", "(", ")", "{", "return", "this", ".", "canonicalName", ";", "}" ]
public virtual string displayName(){return this.canonicalName;}
train
false
3,380
public AttrPtg(LittleEndianInput in) {_options = in.readByte();_data = in.readShort();if (isOptimizedChoose()) {int[] jumpTable = new int[(int) _data];for (int i = 0; i < jumpTable.length; i++) {jumpTable[i] = in.readUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in.readUShort();} else {_jumpTable = null;_chooseFuncOffset = -1;}}
[ "public", "AttrPtg", "(", "LittleEndianInput", "in", ")", "{", "_options", "=", "in", ".", "readByte", "(", ")", ";", "_data", "=", "in", ".", "readShort", "(", ")", ";", "if", "(", "isOptimizedChoose", "(", ")", ")", "{", "int", "[", "]", "jumpTable", "=", "new", "int", "[", "(", "int", ")", "_data", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "jumpTable", ".", "length", ";", "i", "++", ")", "{", "jumpTable", "[", "i", "]", "=", "in", ".", "readUShort", "(", ")", ";", "}", "_jumpTable", "=", "jumpTable", ";", "_chooseFuncOffset", "=", "in", ".", "readUShort", "(", ")", ";", "}", "else", "{", "_jumpTable", "=", "null", ";", "_chooseFuncOffset", "=", "-", "1", ";", "}", "}" ]
public AttrPtg(ILittleEndianInput in1){field_1_options =(byte)in1.ReadByte();field_2_data = in1.ReadShort();if (IsOptimizedChoose){int nCases = field_2_data;int[] jumpTable = new int[nCases];for (int i = 0; i < jumpTable.Length; i++){jumpTable[i] = in1.ReadUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in1.ReadUShort();}else{_jumpTable = null;_chooseFuncOffset = -1;}}
train
false
3,381
public DescribeTrafficMirrorFiltersResult describeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorFilters(request);}
[ "public", "DescribeTrafficMirrorFiltersResult", "describeTrafficMirrorFilters", "(", "DescribeTrafficMirrorFiltersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeTrafficMirrorFilters", "(", "request", ")", ";", "}" ]
public virtual DescribeTrafficMirrorFiltersResponse DescribeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorFiltersResponseUnmarshaller.Instance;return Invoke<DescribeTrafficMirrorFiltersResponse>(request, options);}
train
false
3,382
public final ShortBuffer put(short[] src) {return put(src, 0, src.length);}
[ "public", "final", "ShortBuffer", "put", "(", "short", "[", "]", "src", ")", "{", "return", "put", "(", "src", ",", "0", ",", "src", ".", "length", ")", ";", "}" ]
public java.nio.ShortBuffer put(short[] src){return put(src, 0, src.Length);}
train
false
3,383
public DescribeReservedNodeOfferingsResult describeReservedNodeOfferings() {return describeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}
[ "public", "DescribeReservedNodeOfferingsResult", "describeReservedNodeOfferings", "(", ")", "{", "return", "describeReservedNodeOfferings", "(", "new", "DescribeReservedNodeOfferingsRequest", "(", ")", ")", ";", "}" ]
public virtual DescribeReservedNodeOfferingsResponse DescribeReservedNodeOfferings(){return DescribeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}
train
false
3,384
public CreateLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}
[ "public", "CreateLogStreamRequest", "(", "String", "logGroupName", ",", "String", "logStreamName", ")", "{", "setLogGroupName", "(", "logGroupName", ")", ";", "setLogStreamName", "(", "logStreamName", ")", ";", "}" ]
public CreateLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}
train
false
3,385
public DetachStaticIpResult detachStaticIp(DetachStaticIpRequest request) {request = beforeClientExecution(request);return executeDetachStaticIp(request);}
[ "public", "DetachStaticIpResult", "detachStaticIp", "(", "DetachStaticIpRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetachStaticIp", "(", "request", ")", ";", "}" ]
public virtual DetachStaticIpResponse DetachStaticIp(DetachStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachStaticIpResponseUnmarshaller.Instance;return Invoke<DetachStaticIpResponse>(request, options);}
train
true
3,386
public static CharArraySet unmodifiableSet(CharArraySet set) {if (set == null)throw new NullPointerException("Given set is null");if (set == EMPTY_SET)return EMPTY_SET;if (set.map instanceof CharArrayMap.UnmodifiableCharArrayMap)return set;return new CharArraySet(CharArrayMap.unmodifiableMap(set.map));}
[ "public", "static", "CharArraySet", "unmodifiableSet", "(", "CharArraySet", "set", ")", "{", "if", "(", "set", "==", "null", ")", "throw", "new", "NullPointerException", "(", "\"Given set is null\"", ")", ";", "if", "(", "set", "==", "EMPTY_SET", ")", "return", "EMPTY_SET", ";", "if", "(", "set", ".", "map", "instanceof", "CharArrayMap", ".", "UnmodifiableCharArrayMap", ")", "return", "set", ";", "return", "new", "CharArraySet", "(", "CharArrayMap", ".", "unmodifiableMap", "(", "set", ".", "map", ")", ")", ";", "}" ]
public static CharArraySet UnmodifiableSet(CharArraySet set){if (set == null){throw new System.ArgumentNullException("Given set is null");}if (set == EMPTY_SET){return EMPTY_SET;}if (set.map is CharArrayMap.UnmodifiableCharArrayMap<object>){return set;}return new CharArraySet(CharArrayMap.UnmodifiableMap<object>(set.map));}
train
true
3,387
public BatchDetectKeyPhrasesResult batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request) {request = beforeClientExecution(request);return executeBatchDetectKeyPhrases(request);}
[ "public", "BatchDetectKeyPhrasesResult", "batchDetectKeyPhrases", "(", "BatchDetectKeyPhrasesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchDetectKeyPhrases", "(", "request", ")", ";", "}" ]
public virtual BatchDetectKeyPhrasesResponse BatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance;return Invoke<BatchDetectKeyPhrasesResponse>(request, options);}
train
true
3,389
public void removeWordCount() {remove1stProperty(PropertyIDMap.PID_WORDCOUNT);}
[ "public", "void", "removeWordCount", "(", ")", "{", "remove1stProperty", "(", "PropertyIDMap", ".", "PID_WORDCOUNT", ")", ";", "}" ]
public void RemoveWordCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_WORDCOUNT);}
train
false
3,390
public boolean equals(Object o) {if (this == o) {return true;}else if ( !(o instanceof SingletonPredictionContext) ) {return false;}if ( this.hashCode() != o.hashCode() ) {return false; }SingletonPredictionContext s = (SingletonPredictionContext)o;return returnState == s.returnState &&(parent!=null && parent.equals(s.parent));}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "this", "==", "o", ")", "{", "return", "true", ";", "}", "else", "if", "(", "!", "(", "o", "instanceof", "SingletonPredictionContext", ")", ")", "{", "return", "false", ";", "}", "if", "(", "this", ".", "hashCode", "(", ")", "!=", "o", ".", "hashCode", "(", ")", ")", "{", "return", "false", ";", "}", "SingletonPredictionContext", "s", "=", "(", "SingletonPredictionContext", ")", "o", ";", "return", "returnState", "==", "s", ".", "returnState", "&&", "(", "parent", "!=", "null", "&&", "parent", ".", "equals", "(", "s", ".", "parent", ")", ")", ";", "}" ]
public override bool Equals(object o){if (o == this){return true;}else{if (!(o is Antlr4.Runtime.Atn.SingletonPredictionContext)){return false;}}if (this.GetHashCode() != o.GetHashCode()){return false;}Antlr4.Runtime.Atn.SingletonPredictionContext other = (Antlr4.Runtime.Atn.SingletonPredictionContext)o;return returnState == other.returnState && parent.Equals(other.parent);}
train
false
3,391
public ResourceBundle resourceBundle() {return resourceBundle;}
[ "public", "ResourceBundle", "resourceBundle", "(", ")", "{", "return", "resourceBundle", ";", "}" ]
public virtual Sharpen.ResourceBundle ResourceBundle(){return resourceBundle;}
train
false
3,392
public TokenStream create(TokenStream stream) {if (stopTags != null) {final TokenStream filter = new JapanesePartOfSpeechStopFilter(stream, stopTags);return filter;} else {return stream;}}
[ "public", "TokenStream", "create", "(", "TokenStream", "stream", ")", "{", "if", "(", "stopTags", "!=", "null", ")", "{", "final", "TokenStream", "filter", "=", "new", "JapanesePartOfSpeechStopFilter", "(", "stream", ",", "stopTags", ")", ";", "return", "filter", ";", "}", "else", "{", "return", "stream", ";", "}", "}" ]
public override TokenStream Create(TokenStream stream){if (stopTags != null){TokenStream filter = new JapanesePartOfSpeechStopFilter(m_luceneMatchVersion, enablePositionIncrements, stream, stopTags);return filter;}else{return stream;}}
train
false
3,393
public final int[] getBreaks() {int count = getNumBreaks();if (count < 1) {return EMPTY_INT_ARRAY;}int[] result = new int[count];for (int i=0; i<count; i++) {Break breakItem = _breaks.get(i);result[i] = breakItem.main;}return result;}
[ "public", "final", "int", "[", "]", "getBreaks", "(", ")", "{", "int", "count", "=", "getNumBreaks", "(", ")", ";", "if", "(", "count", "<", "1", ")", "{", "return", "EMPTY_INT_ARRAY", ";", "}", "int", "[", "]", "result", "=", "new", "int", "[", "count", "]", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "count", ";", "i", "++", ")", "{", "Break", "breakItem", "=", "_breaks", ".", "get", "(", "i", ")", ";", "result", "[", "i", "]", "=", "breakItem", ".", "main", ";", "}", "return", "result", ";", "}" ]
public int[] GetBreaks(){int count = NumBreaks;if (count < 1){return EMPTY_INT_ARRAY;}int[] result = new int[count];for (int i = 0; i < count; i++){Break breakItem = _breaks[i];result[i] = breakItem.main;}return result;}
train
false
3,394
public EventSubscription createEventSubscription(CreateEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateEventSubscription(request);}
[ "public", "EventSubscription", "createEventSubscription", "(", "CreateEventSubscriptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateEventSubscription", "(", "request", ")", ";", "}" ]
public virtual CreateEventSubscriptionResponse CreateEventSubscription(CreateEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventSubscriptionResponseUnmarshaller.Instance;return Invoke<CreateEventSubscriptionResponse>(request, options);}
train
true
3,395
@Override public V get(Object key) {return isInBounds(key) ? TreeMap.this.get(key) : null;}
[ "@", "Override", "public", "V", "get", "(", "Object", "key", ")", "{", "return", "isInBounds", "(", "key", ")", "?", "TreeMap", ".", "this", ".", "get", "(", "key", ")", ":", "null", ";", "}" ]
public override V get(object key){return this.isInBounds(key) ? this._enclosing.get(key) : default(V);}
train
false
3,396
public void setAnchor(int dx1, int dy1, int dx2, int dy2) {setDx1(Math.min(dx1, dx2));setDy1(Math.min(dy1, dy2));setDx2(Math.max(dx1, dx2));setDy2(Math.max(dy1, dy2));}
[ "public", "void", "setAnchor", "(", "int", "dx1", ",", "int", "dy1", ",", "int", "dx2", ",", "int", "dy2", ")", "{", "setDx1", "(", "Math", ".", "min", "(", "dx1", ",", "dx2", ")", ")", ";", "setDy1", "(", "Math", ".", "min", "(", "dy1", ",", "dy2", ")", ")", ";", "setDx2", "(", "Math", ".", "max", "(", "dx1", ",", "dx2", ")", ")", ";", "setDy2", "(", "Math", ".", "max", "(", "dy1", ",", "dy2", ")", ")", ";", "}" ]
public void SetAnchor(int dx1, int dy1, int dx2, int dy2){this.Dx1 = Math.Min(dx1, dx2);this.Dy1 = Math.Min(dy1, dy2);this.Dx2 = Math.Max(dx1, dx2);this.Dy2 = Math.Max(dy1, dy2);}
train
false
3,397
public int next() {if (current == end) {return DONE;} else {return last();}}
[ "public", "int", "next", "(", ")", "{", "if", "(", "current", "==", "end", ")", "{", "return", "DONE", ";", "}", "else", "{", "return", "last", "(", ")", ";", "}", "}" ]
public override int Next(){if (current == end){return Done;}else{return Last();}}
train
false
3,398
public UpdateGcmChannelResult updateGcmChannel(UpdateGcmChannelRequest request) {request = beforeClientExecution(request);return executeUpdateGcmChannel(request);}
[ "public", "UpdateGcmChannelResult", "updateGcmChannel", "(", "UpdateGcmChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateGcmChannel", "(", "request", ")", ";", "}" ]
public virtual UpdateGcmChannelResponse UpdateGcmChannel(UpdateGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGcmChannelResponseUnmarshaller.Instance;return Invoke<UpdateGcmChannelResponse>(request, options);}
train
true
3,399
public void write(LittleEndianOutput out) {throw new IllegalStateException("XSSF-only Ptg, should not be serialised");}
[ "public", "void", "write", "(", "LittleEndianOutput", "out", ")", "{", "throw", "new", "IllegalStateException", "(", "\"XSSF-only Ptg, should not be serialised\"", ")", ";", "}" ]
public override void Write(ILittleEndianOutput out1){throw new InvalidOperationException("XSSF-only Ptg, should not be serialised");}
train
false
3,400
public PlacementGroup(String groupName) {setGroupName(groupName);}
[ "public", "PlacementGroup", "(", "String", "groupName", ")", "{", "setGroupName", "(", "groupName", ")", ";", "}" ]
public PlacementGroup(string groupName){_groupName = groupName;}
train
false
3,401
public SendCustomVerificationEmailResult sendCustomVerificationEmail(SendCustomVerificationEmailRequest request) {request = beforeClientExecution(request);return executeSendCustomVerificationEmail(request);}
[ "public", "SendCustomVerificationEmailResult", "sendCustomVerificationEmail", "(", "SendCustomVerificationEmailRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSendCustomVerificationEmail", "(", "request", ")", ";", "}" ]
public virtual SendCustomVerificationEmailResponse SendCustomVerificationEmail(SendCustomVerificationEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendCustomVerificationEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendCustomVerificationEmailResponseUnmarshaller.Instance;return Invoke<SendCustomVerificationEmailResponse>(request, options);}
train
true
3,402
public CreateCollectionRequest() {super("cr", "2016-06-07", "CreateCollection", "cr");setUriPattern("/collections");setMethod(MethodType.PUT);}
[ "public", "CreateCollectionRequest", "(", ")", "{", "super", "(", "\"cr\"", ",", "\"2016-06-07\"", ",", "\"CreateCollection\"", ",", "\"cr\"", ")", ";", "setUriPattern", "(", "\"/collections\"", ")", ";", "setMethod", "(", "MethodType", ".", "PUT", ")", ";", "}" ]
public CreateCollectionRequest(): base("cr", "2016-06-07", "CreateCollection", "cr", "openAPI"){UriPattern = "/collections";Method = MethodType.PUT;}
train
false
3,403
public synchronized boolean remove(Object o) {int index = indexOf(o);if (index == -1) {return false;}remove(index);return true;}
[ "public", "synchronized", "boolean", "remove", "(", "Object", "o", ")", "{", "int", "index", "=", "indexOf", "(", "o", ")", ";", "if", "(", "index", "==", "-", "1", ")", "{", "return", "false", ";", "}", "remove", "(", "index", ")", ";", "return", "true", ";", "}" ]
public virtual bool remove(object o){lock (this){int index = indexOf(o);if (index == -1){return false;}remove(index);return true;}}
train
true
3,404
public final boolean matches(char c) {return Character.isDigit(c);}
[ "public", "final", "boolean", "matches", "(", "char", "c", ")", "{", "return", "Character", ".", "isDigit", "(", "c", ")", ";", "}" ]
public bool Matches(char c){return char.IsDigit(c);}
train
false
3,405
public void serialize(LittleEndianOutput out) {out.writeByte(getWSBool2());out.writeByte(getWSBool1());}
[ "public", "void", "serialize", "(", "LittleEndianOutput", "out", ")", "{", "out", ".", "writeByte", "(", "getWSBool2", "(", ")", ")", ";", "out", ".", "writeByte", "(", "getWSBool1", "(", ")", ")", ";", "}" ]
public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(WSBool1);out1.WriteByte(WSBool2);}
train
false
3,406
public SubmitGenerateTaskRequest() {super("lubancloud", "2018-05-09", "SubmitGenerateTask", "luban");setMethod(MethodType.POST);}
[ "public", "SubmitGenerateTaskRequest", "(", ")", "{", "super", "(", "\"lubancloud\"", ",", "\"2018-05-09\"", ",", "\"SubmitGenerateTask\"", ",", "\"luban\"", ")", ";", "setMethod", "(", "MethodType", ".", "POST", ")", ";", "}" ]
public SubmitGenerateTaskRequest(): base("lubancloud", "2018-05-09", "SubmitGenerateTask", "luban", "openAPI"){Method = MethodType.POST;}
train
false
3,407
public E ceiling(E e) {return backingMap.ceilingKey(e);}
[ "public", "E", "ceiling", "(", "E", "e", ")", "{", "return", "backingMap", ".", "ceilingKey", "(", "e", ")", ";", "}" ]
public virtual E ceiling(E e){return backingMap.ceilingKey(e);}
train
false
3,408
public BatchApplyUpdateActionResult batchApplyUpdateAction(BatchApplyUpdateActionRequest request) {request = beforeClientExecution(request);return executeBatchApplyUpdateAction(request);}
[ "public", "BatchApplyUpdateActionResult", "batchApplyUpdateAction", "(", "BatchApplyUpdateActionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchApplyUpdateAction", "(", "request", ")", ";", "}" ]
public virtual BatchApplyUpdateActionResponse BatchApplyUpdateAction(BatchApplyUpdateActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchApplyUpdateActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchApplyUpdateActionResponseUnmarshaller.Instance;return Invoke<BatchApplyUpdateActionResponse>(request, options);}
train
false
3,409
public Break(RecordInputStream in) {main = in.readUShort() - 1;subFrom = in.readUShort();subTo = in.readUShort();}
[ "public", "Break", "(", "RecordInputStream", "in", ")", "{", "main", "=", "in", ".", "readUShort", "(", ")", "-", "1", ";", "subFrom", "=", "in", ".", "readUShort", "(", ")", ";", "subTo", "=", "in", ".", "readUShort", "(", ")", ";", "}" ]
public Break(RecordInputStream in1){main = in1.ReadUShort() - 1;subFrom = in1.ReadUShort();subTo = in1.ReadUShort();}
train
false
3,410
public FileNameMatcher createMatcherForSuffix() {final List<Head> copyOfHeads = new ArrayList<>(heads.size());copyOfHeads.addAll(heads);return new FileNameMatcher(copyOfHeads);}
[ "public", "FileNameMatcher", "createMatcherForSuffix", "(", ")", "{", "final", "List", "<", "Head", ">", "copyOfHeads", "=", "new", "ArrayList", "<", ">", "(", "heads", ".", "size", "(", ")", ")", ";", "copyOfHeads", ".", "addAll", "(", "heads", ")", ";", "return", "new", "FileNameMatcher", "(", "copyOfHeads", ")", ";", "}" ]
public virtual NGit.Fnmatch.FileNameMatcher CreateMatcherForSuffix(){IList<Head> copyOfHeads = new AList<Head>(heads.Count);Sharpen.Collections.AddAll(copyOfHeads, heads);return new NGit.Fnmatch.FileNameMatcher(copyOfHeads);}
train
true