yijunyu/c-to-rust huggingface dataset:
// Original:
public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord note) {super(spContainer, objRecord, textObjectRecord);_note = note;}

// Translation:
public HSSFComment(EscherContainerRecord spContainer, ObjRecord objRecord, TextObjectRecord textObjectRecord, NoteRecord _note): base(spContainer, objRecord, textObjectRecord){this._note = _note;}
// Original:
public FilteredDocIdSetIterator(DocIdSetIterator innerIter) {if (innerIter == null) {throw new IllegalArgumentException("null iterator");}_innerIter = innerIter;doc = -1;}

// Translation:
public FilteredDocIdSetIterator(DocIdSetIterator innerIter){if (innerIter == null){throw new System.ArgumentException("null iterator");}m_innerIter = innerIter;doc = -1;}
// Original:
public DeleteDBClusterParameterGroupResult deleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDBClusterParameterGroup(request);}

// Translation:
public virtual DeleteDBClusterParameterGroupResponse DeleteDBClusterParameterGroup(DeleteDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<DeleteDBClusterParameterGroupResponse>(request, options);}
// Original:
public LongsRef next(int count) throws IOException {assert nextValues.length >= 0;assert count > 0;assert nextValues.offset + nextValues.length <= nextValues.longs.length;nextValues.offset += nextValues.length;final int remaining = valueCount - position - 1;if (remaining <= 0) {throw new EOFException();}count = Math.min(remaining, count);if (nextValues.offset == nextValues.longs.length) {final long remainingBlocks = format.byteCount(packedIntsVersion, remaining, bitsPerValue);final int blocksToRead = (int) Math.min(remainingBlocks, nextBlocks.length);in.readBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.length) {Arrays.fill(nextBlocks, blocksToRead, nextBlocks.length, (byte) 0);}bulkOperation.decode(nextBlocks, 0, nextValues.longs, 0, iterations);nextValues.offset = 0;}nextValues.length = Math.min(nextValues.longs.length - nextValues.offset, count);position += nextValues.length;return nextValues;}

// Translation:
public override Int64sRef Next(int count){Debug.Assert(nextValues.Length >= 0);Debug.Assert(count > 0);Debug.Assert(nextValues.Offset + nextValues.Length <= nextValues.Int64s.Length);nextValues.Offset += nextValues.Length;int remaining = m_valueCount - position - 1;if (remaining <= 0){throw new System.IO.EndOfStreamException();}count = Math.Min(remaining, count);if (nextValues.Offset == nextValues.Int64s.Length){long remainingBlocks = format.ByteCount(packedIntsVersion, remaining, m_bitsPerValue);int blocksToRead = (int)Math.Min(remainingBlocks, nextBlocks.Length);m_in.ReadBytes(nextBlocks, 0, blocksToRead);if (blocksToRead < nextBlocks.Length){Arrays.Fill(nextBlocks, blocksToRead, nextBlocks.Length, (byte)0);}bulkOperation.Decode(nextBlocks, 0, nextValues.Int64s, 0, iterations);nextValues.Offset = 0;}nextValues.Length = Math.Min(nextValues.Int64s.Length - nextValues.Offset, count);position += nextValues.Length;return nextValues;}
// Original:
public UpdateServiceAccessPoliciesResult updateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request) {request = beforeClientExecution(request);return executeUpdateServiceAccessPolicies(request);}

// Translation:
public virtual UpdateServiceAccessPoliciesResponse UpdateServiceAccessPolicies(UpdateServiceAccessPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateServiceAccessPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateServiceAccessPoliciesResponseUnmarshaller.Instance;return Invoke<UpdateServiceAccessPoliciesResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(sid);out.writeShort(ENCODED_SIZE);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(sid);out1.WriteShort(ENCODED_SIZE);}
// Original:
public GetApplicationSettingsResult getApplicationSettings(GetApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeGetApplicationSettings(request);}

// Translation:
public virtual GetApplicationSettingsResponse GetApplicationSettings(GetApplicationSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApplicationSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApplicationSettingsResponseUnmarshaller.Instance;return Invoke<GetApplicationSettingsResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(getCodepage());}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(Codepage);}
// Original:
public SharedFormulaRecord(RecordInputStream in) {super(in);field_5_reserved        = in.readShort();int field_6_expression_len = in.readShort();int nAvailableBytes = in.available();field_7_parsed_expr = Formula.read(field_6_expression_len, in, nAvailableBytes);}

// Translation:
public SharedFormulaRecord(RecordInputStream in1): base(in1){field_5_reserved = in1.ReadShort();int field_6_expression_len = in1.ReadShort();int nAvailableBytes = in1.Available();field_7_parsed_expr = NPOI.SS.Formula.Formula.Read(field_6_expression_len, in1, nAvailableBytes);}
// Original:
public void remove() {if (this.lastPosition == -1) {throw new IllegalStateException();}if (expectedModCount != modCount) {throw new ConcurrentModificationException();}try {AbstractList.this.remove(lastPosition);} catch (IndexOutOfBoundsException e) {throw new ConcurrentModificationException();}expectedModCount = modCount;if (pos == lastPosition) {pos--;}lastPosition = -1;}

// Translation:
public virtual void remove(){if (this.lastPosition == -1){throw new System.InvalidOperationException();}if (this.expectedModCount != this._enclosing.modCount){throw new java.util.ConcurrentModificationException();}try{this._enclosing.remove(this.lastPosition);}catch (System.IndexOutOfRangeException){throw new java.util.ConcurrentModificationException();}this.expectedModCount = this._enclosing.modCount;if (this.pos == this.lastPosition){this.pos--;}this.lastPosition = -1;}
// Original:
public int getRef(Character way) {Cell c = at(way);return (c == null) ? -1 : c.ref;}

// Translation:
public int GetRef(char way){Cell c = At(way);return (c == null) ? -1 : c.@ref;}
// Original:
public K ceilingKey(K key) {Entry<K, V> entry = findBounded(key, CEILING);return entry != null ? entry.getKey() : null;}

// Translation:
public K ceilingKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.CEILING);return entry != null ? entry.getKey() : default(K);}
// Original:
public CreateApplicationRequest(String applicationName) {setApplicationName(applicationName);}

// Translation:
public CreateApplicationRequest(string applicationName){_applicationName = applicationName;}
// Original:
public int pathCompare(byte[] buf, int pos, int end, int pathMode) {return pathCompare(buf, pos, end, pathMode, 0);}

// Translation:
public virtual int PathCompare(byte[] buf, int pos, int end, int mode){return PathCompare(buf, pos, end, mode, 0);}
// Original:
public DescribeContainerInstancesResult describeContainerInstances(DescribeContainerInstancesRequest request) {request = beforeClientExecution(request);return executeDescribeContainerInstances(request);}

// Translation:
public virtual DescribeContainerInstancesResponse DescribeContainerInstances(DescribeContainerInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeContainerInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeContainerInstancesResponseUnmarshaller.Instance;return Invoke<DescribeContainerInstancesResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {for (short tabid : _tabids) {out.writeShort(tabid);}}

// Translation:
public override void Serialize(ILittleEndianOutput out1){short[] tabids = _tabids;for (int i = 0; i < tabids.Length; i++){out1.WriteShort(tabids[i]);}}
// Original:
public ListIAMPolicyAssignmentsForUserResult listIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request) {request = beforeClientExecution(request);return executeListIAMPolicyAssignmentsForUser(request);}

// Translation:
public virtual ListIAMPolicyAssignmentsForUserResponse ListIAMPolicyAssignmentsForUser(ListIAMPolicyAssignmentsForUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIAMPolicyAssignmentsForUserRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIAMPolicyAssignmentsForUserResponseUnmarshaller.Instance;return Invoke<ListIAMPolicyAssignmentsForUserResponse>(request, options);}
// Original:
public boolean equals(Object obj) {if (obj instanceof Map.Entry) {final Object key = ((Map.Entry) obj).getKey();final Object val = ((Map.Entry) obj).getValue();if (key instanceof String && val instanceof Ref) {final Ref r = (Ref) val;if (r.getName().equals(ref.getName())) {final ObjectId a = r.getObjectId();final ObjectId b = ref.getObjectId();if (a != null && b != null&& AnyObjectId.isEqual(a, b)) {return true;}}}}return false;}

// Translation:
public override bool Equals(object obj){if (obj is DictionaryEntry){object key = ((DictionaryEntry)obj).Key;object val = ((DictionaryEntry)obj).Value;if (key is string && val is Ref){Ref r = (Ref)val;if (r.GetName().Equals(this.@ref.GetName())){ObjectId a = r.GetObjectId();ObjectId b = this.@ref.GetObjectId();if (a != null && b != null && AnyObjectId.Equals(a, b)){return true;}}}}return false;}
// Original:
public RemoveFacetFromObjectResult removeFacetFromObject(RemoveFacetFromObjectRequest request) {request = beforeClientExecution(request);return executeRemoveFacetFromObject(request);}

// Translation:
public virtual RemoveFacetFromObjectResponse RemoveFacetFromObject(RemoveFacetFromObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveFacetFromObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveFacetFromObjectResponseUnmarshaller.Instance;return Invoke<RemoveFacetFromObjectResponse>(request, options);}
// Original:
public static boolean equals(char[] array1, char[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}

// Translation:
public static bool equals(char[] array1, char[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}
// Original:
public AssociateRouteTableResult associateRouteTable(AssociateRouteTableRequest request) {request = beforeClientExecution(request);return executeAssociateRouteTable(request);}

// Translation:
public virtual AssociateRouteTableResponse AssociateRouteTable(AssociateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = AssociateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = AssociateRouteTableResponseUnmarshaller.Instance;return Invoke<AssociateRouteTableResponse>(request, options);}
// Original:
public void createInformationProperties() {if (!initialized) {readProperties();}if (sInf == null) {sInf = PropertySetFactory.newSummaryInformation();}if (dsInf == null) {dsInf = newDocumentSummaryInformation();}}

// Translation:
public void CreateInformationProperties(){if (!initialized) ReadProperties();if (sInf == null){sInf = PropertySetFactory.CreateSummaryInformation();}if (dsInf == null){dsInf = PropertySetFactory.CreateDocumentSummaryInformation();}}
// Original:
public DescribeCommentsResult describeComments(DescribeCommentsRequest request) {request = beforeClientExecution(request);return executeDescribeComments(request);}

// Translation:
public virtual DescribeCommentsResponse DescribeComments(DescribeCommentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCommentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCommentsResponseUnmarshaller.Instance;return Invoke<DescribeCommentsResponse>(request, options);}
// Original:
public MoPenCreateDeviceRequest() {super("MoPen", "2018-02-11", "MoPenCreateDevice", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public MoPenCreateDeviceRequest(): base("MoPen", "2018-02-11", "MoPenCreateDevice", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public ApplySchemaResult applySchema(ApplySchemaRequest request) {request = beforeClientExecution(request);return executeApplySchema(request);}

// Translation:
public virtual ApplySchemaResponse ApplySchema(ApplySchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApplySchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = ApplySchemaResponseUnmarshaller.Instance;return Invoke<ApplySchemaResponse>(request, options);}
// Original:
public MMSRecord(RecordInputStream in) {if (in.remaining()==0) {return;}field_1_addMenuCount = in.readByte();field_2_delMenuCount = in.readByte();}

// Translation:
public MMSRecord(RecordInputStream in1){if (in1.Remaining == 0){return;}field_1_AddMenuCount = (byte)in1.ReadByte();field_2_delMenuCount = (byte)in1.ReadByte();}
// Original:
public UserInputQueryBuilder(QueryParser parser) {this.unSafeParser = parser;}

// Translation:
public UserInputQueryBuilder(QueryParser parser){this.unSafeParser = parser;}
// Original:
public Object get(CharSequence key) {TSTNode node = getNode(key);if (node == null) {return null;}return node.data;}

// Translation:
public virtual object Get(string key){TSTNode node = GetNode(key);if (node == null){return null;}return node.data;}
// Original:
public MergedGroup(T groupValue) {this.groupValue = groupValue;}

// Translation:
public MergedGroup(T groupValue){this.groupValue = groupValue;}
// Original:
public StoredField(String name, int value) {super(name, TYPE);fieldsData = value;}

// Translation:
public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}
// Original:
public RebaseCommand setProgressMonitor(ProgressMonitor monitor) {if (monitor == null) {monitor = NullProgressMonitor.INSTANCE;}this.monitor = monitor;return this;}

// Translation:
public virtual NGit.Api.RebaseCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}
// Original:
public UnknownSubRecord clone() {return copy();}

// Translation:
public override Object Clone(){return this;}
// Original:
public Query getQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, "fieldName");String text = DOMUtils.getNonBlankTextOrFail(e);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.setMinimumNumberShouldMatch(DOMUtils.getAttribute(e, "minimumNumberShouldMatch", 0));try (TokenStream ts = analyzer.tokenStream(fieldName, text)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);Term term = null;ts.reset();while (ts.incrementToken()) {term = new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef()));bq.add(new BooleanClause(new TermQuery(term), BooleanClause.Occur.SHOULD));}ts.end();}catch (IOException ioe) {throw new RuntimeException("Error constructing terms from index:" + ioe);}Query q = bq.build();float boost = DOMUtils.getAttribute(e, "boost", 1.0f);return new BoostQuery(q, boost);}

// Translation:
public virtual Query GetQuery(XmlElement e){string fieldName = DOMUtils.GetAttributeWithInheritanceOrFail(e, "fieldName");string text = DOMUtils.GetNonBlankTextOrFail(e);BooleanQuery bq = new BooleanQuery(DOMUtils.GetAttribute(e, "disableCoord", false));bq.MinimumNumberShouldMatch = DOMUtils.GetAttribute(e, "minimumNumberShouldMatch", 0);TokenStream ts = null;try{ts = analyzer.GetTokenStream(fieldName, text);ITermToBytesRefAttribute termAtt = ts.AddAttribute<ITermToBytesRefAttribute>();Term term = null;BytesRef bytes = termAtt.BytesRef;ts.Reset();while (ts.IncrementToken()){termAtt.FillBytesRef();term = new Term(fieldName, BytesRef.DeepCopyOf(bytes));bq.Add(new BooleanClause(new TermQuery(term), Occur.SHOULD));}ts.End();}catch (IOException ioe){throw new Exception("Error constructing terms from index:" + ioe);}finally{IOUtils.DisposeWhileHandlingException(ts);}bq.Boost = DOMUtils.GetAttribute(e, "boost", 1.0f);return bq;}
// Original:
public UpdateMailboxQuotaResult updateMailboxQuota(UpdateMailboxQuotaRequest request) {request = beforeClientExecution(request);return executeUpdateMailboxQuota(request);}

// Translation:
public virtual UpdateMailboxQuotaResponse UpdateMailboxQuota(UpdateMailboxQuotaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMailboxQuotaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMailboxQuotaResponseUnmarshaller.Instance;return Invoke<UpdateMailboxQuotaResponse>(request, options);}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder(40 * (path.length() + 1));for (int j = 0; j < path.length(); j++){buffer.append(path.getComponent(j)).append("/");}buffer.append(name);return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder(40 * (path.Length + 1));for (int j = 0; j < path.Length; j++){buffer.Append(path.GetComponent(j)).Append("/");}buffer.Append(name);return buffer.ToString();}
// Original:
public void removeApplicationName() {remove1stProperty(PropertyIDMap.PID_APPNAME);}

// Translation:
public void RemoveApplicationName(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_APPNAME);}
// Original:
public String toString(){StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");if (externalWorkbookNumber >= 0) {sb.append(" [");sb.append("workbook=").append(getExternalWorkbookNumber());sb.append("] ");}sb.append("sheet=").append(getSheetName());sb.append(" ! ");sb.append("name=");sb.append(nameName);sb.append("]");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name);sb.Append(" [");if (externalWorkbookNumber >= 0){sb.Append(" [");sb.Append("workbook=").Append(ExternalWorkbookNumber);sb.Append("] ");}if (SheetName != null){sb.Append("sheet=").Append(SheetName);}sb.Append(" ! ");sb.Append("name=");sb.Append(nameName);sb.Append("]");return sb.ToString();}
// Original:
public GetRecommenderConfigurationResult getRecommenderConfiguration(GetRecommenderConfigurationRequest request) {request = beforeClientExecution(request);return executeGetRecommenderConfiguration(request);}

// Translation:
public virtual GetRecommenderConfigurationResponse GetRecommenderConfiguration(GetRecommenderConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRecommenderConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRecommenderConfigurationResponseUnmarshaller.Instance;return Invoke<GetRecommenderConfigurationResponse>(request, options);}
// Original:
public int previous() {if (text.getIndex() == text.getBeginIndex()) {return DONE;} else {if (0 == sentenceStarts.length) {text.setIndex(text.getBeginIndex());return DONE;}if (text.getIndex() == text.getEndIndex()) {text.setIndex(sentenceStarts[currentSentence]);} else {text.setIndex(sentenceStarts[--currentSentence]);}return current();}}

// Translation:
public override int Previous(){if (text.Index == text.BeginIndex){return Done;}else{if (0 == sentenceStarts.Length){text.SetIndex(text.BeginIndex);return Done;}if (text.Index == text.EndIndex){text.SetIndex(sentenceStarts[currentSentence]);}else{text.SetIndex(sentenceStarts[--currentSentence]);}return Current;}}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[STARTOBJECT]\n");buffer.append("    .rt              =").append(HexDump.shortToHex(rt)).append('\n');buffer.append("    .grbitFrt        =").append(HexDump.shortToHex(grbitFrt)).append('\n');buffer.append("    .iObjectKind     =").append(HexDump.shortToHex(iObjectKind)).append('\n');buffer.append("    .iObjectContext  =").append(HexDump.shortToHex(iObjectContext)).append('\n');buffer.append("    .iObjectInstance1=").append(HexDump.shortToHex(iObjectInstance1)).append('\n');buffer.append("    .iObjectInstance2=").append(HexDump.shortToHex(iObjectInstance2)).append('\n');buffer.append("[/STARTOBJECT]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[STARTOBJECT]\n");buffer.Append("    .rt              =").Append(HexDump.ShortToHex(rt)).Append('\n');buffer.Append("    .grbitFrt        =").Append(HexDump.ShortToHex(grbitFrt)).Append('\n');buffer.Append("    .iObjectKind     =").Append(HexDump.ShortToHex(iObjectKind)).Append('\n');buffer.Append("    .iObjectContext  =").Append(HexDump.ShortToHex(iObjectContext)).Append('\n');buffer.Append("    .iObjectInstance1=").Append(HexDump.ShortToHex(iObjectInstance1)).Append('\n');buffer.Append("    .iObjectInstance2=").Append(HexDump.ShortToHex(iObjectInstance2)).Append('\n');buffer.Append("[/STARTOBJECT]\n");return buffer.ToString();}
// Original:
public static double average(double[] values) {double ave = 0;double sum = 0;for (double value : values) {sum += value;}ave = sum / values.length;return ave;}

// Translation:
public static double Average(double[] values){double ave = 0;double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}ave = sum / values.Length;return ave;}
// Original:
public GetCheckerIpRangesResult getCheckerIpRanges(GetCheckerIpRangesRequest request) {request = beforeClientExecution(request);return executeGetCheckerIpRanges(request);}

// Translation:
public virtual GetCheckerIpRangesResponse GetCheckerIpRanges(GetCheckerIpRangesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCheckerIpRangesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCheckerIpRangesResponseUnmarshaller.Instance;return Invoke<GetCheckerIpRangesResponse>(request, options);}
// Original:
public int getRegionLength() {return outRegion.length;}

// Translation:
public virtual int GetRegionLength(){return currentSource.regionList.length;}
// Original:
@Override public Iterator<Multiset.Entry<E>> iterator() {final Iterator<Map.Entry<E, Integer>> backingIterator= countMap.entrySet().iterator();return new Iterator<Multiset.Entry<E>>() {

// Translation:
public override java.util.Iterator<java.util.MapClass.Entry<K, V>> iterator(){return new java.util.Hashtable<K, V>.EntryIterator(this._enclosing);}
// Original:
public WeightedSpanTerm(float weight, String term, boolean positionSensitive) {super(weight, term);this.positionSensitive = positionSensitive;}

// Translation:
public WeightedSpanTerm(float weight, string term, bool positionSensitive): base(weight, term){_positionSensitive = positionSensitive;}
// Original:
public synchronized StringBuffer append(char[] chars) {append0(chars);return this;}

// Translation:
public java.lang.StringBuffer append(char[] chars){lock (this){append0(chars);return this;}}
// Original:
public UploadServerCertificateRequest(String serverCertificateName, String certificateBody, String privateKey) {setServerCertificateName(serverCertificateName);setCertificateBody(certificateBody);setPrivateKey(privateKey);}

// Translation:
public UploadServerCertificateRequest(string serverCertificateName, string certificateBody, string privateKey){_serverCertificateName = serverCertificateName;_certificateBody = certificateBody;_privateKey = privateKey;}