yijunyu/c-to-rust huggingface dataset:
// Original:
public void reset() {if ( _input !=null ) {_input.seek(0); }_token = null;_type = Token.INVALID_TYPE;_channel = Token.DEFAULT_CHANNEL;_tokenStartCharIndex = -1;_tokenStartCharPositionInLine = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Lexer.DEFAULT_MODE;_modeStack.clear();getInterpreter().reset();}

// Translation:
public virtual void Reset(){if (_input != null){_input.Seek(0);}_token = null;_type = TokenConstants.InvalidType;_channel = TokenConstants.DefaultChannel;_tokenStartCharIndex = -1;_tokenStartColumn = -1;_tokenStartLine = -1;_text = null;_hitEOF = false;_mode = Antlr4.Runtime.Lexer.DEFAULT_MODE;_modeStack.Clear();Interpreter.Reset();}
// Original:
public ShortBuffer slice() {byteBuffer.limit(limit * SizeOf.SHORT);byteBuffer.position(position * SizeOf.SHORT);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());ShortBuffer result = new ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;}

// Translation:
public override java.nio.ShortBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.SHORT);byteBuffer.position(_position * libcore.io.SizeOf.SHORT);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.ShortBuffer result = new java.nio.ShortToByteBufferAdapter(bb);byteBuffer.clear();return result;}
// Original:
public boolean isPackedGitMMAP() {return packedGitMMAP;}

// Translation:
public virtual bool IsPackedGitMMAP(){return packedGitMMAP;}
// Original:
public boolean equalsSameType(Object other) {assert exists || 0.0D == value;MutableValueDouble b = (MutableValueDouble)other;return value == b.value && exists == b.exists;}

// Translation:
public override bool EqualsSameType(object other){MutableValueDouble b = (MutableValueDouble)other;return Value == b.Value && Exists == b.Exists;}
// Original:
public PurchaseReservedInstancesOfferingResult purchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request) {request = beforeClientExecution(request);return executePurchaseReservedInstancesOffering(request);}

// Translation:
public virtual PurchaseReservedInstancesOfferingResponse PurchaseReservedInstancesOffering(PurchaseReservedInstancesOfferingRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurchaseReservedInstancesOfferingRequestMarshaller.Instance;options.ResponseUnmarshaller = PurchaseReservedInstancesOfferingResponseUnmarshaller.Instance;return Invoke<PurchaseReservedInstancesOfferingResponse>(request, options);}
// Original:
public final char readChar() throws IOException {return (char) readShort();}

// Translation:
public virtual char readChar(){throw new System.NotImplementedException();}
// Original:
public AssociateRepositoryResult associateRepository(AssociateRepositoryRequest request) {request = beforeClientExecution(request);return executeAssociateRepository(request);}

// Translation:
public virtual AssociateRepositoryResponse AssociateRepository(AssociateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRepositoryResponseUnmarshaller.Instance;return Invoke<AssociateRepositoryResponse>(request, options);}
// Original:
public ImportApiKeysResult importApiKeys(ImportApiKeysRequest request) {request = beforeClientExecution(request);return executeImportApiKeys(request);}

// Translation:
public virtual ImportApiKeysResponse ImportApiKeys(ImportApiKeysRequest request){var options = new InvokeOptions();options.RequestMarshaller = ImportApiKeysRequestMarshaller.Instance;options.ResponseUnmarshaller = ImportApiKeysResponseUnmarshaller.Instance;return Invoke<ImportApiKeysResponse>(request, options);}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_index_extern_sheet);out.writeInt(unused1);out.writeInt(unused2);}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_index_extern_sheet);out1.WriteInt(unused1);out1.WriteInt(unused2);}
// Original:
public Type getType() {return type;}

// Translation:
public virtual BinaryHunk.Type GetType(){return type;}
// Original:
public static Calendar getJavaCalendar(double date, boolean use1904windowing) {return getJavaCalendar(date, use1904windowing, null, false);}

// Translation:
public static DateTime GetJavaCalendar(double date, bool use1904windowing){return GetJavaCalendar(date, use1904windowing, false);}
// Original:
public DeleteSnapshotScheduleResult deleteSnapshotSchedule(DeleteSnapshotScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteSnapshotSchedule(request);}

// Translation:
public virtual DeleteSnapshotScheduleResponse DeleteSnapshotSchedule(DeleteSnapshotScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSnapshotScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSnapshotScheduleResponseUnmarshaller.Instance;return Invoke<DeleteSnapshotScheduleResponse>(request, options);}
// Original:
public void writeProtectWorkbook( String password, String username ) {this.workbook.writeProtectWorkbook(password, username);}

// Translation:
public void WriteProtectWorkbook(String password, String username){this.workbook.WriteProtectWorkbook(password, username);}
// Original:
public CreateCloudFormationStackResult createCloudFormationStack(CreateCloudFormationStackRequest request) {request = beforeClientExecution(request);return executeCreateCloudFormationStack(request);}

// Translation:
public virtual CreateCloudFormationStackResponse CreateCloudFormationStack(CreateCloudFormationStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCloudFormationStackRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCloudFormationStackResponseUnmarshaller.Instance;return Invoke<CreateCloudFormationStackResponse>(request, options);}
// Original:
public void writeByte(byte b) throws IOException {assert bufferPos == buffer.position(): "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position();buffer.put(b);if (++bufferPos == bufferSize) {dump();}}

// Translation:
public void writeByte(sbyte b) throws IOException{Debug.Assert(bufferPos == buffer.position(), "bufferPos=" + bufferPos + " vs buffer.position()=" + buffer.position());buffer.put(b);if (++bufferPos == bufferSize){dump();}}
// Original:
public ExtendedFormatRecord(RecordInputStream in) {field_1_font_index           = in.readShort();field_2_format_index         = in.readShort();field_3_cell_options         = in.readShort();field_4_alignment_options    = in.readShort();field_5_indention_options    = in.readShort();field_6_border_options       = in.readShort();field_7_palette_options      = in.readShort();field_8_adtl_palette_options = in.readInt();field_9_fill_palette_options = in.readShort();}

// Translation:
public ExtendedFormatRecord(RecordInputStream in1){field_1_font_index = in1.ReadShort();field_2_format_index = in1.ReadShort();field_3_cell_options = in1.ReadShort();field_4_alignment_options = in1.ReadShort();field_5_indention_options = in1.ReadShort();field_6_border_options = in1.ReadShort();field_7_palette_options = in1.ReadShort();field_8_adtl_palette_options = in1.ReadInt();field_9_fill_palette_options = in1.ReadShort();}
// Original:
public int getExternalSheetIndex(String workbookName, String sheetName) {return _iBook.getExternalSheetIndex(workbookName, sheetName);}

// Translation:
public int GetExternalSheetIndex(String workbookName, String sheetName){return _iBook.GetExternalSheetIndex(workbookName, sheetName);}
// Original:
public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root) {super(spContainer, objRecord);this._root = _root;}

// Translation:
public HSSFObjectData(EscherContainerRecord spContainer, ObjRecord objRecord, DirectoryEntry _root): base(spContainer, objRecord){this._root = _root;}
// Original:
public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;}

// Translation:
public virtual long RamBytesUsed(){long bytesUsed = RamUsageEstimator.AlignObjectSize(BaseRamBytesUsed()) + (pending != null ? RamUsageEstimator.SizeOf(pending) : 0L) + RamUsageEstimator.AlignObjectSize(RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + (long)RamUsageEstimator.NUM_BYTES_OBJECT_REF * values.Length); return bytesUsed + valuesBytes;}
// Original:
public UpdateApnsVoipChannelResult updateApnsVoipChannel(UpdateApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsVoipChannel(request);}

// Translation:
public virtual UpdateApnsVoipChannelResponse UpdateApnsVoipChannel(UpdateApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsVoipChannelResponseUnmarshaller.Instance;return Invoke<UpdateApnsVoipChannelResponse>(request, options);}
// Original:
public String[] getNames() {return nameValPairs.keySet().toArray(new String[0]);}

// Translation:
public virtual string[] GetNames(){return nameValPairs.Keys.ToArray();}
// Original:
public DeleteAutoSnapshotResult deleteAutoSnapshot(DeleteAutoSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteAutoSnapshot(request);}

// Translation:
public virtual DeleteAutoSnapshotResponse DeleteAutoSnapshot(DeleteAutoSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAutoSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAutoSnapshotResponseUnmarshaller.Instance;return Invoke<DeleteAutoSnapshotResponse>(request, options);}
// Original:
public int getLowIx() {return _lowIx;}

// Translation:
public int GetLowIx(){return _lowIx;}
// Original:
public DescribeSubscribedWorkteamResult describeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request) {request = beforeClientExecution(request);return executeDescribeSubscribedWorkteam(request);}

// Translation:
public virtual DescribeSubscribedWorkteamResponse DescribeSubscribedWorkteam(DescribeSubscribedWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubscribedWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubscribedWorkteamResponseUnmarshaller.Instance;return Invoke<DescribeSubscribedWorkteamResponse>(request, options);}
// Original:
public DeleteVpnGatewayResult deleteVpnGateway(DeleteVpnGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteVpnGateway(request);}

// Translation:
public virtual DeleteVpnGatewayResponse DeleteVpnGateway(DeleteVpnGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpnGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpnGatewayResponseUnmarshaller.Instance;return Invoke<DeleteVpnGatewayResponse>(request, options);}
// Original:
public boolean get(int index) {return intSet.exists(index);}

// Translation:
public virtual bool Get(int index){return intSet.Exists(index);}
// Original:
public String constantName() {return constantName;}

// Translation:
public virtual string constantName(){return _constantName;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_formatIndex);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_formatIndex);}
// Original:
public boolean isEmpty() {return size() == 0;}

// Translation:
public virtual bool isEmpty(){return size() == 0;}
// Original:
public DescribeCacheParametersResult describeCacheParameters(DescribeCacheParametersRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameters(request);}

// Translation:
public virtual DescribeCacheParametersResponse DescribeCacheParameters(DescribeCacheParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParametersResponseUnmarshaller.Instance;return Invoke<DescribeCacheParametersResponse>(request, options);}
// Original:
public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}

// Translation:
public SimpleFraction(int numerator, int denominator){this.numerator = numerator;this.denominator = denominator;}
// Original:
public static int idealBooleanArraySize(int need) {return idealByteArraySize(need);}

// Translation:
public static int idealBooleanArraySize(int need){return idealByteArraySize(need);}
// Original:
public SubmoduleStatusCommand submoduleStatus() {return new SubmoduleStatusCommand(repo);}

// Translation:
public virtual SubmoduleStatusCommand SubmoduleStatus(){return new SubmoduleStatusCommand(repo);}
// Original:
public PutRecordBatchResult putRecordBatch(PutRecordBatchRequest request) {request = beforeClientExecution(request);return executePutRecordBatch(request);}

// Translation:
public virtual PutRecordBatchResponse PutRecordBatch(PutRecordBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutRecordBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = PutRecordBatchResponseUnmarshaller.Instance;return Invoke<PutRecordBatchResponse>(request, options);}
// Original:
public QueryTermScorer(WeightedTerm[] weightedTerms) {termsToFind = new HashMap<>();for (int i = 0; i < weightedTerms.length; i++) {WeightedTerm existingTerm = termsToFind.get(weightedTerms[i].term);if ((existingTerm == null)|| (existingTerm.weight < weightedTerms[i].weight)) {termsToFind.put(weightedTerms[i].term, weightedTerms[i]);maxTermWeight = Math.max(maxTermWeight, weightedTerms[i].getWeight());}}}

// Translation:
public QueryTermScorer(WeightedTerm[] weightedTerms){termsToFind = new Dictionary<string, WeightedTerm>();for (int i = 0; i < weightedTerms.Length; i++){if (!termsToFind.TryGetValue(weightedTerms[i].Term, out WeightedTerm existingTerm)|| (existingTerm == null)|| (existingTerm.Weight < weightedTerms[i].Weight)){termsToFind[weightedTerms[i].Term] = weightedTerms[i];maxTermWeight = Math.Max(maxTermWeight, weightedTerms[i].Weight);}}}
// Original:
public static boolean allSubsetsConflict(Collection<BitSet> altsets) {return !hasNonConflictingAltSet(altsets);}

// Translation:
public static bool AllSubsetsConflict(IEnumerable<BitSet> altsets){return !HasNonConflictingAltSet(altsets);}
// Original:
public DescribeRuntimeConfigurationResult describeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeRuntimeConfiguration(request);}

// Translation:
public virtual DescribeRuntimeConfigurationResponse DescribeRuntimeConfiguration(DescribeRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRuntimeConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeRuntimeConfigurationResponse>(request, options);}
// Original:
public RevCommit parseCommit(AnyObjectId id)throws MissingObjectException, IncorrectObjectTypeException,IOException {RevObject c = peel(parseAny(id));if (!(c instanceof RevCommit))throw new IncorrectObjectTypeException(id.toObjectId(),Constants.TYPE_COMMIT);return (RevCommit) c;}

// Translation:
public virtual RevCommit ParseCommit(AnyObjectId id){RevObject c = Peel(ParseAny(id));if (!(c is RevCommit)){throw new IncorrectObjectTypeException(id.ToObjectId(), Constants.TYPE_COMMIT);}return (RevCommit)c;}
// Original:
public short readShort() {return (short)readUShort();}

// Translation:
public short ReadShort(){return (short)ReadUShort();}
// Original:
public final void clear() {for (int i = 0; i <= size; i++) {heap[i] = null;}size = 0;}

// Translation:
public void Clear(){for (int i = 0; i <= size; i++){heap[i] = default(T);}size = 0;}
// Original:
public CreateVPCAssociationAuthorizationResult createVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeCreateVPCAssociationAuthorization(request);}

// Translation:
public virtual CreateVPCAssociationAuthorizationResponse CreateVPCAssociationAuthorization(CreateVPCAssociationAuthorizationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVPCAssociationAuthorizationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVPCAssociationAuthorizationResponseUnmarshaller.Instance;return Invoke<CreateVPCAssociationAuthorizationResponse>(request, options);}
// Original:
public ModifyCacheParameterGroupRequest(String cacheParameterGroupName, java.util.List<ParameterNameValue> parameterNameValues) {setCacheParameterGroupName(cacheParameterGroupName);setParameterNameValues(parameterNameValues);}

// Translation:
public ModifyCacheParameterGroupRequest(string cacheParameterGroupName, List<ParameterNameValue> parameterNameValues){_cacheParameterGroupName = cacheParameterGroupName;_parameterNameValues = parameterNameValues;}
// Original:
public boolean equals( Object o ) {return o instanceof CatalanStemmer;}

// Translation:
public override bool Equals(object o){return o is CatalanStemmer;}
// Original:
public AutomatonQuery(final Term term, Automaton automaton) {this(term, automaton, Operations.DEFAULT_MAX_DETERMINIZED_STATES);}

// Translation:
public AutomatonQuery(Term term, Automaton automaton): base(term.Field){this.m_term = term;this.m_automaton = automaton;this.m_compiled = new CompiledAutomaton(automaton);}
// Original:
public String getPattern() {return pattern;}

// Translation:
public virtual string GetPattern(){return pattern;}
// Original:
public int compareTo(IntBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;int thisInt, otherInt;while (compareRemaining > 0) {thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if (thisInt != otherInt) {return thisInt < otherInt ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}

// Translation:
public virtual int compareTo(java.nio.IntBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;int thisInt;int otherInt;while (compareRemaining > 0){thisInt = get(thisPos);otherInt = otherBuffer.get(otherPos);if (thisInt != otherInt){return thisInt < otherInt ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
// Original:
public final boolean hasNext() {return next != header;}

// Translation:
public virtual bool hasNext(){return this._next != this._enclosing.header;}
// Original:
public Class<IndexChangedListener> getListenerType() {return IndexChangedListener.class;}

// Translation:
public override Type GetListenerType(){return typeof(IndexChangedListener);}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[OBJECTLINK]\n");buffer.append("    .anchorId             = ").append("0x").append(HexDump.toHex(  getAnchorId ())).append(" (").append( getAnchorId() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("    .link1                = ").append("0x").append(HexDump.toHex(  getLink1 ())).append(" (").append( getLink1() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("    .link2                = ").append("0x").append(HexDump.toHex(  getLink2 ())).append(" (").append( getLink2() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("[/OBJECTLINK]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[OBJECTLINK]\n");buffer.Append("    .AnchorId             = ").Append("0x").Append(HexDump.ToHex(AnchorId)).Append(" (").Append(AnchorId).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("    .link1                = ").Append("0x").Append(HexDump.ToHex(Link1)).Append(" (").Append(Link1).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("    .link2                = ").Append("0x").Append(HexDump.ToHex(Link2)).Append(" (").Append(Link2).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/OBJECTLINK]\n");return buffer.ToString();}
// Original:
public void setDetectRenames(boolean on) {if (on && renameDetector == null) {assertHaveReader();renameDetector = new RenameDetector(reader, diffCfg);} else if (!on)renameDetector = null;}

// Translation:
public virtual void SetDetectRenames(bool on){if (on && renameDetector == null){AssertHaveRepository();renameDetector = new RenameDetector(db);}else{if (!on){renameDetector = null;}}}
// Original:
public boolean isSupported(int bitsPerValue) {return Packed64SingleBlock.isSupported(bitsPerValue);}

// Translation:
public virtual bool IsSupported(int bitsPerValue){return bitsPerValue >= 1 && bitsPerValue <= 64;}
// Original:
public void setOutputUnigrams(boolean outputUnigrams) {this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence();}

// Translation:
public void SetOutputUnigrams(bool outputUnigrams){this.outputUnigrams = outputUnigrams;gramSize = new CircularSequence(this);}
// Original:
public TypeAsPayloadTokenFilter create(TokenStream input) {return new TypeAsPayloadTokenFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new TypeAsPayloadTokenFilter(input);}
// Original:
public CreateIndexResult createIndex(CreateIndexRequest request) {request = beforeClientExecution(request);return executeCreateIndex(request);}

// Translation:
public virtual CreateIndexResponse CreateIndex(CreateIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIndexResponseUnmarshaller.Instance;return Invoke<CreateIndexResponse>(request, options);}
// Original:
public QualityQuery(String queryID, Map<String,String> nameValPairs) {this.queryID = queryID;this.nameValPairs = nameValPairs;}

// Translation:
public QualityQuery(string queryID, IDictionary<string, string> nameValPairs){this.queryID = queryID;this.nameValPairs = nameValPairs;}
// Original:
public void addFirst(E object) {addFirstImpl(object);}

// Translation:
public virtual void addFirst(E @object){addFirstImpl(@object);}
// Original:
public ValidateConfigurationSettingsRequest(String applicationName, java.util.List<ConfigurationOptionSetting> optionSettings) {setApplicationName(applicationName);setOptionSettings(optionSettings);}

// Translation:
public ValidateConfigurationSettingsRequest(string applicationName, List<ConfigurationOptionSetting> optionSettings){_applicationName = applicationName;_optionSettings = optionSettings;}
// Original:
public static FileKey exact(File directory, FS fs) {return new FileKey(directory, fs);}

// Translation:
public static RepositoryCache.FileKey Exact(FilePath directory, FS fs){return new RepositoryCache.FileKey(directory, fs);}
// Original:
public void removeScale() {remove1stProperty(PropertyIDMap.PID_SCALE);}

// Translation:
public void RemoveScale(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SCALE);}
// Original:
public DocumentDictionary(IndexReader reader, String field, String weightField, String payloadField, String contextsField) {this.reader = reader;this.field = field;this.weightField = weightField;this.payloadField = payloadField;this.contextsField = contextsField;}

// Translation:
public DocumentDictionary(IndexReader reader, string field, string weightField, string payloadField, string contextsField){this.m_reader = reader;this.field = field;this.weightField = weightField;this.m_payloadField = payloadField;this.m_contextsField = contextsField;}