yijunyu/c-to-rust huggingface dataset:
// Original:
public StartSmartHomeApplianceDiscoveryResult startSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request) {request = beforeClientExecution(request);return executeStartSmartHomeApplianceDiscovery(request);}

// Translation:
public virtual StartSmartHomeApplianceDiscoveryResponse StartSmartHomeApplianceDiscovery(StartSmartHomeApplianceDiscoveryRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartSmartHomeApplianceDiscoveryRequestMarshaller.Instance;options.ResponseUnmarshaller = StartSmartHomeApplianceDiscoveryResponseUnmarshaller.Instance;return Invoke<StartSmartHomeApplianceDiscoveryResponse>(request, options);}
// Original:
public Query parse(String queryText) {if ("*".equals(queryText.trim())) {return new MatchAllDocsQuery();}char data[] = queryText.toCharArray();char buffer[] = new char[data.length];State state = new State(data, buffer, 0, data.length);parseSubQuery(state);if (state.top == null) {return new MatchNoDocsQuery("empty string passed to query parser");} else {return state.top;}}

// Translation:
public Query Parse(string queryText){char[] data = queryText.ToCharArray();char[] buffer = new char[data.Length];State state = new State(data, buffer, 0, data.Length);ParseSubQuery(state);return state.Top;}
// Original:
public FuzzySet downsize(float targetMaxSaturation){int numBitsSet = filter.cardinality();FixedBitSet rightSizedBitSet = filter;int rightSizedBitSetSize = bloomSize;for (int i = 0; i < usableBitSetSizes.length; i++) {int candidateBitsetSize = usableBitSetSizes[i];float candidateSaturation = (float) numBitsSet/ (float) candidateBitsetSize;if (candidateSaturation <= targetMaxSaturation) {rightSizedBitSetSize = candidateBitsetSize;break;}}if (rightSizedBitSetSize < bloomSize) {rightSizedBitSet = new FixedBitSet(rightSizedBitSetSize + 1);int bitIndex = 0;do {bitIndex = filter.nextSetBit(bitIndex);if (bitIndex != DocIdSetIterator.NO_MORE_DOCS) {int downSizedBitIndex = bitIndex & rightSizedBitSetSize;rightSizedBitSet.set(downSizedBitIndex);bitIndex++;}} while ( (bitIndex >= 0)&&(bitIndex<=bloomSize));} else {return null;}return new FuzzySet(rightSizedBitSet,rightSizedBitSetSize, hashFunction);}

// Translation:
public virtual FuzzySet Downsize(float targetMaxSaturation){var numBitsSet = _filter.Cardinality();FixedBitSet rightSizedBitSet;var rightSizedBitSetSize = _bloomSize;foreach (var candidateBitsetSize in from candidateBitsetSize in _usableBitSetSizeslet candidateSaturation = numBitsSet /(float) candidateBitsetSizewhere candidateSaturation <= targetMaxSaturationselect candidateBitsetSize){rightSizedBitSetSize = candidateBitsetSize;break;}if (rightSizedBitSetSize < _bloomSize){rightSizedBitSet = new FixedBitSet(rightSizedBitSetSize + 1);var bitIndex = 0;do{bitIndex = _filter.NextSetBit(bitIndex);if (bitIndex < 0) continue;var downSizedBitIndex = bitIndex & rightSizedBitSetSize;rightSizedBitSet.Set(downSizedBitIndex);bitIndex++;} while ((bitIndex >= 0) && (bitIndex <= _bloomSize));}else{return null;}return new FuzzySet(rightSizedBitSet, rightSizedBitSetSize, _hashFunction);}
// Original:
public void set(int val) {this.val = val;returned = false;}

// Translation:
public virtual void Set(int val){this.val = val;returned = false;}
// Original:
public Set<URIishField> getRequiredFields() {return Collections.unmodifiableSet(EnumSet.of(URIishField.PATH));}

// Translation:
public virtual ICollection<TransportProtocol.URIishField> GetRequiredFields(){return Sharpen.Collections.UnmodifiableSet(EnumSet.Of(TransportProtocol.URIishField.PATH));}
// Original:
public Config(Config defaultConfig) {baseConfig = defaultConfig;state = new AtomicReference<>(newState());}

// Translation:
public Config(NGit.Config defaultConfig){baseConfig = defaultConfig;state = new AtomicReference<ConfigSnapshot>(NewState());}
// Original:
public PutAccountSuppressionAttributesResult putAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request) {request = beforeClientExecution(request);return executePutAccountSuppressionAttributes(request);}

// Translation:
public virtual PutAccountSuppressionAttributesResponse PutAccountSuppressionAttributes(PutAccountSuppressionAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAccountSuppressionAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAccountSuppressionAttributesResponseUnmarshaller.Instance;return Invoke<PutAccountSuppressionAttributesResponse>(request, options);}
// Original:
public BufferedIndexInput(String resourceDesc, int bufferSize) {super(resourceDesc);checkBufferSize(bufferSize);this.bufferSize = bufferSize;}

// Translation:
public BufferedIndexInput(string resourceDesc, int bufferSize): base(resourceDesc){CheckBufferSize(bufferSize);this.bufferSize = bufferSize;}
// Original:
public DescribeDocumentClassifierResult describeDocumentClassifier(DescribeDocumentClassifierRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassifier(request);}

// Translation:
public virtual DescribeDocumentClassifierResponse DescribeDocumentClassifier(DescribeDocumentClassifierRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassifierRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassifierResponseUnmarshaller.Instance;return Invoke<DescribeDocumentClassifierResponse>(request, options);}
// Original:
public static Function getBasicFunction(int functionIndex) {switch (functionIndex) {case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null) {throw new NotImplementedException("FuncIx=" + functionIndex);}return result;}

// Translation:
public static Function GetBasicFunction(int functionIndex){switch (functionIndex){case FunctionID.INDIRECT:case FunctionID.EXTERNAL_FUNC:return null;}Function result = functions[functionIndex];if (result == null){throw new NotImplementedException("FuncIx=" + functionIndex);}return result;}
// Original:
public DeleteFacetResult deleteFacet(DeleteFacetRequest request) {request = beforeClientExecution(request);return executeDeleteFacet(request);}

// Translation:
public virtual DeleteFacetResponse DeleteFacet(DeleteFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFacetResponseUnmarshaller.Instance;return Invoke<DeleteFacetResponse>(request, options);}
// Original:
public NameXPtg getNameXPtg(String name, int sheetRefIndex, UDFFinder udf) {LinkTable lnk = getOrCreateLinkTable();NameXPtg xptg = lnk.getNameXPtg(name, sheetRefIndex);if(xptg == null && udf.findFunction(name) != null) {xptg = lnk.addNameXPtg(name);}return xptg;}

// Translation:
public NameXPtg GetNameXPtg(String name, int sheetRefIndex, UDFFinder udf){LinkTable lnk = OrCreateLinkTable;NameXPtg xptg = lnk.GetNameXPtg(name, sheetRefIndex);if (xptg == null && udf.FindFunction(name) != null){xptg = lnk.AddNameXPtg(name);}return xptg;}
// Original:
public int getIndex() {return index;}

// Translation:
public virtual int getIndex(){return index;}
// Original:
public final String toFormulaString() {return formatReferenceAsString();}

// Translation:
public override String ToFormulaString(){return FormatReferenceAsString();}
// Original:
public AllocateTransitVirtualInterfaceResult allocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeAllocateTransitVirtualInterface(request);}

// Translation:
public virtual AllocateTransitVirtualInterfaceResponse AllocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateTransitVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateTransitVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<AllocateTransitVirtualInterfaceResponse>(request, options);}
// Original:
public PushbackInputStream(InputStream in) {super(in);buf = (in == null) ? null : new byte[1];pos = 1;}

// Translation:
public PushbackInputStream(java.io.InputStream @in) : base(@in){buf = (@in == null) ? null : new byte[1];pos = 1;}
// Original:
public int compareTo(PostingsAndFreq other) {if (position != other.position) {return position - other.position;}if (nTerms != other.nTerms) {return nTerms - other.nTerms;}if (nTerms == 0) {return 0;}for (int i=0; i<terms.length; i++) {int res = terms[i].compareTo(other.terms[i]);if (res!=0) return res;}return 0;}

// Translation:
public virtual int CompareTo(PostingsAndFreq other){if (docFreq != other.docFreq){return docFreq - other.docFreq;}if (position != other.position){return position - other.position;}if (nTerms != other.nTerms){return nTerms - other.nTerms;}if (nTerms == 0){return 0;}for (int i = 0; i < terms.Length; i++){int res = terms[i].CompareTo(other.terms[i]);if (res != 0){return res;}}return 0;}
// Original:
public void notifyUpdateCell(EvaluationCell cell) {int sheetIndex = getSheetIndex(cell.getSheet());_cache.notifyUpdateCell(_workbookIx, sheetIndex, cell);}

// Translation:
public void NotifyUpdateCell(IEvaluationCell cell){int sheetIndex = GetSheetIndex(cell.Sheet);_cache.NotifyUpdateCell(_workbookIx, sheetIndex, cell);}
// Original:
public BatchRefUpdate setAllowNonFastForwards(boolean allow) {allowNonFastForwards = allow;return this;}

// Translation:
public virtual NGit.BatchRefUpdate SetAllowNonFastForwards(bool allow){allowNonFastForwards = allow;return this;}
// Original:
public UpdateRouteResult updateRoute(UpdateRouteRequest request) {request = beforeClientExecution(request);return executeUpdateRoute(request);}

// Translation:
public virtual UpdateRouteResponse UpdateRoute(UpdateRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRouteResponseUnmarshaller.Instance;return Invoke<UpdateRouteResponse>(request, options);}
// Original:
public DoubleConstValueSource(double constant) {this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}

// Translation:
public DoubleConstValueSource(double constant){this.constant = constant;this.fv = (float)constant;this.lv = (long)constant;}
// Original:
public void yypushback(int number)  {if ( number > yylength() )zzScanError(ZZ_PUSHBACK_2BIG);zzMarkedPos -= number;}

// Translation:
public void YyPushBack(int number){if (number > YyLength){ZzScanError(ZZ_PUSHBACK_2BIG);}zzMarkedPos -= number;}
// Original:
public int getReturnState(int index) {return returnStates[index];}

// Translation:
public override int GetReturnState(int index){return returnStates[index];}
// Original:
final public SrndQuery WQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries;Token wt;q = PrimaryQuery();label_6:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case W:;break;default:jj_la1[4] = jj_gen;break label_6;}wt = jj_consume_token(W);queries = new ArrayList<SrndQuery>();queries.add(q); q = PrimaryQuery();queries.add(q);q = getDistanceQuery(queries, true , wt, true );}{if (true) return q;}throw new Error("Missing return statement in function");}

// Translation:
public SrndQuery WQuery(){SrndQuery q;IList<SrndQuery> queries;Token wt;q = PrimaryQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.W:;break;default:jj_la1[4] = jj_gen;goto label_6;}wt = Jj_consume_token(RegexpToken.W);queries = new List<SrndQuery>();queries.Add(q); q = PrimaryQuery();queries.Add(q);q = GetDistanceQuery(queries, true , wt, true );}label_6:{ if (true) return q; }throw new Exception("Missing return statement in function");}
// Original:
public ListHITsResult listHITs(ListHITsRequest request) {request = beforeClientExecution(request);return executeListHITs(request);}

// Translation:
public virtual ListHITsResponse ListHITs(ListHITsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHITsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHITsResponseUnmarshaller.Instance;return Invoke<ListHITsResponse>(request, options);}
// Original:
public Set<String> getSubsections(String section) {return getState().getSubsections(section);}

// Translation:
public virtual ICollection<string> GetSubsections(string section){return GetState().GetSubsections(section);}
// Original:
public AttachDiskResult attachDisk(AttachDiskRequest request) {request = beforeClientExecution(request);return executeAttachDisk(request);}

// Translation:
public virtual AttachDiskResponse AttachDisk(AttachDiskRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachDiskRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachDiskResponseUnmarshaller.Instance;return Invoke<AttachDiskResponse>(request, options);}
// Original:
public DescribePoliciesResult describePolicies(DescribePoliciesRequest request) {request = beforeClientExecution(request);return executeDescribePolicies(request);}

// Translation:
public virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance;return Invoke<DescribePoliciesResponse>(request, options);}
// Original:
public boolean isEmpty(){return _limit == 0;}

// Translation:
public bool IsEmpty(){return _limit == 0;}
// Original:
public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor) {super(parent, anchor);super.setShapeType(OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord) getObjRecord().getSubRecords().get(0);cod.setObjectType(CommonObjectDataSubRecord.OBJECT_TYPE_COMBO_BOX);}

// Translation:
public HSSFCombobox(HSSFShape parent, HSSFAnchor anchor): base(parent, anchor){base.ShapeType = (OBJECT_TYPE_COMBO_BOX);CommonObjectDataSubRecord cod = (CommonObjectDataSubRecord)GetObjRecord().SubRecords[0];cod.ObjectType = CommonObjectType.ComboBox;}
// Original:
public void setCalcMode(short calcmode){field_1_calcmode = calcmode;}

// Translation:
public void SetCalcMode(short calcmode){field_1_calcmode = calcmode;}
// Original:
public void resize(double scale) {resize(scale,scale);}

// Translation:
public void Resize(double scale){Resize(scale, scale);}
// Original:
public AssociateAddressResult associateAddress(AssociateAddressRequest request) {request = beforeClientExecution(request);return executeAssociateAddress(request);}

// Translation:
public virtual AssociateAddressResponse AssociateAddress(AssociateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateAddressResponseUnmarshaller.Instance;return Invoke<AssociateAddressResponse>(request, options);}
// Original:
public ConfirmConnectionResult confirmConnection(ConfirmConnectionRequest request) {request = beforeClientExecution(request);return executeConfirmConnection(request);}

// Translation:
public virtual ConfirmConnectionResponse ConfirmConnection(ConfirmConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = ConfirmConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = ConfirmConnectionResponseUnmarshaller.Instance;return Invoke<ConfirmConnectionResponse>(request, options);}
// Original:
public UseSelFSRecord(boolean b) {this(0);_options = useNaturalLanguageFormulasFlag.setBoolean(_options, b);}

// Translation:
public UseSelFSRecord(bool b): this(0){_options = useNaturalLanguageFormulasFlag.SetBoolean(_options, b);}
// Original:
public void start(String originalText, TokenStream stream) {offsetAtt = stream.addAttribute(OffsetAttribute.class);currentNumFrags = 1;}

// Translation:
public virtual void Start(string originalText, TokenStream stream){offsetAtt = stream.AddAttribute<IOffsetAttribute>();currentNumFrags = 1;}
// Original:
public FieldFragList createFieldFragList( FieldPhraseList fieldPhraseList, int fragCharSize ){return createFieldFragList( fieldPhraseList, new SimpleFieldFragList( fragCharSize ), fragCharSize );}

// Translation:
public override FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList, int fragCharSize){return CreateFieldFragList(fieldPhraseList, new SimpleFieldFragList(fragCharSize), fragCharSize);}
// Original:
public StopImageBuilderResult stopImageBuilder(StopImageBuilderRequest request) {request = beforeClientExecution(request);return executeStopImageBuilder(request);}

// Translation:
public virtual StopImageBuilderResponse StopImageBuilder(StopImageBuilderRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopImageBuilderRequestMarshaller.Instance;options.ResponseUnmarshaller = StopImageBuilderResponseUnmarshaller.Instance;return Invoke<StopImageBuilderResponse>(request, options);}
// Original:
public final int readUnsignedShort() throws IOException {return ((int) readShort()) & 0xffff;}

// Translation:
public virtual int readUnsignedShort(){throw new System.NotImplementedException();}
// Original:
public static long pop_xor(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] ^ arr2[i]);}return popCount;}

// Translation:
public static long Pop_Xor(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] ^ arr2[i]).PopCount();}return popCount;}
// Original:
public GetDocumentResult getDocument(GetDocumentRequest request) {request = beforeClientExecution(request);return executeGetDocument(request);}

// Translation:
public virtual GetDocumentResponse GetDocument(GetDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDocumentResponseUnmarshaller.Instance;return Invoke<GetDocumentResponse>(request, options);}
// Original:
public AutocompletePagedResponse(SimpleResponse<AutocompleteResult> autocompleteResponse) {super(autocompleteResponse.getRequest(),autocompleteResponse.getStatusCode(),autocompleteResponse.getHeaders(),autocompleteResponse.getValue().getResults(),null,null);}

// Translation:
public partial interface IOperations{Task<AzureOperationResponse<IEnumerable<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));}
// Original:
public PutPermissionResult putPermission(PutPermissionRequest request) {request = beforeClientExecution(request);return executePutPermission(request);}

// Translation:
public virtual PutPermissionResponse PutPermission(PutPermissionRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutPermissionRequestMarshaller.Instance;options.ResponseUnmarshaller = PutPermissionResponseUnmarshaller.Instance;return Invoke<PutPermissionResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(0);out.writeInt(getFirstRow());out.writeInt(getLastRowAdd1());out.writeInt(field_4_zero);for (int k = 0; k < getNumDbcells(); k++) {out.writeInt(getDbcellAt(k));}}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(0);out1.WriteInt(FirstRow);out1.WriteInt(LastRowAdd1);out1.WriteInt(field_4_zero);for (int k = 0; k < NumDbcells; k++){out1.WriteInt(GetDbcellAt(k));}}
// Original:
public HSSFFormulaEvaluator(HSSFWorkbook workbook) {this(workbook, null);}

// Translation:
public HSSFFormulaEvaluator(IWorkbook workbook): this(workbook, null){this.workbook = workbook;}
// Original:
public int hash2(char carray[]) {int hash = 5381;for (int i = 0; i < carray.length; i++) {char d = carray[i];hash = ((hash << 5) + hash) + d & 0x00FF;hash = ((hash << 5) + hash) + d >> 8;}return hash;}

// Translation:
public virtual int Hash2(char c){int hash = 5381;hash = ((hash << 5) + hash) + c & 0x00FF;hash = ((hash << 5) + hash) + c >> 8;return hash;}
// Original:
public void fillRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"fillRoundRect not supported");}

// Translation:
public void FillRoundRect(int x, int y, int width, int height,int arcWidth, int arcHeight){if (Logger.Check(POILogger.WARN))Logger.Log(POILogger.WARN, "FillRoundRect not supported");}
// Original:
public static SimpleFraction buildFractionExactDenominator(double val, int exactDenom){int num =  (int)Math.round(val*exactDenom);return new SimpleFraction(num,exactDenom);}

// Translation:
public static SimpleFraction BuildFractionExactDenominator(double val, int exactDenom){int num = (int)Math.Round(val * (double)exactDenom, MidpointRounding.AwayFromZero);return new SimpleFraction(num, exactDenom);}
// Original:
public DescribeInsightRulesResult describeInsightRules(DescribeInsightRulesRequest request) {request = beforeClientExecution(request);return executeDescribeInsightRules(request);}

// Translation:
public virtual DescribeInsightRulesResponse DescribeInsightRules(DescribeInsightRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInsightRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInsightRulesResponseUnmarshaller.Instance;return Invoke<DescribeInsightRulesResponse>(request, options);}
// Original:
public ListMFADevicesRequest(String userName) {setUserName(userName);}

// Translation:
public ListMFADevicesRequest(string userName){_userName = userName;}
// Original:
public void removeRow(RowRecord row) {int rowIndex = row.getRowNumber();_valuesAgg.removeAllCellsValuesForRow(rowIndex);Integer key = Integer.valueOf(rowIndex);RowRecord rr = _rowRecords.remove(key);if (rr == null) {throw new RuntimeException("Invalid row index (" + key.intValue() + ")");}if (row != rr) {_rowRecords.put(key, rr);throw new RuntimeException("Attempt to remove row that does not belong to this sheet");}_rowRecordValues = null;}

// Translation:
public void RemoveRow(RowRecord row){int rowIndex = row.RowNumber;_valuesAgg.RemoveAllCellsValuesForRow(rowIndex);int key = rowIndex;RowRecord rr = (RowRecord)_rowRecords[key];_rowRecords.Remove(key);if (rr == null){throw new Exception("Invalid row index (" + key + ")");}if (row != rr){_rowRecords[key] = rr;throw new Exception("Attempt to remove row that does not belong to this sheet");}_rowRecordValues = null;}
// Original:
public DeleteRepositoryPolicyResult deleteRepositoryPolicy(DeleteRepositoryPolicyRequest request) {request = beforeClientExecution(request);return executeDeleteRepositoryPolicy(request);}

// Translation:
public virtual DeleteRepositoryPolicyResponse DeleteRepositoryPolicy(DeleteRepositoryPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryPolicyResponseUnmarshaller.Instance;return Invoke<DeleteRepositoryPolicyResponse>(request, options);}
// Original:
public BackupRecord(RecordInputStream in) {field_1_backup = in.readShort();}

// Translation:
public BackupRecord(RecordInputStream in1){field_1_backup = in1.ReadShort();}
// Original:
public DiffCommand setNewTree(AbstractTreeIterator newTree) {this.newTree = newTree;return this;}

// Translation:
public virtual NGit.Api.DiffCommand SetNewTree(AbstractTreeIterator newTree){this.newTree = newTree;return this;}
// Original:
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 63; shift >= 0; shift -= 1) {values[valuesOffset++] = (block >>> shift) & 1;}}}

// Translation:
public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 63; shift >= 0; shift -= 1){values[valuesOffset++] = ((long)((ulong)block >> shift)) & 1;}}}