yijunyu/c-to-rust huggingface dataset:
// Original:
public CreateFleetResult createFleet(CreateFleetRequest request) {request = beforeClientExecution(request);return executeCreateFleet(request);}

// Translation:
public virtual CreateFleetResponse CreateFleet(CreateFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFleetResponseUnmarshaller.Instance;return Invoke<CreateFleetResponse>(request, options);}
// Original:
public GetTransitGatewayAttachmentPropagationsResult getTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request) {request = beforeClientExecution(request);return executeGetTransitGatewayAttachmentPropagations(request);}

// Translation:
public virtual GetTransitGatewayAttachmentPropagationsResponse GetTransitGatewayAttachmentPropagations(GetTransitGatewayAttachmentPropagationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTransitGatewayAttachmentPropagationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTransitGatewayAttachmentPropagationsResponseUnmarshaller.Instance;return Invoke<GetTransitGatewayAttachmentPropagationsResponse>(request, options);}
// Original:
public ListWorkteamsResult listWorkteams(ListWorkteamsRequest request) {request = beforeClientExecution(request);return executeListWorkteams(request);}

// Translation:
public virtual ListWorkteamsResponse ListWorkteams(ListWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWorkteamsResponseUnmarshaller.Instance;return Invoke<ListWorkteamsResponse>(request, options);}
// Original:
public DetachVpnGatewayResult detachVpnGateway(DetachVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDetachVpnGateway(request);}

// Translation:
public virtual DetachVpnGatewayResponse DetachVpnGateway(DetachVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachVpnGatewayResponseUnmarshaller.Instance;return Invoke<DetachVpnGatewayResponse>(request, options);}
// Original:
public ListGeoLocationsResult listGeoLocations() {return listGeoLocations(new ListGeoLocationsRequest());}

// Translation:
public virtual ListGeoLocationsResponse ListGeoLocations(){return ListGeoLocations(new ListGeoLocationsRequest());}
// Original:
public String toString() {return getClass().getName() + " [" +getStringValue() +"]";}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(StringValue);sb.Append("]");return sb.ToString();}
// Original:
public static double decodeNumber(int number) {long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = raw_number;}else{rvalue = Double.longBitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}

// Translation:
public static double DecodeNumber(int number){long raw_number = number;raw_number = raw_number >> 2;double rvalue = 0;if ((number & 0x02) == 0x02){rvalue = (double)(raw_number);}else{rvalue = BitConverter.Int64BitsToDouble(raw_number << 34);}if ((number & 0x01) == 0x01){rvalue /= 100;}return rvalue;}
// Original:
public long get(long index) {assert index >= 0 && index < valueCount;final int block = (int) (index >>> blockShift);final int idx = (int) (index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].get(idx);}

// Translation:
public override long Get(long index){Debug.Assert(index >= 0 && index < valueCount);int block = (int)((long)((ulong)index >> blockShift));int idx = (int)(index & blockMask);return (minValues == null ? 0 : minValues[block]) + subReaders[block].Get(idx);}
// Original:
public UpdatePublishingDestinationResult updatePublishingDestination(UpdatePublishingDestinationRequest request) {request = beforeClientExecution(request);return executeUpdatePublishingDestination(request);}

// Translation:
public virtual UpdatePublishingDestinationResponse UpdatePublishingDestination(UpdatePublishingDestinationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePublishingDestinationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePublishingDestinationResponseUnmarshaller.Instance;return Invoke<UpdatePublishingDestinationResponse>(request, options);}
// Original:
public void notifyDeleteCell(EvaluationCell cell) {int sheetIndex = getSheetIndex(cell.getSheet());_cache.notifyDeleteCell(_workbookIx, sheetIndex, cell);}

// Translation:
public void NotifyDeleteCell(IEvaluationCell cell){int sheetIndex = GetSheetIndex(cell.Sheet);_cache.NotifyDeleteCell(_workbookIx, sheetIndex, cell);}
// Original:
public Request<GetPolicyRequest> marshall(GetPolicyRequest getPolicyRequest) {if (getPolicyRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<GetPolicyRequest> request = new DefaultRequest<GetPolicyRequest>(getPolicyRequest, "AmazonIdentityManagement");request.addParameter("Action", "GetPolicy");request.addParameter("Version", "2010-05-08");request.setHttpMethod(HttpMethodName.POST);if (getPolicyRequest.getPolicyArn() != null) {request.addParameter("PolicyArn", StringUtils.fromString(getPolicyRequest.getPolicyArn()));}return request;}

// Translation:
public IRequest Marshall(GetPolicyRequest publicRequest){IRequest request = new DefaultRequest(publicRequest, "Amazon.Lambda");request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-03-31";request.HttpMethod = "GET";if (!publicRequest.IsSetFunctionName())throw new AmazonLambdaException("Request object does not have required field FunctionName set");request.AddPathResource("{FunctionName}", StringUtils.FromString(publicRequest.FunctionName));if (publicRequest.IsSetQualifier())request.Parameters.Add("Qualifier", StringUtils.FromString(publicRequest.Qualifier));request.ResourcePath = "/2015-03-31/functions/{FunctionName}/policy";request.MarshallerVersion = 2;request.UseQueryString = true;return request;}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num) {return this.evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval real_num, ValueEval i_num){return this.Evaluate(srcRowIndex, srcColumnIndex, real_num, i_num, new StringEval(DEFAULT_SUFFIX));}
// Original:
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) { readHeader( data, offset );int pos            = offset + 8;int size           = 0;field_1_numShapes   =  LittleEndian.getInt( data, pos + size );     size += 4;field_2_lastMSOSPID =  LittleEndian.getInt( data, pos + size );     size += 4;return getRecordSize();}

// Translation:
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;int size = 0;field_1_numShapes = LittleEndian.GetInt(data, pos + size); size += 4;field_2_lastMSOSPID = LittleEndian.GetInt(data, pos + size); size += 4;return RecordSize;}
// Original:
public final CharsetEncoder reset() {status = INIT;implReset();return this;}

// Translation:
public java.nio.charset.CharsetEncoder reset(){status = INIT;implReset();return this;}
// Original:
public void emit(Token token) {this._token = token;}

// Translation:
public virtual void Emit(IToken token){this._token = token;}
// Original:
public AbstractTreeIterator createSubtreeIterator(ObjectReader reader)throws IncorrectObjectTypeException, IOException {if (currentSubtree == null)throw new IncorrectObjectTypeException(getEntryObjectId(),Constants.TYPE_TREE);return new DirCacheBuildIterator(this, currentSubtree);}

// Translation:
public override AbstractTreeIterator CreateSubtreeIterator(ObjectReader reader){if (currentSubtree == null){throw new IncorrectObjectTypeException(EntryObjectId, Constants.TYPE_TREE);}return new NGit.Dircache.DirCacheBuildIterator(this, currentSubtree);}
// Original:
public GreekLowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public GreekLowerCaseFilterFactory(IDictionary<string, string> args) : base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public URI relativize(URI relative) {if (relative.opaque || opaque) {return relative;}if (scheme == null ? relative.scheme != null : !scheme.equals(relative.scheme)) {return relative;}if (authority == null ? relative.authority != null : !authority.equals(relative.authority)) {return relative;}String thisPath = normalize(path, false);String relativePath = normalize(relative.path, false);if (!thisPath.equals(relativePath)) {thisPath = thisPath.substring(0, thisPath.lastIndexOf('/') + 1);if (!relativePath.startsWith(thisPath)) {return relative;}}URI result = new URI();result.fragment = relative.fragment;result.query = relative.query;result.path = relativePath.substring(thisPath.length());result.setSchemeSpecificPart();return result;}

// Translation:
public java.net.URI relativize(java.net.URI relative){if (relative.opaque || opaque){return relative;}if (scheme == null ? relative.scheme != null : !scheme.Equals(relative.scheme)){return relative;}if (authority == null ? relative.authority != null : !authority.Equals(relative.authority)){return relative;}string thisPath = normalize(path, false);string relativePath = normalize(relative.path, false);if (!thisPath.Equals(relativePath)){thisPath = Sharpen.StringHelper.Substring(thisPath, 0, thisPath.LastIndexOf('/')+ 1);if (!relativePath.StartsWith(thisPath)){return relative;}}java.net.URI result = new java.net.URI();result.fragment = relative.fragment;result.query = relative.query;result.path = Sharpen.StringHelper.Substring(relativePath, thisPath.Length);result.setSchemeSpecificPart();return result;}
// Original:
public Reader freeze(boolean trim) {if (frozen) {throw new IllegalStateException("already frozen");}if (didSkipBytes) {throw new IllegalStateException("cannot freeze when copy(BytesRef, BytesRef) was used");}if (trim && upto < blockSize) {final byte[] newBlock = new byte[upto];System.arraycopy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null) {currentBlock = EMPTY_BYTES;}addBlock(currentBlock);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}

// Translation:
public Reader Freeze(bool trim){if (frozen){throw new InvalidOperationException("already frozen");}if (didSkipBytes){throw new InvalidOperationException("cannot freeze when copy(BytesRef, BytesRef) was used");}if (trim && upto < blockSize){var newBlock = new byte[upto];Array.Copy(currentBlock, 0, newBlock, 0, upto);currentBlock = newBlock;}if (currentBlock == null){currentBlock = EMPTY_BYTES;}blocks.Add(currentBlock);blockEnd.Add(upto);frozen = true;currentBlock = null;return new PagedBytes.Reader(this);}
// Original:
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}if (args.length == 3) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}

// Translation:
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}if (args.Length == 3){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1], args[2]);}return ErrorEval.VALUE_INVALID;}
// Original:
public Cluster createCluster(CreateClusterRequest request) {request = beforeClientExecution(request);return executeCreateCluster(request);}

// Translation:
public virtual CreateClusterResponse CreateCluster(CreateClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClusterResponseUnmarshaller.Instance;return Invoke<CreateClusterResponse>(request, options);}
// Original:
public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary,Directory dir, OpenMode mode) throws IOException {super(primary);this.dir = dir;if (mode == OpenMode.CREATE) {clearPriorSnapshots();}loadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0) {throw new IllegalStateException("no snapshots stored in this directory");}}

// Translation:
public PersistentSnapshotDeletionPolicy(IndexDeletionPolicy primary, Directory dir, OpenMode mode): base(primary){this.dir = dir;if (mode == OpenMode.CREATE){ClearPriorSnapshots();}LoadPriorSnapshots();if (mode == OpenMode.APPEND && nextWriteGen == 0){throw new InvalidOperationException("no snapshots stored in this directory");}}
// Original:
public String getText(RuleContext ctx) {return getText(ctx.getSourceInterval());}

// Translation:
public virtual string GetText(RuleContext ctx){return GetText(ctx.SourceInterval);}
// Original:
public final float get() {if (position == limit) {throw new BufferUnderflowException();}return backingArray[offset + position++];}

// Translation:
public sealed override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return backingArray[offset + _position++];}
// Original:
public DeleteDataSetResult deleteDataSet(DeleteDataSetRequest request) {request = beforeClientExecution(request);return executeDeleteDataSet(request);}

// Translation:
public virtual DeleteDataSetResponse DeleteDataSet(DeleteDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDataSetResponseUnmarshaller.Instance;return Invoke<DeleteDataSetResponse>(request, options);}
// Original:
public boolean contains(Object o) {return containsKey(o);}

// Translation:
public override bool contains(object o){return this._enclosing.containsKey(o);}
// Original:
public boolean matches(char s[], int len) {return super.matches(s, len) && !exceptions.contains(s, 0, len);}

// Translation:
public override bool Matches(char[] s, int len){return base.Matches(s, len) && !m_exceptions.Contains(s, 0, len);}
// Original:
public int getDeltaSearchWindowSize() {return deltaSearchWindowSize;}

// Translation:
public virtual int GetDeltaSearchWindowSize(){return deltaSearchWindowSize;}
// Original:
public GetDomainNameResult getDomainName(GetDomainNameRequest request) {request = beforeClientExecution(request);return executeGetDomainName(request);}

// Translation:
public virtual GetDomainNameResponse GetDomainName(GetDomainNameRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainNameRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainNameResponseUnmarshaller.Instance;return Invoke<GetDomainNameResponse>(request, options);}
// Original:
public DeleteAccessLogSettingsResult deleteAccessLogSettings(DeleteAccessLogSettingsRequest request) {request = beforeClientExecution(request);return executeDeleteAccessLogSettings(request);}

// Translation:
public virtual DeleteAccessLogSettingsResponse DeleteAccessLogSettings(DeleteAccessLogSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAccessLogSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAccessLogSettingsResponseUnmarshaller.Instance;return Invoke<DeleteAccessLogSettingsResponse>(request, options);}
// Original:
public QueryValueSource(Query q, float defVal) {this.q = q;this.defVal = defVal;}

// Translation:
public QueryValueSource(Query q, float defVal){this.q = q;this.defVal = defVal;}
// Original:
@Override public Object[] toArray() {return snapshot().toArray();}

// Translation:
public override object[] toArray(){lock (this._enclosing){return base.toArray();}}
// Original:
public String toLexerString() {if ( s0==null ) return "";DFASerializer serializer = new LexerDFASerializer(this);return serializer.toString();}

// Translation:
public String ToLexerString(){if (s0 == null)return "";DFASerializer serializer = new LexerDFASerializer(this);return serializer.ToString();}
// Original:
public void clear() {fill(0, size(), 0);}

// Translation:
public virtual void Clear(){Fill(0, Count, 0);}
// Original:
public GetStreamingDistributionConfigResult getStreamingDistributionConfig(GetStreamingDistributionConfigRequest request) {request = beforeClientExecution(request);return executeGetStreamingDistributionConfig(request);}

// Translation:
public virtual GetStreamingDistributionConfigResponse GetStreamingDistributionConfig(GetStreamingDistributionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStreamingDistributionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStreamingDistributionConfigResponseUnmarshaller.Instance;return Invoke<GetStreamingDistributionConfigResponse>(request, options);}
// Original:
public UpdateDomainContactResult updateDomainContact(UpdateDomainContactRequest request) {request = beforeClientExecution(request);return executeUpdateDomainContact(request);}

// Translation:
public virtual UpdateDomainContactResponse UpdateDomainContact(UpdateDomainContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainContactRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainContactResponseUnmarshaller.Instance;return Invoke<UpdateDomainContactResponse>(request, options);}
// Original:
public ListIterator<E> listIterator(int location) {return new LinkIterator<E>(this, location);}

// Translation:
public override java.util.ListIterator<E> listIterator(int location){return new java.util.LinkedList.LinkIterator<E>(this, location);}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[STARTBLOCK]\n");buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');buffer.append("    .grbitFrt        =").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append("    .iObjectKind     =").append(HexDump.shortToHex(iObjectKind)).append('\n');buffer.append("    .iObjectContext  =").append(HexDump.shortToHex(iObjectContext)).append('\n');buffer.append("    .iObjectInstance1=").append(HexDump.shortToHex(iObjectInstance1)).append('\n');buffer.append("    .iObjectInstance2=").append(HexDump.shortToHex(iObjectInstance2)).append('\n');buffer.append("[/STARTBLOCK]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[STARTBLOCK]\n");buffer.Append("    .rt              =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append("    .grbitFrt        =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append("    .iObjectKind     =").Append(HexDump.ShortToHex(iObjectKind)).Append('\n');buffer.Append("    .iObjectContext  =").Append(HexDump.ShortToHex(iObjectContext)).Append('\n');buffer.Append("    .iObjectInstance1=").Append(HexDump.ShortToHex(iObjectInstance1)).Append('\n');buffer.Append("    .iObjectInstance2=").Append(HexDump.ShortToHex(iObjectInstance2)).Append('\n');buffer.Append("[/STARTBLOCK]\n");return buffer.ToString();}
// Original:
public long get(int index) {final int o = index / 7;final int b = index % 7;final int shift = b * 9;return (blocks[o] >>> shift) & 511L;}

// Translation:
public override long Get(int index){int o = index / 7;int b = index % 7;int shift = b * 9;return ((long)((ulong)blocks[o] >> shift)) & 511L;}
// Original:
public String toString(String field) {StringBuilder buffer = new StringBuilder();boolean needParens = (getLowFreqMinimumNumberShouldMatch() > 0);if (needParens) {buffer.append("(");}for (int i = 0; i < terms.size(); i++) {Term t = terms.get(i);buffer.append(newTermQuery(t, null).toString());if (i != terms.size() - 1) buffer.append(", ");}if (needParens) {buffer.append(")");}if (getLowFreqMinimumNumberShouldMatch() > 0 || getHighFreqMinimumNumberShouldMatch() > 0) {buffer.append('~');buffer.append("(");buffer.append(getLowFreqMinimumNumberShouldMatch());buffer.append(getHighFreqMinimumNumberShouldMatch());buffer.append(")");}return buffer.toString();}

// Translation:
public override string ToString(string field){var buffer = new StringBuilder();bool needParens = (Boost != 1.0) || (LowFreqMinimumNumberShouldMatch > 0);if (needParens){buffer.Append("(");}for (int i = 0; i < m_terms.Count; i++){Term t = m_terms[i];buffer.Append(NewTermQuery(t, null).ToString());if (i != m_terms.Count - 1){buffer.Append(", ");}}if (needParens){buffer.Append(")");}if (LowFreqMinimumNumberShouldMatch > 0 || HighFreqMinimumNumberShouldMatch > 0){buffer.Append('~');buffer.Append("(");buffer.AppendFormat(CultureInfo.InvariantCulture, "{0:0.0#######}", LowFreqMinimumNumberShouldMatch);buffer.AppendFormat(CultureInfo.InvariantCulture, "{0:0.0#######}", HighFreqMinimumNumberShouldMatch);buffer.Append(")");}if (Boost != 1.0f){buffer.Append(ToStringUtils.Boost(Boost));}return buffer.ToString();}
// Original:
public String[] getStopWords(String fieldName) {Set<String> stopWords = stopWordsPerField.get(fieldName);return stopWords != null ? stopWords.toArray(new String[stopWords.size()]) : new String[0];}

// Translation:
public string[] GetStopWords(string fieldName){var stopWords = stopWordsPerField[fieldName];return stopWords != null ? stopWords.ToArray() : new string[0];}
// Original:
public void print(float f) {print(String.valueOf(f));}

// Translation:
public virtual void print(float f){print(f.ToString());}
// Original:
public MopenCreateGroupRequest() {super("MoPen", "2018-02-11", "MopenCreateGroup", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public MopenCreateGroupRequest(): base("MoPen", "2018-02-11", "MopenCreateGroup", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public SmallObject(int type, byte[] data) {this.type = type;this.data = data;}

// Translation:
public SmallObject(int type, byte[] data){this.type = type;this.data = data;}
// Original:
public final boolean matches(char c) {return Character.isUpperCase(c);}

// Translation:
public bool Matches(char c){return System.Char.IsUpper(c);}
// Original:
public StartNotebookInstanceResult startNotebookInstance(StartNotebookInstanceRequest request) {request = beforeClientExecution(request);return executeStartNotebookInstance(request);}

// Translation:
public virtual StartNotebookInstanceResponse StartNotebookInstance(StartNotebookInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartNotebookInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = StartNotebookInstanceResponseUnmarshaller.Instance;return Invoke<StartNotebookInstanceResponse>(request, options);}
// Original:
public static void putUnicodeLE(String input, byte[] output, int offset) {byte[] bytes = input.getBytes(UTF16LE);System.arraycopy(bytes, 0, output, offset, bytes.length);}

// Translation:
public static void PutUnicodeLE(String input, byte[] output, int offset){byte[] bytes = UTF16LE.GetBytes(input);Array.Copy(bytes, 0, output, offset, bytes.Length);}
// Original:
public void deleteDocument(int docID) {final int i = readerIndex(docID);getSequentialSubReaders().get(i).deleteDocument(docID - readerBase(i));}

// Translation:
public void DeleteDocument(int docID){int i = ReaderIndex(docID);((FakeDeleteAtomicIndexReader)GetSequentialSubReaders()[i]).DeleteDocument(docID - ReaderBase(i));}
// Original:
public boolean isRelevant(String docName, QualityQuery query) {QRelJudgement qrj = judgements.get(query.getQueryID());return qrj!=null && qrj.isRelevant(docName);}

// Translation:
public virtual bool IsRelevant(string docName, QualityQuery query){QRelJudgement qrj;judgements.TryGetValue(query.QueryID, out qrj);return qrj != null && qrj.IsRelevant(docName);}
// Original:
public final int getBeginB() {return beginB;}

// Translation:
public int GetBeginB(){return beginB;}