yijunyu/c-to-rust huggingface dataset:
// Original:
public void init(ByteBlockPool pool, int startIndex, int endIndex) {assert endIndex-startIndex >= 0;assert startIndex >= 0;assert endIndex >= 0;this.pool = pool;this.endIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;bufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;final int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex+firstSize >= endIndex) {limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;} elselimit = upto+firstSize-4;}

// Translation:
public void Init(ByteBlockPool pool, int startIndex, int endIndex){Debug.Assert(endIndex - startIndex >= 0);Debug.Assert(startIndex >= 0);Debug.Assert(endIndex >= 0);this.pool = pool;this.EndIndex = endIndex;level = 0;bufferUpto = startIndex / ByteBlockPool.BYTE_BLOCK_SIZE;BufferOffset = bufferUpto * ByteBlockPool.BYTE_BLOCK_SIZE;buffer = pool.Buffers[bufferUpto];upto = startIndex & ByteBlockPool.BYTE_BLOCK_MASK;int firstSize = ByteBlockPool.LEVEL_SIZE_ARRAY[0];if (startIndex + firstSize >= endIndex){limit = endIndex & ByteBlockPool.BYTE_BLOCK_MASK;}else{limit = upto + firstSize - 4;}}
// Original:
public MergeCellsRecord(RecordInputStream in) {int nRegions = in.readUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++) {cras[i] = new CellRangeAddress(in);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}

// Translation:
public MergeCellsRecord(RecordInputStream in1){int nRegions = in1.ReadUShort();CellRangeAddress[] cras = new CellRangeAddress[nRegions];for (int i = 0; i < nRegions; i++){cras[i] = new CellRangeAddress(in1);}_numberOfRegions = nRegions;_startIndex = 0;_regions = cras;}
// Original:
public List<? extends FileHeader> getFiles() {return files;}

// Translation:
public virtual IList<FileHeader> GetFiles(){return files;}
// Original:
public final long get(int index) {checkIndex(index);return backingArray[offset + index];}

// Translation:
public sealed override long get(int index){checkIndex(index);return backingArray[offset + index];}
// Original:
public DescribeClusterTracksResult describeClusterTracks(DescribeClusterTracksRequest request) {request = beforeClientExecution(request);return executeDescribeClusterTracks(request);}

// Translation:
public virtual DescribeClusterTracksResponse DescribeClusterTracks(DescribeClusterTracksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterTracksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterTracksResponseUnmarshaller.Instance;return Invoke<DescribeClusterTracksResponse>(request, options);}
// Original:
public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());sb.append(" ! ");sb.append(FormulaError.REF.getString());sb.append("]");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}if (sheetName != null){SheetNameFormatter.AppendFormat(sb, sheetName);}sb.Append(" ! ");sb.Append(ErrorConstants.GetText(ErrorConstants.ERROR_REF));sb.Append("]");return sb.ToString();}
// Original:
public void setParsedExpression(Ptg[] ptgs) {field_8_parsed_expr = Formula.create(ptgs);}

// Translation:
public void SetParsedExpression(Ptg[] ptgs){field_8_parsed_expr = NPOI.SS.Formula.Formula.Create(ptgs);}
// Original:
public ActivityTypeInfos listActivityTypes(ListActivityTypesRequest request) {request = beforeClientExecution(request);return executeListActivityTypes(request);}

// Translation:
public virtual ListActivityTypesResponse ListActivityTypes(ListActivityTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListActivityTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListActivityTypesResponseUnmarshaller.Instance;return Invoke<ListActivityTypesResponse>(request, options);}
// Original:
public DescribeDBSecurityGroupsResult describeDBSecurityGroups() {return describeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}

// Translation:
public virtual DescribeDBSecurityGroupsResponse DescribeDBSecurityGroups(){return DescribeDBSecurityGroups(new DescribeDBSecurityGroupsRequest());}
// Original:
public <T> Collection<T> getAllMatchingGroups() {return (Collection<T>) matchingGroups;}

// Translation:
public virtual ICollection GetAllMatchingGroups(){return matchingGroups;}
// Original:
public void setCachedResultBoolean(boolean value) {specialCachedValue = FormulaSpecialCachedValue.createCachedBoolean(value);}

// Translation:
public void SetCachedResultBoolean(bool value){specialCachedValue = SpecialCachedValue.CreateCachedBoolean(value);}
// Original:
public static boolean doesFormulaReferToDeletedCell(Ptg[] ptgs) {for (Ptg ptg : ptgs) {if (isDeletedCellRef(ptg)) {return true;}}return false;}

// Translation:
public static bool DoesFormulaReferToDeletedCell(Ptg[] ptgs){for (int i = 0; i < ptgs.Length; i++){if (IsDeletedCellRef(ptgs[i])){return true;}}return false;}
// Original:
public static float[] grow(float[] array) {return grow(array, 1 + array.length);}

// Translation:
public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}
// Original:
public void clear() {head = null;tail = null;free.clear();}

// Translation:
public override void Clear(){head = null;tail = null;free.Clear();}
// Original:
public DeleteIPSetResult deleteIPSet(DeleteIPSetRequest request) {request = beforeClientExecution(request);return executeDeleteIPSet(request);}

// Translation:
public virtual DeleteIPSetResponse DeleteIPSet(DeleteIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteIPSetResponseUnmarshaller.Instance;return Invoke<DeleteIPSetResponse>(request, options);}
// Original:
public StaticCredentialsProvider(AlibabaCloudCredentials credentials) {this.credentials = credentials;}

// Translation:
public StaticCredentialsProvider(AlibabaCloudCredentials credentials){this.credentials = credentials;}
// Original:
public static double[] copyOfRange(double[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);double[] result = new double[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}

// Translation:
public static double[] copyOfRange(double[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);double[] result = new double[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
// Original:
public DescribeEntityRecognizerResult describeEntityRecognizer(DescribeEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDescribeEntityRecognizer(request);}

// Translation:
public virtual DescribeEntityRecognizerResponse DescribeEntityRecognizer(DescribeEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEntityRecognizerResponseUnmarshaller.Instance;return Invoke<DescribeEntityRecognizerResponse>(request, options);}
// Original:
public void removeTitle() {remove1stProperty(PropertyIDMap.PID_TITLE);}

// Translation:
public void RemoveTitle(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_TITLE);}
// Original:
public GetDigestResult getDigest(GetDigestRequest request) {request = beforeClientExecution(request);return executeGetDigest(request);}

// Translation:
public virtual GetDigestResponse GetDigest(GetDigestRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDigestRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDigestResponseUnmarshaller.Instance;return Invoke<GetDigestResponse>(request, options);}
// Original:
public CreateStackResult createStack(CreateStackRequest request) {request = beforeClientExecution(request);return executeCreateStack(request);}

// Translation:
public virtual CreateStackResponse CreateStack(CreateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStackResponseUnmarshaller.Instance;return Invoke<CreateStackResponse>(request, options);}
// Original:
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx) {boolean refsWereChanged = false;for(int i=0; i<ptgs.length; i++) {Ptg newPtg = adjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null) {refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}

// Translation:
public bool AdjustFormula(Ptg[] ptgs, int currentExternSheetIx){bool refsWereChanged = false;for (int i = 0; i < ptgs.Length; i++){Ptg newPtg = AdjustPtg(ptgs[i], currentExternSheetIx);if (newPtg != null){refsWereChanged = true;ptgs[i] = newPtg;}}return refsWereChanged;}
// Original:
public void print(Object o) {print(String.valueOf(o));}

// Translation:
public virtual void print(object o){print(Sharpen.StringHelper.GetValueOf(o));}
// Original:
public void setParams(String params) {super.setParams(params);useAddIndexesDir = Boolean.parseBoolean(params);}

// Translation:
public override void SetParams(string @params){base.SetParams(@params);useAddIndexesDir = bool.Parse(@params);}
// Original:
public void close() throws IOException {if (isOpen && !isClone) {try {channel.close();} finally {if (!isClone) {fis.close();}}}}

// Translation:
public void close() throws IOException{if (isOpen && !isClone){try{channel.close();}finally{if (!isClone){fis.close();}}}}
// Original:
public void reset() {count = 0;assert forwardCount == 0: "pos=" + pos + " forwardCount=" + forwardCount;}

// Translation:
public void Reset(){count = 0;Debug.Assert(forwardCount == 0, "pos=" + pos + " forwardCount=" + forwardCount);}
// Original:
public void unlinkSharedFormulas() {for (int i = 0; i < _numberOfFormulas; i++) {_frAggs[i].unlinkSharedFormula();}}

// Translation:
public void UnlinkSharedFormulas(){for (int i = 0; i < _numberOfFormulas; i++){_frAggs[i].UnlinkSharedFormula();}}
// Original:
public boolean isIndexTerm(BytesRef term, TermStats stats) {if (stats.docFreq >= docFreqThresh || count >= interval) {count = 1;return true;} else {count++;return false;}}

// Translation:
public override bool IsIndexTerm(BytesRef term, TermStats stats){if (stats.DocFreq >= docFreqThresh || count >= interval){count = 1;return true;}else{count++;return false;}}
// Original:
public void removeHeadingPair() {remove1stProperty(PropertyIDMap.PID_HEADINGPAIR);}

// Translation:
public void RemoveHeadingPair(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_HEADINGPAIR);}
// Original:
public synchronized String[] getPOSTags(String[] words) {return tagger.tag(words);}

// Translation:
public virtual string[] GetPOSTags(string[] words){lock (this){return tagger.tag(words);}}
// Original:
public TermsEnum intersect(CompiledAutomaton compiled, BytesRef startTerm) throws IOException {if (compiled.type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL) {throw new IllegalArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectTermsEnum(this, compiled.automaton, compiled.runAutomaton, compiled.commonSuffixRef, startTerm);}

// Translation:
public override TermsEnum Intersect(CompiledAutomaton compiled, BytesRef startTerm){if (compiled.Type != CompiledAutomaton.AUTOMATON_TYPE.NORMAL){throw new System.ArgumentException("please use CompiledAutomaton.getTermsEnum instead");}return new IntersectEnum(this, compiled, startTerm);}
// Original:
public AttachLoadBalancerToSubnetsResult attachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request) {request = beforeClientExecution(request);return executeAttachLoadBalancerToSubnets(request);}

// Translation:
public virtual AttachLoadBalancerToSubnetsResponse AttachLoadBalancerToSubnets(AttachLoadBalancerToSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachLoadBalancerToSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachLoadBalancerToSubnetsResponseUnmarshaller.Instance;return Invoke<AttachLoadBalancerToSubnetsResponse>(request, options);}
// Original:
public PrecedenceQueryParser() {setQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(getQueryConfigHandler()));}

// Translation:
public PrecedenceQueryParser(){SetQueryNodeProcessor(new PrecedenceQueryNodeProcessorPipeline(QueryConfigHandler));}
// Original:
public CommonToken(int type) {this.type = type;this.source = EMPTY_SOURCE;}

// Translation:
public CommonToken(int type){this._type = type;this.source = EmptySource;}
// Original:
public DeleteEmailChannelResult deleteEmailChannel(DeleteEmailChannelRequest request) {request = beforeClientExecution(request);return executeDeleteEmailChannel(request);}

// Translation:
public virtual DeleteEmailChannelResponse DeleteEmailChannel(DeleteEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailChannelResponseUnmarshaller.Instance;return Invoke<DeleteEmailChannelResponse>(request, options);}
// Original:
public DeleteNotificationSubscriptionResult deleteNotificationSubscription(DeleteNotificationSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationSubscription(request);}

// Translation:
public virtual DeleteNotificationSubscriptionResponse DeleteNotificationSubscription(DeleteNotificationSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNotificationSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNotificationSubscriptionResponseUnmarshaller.Instance;return Invoke<DeleteNotificationSubscriptionResponse>(request, options);}
// Original:
public void close() throws IOException {synchronized (lock) {if (isClosed()) {return;}Throwable thrown = null;try {flushInternal();} catch (Throwable e) {thrown = e;}buf = null;try {out.close();} catch (Throwable e) {if (thrown == null) {thrown = e;}}out = null;if (thrown != null) {SneakyThrow.sneakyThrow(thrown);}}}

// Translation:
public override void close(){lock (@lock){if (isClosed()){return;}System.Exception thrown = null;try{flushInternal();}catch (System.Exception e){thrown = e;}buf = null;try{@out.close();}catch (System.Exception e){if (thrown == null){thrown = e;}}@out = null;if (thrown != null){Sharpen.Util.Throw(thrown);}}}
// Original:
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("spanPosRange(");buffer.append(match.toString(field));buffer.append(", ").append(start).append(", ");buffer.append(end);buffer.append(")");return buffer.toString();}

// Translation:
public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("spanPosRange(");buffer.Append(m_match.ToString(field));buffer.Append(", ").Append(m_start).Append(", ");buffer.Append(m_end);buffer.Append(")");buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
// Original:
public ListPipelinesResult listPipelines(ListPipelinesRequest request) {request = beforeClientExecution(request);return executeListPipelines(request);}

// Translation:
public virtual ListPipelinesResponse ListPipelines(ListPipelinesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPipelinesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPipelinesResponseUnmarshaller.Instance;return Invoke<ListPipelinesResponse>(request, options);}
// Original:
public ConfirmProductInstanceResult confirmProductInstance(ConfirmProductInstanceRequest request) {request = beforeClientExecution(request);return executeConfirmProductInstance(request);}

// Translation:
public virtual ConfirmProductInstanceResponse ConfirmProductInstance(ConfirmProductInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmProductInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmProductInstanceResponseUnmarshaller.Instance;return Invoke<ConfirmProductInstanceResponse>(request, options);}
// Original:
public CreateProjectResult createProject(CreateProjectRequest request) {request = beforeClientExecution(request);return executeCreateProject(request);}

// Translation:
public virtual CreateProjectResponse CreateProject(CreateProjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;return Invoke<CreateProjectResponse>(request, options);}
// Original:
public ListMomentsRequest() {super("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public ListMomentsRequest(): base("CloudPhoto", "2017-07-11", "ListMoments", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public String getCCByGB2312Id(int ccid) {if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte) cc1;buffer[1] = (byte) cc2;try {String cchar = new String(buffer, "GB2312");return cchar;} catch (UnsupportedEncodingException e) {return "";}}

// Translation:
public virtual string GetCCByGB2312Id(int ccid){if (ccid < 0 || ccid > AbstractDictionary.GB2312_CHAR_NUM)return "";int cc1 = ccid / 94 + 161;int cc2 = ccid % 94 + 161;byte[] buffer = new byte[2];buffer[0] = (byte)cc1;buffer[1] = (byte)cc2;try{string cchar = Encoding.GetEncoding("GB2312").GetString(buffer);return cchar;}catch (ArgumentException) {return "";}}
// Original:
public static RevFilter create(RevFilter a, RevFilter b) {if (a == ALL || b == ALL)return ALL;return new Binary(a, b);}

// Translation:
public static RevFilter Create(RevFilter a, RevFilter b){if (a == ALL || b == ALL){return ALL;}return new OrRevFilter.Binary(a, b);}
// Original:
public UpdateTableRequest(String tableName, ProvisionedThroughput provisionedThroughput) {setTableName(tableName);setProvisionedThroughput(provisionedThroughput);}

// Translation:
public UpdateTableRequest(string tableName, ProvisionedThroughput provisionedThroughput){_tableName = tableName;_provisionedThroughput = provisionedThroughput;}
// Original:
public Repository getRepository() {return db;}

// Translation:
public virtual Repository GetRepository(){return db;}
// Original:
public ShortBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}

// Translation:
public override java.nio.ShortBuffer compact(){if (byteBuffer.isReadOnly()){throw new java.nio.ReadOnlyBufferException();}byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);byteBuffer.compact();byteBuffer.clear();_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
// Original:
public CreateInstanceExportTaskResult createInstanceExportTask(CreateInstanceExportTaskRequest request) {request = beforeClientExecution(request);return executeCreateInstanceExportTask(request);}

// Translation:
public virtual CreateInstanceExportTaskResponse CreateInstanceExportTask(CreateInstanceExportTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInstanceExportTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInstanceExportTaskResponseUnmarshaller.Instance;return Invoke<CreateInstanceExportTaskResponse>(request, options);}
// Original:
public String toString() {return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";}

// Translation:
public override string ToString(){return "MultiDocsAndPositionsEnum(" + Arrays.ToString(Subs) + ")";}
// Original:
public DescribeStacksResult describeStacks(DescribeStacksRequest request) {request = beforeClientExecution(request);return executeDescribeStacks(request);}

// Translation:
public virtual DescribeStacksResponse DescribeStacks(DescribeStacksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStacksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStacksResponseUnmarshaller.Instance;return Invoke<DescribeStacksResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_xf_index);if (isBuiltin()) {out.writeByte(field_2_builtin_style);out.writeByte(field_3_outline_style_level);} else {out.writeShort(field_4_name.length());out.writeByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte) {StringUtil.putUnicodeLE(getName(), out);} else {StringUtil.putCompressedUnicode(getName(), out);}}}

// Translation:
public override void Serialize(ILittleEndianOutput o){o.WriteShort(field_1_xf_index);if (IsBuiltin){o.WriteByte(field_2_builtin_style);o.WriteByte(field_3_outline_style_level);}else{o.WriteShort(field_4_name.Length);o.WriteByte(field_3_stringHasMultibyte ? 0x01 : 0x00);if (field_3_stringHasMultibyte){StringUtil.PutUnicodeLE(Name, o);}else{StringUtil.PutCompressedUnicode(Name, o);}}}
// Original:
public void write(byte[] b, int off, int len) throws IOException {deflater.setInput(b, off, len);for (;;) {if (outPtr == zbuf.length)throw new EOFException();int n = deflater.deflate(zbuf, outPtr, zbuf.length - outPtr);if (n == 0) {if (deflater.needsInput())break;throw new IOException();}outPtr += n;}}

// Translation:
public override void Write(byte[] b, int off, int len){deflater.SetInput(b, off, len);for (; ; ){if (outPtr == zbuf.Length){throw new EOFException();}int n = deflater.Deflate(zbuf, outPtr, zbuf.Length - outPtr);if (n == 0){if (deflater.IsNeedingInput){break;}throw new IOException();}outPtr += n;}}
// Original:
public String toFormulaString() {return " ";}

// Translation:
public override String ToFormulaString(){return " ";}
// Original:
public StringBuffer insert(int index, double d) {return insert(index, Double.toString(d));}

// Translation:
public java.lang.StringBuffer insert(int index, double d){return insert(index, System.Convert.ToString(d));}
// Original:
public FieldWriter addField(FieldInfo field, long termsFilePointer) {SimpleFieldWriter writer = new SimpleFieldWriter(field, termsFilePointer);fields.add(writer);return writer;}

// Translation:
public override FieldWriter AddField(FieldInfo field, long termsFilePointer){SimpleFieldWriter writer = new SimpleFieldWriter(this, field, termsFilePointer);fields.Add(writer);return writer;}
// Original:
public DeleteUserEndpointsResult deleteUserEndpoints(DeleteUserEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteUserEndpoints(request);}

// Translation:
public virtual DeleteUserEndpointsResponse DeleteUserEndpoints(DeleteUserEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteUserEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteUserEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteUserEndpointsResponse>(request, options);}