yijunyu/c-to-rust huggingface dataset:
// Original:
public GetHostedZoneCountResult getHostedZoneCount() {return getHostedZoneCount(new GetHostedZoneCountRequest());}

// Translation:
public virtual GetHostedZoneCountResponse GetHostedZoneCount(){return GetHostedZoneCount(new GetHostedZoneCountRequest());}
// Original:
public NameXPtg getNameXPtg(String name, int sheetRefIndex) {for (int i = 0; i < _externalBookBlocks.length; i++) {int definedNameIndex = _externalBookBlocks[i].getIndexOfName(name);if (definedNameIndex < 0) {continue;}int thisSheetRefIndex = findRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0) {if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex) {return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}

// Translation:
public NameXPtg GetNameXPtg(String name, int sheetRefIndex){for (int i = 0; i < _externalBookBlocks.Length; i++){int definedNameIndex = _externalBookBlocks[i].GetIndexOfName(name);if (definedNameIndex < 0){continue;}int thisSheetRefIndex = FindRefIndexFromExtBookIndex(i);if (thisSheetRefIndex >= 0){if (sheetRefIndex == -1 || thisSheetRefIndex == sheetRefIndex){return new NameXPtg(thisSheetRefIndex, definedNameIndex);}}}return null;}
// Original:
public E pop() {return removeFirstImpl();}

// Translation:
public virtual E pop(){return removeFirstImpl();}
// Original:
public void set(ET object) {if (expectedModCount == list.modCount) {if (lastLink != null) {lastLink.data = object;} else {throw new IllegalStateException();}} else {throw new ConcurrentModificationException();}}

// Translation:
public void set(ET @object){if (expectedModCount == list.modCount){if (lastLink != null){lastLink.data = @object;}else{throw new System.InvalidOperationException();}}else{throw new java.util.ConcurrentModificationException();}}
// Original:
public ElisionFilterFactory(Map<String,String> args) {super(args);articlesFile = get(args, "articles");ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public ElisionFilterFactory(IDictionary<string, string> args) : base(args){articlesFile = Get(args, "articles");ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public int[] grow() {final int[] ord = super.grow();if (start.length < ord.length) {start = ArrayUtil.grow(start, ord.length);end = ArrayUtil.grow(end, ord.length);freq = ArrayUtil.grow(freq, ord.length);}assert start.length >= ord.length;assert end.length >= ord.length;assert freq.length >= ord.length;return ord;}

// Translation:
public override int[] Grow(){int[] ord = base.Grow();if (start.Length < ord.Length){start = ArrayUtil.Grow(start, ord.Length);end = ArrayUtil.Grow(end, ord.Length);freq = ArrayUtil.Grow(freq, ord.Length);}Debug.Assert(start.Length >= ord.Length);Debug.Assert(end.Length >= ord.Length);Debug.Assert(freq.Length >= ord.Length);return ord;}
// Original:
public GetPersonalizedRankingResult getPersonalizedRanking(GetPersonalizedRankingRequest request) {request = beforeClientExecution(request);return executeGetPersonalizedRanking(request);}

// Translation:
public virtual GetPersonalizedRankingResponse GetPersonalizedRanking(GetPersonalizedRankingRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPersonalizedRankingRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPersonalizedRankingResponseUnmarshaller.Instance;return Invoke<GetPersonalizedRankingResponse>(request, options);}
// Original:
public ObjectId getObjectId() {return ObjectId.fromRaw(idBuffer(), idOffset());}

// Translation:
public virtual ObjectId GetObjectId(){return ObjectId.FromRaw(IdBuffer, IdOffset);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(getFirstRow());out.writeInt(getLastRow());out.writeShort(getFirstCol());out.writeShort(getLastCol());out.writeShort(( short ) 0);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(FirstRow);out1.WriteInt(LastRow);out1.WriteShort(FirstCol);out1.WriteShort(LastCol);out1.WriteShort(( short ) 0);}
// Original:
public RmCommand(Repository repo) {super(repo);filepatterns = new LinkedList<>();}

// Translation:
protected internal RmCommand(Repository repo) : base(repo){filepatterns = new List<string>();}
// Original:
public void recover(Parser recognizer, RecognitionException e) {for (ParserRuleContext context = recognizer.getContext(); context != null; context = context.getParent()) {context.exception = e;}throw new ParseCancellationException(e);}

// Translation:
public override void Recover(Parser recognizer, RecognitionException e){for (ParserRuleContext context = recognizer.Context; context != null; context = ((ParserRuleContext)context.Parent)){context.exception = e;}throw new ParseCanceledException(e);}
// Original:
public static BATBlock createBATBlock(final POIFSBigBlockSize bigBlockSize, ByteBuffer data){BATBlock block = new BATBlock(bigBlockSize);byte[] buffer = new byte[LittleEndian.INT_SIZE];for(int i=0; i<block._values.length; i++) {data.get(buffer);block._values[i] = LittleEndian.getInt(buffer);}block.recomputeFree();return block;}

// Translation:
public static BATBlock CreateBATBlock(POIFSBigBlockSize bigBlockSize, ByteBuffer data){BATBlock block = new BATBlock(bigBlockSize);byte[] buffer = new byte[LittleEndianConsts.INT_SIZE];for (int i = 0; i < block._values.Length; i++){data.Read(buffer);block._values[i] = LittleEndian.GetInt(buffer);}block.RecomputeFree();return block;}
// Original:
public byte[] toByteArray() throws IOException {final long len = length();if (Integer.MAX_VALUE < len)throw new OutOfMemoryError(JGitText.get().lengthExceedsMaximumArraySize);final byte[] out = new byte[(int) len];int outPtr = 0;for (Block b : blocks) {System.arraycopy(b.buffer, 0, out, outPtr, b.count);outPtr += b.count;}return out;}

// Translation:
public virtual byte[] ToByteArray(){long len = Length();if (int.MaxValue < len){throw new OutOfMemoryException(JGitText.Get().lengthExceedsMaximumArraySize);}byte[] @out = new byte[(int)len];int outPtr = 0;foreach (TemporaryBuffer.Block b in blocks){System.Array.Copy(b.buffer, 0, @out, outPtr, b.count);outPtr += b.count;}return @out;}
// Original:
public short clearShort(final short holder){return ( short ) clear(holder);}

// Translation:
public short ClearShort(short holder){return (short)this.Clear(holder);}
// Original:
public final String toString() {StringBuilder sb = new StringBuilder();String recordName = getRecordName();sb.append("[").append(recordName).append("]\n");sb.append("    .row    = ").append(HexDump.shortToHex(getRow())).append("\n");sb.append("    .col    = ").append(HexDump.shortToHex(getColumn())).append("\n");sb.append("    .xfindex= ").append(HexDump.shortToHex(getXFIndex())).append("\n");appendValueText(sb);sb.append("\n");sb.append("[/").append(recordName).append("]\n");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();String recordName = RecordName;sb.Append("[").Append(recordName).Append("]\n");sb.Append("    .row    = ").Append(HexDump.ShortToHex(Row)).Append("\n");sb.Append("    .col    = ").Append(HexDump.ShortToHex(Column)).Append("\n");sb.Append("    .xfindex= ").Append(HexDump.ShortToHex(XFIndex)).Append("\n");AppendValueText(sb);sb.Append("\n");sb.Append("[/").Append(recordName).Append("]\n");return sb.ToString();}
// Original:
public IllegalFormatCodePointException(int c) {this.c = c;}

// Translation:
public IllegalFormatCodePointException(int c){this.c = c;}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return "@" + this.schema + ":'" + this.value + "'";}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return "@" + this.schema + ":'" + this.value + "'";}
// Original:
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}try {double startDateAsNumber = NumericFunction.singleOperandEvaluate(args[0], ec.getRowIndex(), ec.getColumnIndex());int months = (int) NumericFunction.singleOperandEvaluate(args[1], ec.getRowIndex(), ec.getColumnIndex());if (startDateAsNumber >= 0.0 && startDateAsNumber < 1.0) {startDateAsNumber = 1.0;}Date startDate = DateUtil.getJavaDate(startDateAsNumber, false);Calendar cal = LocaleUtil.getLocaleCalendar();cal.setTime(startDate);cal.clear(Calendar.HOUR);cal.set(Calendar.HOUR_OF_DAY, 0);cal.clear(Calendar.MINUTE);cal.clear(Calendar.SECOND);cal.clear(Calendar.MILLISECOND);cal.add(Calendar.MONTH, months + 1);cal.set(Calendar.DAY_OF_MONTH, 1);cal.add(Calendar.DAY_OF_MONTH, -1);return new NumberEval(DateUtil.getExcelDate(cal.getTime()));} catch (EvaluationException e) {return e.getErrorEval();}}

// Translation:
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}try{double startDateAsNumber = NumericFunction.SingleOperandEvaluate(args[0], ec.RowIndex, ec.ColumnIndex);int months = (int)NumericFunction.SingleOperandEvaluate(args[1], ec.RowIndex, ec.ColumnIndex);if (startDateAsNumber >= 0.0 && startDateAsNumber < 1.0){startDateAsNumber = 1.0;}DateTime startDate = DateUtil.GetJavaDate(startDateAsNumber, false);DateTime dtEnd = startDate.AddMonths(months);dtEnd = dtEnd.AddMonths(1);dtEnd = new DateTime(dtEnd.Year, dtEnd.Month, 1);dtEnd = dtEnd.AddDays(-1);return new NumberEval(DateUtil.GetExcelDate(dtEnd));}catch (EvaluationException e){return e.GetErrorEval();}}
// Original:
public UnicodeString getSSTString(int str) {if (sst == null) {insertSST();}UnicodeString retval = sst.getString(str);LOG.log(DEBUG, "Returning SST for index=", str, " String= ", retval);return retval;}

// Translation:
public UnicodeString GetSSTString(int str){if (sst == null){InsertSST();}UnicodeString retval = sst.GetString(str);return retval;}
// Original:
public String quote(String in) {final StringBuilder r = new StringBuilder();r.append('\'');int start = 0, i = 0;for (; i < in.length(); i++) {switch (in.charAt(i)) {case '\'':case '!':r.append(in, start, i);r.append('\'');r.append('\\');r.append(in.charAt(i));r.append('\'');start = i + 1;break;}}r.append(in, start, i);r.append('\'');return r.toString();}

// Translation:
public override string Quote(string @in){StringBuilder r = new StringBuilder();r.Append('\'');int start = 0;int i = 0;for (; i < @in.Length; i++){switch (@in[i]){case '\'':case '!':{r.AppendRange(@in, start, i);r.Append('\'');r.Append('\\');r.Append(@in[i]);r.Append('\'');start = i + 1;break;}}}r.AppendRange(@in, start, i);r.Append('\'');return r.ToString();}
// Original:
public void clear() {lastElement = 0;currentOffset = 0;Arrays.fill(offsets, 0);pool.reset(false, true); }

// Translation:
public void Clear(){lastElement = 0;currentOffset = 0;Array.Clear(offsets, 0, offsets.Length);pool.Reset(false, true); }
// Original:
public ReplaceableItem(String name, java.util.List<ReplaceableAttribute> attributes) {setName(name);setAttributes(attributes);}

// Translation:
public ReplaceableItem(string name, List<ReplaceableAttribute> attributes){_name = name;_attributes = attributes;}
// Original:
public int getScore() {return score;}

// Translation:
public virtual int GetScore(){return score;}
// Original:
public IrishLowerCaseFilter(TokenStream in) {super(in);}

// Translation:
public IrishLowerCaseFilter(TokenStream @in): base(@in){termAtt = AddAttribute<ICharTermAttribute>();}
// Original:
public synchronized void setSecondaryProgress(int secondaryProgress) {if (mIndeterminate) {return;}if (secondaryProgress < 0) {secondaryProgress = 0;}if (secondaryProgress > mMax) {secondaryProgress = mMax;}if (secondaryProgress != mSecondaryProgress) {mSecondaryProgress = secondaryProgress;refreshProgress(R.id.secondaryProgress, mSecondaryProgress, false);}}

// Translation:
public virtual void setSecondaryProgress(int secondaryProgress){lock (this){if (mIndeterminate){return;}if (secondaryProgress < 0){secondaryProgress = 0;}if (secondaryProgress > mMax){secondaryProgress = mMax;}if (secondaryProgress != mSecondaryProgress){mSecondaryProgress = secondaryProgress;refreshProgress(android.@internal.R.id.secondaryProgress, mSecondaryProgress, false);}}}
// Original:
public static byte[] grow(byte[] array) {return grow(array, 1 + array.length);}

// Translation:
public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}
// Original:
public List<Token> getHiddenTokensToRight(int tokenIndex) {return getHiddenTokensToRight(tokenIndex, -1);}

// Translation:
public virtual IList<IToken> GetHiddenTokensToRight(int tokenIndex){return GetHiddenTokensToRight(tokenIndex, -1);}
// Original:
public DataValidityTable() {_headerRec = new DVALRecord();_validationList = new ArrayList<>();}

// Translation:
public DataValidityTable(){_headerRec = new DVALRecord();_validationList = new ArrayList();}
// Original:
public EvaluationException(ErrorEval errorEval) {_errorEval = errorEval;}

// Translation:
public EvaluationException(ErrorEval errorEval){_errorEval = errorEval;}
// Original:
public UpdateConfigurationTemplateRequest(String applicationName, String templateName) {setApplicationName(applicationName);setTemplateName(templateName);}

// Translation:
public UpdateConfigurationTemplateRequest(string applicationName, string templateName){_applicationName = applicationName;_templateName = templateName;}
// Original:
public DescribeAvailabilityZonesResult describeAvailabilityZones(DescribeAvailabilityZonesRequest request) {request = beforeClientExecution(request);return executeDescribeAvailabilityZones(request);}

// Translation:
public virtual DescribeAvailabilityZonesResponse DescribeAvailabilityZones(DescribeAvailabilityZonesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAvailabilityZonesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAvailabilityZonesResponseUnmarshaller.Instance;return Invoke<DescribeAvailabilityZonesResponse>(request, options);}
// Original:
public static int idealShortArraySize(int need) {return idealByteArraySize(need * 2) / 2;}

// Translation:
public static int idealShortArraySize(int need){return idealByteArraySize(need * 2) / 2;}
// Original:
public NumericPayloadTokenFilterFactory(Map<String, String> args) {super(args);payload = requireFloat(args, "payload");typeMatch = require(args, "typeMatch");if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public NumericPayloadTokenFilterFactory(IDictionary<string, string> args) : base(args){payload = RequireSingle(args, "payload");typeMatch = Require(args, "typeMatch");if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int j = 0; j < iterations; ++j){values[valuesOffset++] = blocks[blocksOffset++] & 0xFF;}}
// Original:
public DescribeResourcePermissionsResult describeResourcePermissions(DescribeResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeDescribeResourcePermissions(request);}

// Translation:
public virtual DescribeResourcePermissionsResponse DescribeResourcePermissions(DescribeResourcePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeResourcePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeResourcePermissionsResponseUnmarshaller.Instance;return Invoke<DescribeResourcePermissionsResponse>(request, options);}
// Original:
public TokenStream create(TokenStream input) {return map.fst == null ? input : new SynonymFilter(input, map, ignoreCase);}

// Translation:
public override TokenStream Create(TokenStream input){return delegator.Create(input);}
// Original:
public List<String> getRuleInvocationStack() {return getRuleInvocationStack(_ctx);}

// Translation:
public virtual IList<string> GetRuleInvocationStack(){return GetRuleInvocationStack(_ctx);}
// Original:
public void write(String s) {reserve(s.length());s.getChars(0,s.length(),buf, len);len +=s.length();}

// Translation:
public virtual void Write(char b){if (m_len >= m_buf.Length){Resize(m_len + 1);}UnsafeWrite(b);}
// Original:
public void clear() {map.clear();}

// Translation:
public virtual void Clear(){map.Clear();}
// Original:
public DeleteWorkteamResult deleteWorkteam(DeleteWorkteamRequest request) {request = beforeClientExecution(request);return executeDeleteWorkteam(request);}

// Translation:
public virtual DeleteWorkteamResponse DeleteWorkteam(DeleteWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteWorkteamResponseUnmarshaller.Instance;return Invoke<DeleteWorkteamResponse>(request, options);}
// Original:
public String toString() {return "(" + a.toString() + " OR " + b.toString() + ")";}

// Translation:
public override string ToString(){return "(" + a.ToString() + " AND " + b.ToString() + ")";}
// Original:
public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}

// Translation:
public override TreeFilter Clone(){TreeFilter[] s = new TreeFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new AndTreeFilter.List(s);}
// Original:
public String toString() {StringBuilder buf = new StringBuilder();buf.append("DiffEntry[");buf.append(changeType);buf.append(" ");switch (changeType) {case ADD:buf.append(newPath);break;case COPY:buf.append(oldPath + "->" + newPath);break;case DELETE:buf.append(oldPath);break;case MODIFY:buf.append(oldPath);break;case RENAME:buf.append(oldPath + "->" + newPath);break;}buf.append("]");return buf.toString();}

// Translation:
public override string ToString(){StringBuilder buf = new StringBuilder();buf.Append("DiffEntry[");buf.Append(changeType);buf.Append(" ");switch (changeType){case DiffEntry.ChangeType.ADD:{buf.Append(newPath);break;}case DiffEntry.ChangeType.COPY:{buf.Append(oldPath + "->" + newPath);break;}case DiffEntry.ChangeType.DELETE:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.MODIFY:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.RENAME:{buf.Append(oldPath + "->" + newPath);break;}}buf.Append("]");return buf.ToString();}
// Original:
public CreateRepositoryResult createRepository(CreateRepositoryRequest request) {request = beforeClientExecution(request);return executeCreateRepository(request);}

// Translation:
public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRepositoryResponseUnmarshaller.Instance;return Invoke<CreateRepositoryResponse>(request, options);}
// Original:
public static String toHex(String value) {return (value == null || value.length() == 0)? "[]": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}

// Translation:
public static string ToHex(int value){return ToHex((long)value, 8);}
// Original:
public LineFormatRecord(RecordInputStream in) {field_1_lineColor          = in.readInt();field_2_linePattern        = in.readShort();field_3_weight             = in.readShort();field_4_format             = in.readShort();field_5_colourPaletteIndex = in.readShort();}

// Translation:
public LineFormatRecord(RecordInputStream in1){field_1_lineColor = in1.ReadInt();field_2_linePattern = in1.ReadShort();field_3_weight = in1.ReadShort();field_4_format = in1.ReadShort();field_5_colourPaletteIndex = in1.ReadShort();}
// Original:
public DescribeClusterResult describeCluster(DescribeClusterRequest request) {request = beforeClientExecution(request);return executeDescribeCluster(request);}

// Translation:
public virtual DescribeClusterResponse DescribeCluster(DescribeClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClusterResponseUnmarshaller.Instance;return Invoke<DescribeClusterResponse>(request, options);}
// Original:
public UserAgentConfig getUserAgentConfig() {return userAgentConfig;}

// Translation:
public UserAgent GetUserAgentConfig(){return userAgentConfig;}
// Original:
public float getTokenScore() {String termText = termAtt.toString();WeightedTerm queryTerm = termsToFind.get(termText);if (queryTerm == null) {return 0;}if (!uniqueTermsInFragment.contains(termText)) {totalScore += queryTerm.getWeight();uniqueTermsInFragment.add(termText);}return queryTerm.getWeight();}

// Translation:
public virtual float GetTokenScore(){string termText = termAtt.ToString();WeightedTerm queryTerm;if (!termsToFind.TryGetValue(termText, out queryTerm) || queryTerm == null){return 0;}if (!uniqueTermsInFragment.Contains(termText)){totalScore += queryTerm.Weight;uniqueTermsInFragment.Add(termText);}return queryTerm.Weight;}
// Original:
public void clear() {arrays.clear();}

// Translation:
public void Clear(){arrays.Clear();}
// Original:
public DescribeEndpointsResult describeEndpoints(DescribeEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeEndpoints(request);}

// Translation:
public virtual DescribeEndpointsResponse DescribeEndpoints(DescribeEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEndpointsResponseUnmarshaller.Instance;return Invoke<DescribeEndpointsResponse>(request, options);}
// Original:
public String toString() {return "PATH(\"" + pathStr + "\")";}

// Translation:
public override string ToString(){return "PATH(\"" + pathStr + "\")";}
// Original:
public DictionaryCompoundWordTokenFilterFactory(Map<String, String> args) {super(args);dictFile = require(args, "dictionary");minWordSize = getInt(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = getInt(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = getInt(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = getBoolean(args, "onlyLongestMatch", true);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public DictionaryCompoundWordTokenFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();dictFile = Require(args, "dictionary");minWordSize = GetInt32(args, "minWordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_WORD_SIZE);minSubwordSize = GetInt32(args, "minSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MIN_SUBWORD_SIZE);maxSubwordSize = GetInt32(args, "maxSubwordSize", CompoundWordTokenFilterBase.DEFAULT_MAX_SUBWORD_SIZE);onlyLongestMatch = GetBoolean(args, "onlyLongestMatch", true);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public final void writeFloat(float val) throws IOException {writeInt(Float.floatToIntBits(val));}

// Translation:
public virtual void writeFloat(float val){throw new System.NotImplementedException();}
// Original:
public char[] toCharArray() {char newbuf[] = new char[size()];System.arraycopy(buf, 0, newbuf, 0, size());return newbuf;}

// Translation:
public virtual char[] ToCharArray(){char[] newbuf = new char[Length];System.Array.Copy(m_buf, 0, newbuf, 0, Length);return newbuf;}
// Original:
public IntervalSet getExpectedTokens() {if (recognizer != null) {return recognizer.getATN().getExpectedTokens(offendingState, ctx);}return null;}

// Translation:
public virtual IntervalSet GetExpectedTokens(){if (recognizer != null){return recognizer.Atn.GetExpectedTokens(offendingState, ctx);}return null;}