yijunyu/c-to-rust huggingface dataset:
// Original:
public Area3DPtg(String arearef, int externIdx) {super(new AreaReference(arearef, SpreadsheetVersion.EXCEL97));setExternSheetIndex(externIdx);}

// Translation:
public Area3DPtg(String arearef, int externIdx):base(arearef){ExternSheetIndex=externIdx;}
// Original:
public boolean empty() {return isEmpty();}

// Translation:
public virtual bool empty(){return isEmpty();}
// Original:
public DeleteMemberResult deleteMember(DeleteMemberRequest request) {request = beforeClientExecution(request);return executeDeleteMember(request);}

// Translation:
public virtual DeleteMemberResponse DeleteMember(DeleteMemberRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMemberRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMemberResponseUnmarshaller.Instance;return Invoke<DeleteMemberResponse>(request, options);}
// Original:
public DeleteRepositoryResult deleteRepository(DeleteRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteRepository(request);}

// Translation:
public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteRepositoryResponseUnmarshaller.Instance;return Invoke<DeleteRepositoryResponse>(request, options);}
// Original:
public GetChangeResult getChange(GetChangeRequest request) {request = beforeClientExecution(request);return executeGetChange(request);}

// Translation:
public virtual GetChangeResponse GetChange(GetChangeRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetChangeRequestMarshaller.Instance;options.ResponseUnmarshaller = GetChangeResponseUnmarshaller.Instance;return Invoke<GetChangeResponse>(request, options);}
// Original:
public PrefixCodedTerms finish() {return new PrefixCodedTerms(output.toBufferList(), size);}

// Translation:
public FieldInfos Finish(){return new FieldInfos(byName.Values.ToArray());}
// Original:
@Override public synchronized void clear() {elements = EmptyArray.OBJECT;}

// Translation:
public virtual void clear(){lock (this){elements = libcore.util.EmptyArray.OBJECT;}}
// Original:
public LongBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());LongToByteBufferAdapter buf = new LongToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}

// Translation:
public override java.nio.LongBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.LongToByteBufferAdapter buf = new java.nio.LongToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
// Original:
public StyleRecord() {field_1_xf_index = isBuiltinFlag.set(0);}

// Translation:
public StyleRecord(){field_1_xf_index = isBuiltinFlag.Set(field_1_xf_index);}
// Original:
public boolean equals(Object o) {if (o instanceof AbbreviatedObjectId) {final AbbreviatedObjectId b = (AbbreviatedObjectId) o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2&& w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}

// Translation:
public override bool Equals(object o){if (o is NGit.AbbreviatedObjectId){NGit.AbbreviatedObjectId b = (NGit.AbbreviatedObjectId)o;return nibbles == b.nibbles && w1 == b.w1 && w2 == b.w2 && w3 == b.w3 && w4 == b.w4 && w5 == b.w5;}return false;}
// Original:
public void ReInit(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}

// Translation:
public virtual void ReInit(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
// Original:
public ExtendedFormatRecord getExFormatAt(int index) {int xfptr = records.getXfpos() - (numxfs - 1);xfptr += index;return ( ExtendedFormatRecord ) records.get(xfptr);}

// Translation:
public ExtendedFormatRecord GetExFormatAt(int index){int xfptr = records.Xfpos - (numxfs - 1);xfptr += index;ExtendedFormatRecord retval =(ExtendedFormatRecord)records[xfptr];return retval;}
// Original:
public Resource(String resource) {this.resource = resource;}

// Translation:
public Resource(string resource){this.resource = resource;}
// Original:
public NorwegianLightStemFilterFactory(Map<String,String> args) {super(args);String variant = get(args, "variant");if (variant == null || "nb".equals(variant)) {flags = BOKMAAL;} else if ("nn".equals(variant)) {flags = NYNORSK;} else if ("no".equals(variant)) {flags = BOKMAAL | NYNORSK;} else {throw new IllegalArgumentException("invalid variant: " + variant);}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public NorwegianLightStemFilterFactory(IDictionary<string, string> args): base(args){string variant = Get(args, "variant");if (variant == null || "nb".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL;}else if ("nn".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.NYNORSK;}else if ("no".Equals(variant, StringComparison.Ordinal)){flags = NorwegianStandard.BOKMAAL | NorwegianStandard.NYNORSK;}else{throw new System.ArgumentException("invalid variant: " + variant);}if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public UpdateTypedLinkFacetResult updateTypedLinkFacet(UpdateTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeUpdateTypedLinkFacet(request);}

// Translation:
public virtual UpdateTypedLinkFacetResponse UpdateTypedLinkFacet(UpdateTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTypedLinkFacetResponseUnmarshaller.Instance;return Invoke<UpdateTypedLinkFacetResponse>(request, options);}
// Original:
public E higher(E e) {return backingMap.higherKey(e);}

// Translation:
public virtual E higher(E e){return backingMap.higherKey(e);}
// Original:
public ListReceiptFiltersResult listReceiptFilters(ListReceiptFiltersRequest request) {request = beforeClientExecution(request);return executeListReceiptFilters(request);}

// Translation:
public virtual ListReceiptFiltersResponse ListReceiptFilters(ListReceiptFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptFiltersResponseUnmarshaller.Instance;return Invoke<ListReceiptFiltersResponse>(request, options);}
// Original:
public int size() {synchronized (lock) {return count;}}

// Translation:
public virtual int size(){lock (@lock){return count;}}
// Original:
public CreateVaultRequest(String vaultName) {setVaultName(vaultName);}

// Translation:
public CreateVaultRequest(string vaultName){_vaultName = vaultName;}
// Original:
public PendingOutputs() {outputs = new CharsRefBuilder[1];endOffsets = new int[1];posLengths = new int[1];}

// Translation:
public PendingOutputs(){outputs = new CharsRef[1];endOffsets = new int[1];posLengths = new int[1];}
// Original:
public static double getExcelDate(Date date, boolean use1904windowing) {Calendar calStart = LocaleUtil.getLocaleCalendar();calStart.setTime(date);int year = calStart.get(Calendar.YEAR);int dayOfYear = calStart.get(Calendar.DAY_OF_YEAR);int hour = calStart.get(Calendar.HOUR_OF_DAY);int minute = calStart.get(Calendar.MINUTE);int second = calStart.get(Calendar.SECOND);int milliSecond = calStart.get(Calendar.MILLISECOND);return internalGetExcelDate(year, dayOfYear, hour, minute, second, milliSecond, use1904windowing);}

// Translation:
public static double GetExcelDate(DateTime date, bool use1904windowing){if ((!use1904windowing && date.Year < 1900)  || (use1904windowing && date.Year < 1904))   {return BAD_DATE;}DateTime startdate;if (use1904windowing){startdate = new DateTime(1904, 1, 1);}else{startdate = new DateTime(1900, 1, 1);}double value = (date - startdate).TotalDays + 1;if (!use1904windowing && value >= 60){value++;}else if (use1904windowing){value--;}return value;}
// Original:
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {int nIncomingArgs = args.length;if(nIncomingArgs < 1) {throw new RuntimeException("function name argument missing");}ValueEval nameArg = args[0];String functionName;if (nameArg instanceof FunctionNameEval) {functionName = ((FunctionNameEval) nameArg).getFunctionName();} else {throw new RuntimeException("First argument should be a NameEval, but got ("+ nameArg.getClass().getName() + ")");}FreeRefFunction targetFunc = ec.findUserDefinedFunction(functionName);if (targetFunc == null) {throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs -1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];System.arraycopy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.evaluate(outGoingArgs, ec);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){int nIncomingArgs = args.Length;if (nIncomingArgs < 1){throw new Exception("function name argument missing");}ValueEval nameArg = args[0];String functionName = string.Empty ;if (nameArg is FunctionNameEval){functionName = ((FunctionNameEval)nameArg).FunctionName;}else{throw new Exception("First argument should be a NameEval, but got ("+ nameArg.GetType().Name + ")");}FreeRefFunction targetFunc = ec.FindUserDefinedFunction(functionName);if (targetFunc == null){throw new NotImplementedFunctionException(functionName);}int nOutGoingArgs = nIncomingArgs - 1;ValueEval[] outGoingArgs = new ValueEval[nOutGoingArgs];Array.Copy(args, 1, outGoingArgs, 0, nOutGoingArgs);return targetFunc.Evaluate(outGoingArgs, ec);}
// Original:
public int indexOf(Object object) {int pos = 0;Link<E> link = voidLink.next;if (object != null) {while (link != voidLink) {if (object.equals(link.data)) {return pos;}link = link.next;pos++;}} else {while (link != voidLink) {if (link.data == null) {return pos;}link = link.next;pos++;}}return -1;}

// Translation:
public override int indexOf(object @object){int pos = 0;java.util.LinkedList.Link<E> link = voidLink.next;if (@object != null){while (link != voidLink){if (@object.Equals(link.data)){return pos;}link = link.next;pos++;}}else{while (link != voidLink){if ((object)link.data == null){return pos;}link = link.next;pos++;}}return -1;}
// Original:
public DescribeVpcClassicLinkResult describeVpcClassicLink(DescribeVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeDescribeVpcClassicLink(request);}

// Translation:
public virtual DescribeVpcClassicLinkResponse DescribeVpcClassicLink(DescribeVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcClassicLinkResponseUnmarshaller.Instance;return Invoke<DescribeVpcClassicLinkResponse>(request, options);}
// Original:
public void sort(RevSort s, boolean use) {if (s == RevSort.TOPO && !use)throw new IllegalArgumentException(JGitText.get().topologicalSortRequired);super.sort(s, use);}

// Translation:
public override void Sort(RevSort s, bool use){if (s == RevSort.TOPO && !use){throw new ArgumentException(JGitText.Get().topologicalSortRequired);}base.Sort(s, use);}
// Original:
public synchronized StringBuffer delete(int start, int end) {delete0(start, end);return this;}

// Translation:
public java.lang.StringBuffer delete(int start, int end){lock (this){delete0(start, end);return this;}}
// Original:
public void write(int b) throws IOException {throw new UnsupportedOperationException();}

// Translation:
public override void Write(int b){throw new NGit.Errors.NotSupportedException();}
// Original:
public boolean isModeDifferent(int rawMode) {int modeDiff = getEntryRawMode() ^ rawMode;if (modeDiff == 0)return false;if (getOptions().getSymLinks() == SymLinks.FALSE)if (FileMode.SYMLINK.equals(rawMode))return false;if (!state.options.isFileMode())modeDiff &= ~FileMode.EXECUTABLE_FILE.getBits();return modeDiff != 0;}

// Translation:
public virtual bool IsModeDifferent(int rawMode){int modeDiff = EntryRawMode ^ rawMode;if (modeDiff == 0){return false;}if (FileMode.SYMLINK.Equals(rawMode)){return false;}if (!state.options.IsFileMode()){modeDiff &= ~FileMode.EXECUTABLE_FILE.GetBits();}return modeDiff != 0;}
// Original:
public DescribeReservedInstancesModificationsResult describeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeReservedInstancesModifications(request);}

// Translation:
public virtual DescribeReservedInstancesModificationsResponse DescribeReservedInstancesModifications(DescribeReservedInstancesModificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeReservedInstancesModificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeReservedInstancesModificationsResponseUnmarshaller.Instance;return Invoke<DescribeReservedInstancesModificationsResponse>(request, options);}
// Original:
public EventSubscription addSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request) {request = beforeClientExecution(request);return executeAddSourceIdentifierToSubscription(request);}

// Translation:
public virtual AddSourceIdentifierToSubscriptionResponse AddSourceIdentifierToSubscription(AddSourceIdentifierToSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddSourceIdentifierToSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = AddSourceIdentifierToSubscriptionResponseUnmarshaller.Instance;return Invoke<AddSourceIdentifierToSubscriptionResponse>(request, options);}
// Original:
@Override public boolean equals(Object o) {if (o == this) {return true;}synchronized (mutex) {return delegate().equals(o);}}

// Translation:
public override bool Equals(object @object){lock (mutex){return list.Equals(@object);}}
// Original:
public PagedBytesDataOutput getDataOutput() {if (frozen) {throw new IllegalStateException("cannot get DataOutput after freeze()");}return new PagedBytesDataOutput();}

// Translation:
public PagedBytesDataOutput GetDataOutput(){if (frozen){throw new InvalidOperationException("cannot get DataOutput after Freeze()");}return new PagedBytesDataOutput(this);}
// Original:
public static short[] copyOfRange(short[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);short[] result = new short[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}

// Translation:
public static short[] copyOfRange(short[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);short[] result = new short[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
// Original:
public boolean removeURI(URIish toRemove) {return uris.remove(toRemove);}

// Translation:
public virtual bool RemoveURI(URIish toRemove){return uris.Remove(toRemove);}
// Original:
public DescribeGameServerResult describeGameServer(DescribeGameServerRequest request) {request = beforeClientExecution(request);return executeDescribeGameServer(request);}

// Translation:
public virtual DescribeGameServerResponse DescribeGameServer(DescribeGameServerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameServerRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameServerResponseUnmarshaller.Instance;return Invoke<DescribeGameServerResponse>(request, options);}
// Original:
public boolean hasNext() {return pos < keys.length;}

// Translation:
public bool HasNext(){return this.next_Renamed != null;}
// Original:
public IntervalSet subtract(IntSet a) {if (a == null || a.isNil()) {return new IntervalSet(this);}if (a instanceof IntervalSet) {return subtract(this, (IntervalSet)a);}IntervalSet other = new IntervalSet();other.addAll(a);return subtract(this, other);}

// Translation:
public virtual Antlr4.Runtime.Misc.IntervalSet Subtract(IIntSet a){if (a == null || a.IsNil){return new Antlr4.Runtime.Misc.IntervalSet(this);}if (a is Antlr4.Runtime.Misc.IntervalSet){return Subtract(this, (Antlr4.Runtime.Misc.IntervalSet)a);}Antlr4.Runtime.Misc.IntervalSet other = new Antlr4.Runtime.Misc.IntervalSet();other.AddAll(a);return Subtract(this, other);}
// Original:
public String displayName() {return this.canonicalName;}

// Translation:
public virtual string displayName(){return this.canonicalName;}
// Original:
public final ValueEval getValue(int row, int col) {return getRelativeValue(row, col);}

// Translation:
public ValueEval GetValue(int row, int col){return GetRelativeValue(row, col);}
// Original:
public AttrPtg(LittleEndianInput in) {_options = in.readByte();_data    = in.readShort();if (isOptimizedChoose()) {int[] jumpTable = new int[(int) _data];for (int i = 0; i < jumpTable.length; i++) {jumpTable[i] = in.readUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in.readUShort();} else {_jumpTable = null;_chooseFuncOffset = -1;}}

// Translation:
public AttrPtg(ILittleEndianInput in1){field_1_options =(byte)in1.ReadByte();field_2_data = in1.ReadShort();if (IsOptimizedChoose){int nCases = field_2_data;int[] jumpTable = new int[nCases];for (int i = 0; i < jumpTable.Length; i++){jumpTable[i] = in1.ReadUShort();}_jumpTable = jumpTable;_chooseFuncOffset = in1.ReadUShort();}else{_jumpTable = null;_chooseFuncOffset = -1;}}
// Original:
public DescribeTrafficMirrorFiltersResult describeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request) {request = beforeClientExecution(request);return executeDescribeTrafficMirrorFilters(request);}

// Translation:
public virtual DescribeTrafficMirrorFiltersResponse DescribeTrafficMirrorFilters(DescribeTrafficMirrorFiltersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrafficMirrorFiltersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrafficMirrorFiltersResponseUnmarshaller.Instance;return Invoke<DescribeTrafficMirrorFiltersResponse>(request, options);}
// Original:
public final ShortBuffer put(short[] src) {return put(src, 0, src.length);}

// Translation:
public java.nio.ShortBuffer put(short[] src){return put(src, 0, src.Length);}
// Original:
public DescribeReservedNodeOfferingsResult describeReservedNodeOfferings() {return describeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}

// Translation:
public virtual DescribeReservedNodeOfferingsResponse DescribeReservedNodeOfferings(){return DescribeReservedNodeOfferings(new DescribeReservedNodeOfferingsRequest());}
// Original:
public CreateLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}

// Translation:
public CreateLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}
// Original:
public DetachStaticIpResult detachStaticIp(DetachStaticIpRequest request) {request = beforeClientExecution(request);return executeDetachStaticIp(request);}

// Translation:
public virtual DetachStaticIpResponse DetachStaticIp(DetachStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachStaticIpResponseUnmarshaller.Instance;return Invoke<DetachStaticIpResponse>(request, options);}
// Original:
public static CharArraySet unmodifiableSet(CharArraySet set) {if (set == null)throw new NullPointerException("Given set is null");if (set == EMPTY_SET)return EMPTY_SET;if (set.map instanceof CharArrayMap.UnmodifiableCharArrayMap)return set;return new CharArraySet(CharArrayMap.unmodifiableMap(set.map));}

// Translation:
public static CharArraySet UnmodifiableSet(CharArraySet set){if (set == null){throw new System.ArgumentNullException("Given set is null");}if (set == EMPTY_SET){return EMPTY_SET;}if (set.map is CharArrayMap.UnmodifiableCharArrayMap<object>){return set;}return new CharArraySet(CharArrayMap.UnmodifiableMap<object>(set.map));}
// Original:
public BatchDetectKeyPhrasesResult batchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request) {request = beforeClientExecution(request);return executeBatchDetectKeyPhrases(request);}

// Translation:
public virtual BatchDetectKeyPhrasesResponse BatchDetectKeyPhrases(BatchDetectKeyPhrasesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectKeyPhrasesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectKeyPhrasesResponseUnmarshaller.Instance;return Invoke<BatchDetectKeyPhrasesResponse>(request, options);}
// Original:
public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 1) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0]);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 1){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0]);}
// Original:
public void removeWordCount() {remove1stProperty(PropertyIDMap.PID_WORDCOUNT);}

// Translation:
public void RemoveWordCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_WORDCOUNT);}
// Original:
public boolean equals(Object o) {if (this == o) {return true;}else if ( !(o instanceof SingletonPredictionContext) ) {return false;}if ( this.hashCode() != o.hashCode() ) {return false; }SingletonPredictionContext s = (SingletonPredictionContext)o;return returnState == s.returnState &&(parent!=null && parent.equals(s.parent));}

// Translation:
public override bool Equals(object o){if (o == this){return true;}else{if (!(o is Antlr4.Runtime.Atn.SingletonPredictionContext)){return false;}}if (this.GetHashCode() != o.GetHashCode()){return false;}Antlr4.Runtime.Atn.SingletonPredictionContext other = (Antlr4.Runtime.Atn.SingletonPredictionContext)o;return returnState == other.returnState && parent.Equals(other.parent);}
// Original:
public ResourceBundle resourceBundle() {return resourceBundle;}

// Translation:
public virtual Sharpen.ResourceBundle ResourceBundle(){return resourceBundle;}
// Original:
public TokenStream create(TokenStream stream) {if (stopTags != null) {final TokenStream filter = new JapanesePartOfSpeechStopFilter(stream, stopTags);return filter;} else {return stream;}}

// Translation:
public override TokenStream Create(TokenStream stream){if (stopTags != null){#pragma warning disable 612, 618TokenStream filter = new JapanesePartOfSpeechStopFilter(m_luceneMatchVersion, enablePositionIncrements, stream, stopTags);#pragma warning restore 612, 618return filter;}else{return stream;}}
// Original:
public final int[] getBreaks() {int count = getNumBreaks();if (count < 1) {return EMPTY_INT_ARRAY;}int[] result = new int[count];for (int i=0; i<count; i++) {Break breakItem = _breaks.get(i);result[i] = breakItem.main;}return result;}

// Translation:
public int[] GetBreaks(){int count = NumBreaks;if (count < 1){return EMPTY_INT_ARRAY;}int[] result = new int[count];for (int i = 0; i < count; i++){Break breakItem = _breaks[i];result[i] = breakItem.main;}return result;}