yijunyu/c-to-rust huggingface dataset:
// Original:
public LexerActionExecutor(LexerAction[] lexerActions) {this.lexerActions = lexerActions;int hash = MurmurHash.initialize();for (LexerAction lexerAction : lexerActions) {hash = MurmurHash.update(hash, lexerAction);}this.hashCode = MurmurHash.finish(hash, lexerActions.length);}

// Translation:
public LexerActionExecutor(ILexerAction[] lexerActions){this.lexerActions = lexerActions;int hash = MurmurHash.Initialize();foreach (ILexerAction lexerAction in lexerActions){hash = MurmurHash.Update(hash, lexerAction);}this.hashCode = MurmurHash.Finish(hash, lexerActions.Length);}
// Original:
public SetAlarmStateResult setAlarmState(SetAlarmStateRequest request) {request = beforeClientExecution(request);return executeSetAlarmState(request);}

// Translation:
public virtual SetAlarmStateResponse SetAlarmState(SetAlarmStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetAlarmStateRequestMarshaller.Instance;options.ResponseUnmarshaller = SetAlarmStateResponseUnmarshaller.Instance;return Invoke<SetAlarmStateResponse>(request, options);}
// Original:
public final File getFile() {return configFile;}

// Translation:
public FilePath GetFile(){return configFile;}
// Original:
public DescribeUsersResult describeUsers(DescribeUsersRequest request) {request = beforeClientExecution(request);return executeDescribeUsers(request);}

// Translation:
public virtual DescribeUsersResponse DescribeUsers(DescribeUsersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUsersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUsersResponseUnmarshaller.Instance;return Invoke<DescribeUsersResponse>(request, options);}
// Original:
public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio) {this(size, pageSize, PackedInts.fastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio));fillPages();}

// Translation:
public PagedMutable(long size, int pageSize, int bitsPerValue, float acceptableOverheadRatio): this(size, pageSize, PackedInt32s.FastestFormatAndBits(pageSize, bitsPerValue, acceptableOverheadRatio)){FillPages();}
// Original:
public CFHeaderRecord() {createEmpty();}

// Translation:
public CFHeaderRecord(){field_4_cell_ranges = new CellRangeAddressList();}
// Original:
public GetDataSourceResult getDataSource(GetDataSourceRequest request) {request = beforeClientExecution(request);return executeGetDataSource(request);}

// Translation:
public virtual GetDataSourceResponse GetDataSource(GetDataSourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataSourceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataSourceResponseUnmarshaller.Instance;return Invoke<GetDataSourceResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeDouble(field_1_margin);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteDouble(field_1_margin);}
// Original:
public DeleteProfilingGroupResult deleteProfilingGroup(DeleteProfilingGroupRequest request) {request = beforeClientExecution(request);return executeDeleteProfilingGroup(request);}

// Translation:
public virtual DeleteProfilingGroupResponse DeleteProfilingGroup(DeleteProfilingGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProfilingGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProfilingGroupResponseUnmarshaller.Instance;return Invoke<DeleteProfilingGroupResponse>(request, options);}
// Original:
public IntBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}

// Translation:
public override java.nio.IntBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
// Original:
public void setup(int id, int progress, boolean fromUser) {mId = id;mProgress = progress;mFromUser = fromUser;}

// Translation:
public virtual void setup(int id, int progress, bool fromUser){this.mId = id;this.mProgress = progress;this.mFromUser = fromUser;}
// Original:
public static FuncVarPtg create(LittleEndianInput in)  {return create(in.readByte(), in.readUShort());}

// Translation:
public static FuncVarPtg Create(ILittleEndianInput in1){return Create(in1.ReadByte(), in1.ReadShort());}
// Original:
public CreateAttendeeResult createAttendee(CreateAttendeeRequest request) {request = beforeClientExecution(request);return executeCreateAttendee(request);}

// Translation:
public virtual CreateAttendeeResponse CreateAttendee(CreateAttendeeRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAttendeeRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAttendeeResponseUnmarshaller.Instance;return Invoke<CreateAttendeeResponse>(request, options);}
// Original:
public String toString() {StringBuilder sb = new StringBuilder();sb.append("[EXTERNALNAME]\n");sb.append("    .options = ").append(field_1_option_flag).append("\n");sb.append("    .ix      = ").append(field_2_ixals).append("\n");sb.append("    .name    = ").append(field_4_name).append("\n");if(field_5_name_definition != null) {Ptg[] ptgs = field_5_name_definition.getTokens();for (Ptg ptg : ptgs) {sb.append("    .namedef = ").append(ptg).append(ptg.getRVAType()).append("\n");}}sb.append("[/EXTERNALNAME]\n");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[EXTERNALNAME]\n");sb.Append("    .options      = ").Append(field_1_option_flag).Append("\n");sb.Append("    .ix      = ").Append(field_2_ixals).Append("\n");sb.Append("    .name    = ").Append(field_4_name).Append("\n");if (field_5_name_definition != null){Ptg[] ptgs = field_5_name_definition.Tokens;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];sb.Append(ptg.ToString()).Append(ptg.RVAType).Append("\n");}}sb.Append("[/EXTERNALNAME]\n");return sb.ToString();}
// Original:
public DescribeDBClusterParameterGroupsResult describeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterParameterGroups(request);}

// Translation:
public virtual DescribeDBClusterParameterGroupsResponse DescribeDBClusterParameterGroups(DescribeDBClusterParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterParameterGroupsResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterParameterGroupsResponse>(request, options);}
// Original:
public PropertyTable(HeaderBlock headerBlock){_header_block = headerBlock;_bigBigBlockSize = headerBlock.getBigBlockSize();addProperty(new RootProperty());}

// Translation:
public PropertyTable(HeaderBlock headerBlock) : base(headerBlock){_bigBigBlockSize = headerBlock.BigBlockSize;_blocks = null;}
// Original:
public int getIndexOfName(String name) {for (int i = 0; i < _externalNameRecords.length; i++) {if (_externalNameRecords[i].getText().equalsIgnoreCase(name)) {return i;}}return -1;}

// Translation:
public int GetIndexOfName(String name){for (int i = 0; i < _externalNameRecords.Length; i++){if (_externalNameRecords[i].Text.Equals(name, StringComparison.OrdinalIgnoreCase)){return i;}}return -1;}
// Original:
public AbortVaultLockResult abortVaultLock(AbortVaultLockRequest request) {request = beforeClientExecution(request);return executeAbortVaultLock(request);}

// Translation:
public virtual AbortVaultLockResponse AbortVaultLock(AbortVaultLockRequest request){var options = new InvokeOptions();options.RequestMarshaller = AbortVaultLockRequestMarshaller.Instance;options.ResponseUnmarshaller = AbortVaultLockResponseUnmarshaller.Instance;return Invoke<AbortVaultLockResponse>(request, options);}
// Original:
public CreateBatchPredictionResult createBatchPrediction(CreateBatchPredictionRequest request) {request = beforeClientExecution(request);return executeCreateBatchPrediction(request);}

// Translation:
public virtual CreateBatchPredictionResponse CreateBatchPrediction(CreateBatchPredictionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBatchPredictionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBatchPredictionResponseUnmarshaller.Instance;return Invoke<CreateBatchPredictionResponse>(request, options);}
// Original:
public ListHostedZonesByNameResult listHostedZonesByName(ListHostedZonesByNameRequest request) {request = beforeClientExecution(request);return executeListHostedZonesByName(request);}

// Translation:
public virtual ListHostedZonesByNameResponse ListHostedZonesByName(ListHostedZonesByNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHostedZonesByNameRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHostedZonesByNameResponseUnmarshaller.Instance;return Invoke<ListHostedZonesByNameResponse>(request, options);}
// Original:
public final PersonIdent getAuthorIdent() {final byte[] raw = buffer;final int nameB = RawParseUtils.author(raw, 0);if (nameB < 0)return null;return RawParseUtils.parsePersonIdent(raw, nameB);}

// Translation:
public PersonIdent GetAuthorIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Author(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);}
// Original:
public RecordLifecycleActionHeartbeatResult recordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request) {request = beforeClientExecution(request);return executeRecordLifecycleActionHeartbeat(request);}

// Translation:
public virtual RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request){var options = new InvokeOptions();options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance;options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance;return Invoke<RecordLifecycleActionHeartbeatResponse>(request, options);}
// Original:
public void flush() {if (logger!=null) {logger.flush();}}

// Translation:
public virtual void Flush(){if (logger != null){logger.Flush();}}
// Original:
public GetLoadBalancerTlsCertificatesResult getLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest request) {request = beforeClientExecution(request);return executeGetLoadBalancerTlsCertificates(request);}

// Translation:
public virtual GetLoadBalancerTlsCertificatesResponse GetLoadBalancerTlsCertificates(GetLoadBalancerTlsCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetLoadBalancerTlsCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetLoadBalancerTlsCertificatesResponseUnmarshaller.Instance;return Invoke<GetLoadBalancerTlsCertificatesResponse>(request, options);}
// Original:
public ExtSSTRecord createExtSSTRecord(int sstOffset) {if (bucketAbsoluteOffsets == null || bucketRelativeOffsets == null) {throw new IllegalStateException("SST record has not yet been serialized.");}ExtSSTRecord extSST = new ExtSSTRecord();extSST.setNumStringsPerBucket((short)8);int[] absoluteOffsets = bucketAbsoluteOffsets.clone();int[] relativeOffsets = bucketRelativeOffsets.clone();for ( int i = 0; i < absoluteOffsets.length; i++ ) {absoluteOffsets[i] += sstOffset;}extSST.setBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}

// Translation:
public ExtSSTRecord CreateExtSSTRecord(int sstOffset){if (bucketAbsoluteOffsets == null || bucketAbsoluteOffsets == null)throw new InvalidOperationException("SST record has not yet been Serialized.");ExtSSTRecord extSST = new ExtSSTRecord();extSST.NumStringsPerBucket=((short)8);int[] absoluteOffsets = (int[])bucketAbsoluteOffsets.Clone();int[] relativeOffsets = (int[])bucketRelativeOffsets.Clone();for (int i = 0; i < absoluteOffsets.Length; i++)absoluteOffsets[i] += sstOffset;extSST.SetBucketOffsets(absoluteOffsets, relativeOffsets);return extSST;}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);}
// Original:
public ListMultipartUploadsResult listMultipartUploads(ListMultipartUploadsRequest request) {request = beforeClientExecution(request);return executeListMultipartUploads(request);}

// Translation:
public virtual ListMultipartUploadsResponse ListMultipartUploads(ListMultipartUploadsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListMultipartUploadsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListMultipartUploadsResponseUnmarshaller.Instance;return Invoke<ListMultipartUploadsResponse>(request, options);}
// Original:
public BytesRef add(BytesRef prefix, BytesRef output) {assert prefix != null;assert output != null;if (prefix == NO_OUTPUT) {return output;} else if (output == NO_OUTPUT) {return prefix;} else {assert prefix.length > 0;assert output.length > 0;BytesRef result = new BytesRef(prefix.length + output.length);System.arraycopy(prefix.bytes, prefix.offset, result.bytes, 0, prefix.length);System.arraycopy(output.bytes, output.offset, result.bytes, prefix.length, output.length);result.length = prefix.length + output.length;return result;}}

// Translation:
public override BytesRef Add(BytesRef prefix, BytesRef output){Debug.Assert(prefix != null);Debug.Assert(output != null);if (prefix == NO_OUTPUT){return output;}else if (output == NO_OUTPUT){return prefix;}else{Debug.Assert(prefix.Length > 0);Debug.Assert(output.Length > 0);BytesRef result = new BytesRef(prefix.Length + output.Length);Array.Copy(prefix.Bytes, prefix.Offset, result.Bytes, 0, prefix.Length);Array.Copy(output.Bytes, output.Offset, result.Bytes, prefix.Length, output.Length);result.Length = prefix.Length + output.Length;return result;}}
// Original:
public void setParams(String params) {super.setParams(params);doWait = Boolean.valueOf(params).booleanValue();}

// Translation:
public override void SetParams(string @params){base.SetParams(@params);doWait = bool.Parse(@params);}
// Original:
public RunBackgroundTask(PerfTask task, boolean letChildReport) {this.task = task;this.letChildReport = letChildReport;}

// Translation:
public RunBackgroundTask(PerfTask task, bool letChildReport){this.task = task;this.letChildReport = letChildReport;}
// Original:
public GridsetRecord clone() {return copy();}

// Translation:
public override Object Clone(){GridsetRecord rec = new GridsetRecord();rec.field_1_gridset_flag = field_1_gridset_flag;return rec;}
// Original:
public BoundSheetRecord(String sheetname) {field_2_option_flags = 0;setSheetname(sheetname);}

// Translation:
public BoundSheetRecord(String sheetname){field_2_option_flags = 0;this.Sheetname=sheetname;}
// Original:
public MFADevice(String userName, String serialNumber, java.util.Date enableDate) {setUserName(userName);setSerialNumber(serialNumber);setEnableDate(enableDate);}

// Translation:
public MFADevice(string userName, string serialNumber, DateTime enableDate){_userName = userName;_serialNumber = serialNumber;_enableDate = enableDate;}
// Original:
public DescribeStreamSummaryResult describeStreamSummary(DescribeStreamSummaryRequest request) {request = beforeClientExecution(request);return executeDescribeStreamSummary(request);}

// Translation:
public virtual DescribeStreamSummaryResponse DescribeStreamSummary(DescribeStreamSummaryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStreamSummaryRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStreamSummaryResponseUnmarshaller.Instance;return Invoke<DescribeStreamSummaryResponse>(request, options);}
// Original:
public ListClusterJobsResult listClusterJobs(ListClusterJobsRequest request) {request = beforeClientExecution(request);return executeListClusterJobs(request);}

// Translation:
public virtual ListClusterJobsResponse ListClusterJobs(ListClusterJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListClusterJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListClusterJobsResponseUnmarshaller.Instance;return Invoke<ListClusterJobsResponse>(request, options);}
// Original:
public int compareTo(String version) {long gen = Long.parseLong(version, RADIX);long commitGen = commit.getGeneration();return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}

// Translation:
public virtual int CompareTo(string version){long gen = long.Parse(version, NumberStyles.HexNumber);long commitGen = commit.Generation;return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = ",";}return "[MTP[" + sb.toString() + "]]";}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return "";StringBuilder sb = new StringBuilder();string filler = "";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = ",";}return "[MTP[" + sb.ToString() + "]]";}
// Original:
public final float readFloat() throws IOException {return Float.intBitsToFloat(readInt());}

// Translation:
public virtual float readFloat(){throw new System.NotImplementedException();}
// Original:
public boolean isSubTotal(int rowIndex, int columnIndex){boolean subtotal = false;EvaluationCell cell = getSheet().getCell(rowIndex, columnIndex);if(cell != null && cell.getCellType() == CellType.FORMULA){EvaluationWorkbook wb = _bookEvaluator.getWorkbook();for(Ptg ptg : wb.getFormulaTokens(cell)){if(ptg instanceof FuncVarPtg){FuncVarPtg f = (FuncVarPtg)ptg;if("SUBTOTAL".equals(f.getName())) {subtotal = true;break;}}}}return subtotal;}

// Translation:
public bool IsSubTotal(int rowIndex, int columnIndex){bool subtotal = false;IEvaluationCell cell = Sheet.GetCell(rowIndex, columnIndex);if (cell != null && cell.CellType == CellType.Formula){IEvaluationWorkbook wb = _bookEvaluator.Workbook;foreach (Ptg ptg in wb.GetFormulaTokens(cell)){if (ptg is FuncVarPtg){FuncVarPtg f = (FuncVarPtg)ptg;if ("SUBTOTAL".Equals(f.Name)){subtotal = true;break;}}}}return subtotal;}
// Original:
public CreateMonitoringScheduleResult createMonitoringSchedule(CreateMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeCreateMonitoringSchedule(request);}

// Translation:
public virtual CreateMonitoringScheduleResponse CreateMonitoringSchedule(CreateMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<CreateMonitoringScheduleResponse>(request, options);}
// Original:
public TokenStream create(TokenStream input) {return new CzechStemFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new CzechStemFilter(input);}
// Original:
public GetSpeechSynthesisTaskResult getSpeechSynthesisTask(GetSpeechSynthesisTaskRequest request) {request = beforeClientExecution(request);return executeGetSpeechSynthesisTask(request);}

// Translation:
public virtual GetSpeechSynthesisTaskResponse GetSpeechSynthesisTask(GetSpeechSynthesisTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSpeechSynthesisTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSpeechSynthesisTaskResponseUnmarshaller.Instance;return Invoke<GetSpeechSynthesisTaskResponse>(request, options);}
// Original:
public FuzzySet downsize(FieldInfo fieldInfo, FuzzySet initialSet) {float targetMaxSaturation = 0.1f;return initialSet.downsize(targetMaxSaturation);}

// Translation:
public virtual FuzzySet Downsize(FieldInfo fieldInfo, FuzzySet initialSet){const float targetMaxSaturation = 0.1f;return initialSet.Downsize(targetMaxSaturation);}
// Original:
public MonitorInstancesResult monitorInstances(MonitorInstancesRequest request) {request = beforeClientExecution(request);return executeMonitorInstances(request);}

// Translation:
public virtual MonitorInstancesResponse MonitorInstances(MonitorInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = MonitorInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = MonitorInstancesResponseUnmarshaller.Instance;return Invoke<MonitorInstancesResponse>(request, options);}
// Original:
public ListDocumentClassifiersResult listDocumentClassifiers(ListDocumentClassifiersRequest request) {request = beforeClientExecution(request);return executeListDocumentClassifiers(request);}

// Translation:
public virtual ListDocumentClassifiersResponse ListDocumentClassifiers(ListDocumentClassifiersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDocumentClassifiersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDocumentClassifiersResponseUnmarshaller.Instance;return Invoke<ListDocumentClassifiersResponse>(request, options);}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();for (int i = 0; i < fields.length; i++) {buffer.append(fields[i].toString());if ((i+1) < fields.length)buffer.append(',');}return buffer.toString();}

// Translation:
public override string ToString(){StringBuilder buffer = new StringBuilder();for (int i = 0; i < fields.Length; i++){buffer.Append(fields[i].ToString());if ((i + 1) < fields.Length){buffer.Append(',');}}return buffer.ToString();}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_axisType);out.writeInt(field_2_reserved1);out.writeInt(field_3_reserved2);out.writeInt(field_4_reserved3);out.writeInt(field_5_reserved4);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_axisType);out1.WriteInt(field_2_reserved1);out1.WriteInt(field_3_reserved2);out1.WriteInt(field_4_reserved3);out1.WriteInt(field_5_reserved4);}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;final long byte1 = blocks[blocksOffset++] & 0xFF;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | (byte2 >>> 4);final long byte3 = blocks[blocksOffset++] & 0xFF;final long byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}

// 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;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | ((int)((uint)byte2 >> 4));int byte3 = blocks[blocksOffset++] & 0xFF;int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}
// Original:
public StashDropCommand setStashRef(int stashRef) {if (stashRef < 0)throw new IllegalArgumentException();stashRefEntry = stashRef;return this;}

// Translation:
public virtual NGit.Api.StashDropCommand SetStashRef(int stashRef){if (stashRef < 0){throw new ArgumentException();}stashRefEntry = stashRef;return this;}