yijunyu/c-to-rust huggingface dataset:
// Original:
public GetBasePathMappingResult getBasePathMapping(GetBasePathMappingRequest request) {request = beforeClientExecution(request);return executeGetBasePathMapping(request);}

// Translation:
public virtual GetBasePathMappingResponse GetBasePathMapping(GetBasePathMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBasePathMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBasePathMappingResponseUnmarshaller.Instance;return Invoke<GetBasePathMappingResponse>(request, options);}
// Original:
public void fromObjectId(AnyObjectId src) {this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;}

// Translation:
public virtual void FromObjectId(AnyObjectId src){this.w1 = src.w1;this.w2 = src.w2;this.w3 = src.w3;this.w4 = src.w4;this.w5 = src.w5;}
// Original:
public static List<? extends Tree> getAncestors(Tree t) {if ( t.getParent()==null ) return Collections.emptyList();List<Tree> ancestors = new ArrayList<Tree>();t = t.getParent();while ( t!=null ) {ancestors.add(0, t); t = t.getParent();}return ancestors;}

// Translation:
public static IList<ITree> GetAncestors(ITree t){if (t.Parent == null){return Collections.EmptyList<ITree>();}IList<ITree> ancestors = new List<ITree>();t = t.Parent;while (t != null){ancestors.Insert(0, t);t = t.Parent;}return ancestors;}
// Original:
public GetUsagePlanResult getUsagePlan(GetUsagePlanRequest request) {request = beforeClientExecution(request);return executeGetUsagePlan(request);}

// Translation:
public virtual GetUsagePlanResponse GetUsagePlan(GetUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = GetUsagePlanResponseUnmarshaller.Instance;return Invoke<GetUsagePlanResponse>(request, options);}
// Original:
public UpdateLoadBalancerAttributeResult updateLoadBalancerAttribute(UpdateLoadBalancerAttributeRequest request) {request = beforeClientExecution(request);return executeUpdateLoadBalancerAttribute(request);}

// Translation:
public virtual UpdateLoadBalancerAttributeResponse UpdateLoadBalancerAttribute(UpdateLoadBalancerAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLoadBalancerAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLoadBalancerAttributeResponseUnmarshaller.Instance;return Invoke<UpdateLoadBalancerAttributeResponse>(request, options);}
// Original:
public void addResult(int n, boolean isRelevant, long docNameExtractTime) {if (Math.abs(numPoints+1 - n) > 1E-6) {throw new IllegalArgumentException("point "+n+" illegal after "+numPoints+" points!");}if (isRelevant) {numGoodPoints+=1;recallPoints.add(new RecallPoint(n,numGoodPoints));if (recallPoints.size()==1 && n<=5) { mrr =  1.0 / n;}}numPoints = n;double p = numGoodPoints / numPoints;if (isRelevant) {pReleventSum += p;}if (n<pAt.length) {pAt[n] = p;}recall = maxGoodPoints<=0 ? p : numGoodPoints/maxGoodPoints;docNamesExtractTime += docNameExtractTime;}

// Translation:
public virtual void AddResult(int n, bool isRelevant, long docNameExtractTime){if (Math.Abs(numPoints + 1 - n) > 1E-6){throw new ArgumentException("point " + n + " illegal after " + numPoints + " points!");}if (isRelevant){numGoodPoints += 1;recallPoints.Add(new RecallPoint(n, numGoodPoints));if (recallPoints.Count == 1 && n <= 5){ mrr = 1.0 / n;}}numPoints = n;double p = numGoodPoints / numPoints;if (isRelevant){pReleventSum += p;}if (n < pAt.Length){pAt[n] = p;}recall = maxGoodPoints <= 0 ? p : numGoodPoints / maxGoodPoints;docNamesExtractTime += docNameExtractTime;}
// Original:
public UpdateExperimentResult updateExperiment(UpdateExperimentRequest request) {request = beforeClientExecution(request);return executeUpdateExperiment(request);}

// Translation:
public virtual UpdateExperimentResponse UpdateExperiment(UpdateExperimentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateExperimentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateExperimentResponseUnmarshaller.Instance;return Invoke<UpdateExperimentResponse>(request, options);}
// Original:
public String toString() {return "(" + a.toString() + " AND " + b.toString() + ")";}

// Translation:
public override string ToString(){return "(" + a.ToString() + " OR " + b.ToString() + ")";}
// Original:
public String getAccessKeyId() {return accessKeyId;}

// Translation:
public string GetAccessKeyId(){return accessKeyId;}
// Original:
public GetBulkPublishDetailsResult getBulkPublishDetails(GetBulkPublishDetailsRequest request) {request = beforeClientExecution(request);return executeGetBulkPublishDetails(request);}

// Translation:
public virtual GetBulkPublishDetailsResponse GetBulkPublishDetails(GetBulkPublishDetailsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetBulkPublishDetailsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetBulkPublishDetailsResponseUnmarshaller.Instance;return Invoke<GetBulkPublishDetailsResponse>(request, options);}
// Original:
public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}

// Translation:
public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {double result;try {result = evaluate(evalArg(arg0, srcRowIndex, srcColumnIndex), evalArg(arg1, srcRowIndex, srcColumnIndex), evalArg(arg2, srcRowIndex, srcColumnIndex));} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2){double result;try{result = Evaluate(EvalArg(arg0, srcRowIndex, srcColumnIndex), EvalArg(arg1, srcRowIndex, srcColumnIndex), EvalArg(arg2, srcRowIndex, srcColumnIndex));}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
// Original:
public static final int hash32(final byte[] data, int offset, int len) {return MurmurHash2.hash(data, 0x9747b28c, offset, len);}

// Translation:
public static int Hash32(byte[] data, int offset, int len){return Hash(data, unchecked((int)0x9747b28c), offset, len);}
// Original:
public static Formula create(Ptg[] ptgs) {if (ptgs == null || ptgs.length < 1) {return EMPTY;}int totalSize = Ptg.getEncodedSize(ptgs);byte[] encodedData = new byte[totalSize];Ptg.serializePtgs(ptgs, encodedData, 0);int encodedTokenLen = Ptg.getEncodedSizeWithoutArrayData(ptgs);return new Formula(encodedData, encodedTokenLen);}

// Translation:
public static Formula Create(Ptg[] ptgs){if (ptgs == null || ptgs.Length < 1){return EMPTY;}int totalSize = Ptg.GetEncodedSize(ptgs);byte[] encodedData = new byte[totalSize];Ptg.SerializePtgs(ptgs, encodedData, 0);int encodedTokenLen = Ptg.GetEncodedSizeWithoutArrayData(ptgs);return new Formula(encodedData, encodedTokenLen);}
// Original:
public String toString(String field){return null;}

// Translation:
public override string ToString(string field){return null;}
// Original:
public static int deleteN(char s[], int pos, int len, int nChars) {assert pos + nChars <= len;if (pos + nChars < len) { System.arraycopy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}

// Translation:
public static int DeleteN(char[] s, int pos, int len, int nChars){Debug.Assert(pos + nChars <= len);if (pos + nChars < len) {Array.Copy(s, pos + nChars, s, pos, len - pos - nChars);}return len - nChars;}
// Original:
public ThreadSafeProgressMonitor(ProgressMonitor pm) {this.pm = pm;this.lock = new ReentrantLock();this.mainThread = Thread.currentThread();this.workers = new AtomicInteger(0);this.pendingUpdates = new AtomicInteger(0);this.process = new Semaphore(0);}

// Translation:
public ThreadSafeProgressMonitor(ProgressMonitor pm){this.pm = pm;this.Lock = new ReentrantLock();this.mainThread = Sharpen.Thread.CurrentThread();this.workers = new AtomicInteger(0);this.pendingUpdates = new AtomicInteger(0);this.process = Sharpen.Extensions.CreateSemaphore(0);}
// Original:
public SendMessageBatchRequestEntry(String id, String messageBody) {setId(id);setMessageBody(messageBody);}

// Translation:
public SendMessageBatchRequestEntry(string id, string messageBody){_id = id;_messageBody = messageBody;}
// Original:
public DescribeAddressResult describeAddress(DescribeAddressRequest request) {request = beforeClientExecution(request);return executeDescribeAddress(request);}

// Translation:
public virtual DescribeAddressResponse DescribeAddress(DescribeAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAddressResponseUnmarshaller.Instance;return Invoke<DescribeAddressResponse>(request, options);}
// Original:
public GetEventRequest() {super("CloudPhoto", "2017-07-11", "GetEvent", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public GetEventRequest(): base("CloudPhoto", "2017-07-11", "GetEvent", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public DescribeRuleResult describeRule(DescribeRuleRequest request) {request = beforeClientExecution(request);return executeDescribeRule(request);}

// Translation:
public virtual DescribeRuleResponse DescribeRule(DescribeRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuleResponseUnmarshaller.Instance;return Invoke<DescribeRuleResponse>(request, options);}
// Original:
public final RevObject getObject() {return object;}

// Translation:
public RevObject GetObject(){return @object;}
// Original:
public JapaneseIterationMarkCharFilterFactory(Map<String,String> args) {super(args);normalizeKanji = getBoolean(args, NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT);normalizeKana = getBoolean(args, NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public JapaneseIterationMarkCharFilterFactory(IDictionary<string, string> args): base(args){normalizeKanji = GetBoolean(args, NORMALIZE_KANJI_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANJI_DEFAULT);normalizeKana = GetBoolean(args, NORMALIZE_KANA_PARAM, JapaneseIterationMarkCharFilter.NORMALIZE_KANA_DEFAULT);if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
// Original:
public char previous() {if (--index < start) {index = start;return DONE;} else {return current();}}

// Translation:
public override char Previous(){if (--index < start){index = start;return Done;}else{return Current;}}
// Original:
public LoggingConfig(String bucket, String prefix) {setBucket(bucket);setPrefix(prefix);}

// Translation:
public LoggingConfig(string bucket, string prefix){_bucket = bucket;_prefix = prefix;}
// Original:
public static String createSafeSheetName(final String nameProposal) {return createSafeSheetName(nameProposal, ' ');}

// Translation:
public static String CreateSafeSheetName(String nameProposal){return CreateSafeSheetName(nameProposal, ' ');}
// Original:
public PutMetricAlarmResult putMetricAlarm(PutMetricAlarmRequest request) {request = beforeClientExecution(request);return executePutMetricAlarm(request);}

// Translation:
public virtual PutMetricAlarmResponse PutMetricAlarm(PutMetricAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutMetricAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = PutMetricAlarmResponseUnmarshaller.Instance;return Invoke<PutMetricAlarmResponse>(request, options);}
// Original:
public CreateExclusionsPreviewResult createExclusionsPreview(CreateExclusionsPreviewRequest request) {request = beforeClientExecution(request);return executeCreateExclusionsPreview(request);}

// Translation:
public virtual CreateExclusionsPreviewResponse CreateExclusionsPreview(CreateExclusionsPreviewRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateExclusionsPreviewRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateExclusionsPreviewResponseUnmarshaller.Instance;return Invoke<CreateExclusionsPreviewResponse>(request, options);}
// Original:
public OutputStream getRawStream() {return buf;}

// Translation:
public virtual OutputStream GetRawStream(){return buf;}
// Original:
public int getThreads() {return threads;}

// Translation:
public virtual int GetThreads(){return threads;}
// Original:
public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | (byte1 >>> 2);final int byte2 = blocks[blocksOffset++] & 0xFF;final int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | (byte3 >>> 4);final int byte4 = blocks[blocksOffset++] & 0xFF;final int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | (byte5 >>> 6);final int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 6) | ((int)((uint)byte1 >> 2));int byte2 = blocks[blocksOffset++] & 0xFF;int byte3 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 3) << 12) | (byte2 << 4) | ((int)((uint)byte3 >> 4));int byte4 = blocks[blocksOffset++] & 0xFF;int byte5 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte3 & 15) << 10) | (byte4 << 2) | ((int)((uint)byte5 >> 6));int byte6 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte5 & 63) << 8) | byte6;}}
// Original:
public boolean eof() {assert upto + bufferOffset <= endIndex;return upto + bufferOffset == endIndex;}

// Translation:
public bool Eof(){Debug.Assert(upto + BufferOffset <= EndIndex);return upto + BufferOffset == EndIndex;}
// Original:
public ClientException(String message) {super(message);this.setErrorType(ErrorType.Client);}

// Translation:
public ClientException(string message) : base(message){ErrorMessage = message;}
// Original:
public static NumberRecord[] convertRKRecords(MulRKRecord mrk) {NumberRecord[] mulRecs = new NumberRecord[mrk.getNumColumns()];for (int k = 0; k < mrk.getNumColumns(); k++) {NumberRecord nr = new NumberRecord();nr.setColumn((short) (k + mrk.getFirstColumn()));nr.setRow(mrk.getRow());nr.setXFIndex(mrk.getXFAt(k));nr.setValue(mrk.getRKNumberAt(k));mulRecs[k] = nr;}return mulRecs;}

// Translation:
public static NumberRecord[] ConvertRKRecords(MulRKRecord mrk){NumberRecord[] mulRecs = new NumberRecord[mrk.NumColumns];for (int k = 0; k < mrk.NumColumns; k++){NumberRecord nr = new NumberRecord();nr.Column = ((short)(k + mrk.FirstColumn));nr.Row = (mrk.Row);nr.XFIndex = (mrk.GetXFAt(k));nr.Value = (mrk.GetRKNumberAt(k));mulRecs[k] = nr;}return mulRecs;}
// Original:
public List<ReceiveCommand> getCommands() {return Collections.unmodifiableList(commands);}

// Translation:
public virtual IList<ReceiveCommand> GetCommands(){return Sharpen.Collections.UnmodifiableList(commands);}
// Original:
public UpdateVoiceConnectorResult updateVoiceConnector(UpdateVoiceConnectorRequest request) {request = beforeClientExecution(request);return executeUpdateVoiceConnector(request);}

// Translation:
public virtual UpdateVoiceConnectorResponse UpdateVoiceConnector(UpdateVoiceConnectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateVoiceConnectorRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateVoiceConnectorResponseUnmarshaller.Instance;return Invoke<UpdateVoiceConnectorResponse>(request, options);}
// Original:
public static String getText(int errorCode) {if(FormulaError.isValidCode(errorCode)) {return FormulaError.forInt(errorCode).getString();}return "~non~std~err(" + errorCode + ")~";}

// Translation:
public static String GetText(int errorCode){if (FormulaError.IsValidCode(errorCode)){return FormulaError.ForInt(errorCode).String;}return "~non~std~err(" + errorCode + ")~";}
// Original:
public long nextOrd() {long v = ord;ord = NO_MORE_ORDS;return v;}

// Translation:
public override long NextOrd(){if (set){return NO_MORE_ORDS;}else{set = true;return @in.GetOrd(docID);}}
// Original:
public EntityResolver getEntityResolver () {return (theEntityResolver == this) ? null : theEntityResolver;}

// Translation:
public void close (){lock (this.mBlock) {if (this.mParseState != null) {this.mParseState.Dispose ();this.mParseState = null;this.mBlock.decOpenCountLocked ();}}}
// Original:
public SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex) {if (sheetIndex < 0) {throw new IllegalArgumentException("Invalid sheetIndex: " + sheetIndex + ".");}_bookEvaluator = bookEvaluator;_tracker = tracker;_sheetIndex = sheetIndex;}

// Translation:
public SheetRefEvaluator(WorkbookEvaluator bookEvaluator, EvaluationTracker tracker, int sheetIndex){if (sheetIndex < 0){throw new ArgumentException("Invalid sheetIndex: " + sheetIndex + ".");}_bookEvaluator = bookEvaluator;_tracker = tracker;_sheetIndex = sheetIndex;}
// Original:
public DBSecurityGroup authorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeAuthorizeDBSecurityGroupIngress(request);}

// Translation:
public virtual AuthorizeDBSecurityGroupIngressResponse AuthorizeDBSecurityGroupIngress(AuthorizeDBSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AuthorizeDBSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = AuthorizeDBSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<AuthorizeDBSecurityGroupIngressResponse>(request, options);}
// Original:
@Override public V put(K key, V value) {if (key == null) {return putValueForNullKey(value);}int hash = secondaryHash(key.hashCode());HashMapEntry<K, V>[] tab = table;int index = hash & (tab.length - 1);for (HashMapEntry<K, V> e = tab[index]; e != null; e = e.next) {if (e.hash == hash && key.equals(e.key)) {preModify(e);V oldValue = e.value;e.value = value;return oldValue;}}modCount++;if (size++ > threshold) {tab = doubleCapacity();index = hash & (tab.length - 1);}addNewEntry(key, value, hash, index);return null;}

// Translation:
public override V put(K key, V value){if ((object)key == null){return putValueForNullKey(value);}int hash = secondaryHash(key.GetHashCode());java.util.HashMap.HashMapEntry<K, V>[] tab = table;int index = hash & (tab.Length - 1);{for (java.util.HashMap.HashMapEntry<K, V> e = tab[index]; e != null; e = e.next){if (e.hash == hash && key.Equals(e.key)){preModify(e);V oldValue = e.value;e.value = value;return oldValue;}}}modCount++;if (_size++ > threshold){tab = doubleCapacity();index = hash & (tab.Length - 1);}addNewEntry(key, value, hash, index);return default(V);}
// Original:
public GetTrafficPolicyInstanceResult getTrafficPolicyInstance(GetTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeGetTrafficPolicyInstance(request);}

// Translation:
public virtual GetTrafficPolicyInstanceResponse GetTrafficPolicyInstance(GetTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke<GetTrafficPolicyInstanceResponse>(request, options);}
// Original:
public Message(Content subject, Body body) {setSubject(subject);setBody(body);}

// Translation:
public Message(Content subject, Body body){_subject = subject;_body = body;}
// Original:
public LbsDropData() {_str = "";_unused = 0;}

// Translation:
public LbsDropData(){_str = "";_unused = 0;}
// Original:
public Deleted3DPxg(String sheetName) {this(-1, sheetName);}

// Translation:
public Deleted3DPxg(String sheetName): this(-1, sheetName){;}
// Original:
public String getName() {return "simple-two-way-in-core"; }

// Translation:
public override string GetName(){return "simple-two-way-in-core";}
// Original:
public RevTree parseTree(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));final RevTree t;if (c instanceof RevCommit)t = ((RevCommit) c).getTree();else if (!(c instanceof RevTree))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_TREE);elset = (RevTree) c;parseHeaders(t);return t;}

// Translation:
public virtual RevTree ParseTree(AnyObjectId id){RevObject c = Peel(ParseAny(id));RevTree t;if (c is RevCommit){t = ((RevCommit)c).Tree;}else{if (!(c is RevTree)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_TREE);}else{t = (RevTree)c;}}ParseHeaders(t);return t;}
// Original:
public DisableFastSnapshotRestoresResult disableFastSnapshotRestores(DisableFastSnapshotRestoresRequest request) {request = beforeClientExecution(request);return executeDisableFastSnapshotRestores(request);}

// Translation:
public virtual DisableFastSnapshotRestoresResponse DisableFastSnapshotRestores(DisableFastSnapshotRestoresRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableFastSnapshotRestoresRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableFastSnapshotRestoresResponseUnmarshaller.Instance;return Invoke<DisableFastSnapshotRestoresResponse>(request, options);}
// Original:
public int size() {return size;}

// Translation:
public override int size(){return this._enclosing._size;}
// Original:
public CreateStreamResult createStream(CreateStreamRequest request) {request = beforeClientExecution(request);return executeCreateStream(request);}

// Translation:
public virtual CreateStreamResponse CreateStream(CreateStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateStreamResponseUnmarshaller.Instance;return Invoke<CreateStreamResponse>(request, options);}
// Original:
public String replaceAll(String replacement) {reset();StringBuffer buffer = new StringBuffer(input.length());while (find()) {appendReplacement(buffer, replacement);}return appendTail(buffer).toString();}

// Translation:
public string replaceAll(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);while (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}
// Original:
public DeregisterInstanceEventNotificationAttributesResult deregisterInstanceEventNotificationAttributes(DeregisterInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeDeregisterInstanceEventNotificationAttributes(request);}

// Translation:
public virtual DeregisterInstanceEventNotificationAttributesResponse DeregisterInstanceEventNotificationAttributes(DeregisterInstanceEventNotificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterInstanceEventNotificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterInstanceEventNotificationAttributesResponseUnmarshaller.Instance;return Invoke<DeregisterInstanceEventNotificationAttributesResponse>(request, options);}
// Original:
public int getDepth() {return depth;}

// Translation:
public virtual int GetDepth(){return depth;}
// Original:
public long get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getLong(position++ * SizeOf.LONG);}

// Translation:
public override long get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getLong(_position++ * libcore.io.SizeOf.LONG);}