yijunyu/c-to-rust huggingface dataset:
// Original:
public PrintGridlinesRecord clone() {return copy();}

// Translation:
public override Object Clone(){PrintGridlinesRecord rec = new PrintGridlinesRecord();rec.field_1_print_gridlines = field_1_print_gridlines;return rec;}
// Original:
public HSSFCellStyle getColumnStyle(int column) {short styleIndex = _sheet.getXFIndexForColAt((short) column);if (styleIndex == 0xf) {return null;}ExtendedFormatRecord xf = _book.getExFormatAt(styleIndex);return new HSSFCellStyle(styleIndex, xf, _book);}

// Translation:
public NPOI.SS.UserModel.ICellStyle GetColumnStyle(int column){short styleIndex = _sheet.GetXFIndexForColAt((short)column);if (styleIndex == 0xf){return null;}ExtendedFormatRecord xf = book.GetExFormatAt(styleIndex);return new HSSFCellStyle(styleIndex, xf, book);}
// Original:
public Query makeLuceneQueryField(String fieldName, BasicQueryFactory qf){Query q = makeLuceneQueryFieldNoBoost(fieldName, qf);if (isWeighted()) {q = new BoostQuery(q, getWeight()); }return q;}

// Translation:
public virtual Search.Query MakeLuceneQueryField(string fieldName, BasicQueryFactory qf){Search.Query q = MakeLuceneQueryFieldNoBoost(fieldName, qf);if (IsWeighted){q.Boost=(Weight * q.Boost); }return q;}
// Original:
public double getPrecisionAt(int n) {if (n<1 || n>MAX_POINTS) {throw new IllegalArgumentException("n="+n+" - but it must be in [1,"+MAX_POINTS+"] range!");}if (n>numPoints) {return (numPoints * pAt[(int)numPoints])/n;}return pAt[n];}

// Translation:
public virtual double GetPrecisionAt(int n){if (n < 1 || n > MAX_POINTS){throw new ArgumentException("n=" + n + " - but it must be in [1," + MAX_POINTS + "] range!");}if (n > numPoints){return (numPoints * pAt[(int)numPoints]) / n;}return pAt[n];}
// Original:
public DescribeEngineDefaultParametersRequest(String dBParameterGroupFamily) {setDBParameterGroupFamily(dBParameterGroupFamily);}

// Translation:
public DescribeEngineDefaultParametersRequest(string dbParameterGroupFamily){_dbParameterGroupFamily = dbParameterGroupFamily;}
// Original:
public DeleteClientCertificateResult deleteClientCertificate(DeleteClientCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteClientCertificate(request);}

// Translation:
public virtual DeleteClientCertificateResponse DeleteClientCertificate(DeleteClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientCertificateResponseUnmarshaller.Instance;return Invoke<DeleteClientCertificateResponse>(request, options);}
// Original:
public int compareTo(CharBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;char thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}

// Translation:
public virtual int compareTo(java.nio.CharBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;char thisByte;char otherByte;while (compareRemaining > 0){thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte){return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
// Original:
public byte readByte(){return _in.readByte();}

// Translation:
public int ReadByte(){return _in.ReadByte();}
// Original:
public SendBounceResult sendBounce(SendBounceRequest request) {request = beforeClientExecution(request);return executeSendBounce(request);}

// Translation:
public virtual SendBounceResponse SendBounce(SendBounceRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendBounceRequestMarshaller.Instance;options.ResponseUnmarshaller = SendBounceResponseUnmarshaller.Instance;return Invoke<SendBounceResponse>(request, options);}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double dn;try {ValueEval ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.coerceValueToDouble(ve1);} catch (EvaluationException e1) {return ErrorEval.VALUE_INVALID;}if (dn < 0 || dn > 1) { return ErrorEval.NUM_ERROR;}double result;try {double[] ds = ValueCollector.collectValues(arg0);int N = ds.length;if (N == 0 || N > 8191) {return ErrorEval.NUM_ERROR;}double n = (N - 1) * dn + 1;if (n == 1d) {result = StatsLib.kthSmallest(ds, 1);} else if (Double.compare(n, N) == 0) {result = StatsLib.kthLargest(ds, 1);} else {int k = (int) n;double d = n - k;result = StatsLib.kthSmallest(ds, k) + d* (StatsLib.kthSmallest(ds, k + 1) - StatsLib.kthSmallest(ds, k));}NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1){double dn;try{ValueEval ve1 = OperandResolver.GetSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.CoerceValueToDouble(ve1);}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}if (dn < 0 || dn > 1){ return ErrorEval.NUM_ERROR;}double result;try{double[] ds = NPOI.SS.Formula.Functions.AggregateFunction.ValueCollector.CollectValues(arg0);int N = ds.Length;if (N == 0 || N > 8191){return ErrorEval.NUM_ERROR;}double n = (N - 1) * dn + 1;if (n == 1d){result = StatsLib.kthSmallest(ds, 1);}else if (n == N){result = StatsLib.kthLargest(ds, 1);}else{int k = (int)n;double d = n - k;result = StatsLib.kthSmallest(ds, k) + d* (StatsLib.kthSmallest(ds, k + 1) - StatsLib.kthSmallest(ds, k));}NumericFunction.CheckValue(result);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);}
// Original:
public int getIndexOfFormattingRun(int index) {FormatRun r = _string.getFormatRun(index);return r.getCharacterPos();}

// Translation:
public int GetIndexOfFormattingRun(int index){UnicodeString.FormatRun r = _string.GetFormatRun(index);return r.CharacterPos;}
// Original:
public void getEntryObjectId(MutableObjectId out) {out.fromRaw(idBuffer(), idOffset());}

// Translation:
public virtual void GetEntryObjectId(MutableObjectId @out){@out.FromRaw(IdBuffer, IdOffset);}
// Original:
public static byte[] grow(byte[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Byte.BYTES));} elsereturn array;}

// Translation:
public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
// Original:
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];}

// Translation:
public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(":\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(":/", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
// Original:
public GroupingSearch setCaching(int maxDocsToCache, boolean cacheScores) {this.maxDocsToCache = maxDocsToCache;this.maxCacheRAMMB = null;this.cacheScores = cacheScores;return this;}

// Translation:
public virtual GroupingSearch SetCaching(int maxDocsToCache, bool cacheScores){this.maxDocsToCache = maxDocsToCache;this.maxCacheRAMMB = null;this.cacheScores = cacheScores;return this;}
// Original:
public boolean isValidTermOrPhrase( final List<TermInfo> phraseCandidate ){if( !terminal ) return false;if( phraseCandidate.size() == 1 ) return true;int pos = phraseCandidate.get( 0 ).getPosition();for( int i = 1; i < phraseCandidate.size(); i++ ){int nextPos = phraseCandidate.get( i ).getPosition();if( Math.abs( nextPos - pos - 1 ) > slop ) return false;pos = nextPos;}return true;}

// Translation:
public virtual bool IsValidTermOrPhrase(IList<TermInfo> phraseCandidate){if (!terminal) return false;if (phraseCandidate.Count == 1) return true;int pos = phraseCandidate[0].Position;for (int i = 1; i < phraseCandidate.Count; i++){int nextPos = phraseCandidate[i].Position;if (Math.Abs(nextPos - pos - 1) > slop) return false;pos = nextPos;}return true;}
// Original:
public Run startWorkflowExecution(StartWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeStartWorkflowExecution(request);}

// Translation:
public virtual StartWorkflowExecutionResponse StartWorkflowExecution(StartWorkflowExecutionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartWorkflowExecutionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartWorkflowExecutionResponseUnmarshaller.Instance;return Invoke<StartWorkflowExecutionResponse>(request, options);}
// Original:
public char[] nextKey() {goNext();return keys[lastPos];}

// Translation:
public virtual char[] NextKey(){GoNext();return outerInstance.keys[lastPos];}
// Original:
public ContainsResult contains(BytesRef value) {int hash = hashFunction.hash(value);if (hash < 0) {hash = hash * -1;}return mayContainValue(hash);}

// Translation:
public virtual ContainsResult Contains(BytesRef value){var hash = _hashFunction.Hash(value);if (hash < 0){hash = hash*-1;}return MayContainValue(hash);}
// Original:
public GetMethodResponseResult getMethodResponse(GetMethodResponseRequest request) {request = beforeClientExecution(request);return executeGetMethodResponse(request);}

// Translation:
public virtual GetMethodResponseResponse GetMethodResponse(GetMethodResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMethodResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMethodResponseResponseUnmarshaller.Instance;return Invoke<GetMethodResponseResponse>(request, options);}
// Original:
public void setValue(boolean value) {_value = value ? 1 : 0;_isError = false;}

// Translation:
public void SetValue(bool value){_value = value ? 1 : 0;_isError = false;}
// Original:
public synchronized E elementAt(int location) {if (location < elementCount) {return (E) elementData[location];}throw arrayIndexOutOfBoundsException(location, elementCount);}

// Translation:
public virtual E elementAt(int location){lock (this){if (location < elementCount){return (E)elementData[location];}throw arrayIndexOutOfBoundsException(location, elementCount);}}
// Original:
public void set(int index, long value) {final int o = index >>> 3;final int b = index & 7;final int shift = b << 3;blocks[o] = (blocks[o] & ~(255L << shift)) | (value << shift);}

// Translation:
public override void Set(int index, long value){int o = (int)((uint)index >> 3);int b = index & 7;int shift = b << 3;blocks[o] = (blocks[o] & ~(255L << shift)) | (value << shift);}
// Original:
public IterationRecord clone() {return copy();}

// Translation:
public override Object Clone(){return new IterationRecord(Iteration);}
// Original:
public boolean requiresCommitBody() {return a.requiresCommitBody();}

// Translation:
public override bool RequiresCommitBody(){return a.RequiresCommitBody();}
// Original:
public UpdateTrafficPolicyCommentResult updateTrafficPolicyComment(UpdateTrafficPolicyCommentRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyComment(request);}

// Translation:
public virtual UpdateTrafficPolicyCommentResponse UpdateTrafficPolicyComment(UpdateTrafficPolicyCommentRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrafficPolicyCommentRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrafficPolicyCommentResponseUnmarshaller.Instance;return Invoke<UpdateTrafficPolicyCommentResponse>(request, options);}
// Original:
public UpdatePrimaryEmailAddressResult updatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request) {request = beforeClientExecution(request);return executeUpdatePrimaryEmailAddress(request);}

// Translation:
public virtual UpdatePrimaryEmailAddressResponse UpdatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePrimaryEmailAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePrimaryEmailAddressResponseUnmarshaller.Instance;return Invoke<UpdatePrimaryEmailAddressResponse>(request, options);}
// Original:
public static Pattern compile(String pattern) {return new Pattern(pattern, 0);}

// Translation:
public static java.util.regex.Pattern compile(string pattern_1){return new java.util.regex.Pattern(pattern_1, 0);}
// Original:
public static int update(int hash, int value) {final int c1 = 0xCC9E2D51;final int c2 = 0x1B873593;final int r1 = 15;final int r2 = 13;final int m = 5;final int n = 0xE6546B64;int k = value;k = k * c1;k = (k << r1) | (k >>> (32 - r1));k = k * c2;hash = hash ^ k;hash = (hash << r2) | (hash >>> (32 - r2));hash = hash * m + n;return hash;}

// Translation:
public static int Update(int hash, int value){int c1 = unchecked((int)(0xCC9E2D51));int c2 = unchecked((int)(0x1B873593));int r1 = 15;int r2 = 13;int m = 5;int n = unchecked((int)(0xE6546B64));int k = value;k = k * c1;k = (k << r1) | ((int)(((uint)k) >> (32 - r1)));k = k * c2;hash = hash ^ k;hash = (hash << r2) | ((int)(((uint)hash) >> (32 - r2)));hash = hash * m + n;return hash;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(getHorizontalHold());out.writeShort(getVerticalHold());out.writeShort(getWidth());out.writeShort(getHeight());out.writeShort(getOptions());out.writeShort(getActiveSheetIndex());out.writeShort(getFirstVisibleTab());out.writeShort(getNumSelectedTabs());out.writeShort(getTabWidthRatio());}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(HorizontalHold);out1.WriteShort(VerticalHold);out1.WriteShort(Width);out1.WriteShort(Height);out1.WriteShort(Options);out1.WriteShort(ActiveSheetIndex);out1.WriteShort(FirstVisibleTab);out1.WriteShort(NumSelectedTabs);out1.WriteShort(TabWidthRatio);}
// Original:
public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;final FieldDoc firstFD = (FieldDoc) shardHits[first.shardIndex][first.hitIndex];final FieldDoc secondFD = (FieldDoc) shardHits[second.shardIndex][second.hitIndex];for(int compIDX=0;compIDX<comparators.length;compIDX++) {final FieldComparator comp = comparators[compIDX];final int cmp = reverseMul[compIDX] * comp.compareValues(firstFD.fields[compIDX], secondFD.fields[compIDX]);if (cmp != 0) {return cmp < 0;}}return tieBreakLessThan(first, firstFD, second, secondFD, tieBreaker);}

// Translation:
protected internal override bool LessThan(ShardRef first, ShardRef second){Debug.Assert(first != second);FieldDoc firstFD = (FieldDoc)shardHits[first.ShardIndex][first.HitIndex];FieldDoc secondFD = (FieldDoc)shardHits[second.ShardIndex][second.HitIndex];for (int compIDX = 0; compIDX < comparers.Length; compIDX++){FieldComparer comp = comparers[compIDX];int cmp = reverseMul[compIDX] * comp.CompareValues(firstFD.Fields[compIDX], secondFD.Fields[compIDX]);if (cmp != 0){return cmp < 0;}}if (first.ShardIndex < second.ShardIndex){return true;}else if (first.ShardIndex > second.ShardIndex){return false;}else{Debug.Assert(first.HitIndex != second.HitIndex);return first.HitIndex < second.HitIndex;}}
// Original:
public static int UTF8toUTF16(BytesRef bytesRef, char[] chars) {return UTF8toUTF16(bytesRef.bytes, bytesRef.offset, bytesRef.length, chars);}

// Translation:
public static void UTF8toUTF16(BytesRef bytesRef, CharsRef chars){UTF8toUTF16(bytesRef.Bytes, bytesRef.Offset, bytesRef.Length, chars);}
// Original:
public Trie optimize(Trie orig) {List<CharSequence> cmds = orig.cmds;List<Row> rows = new ArrayList<>();List<Row> orows = orig.rows;int remap[] = new int[orows.size()];Arrays.fill(remap, 1);for (int j = orows.size() - 1; j >= 0; j--) {if (eat(orows.get(j), remap)) {remap[j] = 0;}}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList<Row>(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}

// Translation:
public override Trie Optimize(Trie orig){IList<string> cmds = orig.cmds;IList<Row> rows = new List<Row>();IList<Row> orows = orig.rows;int[] remap = new int[orows.Count];Arrays.Fill(remap, 1);for (int j = orows.Count - 1; j >= 0; j--){if (Eat(orows[j], remap)){remap[j] = 0;}}Arrays.Fill(remap, -1);rows = RemoveGaps(orig.root, orows, new List<Row>(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}
// Original:
public DataValidationConstraint createCustomConstraint(String formula) {return DVConstraint.createCustomFormulaConstraint(formula);}

// Translation:
public IDataValidationConstraint CreateCustomConstraint(String formula){return DVConstraint.CreateCustomFormulaConstraint(formula);}
// Original:
public ByteBuffer putInt(int index, int value) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.ByteBuffer putInt(int index, int value){throw new java.nio.ReadOnlyBufferException();}
// Original:
public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes() {return describeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest());}

// Translation:
public virtual DescribeLoadBalancerPolicyTypesResponse DescribeLoadBalancerPolicyTypes(){return DescribeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest());}
// Original:
public NIOFSIndexInput clone() {NIOFSIndexInput clone = (NIOFSIndexInput)super.clone();clone.isClone = true;return clone;}

// Translation:
public override object Clone(){NIOFSIndexInput clone = (NIOFSIndexInput)base.Clone();clone.isClone = true;return clone;}
// Original:
public long getTotalSLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;}return k;}

// Translation:
public long getTotalSLLATNLookaheadOps(){DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.Length; i++){k += decisions[i].SLL_ATNTransitions;}return k;}
// Original:
public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {request = beforeClientExecution(request);return executeUpdateEndpoint(request);}

// Translation:
public virtual UpdateEndpointResponse UpdateEndpoint(UpdateEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEndpointResponseUnmarshaller.Instance;return Invoke<UpdateEndpointResponse>(request, options);}
// Original:
public GetEmailChannelResult getEmailChannel(GetEmailChannelRequest request) {request = beforeClientExecution(request);return executeGetEmailChannel(request);}

// Translation:
public virtual GetEmailChannelResponse GetEmailChannel(GetEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEmailChannelResponseUnmarshaller.Instance;return Invoke<GetEmailChannelResponse>(request, options);}
// Original:
public ListPhoneNumberOrdersResult listPhoneNumberOrders(ListPhoneNumberOrdersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumberOrders(request);}

// Translation:
public virtual ListPhoneNumberOrdersResponse ListPhoneNumberOrders(ListPhoneNumberOrdersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumberOrdersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumberOrdersResponseUnmarshaller.Instance;return Invoke<ListPhoneNumberOrdersResponse>(request, options);}
// Original:
public UpdateBuildResult updateBuild(UpdateBuildRequest request) {request = beforeClientExecution(request);return executeUpdateBuild(request);}

// Translation:
public virtual UpdateBuildResponse UpdateBuild(UpdateBuildRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateBuildRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateBuildResponseUnmarshaller.Instance;return Invoke<UpdateBuildResponse>(request, options);}
// Original:
public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = 16;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_rectX1 );LittleEndian.putInt( data, offset + 12, field_2_rectY1 );LittleEndian.putInt( data, offset + 16, field_3_rectX2 );LittleEndian.putInt( data, offset + 20, field_4_rectY2 );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), offset + getRecordSize(), this );return 8 + 16;}

// Translation:
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 16;LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutInt(data, offset + 8, field_1_rectX1);LittleEndian.PutInt(data, offset + 12, field_2_rectY1);LittleEndian.PutInt(data, offset + 16, field_3_rectX2);LittleEndian.PutInt(data, offset + 20, field_4_rectY2);listener.AfterRecordSerialize(offset + RecordSize, RecordId, offset + RecordSize, this);return 8 + 16;}
// Original:
public CleanCommand setDryRun(boolean dryRun) {this.dryRun = dryRun;return this;}

// Translation:
public virtual NGit.Api.CleanCommand SetDryRun(bool dryRun){this.dryRun = dryRun;return this;}
// Original:
public DescribeClusterVersionsResult describeClusterVersions(DescribeClusterVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterVersions(request);}

// Translation:
public virtual DescribeClusterVersionsResponse DescribeClusterVersions(DescribeClusterVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterVersionsResponseUnmarshaller.Instance;return Invoke<DescribeClusterVersionsResponse>(request, options);}
// Original:
public DescribeWorkspacesResult describeWorkspaces(DescribeWorkspacesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaces(request);}

// Translation:
public virtual DescribeWorkspacesResponse DescribeWorkspaces(DescribeWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspacesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspacesResponse>(request, options);}