id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
4,800 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[ENDBLOCK]\n");buffer.append(" .rt =").append(HexDump.shortToHex(rt)).append('\n');buffer.append(" .grbitFrt =").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append(" .iObjectKind=").append(HexDump.shortToHex(iObjectKind)).append('\n');buffer.append(" .unused =").append(HexDump.toHex(unused)).append('\n');buffer.append("[/ENDBLOCK]\n");return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[ENDBLOCK]\n");buffer.Append(" .rt =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append(" .grbitFrt =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append(" .iObjectKind=").Append(HexDump.ShortToHex(iObjectKind)).Append('\n');buffer.Append(" .unused =").Append(HexDump.ToHex(unused)).Append('\n');buffer.Append("[/ENDBLOCK]\n");return buffer.ToString();}
|
4,801 | public int stem(char text[], int length, boolean stemDerivational) {flags = 0;numSyllables = 0;for (int i = 0; i < length; i++)if (isVowel(text[i]))numSyllables++;if (numSyllables > 2) length = removeParticle(text, length);if (numSyllables > 2) length = removePossessivePronoun(text, length);if (stemDerivational)length = stemDerivational(text, length);return length;}
| public virtual int Stem(char[] text, int length, bool stemDerivational){flags = 0;numSyllables = 0;for (int i = 0; i < length; i++){if (IsVowel(text[i])){numSyllables++;}}if (numSyllables > 2){length = RemoveParticle(text, length);}if (numSyllables > 2){length = RemovePossessivePronoun(text, length);}if (stemDerivational){length = StemDerivational(text, length);}return length;}
|
4,802 | public final long computeNorm(FieldInvertState state) {final int numTerms;if (state.getIndexOptions() == IndexOptions.DOCS && state.getIndexCreatedVersionMajor() >= 8) {numTerms = state.getUniqueTermCount();} else if (discountOverlaps) {numTerms = state.getLength() - state.getNumOverlap();} else {numTerms = state.getLength();}return SmallFloat.intToByte4(numTerms);}
| public override long ComputeNorm(FieldInvertState state){float numTerms;if (discountOverlaps){numTerms = state.Length - state.NumOverlap;}else{numTerms = state.Length;}return EncodeNormValue(state.Boost, numTerms);}
|
4,803 | public OpenNLPChunkerFilter create(TokenStream in) {try {NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null) {chunkerOp = OpenNLPOpsFactory.getChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(in, chunkerOp);} catch (IOException e) {throw new IllegalArgumentException(e);}}
| public override TokenStream Create(TokenStream input){try{NLPChunkerOp chunkerOp = null;if (chunkerModelFile != null){chunkerOp = OpenNLPOpsFactory.GetChunker(chunkerModelFile);}return new OpenNLPChunkerFilter(input, chunkerOp);}catch (IOException e){throw new ArgumentException(e.ToString(), e);}}
|
4,804 | public List<PackedObjectInfo> getSortedObjectList(Comparator<PackedObjectInfo> cmp) {Arrays.sort(entries, 0, entryCount, cmp);List<PackedObjectInfo> list = Arrays.asList(entries);if (entryCount < entries.length)list = list.subList(0, entryCount);return list;}
| public virtual IList<PackedObjectInfo> GetSortedObjectList(IComparer<PackedObjectInfo> cmp){Arrays.Sort(entries, 0, entryCount, cmp);IList<PackedObjectInfo> list = Arrays.AsList(entries);if (entryCount < entries.Length){list = list.SubList(0, entryCount);}return list;}
|
4,805 | public String getSecurityToken() {AlibabaCloudCredentials credentials = getCredentials();if (credentials instanceof BasicSessionCredentials) {return ((BasicSessionCredentials) credentials).getSessionToken();} else {return null;}}
| public string GetSecurityToken(){var credentials = GetCredentials();var sessionCredentials = credentials as BasicSessionCredentials;return sessionCredentials != null ? sessionCredentials.GetSessionToken() : null;}
|
4,806 | public StopAutoMLJobResult stopAutoMLJob(StopAutoMLJobRequest request) {request = beforeClientExecution(request);return executeStopAutoMLJob(request);}
| public virtual StopAutoMLJobResponse StopAutoMLJob(StopAutoMLJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopAutoMLJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopAutoMLJobResponseUnmarshaller.Instance;return Invoke<StopAutoMLJobResponse>(request, options);}
|
4,807 | public int findStartOffset(StringBuilder buffer, int start) {if( start > buffer.length() || start < 1 ) return start;bi.setText(buffer.substring(0, start));bi.last();return bi.previous();}
| public virtual int FindStartOffset(StringBuilder buffer, int start){if (start > buffer.Length || start < 1) return start;bi.SetText(buffer.ToString(0, start - 0));bi.Last();return bi.Previous();}
|
4,808 | public StartImageBuilderResult startImageBuilder(StartImageBuilderRequest request) {request = beforeClientExecution(request);return executeStartImageBuilder(request);}
| public virtual StartImageBuilderResponse StartImageBuilder(StartImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StartImageBuilderResponseUnmarshaller.Instance;return Invoke<StartImageBuilderResponse>(request, options);}
|
4,809 | public double readDouble() {long valueLongBits = readLong();double result = Double.longBitsToDouble(valueLongBits);if (Double.isNaN(result)) {throw new RuntimeException("Did not expect to read NaN");}return result;}
| public double ReadDouble(){long valueLongBits = ReadLong();double result = BitConverter.Int64BitsToDouble(valueLongBits);if (Double.IsNaN(result)){throw new Exception("Did not expect to read NaN"); }return result;}
|
4,810 | public double readDouble(){return _in.readDouble();}
| public double ReadDouble(){return _in.ReadDouble();}
|
4,811 | public int compareTo(Cell other) {return Double.compare(distanceSquared, other.distanceSquared);}
| public virtual int CompareTo(Cell o){return string.CompareOrdinal(TokenString, o.TokenString);}
|
4,812 | public GetCampaignDateRangeKpiResult getCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetCampaignDateRangeKpi(request);}
| public virtual GetCampaignDateRangeKpiResponse GetCampaignDateRangeKpi(GetCampaignDateRangeKpiRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCampaignDateRangeKpiRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCampaignDateRangeKpiResponseUnmarshaller.Instance;return Invoke<GetCampaignDateRangeKpiResponse>(request, options);}
|
4,813 | public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName()).append(" [CRN");sb.append(" rowIx=").append(field_3_row_index);sb.append(" firstColIx=").append(field_2_first_column_index);sb.append(" lastColIx=").append(field_1_last_column_index);sb.append("]");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(" [CRN");sb.Append(" rowIx=").Append(field_3_row_index);sb.Append(" firstColIx=").Append(field_2_first_column_index);sb.Append(" lastColIx=").Append(field_1_last_column_index);sb.Append("]");return sb.ToString();}
|
4,814 | public void add(double value) {ensureCapacity(_count + 1);_array[_count] = value;_count++;}
| public void Add(double value){EnsureCapacity(_Count + 1);_array[_Count] = value;_Count++;}
|
4,815 | public String getSheetName(int sheetIndex) {return getSheetEvaluator(sheetIndex).getSheetName();}
| public String GetSheetName(int sheetIndex){return GetSheetEvaluator(sheetIndex).SheetName;}
|
4,816 | public TransferDomainToAnotherAwsAccountResult transferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request) {request = beforeClientExecution(request);return executeTransferDomainToAnotherAwsAccount(request);}
| public virtual TransferDomainToAnotherAwsAccountResponse TransferDomainToAnotherAwsAccount(TransferDomainToAnotherAwsAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = TransferDomainToAnotherAwsAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = TransferDomainToAnotherAwsAccountResponseUnmarshaller.Instance;return Invoke<TransferDomainToAnotherAwsAccountResponse>(request, options);}
|
4,817 | public final boolean weakCompareAndSet(V expect, V update) {return unsafe.compareAndSwapObject(this, valueOffset, expect, update);}
| public bool weakCompareAndSet(V expect, V update){return compareAndSet(expect, update);}
|
4,818 | public void setResult(ReceiveCommand.Result status, String msg) {result = decode(status);super.setResult(status, msg);}
| public override void SetResult(ReceiveCommand.Result status, string msg){this._enclosing.result = this.Decode(status);base.SetResult(status, msg);}
|
4,819 | public String toString() {return "skip";}
| public override string ToString(){return "skip";}
|
4,820 | public List<String> getModifiedFiles() {return modifiedFiles;}
| public virtual IList<string> GetModifiedFiles(){return modifiedFiles;}
|
4,821 | public final void serialize(LittleEndianOutput out) {out.writeShort(getRow());out.writeShort(getColumn());out.writeShort(getXFIndex());serializeValue(out);}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Row);out1.WriteShort(Column);out1.WriteShort(XFIndex);SerializeValue(out1);}
|
4,822 | public String toString() {return "NotIgnored(" + index + ")";}
| public override string ToString(){return "NotIgnored(" + index + ")";}
|
4,823 | public DescribeDBClusterParametersResult describeDBClusterParameters(DescribeDBClusterParametersRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameters(request);}
| public virtual DescribeDBClusterParametersResponse DescribeDBClusterParameters(DescribeDBClusterParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParametersResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterParametersResponse>(request, options);}
|
4,824 | public CellRangeAddress copy() {return new CellRangeAddress(getFirstRow(), getLastRow(), getFirstColumn(), getLastColumn());}
| public CellRangeAddress Copy(){return new CellRangeAddress(FirstRow, LastRow, FirstColumn, LastColumn);}
|
4,825 | public final boolean hasAny(RevFlagSet set) {return (flags & set.mask) != 0;}
| public bool HasAny(RevFlagSet set){return (flags & set.mask) != 0;}
|
4,826 | public GetPolicyResult getPolicy(GetPolicyRequest request) {request = beforeClientExecution(request);return executeGetPolicy(request);}
| public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPolicyResponseUnmarshaller.Instance;return Invoke<GetPolicyResponse>(request, options);}
|
4,827 | public BookSheetKey(int bookIndex, int sheetIndex) {_bookIndex = bookIndex;_sheetIndex = sheetIndex;}
| public BookSheetKey(int bookIndex, int sheetIndex){_bookIndex = bookIndex;_sheetIndex = sheetIndex;}
|
4,828 | public void setRate(int rate, boolean perMin) {this.rate = rate;this.perMin = perMin;setSequenceName();}
| public virtual void SetRate(int rate, bool perMin){this.rate = rate;this.perMin = perMin;SetSequenceName();}
|
4,829 | public DescribeVpcEndpointConnectionsResult describeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpointConnections(request);}
| public virtual DescribeVpcEndpointConnectionsResponse DescribeVpcEndpointConnections(DescribeVpcEndpointConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointConnectionsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointConnectionsResponse>(request, options);}
|
4,830 | public GetHostedZoneResult getHostedZone(GetHostedZoneRequest request) {request = beforeClientExecution(request);return executeGetHostedZone(request);}
| public virtual GetHostedZoneResponse GetHostedZone(GetHostedZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostedZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostedZoneResponseUnmarshaller.Instance;return Invoke<GetHostedZoneResponse>(request, options);}
|
4,831 | public ChangeBatch(java.util.List<Change> changes) {setChanges(changes);}
| public ChangeBatch(List<Change> changes){_changes = changes;}
|
4,832 | public String[] getExternalBookAndSheetName(int extRefIndex) {int ebIx = _externSheetRecord.getExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].getExternalBookRecord();if (!ebr.isExternalReferences()) {return null;}int shIx1 = _externSheetRecord.getFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.getLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0) {firstSheetName = ebr.getSheetNames()[shIx1];}if (shIx2 >= 0) {lastSheetName = ebr.getSheetNames()[shIx2];}if (shIx1 == shIx2) {return new String[]{ebr.getURL(),firstSheetName};} else {return new String[]{ebr.getURL(),firstSheetName,lastSheetName};}}
| public String[] GetExternalBookAndSheetName(int extRefIndex){int ebIx = _externSheetRecord.GetExtbookIndexFromRefIndex(extRefIndex);SupBookRecord ebr = _externalBookBlocks[ebIx].GetExternalBookRecord();if (!ebr.IsExternalReferences){return null;}int shIx1 = _externSheetRecord.GetFirstSheetIndexFromRefIndex(extRefIndex);int shIx2 = _externSheetRecord.GetLastSheetIndexFromRefIndex(extRefIndex);String firstSheetName = null;String lastSheetName = null;if (shIx1 >= 0){firstSheetName = ebr.SheetNames[shIx1];}if (shIx2 >= 0){lastSheetName = ebr.SheetNames[shIx2];}if (shIx1 == shIx2){return new String[] {ebr.URL,firstSheetName};}else{return new String[] {ebr.URL,firstSheetName,lastSheetName};}}
|
4,833 | public ChartEndBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();if(in.available() == 0) {unused = new byte[0];} else {unused = new byte[6];in.readFully(unused);}}
| public ChartEndBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();if(in1.Available() == 0) {unused = new byte[0];} else {unused = new byte[6];in1.ReadFully(unused);}}
|
4,834 | public CreateQueueResult createQueue(CreateQueueRequest request) {request = beforeClientExecution(request);return executeCreateQueue(request);}
| public virtual CreateQueueResponse CreateQueue(CreateQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueueResponseUnmarshaller.Instance;return Invoke<CreateQueueResponse>(request, options);}
|
4,835 | public void setMaxDocCharsToAnalyze(int maxDocCharsToAnalyze) {this.maxCharsToAnalyze = maxDocCharsToAnalyze;}
| public virtual void SetMaxDocCharsToAnalyze(int maxDocCharsToAnalyze){this.maxCharsToAnalyze = maxDocCharsToAnalyze;}
|
4,836 | public CreateCodeRepositoryResult createCodeRepository(CreateCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateCodeRepository(request);}
| public virtual CreateCodeRepositoryResponse CreateCodeRepository(CreateCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCodeRepositoryResponseUnmarshaller.Instance;return Invoke<CreateCodeRepositoryResponse>(request, options);}
|
4,837 | public static String getLastCommitSegmentsFileName(String[] files) {return IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS,"",getLastCommitGeneration(files));}
| public static string GetLastCommitSegmentsFileName(string[] files){return IndexFileNames.FileNameFromGeneration(IndexFileNames.SEGMENTS, "", GetLastCommitGeneration(files));}
|
4,838 | public final CharBuffer put(char[] src) {return put(src, 0, src.length);}
| public java.nio.CharBuffer put(char[] src){return put(src, 0, src.Length);}
|
4,839 | public Certificate modifyCertificates(ModifyCertificatesRequest request) {request = beforeClientExecution(request);return executeModifyCertificates(request);}
| public virtual ModifyCertificatesResponse ModifyCertificates(ModifyCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyCertificatesResponseUnmarshaller.Instance;return Invoke<ModifyCertificatesResponse>(request, options);}
|
4,840 | public void updateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value) {ForkedEvaluationCell cell = _sewb.getOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.setValue(value);_evaluator.notifyUpdateCell(cell);}
| public void UpdateCell(String sheetName, int rowIndex, int columnIndex, ValueEval value){ForkedEvaluationCell cell = _sewb.GetOrCreateUpdatableCell(sheetName, rowIndex, columnIndex);cell.SetValue(value);_evaluator.NotifyUpdateCell(cell);}
|
4,841 | public DisassociateMemberAccountResult disassociateMemberAccount(DisassociateMemberAccountRequest request) {request = beforeClientExecution(request);return executeDisassociateMemberAccount(request);}
| public virtual DisassociateMemberAccountResponse DisassociateMemberAccount(DisassociateMemberAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMemberAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMemberAccountResponseUnmarshaller.Instance;return Invoke<DisassociateMemberAccountResponse>(request, options);}
|
4,842 | public boolean run(byte[] s, int offset, int length) {int p = 0;int l = offset + length;for (int i = offset; i < l; i++) {p = step(p, s[i] & 0xFF);if (p == -1) return false;}return accept.get(p);}
| public virtual bool Run(byte[] s, int offset, int length){var p = m_initial;var l = offset + length;for (int i = offset; i < l; i++){p = Step(p, ((sbyte)s[i]) & 0xFF);if (p == -1){return false;}}return m_accept[p];}
|
4,843 | public DeleteTrafficPolicyResult deleteTrafficPolicy(DeleteTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficPolicy(request);}
| public virtual DeleteTrafficPolicyResponse DeleteTrafficPolicy(DeleteTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficPolicyResponseUnmarshaller.Instance;return Invoke<DeleteTrafficPolicyResponse>(request, options);}
|
4,844 | public static PackIndex read(InputStream fd) throws IOException,CorruptObjectException {final byte[] hdr = new byte[8];IO.readFully(fd, hdr, 0, hdr.length);if (isTOC(hdr)) {final int v = NB.decodeInt32(hdr, 4);switch (v) {case 2:return new PackIndexV2(fd);default:throw new UnsupportedPackIndexVersionException(v);}}return new PackIndexV1(fd, hdr);}
| public static PackIndex Read(InputStream fd){byte[] hdr = new byte[8];IOUtil.ReadFully(fd, hdr, 0, hdr.Length);if (IsTOC(hdr)){int v = NB.DecodeInt32(hdr, 4);switch (v){case 2:{return new PackIndexV2(fd);}default:{throw new IOException(MessageFormat.Format(JGitText.Get().unsupportedPackIndexVersion, Sharpen.Extensions.ValueOf(v)));}}}return new PackIndexV1(fd, hdr);}
|
4,845 | public double[] toArray() {if (_count < 1) {return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_count];System.arraycopy(_array, 0, result, 0, _count);return result;}
| public double[] ToArray(){if (_Count < 1){return EMPTY_DOUBLE_ARRAY;}double[] result = new double[_Count];Array.Copy(_array, 0, result, 0, _Count);return result;}
|
4,846 | public GetHostReservationPurchasePreviewResult getHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request) {request = beforeClientExecution(request);return executeGetHostReservationPurchasePreview(request);}
| public virtual GetHostReservationPurchasePreviewResponse GetHostReservationPurchasePreview(GetHostReservationPurchasePreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHostReservationPurchasePreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHostReservationPurchasePreviewResponseUnmarshaller.Instance;return Invoke<GetHostReservationPurchasePreviewResponse>(request, options);}
|
4,847 | public CustomAvailabilityZone createCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request) {request = beforeClientExecution(request);return executeCreateCustomAvailabilityZone(request);}
| public virtual CreateCustomAvailabilityZoneResponse CreateCustomAvailabilityZone(CreateCustomAvailabilityZoneRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCustomAvailabilityZoneRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCustomAvailabilityZoneResponseUnmarshaller.Instance;return Invoke<CreateCustomAvailabilityZoneResponse>(request, options);}
|
4,848 | public EvaluationTracker(EvaluationCache cache) {_cache = cache;_evaluationFrames = new ArrayList<>();_currentlyEvaluatingCells = new HashSet<>();}
| public EvaluationTracker(EvaluationCache cache){_cache = cache;_evaluationFrames = new ArrayList();_currentlyEvaluatingCells = new ArrayList();}
|
4,849 | public String toString() {return format(false, false);}
| public override string ToString(){return Format(false, false);}
|
4,850 | public AcceptQualificationRequestResult acceptQualificationRequest(AcceptQualificationRequestRequest request) {request = beforeClientExecution(request);return executeAcceptQualificationRequest(request);}
| public virtual AcceptQualificationRequestResponse AcceptQualificationRequest(AcceptQualificationRequestRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptQualificationRequestRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptQualificationRequestResponseUnmarshaller.Instance;return Invoke<AcceptQualificationRequestResponse>(request, options);}
|
4,851 | public boolean markSupported() {return false;}
| public override bool markSupported(){return false;}
|
4,852 | public StringBuffer appendTail(StringBuffer buffer) {if (appendPos < regionEnd) {buffer.append(input.substring(appendPos, regionEnd));}return buffer;}
| public java.lang.StringBuffer appendTail(java.lang.StringBuffer buffer){if (appendPos < _regionEnd){buffer.append(Sharpen.StringHelper.Substring(input, appendPos, _regionEnd));}return buffer;}
|
4,853 | public String getSignificantDecimalDigits() {return Long.toString(_wholePart);}
| public String GetSignificantDecimalDigits(){return _wholePart.ToString(CultureInfo.InvariantCulture);}
|
4,854 | public void setVerticalBorder(boolean value){field_1_options = verticalBorder.setShortBoolean(field_1_options, value);}
| public void SetVerticalBorder(bool value){field_1_options = verticalBorder.SetShortBoolean(field_1_options, value);}
|
4,855 | public CRNRecord(RecordInputStream in) {field_1_last_column_index = in.readUByte();field_2_first_column_index = in.readUByte();field_3_row_index = in.readShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.parse(in, nValues);}
| public CRNRecord(RecordInputStream in1){field_1_last_column_index = in1.ReadByte() & 0x00FF;field_2_first_column_index = in1.ReadByte() & 0x00FF;field_3_row_index = in1.ReadShort();int nValues = field_1_last_column_index - field_2_first_column_index + 1;field_4_constant_values = ConstantValueParser.Parse(in1, nValues);}
|
4,856 | public DBSecurityGroup revokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeDBSecurityGroupIngress(request);}
| public virtual RevokeDBSecurityGroupIngressResponse RevokeDBSecurityGroupIngress(RevokeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeDBSecurityGroupIngressResponse>(request, options);}
|
4,857 | public CharBlockArray append(char[] chars, int start, int length) {int offset = start;int remain = length;while (remain > 0) {if (this.current.length == this.blockSize) {addBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy) {toCopy = remainingInBlock;}System.arraycopy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}
| public virtual CharBlockArray Append(char[] chars, int start, int length){int offset = start;int remain = length;while (remain > 0){if (this.current.length == this.blockSize){AddBlock();}int toCopy = remain;int remainingInBlock = this.blockSize - this.current.length;if (remainingInBlock < toCopy){toCopy = remainingInBlock;}Array.Copy(chars, offset, this.current.chars, this.current.length, toCopy);offset += toCopy;remain -= toCopy;this.current.length += toCopy;}this.length += length;return this;}
|
4,858 | public String toString() {return toString(null, true);}
| public override String ToString(){return ToString(null, true);}
|
4,859 | public int doLogic() throws Exception {try {Locale locale = getRunData().getLocale();if (locale == null) throw new RuntimeException("Locale must be set with the NewLocale task!");Analyzer analyzer = createAnalyzer(locale, impl);getRunData().setAnalyzer(analyzer);System.out.println("Changed Analyzer to: "+ analyzer.getClass().getName() + "(" + locale + ")");} catch (Exception e) {throw new RuntimeException("Error creating Analyzer: impl=" + impl, e);}return 1;}
| public override int DoLogic(){try{CultureInfo locale = RunData.Locale;if (locale == null) throw new Exception("Locale must be set with the NewLocale task!");Analyzer analyzer = CreateAnalyzer(locale, impl);RunData.Analyzer = analyzer;Console.WriteLine("Changed Analyzer to: "+ analyzer.GetType().Name + "(" + locale + ")");}catch (Exception e){throw new Exception("Error creating Analyzer: impl=" + impl, e);}return 1;}
|
4,860 | public final short get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}
| public sealed override short get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}
|
4,861 | public static String toHex(final short[] value){StringBuilder retVal = new StringBuilder();retVal.append('[');for(int x = 0; x < value.length; x++){if (x>0) {retVal.append(", ");}retVal.append(toHex(value[x]));}retVal.append(']');return retVal.toString();}
| public static string ToHex(short[] value){StringBuilder buffer = new StringBuilder();buffer.Append('[');for (int i = 0; i < value.Length; i++){if (i > 0){buffer.Append(", ");}buffer.Append(ToHex(value[i]));}buffer.Append(']');return buffer.ToString();}
|
4,862 | public ListIPSetsResult listIPSets(ListIPSetsRequest request) {request = beforeClientExecution(request);return executeListIPSets(request);}
| public virtual ListIPSetsResponse ListIPSets(ListIPSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIPSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIPSetsResponseUnmarshaller.Instance;return Invoke<ListIPSetsResponse>(request, options);}
|
4,863 | public int getLevelForDistance(double dist) {if (dist == 0){return maxLevels;}int level = S2Projections.MAX_WIDTH.getMinLevel(dist * DistanceUtils.DEGREES_TO_RADIANS);int roundLevel = level % arity != 0 ? 1 : 0;level = level/arity + roundLevel;return Math.min(maxLevels, level + 1);}
| public override int GetLevelForDistance(double dist){if (dist == 0){return m_maxLevels;}for (int i = 0; i < m_maxLevels - 1; i++){if (dist > levelW[i] && dist > levelH[i]){return i + 1;}}return m_maxLevels;}
|
4,864 | public IndexableField[] getFields(String name) {List<IndexableField> result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name)) {result.add(field);}}return result.toArray(new IndexableField[result.size()]);}
| public IIndexableField[] GetFields(string name){var result = new List<IIndexableField>();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal)){result.Add(field);}}return result.ToArray();}
|
4,865 | public GetTrafficPolicyResult getTrafficPolicy(GetTrafficPolicyRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicy(request);}
| public virtual GetTrafficPolicyResponse GetTrafficPolicy(GetTrafficPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyResponse>(request, options);}
|
4,866 | public String name() {ensureId();return idBuffer.name();}
| public virtual string Name(){EnsureId();return idBuffer.Name;}
|
4,867 | public DeleteExperimentResult deleteExperiment(DeleteExperimentRequest request) {request = beforeClientExecution(request);return executeDeleteExperiment(request);}
| public virtual DeleteExperimentResponse DeleteExperiment(DeleteExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteExperimentResponseUnmarshaller.Instance;return Invoke<DeleteExperimentResponse>(request, options);}
|
4,868 | public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}
| public static int[] Grow(int[] array){return Grow(array, 1 + array.Length);}
|
4,869 | public void serialize(LittleEndianOutput out) {out.writeShort(getReadOnly());out.writeShort(getPassword());out.writeShort(field_3_username_value.length());if(field_3_username_value.length() > 0) {out.writeByte(field_3_username_unicode_options);StringUtil.putCompressedUnicode(getUsername(), out);}}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(ReadOnly);out1.WriteShort(Password);out1.WriteShort(field_3_username_value.Length);if (field_3_username_value.Length > 0){out1.WriteByte(field_3_username_unicode_options);StringUtil.PutCompressedUnicode(Username, out1);}}
|
4,870 | public BulgarianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public BulgarianStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
4,871 | public GetMirrorListRequest() {super("cr", "2016-06-07", "GetMirrorList", "cr");setUriPattern("/mirrors");setMethod(MethodType.GET);}
| public GetMirrorListRequest(): base("cr", "2016-06-07", "GetMirrorList", "cr", "openAPI"){UriPattern = "/mirrors";Method = MethodType.GET;}
|
4,872 | public DescribeDomainEndpointOptionsResult describeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeDomainEndpointOptions(request);}
| public virtual DescribeDomainEndpointOptionsResponse DescribeDomainEndpointOptions(DescribeDomainEndpointOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDomainEndpointOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDomainEndpointOptionsResponseUnmarshaller.Instance;return Invoke<DescribeDomainEndpointOptionsResponse>(request, options);}
|
4,873 | public CommonToken(Pair<TokenSource, CharStream> source, int type, int channel, int start, int stop) {this.source = source;this.type = type;this.channel = channel;this.start = start;this.stop = stop;if (source.a != null) {this.line = source.a.getLine();this.charPositionInLine = source.a.getCharPositionInLine();}}
| public CommonToken(Tuple<ITokenSource, ICharStream> source, int type, int channel, int start, int stop){this.source = source;this._type = type;this._channel = channel;this.start = start;this.stop = stop;if (source.Item1 != null){this._line = source.Item1.Line;this.charPositionInLine = source.Item1.Column;}}
|
4,874 | public boolean get(URIish uri, CredentialItem... items)throws UnsupportedCredentialItem {for (CredentialItem i : items) {if (i instanceof CredentialItem.Username) {((CredentialItem.Username) i).setValue(username);continue;}if (i instanceof CredentialItem.Password) {((CredentialItem.Password) i).setValue(password);continue;}if (i instanceof CredentialItem.StringType) {if (i.getPromptText().equals("Password: ")) { ((CredentialItem.StringType) i).setValue(new String(password));continue;}}throw new UnsupportedCredentialItem(uri, i.getClass().getName()+ ":" + i.getPromptText()); }return true;}
| public override bool Get(URIish uri, params CredentialItem[] items){foreach (CredentialItem i in items){if (i is CredentialItem.Username){((CredentialItem.Username)i).SetValue(username);continue;}if (i is CredentialItem.Password){((CredentialItem.Password)i).SetValue(password);continue;}if (i is CredentialItem.StringType){if (i.GetPromptText().Equals("Password: ")){((CredentialItem.StringType)i).SetValue(new string(password));continue;}}throw new UnsupportedCredentialItem(uri, i.GetType().FullName + ":" + i.GetPromptText());}return true;}
|
4,875 | public boolean get(String name, boolean dflt) {boolean vals[] = (boolean[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, "" + dflt);if (sval.indexOf(":") < 0) {return Boolean.valueOf(sval).booleanValue();}int k = sval.indexOf(":");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToBooleanArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}
| public virtual double Get(string name, double dflt){double[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (double[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt.ToString(CultureInfo.InvariantCulture);}if (sval.IndexOf(':') < 0){return double.Parse(sval, CultureInfo.InvariantCulture);}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToDoubleArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
|
4,876 | public UpdateDocumentationVersionResult updateDocumentationVersion(UpdateDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentationVersion(request);}
| public virtual UpdateDocumentationVersionResponse UpdateDocumentationVersion(UpdateDocumentationVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentationVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentationVersionResponseUnmarshaller.Instance;return Invoke<UpdateDocumentationVersionResponse>(request, options);}
|
4,877 | public DeleteApplicationInputProcessingConfigurationResult deleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationInputProcessingConfiguration(request);}
| public virtual DeleteApplicationInputProcessingConfigurationResponse DeleteApplicationInputProcessingConfiguration(DeleteApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteApplicationInputProcessingConfigurationResponse>(request, options);}
|
4,878 | public PurchaseScheduledInstancesResult purchaseScheduledInstances(PurchaseScheduledInstancesRequest request) {request = beforeClientExecution(request);return executePurchaseScheduledInstances(request);}
| public virtual PurchaseScheduledInstancesResponse PurchaseScheduledInstances(PurchaseScheduledInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseScheduledInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseScheduledInstancesResponseUnmarshaller.Instance;return Invoke<PurchaseScheduledInstancesResponse>(request, options);}
|
4,879 | public String getHost() {return host;}
| public virtual string GetHost(){return host;}
|
4,880 | public DeleteNetworkProfileResult deleteNetworkProfile(DeleteNetworkProfileRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkProfile(request);}
| public virtual DeleteNetworkProfileResponse DeleteNetworkProfile(DeleteNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkProfileResponseUnmarshaller.Instance;return Invoke<DeleteNetworkProfileResponse>(request, options);}
|
4,881 | public ListSchemasResult listSchemas(ListSchemasRequest request) {request = beforeClientExecution(request);return executeListSchemas(request);}
| public virtual ListSchemasResponse ListSchemas(ListSchemasRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSchemasRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSchemasResponseUnmarshaller.Instance;return Invoke<ListSchemasResponse>(request, options);}
|
4,882 | public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_first_row);out.writeShort(field_2_first_col);}
| public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_first_row);out1.WriteShort(field_2_first_col);}
|
4,883 | public ByteSliceWriter(ByteBlockPool pool) {this.pool = pool;}
| public ByteSliceWriter(ByteBlockPool pool){this.pool = pool;}
|
4,884 | public void replace(int start, int limit, char[] text, int charsStart,int charsLen) {final int newLength = shiftForReplace(start, limit, charsLen);System.arraycopy(text, charsStart, buffer, start, charsLen);token.setLength(length = newLength);}
| public void Replace(int start, int length, char[] text, int charsStart,int charsLen){int newLength = ShiftForReplace(start, length + start, charsLen); System.Array.Copy(text, charsStart, buffer, start, charsLen);token.Length = (this.length = newLength);}
|
4,885 | public synchronized void getChars(int start, int end, char[] buffer, int idx) {super.getChars(start, end, buffer, idx);}
| public override void getChars(int start, int end, char[] buffer, int idx){lock (this){base.getChars(start, end, buffer, idx);}}
|
4,886 | public RestoreAddressToClassicResult restoreAddressToClassic(RestoreAddressToClassicRequest request) {request = beforeClientExecution(request);return executeRestoreAddressToClassic(request);}
| public virtual RestoreAddressToClassicResponse RestoreAddressToClassic(RestoreAddressToClassicRequest request){var options = new InvokeOptions();options.RequestMarshaller = RestoreAddressToClassicRequestMarshaller.Instance;options.ResponseUnmarshaller = RestoreAddressToClassicResponseUnmarshaller.Instance;return Invoke<RestoreAddressToClassicResponse>(request, options);}
|
4,887 | public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFFL) << 8) | (blocks[blocksOffset++] & 0xFFL);}}
| public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = ((blocks[blocksOffset++] & 0xFFL) << 8) | (blocks[blocksOffset++] & 0xFFL);}}
|
4,888 | public CreateNamespaceRequest() {super("cr", "2016-06-07", "CreateNamespace", "cr");setUriPattern("/namespace");setMethod(MethodType.PUT);}
| public CreateNamespaceRequest(): base("cr", "2016-06-07", "CreateNamespace", "cr", "openAPI"){UriPattern = "/namespace";Method = MethodType.PUT;}
|
4,889 | public ShortBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
| public override java.nio.ShortBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
|
4,890 | public GetEventsConfigurationResult getEventsConfiguration(GetEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeGetEventsConfiguration(request);}
| public virtual GetEventsConfigurationResponse GetEventsConfiguration(GetEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEventsConfigurationResponseUnmarshaller.Instance;return Invoke<GetEventsConfigurationResponse>(request, options);}
|
4,891 | public String toString() {return "docFreq=" + docFreq + " totalTermFreq=" + totalTermFreq + " termBlockOrd=" + termBlockOrd + " blockFP=" + blockFilePointer;}
| public override string ToString(){return "docFreq=" + DocFreq + " totalTermFreq=" + TotalTermFreq + " termBlockOrd=" + TermBlockOrd + " blockFP=" + BlockFilePointer;}
|
4,892 | public EstimateTemplateCostResult estimateTemplateCost(EstimateTemplateCostRequest request) {request = beforeClientExecution(request);return executeEstimateTemplateCost(request);}
| public virtual EstimateTemplateCostResponse EstimateTemplateCost(EstimateTemplateCostRequest request){var options = new InvokeOptions();options.RequestMarshaller = EstimateTemplateCostRequestMarshaller.Instance;options.ResponseUnmarshaller = EstimateTemplateCostResponseUnmarshaller.Instance;return Invoke<EstimateTemplateCostResponse>(request, options);}
|
4,893 | public TreeFilter clone() {return new Binary(a.clone(), b.clone());}
| public override TreeFilter Clone(){return new OrTreeFilter.Binary(a.Clone(), b.Clone());}
|
4,894 | public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 1:return evaluate(srcRowIndex, srcColumnIndex, args[0]);case 0:return new NumberEval(srcColumnIndex+1);}return ErrorEval.VALUE_INVALID;}
| public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int rnum;if (arg0 is AreaEval){rnum = ((AreaEval)arg0).FirstColumn;}else if (arg0 is RefEval){rnum = ((RefEval)arg0).Column;}else{return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}
|
4,895 | public ByteOrder order() {return ByteOrder.nativeOrder();}
| public override java.nio.ByteOrder order(){return java.nio.ByteOrder.nativeOrder();}
|
4,896 | public void insert(char[] key, int start, char val) {int len = strlen(key) + 1;if (freenode + len > eq.length) {redimNodeArrays(eq.length + BLOCK_SIZE);}root = insert(root, key, start, val);}
| public virtual void Insert(char[] key, int start, char val){int len = StrLen(key) + 1;if (m_freenode + len > m_eq.Length){RedimNodeArrays(m_eq.Length + BLOCK_SIZE);}m_root = Insert(m_root, key, start, val);}
|
4,897 | public final DFAState getPrecedenceStartState(int precedence) {if (!isPrecedenceDfa()) {throw new IllegalStateException("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0 || precedence >= s0.edges.length) {return null;}return s0.edges[precedence];}
| public DFAState GetPrecedenceStartState(int precedence){if (!IsPrecedenceDfa){throw new Exception("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0 || precedence >= s0.edges.Length){return null;}return s0.edges[precedence];}
|
4,898 | public SetActiveReceiptRuleSetResult setActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeSetActiveReceiptRuleSet(request);}
| public virtual SetActiveReceiptRuleSetResponse SetActiveReceiptRuleSet(SetActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = SetActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<SetActiveReceiptRuleSetResponse>(request, options);}
|
4,899 | public CreateLaunchTemplateResult createLaunchTemplate(CreateLaunchTemplateRequest request) {request = beforeClientExecution(request);return executeCreateLaunchTemplate(request);}
| public virtual CreateLaunchTemplateResponse CreateLaunchTemplate(CreateLaunchTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLaunchTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLaunchTemplateResponseUnmarshaller.Instance;return Invoke<CreateLaunchTemplateResponse>(request, options);}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.