id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
9,000 | public void getChars(int start, int end, char[] dst, int dstStart) {if (start > count || end > count || start > end) {throw startEndAndLength(start, end);}System.arraycopy(value, start, dst, dstStart, end - start);}
| public virtual void getChars(int start, int end, char[] dst, int dstStart){if (start > count || end > count || start > end){throw startEndAndLength(start, end);}System.Array.Copy(value, start, dst, dstStart, end - start);}
|
9,001 | public LongBuffer put(long[] src, int srcOffset, int longCount) {if (longCount > remaining()) {throw new BufferOverflowException();}System.arraycopy(src, srcOffset, backingArray, offset + position, longCount);position += longCount;return this;}
| public override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferOverflowException();}System.Array.Copy(src, srcOffset, backingArray, offset + _position, longCount);_position += longCount;return this;}
|
9,002 | public long getSourceSize() {return src.length;}
| public virtual long GetSourceSize(){return src.Length;}
|
9,003 | public void setID(String id) {if (id == null) {throw new NullPointerException();}ID = id;}
| public virtual void setID(string id){throw new System.NotImplementedException();}
|
9,004 | public GetCampaignVersionsResult getCampaignVersions(GetCampaignVersionsRequest request) {request = beforeClientExecution(request);return executeGetCampaignVersions(request);}
| public virtual GetCampaignVersionsResponse GetCampaignVersions(GetCampaignVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignVersionsResponseUnmarshaller.Instance;return Invoke<GetCampaignVersionsResponse>(request, options);}
|
9,005 | public long getTotalSLLLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_TotalLook;}return k;}
| public long getTotalSLLLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_TotalLook;}return k;}
|
9,006 | public static Row getRow(int rowIndex, Sheet sheet) {Row row = sheet.getRow(rowIndex);if (row == null) {row = sheet.createRow(rowIndex);}return row;}
| public static IRow GetRow(int rowIndex, ISheet sheet){IRow row = sheet.GetRow(rowIndex);if (row == null){row = sheet.CreateRow(rowIndex);}return row;}
|
9,007 | public void clear() {doc = null;analyzer = null;}
| public virtual void Clear(){doc = null;analyzer = null;}
|
9,008 | public KeyPairCredentials(String publicKeyId, String privateKeySecret) {if (publicKeyId == null || privateKeySecret == null) {throw new IllegalArgumentException("You must provide a valid pair of Public Key ID and Private Key Secret.");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}
| public KeyPairCredentials(string publicKeyId, string privateKeySecret){if (string.IsNullOrEmpty(publicKeyId) || string.IsNullOrEmpty(privateKeySecret)){throw new ArgumentNullException("You must provide a valid pair of Public Key ID and Private Key Secret.");}this.publicKeyId = publicKeyId;this.privateKeySecret = privateKeySecret;}
|
9,009 | public PredictionContext getParent(int index) {return parents[index];}
| public override PredictionContext GetParent(int index){return parents[index];}
|
9,010 | public synchronized StringBuffer append(String string) {append0(string);return this;}
| public java.lang.StringBuffer append(string @string){lock (this){append0(@string);return this;}}
|
9,011 | public void removeBuiltinRecord(byte name, int sheetIndex) {NameRecord record = getSpecificBuiltinRecord(name, sheetIndex);if (record != null) {_definedNames.remove(record);}}
| public void RemoveBuiltinRecord(byte name, int sheetIndex){NameRecord record = GetSpecificBuiltinRecord(name, sheetIndex);if (record != null){_definedNames.Remove(record);}}
|
9,012 | public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell) {if (!sfr.isInRange(firstCell.getRow(), firstCell.getCol())) {throw new IllegalArgumentException("First formula cell " + firstCell.formatAsString()+ " is not shared formula range " + sfr.getRange() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.getLastColumn() - sfr.getFirstColumn() + 1;int height = sfr.getLastRow() - sfr.getFirstRow() + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}
| public SharedFormulaGroup(SharedFormulaRecord sfr, CellReference firstCell){if (!sfr.IsInRange(firstCell.Row, firstCell.Col)){throw new ArgumentException("First formula cell " + firstCell.FormatAsString()+ " is not shared formula range " + sfr.Range.ToString() + ".");}_sfr = sfr;_firstCell = firstCell;int width = sfr.LastColumn - sfr.FirstColumn + 1;int height = sfr.LastRow - sfr.FirstRow + 1;_frAggs = new FormulaRecordAggregate[width * height];_numberOfFormulas = 0;}
|
9,013 | public void modifyFormatRun(short oldPos, short newLen) {int shift = 0;for(int i=0; i < _formats.length; i++) {CTFormat ctf = _formats[i];if (shift != 0) {ctf.setOffset(ctf.getOffset() + shift);} else if (oldPos == ctf.getOffset() && i < _formats.length - 1){CTFormat nextCTF = _formats[i + 1];shift = newLen - (nextCTF.getOffset() - ctf.getOffset());}}}
| public void ModifyFormatRun(short oldPos, short newLen){short shift = (short)0;for (int idx = 0; idx < m_formats.Count; idx++){CTFormat ctf = (CTFormat)m_formats[idx];if (shift != 0){ctf.Offset = ((short)(ctf.Offset + shift));}else if ((oldPos == ctf.Offset) && (idx < (m_formats.Count - 1))){CTFormat nextCTF = (CTFormat)m_formats[idx + 1];shift = (short)(newLen - (nextCTF.Offset - ctf.Offset));}}}
|
9,014 | public AddInstanceGroupsResult addInstanceGroups(AddInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeAddInstanceGroups(request);}
| public virtual AddInstanceGroupsResponse AddInstanceGroups(AddInstanceGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddInstanceGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddInstanceGroupsResponseUnmarshaller.Instance;return Invoke<AddInstanceGroupsResponse>(request, options);}
|
9,015 | public String getText() {if (getChildCount() == 0) {return "";}StringBuilder builder = new StringBuilder();for (int i = 0; i < getChildCount(); i++) {builder.append(getChild(i).getText());}return builder.toString();}
| public virtual string GetText(){if (ChildCount == 0){return string.Empty;}StringBuilder builder = new StringBuilder();for (int i = 0; i < ChildCount; i++){builder.Append(GetChild(i).GetText());}return builder.ToString();}
|
9,016 | public ListCodeRepositoriesResult listCodeRepositories(ListCodeRepositoriesRequest request) {request = beforeClientExecution(request);return executeListCodeRepositories(request);}
| public virtual ListCodeRepositoriesResponse ListCodeRepositories(ListCodeRepositoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListCodeRepositoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListCodeRepositoriesResponseUnmarshaller.Instance;return Invoke<ListCodeRepositoriesResponse>(request, options);}
|
9,017 | public LexerATNConfig(ATNState state,int alt,PredictionContext context){super(state, alt, context, SemanticContext.NONE);this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}
| public LexerATNConfig(ATNState state,int alt,PredictionContext context): base(state, alt, context) {this.passedThroughNonGreedyDecision = false;this.lexerActionExecutor = null;}
|
9,018 | public int serialize(int offset, byte [] data) {throw new RecordFormatException("Old Label Records are supported READ ONLY");}
| public int Serialize(int offset, byte[] data){throw new RecordFormatException("Old Label Records are supported READ ONLY");}
|
9,019 | public GetSmsChannelResult getSmsChannel(GetSmsChannelRequest request) {request = beforeClientExecution(request);return executeGetSmsChannel(request);}
| public virtual GetSmsChannelResponse GetSmsChannel(GetSmsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSmsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSmsChannelResponseUnmarshaller.Instance;return Invoke<GetSmsChannelResponse>(request, options);}
|
9,020 | public Placement(String availabilityZone) {setAvailabilityZone(availabilityZone);}
| public Placement(string availabilityZone){_availabilityZone = availabilityZone;}
|
9,021 | public ListStacksResult listStacks(ListStacksRequest request) {request = beforeClientExecution(request);return executeListStacks(request);}
| public virtual ListStacksResponse ListStacks(ListStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListStacksResponseUnmarshaller.Instance;return Invoke<ListStacksResponse>(request, options);}
|
9,022 | public ListFieldLevelEncryptionConfigsResult listFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request) {request = beforeClientExecution(request);return executeListFieldLevelEncryptionConfigs(request);}
| public virtual ListFieldLevelEncryptionConfigsResponse ListFieldLevelEncryptionConfigs(ListFieldLevelEncryptionConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFieldLevelEncryptionConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFieldLevelEncryptionConfigsResponseUnmarshaller.Instance;return Invoke<ListFieldLevelEncryptionConfigsResponse>(request, options);}
|
9,023 | public CloseInstancePublicPortsResult closeInstancePublicPorts(CloseInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executeCloseInstancePublicPorts(request);}
| public virtual CloseInstancePublicPortsResponse CloseInstancePublicPorts(CloseInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CloseInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = CloseInstancePublicPortsResponseUnmarshaller.Instance;return Invoke<CloseInstancePublicPortsResponse>(request, options);}
|
9,024 | public DeleteTransitGatewayRouteTableResult deleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRouteTable(request);}
| public virtual DeleteTransitGatewayRouteTableResponse DeleteTransitGatewayRouteTable(DeleteTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayRouteTableResponse>(request, options);}
|
9,025 | public TokenStream create(TokenStream input) {return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.getDefaultTable()));}
| public override TokenStream Create(TokenStream input){return new StempelFilter(input, new StempelStemmer(PolishAnalyzer.DefaultTable));}
|
9,026 | public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}
| public static double[] Grow(double[] array){return Grow(array, 1 + array.Length);}
|
9,027 | public DocFreqSorter(int maxDoc) {super(maxDoc / 64);this.tmpDocs = new int[maxDoc / 64];}
| public DocFreqSorter(int maxDoc): base(maxDoc / 64){this.tmpDocs = new int[maxDoc / 64];}
|
9,028 | 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));}
|
9,029 | 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);}}
|
9,030 | 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);}
|
9,031 | 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;}}
|
9,032 | public DeleteMessageBatchRequest(String queueUrl, java.util.List<DeleteMessageBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}
| public DeleteMessageBatchRequest(string queueUrl, List<DeleteMessageBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
|
9,033 | 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);}
|
9,034 | 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);}
|
9,035 | 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);}
|
9,036 | @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());}
|
9,037 | public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}
| public static byte[] Grow(byte[] array){return Grow(array, 1 + array.Length);}
|
9,038 | 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);}
|
9,039 | public synchronized String toString() {return super.toString();}
| public override string ToString(){lock (this){return base.ToString();}}
|
9,040 | public static int hashCode(Object o) {return (o == null) ? 0 : o.hashCode();}
| public static int hashCode(object o){return (o == null) ? 0 : o.GetHashCode();}
|
9,041 | 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);}
|
9,042 | public XORShift64Random(long seed) {x = seed == 0 ? 0xdeadbeef : seed;}
| public XORShift64Random(long seed){x = seed == 0 ? 0xdeadbeef : seed;}
|
9,043 | public HeaderFooterRecord(RecordInputStream in) {_rawData = in.readRemainder();}
| public HeaderFooterRecord(RecordInputStream in1){_rawData = in1.ReadRemainder();}
|
9,044 | 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;}
|
9,045 | 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;}
|
9,046 | public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16) {values[valuesOffset++] = (block >>> shift) & 65535;}}}
| public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 48; shift >= 0; shift -= 16){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 65535;}}}
|
9,047 | 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;}
|
9,048 | 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;}
|
9,049 | 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);}
|
9,050 | 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;}
|
9,051 | 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();}
|
9,052 | 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);}}
|
9,053 | 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);}
|
9,054 | 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());}
|
9,055 | 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;}}
|
9,056 | 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);}}
|
9,057 | 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];}
|
9,058 | 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);}
|
9,059 | 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);}
|
9,060 | 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);}
|
9,061 | 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);}
|
9,062 | public CharSequence getFirstPathElement() {return values.get(0).value;}
| public virtual string GetFirstPathElement(){return values[0].Value;}
|
9,063 | 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);}
|
9,064 | 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);}
|
9,065 | 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);}
|
9,066 | 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);}
|
9,067 | 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();}
|
9,068 | 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;}
|
9,069 | 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);}
|
9,070 | 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);}
|
9,071 | 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 + ")");}
|
9,072 | public SimpleQQParser(String qqName, String indexField) {this(new String[] { qqName }, indexField);}
| public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }
|
9,073 | 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!");}
|
9,074 | 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;}
|
9,075 | public Class<ConfigChangedListener> getListenerType() {return ConfigChangedListener.class;}
| public override Type GetListenerType(){return typeof(ConfigChangedListener);}
|
9,076 | 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);}
|
9,077 | 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);}
|
9,078 | public HSSFDataFormat createDataFormat() {return workbook.createDataFormat();}
| public NPOI.SS.UserModel.IDataFormat CreateDataFormat(){return dataFormat;}
|
9,079 | 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;}
|
9,080 | 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 = "";}}
|
9,081 | 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);}
|
9,082 | public StringCharacterIterator(String value) {string = value;start = offset = 0;end = string.length();}
| public StringCharacterIterator(string value){@string = value;start = offset = 0;end = @string.Length;}
|
9,083 | 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>();}
|
9,084 | public String getSignerVersion() {return null;}
| public override string GetSignerVersion(){return "1.0";}
|
9,085 | 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();}
|
9,086 | 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;}}
|
9,087 | @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);}}
|
9,088 | 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);}
|
9,089 | 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;}
|
9,090 | 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();}
|
9,091 | 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);}
|
9,092 | 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);}}
|
9,093 | public void push( TermInfo termInfo ){termList.push( termInfo );}
| public virtual void Push(TermInfo termInfo){termList.Insert(0, termInfo);}
|
9,094 | 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);}
|
9,095 | public String toFormulaString(){return ":";}
| public override String ToFormulaString(){return ":";}
|
9,096 | 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;}
|
9,097 | public void setCreationTime(long when) {encodeTS(P_CTIME, when);}
| public virtual void SetCreationTime(long when){EncodeTS(P_CTIME, when);}
|
9,098 | public static final RevFilter before(Date ts) {return before(ts.getTime());}
| public static RevFilter Before(long ts){return new CommitTimeRevFilterBefore(ts);}
|
9,099 | public void advertiseCapability(String name) {capablities.add(name);}
| public virtual void AdvertiseCapability(string name){capablities.AddItem(name);}
|