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,724
public CacheCluster deleteCacheCluster(DeleteCacheClusterRequest request) {request = beforeClientExecution(request);return executeDeleteCacheCluster(request);}
[ "public", "CacheCluster", "deleteCacheCluster", "(", "DeleteCacheClusterRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteCacheCluster", "(", "request", ")", ";", "}" ]
public virtual DeleteCacheClusterResponse DeleteCacheCluster(DeleteCacheClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCacheClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCacheClusterResponseUnmarshaller.Instance;return Invoke<DeleteCacheClusterResponse>(request, options);}
train
true
3,725
public ModifyClusterSnapshotScheduleResult modifyClusterSnapshotSchedule(ModifyClusterSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeModifyClusterSnapshotSchedule(request);}
[ "public", "ModifyClusterSnapshotScheduleResult", "modifyClusterSnapshotSchedule", "(", "ModifyClusterSnapshotScheduleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyClusterSnapshotSchedule", "(", "request", ")", ";", "}" ]
public virtual ModifyClusterSnapshotScheduleResponse ModifyClusterSnapshotSchedule(ModifyClusterSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSnapshotScheduleResponseUnmarshaller.Instance;return Invoke<ModifyClusterSnapshotScheduleResponse>(request, options);}
train
true
3,726
public InitCommand setBare(boolean bare) {validateDirs(directory, gitDir, bare);this.bare = bare;return this;}
[ "public", "InitCommand", "setBare", "(", "boolean", "bare", ")", "{", "validateDirs", "(", "directory", ",", "gitDir", ",", "bare", ")", ";", "this", ".", "bare", "=", "bare", ";", "return", "this", ";", "}" ]
public virtual InitCommand SetBare(bool bare){this.bare = bare;return this;}
train
false
3,727
public TermsEnumWithSlice(int index, ReaderSlice subSlice) {this.subSlice = subSlice;this.index = index;assert subSlice.length >= 0: "length=" + subSlice.length;}
[ "public", "TermsEnumWithSlice", "(", "int", "index", ",", "ReaderSlice", "subSlice", ")", "{", "this", ".", "subSlice", "=", "subSlice", ";", "this", ".", "index", "=", "index", ";", "assert", "subSlice", ".", "length", ">=", "0", ":", "\"length=\"", "+", "subSlice", ".", "length", ";", "}" ]
public TermsEnumWithSlice(int index, ReaderSlice subSlice){this.SubSlice = subSlice;this.Index = index;Debug.Assert(subSlice.Length >= 0, "length=" + subSlice.Length);}
train
false
3,728
public UserSViewEnd(byte[] data) {_rawData = data;}
[ "public", "UserSViewEnd", "(", "byte", "[", "]", "data", ")", "{", "_rawData", "=", "data", ";", "}" ]
public UserSViewEnd(byte[] data){_rawData = data;}
train
false
3,729
public SetIdentityPoolRolesResult setIdentityPoolRoles(SetIdentityPoolRolesRequest request) {request = beforeClientExecution(request);return executeSetIdentityPoolRoles(request);}
[ "public", "SetIdentityPoolRolesResult", "setIdentityPoolRoles", "(", "SetIdentityPoolRolesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSetIdentityPoolRoles", "(", "request", ")", ";", "}" ]
public virtual SetIdentityPoolRolesResponse SetIdentityPoolRoles(SetIdentityPoolRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityPoolRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityPoolRolesResponseUnmarshaller.Instance;return Invoke<SetIdentityPoolRolesResponse>(request, options);}
train
true
3,730
public Vector( short type ) {this._type = type;}
[ "public", "Vector", "(", "short", "type", ")", "{", "this", ".", "_type", "=", "type", ";", "}" ]
public Vector(short type){this._type = type;}
train
false
3,731
public GetEndpointResult getEndpoint(GetEndpointRequest request) {request = beforeClientExecution(request);return executeGetEndpoint(request);}
[ "public", "GetEndpointResult", "getEndpoint", "(", "GetEndpointRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetEndpoint", "(", "request", ")", ";", "}" ]
public virtual GetEndpointResponse GetEndpoint(GetEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEndpointResponseUnmarshaller.Instance;return Invoke<GetEndpointResponse>(request, options);}
train
true
3,732
public Builder add(int docId) {if (docId <= lastDocId) {throw new IllegalArgumentException("Doc ids must be added in-order, got " + docId + " which is <= lastDocID=" + lastDocId);}final int block = docId >>> 16;if (block != currentBlock) {flush();currentBlock = block;}if (currentBlockCardinality < MAX_ARRAY_LENGTH) {buffer[currentBlockCardinality] = (short) docId;} else {if (denseBuffer == null) {final int numBits = Math.min(1 << 16, maxDoc - (block << 16));denseBuffer = new FixedBitSet(numBits);for (short doc : buffer) {denseBuffer.set(doc & 0xFFFF);}}denseBuffer.set(docId & 0xFFFF);}lastDocId = docId;currentBlockCardinality += 1;return this;}
[ "public", "Builder", "add", "(", "int", "docId", ")", "{", "if", "(", "docId", "<=", "lastDocId", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Doc ids must be added in-order, got \"", "+", "docId", "+", "\" which is <= lastDocID=\"", "+", "lastDocId", ")", ";", "}", "final", "int", "block", "=", "docId", ">", ">", ">", "16", ";", "if", "(", "block", "!=", "currentBlock", ")", "{", "flush", "(", ")", ";", "currentBlock", "=", "block", ";", "}", "if", "(", "currentBlockCardinality", "<", "MAX_ARRAY_LENGTH", ")", "{", "buffer", "[", "currentBlockCardinality", "]", "=", "(", "short", ")", "docId", ";", "}", "else", "{", "if", "(", "denseBuffer", "==", "null", ")", "{", "final", "int", "numBits", "=", "Math", ".", "min", "(", "1", "<<", "16", ",", "maxDoc", "-", "(", "block", "<<", "16", ")", ")", ";", "denseBuffer", "=", "new", "FixedBitSet", "(", "numBits", ")", ";", "for", "(", "short", "doc", ":", "buffer", ")", "{", "denseBuffer", ".", "set", "(", "doc", "&", "0xFFFF", ")", ";", "}", "}", "denseBuffer", ".", "set", "(", "docId", "&", "0xFFFF", ")", ";", "}", "lastDocId", "=", "docId", ";", "currentBlockCardinality", "+=", "1", ";", "return", "this", ";", "}" ]
public Builder Add(int docID){if (docID <= lastDocID){throw new System.ArgumentException("Doc ids must be added in-order, got " + docID + " which is <= lastDocID=" + lastDocID);}int wordNum = WordNum(docID);if (this.wordNum == -1){this.wordNum = wordNum;word = 1 << (docID & 0x07);}else if (wordNum == this.wordNum){word |= 1 << (docID & 0x07);}else{AddWord(this.wordNum, (byte)word);this.wordNum = wordNum;word = 1 << (docID & 0x07);}lastDocID = docID;return this;}
train
false
3,733
public boolean matches(int symbol, int minVocabSymbol, int maxVocabSymbol) {return false;}
[ "public", "boolean", "matches", "(", "int", "symbol", ",", "int", "minVocabSymbol", ",", "int", "maxVocabSymbol", ")", "{", "return", "false", ";", "}" ]
public override bool Matches(int symbol, int minVocabSymbol, int maxVocabSymbol){return false;}
train
false
3,734
public DescribeClustersResult describeClusters(DescribeClustersRequest request) {request = beforeClientExecution(request);return executeDescribeClusters(request);}
[ "public", "DescribeClustersResult", "describeClusters", "(", "DescribeClustersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeClusters", "(", "request", ")", ";", "}" ]
public virtual DescribeClustersResponse DescribeClusters(DescribeClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClustersResponseUnmarshaller.Instance;return Invoke<DescribeClustersResponse>(request, options);}
train
true
3,735
public Trie reduce(Reduce by) {List<Trie> h = new ArrayList<>();for (Trie trie : tries)h.add(trie.reduce(by));MultiTrie2 m = new MultiTrie2(forward);m.tries = h;return m;}
[ "public", "Trie", "reduce", "(", "Reduce", "by", ")", "{", "List", "<", "Trie", ">", "h", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "for", "(", "Trie", "trie", ":", "tries", ")", "h", ".", "add", "(", "trie", ".", "reduce", "(", "by", ")", ")", ";", "MultiTrie2", "m", "=", "new", "MultiTrie2", "(", "forward", ")", ";", "m", ".", "tries", "=", "h", ";", "return", "m", ";", "}" ]
public override Trie Reduce(Reduce by){List<Trie> h = new List<Trie>();foreach (Trie trie in m_tries)h.Add(trie.Reduce(by));MultiTrie2 m = new MultiTrie2(forward);m.m_tries = h;return m;}
train
false
3,736
public CellRangeAddressBase getCategoryLabelsCellRange() {return getCellRange(dataCategoryLabels);}
[ "public", "CellRangeAddressBase", "getCategoryLabelsCellRange", "(", ")", "{", "return", "getCellRange", "(", "dataCategoryLabels", ")", ";", "}" ]
public CellRangeAddressBase GetCategoryLabelsCellRange(){return GetCellRange(dataCategoryLabels);}
train
false
3,737
public String getPass() {return pass;}
[ "public", "String", "getPass", "(", ")", "{", "return", "pass", ";", "}" ]
public virtual string GetPass(){return pass;}
train
false
3,738
public synchronized Set<Entry<K, V>> entrySet() {Set<Entry<K, V>> es = entrySet;return (es != null) ? es : (entrySet = new EntrySet());}
[ "public", "synchronized", "Set", "<", "Entry", "<", "K", ",", "V", ">", ">", "entrySet", "(", ")", "{", "Set", "<", "Entry", "<", "K", ",", "V", ">", ">", "es", "=", "entrySet", ";", "return", "(", "es", "!=", "null", ")", "?", "es", ":", "(", "entrySet", "=", "new", "EntrySet", "(", ")", ")", ";", "}" ]
public virtual java.util.Set<java.util.MapClass.Entry<K, V>> entrySet(){lock (this){java.util.Set<java.util.MapClass.Entry<K, V>> es = _entrySet;return (es != null) ? es : (_entrySet = new java.util.Hashtable<K, V>.EntrySet(this));}}
train
true
3,739
public static String toFormulaString(HSSFWorkbook book, Ptg[] ptgs) {return FormulaRenderer.toFormulaString(HSSFEvaluationWorkbook.create(book), ptgs);}
[ "public", "static", "String", "toFormulaString", "(", "HSSFWorkbook", "book", ",", "Ptg", "[", "]", "ptgs", ")", "{", "return", "FormulaRenderer", ".", "toFormulaString", "(", "HSSFEvaluationWorkbook", ".", "create", "(", "book", ")", ",", "ptgs", ")", ";", "}" ]
public static String ToFormulaString(HSSFWorkbook book, Ptg[] ptgs){return FormulaRenderer.ToFormulaString(HSSFEvaluationWorkbook.Create(book), ptgs);}
train
false
3,740
public CharBuffer slice() {return new CharSequenceAdapter(sequence.subSequence(position, limit));}
[ "public", "CharBuffer", "slice", "(", ")", "{", "return", "new", "CharSequenceAdapter", "(", "sequence", ".", "subSequence", "(", "position", ",", "limit", ")", ")", ";", "}" ]
public override java.nio.CharBuffer slice(){return new java.nio.CharSequenceAdapter(sequence.SubSequence(_position, _limit));}
train
false
3,741
public UpdateBusinessReportScheduleResult updateBusinessReportSchedule(UpdateBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeUpdateBusinessReportSchedule(request);}
[ "public", "UpdateBusinessReportScheduleResult", "updateBusinessReportSchedule", "(", "UpdateBusinessReportScheduleRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateBusinessReportSchedule", "(", "request", ")", ";", "}" ]
public virtual UpdateBusinessReportScheduleResponse UpdateBusinessReportSchedule(UpdateBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke<UpdateBusinessReportScheduleResponse>(request, options);}
train
true
3,742
public void append(byte[] nameBuf, int namePos, int nameLen, FileMode mode,byte[] idBuf, int idPos) {if (fmtBuf(nameBuf, namePos, nameLen, mode)) {System.arraycopy(idBuf, idPos, buf, ptr, OBJECT_ID_LENGTH);ptr += OBJECT_ID_LENGTH;} else {try {fmtOverflowBuffer(nameBuf, namePos, nameLen, mode);overflowBuffer.write(idBuf, idPos, OBJECT_ID_LENGTH);} catch (IOException badBuffer) {throw new RuntimeException(badBuffer);}}}
[ "public", "void", "append", "(", "byte", "[", "]", "nameBuf", ",", "int", "namePos", ",", "int", "nameLen", ",", "FileMode", "mode", ",", "byte", "[", "]", "idBuf", ",", "int", "idPos", ")", "{", "if", "(", "fmtBuf", "(", "nameBuf", ",", "namePos", ",", "nameLen", ",", "mode", ")", ")", "{", "System", ".", "arraycopy", "(", "idBuf", ",", "idPos", ",", "buf", ",", "ptr", ",", "OBJECT_ID_LENGTH", ")", ";", "ptr", "+=", "OBJECT_ID_LENGTH", ";", "}", "else", "{", "try", "{", "fmtOverflowBuffer", "(", "nameBuf", ",", "namePos", ",", "nameLen", ",", "mode", ")", ";", "overflowBuffer", ".", "write", "(", "idBuf", ",", "idPos", ",", "OBJECT_ID_LENGTH", ")", ";", "}", "catch", "(", "IOException", "badBuffer", ")", "{", "throw", "new", "RuntimeException", "(", "badBuffer", ")", ";", "}", "}", "}" ]
public virtual void Append(byte[] nameBuf, int namePos, int nameLen, FileMode mode, byte[] idBuf, int idPos){if (FmtBuf(nameBuf, namePos, nameLen, mode)){System.Array.Copy(idBuf, idPos, buf, ptr, Constants.OBJECT_ID_LENGTH);ptr += Constants.OBJECT_ID_LENGTH;}else{try{FmtOverflowBuffer(nameBuf, namePos, nameLen, mode);overflowBuffer.Write(idBuf, idPos, Constants.OBJECT_ID_LENGTH);}catch (IOException badBuffer){throw new RuntimeException(badBuffer);}}}
train
false
3,743
public CreateSpotDatafeedSubscriptionResult createSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateSpotDatafeedSubscription(request);}
[ "public", "CreateSpotDatafeedSubscriptionResult", "createSpotDatafeedSubscription", "(", "CreateSpotDatafeedSubscriptionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSpotDatafeedSubscription", "(", "request", ")", ";", "}" ]
public virtual CreateSpotDatafeedSubscriptionResponse CreateSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSpotDatafeedSubscriptionResponseUnmarshaller.Instance;return Invoke<CreateSpotDatafeedSubscriptionResponse>(request, options);}
train
true
3,744
public final long length() {return count;}
[ "public", "final", "long", "length", "(", ")", "{", "return", "count", ";", "}" ]
public long Length(){return count;}
train
false
3,745
public CreateSkillGroupResult createSkillGroup(CreateSkillGroupRequest request) {request = beforeClientExecution(request);return executeCreateSkillGroup(request);}
[ "public", "CreateSkillGroupResult", "createSkillGroup", "(", "CreateSkillGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSkillGroup", "(", "request", ")", ";", "}" ]
public virtual CreateSkillGroupResponse CreateSkillGroup(CreateSkillGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSkillGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSkillGroupResponseUnmarshaller.Instance;return Invoke<CreateSkillGroupResponse>(request, options);}
train
true
3,746
public int getRightId(int wordId) {return RIGHT_ID;}
[ "public", "int", "getRightId", "(", "int", "wordId", ")", "{", "return", "RIGHT_ID", ";", "}" ]
public int GetRightId(int wordId){return RIGHT_ID;}
train
false
3,747
public void setRetainBody(boolean retain) {retainBody = retain;}
[ "public", "void", "setRetainBody", "(", "boolean", "retain", ")", "{", "retainBody", "=", "retain", ";", "}" ]
public virtual void SetRetainBody(bool retain){retainBody = retain;}
train
false
3,748
public final void reset() {len =0;}
[ "public", "final", "void", "reset", "(", ")", "{", "len", "=", "0", ";", "}" ]
public void Reset(){m_len = 0;}
train
false
3,749
public StringBuilder insert(int offset, boolean b) {insert0(offset, b ? "true" : "false");return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "boolean", "b", ")", "{", "insert0", "(", "offset", ",", "b", "?", "\"true\"", ":", "\"false\"", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, bool b){insert0(offset, b ? "true" : "false");return this;}
train
false
3,750
public static boolean isWhitespace(byte c) {return WHITESPACE[c & 0xff];}
[ "public", "static", "boolean", "isWhitespace", "(", "byte", "c", ")", "{", "return", "WHITESPACE", "[", "c", "&", "0xff", "]", ";", "}" ]
public static bool IsWhitespace(byte c){return WHITESPACE[c & unchecked((int)(0xff))];}
train
false
3,751
public DescribeSessionsResult describeSessions(DescribeSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeSessions(request);}
[ "public", "DescribeSessionsResult", "describeSessions", "(", "DescribeSessionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeSessions", "(", "request", ")", ";", "}" ]
public virtual DescribeSessionsResponse DescribeSessions(DescribeSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSessionsResponseUnmarshaller.Instance;return Invoke<DescribeSessionsResponse>(request, options);}
train
true
3,752
public DescribeLocalGatewayVirtualInterfaceGroupsResult describeLocalGatewayVirtualInterfaceGroups(DescribeLocalGatewayVirtualInterfaceGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayVirtualInterfaceGroups(request);}
[ "public", "DescribeLocalGatewayVirtualInterfaceGroupsResult", "describeLocalGatewayVirtualInterfaceGroups", "(", "DescribeLocalGatewayVirtualInterfaceGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeLocalGatewayVirtualInterfaceGroups", "(", "request", ")", ";", "}" ]
public virtual DescribeLocalGatewayVirtualInterfaceGroupsResponse DescribeLocalGatewayVirtualInterfaceGroups(DescribeLocalGatewayVirtualInterfaceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayVirtualInterfaceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayVirtualInterfaceGroupsResponseUnmarshaller.Instance;return Invoke<DescribeLocalGatewayVirtualInterfaceGroupsResponse>(request, options);}
train
false
3,753
public static String pathToString(String dim, String[] path) {String[] fullPath = new String[1+path.length];fullPath[0] = dim;System.arraycopy(path, 0, fullPath, 1, path.length);return pathToString(fullPath, fullPath.length);}
[ "public", "static", "String", "pathToString", "(", "String", "dim", ",", "String", "[", "]", "path", ")", "{", "String", "[", "]", "fullPath", "=", "new", "String", "[", "1", "+", "path", ".", "length", "]", ";", "fullPath", "[", "0", "]", "=", "dim", ";", "System", ".", "arraycopy", "(", "path", ",", "0", ",", "fullPath", ",", "1", ",", "path", ".", "length", ")", ";", "return", "pathToString", "(", "fullPath", ",", "fullPath", ".", "length", ")", ";", "}" ]
public static string PathToString(string dim, string[] path){string[] fullPath = new string[1 + path.Length];fullPath[0] = dim;Array.Copy(path, 0, fullPath, 1, path.Length);return PathToString(fullPath, fullPath.Length);}
train
false
3,755
public SignalResourceResult signalResource(SignalResourceRequest request) {request = beforeClientExecution(request);return executeSignalResource(request);}
[ "public", "SignalResourceResult", "signalResource", "(", "SignalResourceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSignalResource", "(", "request", ")", ";", "}" ]
public virtual SignalResourceResponse SignalResource(SignalResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = SignalResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = SignalResourceResponseUnmarshaller.Instance;return Invoke<SignalResourceResponse>(request, options);}
train
true
3,756
public int getPasswordVerifier() {return passwordVerifier;}
[ "public", "int", "getPasswordVerifier", "(", ")", "{", "return", "passwordVerifier", ";", "}" ]
public int GetPasswordVerifier(){return passwordVerifier;}
train
false
3,757
public void copy(MutableValue source) {MutableValueDouble s = (MutableValueDouble) source;value = s.value;exists = s.exists;}
[ "public", "void", "copy", "(", "MutableValue", "source", ")", "{", "MutableValueDouble", "s", "=", "(", "MutableValueDouble", ")", "source", ";", "value", "=", "s", ".", "value", ";", "exists", "=", "s", ".", "exists", ";", "}" ]
public override void Copy(MutableValue source){MutableValueDouble s = (MutableValueDouble)source;Value = s.Value;Exists = s.Exists;}
train
false
3,758
public int read(byte[] buffer, int offset, int length) throws IOException {Arrays.checkOffsetAndCount(buffer.length, offset, length);for (int i = 0; i < length; i++) {int c;try {if ((c = read()) == -1) {return i == 0 ? -1 : i;}} catch (IOException e) {if (i != 0) {return i;}throw e;}buffer[offset + i] = (byte) c;}return length;}
[ "public", "int", "read", "(", "byte", "[", "]", "buffer", ",", "int", "offset", ",", "int", "length", ")", "throws", "IOException", "{", "Arrays", ".", "checkOffsetAndCount", "(", "buffer", ".", "length", ",", "offset", ",", "length", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "length", ";", "i", "++", ")", "{", "int", "c", ";", "try", "{", "if", "(", "(", "c", "=", "read", "(", ")", ")", "==", "-", "1", ")", "{", "return", "i", "==", "0", "?", "-", "1", ":", "i", ";", "}", "}", "catch", "(", "IOException", "e", ")", "{", "if", "(", "i", "!=", "0", ")", "{", "return", "i", ";", "}", "throw", "e", ";", "}", "buffer", "[", "offset", "+", "i", "]", "=", "(", "byte", ")", "c", ";", "}", "return", "length", ";", "}" ]
public virtual int read(byte[] buffer, int offset, int length){java.util.Arrays.checkOffsetAndCount(buffer.Length, offset, length);{for (int i = 0; i < length; i++){int c;try{if ((c = read()) == -1){return i == 0 ? -1 : i;}}catch (System.IO.IOException e){if (i != 0){return i;}throw;}buffer[offset + i] = unchecked((byte)c);}}return length;}
train
false
3,759
public TreeFilter getPathFilter() {return pathFilter;}
[ "public", "TreeFilter", "getPathFilter", "(", ")", "{", "return", "pathFilter", ";", "}" ]
public virtual TreeFilter GetPathFilter(){return pathFilter;}
train
false
3,760
public CalcCountRecord(RecordInputStream in) {field_1_iterations = in.readShort();}
[ "public", "CalcCountRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_iterations", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public CalcCountRecord(RecordInputStream in1){field_1_iterations = in1.ReadShort();}
train
false
3,761
public DescribeVaultRequest(String vaultName) {setVaultName(vaultName);}
[ "public", "DescribeVaultRequest", "(", "String", "vaultName", ")", "{", "setVaultName", "(", "vaultName", ")", ";", "}" ]
public DescribeVaultRequest(string vaultName){_vaultName = vaultName;}
train
false
3,763
public final void write(char[] b) {write(b,0,b.length);}
[ "public", "final", "void", "write", "(", "char", "[", "]", "b", ")", "{", "write", "(", "b", ",", "0", ",", "b", ".", "length", ")", ";", "}" ]
public void Write(char[] b){Write(b, 0, b.Length);}
train
false
3,764
public DeleteTagsForDomainResult deleteTagsForDomain(DeleteTagsForDomainRequest request) {request = beforeClientExecution(request);return executeDeleteTagsForDomain(request);}
[ "public", "DeleteTagsForDomainResult", "deleteTagsForDomain", "(", "DeleteTagsForDomainRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteTagsForDomain", "(", "request", ")", ";", "}" ]
public virtual DeleteTagsForDomainResponse DeleteTagsForDomain(DeleteTagsForDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTagsForDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTagsForDomainResponseUnmarshaller.Instance;return Invoke<DeleteTagsForDomainResponse>(request, options);}
train
true
3,765
public SetMeRequest() {super("CloudPhoto", "2017-07-11", "SetMe", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "SetMeRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"SetMe\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public SetMeRequest(): base("CloudPhoto", "2017-07-11", "SetMe", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
3,766
public LongBuffer put(long c) {if (position == limit) {throw new BufferOverflowException();}byteBuffer.putLong(position++ * SizeOf.LONG, c);return this;}
[ "public", "LongBuffer", "put", "(", "long", "c", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "byteBuffer", ".", "putLong", "(", "position", "++", "*", "SizeOf", ".", "LONG", ",", "c", ")", ";", "return", "this", ";", "}" ]
public override java.nio.LongBuffer put(long c){if (_position == _limit){throw new java.nio.BufferOverflowException();}byteBuffer.putLong(_position++ * libcore.io.SizeOf.LONG, c);return this;}
train
false
3,767
public DisassociateFleetResult disassociateFleet(DisassociateFleetRequest request) {request = beforeClientExecution(request);return executeDisassociateFleet(request);}
[ "public", "DisassociateFleetResult", "disassociateFleet", "(", "DisassociateFleetRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDisassociateFleet", "(", "request", ")", ";", "}" ]
public virtual DisassociateFleetResponse DisassociateFleet(DisassociateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateFleetResponseUnmarshaller.Instance;return Invoke<DisassociateFleetResponse>(request, options);}
train
true
3,768
public String toString() {return getClass().getSimpleName() + "(" + in.toString() + ")";}
[ "public", "String", "toString", "(", ")", "{", "return", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\"(\"", "+", "in", ".", "toString", "(", ")", "+", "\")\"", ";", "}" ]
public override string ToString(){return this.GetType().Name + "(" + m_input.ToString() + ")";}
train
false
3,769
public static String fromLong(Long value) {return Long.toString(value);}
[ "public", "static", "String", "fromLong", "(", "Long", "value", ")", "{", "return", "Long", ".", "toString", "(", "value", ")", ";", "}" ]
public static string FromLong(long value){return value.ToString(CultureInfo.InvariantCulture);}
train
false
3,770
public BytesRefArray(Counter bytesUsed) {this.pool = new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(bytesUsed));pool.nextBuffer();bytesUsed.addAndGet(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER * Integer.BYTES);this.bytesUsed = bytesUsed;}
[ "public", "BytesRefArray", "(", "Counter", "bytesUsed", ")", "{", "this", ".", "pool", "=", "new", "ByteBlockPool", "(", "new", "ByteBlockPool", ".", "DirectTrackingAllocator", "(", "bytesUsed", ")", ")", ";", "pool", ".", "nextBuffer", "(", ")", ";", "bytesUsed", ".", "addAndGet", "(", "RamUsageEstimator", ".", "NUM_BYTES_ARRAY_HEADER", "*", "Integer", ".", "BYTES", ")", ";", "this", ".", "bytesUsed", "=", "bytesUsed", ";", "}" ]
public BytesRefArray(Counter bytesUsed){this.pool = new ByteBlockPool(new ByteBlockPool.DirectTrackingAllocator(bytesUsed));pool.NextBuffer();bytesUsed.AddAndGet(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + RamUsageEstimator.NUM_BYTES_INT32);this.bytesUsed = bytesUsed;}
train
false
3,771
public FloatBuffer put(float[] src, int srcOffset, int floatCount) {if (floatCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, floatCount);position += floatCount;return this;}
[ "public", "FloatBuffer", "put", "(", "float", "[", "]", "src", ",", "int", "srcOffset", ",", "int", "floatCount", ")", "{", "if", "(", "floatCount", ">", "remaining", "(", ")", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "System", ".", "arraycopy", "(", "src", ",", "srcOffset", ",", "backingArray", ",", "offset", "+", "position", ",", "floatCount", ")", ";", "position", "+=", "floatCount", ";", "return", "this", ";", "}" ]
public override java.nio.FloatBuffer put(float[] src, int srcOffset, int floatCount){if (floatCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, floatCount);_position += floatCount;return this;}
train
false
3,772
public void skipBytes(final long numBytes) throws IOException {if (numBytes < 0) {throw new IllegalArgumentException("numBytes must be >= 0, got " + numBytes);}if (skipBuffer == null) {skipBuffer = new byte[SKIP_BUFFER_SIZE];}assert skipBuffer.length == SKIP_BUFFER_SIZE;for (long skipped = 0; skipped < numBytes; ) {final int step = (int) Math.min(SKIP_BUFFER_SIZE, numBytes - skipped);readBytes(skipBuffer, 0, step, false);skipped += step;}}
[ "public", "void", "skipBytes", "(", "final", "long", "numBytes", ")", "throws", "IOException", "{", "if", "(", "numBytes", "<", "0", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"numBytes must be >= 0, got \"", "+", "numBytes", ")", ";", "}", "if", "(", "skipBuffer", "==", "null", ")", "{", "skipBuffer", "=", "new", "byte", "[", "SKIP_BUFFER_SIZE", "]", ";", "}", "assert", "skipBuffer", ".", "length", "==", "SKIP_BUFFER_SIZE", ";", "for", "(", "long", "skipped", "=", "0", ";", "skipped", "<", "numBytes", ";", ")", "{", "final", "int", "step", "=", "(", "int", ")", "Math", ".", "min", "(", "SKIP_BUFFER_SIZE", ",", "numBytes", "-", "skipped", ")", ";", "readBytes", "(", "skipBuffer", ",", "0", ",", "step", ",", "false", ")", ";", "skipped", "+=", "step", ";", "}", "}" ]
public virtual void SkipBytes(long numBytes){if (numBytes < 0){throw new ArgumentException("numBytes must be >= 0, got " + numBytes);}if (skipBuffer == null){skipBuffer = new byte[SKIP_BUFFER_SIZE];}Debug.Assert(skipBuffer.Length == SKIP_BUFFER_SIZE);for (long skipped = 0; skipped < numBytes; ){var step = (int)Math.Min(SKIP_BUFFER_SIZE, numBytes - skipped);ReadBytes(skipBuffer, 0, step, false);skipped += step;}}
train
false
3,774
@Override public E remove(int location) {synchronized (mutex) {return list.remove(location);}}
[ "@", "Override", "public", "E", "remove", "(", "int", "location", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "list", ".", "remove", "(", "location", ")", ";", "}", "}" ]
public virtual E remove(int location){lock (mutex){return list.remove(location);}}
train
false
3,775
public ExpPtg(LittleEndianInput in) {field_1_first_row = in.readShort();field_2_first_col = in.readShort();}
[ "public", "ExpPtg", "(", "LittleEndianInput", "in", ")", "{", "field_1_first_row", "=", "in", ".", "readShort", "(", ")", ";", "field_2_first_col", "=", "in", ".", "readShort", "(", ")", ";", "}" ]
public ExpPtg(ILittleEndianInput in1){field_1_first_row = in1.ReadShort();field_2_first_col = in1.ReadShort();}
train
false
3,776
public TokenStream create(TokenStream input) {return new CJKBigramFilter(input, flags, outputUnigrams);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "CJKBigramFilter", "(", "input", ",", "flags", ",", "outputUnigrams", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new CJKBigramFilter(input, flags, outputUnigrams);}
train
false
3,777
public FuzzySet getSetForField(SegmentWriteState state,FieldInfo info) {return FuzzySet.createSetBasedOnQuality(state.segmentInfo.maxDoc(), 0.10f);}
[ "public", "FuzzySet", "getSetForField", "(", "SegmentWriteState", "state", ",", "FieldInfo", "info", ")", "{", "return", "FuzzySet", ".", "createSetBasedOnQuality", "(", "state", ".", "segmentInfo", ".", "maxDoc", "(", ")", ",", "0.10f", ")", ";", "}" ]
public override FuzzySet GetSetForField(SegmentWriteState state, FieldInfo info){return FuzzySet.CreateSetBasedOnQuality(state.SegmentInfo.DocCount, 0.10f);}
train
false
3,779
public void setLength(int length) {if (length < 0) {throw new StringIndexOutOfBoundsException("length < 0: " + length);}if (length > value.length) {enlargeBuffer(length);} else {if (shared) {char[] newData = new char[value.length];System.arraycopy(value, 0, newData, 0, count);value = newData;shared = false;} else {if (count < length) {Arrays.fill(value, count, length, (char) 0);}}}count = length;}
[ "public", "void", "setLength", "(", "int", "length", ")", "{", "if", "(", "length", "<", "0", ")", "{", "throw", "new", "StringIndexOutOfBoundsException", "(", "\"length < 0: \"", "+", "length", ")", ";", "}", "if", "(", "length", ">", "value", ".", "length", ")", "{", "enlargeBuffer", "(", "length", ")", ";", "}", "else", "{", "if", "(", "shared", ")", "{", "char", "[", "]", "newData", "=", "new", "char", "[", "value", ".", "length", "]", ";", "System", ".", "arraycopy", "(", "value", ",", "0", ",", "newData", ",", "0", ",", "count", ")", ";", "value", "=", "newData", ";", "shared", "=", "false", ";", "}", "else", "{", "if", "(", "count", "<", "length", ")", "{", "Arrays", ".", "fill", "(", "value", ",", "count", ",", "length", ",", "(", "char", ")", "0", ")", ";", "}", "}", "}", "count", "=", "length", ";", "}" ]
public virtual void setLength(int length_1){if (length_1 < 0){throw new java.lang.StringIndexOutOfBoundsException("length < 0: " + length_1);}if (length_1 > value.Length){enlargeBuffer(length_1);}else{if (shared){char[] newData = new char[value.Length];System.Array.Copy(value, 0, newData, 0, count);value = newData;shared = false;}else{if (count < length_1){java.util.Arrays.fill(value, count, length_1, (char)0);}}}count = length_1;}
train
false
3,780
public void sync() {boolean interrupted = false;try {while (true) {MergeThread toSync = null;synchronized (this) {for (MergeThread t : mergeThreads) {if (t.isAlive() && t != Thread.currentThread()) {toSync = t;break;}}}if (toSync != null) {try {toSync.join();} catch (InterruptedException ie) {interrupted = true;}} else {break;}}} finally {if (interrupted) Thread.currentThread().interrupt();}}
[ "public", "void", "sync", "(", ")", "{", "boolean", "interrupted", "=", "false", ";", "try", "{", "while", "(", "true", ")", "{", "MergeThread", "toSync", "=", "null", ";", "synchronized", "(", "this", ")", "{", "for", "(", "MergeThread", "t", ":", "mergeThreads", ")", "{", "if", "(", "t", ".", "isAlive", "(", ")", "&&", "t", "!=", "Thread", ".", "currentThread", "(", ")", ")", "{", "toSync", "=", "t", ";", "break", ";", "}", "}", "}", "if", "(", "toSync", "!=", "null", ")", "{", "try", "{", "toSync", ".", "join", "(", ")", ";", "}", "catch", "(", "InterruptedException", "ie", ")", "{", "interrupted", "=", "true", ";", "}", "}", "else", "{", "break", ";", "}", "}", "}", "finally", "{", "if", "(", "interrupted", ")", "Thread", ".", "currentThread", "(", ")", ".", "interrupt", "(", ")", ";", "}", "}" ]
public virtual void Sync(){bool interrupted = false;try{while (true){MergeThread toSync = null;lock (this){foreach (MergeThread t in m_mergeThreads){if (t != null && t.IsAlive){toSync = t;break;}}}if (toSync != null){try{toSync.Join();}catch (ThreadInterruptedException ie){interrupted = true;}}else{break;}}}finally{if (interrupted){Thread.CurrentThread.Interrupt();}}}
train
false
3,781
public DescribeIdentityPoolUsageResult describeIdentityPoolUsage(DescribeIdentityPoolUsageRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityPoolUsage(request);}
[ "public", "DescribeIdentityPoolUsageResult", "describeIdentityPoolUsage", "(", "DescribeIdentityPoolUsageRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeIdentityPoolUsage", "(", "request", ")", ";", "}" ]
public virtual DescribeIdentityPoolUsageResponse DescribeIdentityPoolUsage(DescribeIdentityPoolUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityPoolUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityPoolUsageResponseUnmarshaller.Instance;return Invoke<DescribeIdentityPoolUsageResponse>(request, options);}
train
true
3,782
public ClusterSecurityGroup createClusterSecurityGroup(CreateClusterSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateClusterSecurityGroup(request);}
[ "public", "ClusterSecurityGroup", "createClusterSecurityGroup", "(", "CreateClusterSecurityGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateClusterSecurityGroup", "(", "request", ")", ";", "}" ]
public virtual CreateClusterSecurityGroupResponse CreateClusterSecurityGroup(CreateClusterSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterSecurityGroupResponseUnmarshaller.Instance;return Invoke<CreateClusterSecurityGroupResponse>(request, options);}
train
true
3,783
public K nextElement() { return nextEntryNotFailFast().key; }
[ "public", "K", "nextElement", "(", ")", "{", "return", "nextEntryNotFailFast", "(", ")", ".", "key", ";", "}" ]
public K nextElement(){return this.nextEntryNotFailFast().key;}
train
false
3,784
public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord) {super(spgrContainer, objRecord);EscherContainerRecord spContainer = spgrContainer.getChildContainers().get(0);_spgrRecord = (EscherSpgrRecord) spContainer.getChild(0);for (EscherRecord ch : spContainer.getChildRecords()) {switch (EscherRecordTypes.forTypeID(ch.getRecordId())) {case SPGR:break;case CLIENT_ANCHOR:anchor = new HSSFClientAnchor((EscherClientAnchorRecord) ch);break;case CHILD_ANCHOR:anchor = new HSSFChildAnchor((EscherChildAnchorRecord) ch);break;default:break;}}}
[ "public", "HSSFShapeGroup", "(", "EscherContainerRecord", "spgrContainer", ",", "ObjRecord", "objRecord", ")", "{", "super", "(", "spgrContainer", ",", "objRecord", ")", ";", "EscherContainerRecord", "spContainer", "=", "spgrContainer", ".", "getChildContainers", "(", ")", ".", "get", "(", "0", ")", ";", "_spgrRecord", "=", "(", "EscherSpgrRecord", ")", "spContainer", ".", "getChild", "(", "0", ")", ";", "for", "(", "EscherRecord", "ch", ":", "spContainer", ".", "getChildRecords", "(", ")", ")", "{", "switch", "(", "EscherRecordTypes", ".", "forTypeID", "(", "ch", ".", "getRecordId", "(", ")", ")", ")", "{", "case", "SPGR", ":", "break", ";", "case", "CLIENT_ANCHOR", ":", "anchor", "=", "new", "HSSFClientAnchor", "(", "(", "EscherClientAnchorRecord", ")", "ch", ")", ";", "break", ";", "case", "CHILD_ANCHOR", ":", "anchor", "=", "new", "HSSFChildAnchor", "(", "(", "EscherChildAnchorRecord", ")", "ch", ")", ";", "break", ";", "default", ":", "break", ";", "}", "}", "}" ]
public HSSFShapeGroup(EscherContainerRecord spgrContainer, ObjRecord objRecord): base(spgrContainer, objRecord){EscherContainerRecord spContainer = spgrContainer.ChildContainers[0];_spgrRecord = (EscherSpgrRecord)spContainer.GetChild(0);foreach (EscherRecord ch in spContainer.ChildRecords){switch (ch.RecordId){case EscherSpgrRecord.RECORD_ID:break;case EscherClientAnchorRecord.RECORD_ID:anchor = new HSSFClientAnchor((EscherClientAnchorRecord)ch);break;case EscherChildAnchorRecord.RECORD_ID:anchor = new HSSFChildAnchor((EscherChildAnchorRecord)ch);break;}}}
train
false
3,785
public SoraniStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "SoraniStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public SoraniStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
3,786
public SetAlbumCoverRequest() {super("CloudPhoto", "2017-07-11", "SetAlbumCover", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
[ "public", "SetAlbumCoverRequest", "(", ")", "{", "super", "(", "\"CloudPhoto\"", ",", "\"2017-07-11\"", ",", "\"SetAlbumCover\"", ",", "\"cloudphoto\"", ")", ";", "setProtocol", "(", "ProtocolType", ".", "HTTPS", ")", ";", "}" ]
public SetAlbumCoverRequest(): base("CloudPhoto", "2017-07-11", "SetAlbumCover", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
train
false
3,787
public boolean equals(final Object o){boolean rval = false;if ((o != null) && (o.getClass() == this.getClass())){if (this == o){rval = true;}else{DocumentDescriptor descriptor = ( DocumentDescriptor ) o;rval = this.path.equals(descriptor.path)&& this.name.equals(descriptor.name);}}return rval;}
[ "public", "boolean", "equals", "(", "final", "Object", "o", ")", "{", "boolean", "rval", "=", "false", ";", "if", "(", "(", "o", "!=", "null", ")", "&&", "(", "o", ".", "getClass", "(", ")", "==", "this", ".", "getClass", "(", ")", ")", ")", "{", "if", "(", "this", "==", "o", ")", "{", "rval", "=", "true", ";", "}", "else", "{", "DocumentDescriptor", "descriptor", "=", "(", "DocumentDescriptor", ")", "o", ";", "rval", "=", "this", ".", "path", ".", "equals", "(", "descriptor", ".", "path", ")", "&&", "this", ".", "name", ".", "equals", "(", "descriptor", ".", "name", ")", ";", "}", "}", "return", "rval", ";", "}" ]
public override bool Equals(Object o){bool rval = false;if ((o != null) && (o.GetType()== this.GetType())){if (this == o){rval = true;}else{DocumentDescriptor descriptor = ( DocumentDescriptor ) o;rval = this.path.Equals(descriptor.path)&& this.name.Equals(descriptor.name);}}return rval;}
train
false
3,788
public void finish() {if (!sorted)resort();replace();}
[ "public", "void", "finish", "(", ")", "{", "if", "(", "!", "sorted", ")", "resort", "(", ")", ";", "replace", "(", ")", ";", "}" ]
public override void Finish(){if (!sorted){Resort();}Replace();}
train
false
3,789
public void map(K key, V value) {List<V> elementsForKey = get(key);if ( elementsForKey==null ) {elementsForKey = new ArrayList<V>();super.put(key, elementsForKey);}elementsForKey.add(value);}
[ "public", "void", "map", "(", "K", "key", ",", "V", "value", ")", "{", "List", "<", "V", ">", "elementsForKey", "=", "get", "(", "key", ")", ";", "if", "(", "elementsForKey", "==", "null", ")", "{", "elementsForKey", "=", "new", "ArrayList", "<", "V", ">", "(", ")", ";", "super", ".", "put", "(", "key", ",", "elementsForKey", ")", ";", "}", "elementsForKey", ".", "add", "(", "value", ")", ";", "}" ]
public virtual void Map(K key, V value){IList<V> elementsForKey;if (!TryGetValue(key, out elementsForKey)){elementsForKey = new ArrayList<V>();this[key] = elementsForKey;}elementsForKey.Add(value);}
train
false
3,790
public DescribeImportSnapshotTasksResult describeImportSnapshotTasks(DescribeImportSnapshotTasksRequest request) {request = beforeClientExecution(request);return executeDescribeImportSnapshotTasks(request);}
[ "public", "DescribeImportSnapshotTasksResult", "describeImportSnapshotTasks", "(", "DescribeImportSnapshotTasksRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeImportSnapshotTasks", "(", "request", ")", ";", "}" ]
public virtual DescribeImportSnapshotTasksResponse DescribeImportSnapshotTasks(DescribeImportSnapshotTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeImportSnapshotTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeImportSnapshotTasksResponseUnmarshaller.Instance;return Invoke<DescribeImportSnapshotTasksResponse>(request, options);}
train
true
3,791
public ListEventSourcesResult listEventSources(ListEventSourcesRequest request) {request = beforeClientExecution(request);return executeListEventSources(request);}
[ "public", "ListEventSourcesResult", "listEventSources", "(", "ListEventSourcesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListEventSources", "(", "request", ")", ";", "}" ]
public virtual ListEventSourcesResponse ListEventSources(ListEventSourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventSourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventSourcesResponseUnmarshaller.Instance;return Invoke<ListEventSourcesResponse>(request, options);}
train
false
3,792
public static double getExcelDate(Calendar date, boolean use1904windowing) {int year = date.get(Calendar.YEAR);int dayOfYear = date.get(Calendar.DAY_OF_YEAR);int hour = date.get(Calendar.HOUR_OF_DAY);int minute = date.get(Calendar.MINUTE);int second = date.get(Calendar.SECOND);int milliSecond = date.get(Calendar.MILLISECOND);return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}
[ "public", "static", "double", "getExcelDate", "(", "Calendar", "date", ",", "boolean", "use1904windowing", ")", "{", "int", "year", "=", "date", ".", "get", "(", "Calendar", ".", "YEAR", ")", ";", "int", "dayOfYear", "=", "date", ".", "get", "(", "Calendar", ".", "DAY_OF_YEAR", ")", ";", "int", "hour", "=", "date", ".", "get", "(", "Calendar", ".", "HOUR_OF_DAY", ")", ";", "int", "minute", "=", "date", ".", "get", "(", "Calendar", ".", "MINUTE", ")", ";", "int", "second", "=", "date", ".", "get", "(", "Calendar", ".", "SECOND", ")", ";", "int", "milliSecond", "=", "date", ".", "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,793
public TimeSpec(char type, int pos, int len, double factor) {this.type = type;this.pos = pos;this.len = len;this.factor = factor;modBy = 0;}
[ "public", "TimeSpec", "(", "char", "type", ",", "int", "pos", ",", "int", "len", ",", "double", "factor", ")", "{", "this", ".", "type", "=", "type", ";", "this", ".", "pos", "=", "pos", ";", "this", ".", "len", "=", "len", ";", "this", ".", "factor", "=", "factor", ";", "modBy", "=", "0", ";", "}" ]
public TimeSpec(char type, int pos, int len, double factor){this.type = type;this.pos = pos;this.len = len;this.factor = factor;modBy = 0;}
train
false
3,794
public DeleteApiMappingResult deleteApiMapping(DeleteApiMappingRequest request) {request = beforeClientExecution(request);return executeDeleteApiMapping(request);}
[ "public", "DeleteApiMappingResult", "deleteApiMapping", "(", "DeleteApiMappingRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteApiMapping", "(", "request", ")", ";", "}" ]
public virtual DeleteApiMappingResponse DeleteApiMapping(DeleteApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApiMappingResponseUnmarshaller.Instance;return Invoke<DeleteApiMappingResponse>(request, options);}
train
true
3,795
public static String typeString(int typeCode) {switch (typeCode) {case OBJ_COMMIT:return TYPE_COMMIT;case OBJ_TREE:return TYPE_TREE;case OBJ_BLOB:return TYPE_BLOB;case OBJ_TAG:return TYPE_TAG;default:throw new IllegalArgumentException(MessageFormat.format(JGitText.get().badObjectType, Integer.valueOf(typeCode)));}}
[ "public", "static", "String", "typeString", "(", "int", "typeCode", ")", "{", "switch", "(", "typeCode", ")", "{", "case", "OBJ_COMMIT", ":", "return", "TYPE_COMMIT", ";", "case", "OBJ_TREE", ":", "return", "TYPE_TREE", ";", "case", "OBJ_BLOB", ":", "return", "TYPE_BLOB", ";", "case", "OBJ_TAG", ":", "return", "TYPE_TAG", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "badObjectType", ",", "Integer", ".", "valueOf", "(", "typeCode", ")", ")", ")", ";", "}", "}" ]
public static string TypeString(int typeCode){switch (typeCode){case OBJ_COMMIT:{return TYPE_COMMIT;}case OBJ_TREE:{return TYPE_TREE;}case OBJ_BLOB:{return TYPE_BLOB;}case OBJ_TAG:{return TYPE_TAG;}default:{throw new ArgumentException(MessageFormat.Format(JGitText.Get().badObjectType, Sharpen.Extensions.ValueOf(typeCode)));}}}
train
false
3,796
public long addAndGet(long delta) {return count.addAndGet(delta);}
[ "public", "long", "addAndGet", "(", "long", "delta", ")", "{", "return", "count", ".", "addAndGet", "(", "delta", ")", ";", "}" ]
public override long AddAndGet(long delta){return count.AddAndGet(delta);}
train
false
3,797
public String toString() {StringBuilder sb = new StringBuilder(super.toString());sb.append(" fields=");sb.append(Arrays.toString(fields));return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "super", ".", "toString", "(", ")", ")", ";", "sb", ".", "append", "(", "\" fields=\"", ")", ";", "sb", ".", "append", "(", "Arrays", ".", "toString", "(", "fields", ")", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder(base.ToString());sb.Append(" fields=");sb.Append(Arrays.ToString(fields));return sb.ToString();}
train
false
3,798
public UpdateTemplateActiveVersionResult updateTemplateActiveVersion(UpdateTemplateActiveVersionRequest request) {request = beforeClientExecution(request);return executeUpdateTemplateActiveVersion(request);}
[ "public", "UpdateTemplateActiveVersionResult", "updateTemplateActiveVersion", "(", "UpdateTemplateActiveVersionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeUpdateTemplateActiveVersion", "(", "request", ")", ";", "}" ]
public virtual UpdateTemplateActiveVersionResponse UpdateTemplateActiveVersion(UpdateTemplateActiveVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateActiveVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateActiveVersionResponseUnmarshaller.Instance;return Invoke<UpdateTemplateActiveVersionResponse>(request, options);}
train
false
3,799
public int compareTo(FacetLabel other) {final int len = length < other.length ? length : other.length;for (int i = 0, j = 0; i < len; i++, j++) {int cmp = components[i].compareTo(other.components[j]);if (cmp < 0) {return -1; }if (cmp > 0) {return 1; }}return length - other.length;}
[ "public", "int", "compareTo", "(", "FacetLabel", "other", ")", "{", "final", "int", "len", "=", "length", "<", "other", ".", "length", "?", "length", ":", "other", ".", "length", ";", "for", "(", "int", "i", "=", "0", ",", "j", "=", "0", ";", "i", "<", "len", ";", "i", "++", ",", "j", "++", ")", "{", "int", "cmp", "=", "components", "[", "i", "]", ".", "compareTo", "(", "other", ".", "components", "[", "j", "]", ")", ";", "if", "(", "cmp", "<", "0", ")", "{", "return", "-", "1", ";", "}", "if", "(", "cmp", ">", "0", ")", "{", "return", "1", ";", "}", "}", "return", "length", "-", "other", ".", "length", ";", "}" ]
public virtual int CompareTo(FacetLabel other){int len = Length < other.Length ? Length : other.Length;for (int i = 0, j = 0; i < len; i++, j++){int cmp = Components[i].CompareToOrdinal(other.Components[j]);if (cmp < 0){return -1; }if (cmp > 0){return 1; }}return Length - other.Length;}
train
false
3,800
public int find(String key) {int len = key.length();char strkey[] = new char[len + 1];key.getChars(0, len, strkey, 0);strkey[len] = 0;return find(strkey, 0);}
[ "public", "int", "find", "(", "String", "key", ")", "{", "int", "len", "=", "key", ".", "length", "(", ")", ";", "char", "strkey", "[", "]", "=", "new", "char", "[", "len", "+", "1", "]", ";", "key", ".", "getChars", "(", "0", ",", "len", ",", "strkey", ",", "0", ")", ";", "strkey", "[", "len", "]", "=", "0", ";", "return", "find", "(", "strkey", ",", "0", ")", ";", "}" ]
public virtual int Find(string key){int len = key.Length;char[] strkey = new char[len + 1];key.CopyTo(0, strkey, 0, len - 0);strkey[len] = (char)0;return Find(strkey, 0);}
train
true
3,801
public final CharBuffer put(char[] src, int srcOffset, int charCount) {throw new ReadOnlyBufferException();}
[ "public", "final", "CharBuffer", "put", "(", "char", "[", "]", "src", ",", "int", "srcOffset", ",", "int", "charCount", ")", "{", "throw", "new", "ReadOnlyBufferException", "(", ")", ";", "}" ]
public sealed override java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){throw new java.nio.ReadOnlyBufferException();}
train
false
3,802
public ListNodesResult listNodes(ListNodesRequest request) {request = beforeClientExecution(request);return executeListNodes(request);}
[ "public", "ListNodesResult", "listNodes", "(", "ListNodesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListNodes", "(", "request", ")", ";", "}" ]
public virtual ListNodesResponse ListNodes(ListNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance;return Invoke<ListNodesResponse>(request, options);}
train
true
3,803
public DeleteVoiceConnectorStreamingConfigurationResult deleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorStreamingConfiguration(request);}
[ "public", "DeleteVoiceConnectorStreamingConfigurationResult", "deleteVoiceConnectorStreamingConfiguration", "(", "DeleteVoiceConnectorStreamingConfigurationRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteVoiceConnectorStreamingConfiguration", "(", "request", ")", ";", "}" ]
public virtual DeleteVoiceConnectorStreamingConfigurationResponse DeleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorStreamingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorStreamingConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorStreamingConfigurationResponse>(request, options);}
train
false
3,804
public TokenStream create(TokenStream input) {return new SoraniNormalizationFilter(input);}
[ "public", "TokenStream", "create", "(", "TokenStream", "input", ")", "{", "return", "new", "SoraniNormalizationFilter", "(", "input", ")", ";", "}" ]
public override TokenStream Create(TokenStream input){return new SoraniNormalizationFilter(input);}
train
false
3,805
public int following(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException("offset out of bounds");} else if (pos == end) {current = end;return DONE;} else {return last();}}
[ "public", "int", "following", "(", "int", "pos", ")", "{", "if", "(", "pos", "<", "start", "||", "pos", ">", "end", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"offset out of bounds\"", ")", ";", "}", "else", "if", "(", "pos", "==", "end", ")", "{", "current", "=", "end", ";", "return", "DONE", ";", "}", "else", "{", "return", "last", "(", ")", ";", "}", "}" ]
public override int Following(int pos){if (pos < start || pos > end){throw new ArgumentException("offset out of bounds");}else if (pos == end){current = end;return Done;}else{return Last();}}
train
false
3,806
public SshSessionFactory getSshSessionFactory() {return sch;}
[ "public", "SshSessionFactory", "getSshSessionFactory", "(", ")", "{", "return", "sch", ";", "}" ]
public virtual SshSessionFactory GetSshSessionFactory(){return sch;}
train
false
3,807
@Override public boolean contains(Object o) {if (!(o instanceof Multiset.Entry)) {return false;}Multiset.Entry<?> entry = (Multiset.Entry<?>) o;Collection<V> collection = map.get(entry.getElement());return (collection != null) &&(collection.size() == entry.getCount());}
[ "@", "Override", "public", "boolean", "contains", "(", "Object", "o", ")", "{", "if", "(", "!", "(", "o", "instanceof", "Multiset", ".", "Entry", ")", ")", "{", "return", "false", ";", "}", "Multiset", ".", "Entry", "<", "?", ">", "entry", "=", "(", "Multiset", ".", "Entry", "<", "?", ">", ")", "o", ";", "Collection", "<", "V", ">", "collection", "=", "map", ".", "get", "(", "entry", ".", "getElement", "(", ")", ")", ";", "return", "(", "collection", "!=", "null", ")", "&&", "(", "collection", ".", "size", "(", ")", "==", "entry", ".", "getCount", "(", ")", ")", ";", "}" ]
public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}
train
false
3,808
public TokenFilter create(TokenStream input) {CommonGramsFilter commonGrams = new CommonGramsFilter(input, commonWords);return commonGrams;}
[ "public", "TokenFilter", "create", "(", "TokenStream", "input", ")", "{", "CommonGramsFilter", "commonGrams", "=", "new", "CommonGramsFilter", "(", "input", ",", "commonWords", ")", ";", "return", "commonGrams", ";", "}" ]
public override TokenStream Create(TokenStream input){var commonGrams = new CommonGramsFilter(m_luceneMatchVersion, input, commonWords);return commonGrams;}
train
false
3,809
public DescribeWorkspaceImagesResult describeWorkspaceImages(DescribeWorkspaceImagesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceImages(request);}
[ "public", "DescribeWorkspaceImagesResult", "describeWorkspaceImages", "(", "DescribeWorkspaceImagesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeWorkspaceImages", "(", "request", ")", ";", "}" ]
public virtual DescribeWorkspaceImagesResponse DescribeWorkspaceImages(DescribeWorkspaceImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceImagesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceImagesResponse>(request, options);}
train
true
3,810
public ValueEval getItem(int index) {if (index < 0 || index > _size) {throw new IllegalArgumentException("Specified index " + index+ " is outside range (0.." + (_size - 1) + ")");}return getItemInternal(index);}
[ "public", "ValueEval", "getItem", "(", "int", "index", ")", "{", "if", "(", "index", "<", "0", "||", "index", ">", "_size", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Specified index \"", "+", "index", "+", "\" is outside range (0..\"", "+", "(", "_size", "-", "1", ")", "+", "\")\"", ")", ";", "}", "return", "getItemInternal", "(", "index", ")", ";", "}" ]
public ValueEval GetItem(int index){if (index < 0 || index > _size){throw new ArgumentException("Specified index " + index+ " is outside range (0.." + (_size - 1) + ")");}return GetItemInternal(index);}
train
false
3,811
public ListEventBusesResult listEventBuses(ListEventBusesRequest request) {request = beforeClientExecution(request);return executeListEventBuses(request);}
[ "public", "ListEventBusesResult", "listEventBuses", "(", "ListEventBusesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListEventBuses", "(", "request", ")", ";", "}" ]
public virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;return Invoke<ListEventBusesResponse>(request, options);}
train
false
3,812
public QualityStats(double maxGoodPoints, long searchTime) {this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new ArrayList<>();pAt = new double[MAX_POINTS+1]; }
[ "public", "QualityStats", "(", "double", "maxGoodPoints", ",", "long", "searchTime", ")", "{", "this", ".", "maxGoodPoints", "=", "maxGoodPoints", ";", "this", ".", "searchTime", "=", "searchTime", ";", "this", ".", "recallPoints", "=", "new", "ArrayList", "<", ">", "(", ")", ";", "pAt", "=", "new", "double", "[", "MAX_POINTS", "+", "1", "]", ";", "}" ]
public QualityStats(double maxGoodPoints, long searchTime){this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new List<RecallPoint>();pAt = new double[MAX_POINTS + 1]; }
train
false
3,813
public GetInvalidationRequest(String distributionId, String id) {setDistributionId(distributionId);setId(id);}
[ "public", "GetInvalidationRequest", "(", "String", "distributionId", ",", "String", "id", ")", "{", "setDistributionId", "(", "distributionId", ")", ";", "setId", "(", "id", ")", ";", "}" ]
public GetInvalidationRequest(string distributionId, string id){_distributionId = distributionId;_id = id;}
train
false
3,814
public int compareTo(ScoreTerm other) {if (this.boost == other.boost)return other.bytes.get().compareTo(this.bytes.get());else return Float.compare(this.boost, other.boost);}
[ "public", "int", "compareTo", "(", "ScoreTerm", "other", ")", "{", "if", "(", "this", ".", "boost", "==", "other", ".", "boost", ")", "return", "other", ".", "bytes", ".", "get", "(", ")", ".", "compareTo", "(", "this", ".", "bytes", ".", "get", "(", ")", ")", ";", "else", "return", "Float", ".", "compare", "(", "this", ".", "boost", ",", "other", ".", "boost", ")", ";", "}" ]
public int CompareTo(ScoreTerm other){if (this.Boost == other.Boost){return TermComp.Compare(other.Bytes, this.Bytes);}else{return this.Boost.CompareTo(other.Boost);}}
train
false
3,815
public RegenerateSecurityTokenResult regenerateSecurityToken(RegenerateSecurityTokenRequest request) {request = beforeClientExecution(request);return executeRegenerateSecurityToken(request);}
[ "public", "RegenerateSecurityTokenResult", "regenerateSecurityToken", "(", "RegenerateSecurityTokenRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeRegenerateSecurityToken", "(", "request", ")", ";", "}" ]
public virtual RegenerateSecurityTokenResponse RegenerateSecurityToken(RegenerateSecurityTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegenerateSecurityTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = RegenerateSecurityTokenResponseUnmarshaller.Instance;return Invoke<RegenerateSecurityTokenResponse>(request, options);}
train
false
3,816
public DescribeRootFoldersResult describeRootFolders(DescribeRootFoldersRequest request) {request = beforeClientExecution(request);return executeDescribeRootFolders(request);}
[ "public", "DescribeRootFoldersResult", "describeRootFolders", "(", "DescribeRootFoldersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeRootFolders", "(", "request", ")", ";", "}" ]
public virtual DescribeRootFoldersResponse DescribeRootFolders(DescribeRootFoldersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance;return Invoke<DescribeRootFoldersResponse>(request, options);}
train
true
3,817
public DeactivateUserResult deactivateUser(DeactivateUserRequest request) {request = beforeClientExecution(request);return executeDeactivateUser(request);}
[ "public", "DeactivateUserResult", "deactivateUser", "(", "DeactivateUserRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeactivateUser", "(", "request", ")", ";", "}" ]
public virtual DeactivateUserResponse DeactivateUser(DeactivateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance;return Invoke<DeactivateUserResponse>(request, options);}
train
true
3,818
public boolean contains(int el) {int n = intervals.size();int l = 0;int r = n - 1;while (l <= r) {int m = (l + r) / 2;Interval I = intervals.get(m);int a = I.a;int b = I.b;if ( b<el ) {l = m + 1;} else if ( a>el ) {r = m - 1;} else { return true;}}return false;}
[ "public", "boolean", "contains", "(", "int", "el", ")", "{", "int", "n", "=", "intervals", ".", "size", "(", ")", ";", "int", "l", "=", "0", ";", "int", "r", "=", "n", "-", "1", ";", "while", "(", "l", "<=", "r", ")", "{", "int", "m", "=", "(", "l", "+", "r", ")", "/", "2", ";", "Interval", "I", "=", "intervals", ".", "get", "(", "m", ")", ";", "int", "a", "=", "I", ".", "a", ";", "int", "b", "=", "I", ".", "b", ";", "if", "(", "b", "<", "el", ")", "{", "l", "=", "m", "+", "1", ";", "}", "else", "if", "(", "a", ">", "el", ")", "{", "r", "=", "m", "-", "1", ";", "}", "else", "{", "return", "true", ";", "}", "}", "return", "false", ";", "}" ]
public virtual bool Contains(int el){int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;if (el < a){break;}if (el >= a && el <= b){return true;}}return false;}
train
false
3,819
public ListJobsResult listJobs(ListJobsRequest request) {request = beforeClientExecution(request);return executeListJobs(request);}
[ "public", "ListJobsResult", "listJobs", "(", "ListJobsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListJobs", "(", "request", ")", ";", "}" ]
public virtual ListJobsResponse ListJobs(ListJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;return Invoke<ListJobsResponse>(request, options);}
train
true
3,820
public RussianLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "RussianLightStemFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public RussianLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
3,821
public SearchSkillGroupsResult searchSkillGroups(SearchSkillGroupsRequest request) {request = beforeClientExecution(request);return executeSearchSkillGroups(request);}
[ "public", "SearchSkillGroupsResult", "searchSkillGroups", "(", "SearchSkillGroupsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeSearchSkillGroups", "(", "request", ")", ";", "}" ]
public virtual SearchSkillGroupsResponse SearchSkillGroups(SearchSkillGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchSkillGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchSkillGroupsResponseUnmarshaller.Instance;return Invoke<SearchSkillGroupsResponse>(request, options);}
train
true
3,822
public SortField getSortField(Bindings bindings, boolean reverse) {return getDoubleValuesSource(bindings).getSortField(reverse);}
[ "public", "SortField", "getSortField", "(", "Bindings", "bindings", ",", "boolean", "reverse", ")", "{", "return", "getDoubleValuesSource", "(", "bindings", ")", ".", "getSortField", "(", "reverse", ")", ";", "}" ]
public virtual SortField GetSortField(Bindings bindings, bool reverse){return GetValueSource(bindings).GetSortField(reverse);}
train
false
3,823
public ModifyHostsResult modifyHosts(ModifyHostsRequest request) {request = beforeClientExecution(request);return executeModifyHosts(request);}
[ "public", "ModifyHostsResult", "modifyHosts", "(", "ModifyHostsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeModifyHosts", "(", "request", ")", ";", "}" ]
public virtual ModifyHostsResponse ModifyHosts(ModifyHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyHostsResponseUnmarshaller.Instance;return Invoke<ModifyHostsResponse>(request, options);}
train
true
3,824
public void setDate(String date) {this.date = date;}
[ "public", "void", "setDate", "(", "String", "date", ")", "{", "this", ".", "date", "=", "date", ";", "}" ]
public virtual void SetDate(string date){this.date = date;}
train
false
3,825
public ValueEval getAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}
[ "public", "ValueEval", "getAreaEval", "(", "int", "firstRowIndex", ",", "int", "firstColumnIndex", ",", "int", "lastRowIndex", ",", "int", "lastColumnIndex", ")", "{", "SheetRangeEvaluator", "sre", "=", "getRefEvaluatorForCurrentSheet", "(", ")", ";", "return", "new", "LazyAreaEval", "(", "firstRowIndex", ",", "firstColumnIndex", ",", "lastRowIndex", ",", "lastColumnIndex", ",", "sre", ")", ";", "}" ]
public ValueEval GetAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex){SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}
train
false
3,826
public CreateContactMethodResult createContactMethod(CreateContactMethodRequest request) {request = beforeClientExecution(request);return executeCreateContactMethod(request);}
[ "public", "CreateContactMethodResult", "createContactMethod", "(", "CreateContactMethodRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateContactMethod", "(", "request", ")", ";", "}" ]
public virtual CreateContactMethodResponse CreateContactMethod(CreateContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateContactMethodResponseUnmarshaller.Instance;return Invoke<CreateContactMethodResponse>(request, options);}
train
false
3,827
public static final RevFilter before(Date ts) {return before(ts.getTime());}
[ "public", "static", "final", "RevFilter", "before", "(", "Date", "ts", ")", "{", "return", "before", "(", "ts", ".", "getTime", "(", ")", ")", ";", "}" ]
public static RevFilter Before(DateTime ts){return Before(ts.GetTime());}
train
false