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
9,025
public void add(int a, int b) {add(Interval.of(a, b));}
[ "public", "void", "add", "(", "int", "a", ",", "int", "b", ")", "{", "add", "(", "Interval", ".", "of", "(", "a", ",", "b", ")", ")", ";", "}" ]
public virtual void Add(int a, int b){Add(Interval.Of(a, b));}
train
false
9,026
public void cloneStyleFrom(HSSFCellStyle source) {_format.cloneStyleFrom(source._format);if(_workbook != source._workbook) {lastDateFormat.set(Short.MIN_VALUE);lastFormats.remove();getDataFormatStringCache.remove();short fmt = (short)_workbook.createFormat(source.getDataFormatString() );setDataFormat(fmt);FontRecord fr = _workbook.createNewFont();fr.cloneStyleFrom(source._workbook.getFontRecordAt(source.getFontIndexAsInt()));HSSFFont font = new HSSFFont((short)_workbook.getFontIndex(fr), fr);setFont(font);}}
[ "public", "void", "cloneStyleFrom", "(", "HSSFCellStyle", "source", ")", "{", "_format", ".", "cloneStyleFrom", "(", "source", ".", "_format", ")", ";", "if", "(", "_workbook", "!=", "source", ".", "_workbook", ")", "{", "lastDateFormat", ".", "set", "(", "Short", ".", "MIN_VALUE", ")", ";", "lastFormats", ".", "remove", "(", ")", ";", "getDataFormatStringCache", ".", "remove", "(", ")", ";", "short", "fmt", "=", "(", "short", ")", "_workbook", ".", "createFormat", "(", "source", ".", "getDataFormatString", "(", ")", ")", ";", "setDataFormat", "(", "fmt", ")", ";", "FontRecord", "fr", "=", "_workbook", ".", "createNewFont", "(", ")", ";", "fr", ".", "cloneStyleFrom", "(", "source", ".", "_workbook", ".", "getFontRecordAt", "(", "source", ".", "getFontIndexAsInt", "(", ")", ")", ")", ";", "HSSFFont", "font", "=", "new", "HSSFFont", "(", "(", "short", ")", "_workbook", ".", "getFontIndex", "(", "fr", ")", ",", "fr", ")", ";", "setFont", "(", "font", ")", ";", "}", "}" ]
public void CloneStyleFrom(HSSFCellStyle source){_format.CloneStyleFrom(source._format);if (_workbook != source._workbook){lastDateFormat = short.MinValue;lastFormats = null;getDataFormatStringCache = null;short fmt = (short)_workbook.CreateFormat(source.GetDataFormatString());this.DataFormat=(fmt);FontRecord fr = _workbook.CreateNewFont();fr.CloneStyleFrom(source._workbook.GetFontRecordAt(source.FontIndex));HSSFFont font = new HSSFFont((short)_workbook.GetFontIndex(fr), fr);this.SetFont(font);}}
train
false
9,027
public DeleteIdentitiesResult deleteIdentities(DeleteIdentitiesRequest request) {request = beforeClientExecution(request);return executeDeleteIdentities(request);}
[ "public", "DeleteIdentitiesResult", "deleteIdentities", "(", "DeleteIdentitiesRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteIdentities", "(", "request", ")", ";", "}" ]
public virtual DeleteIdentitiesResponse DeleteIdentities(DeleteIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance;return Invoke<DeleteIdentitiesResponse>(request, options);}
train
true
9,028
public void nextSlice() {final int nextIndex = ((buffer[limit]&0xff)<<24) + ((buffer[1+limit]&0xff)<<16) + ((buffer[2+limit]&0xff)<<8) + (buffer[3+limit]&0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];final int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= endIndex) {assert endIndex - nextIndex > 0;limit = endIndex - bufferOffset;} else {limit = upto+newSize-4;}}
[ "public", "void", "nextSlice", "(", ")", "{", "final", "int", "nextIndex", "=", "(", "(", "buffer", "[", "limit", "]", "&", "0xff", ")", "<<", "24", ")", "+", "(", "(", "buffer", "[", "1", "+", "limit", "]", "&", "0xff", ")", "<<", "16", ")", "+", "(", "(", "buffer", "[", "2", "+", "limit", "]", "&", "0xff", ")", "<<", "8", ")", "+", "(", "buffer", "[", "3", "+", "limit", "]", "&", "0xff", ")", ";", "level", "=", "ByteBlockPool", ".", "NEXT_LEVEL_ARRAY", "[", "level", "]", ";", "final", "int", "newSize", "=", "ByteBlockPool", ".", "LEVEL_SIZE_ARRAY", "[", "level", "]", ";", "bufferUpto", "=", "nextIndex", "/", "ByteBlockPool", ".", "BYTE_BLOCK_SIZE", ";", "bufferOffset", "=", "bufferUpto", "*", "ByteBlockPool", ".", "BYTE_BLOCK_SIZE", ";", "buffer", "=", "pool", ".", "buffers", "[", "bufferUpto", "]", ";", "upto", "=", "nextIndex", "&", "ByteBlockPool", ".", "BYTE_BLOCK_MASK", ";", "if", "(", "nextIndex", "+", "newSize", ">=", "endIndex", ")", "{", "assert", "endIndex", "-", "nextIndex", ">", "0", ";", "limit", "=", "endIndex", "-", "bufferOffset", ";", "}", "else", "{", "limit", "=", "upto", "+", "newSize", "-", "4", ";", "}", "}" ]
public void NextSlice(){int nextIndex = ((buffer[limit] & 0xff) << 24) + ((buffer[1 + limit] & 0xff) << 16) + ((buffer[2 + limit] & 0xff) << 8) + (buffer[3 + limit] & 0xff);level = ByteBlockPool.NEXT_LEVEL_ARRAY[level];int newSize = ByteBlockPool.LEVEL_SIZE_ARRAY[level];bufferUpto = nextIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = nextIndex & ByteBlockPool.BYTE_BLOCK_MASK;if (nextIndex + newSize >= EndIndex){Debug.Assert(EndIndex - nextIndex > 0);limit = EndIndex - BufferOffset;}else{limit = upto + newSize - 4;}}
train
false
9,029
public DeleteMessageBatchRequest(String queueUrl, java.util.List<DeleteMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}
[ "public", "DeleteMessageBatchRequest", "(", "String", "queueUrl", ",", "java", ".", "util", ".", "List", "<", "DeleteMessageBatchRequestEntry", ">", "entries", ")", "{", "setQueueUrl", "(", "queueUrl", ")", ";", "setEntries", "(", "entries", ")", ";", "}" ]
public DeleteMessageBatchRequest(string queueUrl, List<DeleteMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
train
false
9,030
public ReservedCacheNode purchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedCacheNodesOffering(request);}
[ "public", "ReservedCacheNode", "purchaseReservedCacheNodesOffering", "(", "PurchaseReservedCacheNodesOfferingRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executePurchaseReservedCacheNodesOffering", "(", "request", ")", ";", "}" ]
public virtual PurchaseReservedCacheNodesOfferingResponse PurchaseReservedCacheNodesOffering(PurchaseReservedCacheNodesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedCacheNodesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedCacheNodesOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedCacheNodesOfferingResponse>(request, options);}
train
true
9,031
public String getLineText() {final int eol = RawParseUtils.nextLF(buf, offset);return RawParseUtils.decode(UTF_8, buf, offset, eol);}
[ "public", "String", "getLineText", "(", ")", "{", "final", "int", "eol", "=", "RawParseUtils", ".", "nextLF", "(", "buf", ",", "offset", ")", ";", "return", "RawParseUtils", ".", "decode", "(", "UTF_8", ",", "buf", ",", "offset", ",", "eol", ")", ";", "}" ]
public virtual string GetLineText(){int eol = RawParseUtils.NextLF(buf, offset);return RawParseUtils.Decode(Constants.CHARSET, buf, offset, eol);}
train
false
9,032
public DescribeNotificationConfigurationsResult describeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeNotificationConfigurations(request);}
[ "public", "DescribeNotificationConfigurationsResult", "describeNotificationConfigurations", "(", "DescribeNotificationConfigurationsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeNotificationConfigurations", "(", "request", ")", ";", "}" ]
public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeNotificationConfigurationsResponse>(request, options);}
train
true
9,033
@Override public boolean remove(Object object) {if (!esDelegate.remove(object)) {return false;}Entry<?, ?> entry = (Entry<?, ?>) object;inverse.delegate.remove(entry.getValue());return true;}
[ "@", "Override", "public", "boolean", "remove", "(", "Object", "object", ")", "{", "if", "(", "!", "esDelegate", ".", "remove", "(", "object", ")", ")", "{", "return", "false", ";", "}", "Entry", "<", "?", ",", "?", ">", "entry", "=", "(", "Entry", "<", "?", ",", "?", ">", ")", "object", ";", "inverse", ".", "delegate", ".", "remove", "(", "entry", ".", "getValue", "(", ")", ")", ";", "return", "true", ";", "}" ]
public override bool remove(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.removeMapping(e.getKey(), e.getValue());}
train
false
9,035
public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxoWriter)throws IOException {IndexDeletionPolicy delPolicy = indexWriter.getConfig().getIndexDeletionPolicy();if (!(delPolicy instanceof SnapshotDeletionPolicy)) {throw new IllegalArgumentException("IndexWriter must be created with SnapshotDeletionPolicy");}this.indexWriter = indexWriter;this.taxoWriter = taxoWriter;this.indexSDP = (SnapshotDeletionPolicy) delPolicy;this.taxoSDP = taxoWriter.getDeletionPolicy();this.indexCommit = indexSDP.snapshot();this.taxoCommit = taxoSDP.snapshot();this.version = revisionVersion(indexCommit, taxoCommit);this.sourceFiles = revisionFiles(indexCommit, taxoCommit);}
[ "public", "IndexAndTaxonomyRevision", "(", "IndexWriter", "indexWriter", ",", "SnapshotDirectoryTaxonomyWriter", "taxoWriter", ")", "throws", "IOException", "{", "IndexDeletionPolicy", "delPolicy", "=", "indexWriter", ".", "getConfig", "(", ")", ".", "getIndexDeletionPolicy", "(", ")", ";", "if", "(", "!", "(", "delPolicy", "instanceof", "SnapshotDeletionPolicy", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"IndexWriter must be created with SnapshotDeletionPolicy\"", ")", ";", "}", "this", ".", "indexWriter", "=", "indexWriter", ";", "this", ".", "taxoWriter", "=", "taxoWriter", ";", "this", ".", "indexSDP", "=", "(", "SnapshotDeletionPolicy", ")", "delPolicy", ";", "this", ".", "taxoSDP", "=", "taxoWriter", ".", "getDeletionPolicy", "(", ")", ";", "this", ".", "indexCommit", "=", "indexSDP", ".", "snapshot", "(", ")", ";", "this", ".", "taxoCommit", "=", "taxoSDP", ".", "snapshot", "(", ")", ";", "this", ".", "version", "=", "revisionVersion", "(", "indexCommit", ",", "taxoCommit", ")", ";", "this", ".", "sourceFiles", "=", "revisionFiles", "(", "indexCommit", ",", "taxoCommit", ")", ";", "}" ]
public IndexAndTaxonomyRevision(IndexWriter indexWriter, SnapshotDirectoryTaxonomyWriter taxonomyWriter){this.indexSdp = indexWriter.Config.IndexDeletionPolicy as SnapshotDeletionPolicy;if (indexSdp == null)throw new ArgumentException("IndexWriter must be created with SnapshotDeletionPolicy", "indexWriter");this.indexWriter = indexWriter;this.taxonomyWriter = taxonomyWriter;this.taxonomySdp = taxonomyWriter.DeletionPolicy;this.indexCommit = indexSdp.Snapshot();this.taxonomyCommit = taxonomySdp.Snapshot();this.version = RevisionVersion(indexCommit, taxonomyCommit);this.sourceFiles = RevisionFiles(indexCommit, taxonomyCommit);}
train
false
9,036
public synchronized String toString() {return super.toString();}
[ "public", "synchronized", "String", "toString", "(", ")", "{", "return", "super", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){lock (this){return base.ToString();}}
train
false
9,037
public static int hashCode(Object o) {return (o == null) ? 0 : o.hashCode();}
[ "public", "static", "int", "hashCode", "(", "Object", "o", ")", "{", "return", "(", "o", "==", "null", ")", "?", "0", ":", "o", ".", "hashCode", "(", ")", ";", "}" ]
public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}
train
false
9,038
public GetModelTemplateResult getModelTemplate(GetModelTemplateRequest request) {request = beforeClientExecution(request);return executeGetModelTemplate(request);}
[ "public", "GetModelTemplateResult", "getModelTemplate", "(", "GetModelTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetModelTemplate", "(", "request", ")", ";", "}" ]
public virtual GetModelTemplateResponse GetModelTemplate(GetModelTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetModelTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetModelTemplateResponseUnmarshaller.Instance;return Invoke<GetModelTemplateResponse>(request, options);}
train
true
9,039
public XORShift64Random(long seed) {x = seed == 0 ? 0xdeadbeef : seed;}
[ "public", "XORShift64Random", "(", "long", "seed", ")", "{", "x", "=", "seed", "==", "0", "?", "0xdeadbeef", ":", "seed", ";", "}" ]
public XORShift64Random(long seed){x = seed == 0 ? 0xdeadbeef : seed;}
train
false
9,040
public HeaderFooterRecord(RecordInputStream in) {_rawData = in.readRemainder();}
[ "public", "HeaderFooterRecord", "(", "RecordInputStream", "in", ")", "{", "_rawData", "=", "in", ".", "readRemainder", "(", ")", ";", "}" ]
public HeaderFooterRecord(RecordInputStream in1){_rawData = in1.ReadRemainder();}
train
false
9,041
public HSSFPolygon createPolygon(HSSFClientAnchor anchor) {HSSFPolygon shape = new HSSFPolygon(null, anchor);addShape(shape);onCreate(shape);return shape;}
[ "public", "HSSFPolygon", "createPolygon", "(", "HSSFClientAnchor", "anchor", ")", "{", "HSSFPolygon", "shape", "=", "new", "HSSFPolygon", "(", "null", ",", "anchor", ")", ";", "addShape", "(", "shape", ")", ";", "onCreate", "(", "shape", ")", ";", "return", "shape", ";", "}" ]
public HSSFPolygon CreatePolygon(IClientAnchor anchor){HSSFPolygon shape = new HSSFPolygon(null, (HSSFAnchor)anchor);AddShape(shape);OnCreate(shape);return shape;}
train
false
9,042
public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof BytesRef) {return this.bytesEquals((BytesRef) other);}return false;}
[ "public", "boolean", "equals", "(", "Object", "other", ")", "{", "if", "(", "other", "==", "null", ")", "{", "return", "false", ";", "}", "if", "(", "other", "instanceof", "BytesRef", ")", "{", "return", "this", ".", "bytesEquals", "(", "(", "BytesRef", ")", "other", ")", ";", "}", "return", "false", ";", "}" ]
public override bool Equals(object other){if (other == null){return false;}if (other is BytesRef){return this.BytesEquals((BytesRef)other);}return false;}
train
false
9,044
public int serialize(int offset, byte[] data, EscherSerializationListener listener) {listener.beforeRecordSerialize( offset, getRecordId(), this );if (remainingData == null) {remainingData = EMPTY;}LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, remainingData.length );System.arraycopy( remainingData, 0, data, offset + 8, remainingData.length );int pos = offset + 8 + remainingData.length;listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}
[ "public", "int", "serialize", "(", "int", "offset", ",", "byte", "[", "]", "data", ",", "EscherSerializationListener", "listener", ")", "{", "listener", ".", "beforeRecordSerialize", "(", "offset", ",", "getRecordId", "(", ")", ",", "this", ")", ";", "if", "(", "remainingData", "==", "null", ")", "{", "remainingData", "=", "EMPTY", ";", "}", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", ",", "getOptions", "(", ")", ")", ";", "LittleEndian", ".", "putShort", "(", "data", ",", "offset", "+", "2", ",", "getRecordId", "(", ")", ")", ";", "LittleEndian", ".", "putInt", "(", "data", ",", "offset", "+", "4", ",", "remainingData", ".", "length", ")", ";", "System", ".", "arraycopy", "(", "remainingData", ",", "0", ",", "data", ",", "offset", "+", "8", ",", "remainingData", ".", "length", ")", ";", "int", "pos", "=", "offset", "+", "8", "+", "remainingData", ".", "length", ";", "listener", ".", "afterRecordSerialize", "(", "pos", ",", "getRecordId", "(", ")", ",", "pos", "-", "offset", ",", "this", ")", ";", "return", "pos", "-", "offset", ";", "}" ]
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);if (remainingData == null) remainingData = new byte[0];LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, remainingData.Length);Array.Copy(remainingData, 0, data, offset + 8, remainingData.Length);int pos = offset + 8 + remainingData.Length;listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
train
false
9,045
public boolean equals(Object o) {if (! super.equals(o)) {return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.end == other.end && this.start == other.start;}
[ "public", "boolean", "equals", "(", "Object", "o", ")", "{", "if", "(", "!", "super", ".", "equals", "(", "o", ")", ")", "{", "return", "false", ";", "}", "SpanPositionRangeQuery", "other", "=", "(", "SpanPositionRangeQuery", ")", "o", ";", "return", "this", ".", "end", "==", "other", ".", "end", "&&", "this", ".", "start", "==", "other", ".", "start", ";", "}" ]
public override bool Equals(object o){if (this == o){return true;}if (!(o is SpanPositionRangeQuery)){return false;}SpanPositionRangeQuery other = (SpanPositionRangeQuery)o;return this.m_end == other.m_end && this.m_start == other.m_start && this.m_match.Equals(other.m_match) && this.Boost == other.Boost;}
train
false
9,046
public CreateSignalingChannelResult createSignalingChannel(CreateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeCreateSignalingChannel(request);}
[ "public", "CreateSignalingChannelResult", "createSignalingChannel", "(", "CreateSignalingChannelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateSignalingChannel", "(", "request", ")", ";", "}" ]
public virtual CreateSignalingChannelResponse CreateSignalingChannel(CreateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSignalingChannelResponseUnmarshaller.Instance;return Invoke<CreateSignalingChannelResponse>(request, options);}
train
false
9,047
public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex,boolean honorIgnores) {this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}
[ "public", "IndexDiffFilter", "(", "int", "dirCacheIndex", ",", "int", "workingTreeIndex", ",", "boolean", "honorIgnores", ")", "{", "this", ".", "dirCache", "=", "dirCacheIndex", ";", "this", ".", "workingTree", "=", "workingTreeIndex", ";", "this", ".", "honorIgnores", "=", "honorIgnores", ";", "}" ]
public IndexDiffFilter(int dirCacheIndex, int workingTreeIndex, bool honorIgnores){this.dirCache = dirCacheIndex;this.workingTree = workingTreeIndex;this.honorIgnores = honorIgnores;}
train
false
9,048
public String toString() {StringBuilder sb = new StringBuilder("[" + getClass().getSimpleName() + ": ");sb.append("minMergeSize=").append(minMergeSize).append(", ");sb.append("mergeFactor=").append(mergeFactor).append(", ");sb.append("maxMergeSize=").append(maxMergeSize).append(", ");sb.append("maxMergeSizeForForcedMerge=").append(maxMergeSizeForForcedMerge).append(", ");sb.append("calibrateSizeByDeletes=").append(calibrateSizeByDeletes).append(", ");sb.append("maxMergeDocs=").append(maxMergeDocs).append(", ");sb.append("maxCFSSegmentSizeMB=").append(getMaxCFSSegmentSizeMB()).append(", ");sb.append("noCFSRatio=").append(noCFSRatio);sb.append("]");return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "\"[\"", "+", "getClass", "(", ")", ".", "getSimpleName", "(", ")", "+", "\": \"", ")", ";", "sb", ".", "append", "(", "\"minMergeSize=\"", ")", ".", "append", "(", "minMergeSize", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"mergeFactor=\"", ")", ".", "append", "(", "mergeFactor", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"maxMergeSize=\"", ")", ".", "append", "(", "maxMergeSize", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"maxMergeSizeForForcedMerge=\"", ")", ".", "append", "(", "maxMergeSizeForForcedMerge", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"calibrateSizeByDeletes=\"", ")", ".", "append", "(", "calibrateSizeByDeletes", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"maxMergeDocs=\"", ")", ".", "append", "(", "maxMergeDocs", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"maxCFSSegmentSizeMB=\"", ")", ".", "append", "(", "getMaxCFSSegmentSizeMB", "(", ")", ")", ".", "append", "(", "\", \"", ")", ";", "sb", ".", "append", "(", "\"noCFSRatio=\"", ")", ".", "append", "(", "noCFSRatio", ")", ";", "sb", ".", "append", "(", "\"]\"", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder("[" + this.GetType().Name + ": ");sb.Append("minMergeSize=").Append(m_minMergeSize).Append(", ");sb.Append("mergeFactor=").Append(m_mergeFactor).Append(", ");sb.Append("maxMergeSize=").Append(m_maxMergeSize).Append(", ");sb.Append("maxMergeSizeForForcedMerge=").Append(m_maxMergeSizeForForcedMerge).Append(", ");sb.Append("calibrateSizeByDeletes=").Append(m_calibrateSizeByDeletes).Append(", ");sb.Append("maxMergeDocs=").Append(m_maxMergeDocs).Append(", ");sb.Append("maxCFSSegmentSizeMB=").Append(MaxCFSSegmentSizeMB).Append(", ");sb.Append("noCFSRatio=").Append(m_noCFSRatio);sb.Append("]");return sb.ToString();}
train
false
9,049
public static void encode(StringBuilder urlstr, String key) {if (key == null || key.length() == 0)return;try {urlstr.append(URLEncoder.encode(key, UTF_8.name()));} catch (UnsupportedEncodingException e) {throw new RuntimeException(JGitText.get().couldNotURLEncodeToUTF8, e);}}
[ "public", "static", "void", "encode", "(", "StringBuilder", "urlstr", ",", "String", "key", ")", "{", "if", "(", "key", "==", "null", "||", "key", ".", "length", "(", ")", "==", "0", ")", "return", ";", "try", "{", "urlstr", ".", "append", "(", "URLEncoder", ".", "encode", "(", "key", ",", "UTF_8", ".", "name", "(", ")", ")", ")", ";", "}", "catch", "(", "UnsupportedEncodingException", "e", ")", "{", "throw", "new", "RuntimeException", "(", "JGitText", ".", "get", "(", ")", ".", "couldNotURLEncodeToUTF8", ",", "e", ")", ";", "}", "}" ]
public static void Encode(StringBuilder urlstr, string key){if (key == null || key.Length == 0){return;}try{urlstr.Append(URLEncoder.Encode(key, "UTF-8"));}catch (UnsupportedEncodingException e){throw new RuntimeException(JGitText.Get().couldNotURLEncodeToUTF8, e);}}
train
false
9,050
public DescribeTemplateResult describeTemplate(DescribeTemplateRequest request) {request = beforeClientExecution(request);return executeDescribeTemplate(request);}
[ "public", "DescribeTemplateResult", "describeTemplate", "(", "DescribeTemplateRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeTemplate", "(", "request", ")", ";", "}" ]
public virtual DescribeTemplateResponse DescribeTemplate(DescribeTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTemplateResponseUnmarshaller.Instance;return Invoke<DescribeTemplateResponse>(request, options);}
train
false
9,051
public boolean mkdirs() {if (exists()) {return false;}if (mkdir()) {return true;}String parentDir = getParent();if (parentDir == null) {return false;}return (new File(parentDir).mkdirs() && mkdir());}
[ "public", "boolean", "mkdirs", "(", ")", "{", "if", "(", "exists", "(", ")", ")", "{", "return", "false", ";", "}", "if", "(", "mkdir", "(", ")", ")", "{", "return", "true", ";", "}", "String", "parentDir", "=", "getParent", "(", ")", ";", "if", "(", "parentDir", "==", "null", ")", "{", "return", "false", ";", "}", "return", "(", "new", "File", "(", "parentDir", ")", ".", "mkdirs", "(", ")", "&&", "mkdir", "(", ")", ")", ";", "}" ]
public bool mkdirs(){if (exists()){return false;}if (mkdir()){return true;}string parentDir = getParent();if (parentDir == null){return false;}return (new java.io.File(parentDir).mkdirs() && mkdir());}
train
true
9,052
public HeaderBlock(InputStream stream) throws IOException {this(readFirst512(stream));if(bigBlockSize.getBigBlockSize() != 512) {int rest = bigBlockSize.getBigBlockSize() - 512;byte[] tmp = IOUtils.safelyAllocate(rest, MAX_RECORD_LENGTH);IOUtils.readFully(stream, tmp);}}
[ "public", "HeaderBlock", "(", "InputStream", "stream", ")", "throws", "IOException", "{", "this", "(", "readFirst512", "(", "stream", ")", ")", ";", "if", "(", "bigBlockSize", ".", "getBigBlockSize", "(", ")", "!=", "512", ")", "{", "int", "rest", "=", "bigBlockSize", ".", "getBigBlockSize", "(", ")", "-", "512", ";", "byte", "[", "]", "tmp", "=", "IOUtils", ".", "safelyAllocate", "(", "rest", ",", "MAX_RECORD_LENGTH", ")", ";", "IOUtils", ".", "readFully", "(", "stream", ",", "tmp", ")", ";", "}", "}" ]
public HeaderBlock(Stream stream){try{stream.Position = 0;PrivateHeaderBlock(ReadFirst512(stream));if (bigBlockSize.GetBigBlockSize() != 512){int rest = bigBlockSize.GetBigBlockSize() - 512;byte[] temp = new byte[rest];IOUtils.ReadFully(stream, temp);}}catch(IOException ex){throw ex;}}
train
false
9,053
public void recover(LexerNoViableAltException e) {if (_input.LA(1) != IntStream.EOF) {getInterpreter().consume(_input);}}
[ "public", "void", "recover", "(", "LexerNoViableAltException", "e", ")", "{", "if", "(", "_input", ".", "LA", "(", "1", ")", "!=", "IntStream", ".", "EOF", ")", "{", "getInterpreter", "(", ")", ".", "consume", "(", "_input", ")", ";", "}", "}" ]
public virtual void Recover(LexerNoViableAltException e){if (_input.LA(1) != IntStreamConstants.EOF){Interpreter.Consume(_input);}}
train
false
9,054
public E valueAt(int index) {if (mGarbage) {gc();}return (E) mValues[index];}
[ "public", "E", "valueAt", "(", "int", "index", ")", "{", "if", "(", "mGarbage", ")", "{", "gc", "(", ")", ";", "}", "return", "(", "E", ")", "mValues", "[", "index", "]", ";", "}" ]
public virtual E valueAt(int index){if (mGarbage){gc();}return (E)mValues[index];}
train
false
9,055
public AttachToIndexResult attachToIndex(AttachToIndexRequest request) {request = beforeClientExecution(request);return executeAttachToIndex(request);}
[ "public", "AttachToIndexResult", "attachToIndex", "(", "AttachToIndexRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAttachToIndex", "(", "request", ")", ";", "}" ]
public virtual AttachToIndexResponse AttachToIndex(AttachToIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachToIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachToIndexResponseUnmarshaller.Instance;return Invoke<AttachToIndexResponse>(request, options);}
train
true
9,056
public CreateMembersResult createMembers(CreateMembersRequest request) {request = beforeClientExecution(request);return executeCreateMembers(request);}
[ "public", "CreateMembersResult", "createMembers", "(", "CreateMembersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateMembers", "(", "request", ")", ";", "}" ]
public virtual CreateMembersResponse CreateMembers(CreateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMembersResponseUnmarshaller.Instance;return Invoke<CreateMembersResponse>(request, options);}
train
true
9,057
public double get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getDouble(position++ * SizeOf.DOUBLE);}
[ "public", "double", "get", "(", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferUnderflowException", "(", ")", ";", "}", "return", "byteBuffer", ".", "getDouble", "(", "position", "++", "*", "SizeOf", ".", "DOUBLE", ")", ";", "}" ]
public override double get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getDouble(_position++ * libcore.io.SizeOf.DOUBLE);}
train
false
9,058
public WorkflowExecutionInfos listOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request) {request = beforeClientExecution(request);return executeListOpenWorkflowExecutions(request);}
[ "public", "WorkflowExecutionInfos", "listOpenWorkflowExecutions", "(", "ListOpenWorkflowExecutionsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeListOpenWorkflowExecutions", "(", "request", ")", ";", "}" ]
public virtual ListOpenWorkflowExecutionsResponse ListOpenWorkflowExecutions(ListOpenWorkflowExecutionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListOpenWorkflowExecutionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListOpenWorkflowExecutionsResponseUnmarshaller.Instance;return Invoke<ListOpenWorkflowExecutionsResponse>(request, options);}
train
true
9,059
public CharSequence getFirstPathElement() {return values.get(0).value;}
[ "public", "CharSequence", "getFirstPathElement", "(", ")", "{", "return", "values", ".", "get", "(", "0", ")", ".", "value", ";", "}" ]
public virtual string GetFirstPathElement(){return values[0].Value;}
train
false
9,060
public static int toEMU(double points){return (int)Math.rint(EMU_PER_POINT*points);}
[ "public", "static", "int", "toEMU", "(", "double", "points", ")", "{", "return", "(", "int", ")", "Math", ".", "rint", "(", "EMU_PER_POINT", "*", "points", ")", ";", "}" ]
public static int ToEMU(double value){return (int)Math.Round(EMU_PER_POINT * value);}
train
false
9,061
public DeleteRequestValidatorResult deleteRequestValidator(DeleteRequestValidatorRequest request) {request = beforeClientExecution(request);return executeDeleteRequestValidator(request);}
[ "public", "DeleteRequestValidatorResult", "deleteRequestValidator", "(", "DeleteRequestValidatorRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteRequestValidator", "(", "request", ")", ";", "}" ]
public virtual DeleteRequestValidatorResponse DeleteRequestValidator(DeleteRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRequestValidatorResponseUnmarshaller.Instance;return Invoke<DeleteRequestValidatorResponse>(request, options);}
train
true
9,062
public Repository open(boolean mustExist) throws IOException {if (mustExist && !isGitRepository(path, fs))throw new RepositoryNotFoundException(path);return new FileRepository(path);}
[ "public", "Repository", "open", "(", "boolean", "mustExist", ")", "throws", "IOException", "{", "if", "(", "mustExist", "&&", "!", "isGitRepository", "(", "path", ",", "fs", ")", ")", "throw", "new", "RepositoryNotFoundException", "(", "path", ")", ";", "return", "new", "FileRepository", "(", "path", ")", ";", "}" ]
public virtual Repository Open(bool mustExist){if (mustExist && !IsGitRepository(path, fs)){throw new RepositoryNotFoundException(path);}return new FileRepository(path);}
train
false
9,063
public GetOnPremisesInstanceResult getOnPremisesInstance(GetOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeGetOnPremisesInstance(request);}
[ "public", "GetOnPremisesInstanceResult", "getOnPremisesInstance", "(", "GetOnPremisesInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeGetOnPremisesInstance", "(", "request", ")", ";", "}" ]
public virtual GetOnPremisesInstanceResponse GetOnPremisesInstance(GetOnPremisesInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOnPremisesInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOnPremisesInstanceResponseUnmarshaller.Instance;return Invoke<GetOnPremisesInstanceResponse>(request, options);}
train
true
9,064
public String toString(){StringBuilder sb = new StringBuilder();sb.append( '(' ).append( startOffset ).append( ',' ).append( endOffset ).append( ')' );return sb.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", ")", ";", "sb", ".", "append", "(", "'('", ")", ".", "append", "(", "startOffset", ")", ".", "append", "(", "','", ")", ".", "append", "(", "endOffset", ")", ".", "append", "(", "')'", ")", ";", "return", "sb", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append('(').Append(startOffset).Append(',').Append(endOffset).Append(')');return sb.ToString();}
train
false
9,065
public short getFontAtIndex( int index ) {int size = _string.getFormatRunCount();FormatRun currentRun = null;for (int i=0;i<size;i++) {FormatRun r = _string.getFormatRun(i);if (r.getCharacterPos() > index) {break;}currentRun = r;}if (currentRun == null) {return NO_FONT;}return currentRun.getFontIndex();}
[ "public", "short", "getFontAtIndex", "(", "int", "index", ")", "{", "int", "size", "=", "_string", ".", "getFormatRunCount", "(", ")", ";", "FormatRun", "currentRun", "=", "null", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "FormatRun", "r", "=", "_string", ".", "getFormatRun", "(", "i", ")", ";", "if", "(", "r", ".", "getCharacterPos", "(", ")", ">", "index", ")", "{", "break", ";", "}", "currentRun", "=", "r", ";", "}", "if", "(", "currentRun", "==", "null", ")", "{", "return", "NO_FONT", ";", "}", "return", "currentRun", ".", "getFontIndex", "(", ")", ";", "}" ]
public short GetFontAtIndex(int index){int size = _string.FormatRunCount;UnicodeString.FormatRun currentRun = null;for (int i = 0; i < size; i++){UnicodeString.FormatRun r = _string.GetFormatRun(i);if (r.CharacterPos > index)break;else currentRun = r;}if (currentRun == null)return NO_FONT;else return currentRun.FontIndex;}
train
false
9,066
public StopMonitoringMembersResult stopMonitoringMembers(StopMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStopMonitoringMembers(request);}
[ "public", "StopMonitoringMembersResult", "stopMonitoringMembers", "(", "StopMonitoringMembersRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStopMonitoringMembers", "(", "request", ")", ";", "}" ]
public virtual StopMonitoringMembersResponse StopMonitoringMembers(StopMonitoringMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMonitoringMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMonitoringMembersResponseUnmarshaller.Instance;return Invoke<StopMonitoringMembersResponse>(request, options);}
train
true
9,067
public DetachLoadBalancerFromSubnetsResult detachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request) {request = beforeClientExecution(request);return executeDetachLoadBalancerFromSubnets(request);}
[ "public", "DetachLoadBalancerFromSubnetsResult", "detachLoadBalancerFromSubnets", "(", "DetachLoadBalancerFromSubnetsRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDetachLoadBalancerFromSubnets", "(", "request", ")", ";", "}" ]
public virtual DetachLoadBalancerFromSubnetsResponse DetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachLoadBalancerFromSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachLoadBalancerFromSubnetsResponseUnmarshaller.Instance;return Invoke<DetachLoadBalancerFromSubnetsResponse>(request, options);}
train
true
9,068
public HSSFCell getCell(int cellnum, MissingCellPolicy policy) {HSSFCell cell = retrieveCell(cellnum);switch (policy) {case RETURN_NULL_AND_BLANK:return cell;case RETURN_BLANK_AS_NULL:boolean isBlank = (cell != null && cell.getCellType() == CellType.BLANK);return (isBlank) ? null : cell;case CREATE_NULL_AS_BLANK:return (cell == null) ? createCell(cellnum, CellType.BLANK) : cell;default:throw new IllegalArgumentException("Illegal policy " + policy);}}
[ "public", "HSSFCell", "getCell", "(", "int", "cellnum", ",", "MissingCellPolicy", "policy", ")", "{", "HSSFCell", "cell", "=", "retrieveCell", "(", "cellnum", ")", ";", "switch", "(", "policy", ")", "{", "case", "RETURN_NULL_AND_BLANK", ":", "return", "cell", ";", "case", "RETURN_BLANK_AS_NULL", ":", "boolean", "isBlank", "=", "(", "cell", "!=", "null", "&&", "cell", ".", "getCellType", "(", ")", "==", "CellType", ".", "BLANK", ")", ";", "return", "(", "isBlank", ")", "?", "null", ":", "cell", ";", "case", "CREATE_NULL_AS_BLANK", ":", "return", "(", "cell", "==", "null", ")", "?", "createCell", "(", "cellnum", ",", "CellType", ".", "BLANK", ")", ":", "cell", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", "\"Illegal policy \"", "+", "policy", ")", ";", "}", "}" ]
public ICell GetCell(int cellnum, MissingCellPolicy policy){ICell cell = RetrieveCell(cellnum);if (policy == MissingCellPolicy.RETURN_NULL_AND_BLANK){return cell;}if (policy == MissingCellPolicy.RETURN_BLANK_AS_NULL){if (cell == null) return cell;if (cell.CellType == CellType.Blank){return null;}return cell;}if (policy == MissingCellPolicy.CREATE_NULL_AS_BLANK){if (cell == null){return CreateCell(cellnum, CellType.Blank);}return cell;}throw new ArgumentException("Illegal policy " + policy + " (" + policy.id + ")");}
train
false
9,069
public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);}
[ "public", "SimpleQQParser", "(", "String", "qqName", ",", "String", "indexField", ")", "{", "this", "(", "new", "String", "[", "]", "{", "qqName", "}", ",", "indexField", ")", ";", "}" ]
public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }, indexField);
train
false
9,070
public Query makeQuery(int size) throws Exception {throw new Exception(this+".makeQuery(int size) is not supported!");}
[ "public", "Query", "makeQuery", "(", "int", "size", ")", "throws", "Exception", "{", "throw", "new", "Exception", "(", "this", "+", "\".makeQuery(int size) is not supported!\"", ")", ";", "}" ]
public virtual Query MakeQuery(int size){throw new Exception(this + ".MakeQuery(int size) is not supported!");}
train
false
9,071
public StringBuilder insert(int offset, float f) {insert0(offset, Float.toString(f));return this;}
[ "public", "StringBuilder", "insert", "(", "int", "offset", ",", "float", "f", ")", "{", "insert0", "(", "offset", ",", "Float", ".", "toString", "(", "f", ")", ")", ";", "return", "this", ";", "}" ]
public java.lang.StringBuilder insert(int offset, float f){insert0(offset, System.Convert.ToString(f));return this;}
train
false
9,072
public Class<ConfigChangedListener> getListenerType() {return ConfigChangedListener.class;}
[ "public", "Class", "<", "ConfigChangedListener", ">", "getListenerType", "(", ")", "{", "return", "ConfigChangedListener", ".", "class", ";", "}" ]
public override Type GetListenerType(){return typeof(ConfigChangedListener);}
train
false
9,073
public AddPermissionResult addPermission(AddPermissionRequest request) {request = beforeClientExecution(request);return executeAddPermission(request);}
[ "public", "AddPermissionResult", "addPermission", "(", "AddPermissionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeAddPermission", "(", "request", ")", ";", "}" ]
public virtual AddPermissionResponse AddPermission(AddPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddPermissionResponseUnmarshaller.Instance;return Invoke<AddPermissionResponse>(request, options);}
train
true
9,074
public double get(int index) {checkIndex(index);return byteBuffer.getDouble(index * SizeOf.DOUBLE);}
[ "public", "double", "get", "(", "int", "index", ")", "{", "checkIndex", "(", "index", ")", ";", "return", "byteBuffer", ".", "getDouble", "(", "index", "*", "SizeOf", ".", "DOUBLE", ")", ";", "}" ]
public override double get(int index){checkIndex(index);return byteBuffer.getDouble(index * libcore.io.SizeOf.DOUBLE);}
train
false
9,075
public HSSFDataFormat createDataFormat() {return workbook.createDataFormat();}
[ "public", "HSSFDataFormat", "createDataFormat", "(", ")", "{", "return", "workbook", ".", "createDataFormat", "(", ")", ";", "}" ]
public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){return dataFormat;}
train
false
9,076
public TermData add(TermData t1, TermData t2) {if (t1 == NO_OUTPUT) {return t2;} else if (t2 == NO_OUTPUT) {return t1;}TermData ret;if (t2.bytes != null || t2.docFreq > 0) {ret = new TermData(t2.bytes, t2.docFreq, t2.totalTermFreq);} else {ret = new TermData(t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}
[ "public", "TermData", "add", "(", "TermData", "t1", ",", "TermData", "t2", ")", "{", "if", "(", "t1", "==", "NO_OUTPUT", ")", "{", "return", "t2", ";", "}", "else", "if", "(", "t2", "==", "NO_OUTPUT", ")", "{", "return", "t1", ";", "}", "TermData", "ret", ";", "if", "(", "t2", ".", "bytes", "!=", "null", "||", "t2", ".", "docFreq", ">", "0", ")", "{", "ret", "=", "new", "TermData", "(", "t2", ".", "bytes", ",", "t2", ".", "docFreq", ",", "t2", ".", "totalTermFreq", ")", ";", "}", "else", "{", "ret", "=", "new", "TermData", "(", "t1", ".", "bytes", ",", "t1", ".", "docFreq", ",", "t1", ".", "totalTermFreq", ")", ";", "}", "return", "ret", ";", "}" ]
public override TermData Add(TermData t1, TermData t2){if (Equals(t1, NO_OUTPUT))return t2;if (Equals(t2, NO_OUTPUT))return t1;Debug.Assert(t1.longs.Length == t2.longs.Length);var pos = 0;var accum = new long[_longsSize];while (pos < _longsSize){accum[pos] = t1.longs[pos] + t2.longs[pos];pos++;}TermData ret;if (t2.bytes != null || t2.docFreq > 0){ret = new TermData(accum, t2.bytes, t2.docFreq, t2.totalTermFreq);}else{ret = new TermData(accum, t1.bytes, t1.docFreq, t1.totalTermFreq);}return ret;}
train
false
9,077
public FileSharingRecord(RecordInputStream in) {field_1_readonly = in.readShort();field_2_password = in.readShort();int nameLen = in.readShort();if(nameLen > 0) {field_3_username_unicode_options = in.readByte();field_3_username_value = in.readCompressedUnicode(nameLen);} else {field_3_username_value = "";}}
[ "public", "FileSharingRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_readonly", "=", "in", ".", "readShort", "(", ")", ";", "field_2_password", "=", "in", ".", "readShort", "(", ")", ";", "int", "nameLen", "=", "in", ".", "readShort", "(", ")", ";", "if", "(", "nameLen", ">", "0", ")", "{", "field_3_username_unicode_options", "=", "in", ".", "readByte", "(", ")", ";", "field_3_username_value", "=", "in", ".", "readCompressedUnicode", "(", "nameLen", ")", ";", "}", "else", "{", "field_3_username_value", "=", "\"\"", ";", "}", "}" ]
public FileSharingRecord(RecordInputStream in1){field_1_Readonly = in1.ReadShort();field_2_password = in1.ReadShort();int nameLen = in1.ReadShort();if (nameLen > 0){field_3_username_unicode_options = (byte)in1.ReadByte();field_3_username_value = in1.ReadCompressedUnicode(nameLen);if (field_3_username_value == null){field_3_username_value = "";}}else{field_3_username_value = "";}}
train
false
9,078
public double computeProbability(BasicStats stats) {return (stats.getTotalTermFreq()+1D) / (stats.getNumberOfFieldTokens()+1D);}
[ "public", "double", "computeProbability", "(", "BasicStats", "stats", ")", "{", "return", "(", "stats", ".", "getTotalTermFreq", "(", ")", "+", "1D", ")", "/", "(", "stats", ".", "getNumberOfFieldTokens", "(", ")", "+", "1D", ")", ";", "}" ]
public virtual float ComputeProbability(BasicStats stats){return (stats.TotalTermFreq + 1F) / (stats.NumberOfFieldTokens + 1F);}
train
false
9,079
public StringCharacterIterator(String value) {string = value;start = offset = 0;end = string.length();}
[ "public", "StringCharacterIterator", "(", "String", "value", ")", "{", "string", "=", "value", ";", "start", "=", "offset", "=", "0", ";", "end", "=", "string", ".", "length", "(", ")", ";", "}" ]
public StringCharacterIterator(string value){@string = value;start = offset = 0;end = @string.Length;}
train
false
9,080
public void start(String originalText, TokenStream tokenStream) {position = -1;currentNumFrags = 1;textSize = originalText.length();termAtt = tokenStream.addAttribute(CharTermAttribute.class);posIncAtt = tokenStream.addAttribute(PositionIncrementAttribute.class);offsetAtt = tokenStream.addAttribute(OffsetAttribute.class);}
[ "public", "void", "start", "(", "String", "originalText", ",", "TokenStream", "tokenStream", ")", "{", "position", "=", "-", "1", ";", "currentNumFrags", "=", "1", ";", "textSize", "=", "originalText", ".", "length", "(", ")", ";", "termAtt", "=", "tokenStream", ".", "addAttribute", "(", "CharTermAttribute", ".", "class", ")", ";", "posIncAtt", "=", "tokenStream", ".", "addAttribute", "(", "PositionIncrementAttribute", ".", "class", ")", ";", "offsetAtt", "=", "tokenStream", ".", "addAttribute", "(", "OffsetAttribute", ".", "class", ")", ";", "}" ]
public virtual void Start(string originalText, TokenStream tokenStream){position = -1;currentNumFrags = 1;textSize = originalText.Length;termAtt = tokenStream.AddAttribute<ICharTermAttribute>();posIncAtt = tokenStream.AddAttribute<IPositionIncrementAttribute>();offsetAtt = tokenStream.AddAttribute<IOffsetAttribute>();}
train
false
9,081
public String getSignerVersion() {return null;}
[ "public", "String", "getSignerVersion", "(", ")", "{", "return", "null", ";", "}" ]
public override string GetSignerVersion(){return "1.0";}
train
false
9,082
public String toString() {StringBuilder b = new StringBuilder();b.append("initial state: 0\n");for (int i = 0; i < size; i++) {b.append("state ").append(i);if (accept.get(i)) b.append(" [accept]:\n");else b.append(" [reject]:\n");for (int j = 0; j < points.length; j++) {int k = transitions[i * points.length + j];if (k != -1) {int min = points[j];int max;if (j + 1 < points.length) max = (points[j + 1] - 1);else max = alphabetSize;b.append(" ");Automaton.appendCharString(min, b);if (min != max) {b.append("-");Automaton.appendCharString(max, b);}b.append(" -> ").append(k).append("\n");}}}return b.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "b", "=", "new", "StringBuilder", "(", ")", ";", "b", ".", "append", "(", "\"initial state: 0\\n\"", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "size", ";", "i", "++", ")", "{", "b", ".", "append", "(", "\"state \"", ")", ".", "append", "(", "i", ")", ";", "if", "(", "accept", ".", "get", "(", "i", ")", ")", "b", ".", "append", "(", "\" [accept]:\\n\"", ")", ";", "else", "b", ".", "append", "(", "\" [reject]:\\n\"", ")", ";", "for", "(", "int", "j", "=", "0", ";", "j", "<", "points", ".", "length", ";", "j", "++", ")", "{", "int", "k", "=", "transitions", "[", "i", "*", "points", ".", "length", "+", "j", "]", ";", "if", "(", "k", "!=", "-", "1", ")", "{", "int", "min", "=", "points", "[", "j", "]", ";", "int", "max", ";", "if", "(", "j", "+", "1", "<", "points", ".", "length", ")", "max", "=", "(", "points", "[", "j", "+", "1", "]", "-", "1", ")", ";", "else", "max", "=", "alphabetSize", ";", "b", ".", "append", "(", "\" \"", ")", ";", "Automaton", ".", "appendCharString", "(", "min", ",", "b", ")", ";", "if", "(", "min", "!=", "max", ")", "{", "b", ".", "append", "(", "\"-\"", ")", ";", "Automaton", ".", "appendCharString", "(", "max", ",", "b", ")", ";", "}", "b", ".", "append", "(", "\" -> \"", ")", ".", "append", "(", "k", ")", ".", "append", "(", "\"\\n\"", ")", ";", "}", "}", "}", "return", "b", ".", "toString", "(", ")", ";", "}" ]
public override string ToString(){var b = new StringBuilder();b.Append("initial state: ").Append(m_initial).Append("\n");for (int i = 0; i < _size; i++){b.Append("state " + i);if (m_accept[i]){b.Append(" [accept]:\n");}else{b.Append(" [reject]:\n");}for (int j = 0; j < _points.Length; j++){int k = m_transitions[i * _points.Length + j];if (k != -1){int min = _points[j];int max;if (j + 1 < _points.Length){max = (_points[j + 1] - 1);}else{max = _maxInterval;}b.Append(" ");Transition.AppendCharString(min, b);if (min != max){b.Append("-");Transition.AppendCharString(max, b);}b.Append(" -> ").Append(k).Append("\n");}}}return b.ToString();}
train
false
9,083
public synchronized long skip(long charCount) {if (charCount <= 0) {return 0;}int numskipped;if (this.count - pos < charCount) {numskipped = this.count - pos;pos = this.count;} else {numskipped = (int) charCount;pos += charCount;}return numskipped;}
[ "public", "synchronized", "long", "skip", "(", "long", "charCount", ")", "{", "if", "(", "charCount", "<=", "0", ")", "{", "return", "0", ";", "}", "int", "numskipped", ";", "if", "(", "this", ".", "count", "-", "pos", "<", "charCount", ")", "{", "numskipped", "=", "this", ".", "count", "-", "pos", ";", "pos", "=", "this", ".", "count", ";", "}", "else", "{", "numskipped", "=", "(", "int", ")", "charCount", ";", "pos", "+=", "charCount", ";", "}", "return", "numskipped", ";", "}" ]
public override long skip(long charCount){lock (this){if (charCount <= 0){return 0;}int numskipped;if (this.count - pos < charCount){numskipped = this.count - pos;pos = this.count;}else{numskipped = (int)charCount;pos += (int)(charCount);}return numskipped;}}
train
false
9,084
@Override public ListIterator<E> listIterator(int location) {synchronized (mutex) {return list.listIterator(location);}}
[ "@", "Override", "public", "ListIterator", "<", "E", ">", "listIterator", "(", "int", "location", ")", "{", "synchronized", "(", "mutex", ")", "{", "return", "list", ".", "listIterator", "(", "location", ")", ";", "}", "}" ]
public virtual java.util.ListIterator<E> listIterator(int location){lock (mutex){return list.listIterator(location);}}
train
false
9,085
public CreateAddressBookResult createAddressBook(CreateAddressBookRequest request) {request = beforeClientExecution(request);return executeCreateAddressBook(request);}
[ "public", "CreateAddressBookResult", "createAddressBook", "(", "CreateAddressBookRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateAddressBook", "(", "request", ")", ";", "}" ]
public virtual CreateAddressBookResponse CreateAddressBook(CreateAddressBookRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAddressBookRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAddressBookResponseUnmarshaller.Instance;return Invoke<CreateAddressBookResponse>(request, options);}
train
true
9,086
public StreamCopyThread(InputStream i, OutputStream o) {setName(Thread.currentThread().getName() + "-StreamCopy"); src = i;dst = o;writeLock = new Object();}
[ "public", "StreamCopyThread", "(", "InputStream", "i", ",", "OutputStream", "o", ")", "{", "setName", "(", "Thread", ".", "currentThread", "(", ")", ".", "getName", "(", ")", "+", "\"-StreamCopy\"", ")", ";", "src", "=", "i", ";", "dst", "=", "o", ";", "writeLock", "=", "new", "Object", "(", ")", ";", "}" ]
public StreamCopyThread(InputStream i, OutputStream o){SetName(Sharpen.Thread.CurrentThread().GetName() + "-StreamCopy");src = i;dst = o;}
train
false
9,087
public AxisParentRecord(RecordInputStream in) {field_1_axisType = in.readShort();field_2_x = in.readInt();field_3_y = in.readInt();field_4_width = in.readInt();field_5_height = in.readInt();}
[ "public", "AxisParentRecord", "(", "RecordInputStream", "in", ")", "{", "field_1_axisType", "=", "in", ".", "readShort", "(", ")", ";", "field_2_x", "=", "in", ".", "readInt", "(", ")", ";", "field_3_y", "=", "in", ".", "readInt", "(", ")", ";", "field_4_width", "=", "in", ".", "readInt", "(", ")", ";", "field_5_height", "=", "in", ".", "readInt", "(", ")", ";", "}" ]
public AxisParentRecord(RecordInputStream in1){field_1_axisType = in1.ReadShort();field_2_x = in1.ReadInt();field_3_y = in1.ReadInt();field_4_width = in1.ReadInt();field_5_height = in1.ReadInt();}
train
false
9,088
public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new WeightedFieldFragList( fragCharSize ), fragCharSize );}
[ "public", "FieldFragList", "createFieldFragList", "(", "FieldPhraseList", "fieldPhraseList", ",", "int", "fragCharSize", ")", "{", "return", "createFieldFragList", "(", "fieldPhraseList", ",", "new", "WeightedFieldFragList", "(", "fragCharSize", ")", ",", "fragCharSize", ")", ";", "}" ]
public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new WeightedFieldFragList(fragCharSize), fragCharSize);}
train
false
9,089
public TrimFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "TrimFilterFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public TrimFilterFactory(IDictionary<string, string> args): base(args){m_updateOffsets = GetBoolean(args, "updateOffsets", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
9,090
public void push( TermInfo termInfo ){termList.push( termInfo );}
[ "public", "void", "push", "(", "TermInfo", "termInfo", ")", "{", "termList", ".", "push", "(", "termInfo", ")", ";", "}" ]
public virtual void Push(TermInfo termInfo){termList.Insert(0, termInfo);}
train
false
9,091
public DescribeNotebookInstanceResult describeNotebookInstance(DescribeNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeDescribeNotebookInstance(request);}
[ "public", "DescribeNotebookInstanceResult", "describeNotebookInstance", "(", "DescribeNotebookInstanceRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDescribeNotebookInstance", "(", "request", ")", ";", "}" ]
public virtual DescribeNotebookInstanceResponse DescribeNotebookInstance(DescribeNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNotebookInstanceResponseUnmarshaller.Instance;return Invoke<DescribeNotebookInstanceResponse>(request, options);}
train
true
9,092
public String toFormulaString(){return ":";}
[ "public", "String", "toFormulaString", "(", ")", "{", "return", "\":\"", ";", "}" ]
public override String ToFormulaString(){return ":";}
train
false
9,093
public ApplyCommand setPatch(InputStream in) {checkCallable();this.in = in;return this;}
[ "public", "ApplyCommand", "setPatch", "(", "InputStream", "in", ")", "{", "checkCallable", "(", ")", ";", "this", ".", "in", "=", "in", ";", "return", "this", ";", "}" ]
public virtual NGit.Api.ApplyCommand SetPatch(InputStream @in){CheckCallable();this.@in = @in;return this;}
train
false
9,094
public void setCreationTime(long when) {encodeTS(P_CTIME, when);}
[ "public", "void", "setCreationTime", "(", "long", "when", ")", "{", "encodeTS", "(", "P_CTIME", ",", "when", ")", ";", "}" ]
public virtual void SetCreationTime(long when){EncodeTS(P_CTIME, when);}
train
false
9,096
public void advertiseCapability(String name) {capablities.add(name);}
[ "public", "void", "advertiseCapability", "(", "String", "name", ")", "{", "capablities", ".", "add", "(", "name", ")", ";", "}" ]
public virtual void AdvertiseCapability(string name){capablities.AddItem(name);}
train
false
9,097
public StopInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}
[ "public", "StopInstancesRequest", "(", "java", ".", "util", ".", "List", "<", "String", ">", "instanceIds", ")", "{", "setInstanceIds", "(", "instanceIds", ")", ";", "}" ]
public StopInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
train
false
9,098
public CreateVpnGatewayResult createVpnGateway(CreateVpnGatewayRequest request) {request = beforeClientExecution(request);return executeCreateVpnGateway(request);}
[ "public", "CreateVpnGatewayResult", "createVpnGateway", "(", "CreateVpnGatewayRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateVpnGateway", "(", "request", ")", ";", "}" ]
public virtual CreateVpnGatewayResponse CreateVpnGateway(CreateVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpnGatewayResponseUnmarshaller.Instance;return Invoke<CreateVpnGatewayResponse>(request, options);}
train
true
9,099
public ResetCacheParameterGroupResult resetCacheParameterGroup(ResetCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetCacheParameterGroup(request);}
[ "public", "ResetCacheParameterGroupResult", "resetCacheParameterGroup", "(", "ResetCacheParameterGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeResetCacheParameterGroup", "(", "request", ")", ";", "}" ]
public virtual ResetCacheParameterGroupResponse ResetCacheParameterGroup(ResetCacheParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetCacheParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetCacheParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetCacheParameterGroupResponse>(request, options);}
train
true
9,100
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {double result;try {double d0 = singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = evaluate(d0, d1);if (result == 0.0) { if (!(this instanceof SubtractEvalClass)) {return NumberEval.ZERO;}}if (Double.isNaN(result) || Double.isInfinite(result)) {return ErrorEval.NUM_ERROR;}} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
[ "public", "ValueEval", "evaluate", "(", "int", "srcRowIndex", ",", "int", "srcColumnIndex", ",", "ValueEval", "arg0", ",", "ValueEval", "arg1", ")", "{", "double", "result", ";", "try", "{", "double", "d0", "=", "singleOperandEvaluate", "(", "arg0", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "double", "d1", "=", "singleOperandEvaluate", "(", "arg1", ",", "srcRowIndex", ",", "srcColumnIndex", ")", ";", "result", "=", "evaluate", "(", "d0", ",", "d1", ")", ";", "if", "(", "result", "==", "0.0", ")", "{", "if", "(", "!", "(", "this", "instanceof", "SubtractEvalClass", ")", ")", "{", "return", "NumberEval", ".", "ZERO", ";", "}", "}", "if", "(", "Double", ".", "isNaN", "(", "result", ")", "||", "Double", ".", "isInfinite", "(", "result", ")", ")", "{", "return", "ErrorEval", ".", "NUM_ERROR", ";", "}", "}", "catch", "(", "EvaluationException", "e", ")", "{", "return", "e", ".", "getErrorEval", "(", ")", ";", "}", "return", "new", "NumberEval", "(", "result", ")", ";", "}" ]
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){double result;try{double d0 = SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);result = Evaluate(d0, d1);if (result == 0.0){ if (!(this is SubtractEval)){return NumberEval.ZERO;}}if (Double.IsNaN(result) || Double.IsInfinity(result)){return ErrorEval.NUM_ERROR;}}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
train
false
9,101
public PutMetricFilterRequest(String logGroupName, String filterName, String filterPattern, java.util.List<MetricTransformation> metricTransformations) {setLogGroupName(logGroupName);setFilterName(filterName);setFilterPattern(filterPattern);setMetricTransformations(metricTransformations);}
[ "public", "PutMetricFilterRequest", "(", "String", "logGroupName", ",", "String", "filterName", ",", "String", "filterPattern", ",", "java", ".", "util", ".", "List", "<", "MetricTransformation", ">", "metricTransformations", ")", "{", "setLogGroupName", "(", "logGroupName", ")", ";", "setFilterName", "(", "filterName", ")", ";", "setFilterPattern", "(", "filterPattern", ")", ";", "setMetricTransformations", "(", "metricTransformations", ")", ";", "}" ]
public PutMetricFilterRequest(string logGroupName, string filterName, string filterPattern, List<MetricTransformation> metricTransformations){_logGroupName = logGroupName;_filterName = filterName;_filterPattern = filterPattern;_metricTransformations = metricTransformations;}
train
false
9,103
public IntPtg(int value) {if (!isInRange(value)) {throw new IllegalArgumentException("value is out of range: " + value);}field_1_value = value;}
[ "public", "IntPtg", "(", "int", "value", ")", "{", "if", "(", "!", "isInRange", "(", "value", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"value is out of range: \"", "+", "value", ")", ";", "}", "field_1_value", "=", "value", ";", "}" ]
public IntPtg(int value){if (!IsInRange(value)){throw new ArgumentException("value is out of range: " + value);}field_1_value = value;}
train
false
9,104
public Builder() {this(16, 16);}
[ "public", "Builder", "(", ")", "{", "this", "(", "16", ",", "16", ")", ";", "}" ]
public Builder(): base(){lastDocID = -1;wordNum = -1;word = 0;}
train
false
9,105
public long getItemId(int position) {return position;}
[ "public", "long", "getItemId", "(", "int", "position", ")", "{", "return", "position", ";", "}" ]
public override long getItemId(int position){return position;}
train
false
9,107
public void clear() {value = false;}
[ "public", "void", "clear", "(", ")", "{", "value", "=", "false", ";", "}" ]
public override void Clear(){value = false;}
train
false
9,108
public CharVector(char[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.length;}
[ "public", "CharVector", "(", "char", "[", "]", "a", ")", "{", "blockSize", "=", "DEFAULT_BLOCK_SIZE", ";", "array", "=", "a", ";", "n", "=", "a", ".", "length", ";", "}" ]
public CharVector(char[] a){blockSize = DEFAULT_BLOCK_SIZE;array = a;n = a.Length;}
train
false
9,109
public UAX29URLEmailTokenizerFactory(Map<String,String> args) {super(args);maxTokenLength = getInt(args, "maxTokenLength", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
[ "public", "UAX29URLEmailTokenizerFactory", "(", "Map", "<", "String", ",", "String", ">", "args", ")", "{", "super", "(", "args", ")", ";", "maxTokenLength", "=", "getInt", "(", "args", ",", "\"maxTokenLength\"", ",", "StandardAnalyzer", ".", "DEFAULT_MAX_TOKEN_LENGTH", ")", ";", "if", "(", "!", "args", ".", "isEmpty", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Unknown parameters: \"", "+", "args", ")", ";", "}", "}" ]
public UAX29URLEmailTokenizerFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();maxTokenLength = GetInt32(args, "maxTokenLength", StandardAnalyzer.DEFAULT_MAX_TOKEN_LENGTH);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
train
false
9,110
public long ramBytesUsed() {long sizeInBytes = 0;for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}
[ "public", "long", "ramBytesUsed", "(", ")", "{", "long", "sizeInBytes", "=", "0", ";", "for", "(", "FieldIndexData", "entry", ":", "fields", ".", "values", "(", ")", ")", "{", "sizeInBytes", "+=", "entry", ".", "ramBytesUsed", "(", ")", ";", "}", "return", "sizeInBytes", ";", "}" ]
public virtual long RamBytesUsed(){return fst == null ? 0 : fst.GetSizeInBytes();}
train
false
9,112
public StartDeploymentResult startDeployment(StartDeploymentRequest request) {request = beforeClientExecution(request);return executeStartDeployment(request);}
[ "public", "StartDeploymentResult", "startDeployment", "(", "StartDeploymentRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeStartDeployment", "(", "request", ")", ";", "}" ]
public virtual StartDeploymentResponse StartDeployment(StartDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDeploymentResponseUnmarshaller.Instance;return Invoke<StartDeploymentResponse>(request, options);}
train
false
9,113
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[1904]\n");buffer.append(" .is1904 = ").append(Integer.toHexString(getWindowing())).append("\n");buffer.append("[/1904]\n");return buffer.toString();}
[ "public", "String", "toString", "(", ")", "{", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "buffer", ".", "append", "(", "\"[1904]\\n\"", ")", ";", "buffer", ".", "append", "(", "\" .is1904 = \"", ")", ".", "append", "(", "Integer", ".", "toHexString", "(", "getWindowing", "(", ")", ")", ")", ".", "append", "(", "\"\\n\"", ")", ";", "buffer", ".", "append", "(", "\"[/1904]\\n\"", ")", ";", "return", "buffer", ".", "toString", "(", ")", ";", "}" ]
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[1904]\n");buffer.Append(" .is1904 = ").Append(StringUtil.ToHexString(Windowing)).Append("\n");buffer.Append("[/1904]\n");return buffer.ToString();}
train
false
9,114
public CreateModelResult createModel(CreateModelRequest request) {request = beforeClientExecution(request);return executeCreateModel(request);}
[ "public", "CreateModelResult", "createModel", "(", "CreateModelRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateModel", "(", "request", ")", ";", "}" ]
public virtual CreateModelResponse CreateModel(CreateModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateModelRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateModelResponseUnmarshaller.Instance;return Invoke<CreateModelResponse>(request, options);}
train
true
9,115
public DoubleBuffer put(double c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}
[ "public", "DoubleBuffer", "put", "(", "double", "c", ")", "{", "if", "(", "position", "==", "limit", ")", "{", "throw", "new", "BufferOverflowException", "(", ")", ";", "}", "backingArray", "[", "offset", "+", "position", "++", "]", "=", "c", ";", "return", "this", ";", "}" ]
public override java.nio.DoubleBuffer put(double c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
train
false
9,116
public SimpleFacetsExample() {config.setHierarchical("Publish Date", true);}
[ "public", "SimpleFacetsExample", "(", ")", "{", "config", ".", "setHierarchical", "(", "\"Publish Date\"", ",", "true", ")", ";", "}" ]
public SimpleFacetsExample(){config.SetHierarchical("Publish Date", true);}
train
false
9,117
public DeleteConnectionResult deleteConnection(DeleteConnectionRequest request) {request = beforeClientExecution(request);return executeDeleteConnection(request);}
[ "public", "DeleteConnectionResult", "deleteConnection", "(", "DeleteConnectionRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeDeleteConnection", "(", "request", ")", ";", "}" ]
public virtual DeleteConnectionResponse DeleteConnection(DeleteConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConnectionResponseUnmarshaller.Instance;return Invoke<DeleteConnectionResponse>(request, options);}
train
true
9,118
public String getSheetFirstNameByExternSheet(int externSheetIndex) {return _iBook.findSheetFirstNameFromExternSheet(externSheetIndex);}
[ "public", "String", "getSheetFirstNameByExternSheet", "(", "int", "externSheetIndex", ")", "{", "return", "_iBook", ".", "findSheetFirstNameFromExternSheet", "(", "externSheetIndex", ")", ";", "}" ]
public String GetSheetFirstNameByExternSheet(int externSheetIndex){return _iBook.FindSheetFirstNameFromExternSheet(externSheetIndex);}
train
false
9,119
public void begin(int timeout) {if (timeout <= 0)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidTimeout, Integer.valueOf(timeout)));Thread.interrupted();state.begin(timeout);}
[ "public", "void", "begin", "(", "int", "timeout", ")", "{", "if", "(", "timeout", "<=", "0", ")", "throw", "new", "IllegalArgumentException", "(", "MessageFormat", ".", "format", "(", "JGitText", ".", "get", "(", ")", ".", "invalidTimeout", ",", "Integer", ".", "valueOf", "(", "timeout", ")", ")", ")", ";", "Thread", ".", "interrupted", "(", ")", ";", "state", ".", "begin", "(", "timeout", ")", ";", "}" ]
public void Begin(int timeout){if (timeout <= 0){throw new ArgumentException(MessageFormat.Format(JGitText.Get().invalidTimeout, Sharpen.Extensions.ValueOf(timeout)));}Sharpen.Thread.Interrupted();state.Begin(timeout);}
train
false
9,120
public final T updateTop() {downHeap(1);return heap[1];}
[ "public", "final", "T", "updateTop", "(", ")", "{", "downHeap", "(", "1", ")", ";", "return", "heap", "[", "1", "]", ";", "}" ]
public T UpdateTop(){DownHeap();return heap[1];}
train
false
9,121
public QueryNodeException(Message message) {super(message.getKey());this.message = message;}
[ "public", "QueryNodeException", "(", "Message", "message", ")", "{", "super", "(", "message", ".", "getKey", "(", ")", ")", ";", "this", ".", "message", "=", "message", ";", "}" ]
public QueryNodeException(IMessage message): base(message.Key){this.m_message = message;}
train
false
9,122
public static double factorial(int n) {double d = 1;if (n >= 0) {if (n <= 170) {for (int i=1; i<=n; i++) {d *= i;}}else {d = Double.POSITIVE_INFINITY;}}else {d = Double.NaN;}return d;}
[ "public", "static", "double", "factorial", "(", "int", "n", ")", "{", "double", "d", "=", "1", ";", "if", "(", "n", ">=", "0", ")", "{", "if", "(", "n", "<=", "170", ")", "{", "for", "(", "int", "i", "=", "1", ";", "i", "<=", "n", ";", "i", "++", ")", "{", "d", "*=", "i", ";", "}", "}", "else", "{", "d", "=", "Double", ".", "POSITIVE_INFINITY", ";", "}", "}", "else", "{", "d", "=", "Double", ".", "NaN", ";", "}", "return", "d", ";", "}" ]
public static double Factorial(int n){double d = 1;if (n >= 0){if (n <= 170){for (int i = 1; i <= n; i++){d *= i;}}else{d = double.PositiveInfinity;}}else{d = double.NaN;}return d;}
train
false
9,123
public void sort(RevSort s) {assertNotStarted();sorting.clear();sorting.add(s);}
[ "public", "void", "sort", "(", "RevSort", "s", ")", "{", "assertNotStarted", "(", ")", ";", "sorting", ".", "clear", "(", ")", ";", "sorting", ".", "add", "(", "s", ")", ";", "}" ]
public virtual void Sort(RevSort s){AssertNotStarted();sorting.Clear();sorting.AddItem(s);}
train
false
9,124
public CreateAuthorizerResult createAuthorizer(CreateAuthorizerRequest request) {request = beforeClientExecution(request);return executeCreateAuthorizer(request);}
[ "public", "CreateAuthorizerResult", "createAuthorizer", "(", "CreateAuthorizerRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateAuthorizer", "(", "request", ")", ";", "}" ]
public virtual CreateAuthorizerResponse CreateAuthorizer(CreateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAuthorizerResponseUnmarshaller.Instance;return Invoke<CreateAuthorizerResponse>(request, options);}
train
true
9,125
public boolean isDeltaCompress() {return deltaCompress;}
[ "public", "boolean", "isDeltaCompress", "(", ")", "{", "return", "deltaCompress", ";", "}" ]
public virtual bool IsDeltaCompress(){return deltaCompress;}
train
false
9,126
public CreateWorkGroupResult createWorkGroup(CreateWorkGroupRequest request) {request = beforeClientExecution(request);return executeCreateWorkGroup(request);}
[ "public", "CreateWorkGroupResult", "createWorkGroup", "(", "CreateWorkGroupRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeCreateWorkGroup", "(", "request", ")", ";", "}" ]
public virtual CreateWorkGroupResponse CreateWorkGroup(CreateWorkGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkGroupResponseUnmarshaller.Instance;return Invoke<CreateWorkGroupResponse>(request, options);}
train
true
9,127
public BatchDetectSyntaxResult batchDetectSyntax(BatchDetectSyntaxRequest request) {request = beforeClientExecution(request);return executeBatchDetectSyntax(request);}
[ "public", "BatchDetectSyntaxResult", "batchDetectSyntax", "(", "BatchDetectSyntaxRequest", "request", ")", "{", "request", "=", "beforeClientExecution", "(", "request", ")", ";", "return", "executeBatchDetectSyntax", "(", "request", ")", ";", "}" ]
public virtual BatchDetectSyntaxResponse BatchDetectSyntax(BatchDetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectSyntaxResponseUnmarshaller.Instance;return Invoke<BatchDetectSyntaxResponse>(request, options);}
train
true
9,128
public void removeManager() {remove1stProperty(PropertyIDMap.PID_MANAGER);}
[ "public", "void", "removeManager", "(", ")", "{", "remove1stProperty", "(", "PropertyIDMap", ".", "PID_MANAGER", ")", ";", "}" ]
public void RemoveManager(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_MANAGER);}
train
false
9,129
public Set keySet() {return Collections.unmodifiableSet(dictionary.values());}
[ "public", "Set", "keySet", "(", ")", "{", "return", "Collections", ".", "unmodifiableSet", "(", "dictionary", ".", "values", "(", ")", ")", ";", "}" ]
public ICollection KeySet(){return dictionaryNameToID.Keys;}
train
false
9,130
public long hash1(char carray[]) {final long p = 1099511628211L;long hash = 0xcbf29ce484222325L;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = (hash ^ (d & 0x00FF)) * p;hash = (hash ^ (d >> 8)) * p;}return hash;}
[ "public", "long", "hash1", "(", "char", "carray", "[", "]", ")", "{", "final", "long", "p", "=", "1099511628211L", ";", "long", "hash", "=", "0xcbf29ce484222325L", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "carray", ".", "length", ";", "i", "++", ")", "{", "char", "d", "=", "carray", "[", "i", "]", ";", "hash", "=", "(", "hash", "^", "(", "d", "&", "0x00FF", ")", ")", "*", "p", ";", "hash", "=", "(", "hash", "^", "(", "d", ">", ">", "8", ")", ")", "*", "p", ";", "}", "return", "hash", ";", "}" ]
public virtual long Hash1(char c){long p = 1099511628211L;long hash = unchecked((long)0xcbf29ce484222325L);hash = (hash ^ (c & 0x00FF)) * p;hash = (hash ^ (c >> 8)) * p;hash += hash << 13;hash ^= hash >> 7;hash += hash << 3;hash ^= hash >> 17;hash += hash << 5;return hash;}
train
false