yijunyu/c-to-rust huggingface dataset:
// Original:
public void resize(double scaleX, double scaleY) {HSSFClientAnchor anchor = getClientAnchor();anchor.setAnchorType(AnchorType.MOVE_DONT_RESIZE);HSSFClientAnchor pref = getPreferredSize(scaleX,scaleY);int row2 = anchor.getRow1() + (pref.getRow2() - pref.getRow1());int col2 = anchor.getCol1() + (pref.getCol2() - pref.getCol1());anchor.setCol2((short)col2);anchor.setDx2(pref.getDx2());anchor.setRow2(row2);anchor.setDy2(pref.getDy2());}

// Translation:
public void Resize(double scaleX, double scaleY){HSSFClientAnchor anchor = (HSSFClientAnchor)ClientAnchor;anchor.AnchorType = AnchorType.MoveDontResize;HSSFClientAnchor pref = GetPreferredSize(scaleX, scaleY) as HSSFClientAnchor;int row2 = anchor.Row1 + (pref.Row2 - pref.Row1);int col2 = anchor.Col1 + (pref.Col2 - pref.Col1);anchor.Col2=((short)col2);anchor.Dx2=(pref.Dx2);anchor.Row2 = (row2);anchor.Dy2 = (pref.Dy2);}
// Original:
public void reset() throws IOException {throw new IOException("mark/reset not supported");}

// Translation:
public override void reset(){throw new System.IO.IOException("mark/reset not supported");}
// Original:
public Body(Content text) {setText(text);}

// Translation:
public Body(Content text){_text = text;}
// Original:
public StaticCredentialsProvider(IClientProfile clientProfile) {IClientProfile clientProfile1 = clientProfile;Credential legacyCredential = clientProfile1.getCredential();if (null != legacyCredential.getSecurityToken()) {this.credentials = new BasicSessionCredentials(legacyCredential.getAccessKeyId(), legacyCredential.getAccessSecret(), legacyCredential.getSecurityToken());} else {this.credentials = new LegacyCredentials(legacyCredential);}}

// Translation:
public StaticCredentialsProvider(IClientProfile clientProfile){this.clientProfile = clientProfile;var legacyCredential = this.clientProfile.GetCredential();if (null != legacyCredential.SecurityToken){credentials = new BasicSessionCredentials(legacyCredential.AccessKeyId,legacyCredential.AccessSecret,legacyCredential.SecurityToken);}else{credentials = new LegacyCredentials(legacyCredential);}}
// Original:
public synchronized V get(Object key) {int hash = key.hashCode();hash ^= (hash >>> 20) ^ (hash >>> 12);hash ^= (hash >>> 7) ^ (hash >>> 4);HashtableEntry<K, V>[] tab = table;for (HashtableEntry<K, V> e = tab[hash & (tab.length - 1)];e != null; e = e.next) {K eKey = e.key;if (eKey == key || (e.hash == hash && key.equals(eKey))) {return e.value;}}return null;}

// Translation:
public override V get(object key){lock (this){int hash = key.GetHashCode();hash ^= ((int)(((uint)hash) >> 20)) ^ ((int)(((uint)hash) >> 12));hash ^= ((int)(((uint)hash) >> 7)) ^ ((int)(((uint)hash) >> 4));java.util.Hashtable.HashtableEntry<K, V>[] tab = table;{for (java.util.Hashtable.HashtableEntry<K, V> e = tab[hash & (tab.Length - 1)]; e!= null; e = e.next){K eKey = e.key;if (Sharpen.Util.Equals(eKey, key) || (e.hash == hash && key.Equals(eKey))){return e.value;}}}return default(V);}}
// Original:
public void keep(int pos, int cnt) {beforeAdd(cache.getEntry(pos));fastKeep(pos, cnt);}

// Translation:
public virtual void Keep(int pos, int cnt){BeforeAdd(cache.GetEntry(pos));FastKeep(pos, cnt);}
// Original:
public TableStylesRecord(RecordInputStream in) {rt = in.readUShort();grbitFrt = in.readUShort();in.readFully(unused);cts = in.readInt();int cchDefListStyle = in.readUShort();int cchDefPivotStyle = in.readUShort();rgchDefListStyle = in.readUnicodeLEString(cchDefListStyle);rgchDefPivotStyle = in.readUnicodeLEString(cchDefPivotStyle);}

// Translation:
public TableStylesRecord(RecordInputStream in1){rt = in1.ReadUShort();grbitFrt = in1.ReadUShort();in1.ReadFully(unused);cts = in1.ReadInt();int cchDefListStyle = in1.ReadUShort();int cchDefPivotStyle = in1.ReadUShort();rgchDefListStyle = in1.ReadUnicodeLEString(cchDefListStyle);rgchDefPivotStyle = in1.ReadUnicodeLEString(cchDefPivotStyle);}
// Original:
public AddAttributesToFindingsResult addAttributesToFindings(AddAttributesToFindingsRequest request) {request = beforeClientExecution(request);return executeAddAttributesToFindings(request);}

// Translation:
public virtual AddAttributesToFindingsResponse AddAttributesToFindings(AddAttributesToFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddAttributesToFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = AddAttributesToFindingsResponseUnmarshaller.Instance;return Invoke<AddAttributesToFindingsResponse>(request, options);}
// Original:
public CellElapsedFormatter(String pattern) {super(pattern);specs = new ArrayList<>();StringBuffer desc = CellFormatPart.parseFormat(pattern,CellFormatType.ELAPSED, new ElapsedPartHandler());ListIterator<TimeSpec> it = specs.listIterator(specs.size());while (it.hasPrevious()) {TimeSpec spec = it.previous();desc.replace(spec.pos, spec.pos + spec.len, "%0" + spec.len + "d");if (spec.type != topmost.type) {spec.modBy = modFor(spec.type, spec.len);}}printfFmt = desc.toString();}

// Translation:
public CellElapsedFormatter(String pattern): base(pattern){specs = new List<TimeSpec>();StringBuilder desc = CellFormatPart.ParseFormat(pattern,CellFormatType.ELAPSED, new ElapsedPartHandler(this));for(int i=specs.Count-1;i>=0;i--){TimeSpec spec = specs[i];desc.Remove(spec.pos, spec.len);desc.Insert(spec.pos, "D" + spec.len);if (spec.type != topmost.type){spec.modBy = modFor(spec.type, spec.len);}}printfFmt = desc.ToString();}
// Original:
public final int capacity() {return capacity;}

// Translation:
public int capacity(){return _capacity;}
// Original:
public final boolean matches(char c) {return Character.isWhitespace(c);}

// Translation:
public bool Matches(char c){return char.IsWhiteSpace(c);}
// Original:
public BytesRef get(int bytesID, BytesRef ref) {assert bytesStart != null : "bytesStart is null - not initialized";assert bytesID < bytesStart.length: "bytesID exceeds byteStart len: " + bytesStart.length;pool.setBytesRef(ref, bytesStart[bytesID]);return ref;}

// Translation:
public BytesRef Get(int bytesID, BytesRef @ref){Debug.Assert(bytesStart != null, "bytesStart is null - not initialized");Debug.Assert(bytesID < bytesStart.Length, "bytesID exceeds byteStart len: " + bytesStart.Length);pool.SetBytesRef(@ref, bytesStart[bytesID]);return @ref;}
// Original:
public void run() {display = true;}

// Translation:
public virtual void Run(){display = true;}
// Original:
public UpdateMatchmakingConfigurationResult updateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateMatchmakingConfiguration(request);}

// Translation:
public virtual UpdateMatchmakingConfigurationResponse UpdateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMatchmakingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMatchmakingConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateMatchmakingConfigurationResponse>(request, options);}
// Original:
public boolean isGroup(char c) {return groupMap[characterCategoryMap[c]];}

// Translation:
public bool IsGroup(char c){return groupMap[characterCategoryMap[c]];}
// Original:
public void setTraverseEmptyCells(boolean traverseEmptyCells) {this.traverseEmptyCells = traverseEmptyCells;}

// Translation:
public void SetTraverseEmptyCells(bool traverseEmptyCells){this.traverseEmptyCells = traverseEmptyCells;}
// Original:
public ListPresetsResult listPresets(ListPresetsRequest request) {request = beforeClientExecution(request);return executeListPresets(request);}

// Translation:
public virtual ListPresetsResponse ListPresets(ListPresetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPresetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPresetsResponseUnmarshaller.Instance;return Invoke<ListPresetsResponse>(request, options);}
// Original:
@Override public Set<K> keySet() {Set<K> ks = keySet;return (ks != null) ? ks : (keySet = new KeySet());}

// Translation:
public override java.util.Set<K> keySet(){java.util.Set<K> ks = _keySet;return (ks != null) ? ks : (_keySet = new java.util.HashMap<K, V>.KeySet(this));}
// Original:
public void include(Ref r) {include(r.getName(), r.getObjectId());if (r.getPeeledObjectId() != null)tagTargets.add(r.getPeeledObjectId());else if (r.getObjectId() != null&& r.getName().startsWith(Constants.R_HEADS))tagTargets.add(r.getObjectId());}

// Translation:
public virtual void Include(Ref r){Include(r.GetName(), r.GetObjectId());if (r.GetPeeledObjectId() != null){tagTargets.AddItem(r.GetPeeledObjectId());}else{if (r.GetObjectId() != null && r.GetName().StartsWith(Constants.R_HEADS)){tagTargets.AddItem(r.GetObjectId());}}}
// Original:
public CharBuffer get(char[] dst, int dstOffset, int charCount) {byteBuffer.limit(limit * SizeOf.CHAR);byteBuffer.position(position * SizeOf.CHAR);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, charCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, charCount);}this.position += charCount;return this;}

// Translation:
public override java.nio.CharBuffer get(char[] dst, int dstOffset, int charCount){byteBuffer.limit(_limit * libcore.io.SizeOf.CHAR);byteBuffer.position(_position * libcore.io.SizeOf.CHAR);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, charCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, charCount);}this._position += charCount;return this;}
// Original:
public BytesRef subtract(BytesRef output, BytesRef inc) {assert output != null;assert inc != null;if (inc == NO_OUTPUT) {return output;} else {assert StringHelper.startsWith(output, inc);if (inc.length == output.length) {return NO_OUTPUT;} else {assert inc.length < output.length: "inc.length=" + inc.length + " vs output.length=" + output.length;assert inc.length > 0;return new BytesRef(output.bytes, output.offset + inc.length, output.length-inc.length);}}}

// Translation:
public override BytesRef Subtract(BytesRef output, BytesRef inc){Debug.Assert(output != null);Debug.Assert(inc != null);if (inc == NO_OUTPUT){return output;}else if (inc.Length == output.Length){return NO_OUTPUT;}else{Debug.Assert(inc.Length < output.Length, "inc.length=" + inc.Length + " vs output.length=" + output.Length);Debug.Assert(inc.Length > 0);return new BytesRef(output.Bytes, output.Offset + inc.Length, output.Length - inc.Length);}}
// Original:
public boolean isKanji(char c) {final byte characterClass = characterCategoryMap[c];return characterClass == KANJI || characterClass == KANJINUMERIC;}

// Translation:
public bool IsKanji(char c){byte characterClass = characterCategoryMap[c];return characterClass == KANJI || characterClass == KANJINUMERIC;}
// Original:
public int getType() {return type;}

// Translation:
public override int GetType(){return type;}
// Original:
public ValueEval getItem(int index) {if(index > _size) {throw new ArrayIndexOutOfBoundsException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size-1) + ")");}return _tableArray.getValue(index, _columnIndex);}

// Translation:
public ValueEval GetItem(int index){if (index > _size){throw new IndexOutOfRangeException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size - 1) + ")");}return _tableArray.GetRelativeValue(index, _columnIndex);}
// Original:
public void writeDouble(double v) {writeContinueIfRequired(8);_ulrOutput.writeDouble(v);}

// Translation:
public void WriteDouble(double v){_out.WriteDouble(v);_size += 8;}
// Original:
final public QueryNode ConjQuery(CharSequence field) throws ParseException {QueryNode first, c;Vector<QueryNode> clauses = null;first = ModClause(field);label_3:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case AND:;break;default:jj_la1[4] = jj_gen;break label_3;}jj_consume_token(AND);c = ModClause(field);if (clauses == null) {clauses = new Vector<QueryNode>();clauses.addElement(first);}clauses.addElement(c);}if (clauses != null) {{if (true) return new AndQueryNode(clauses);}} else {{if (true) return first;}}throw new Error("Missing return statement in function");}

// Translation:
public IQueryNode ConjQuery(string field){IQueryNode first, c;List<IQueryNode> clauses = null;first = ModClause(field);while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.AND:;break;default:jj_la1[6] = jj_gen;goto label_3_break;}Jj_consume_token(RegexpToken.AND);c = ModClause(field);if (clauses == null){clauses = new List<IQueryNode>();clauses.Add(first);}clauses.Add(c);}label_3_break:if (clauses != null){{ if (true) return new AndQueryNode(clauses); }}else{{ if (true) return first; }}throw new Exception("Missing return statement in function");}
// Original:
public void setRevFilter(RevFilter newFilter) {assertNotStarted();filter = newFilter != null ? newFilter : RevFilter.ALL;}

// Translation:
public virtual void SetRevFilter(RevFilter newFilter){AssertNotStarted();filter = newFilter != null ? newFilter : RevFilter.ALL;}
// Original:
public void setText(final char array[], int start, int length) {this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}

// Translation:
public virtual void SetText(char[] array, int start, int length){this.array = array;this.start = start;this.index = start;this.length = length;this.limit = start + length;}
// Original:
public GetVoiceChannelResult getVoiceChannel(GetVoiceChannelRequest request) {request = beforeClientExecution(request);return executeGetVoiceChannel(request);}

// Translation:
public virtual GetVoiceChannelResponse GetVoiceChannel(GetVoiceChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceChannelResponseUnmarshaller.Instance;return Invoke<GetVoiceChannelResponse>(request, options);}
// Original:
public RevokeSecurityGroupIngressResult revokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupIngress(request);}

// Translation:
public virtual RevokeSecurityGroupIngressResponse RevokeSecurityGroupIngress(RevokeSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeSecurityGroupIngressResponse>(request, options);}
// Original:
public DoubleBuffer slice() {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());DoubleBuffer result = new DoubleToByteBufferAdapter(bb);byteBuffer.clear();return result;}

// Translation:
public override java.nio.DoubleBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.DoubleBuffer result = new java.nio.DoubleToByteBufferAdapter(bb);byteBuffer.clear();return result;}
// Original:
public DoubleValuesSource makeDistanceValueSource(Point queryPoint, double multiplier) {return new DistanceValueSource(this, queryPoint, multiplier);}

// Translation:
public override ValueSource MakeDistanceValueSource(IPoint queryPoint, double multiplier){return new DistanceValueSource(this, queryPoint, multiplier);}
// Original:
public String toString() {final StringBuilder r = new StringBuilder();final SimpleDateFormat dtfmt;dtfmt = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z", Locale.US);dtfmt.setTimeZone(getTimeZone());r.append("PersonIdent[");r.append(getName());r.append(", ");r.append(getEmailAddress());r.append(", ");r.append(dtfmt.format(Long.valueOf(when)));r.append("]");return r.toString();}

// Translation:
public override string ToString(){StringBuilder r = new StringBuilder();SimpleDateFormat dtfmt;dtfmt = new SimpleDateFormat("EEE MMM d HH:mm:ss yyyy Z", CultureInfo.InvariantCulture);dtfmt.SetTimeZone(GetTimeZone());r.Append("PersonIdent[");r.Append(GetName());r.Append(", ");r.Append(GetEmailAddress());r.Append(", ");r.Append(dtfmt.Format(Sharpen.Extensions.ValueOf(when)));r.Append("]");return r.ToString();}
// Original:
public ArabicStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public ArabicStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public int getIndex() {return offset;}

// Translation:
public int getIndex(){return offset;}
// Original:
public ListVoiceConnectorsResult listVoiceConnectors(ListVoiceConnectorsRequest request) {request = beforeClientExecution(request);return executeListVoiceConnectors(request);}

// Translation:
public virtual ListVoiceConnectorsResponse ListVoiceConnectors(ListVoiceConnectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListVoiceConnectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListVoiceConnectorsResponseUnmarshaller.Instance;return Invoke<ListVoiceConnectorsResponse>(request, options);}
// Original:
public GetOperationResult getOperation(GetOperationRequest request) {request = beforeClientExecution(request);return executeGetOperation(request);}

// Translation:
public virtual GetOperationResponse GetOperation(GetOperationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationResponseUnmarshaller.Instance;return Invoke<GetOperationResponse>(request, options);}
// Original:
public Item(String name, java.util.List<Attribute> attributes) {setName(name);setAttributes(attributes);}

// Translation:
public Item(string name, List<Attribute> attributes){_name = name;_attributes = attributes;}
// Original:
public SetIdentityHeadersInNotificationsEnabledResult setIdentityHeadersInNotificationsEnabled(SetIdentityHeadersInNotificationsEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityHeadersInNotificationsEnabled(request);}

// Translation:
public virtual SetIdentityHeadersInNotificationsEnabledResponse SetIdentityHeadersInNotificationsEnabled(SetIdentityHeadersInNotificationsEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityHeadersInNotificationsEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityHeadersInNotificationsEnabledResponseUnmarshaller.Instance;return Invoke<SetIdentityHeadersInNotificationsEnabledResponse>(request, options);}
// Original:
public void setSensitiveInputCells(CellCacheEntry[] sensitiveInputCells) {if (sensitiveInputCells == null) {_sensitiveInputCells = null;changeConsumingCells(CellCacheEntry.EMPTY_ARRAY);} else {_sensitiveInputCells = sensitiveInputCells.clone();changeConsumingCells(_sensitiveInputCells);}}

// Translation:
public void SetSensitiveInputCells(CellCacheEntry[] sensitiveInputCells){ChangeConsumingCells(sensitiveInputCells == null ? CellCacheEntry.EMPTY_ARRAY : sensitiveInputCells);_sensitiveInputCells = sensitiveInputCells;}
// Original:
public synchronized boolean add(E e) {Object[] newElements = new Object[elements.length + 1];System.arraycopy(elements, 0, newElements, 0, elements.length);newElements[elements.length] = e;elements = newElements;return true;}

// Translation:
public virtual bool add(E e){lock (this){object[] newElements = new object[elements.Length + 1];System.Array.Copy(elements, 0, newElements, 0, elements.Length);newElements[elements.Length] = e;elements = newElements;return true;}}
// Original:
public StringBuilder append(long l) {IntegralToString.appendLong(this, l);return this;}

// Translation:
public java.lang.StringBuilder append(bool b){append0(b ? "true" : "false");return this;}
// Original:
public DeleteHsmClientCertificateResult deleteHsmClientCertificate(DeleteHsmClientCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteHsmClientCertificate(request);}

// Translation:
public virtual DeleteHsmClientCertificateResponse DeleteHsmClientCertificate(DeleteHsmClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteHsmClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteHsmClientCertificateResponseUnmarshaller.Instance;return Invoke<DeleteHsmClientCertificateResponse>(request, options);}
// Original:
public CreateAssessmentTargetResult createAssessmentTarget(CreateAssessmentTargetRequest request) {request = beforeClientExecution(request);return executeCreateAssessmentTarget(request);}

// Translation:
public virtual CreateAssessmentTargetResponse CreateAssessmentTarget(CreateAssessmentTargetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAssessmentTargetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAssessmentTargetResponseUnmarshaller.Instance;return Invoke<CreateAssessmentTargetResponse>(request, options);}
// Original:
public DescribeGlobalReplicationGroupsResult describeGlobalReplicationGroups(DescribeGlobalReplicationGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGlobalReplicationGroups(request);}

// Translation:
public virtual DescribeGlobalReplicationGroupsResponse DescribeGlobalReplicationGroups(DescribeGlobalReplicationGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGlobalReplicationGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGlobalReplicationGroupsResponseUnmarshaller.Instance;return Invoke<DescribeGlobalReplicationGroupsResponse>(request, options);}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(_sheetRefIndex);out.writeShort(_nameNumber);out.writeShort(_reserved);}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(_sheetRefIndex);out1.WriteShort(_nameNumber);out1.WriteShort(_reserved);}
// Original:
public static String parseSegmentName(String filename) {int idx = indexOfSegmentName(filename);if (idx != -1) {filename = filename.substring(0, idx);}return filename;}

// Translation:
public static string ParseSegmentName(string filename){int idx = IndexOfSegmentName(filename);if (idx != -1){filename = filename.Substring(0, idx);}return filename;}
// Original:
public String getRefLogMessage() {return refLogMessage;}

// Translation:
public virtual string GetRefLogMessage(){return refLogMessage;}
// Original:
public ObjectId getObjectId() {return missing;}

// Translation:
public virtual ObjectId GetObjectId(){return missing;}
// Original:
public void setPackedGitLimit(long newLimit) {packedGitLimit = newLimit;}

// Translation:
public virtual void SetPackedGitLimit(long newLimit){packedGitLimit = newLimit;}
// Original:
public String toString() {return "";}

// Translation:
public override string ToString(){return "";}
// Original:
public void clear() {if (size > 0) {size = 0;voidLink.next = voidLink;voidLink.previous = voidLink;modCount++;}}

// Translation:
public override void clear(){if (_size > 0){_size = 0;voidLink.next = voidLink;voidLink.previous = voidLink;modCount++;}}