yijunyu/c-to-rust huggingface dataset:
// Original:
public DescribeLocalGatewayRouteTableVpcAssociationsResult describeLocalGatewayRouteTableVpcAssociations(DescribeLocalGatewayRouteTableVpcAssociationsRequest request) {request = beforeClientExecution(request);return executeDescribeLocalGatewayRouteTableVpcAssociations(request);}

// Translation:
public virtual DescribeLocalGatewayRouteTableVpcAssociationsResponse DescribeLocalGatewayRouteTableVpcAssociations(DescribeLocalGatewayRouteTableVpcAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLocalGatewayRouteTableVpcAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLocalGatewayRouteTableVpcAssociationsResponseUnmarshaller.Instance;return Invoke<DescribeLocalGatewayRouteTableVpcAssociationsResponse>(request, options);}
// Original:
public ErrorEval getErrorEval() {return _errorEval;}

// Translation:
public ErrorEval GetErrorEval(){return _errorEval;}
// Original:
public DeleteNetworkInterfaceResult deleteNetworkInterface(DeleteNetworkInterfaceRequest request) {request = beforeClientExecution(request);return executeDeleteNetworkInterface(request);}

// Translation:
public virtual DeleteNetworkInterfaceResponse DeleteNetworkInterface(DeleteNetworkInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNetworkInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNetworkInterfaceResponseUnmarshaller.Instance;return Invoke<DeleteNetworkInterfaceResponse>(request, options);}
// Original:
public Group(String path, String groupName, String groupId, String arn, java.util.Date createDate) {setPath(path);setGroupName(groupName);setGroupId(groupId);setArn(arn);setCreateDate(createDate);}

// Translation:
public Group(string path, string groupName, string groupId, string arn, DateTime createDate){_path = path;_groupName = groupName;_groupId = groupId;_arn = arn;_createDate = createDate;}
// Original:
public void removeName(int nameIndex){if (linkTable.getNumNames() > nameIndex) {int idx = findFirstRecordLocBySid(NameRecord.sid);records.remove(idx + nameIndex);linkTable.removeName(nameIndex);}}

// Translation:
public void RemoveName(int namenum){if (linkTable.NumNames > namenum){int idx = FindFirstRecordLocBySid(NameRecord.sid);records.Remove(idx + namenum);linkTable.RemoveName(namenum);}}
// Original:
public BaseFragListBuilder( int margin ){if( margin < 0 )throw new IllegalArgumentException( "margin(" + margin + ") is too small. It must be 0 or higher." );this.margin = margin;this.minFragCharSize = Math.max( 1, margin * MIN_FRAG_CHAR_SIZE_FACTOR );}

// Translation:
public BaseFragListBuilder(int margin){if (margin < 0)throw new ArgumentException("margin(" + margin + ") is too small. It must be 0 or higher.");this.margin = margin;this.minFragCharSize = Math.Max(1, margin * MIN_FRAG_CHAR_SIZE_FACTOR);}
// Original:
public Reader create(Reader input) {return new PatternReplaceCharFilter(pattern, replacement, input);}

// Translation:
public override TextReader Create(TextReader input){#pragma warning disable 612, 618return new PatternReplaceCharFilter(pattern, replacement, maxBlockChars, blockDelimiters, input);#pragma warning restore 612, 618}
// Original:
@Override public Iterator<K> iterator() {final Iterator<Entry<K, V>> iterator = delegate.entrySet().iterator();return new Iterator<K>() {Entry<K, V> entry;

// Translation:
public override java.util.Iterator<K> iterator(){return new java.util.Hashtable<K, V>.KeyIterator(this._enclosing);}
// Original:
public CreatePushTemplateResult createPushTemplate(CreatePushTemplateRequest request) {request = beforeClientExecution(request);return executeCreatePushTemplate(request);}

// Translation:
public virtual CreatePushTemplateResponse CreatePushTemplate(CreatePushTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePushTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePushTemplateResponseUnmarshaller.Instance;return Invoke<CreatePushTemplateResponse>(request, options);}
// Original:
public void removeEditTime() {remove1stProperty(PropertyIDMap.PID_EDITTIME);}

// Translation:
public void RemoveEditTime(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_EDITTIME);}
// Original:
public ListReusableDelegationSetsResult listReusableDelegationSets() {return listReusableDelegationSets(new ListReusableDelegationSetsRequest());}

// Translation:
public virtual ListReusableDelegationSetsResponse ListReusableDelegationSets(){return ListReusableDelegationSets(new ListReusableDelegationSetsRequest());}
// Original:
public boolean equals(Object obj) {if (obj == this) {return true;}if (obj instanceof AttributeSource) {AttributeSource other = (AttributeSource) obj;if (hasAttributes()) {if (!other.hasAttributes()) {return false;}if (this.attributeImpls.size() != other.attributeImpls.size()) {return false;}State thisState = this.getCurrentState();State otherState = other.getCurrentState();while (thisState != null && otherState != null) {if (otherState.attribute.getClass() != thisState.attribute.getClass() || !otherState.attribute.equals(thisState.attribute)) {return false;}thisState = thisState.next;otherState = otherState.next;}return true;} else {return !other.hasAttributes();}} elsereturn false;}

// Translation:
public override bool Equals(object obj){if (obj == this){return true;}if (obj is AttributeSource other){if (HasAttributes){if (!other.HasAttributes){return false;}if (this.attributeImpls.Count != other.attributeImpls.Count){return false;}State thisState = this.GetCurrentState();State otherState = other.GetCurrentState();while (thisState != null && otherState != null){if (otherState.attribute.GetType() != thisState.attribute.GetType() || !otherState.attribute.Equals(thisState.attribute)){return false;}thisState = thisState.next;otherState = otherState.next;}return true;}else{return !other.HasAttributes;}}else{return false;}}
// Original:
public static String toText(double value) {return rawDoubleBitsToText(Double.doubleToLongBits(value));}

// Translation:
public static String ToText(double value){return RawDoubleBitsToText(BitConverter.DoubleToInt64Bits(value));}
// Original:
public void notifySetFormula(Cell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell((HSSFCell)cell));}

// Translation:
public void NotifySetFormula(ICell cell){_bookEvaluator.NotifyUpdateCell(new HSSFEvaluationCell(cell));}
// Original:
public Ref getRef() {return ref;}

// Translation:
public virtual Ref GetRef(){return @ref;}
// Original:
public String toString() {StringBuilder sb = new StringBuilder();for (Block b : blocks) {sb.append(b.chars, 0, b.length);}return sb.toString();}

// Translation:
public override string ToString(){StringBuilder sb = new StringBuilder();foreach (Block b in blocks){sb.Append(b.chars, 0, b.length);}return sb.ToString();}
// Original:
public QueryNodeError(Message message) {super(message.getKey());this.message = message;}

// Translation:
public QueryNodeError(IMessage message): base(message.Key){this.message = message;}
// Original:
public GetRelationalDatabaseMasterUserPasswordResult getRelationalDatabaseMasterUserPassword(GetRelationalDatabaseMasterUserPasswordRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseMasterUserPassword(request);}

// Translation:
public virtual GetRelationalDatabaseMasterUserPasswordResponse GetRelationalDatabaseMasterUserPassword(GetRelationalDatabaseMasterUserPasswordRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseMasterUserPasswordRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseMasterUserPasswordResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseMasterUserPasswordResponse>(request, options);}
// Original:
public LuceneDictionary(IndexReader reader, String field) {this.reader = reader;this.field = field;}

// Translation:
public LuceneDictionary(IndexReader reader, string field){this.reader = reader;this.field = field;}
// Original:
public CreateRuleResult createRule(CreateRuleRequest request) {request = beforeClientExecution(request);return executeCreateRule(request);}

// Translation:
public virtual CreateRuleResponse CreateRule(CreateRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRuleResponseUnmarshaller.Instance;return Invoke<CreateRuleResponse>(request, options);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(errorCheck);}

// Translation:
public void Serialize(ILittleEndianOutput out1){out1.WriteInt(errorCheck);}
// Original:
public DescribeAlarmHistoryResult describeAlarmHistory() {return describeAlarmHistory(new DescribeAlarmHistoryRequest());}

// Translation:
public virtual DescribeAlarmHistoryResponse DescribeAlarmHistory(){return DescribeAlarmHistory(new DescribeAlarmHistoryRequest());}
// Original:
public DescribeVpcClassicLinkDnsSupportResult describeVpcClassicLinkDnsSupport(DescribeVpcClassicLinkDnsSupportRequest request) {request = beforeClientExecution(request);return executeDescribeVpcClassicLinkDnsSupport(request);}

// Translation:
public virtual DescribeVpcClassicLinkDnsSupportResponse DescribeVpcClassicLinkDnsSupport(DescribeVpcClassicLinkDnsSupportRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcClassicLinkDnsSupportRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcClassicLinkDnsSupportResponseUnmarshaller.Instance;return Invoke<DescribeVpcClassicLinkDnsSupportResponse>(request, options);}
// Original:
public static char toLowerCase(char c) {return c <= 'Z' ? LC[c] : c;}

// Translation:
public static char ToLowerCase(char c){return c <= 'Z' ? LC[c] : c;}
// Original:
public String[] split(CharSequence input) {return split(input, 0);}

// Translation:
public string[] split(java.lang.CharSequence input){return split(input, 0);}
// Original:
public synchronized void  execute() throws Exception {if (executed) {throw new IllegalStateException("Benchmark was already executed");}executed = true;runData.setStartTimeMillis();algorithm.execute();}

// Translation:
public virtual void Execute(){lock (this){if (executed){throw new InvalidOperationException("Benchmark was already executed");}executed = true;runData.SetStartTimeMillis();algorithm.Execute();}}
// Original:
public final V get() {return value;}

// Translation:
public V get() {return value;}
// Original:
public VCenterRecord clone() {return copy();}

// Translation:
public override Object Clone(){VCenterRecord rec = new VCenterRecord();rec.field_1_vcenter = field_1_vcenter;return rec;}
// Original:
public void publish(Revision revision) throws IOException {throw new UnsupportedOperationException("this replicator implementation does not support remote publishing of revisions");}

// Translation:
public virtual void Publish(IRevision revision){throw new NotSupportedException("this replicator implementation does not support remote publishing of revisions");}
// Original:
public boolean shouldBeRecursive() {return a.shouldBeRecursive() || b.shouldBeRecursive();}

// Translation:
public override bool ShouldBeRecursive(){return a.ShouldBeRecursive() || b.ShouldBeRecursive();}
// Original:
public boolean equals(Object obj) {if (!(obj instanceof URIish))return false;final URIish b = (URIish) obj;if (!eq(getScheme(), b.getScheme()))return false;if (!eq(getUser(), b.getUser()))return false;if (!eq(getPass(), b.getPass()))return false;if (!eq(getHost(), b.getHost()))return false;if (getPort() != b.getPort())return false;if (!eq(getPath(), b.getPath()))return false;return true;}

// Translation:
public override bool Equals(object obj){if (!(obj is NGit.Transport.URIish)){return false;}NGit.Transport.URIish b = (NGit.Transport.URIish)obj;if (!Eq(GetScheme(), b.GetScheme())){return false;}if (!Eq(GetUser(), b.GetUser())){return false;}if (!Eq(GetPass(), b.GetPass())){return false;}if (!Eq(GetHost(), b.GetHost())){return false;}if (GetPort() != b.GetPort()){return false;}if (!Eq(GetPath(), b.GetPath())){return false;}return true;}
// Original:
public TokenStream create(TokenStream input) {return new LowerCaseFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new LowerCaseFilter(m_luceneMatchVersion, input);}
// Original:
public String toString() {return "IndexRevision version=" + version + " files=" + sourceFiles;}

// Translation:
public override string ToString(){return "IndexRevision version=" + Version + " files=" + SourceFiles;}
// Original:
public static double coerceValueToDouble(ValueEval ev) throws EvaluationException {if (ev == BlankEval.instance) {return 0.0;}if (ev instanceof NumericValueEval) {return ((NumericValueEval)ev).getNumberValue();}if (ev instanceof StringEval) {String sval = ((StringEval) ev).getStringValue();Double dd = parseDouble(sval);if(dd == null) dd = parseDateTime(sval);if (dd == null) {throw EvaluationException.invalidValue();}return dd.doubleValue();}throw new RuntimeException("Unexpected arg eval type (" + ev.getClass().getName() + ")");}

// Translation:
public static double CoerceValueToDouble(ValueEval ev){if (ev == BlankEval.instance){return 0.0;}if (ev is NumericValueEval){return ((NumericValueEval)ev).NumberValue;}if (ev is StringEval){double dd = ParseDouble(((StringEval)ev).StringValue);if (double.IsNaN(dd)){throw EvaluationException.InvalidValue();}return dd;}throw new Exception("Unexpected arg eval type (" + ev.GetType().Name + ")");}
// Original:
public SetQueueAttributesResult setQueueAttributes(SetQueueAttributesRequest request) {request = beforeClientExecution(request);return executeSetQueueAttributes(request);}

// Translation:
public virtual SetQueueAttributesResponse SetQueueAttributes(SetQueueAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetQueueAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = SetQueueAttributesResponseUnmarshaller.Instance;return Invoke<SetQueueAttributesResponse>(request, options);}
// Original:
public E getLast() {Link<E> last = voidLink.previous;if (last != voidLink) {return last.data;}throw new NoSuchElementException();}

// Translation:
public virtual E getLast(){java.util.LinkedList.Link<E> last = voidLink.previous;if (last != voidLink){return last.data;}throw new java.util.NoSuchElementException();}
// Original:
public boolean contains(Object o) {return ConcurrentHashMap.this.containsKey(o);}

// Translation:
public override bool contains(object o){return this._enclosing.containsKey(o);}
// Original:
public CreateLoadBalancerListenersResult createLoadBalancerListeners(CreateLoadBalancerListenersRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancerListeners(request);}

// Translation:
public virtual CreateLoadBalancerListenersResponse CreateLoadBalancerListeners(CreateLoadBalancerListenersRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLoadBalancerListenersRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLoadBalancerListenersResponseUnmarshaller.Instance;return Invoke<CreateLoadBalancerListenersResponse>(request, options);}
// Original:
public RebootWorkspacesResult rebootWorkspaces(RebootWorkspacesRequest request) {request = beforeClientExecution(request);return executeRebootWorkspaces(request);}

// Translation:
public virtual RebootWorkspacesResponse RebootWorkspaces(RebootWorkspacesRequest request){var options = new InvokeOptions();options.RequestMarshaller = RebootWorkspacesRequestMarshaller.Instance;options.ResponseUnmarshaller = RebootWorkspacesResponseUnmarshaller.Instance;return Invoke<RebootWorkspacesResponse>(request, options);}
// Original:
@Override public final boolean equals(Object o) {if (!(o instanceof Entry)) {return false;}Entry<?, ?> e = (Entry<?, ?>) o;return key.equals(e.getKey()) && value.equals(e.getValue());}

// Translation:
public sealed override bool Equals(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return key.Equals(e.getKey()) && value.Equals(e.getValue());}
// Original:
public DeleteCustomerGatewayRequest(String customerGatewayId) {setCustomerGatewayId(customerGatewayId);}

// Translation:
public DeleteCustomerGatewayRequest(string customerGatewayId){_customerGatewayId = customerGatewayId;}
// Original:
public String toString() {return getFileMode() + " " + getLength() + " "+ getLastModifiedInstant()+ " " + getObjectId() + " " + getStage() + " "+ getPathString() + "\n";}

// Translation:
public override string ToString(){return FileMode + " " + Length + " " + LastModified + " " + GetObjectId() + " " +Stage + " " + PathString + "\n";}
// Original:
public StartDocumentAnalysisResult startDocumentAnalysis(StartDocumentAnalysisRequest request) {request = beforeClientExecution(request);return executeStartDocumentAnalysis(request);}

// Translation:
public virtual StartDocumentAnalysisResponse StartDocumentAnalysis(StartDocumentAnalysisRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDocumentAnalysisRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDocumentAnalysisResponseUnmarshaller.Instance;return Invoke<StartDocumentAnalysisResponse>(request, options);}
// Original:
public UpdatePhoneNumberSettingsResult updatePhoneNumberSettings(UpdatePhoneNumberSettingsRequest request) {request = beforeClientExecution(request);return executeUpdatePhoneNumberSettings(request);}

// Translation:
public virtual UpdatePhoneNumberSettingsResponse UpdatePhoneNumberSettings(UpdatePhoneNumberSettingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdatePhoneNumberSettingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdatePhoneNumberSettingsResponseUnmarshaller.Instance;return Invoke<UpdatePhoneNumberSettingsResponse>(request, options);}
// Original:
public BatchStopUpdateActionResult batchStopUpdateAction(BatchStopUpdateActionRequest request) {request = beforeClientExecution(request);return executeBatchStopUpdateAction(request);}

// Translation:
public virtual BatchStopUpdateActionResponse BatchStopUpdateAction(BatchStopUpdateActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchStopUpdateActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchStopUpdateActionResponseUnmarshaller.Instance;return Invoke<BatchStopUpdateActionResponse>(request, options);}
// 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 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 CreateHyperParameterTuningJobResult createHyperParameterTuningJob(CreateHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeCreateHyperParameterTuningJob(request);}

// Translation:
public virtual CreateHyperParameterTuningJobResponse CreateHyperParameterTuningJob(CreateHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke<CreateHyperParameterTuningJobResponse>(request, options);}
// Original:
public TermsEnumIndex(TermsEnum termsEnum, int subIndex) {this.termsEnum = termsEnum;this.subIndex = subIndex;}

// Translation:
public TermsEnumIndex(TermsEnum termsEnum, int subIndex){this.TermsEnum = termsEnum;this.SubIndex = subIndex;}
// Original:
public UnarchiveFindingsResult unarchiveFindings(UnarchiveFindingsRequest request) {request = beforeClientExecution(request);return executeUnarchiveFindings(request);}

// Translation:
public virtual UnarchiveFindingsResponse UnarchiveFindings(UnarchiveFindingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = UnarchiveFindingsRequestMarshaller.Instance;options.ResponseUnmarshaller = UnarchiveFindingsResponseUnmarshaller.Instance;return Invoke<UnarchiveFindingsResponse>(request, options);}
// Original:
public void setSort(SortField field) {this.fields = new SortField[] { field };}

// Translation:
public virtual void SetSort(SortField field){this.fields = new SortField[] { field };}
// Original:
public CreateBusinessReportScheduleResult createBusinessReportSchedule(CreateBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeCreateBusinessReportSchedule(request);}

// Translation:
public virtual CreateBusinessReportScheduleResponse CreateBusinessReportSchedule(CreateBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke<CreateBusinessReportScheduleResponse>(request, options);}
// Original:
public GetIPSetResult getIPSet(GetIPSetRequest request) {request = beforeClientExecution(request);return executeGetIPSet(request);}

// Translation:
public virtual GetIPSetResponse GetIPSet(GetIPSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIPSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIPSetResponseUnmarshaller.Instance;return Invoke<GetIPSetResponse>(request, options);}
// Original:
public int serialize( int offset, byte[] data,EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, getPropertiesSize() );int pos = offset + 8;for ( EscherProperty property : properties ){pos += property.serializeSimplePart( data, pos );}for ( EscherProperty property : properties ){pos += property.serializeComplexPart( data, pos );}listener.afterRecordSerialize( pos, getRecordId(), pos - offset, this );return pos - offset;}

// Translation:
public override int Serialize(int offset, byte[] data,EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, PropertiesSize);int pos = offset + 8;foreach (EscherProperty property in properties){pos += property.SerializeSimplePart(data, pos);}foreach (EscherProperty property in properties){pos += property.SerializeComplexPart(data, pos);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}
// Original:
public ListTagsForVaultResult listTagsForVault(ListTagsForVaultRequest request) {request = beforeClientExecution(request);return executeListTagsForVault(request);}

// Translation:
public virtual ListTagsForVaultResponse ListTagsForVault(ListTagsForVaultRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTagsForVaultRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTagsForVaultResponseUnmarshaller.Instance;return Invoke<ListTagsForVaultResponse>(request, options);}
// Original:
public long getDeltaCacheSize() {return deltaCacheSize;}

// Translation:
public virtual long GetDeltaCacheSize(){return deltaCacheSize;}
// Original:
public final int remaining() {return limit - position;}

// Translation:
public int remaining(){return _limit - _position;}