yijunyu/c-to-rust huggingface dataset:
// Original:
public RegisterImageResult registerImage(RegisterImageRequest request) {request = beforeClientExecution(request);return executeRegisterImage(request);}

// Translation:
public virtual RegisterImageResponse RegisterImage(RegisterImageRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegisterImageRequestMarshaller.Instance;options.ResponseUnmarshaller = RegisterImageResponseUnmarshaller.Instance;return Invoke<RegisterImageResponse>(request, options);}
// Original:
public boolean equals(Object other) {return sameClassAs(other) &&term.equals(((TermQuery) other).term);}

// Translation:
public override bool Equals(object o){if (!(o is TermQuery)){return false;}TermQuery other = (TermQuery)o;return (this.Boost == other.Boost) && this.term.Equals(other.term);}
// Original:
public URI(String scheme, String authority, String path, String query,String fragment) throws URISyntaxException {if (scheme != null && path != null && !path.isEmpty() && path.charAt(0) != '/') {throw new URISyntaxException(path, "Relative path");}StringBuilder uri = new StringBuilder();if (scheme != null) {uri.append(scheme);uri.append(':');}if (authority != null) {uri.append("AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null) {PATH_ENCODER.appendEncoded(uri, path);}if (query != null) {uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null) {uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.toString(), false);}

// Translation:
public URI(string scheme, string authority, string path, string query, string fragment){if (scheme != null && path != null && !string.IsNullOrEmpty(path) && path[0] != '/'){throw new java.net.URISyntaxException(path, "Relative path");}java.lang.StringBuilder uri = new java.lang.StringBuilder();if (scheme != null){uri.append(scheme);uri.append(':');}if (authority != null){uri.append("AUTHORITY_ENCODER.appendEncoded(uri, authority);}if (path != null){PATH_ENCODER.appendEncoded(uri, path);}if (query != null){uri.append('?');ALL_LEGAL_ENCODER.appendEncoded(uri, query);}if (fragment != null){uri.append('#');ALL_LEGAL_ENCODER.appendEncoded(uri, fragment);}parseURI(uri.ToString(), false);}
// Original:
public BlameGenerator(Repository repository, String path) {this.repository = repository;this.resultPath = PathFilter.create(path);idBuf = new MutableObjectId();setFollowFileRenames(true);initRevPool(false);remaining = -1;}

// Translation:
public BlameGenerator(Repository repository, string path){this.repository = repository;this.resultPath = PathFilter.Create(path);idBuf = new MutableObjectId();SetFollowFileRenames(true);InitRevPool(false);remaining = -1;}
// Original:
public synchronized void writeTo(OutputStream out) throws IOException {out.write(buf, 0, count);}

// Translation:
public virtual void writeTo(java.io.OutputStream @out){throw new System.NotImplementedException();}
// Original:
public DeletableItem(String name, java.util.List<Attribute> attributes) {setName(name);setAttributes(attributes);}

// Translation:
public DeletableItem(string name, List<Attribute> attributes){_name = name;_attributes = attributes;}
// Original:
public DescribeGroupResult describeGroup(DescribeGroupRequest request) {request = beforeClientExecution(request);return executeDescribeGroup(request);}

// Translation:
public virtual DescribeGroupResponse DescribeGroup(DescribeGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupResponseUnmarshaller.Instance;return Invoke<DescribeGroupResponse>(request, options);}
// Original:
public EnableVpcClassicLinkResult enableVpcClassicLink(EnableVpcClassicLinkRequest request) {request = beforeClientExecution(request);return executeEnableVpcClassicLink(request);}

// Translation:
public virtual EnableVpcClassicLinkResponse EnableVpcClassicLink(EnableVpcClassicLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableVpcClassicLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableVpcClassicLinkResponseUnmarshaller.Instance;return Invoke<EnableVpcClassicLinkResponse>(request, options);}
// Original:
public DescribeStacksResult describeStacks() {return describeStacks(new DescribeStacksRequest());}

// Translation:
public virtual DescribeStacksResponse DescribeStacks(){return DescribeStacks(new DescribeStacksRequest());}
// Original:
public CharBuffer duplicate() {return copy(this);}

// Translation:
public override java.nio.CharBuffer duplicate(){return copy(this);}
// Original:
public static double mod(double n, double d) {if (d == 0) {return Double.NaN;}else if (sign(n) == sign(d)) {return n % d;}else {return ((n % d) + d) % d;}}

// Translation:
public static double Mod(double n, double d){double result = 0;if (d == 0){result = double.NaN;}else if (Sign(n) == Sign(d)){result = n % d;}else{result = ((n % d) + d) % d;}return result;}
// Original:
public static String getLocalizedMessage(String key, Locale locale) {Object message = getResourceBundleObject(key, locale);if (message == null) {return "Message with key:" + key + " and locale: " + locale+ " not found.";}return message.toString();}

// Translation:
public static string GetLocalizedMessage(string key, CultureInfo locale){string message = GetResourceBundleObject(key, locale);if (message == null){return "Message with key:" + key + " and locale: " + locale+ " not found.";}return message;}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return "";return getChild().toQueryString(escapeSyntaxParser) + "^"+ getValueString();}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (Child == null)return "";return Child.ToQueryString(escapeSyntaxParser) + "^"+ GetValueString();}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChild() == null)return "";return "( " + getChild().toQueryString(escapeSyntaxParser) + " )";}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){if (GetChild() == null)return "";return "( " + GetChild().ToQueryString(escapeSyntaxParser) + " )";}
// Original:
public GetInvalidationResult getInvalidation(GetInvalidationRequest request) {request = beforeClientExecution(request);return executeGetInvalidation(request);}

// Translation:
public virtual GetInvalidationResponse GetInvalidation(GetInvalidationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInvalidationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInvalidationResponseUnmarshaller.Instance;return Invoke<GetInvalidationResponse>(request, options);}
// Original:
public String formatAsString() {return formatAsString(null, false);}

// Translation:
public String FormatAsString(){return FormatAsString(null, false);}
// Original:
public final int prefixCompare(byte[] bs, int p) {int cmp;cmp = NB.compareUInt32(w1, mask(1, NB.decodeInt32(bs, p)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, mask(2, NB.decodeInt32(bs, p + 4)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, mask(3, NB.decodeInt32(bs, p + 8)));if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, mask(4, NB.decodeInt32(bs, p + 12)));if (cmp != 0)return cmp;return NB.compareUInt32(w5, mask(5, NB.decodeInt32(bs, p + 16)));}

// Translation:
public int PrefixCompare(byte[] bs, int p){int cmp;cmp = NB.CompareUInt32(w1, Mask(1, NB.DecodeInt32(bs, p)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, Mask(2, NB.DecodeInt32(bs, p + 4)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, Mask(3, NB.DecodeInt32(bs, p + 8)));if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, Mask(4, NB.DecodeInt32(bs, p + 12)));if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, Mask(5, NB.DecodeInt32(bs, p + 16)));}
// Original:
public AddApplicationInputProcessingConfigurationResult addApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request) {request = beforeClientExecution(request);return executeAddApplicationInputProcessingConfiguration(request);}

// Translation:
public virtual AddApplicationInputProcessingConfigurationResponse AddApplicationInputProcessingConfiguration(AddApplicationInputProcessingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationInputProcessingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationInputProcessingConfigurationResponseUnmarshaller.Instance;return Invoke<AddApplicationInputProcessingConfigurationResponse>(request, options);}
// Original:
public static TermRangeQuery newStringRange(String field, String lowerTerm, String upperTerm, boolean includeLower, boolean includeUpper) {BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}

// Translation:
public static TermRangeQuery NewStringRange(string field, string lowerTerm, string upperTerm, bool includeLower, bool includeUpper){BytesRef lower = lowerTerm == null ? null : new BytesRef(lowerTerm);BytesRef upper = upperTerm == null ? null : new BytesRef(upperTerm);return new TermRangeQuery(field, lower, upper, includeLower, includeUpper);}
// Original:
static public double fv(double r, int nper, double pmt, double pv, int type) {return -(pv * Math.pow(1 + r, nper) + pmt * (1+r*type) * (Math.pow(1 + r, nper) - 1) / r);}

// Translation:
static public double FV(double r, int nper, double pmt, double pv, int type){double fv = -(pv * Math.Pow(1 + r, nper) + pmt * (1 + r * type) * (Math.Pow(1 + r, nper) - 1) / r);return fv;}
// Original:
public int checkExternSheet(int firstSheetIndex, int lastSheetIndex) {int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.length; i++) {SupBookRecord ebr = _externalBookBlocks[i].getExternalBookRecord();if (ebr.isInternalReferences()) {thisWbIndex = i;break;}}if (thisWbIndex < 0) {throw new RuntimeException("Could not find 'internal references' EXTERNALBOOK");}int i = _externSheetRecord.getRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (i >= 0) {return i;}return _externSheetRecord.addRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}

// Translation:
public int CheckExternSheet(int firstSheetIndex, int lastSheetIndex){int thisWbIndex = -1; for (int i = 0; i < _externalBookBlocks.Length; i++){SupBookRecord ebr = _externalBookBlocks[i].GetExternalBookRecord();if (ebr.IsInternalReferences){thisWbIndex = i;break;}}if (thisWbIndex < 0){throw new InvalidOperationException("Could not find 'internal references' EXTERNALBOOK");}int j = _externSheetRecord.GetRefIxForSheet(thisWbIndex, firstSheetIndex, lastSheetIndex);if (j >= 0){return j;}return _externSheetRecord.AddRef(thisWbIndex, firstSheetIndex, lastSheetIndex);}
// Original:
public DescribeSentimentDetectionJobResult describeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request) {request = beforeClientExecution(request);return executeDescribeSentimentDetectionJob(request);}

// Translation:
public virtual DescribeSentimentDetectionJobResponse DescribeSentimentDetectionJob(DescribeSentimentDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSentimentDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSentimentDetectionJobResponseUnmarshaller.Instance;return Invoke<DescribeSentimentDetectionJobResponse>(request, options);}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[UNITS]\n");buffer.append("    .units                = ").append("0x").append(HexDump.toHex(  getUnits ())).append(" (").append( getUnits() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("[/UNITS]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[UNITS]\n");buffer.Append("    .units                = ").Append("0x").Append(HexDump.ToHex(Units)).Append(" (").Append(Units).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/UNITS]\n");return buffer.ToString();}
// Original:
public NavigableMap<K, V> tailMap(K from, boolean inclusive) {Bound fromBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(from, fromBound, null, NO_BOUND);}

// Translation:
public java.util.NavigableMap<K, V> tailMap(K from, bool inclusive){java.util.TreeMap.Bound fromBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE: java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(from, fromBound, default(K), java.util.TreeMap.Bound.NO_BOUND);}
// Original:
public static int compareTo(Ref o1, Ref o2) {return o1.getName().compareTo(o2.getName());}

// Translation:
public static int CompareTo(Ref o1, Ref o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2.GetName());}
// Original:
public PutEventsConfigurationResult putEventsConfiguration(PutEventsConfigurationRequest request) {request = beforeClientExecution(request);return executePutEventsConfiguration(request);}

// Translation:
public virtual PutEventsConfigurationResponse PutEventsConfiguration(PutEventsConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEventsConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEventsConfigurationResponseUnmarshaller.Instance;return Invoke<PutEventsConfigurationResponse>(request, options);}
// Original:
public DetachFromIndexResult detachFromIndex(DetachFromIndexRequest request) {request = beforeClientExecution(request);return executeDetachFromIndex(request);}

// Translation:
public virtual DetachFromIndexResponse DetachFromIndex(DetachFromIndexRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachFromIndexRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachFromIndexResponseUnmarshaller.Instance;return Invoke<DetachFromIndexResponse>(request, options);}
// Original:
public RebaseCommand rebase() {return new RebaseCommand(repo);}

// Translation:
public virtual RebaseCommand Rebase(){return new RebaseCommand(repo);}
// Original:
public SearchGroup<T> next() {assert iter.hasNext();final SearchGroup<T> group = iter.next();if (group.sortValues == null) {throw new IllegalArgumentException("group.sortValues is null; you must pass fillFields=true to the first pass collector");}return group;}

// Translation:
public ISearchGroup<T> Next(){ISearchGroup<T> group = iter.Current;if (group.SortValues == null){throw new ArgumentException("group.sortValues is null; you must pass fillFields=true to the first pass collector");}return group;}
// Original:
public UpdateMLModelResult updateMLModel(UpdateMLModelRequest request) {request = beforeClientExecution(request);return executeUpdateMLModel(request);}

// Translation:
public virtual UpdateMLModelResponse UpdateMLModel(UpdateMLModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMLModelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMLModelResponseUnmarshaller.Instance;return Invoke<UpdateMLModelResponse>(request, options);}
// Original:
public CreateIPSetResult createIPSet(CreateIPSetRequest request) {request = beforeClientExecution(request);return executeCreateIPSet(request);}

// Translation:
public virtual CreateIPSetResponse CreateIPSet(CreateIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIPSetResponseUnmarshaller.Instance;return Invoke<CreateIPSetResponse>(request, options);}
// Original:
public FieldDateResolutionFCListener(QueryConfigHandler config) {this.config = config;}

// Translation:
public FieldDateResolutionFCListener(QueryConfigHandler config){this.config = config;}
// Original:
@Override public boolean containsValue(Object value) {HashMapEntry[] tab = table;int len = tab.length;if (value == null) {for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (e.value == null) {return true;}}}return entryForNullKey != null && entryForNullKey.value == null;}for (int i = 0; i < len; i++) {for (HashMapEntry e = tab[i]; e != null; e = e.next) {if (value.equals(e.value)) {return true;}}}return entryForNullKey != null && value.equals(entryForNullKey.value);}

// Translation:
public override bool containsValue(object value){java.util.HashMap.HashMapEntry<K, V>[] tab = table;int len = tab.Length;if (value == null){{for (int i = 0; i < len; i++){{for (java.util.HashMap.HashMapEntry<K, V> e = tab[i]; e != null; e = e.next){if (e.value == null){return true;}}}}}return entryForNullKey != null && (object)entryForNullKey.value == null;}{for (int i_1 = 0; i_1 < len; i_1++){{for (java.util.HashMap.HashMapEntry<K, V> e = tab[i_1]; e != null; e = e.next){if (value.Equals(e.value)){return true;}}}}}return entryForNullKey != null && value.Equals(entryForNullKey.value);}
// Original:
public DescribeWorkspaceBundlesResult describeWorkspaceBundles(DescribeWorkspaceBundlesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceBundles(request);}

// Translation:
public virtual DescribeWorkspaceBundlesResponse DescribeWorkspaceBundles(DescribeWorkspaceBundlesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceBundlesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceBundlesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceBundlesResponse>(request, options);}
// Original:
public PostingsEnum reset(int[] postings) {this.postings = postings;upto = -1;return this;}

// Translation:
public DocsEnum Reset(int[] postings){this.postings = postings;upto = -1;return this;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(sid); out.writeShort(_reserved0);out.writeInt(_engineId);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid); out1.WriteShort(_reserved0);out1.WriteInt(_engineId);}
// Original:
public static CharBuffer allocate(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteCharArrayBuffer(capacity);}

// Translation:
public static java.nio.CharBuffer allocate(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteCharArrayBuffer(capacity_1);}
// Original:
public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(">=");buffer.append(operands[ 1 ]);return buffer.toString();}

// Translation:
public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(">=");buffer.Append(operands[1]);return buffer.ToString();}
// Original:
public DeletePipelineResult deletePipeline(DeletePipelineRequest request) {request = beforeClientExecution(request);return executeDeletePipeline(request);}

// Translation:
public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePipelineRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePipelineResponseUnmarshaller.Instance;return Invoke<DeletePipelineResponse>(request, options);}
// Original:
public InterfaceHdrRecord(int codePage) {_codepage = codePage;}

// Translation:
public InterfaceHdrRecord(int codePage){_codepage = codePage;}
// Original:
public DescribeScalingParametersResult describeScalingParameters(DescribeScalingParametersRequest request) {request = beforeClientExecution(request);return executeDescribeScalingParameters(request);}

// Translation:
public virtual DescribeScalingParametersResponse DescribeScalingParameters(DescribeScalingParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingParametersResponseUnmarshaller.Instance;return Invoke<DescribeScalingParametersResponse>(request, options);}
// Original:
public Entry<K, V> higherEntry(K key) {return immutableCopy(findBounded(key, HIGHER));}

// Translation:
public java.util.MapClass.Entry<K, V> higherEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.HIGHER));}
// Original:
public CreateSpotDatafeedSubscriptionRequest(String bucket) {setBucket(bucket);}

// Translation:
public CreateSpotDatafeedSubscriptionRequest(string bucket){_bucket = bucket;}
// Original:
public String getLocalizedMessage() {return getLocalizedMessage(Locale.getDefault());}

// Translation:
public virtual string GetLocalizedMessage(){return GetLocalizedMessage(CultureInfo.InvariantCulture);}
// Original:
public UDFFinder getUDFFinder(){return _uBook.getUDFFinder();}

// Translation:
public UDFFinder GetUDFFinder(){return _uBook.GetUDFFinder();}
// Original:
public ExternalName getExternalName(String nameName, String sheetName, int externalWorkbookNumber) {throw new IllegalStateException("XSSF-style external names are not supported for HSSF");}

// Translation:
public ExternalName GetExternalName(String nameName, String sheetName, int externalWorkbookNumber){throw new InvalidOperationException("XSSF-style external names are not supported for HSSF");}
// Original:
public OldFormulaRecord(RecordInputStream ris) {super(ris, ris.getSid() == biff2_sid);if (isBiff2()) {field_4_value = ris.readDouble();} else {long valueLongBits  = ris.readLong();specialCachedValue = FormulaSpecialCachedValue.create(valueLongBits);if (specialCachedValue == null) {field_4_value = Double.longBitsToDouble(valueLongBits);}}if (isBiff2()) {field_5_options = (short)ris.readUByte();} else {field_5_options = ris.readShort();}int expression_len = ris.readShort();int nBytesAvailable = ris.available();field_6_parsed_expr = Formula.read(expression_len, ris, nBytesAvailable);}

// Translation:
public OldFormulaRecord(RecordInputStream ris) :base(ris, ris.Sid == biff2_sid){;if (IsBiff2){field_4_value = ris.ReadDouble();}else{long valueLongBits = ris.ReadLong();specialCachedValue = SpecialCachedValue.Create(valueLongBits);if (specialCachedValue == null){field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);}}if (IsBiff2){field_5_options = (short)ris.ReadUByte();}else{field_5_options = ris.ReadShort();}int expression_len = ris.ReadShort();int nBytesAvailable = ris.Available();field_6_Parsed_expr = Formula.Read(expression_len, ris, nBytesAvailable);}
// Original:
public int stem(char s[], int len) {assert s.length >= len + 1 : "this stemmer requires an oversized array of at least 1";len = plural.apply(s, len);len = unification.apply(s, len);len = adverb.apply(s, len);int oldlen;do {oldlen = len;len = augmentative.apply(s, len);} while (len != oldlen);oldlen = len;len = noun.apply(s, len);if (len == oldlen) { len = verb.apply(s, len);}len = vowel.apply(s, len);for (int i = 0; i < len; i++)switch(s[i]) {case 'á': s[i] = 'a'; break;case 'é':case 'ê': s[i] = 'e'; break;case 'í': s[i] = 'i'; break;case 'ó': s[i] = 'o'; break;case 'ú': s[i] = 'u'; break;}return len;}

// Translation:
public virtual int Stem(char[] s, int len){Debug.Assert(s.Length >= len + 1, "this stemmer requires an oversized array of at least 1");len = plural.Apply(s, len);len = unification.Apply(s, len);len = adverb.Apply(s, len);int oldlen;do{oldlen = len;len = augmentative.Apply(s, len);} while (len != oldlen);oldlen = len;len = noun.Apply(s, len);if (len == oldlen) {len = verb.Apply(s, len);}len = vowel.Apply(s, len);for (int i = 0; i < len; i++){switch (s[i]){case 'á':s[i] = 'a';break;case 'é':case 'ê':s[i] = 'e';break;case 'í':s[i] = 'i';break;case 'ó':s[i] = 'o';break;case 'ú':s[i] = 'u';break;}}return len;}