yijunyu/c-to-rust huggingface dataset:
// Original:
public GetIdResult getId(GetIdRequest request) {request = beforeClientExecution(request);return executeGetId(request);}

// Translation:
public virtual GetIdResponse GetId(GetIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdResponseUnmarshaller.Instance;return Invoke<GetIdResponse>(request, options);}
// Original:
public String getPassphrase() {return passphrase;}

// Translation:
public virtual string GetPassphrase(){return passphrase;}
// Original:
public Map<String, Ref> getAllRefs() {try {return getRefDatabase().getRefs(RefDatabase.ALL);} catch (IOException e) {throw new UncheckedIOException(e);}}

// Translation:
public virtual IDictionary<string, Ref> GetAllRefs(){try{return RefDatabase.GetRefs(NGit.RefDatabase.ALL);}catch (IOException){return new Dictionary<string, Ref>();}}
// Original:
public boolean hasMoreElements() { return hasNext(); }

// Translation:
public bool hasMoreElements(){return this.hasNext();}
// Original:
public int numDataNodes() {return numDataNodes(rootNode);}

// Translation:
public virtual int NumDataNodes(){return NumDataNodes(rootNode);}
// Original:
public HadoopJarStepConfig toHadoopJarStepConfig() {List<String> args = new ArrayList<String>();if (reducer == null) {hadoopConfig.put("mapred.reduce.tasks", "0");}for (Map.Entry<String, String> entry : hadoopConfig.entrySet()) {args.add("-D");args.add(entry.getKey() + "=" + entry.getValue());}for (String input : inputs) {args.add("-input");args.add(input);}if (output != null) {args.add("-output");args.add(output);}if (mapper != null) {args.add("-mapper");args.add(mapper);}if (reducer != null) {args.add("-reducer");args.add(reducer);}return new HadoopJarStepConfig().withJar("/home/hadoop/contrib/streaming/hadoop-streaming.jar").withArgs(args);}

// Translation:
public HadoopJarStepConfig ToHadoopJarStepConfig() {List<string> args = new List<string>();if (reducer == null) {hadoopConfig.Add("mapred.reduce.tasks", "0");}foreach (KeyValuePair<string, string> entry in hadoopConfig){args.Add("-D");args.Add(string.Format(CultureInfo.InvariantCulture, "{0} = {1}", entry.Key, entry.Value));}foreach (string input in inputs) {args.Add("-input");args.Add(input);}if (output != null) {args.Add("-output");args.Add(output);}if (mapper != null) {args.Add("-mapper");args.Add(mapper);}if (reducer != null) {args.Add("-reducer");args.Add(reducer);}return new HadoopJarStepConfig{Jar = "/home/hadoop/contrib/streaming/hadoop-streaming.jar",Args = args};}
// Original:
public GetRelationalDatabaseEventsResult getRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseEvents(request);}

// Translation:
public virtual GetRelationalDatabaseEventsResponse GetRelationalDatabaseEvents(GetRelationalDatabaseEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseEventsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseEventsResponse>(request, options);}
// Original:
public void drawLine(int x1, int y1, int x2, int y2){drawLine(x1,y1,x2,y2,0);}

// Translation:
public void DrawLine(int x1, int y1, int x2, int y2){DrawLine(x1, y1, x2, y2, 0);}
// Original:
public UpdateUserSecurityProfilesResult updateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request) {request = beforeClientExecution(request);return executeUpdateUserSecurityProfiles(request);}

// Translation:
public virtual UpdateUserSecurityProfilesResponse UpdateUserSecurityProfiles(UpdateUserSecurityProfilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserSecurityProfilesRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserSecurityProfilesResponseUnmarshaller.Instance;return Invoke<UpdateUserSecurityProfilesResponse>(request, options);}
// Original:
public String toString() {return "Action: " + this.action;}

// Translation:
public override string ToString(){return "Action: " + this.action;}
// Original:
public CreateVolumeRequest(Integer size, String availabilityZone) {setSize(size);setAvailabilityZone(availabilityZone);}

// Translation:
public CreateVolumeRequest(string availabilityZone, int size){_availabilityZone = availabilityZone;_size = size;}
// Original:
public final void setPrecedenceStartState(int precedence, DFAState startState) {if (!isPrecedenceDfa()) {throw new IllegalStateException("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0) {return;}synchronized (s0) {if (precedence >= s0.edges.length) {s0.edges = Arrays.copyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}}

// Translation:
public void SetPrecedenceStartState(int precedence, DFAState startState){if (!IsPrecedenceDfa){throw new Exception("Only precedence DFAs may contain a precedence start state.");}if (precedence < 0){return;}lock (s0){if (precedence >= s0.edges.Length){s0.edges = Arrays.CopyOf(s0.edges, precedence + 1);}s0.edges[precedence] = startState;}}
// Original:
public EditPhotosRequest() {super("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public EditPhotosRequest(): base("CloudPhoto", "2017-07-11", "EditPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public Builder() {PositiveIntOutputs outputs = PositiveIntOutputs.getSingleton();fstCompiler = new FSTCompiler<>(FST.INPUT_TYPE.BYTE1, outputs);scratchInts = new IntsRefBuilder();}

// Translation:
public Builder(){data = new GrowableByteArrayDataOutput(128);bufferSize = 0;previousDoc = -1;indexInterval = 2;cardinality = 0;numBlocks = 0;}
// Original:
public DeleteFlowDefinitionResult deleteFlowDefinition(DeleteFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDeleteFlowDefinition(request);}

// Translation:
public virtual DeleteFlowDefinitionResponse DeleteFlowDefinition(DeleteFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteFlowDefinitionResponseUnmarshaller.Instance;return Invoke<DeleteFlowDefinitionResponse>(request, options);}
// Original:
public void setLastFailedRefreshTime() {lastFailedRefreshTime = System.currentTimeMillis();}

// Translation:
public void SetLastFailedRefreshTime(){lastFailedRefreshTime = DateTime.UtcNow.Ticks;}
// Original:
public ModifyDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}

// Translation:
public ModifyDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}
// Original:
public GetTemplateSummaryResult getTemplateSummary(GetTemplateSummaryRequest request) {request = beforeClientExecution(request);return executeGetTemplateSummary(request);}

// Translation:
public virtual GetTemplateSummaryResponse GetTemplateSummary(GetTemplateSummaryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTemplateSummaryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTemplateSummaryResponseUnmarshaller.Instance;return Invoke<GetTemplateSummaryResponse>(request, options);}
// Original:
public Snapshot revokeSnapshotAccess(RevokeSnapshotAccessRequest request) {request = beforeClientExecution(request);return executeRevokeSnapshotAccess(request);}

// Translation:
public virtual RevokeSnapshotAccessResponse RevokeSnapshotAccess(RevokeSnapshotAccessRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeSnapshotAccessRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeSnapshotAccessResponseUnmarshaller.Instance;return Invoke<RevokeSnapshotAccessResponse>(request, options);}
// Original:
public void serialize(final LittleEndianOutput out) {final int field_4_name_length = field_6_name_text.length();final int field_5_comment_length = field_7_comment_text.length();out.writeShort(field_1_record_type);out.writeShort(field_2_frt_cell_ref_flag);out.writeLong(field_3_reserved);out.writeShort(field_4_name_length);out.writeShort(field_5_comment_length);boolean isNameMultiByte = StringUtil.hasMultibyte(field_6_name_text);out.writeByte(isNameMultiByte ? 1 : 0);if (isNameMultiByte) {StringUtil.putUnicodeLE(field_6_name_text, out);} else {StringUtil.putCompressedUnicode(field_6_name_text, out);}boolean isCommentMultiByte = StringUtil.hasMultibyte(field_7_comment_text);out.writeByte(isCommentMultiByte ? 1 : 0);if (isCommentMultiByte) {StringUtil.putUnicodeLE(field_7_comment_text, out);} else {StringUtil.putCompressedUnicode(field_7_comment_text, out);}}

// Translation:
public override void Serialize(ILittleEndianOutput out1){int field_4_name_length = field_6_name_text.Length;int field_5_comment_length = field_7_comment_text.Length;out1.WriteShort(field_1_record_type);out1.WriteShort(field_2_frt_cell_ref_flag);out1.WriteLong(field_3_reserved);out1.WriteShort(field_4_name_length);out1.WriteShort(field_5_comment_length);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_6_name_text,out1);out1.WriteByte(0);StringUtil.PutCompressedUnicode(field_7_comment_text, out1);}
// Original:
public StartProjectVersionResult startProjectVersion(StartProjectVersionRequest request) {request = beforeClientExecution(request);return executeStartProjectVersion(request);}

// Translation:
public virtual StartProjectVersionResponse StartProjectVersion(StartProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StartProjectVersionResponseUnmarshaller.Instance;return Invoke<StartProjectVersionResponse>(request, options);}
// Original:
public MoPenDeleteGroupMemberRequest() {super("MoPen", "2018-02-11", "MoPenDeleteGroupMember", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public MoPenDeleteGroupMemberRequest(): base("MoPen", "2018-02-11", "MoPenDeleteGroupMember", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public synchronized int getMax() {return mMax;}

// Translation:
public virtual int getMax(){lock (this){return mMax;}}
// Original:
public DiffCommand setSourcePrefix(String sourcePrefix) {this.sourcePrefix = sourcePrefix;return this;}

// Translation:
public virtual NGit.Api.DiffCommand SetSourcePrefix(string sourcePrefix){this.sourcePrefix = sourcePrefix;return this;}
// Original:
public CreateFlowLogsResult createFlowLogs(CreateFlowLogsRequest request) {request = beforeClientExecution(request);return executeCreateFlowLogs(request);}

// Translation:
public virtual CreateFlowLogsResponse CreateFlowLogs(CreateFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateFlowLogsResponseUnmarshaller.Instance;return Invoke<CreateFlowLogsResponse>(request, options);}
// Original:
public void writeString(String text, int numberOfRichTextRuns, int extendedDataSize) {boolean is16bitEncoded = StringUtil.hasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded) {optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0) {optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0) {optionFlags |= 0x04;keepTogetherSize += 4;}writeContinueIfRequired(keepTogetherSize);writeShort(text.length());writeByte(optionFlags);if (numberOfRichTextRuns > 0) {writeShort(numberOfRichTextRuns);}if (extendedDataSize > 0) {writeInt(extendedDataSize);}writeCharacterData(text, is16bitEncoded);}

// Translation:
public void WriteString(String text, int numberOfRichTextRuns, int extendedDataSize){bool is16bitEncoded = StringUtil.HasMultibyte(text);int keepTogetherSize = 2 + 1 + 1; int optionFlags = 0x00;if (is16bitEncoded){optionFlags |= 0x01;keepTogetherSize += 1; }if (numberOfRichTextRuns > 0){optionFlags |= 0x08;keepTogetherSize += 2;}if (extendedDataSize > 0){optionFlags |= 0x04;keepTogetherSize += 4;}WriteContinueIfRequired(keepTogetherSize);WriteShort(text.Length);WriteByte(optionFlags);if (numberOfRichTextRuns > 0){WriteShort(numberOfRichTextRuns);}if (extendedDataSize > 0){WriteInt(extendedDataSize);}WriteCharacterData(text, is16bitEncoded);}
// Original:
public String toFormulaString(String[] operands) {StringBuilder buf = new StringBuilder();if(isExternalFunction()) {buf.append(operands[0]); appendArgs(buf, 1, operands);} else {buf.append(getName());appendArgs(buf, 0, operands);}return buf.toString();}

// Translation:
public override String ToFormulaString(String[] operands){StringBuilder buf = new StringBuilder();if (IsExternalFunction){buf.Append(operands[0]); AppendArgs(buf, 1, operands);}else{buf.Append(Name);AppendArgs(buf, 0, operands);}return buf.ToString();}
// Original:
public DetectStackDriftResult detectStackDrift(DetectStackDriftRequest request) {request = beforeClientExecution(request);return executeDetectStackDrift(request);}

// Translation:
public virtual DetectStackDriftResponse DetectStackDrift(DetectStackDriftRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectStackDriftRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectStackDriftResponseUnmarshaller.Instance;return Invoke<DetectStackDriftResponse>(request, options);}
// Original:
public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}

// Translation:
public override ObjectId IdFor(TreeFormatter formatter){return Delegate().IdFor(formatter);}
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escaper) {if (isDefaultField(this.field)) {return getTermEscaped(escaper);} else {return this.field + ":" + getTermEscaped(escaper);}}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escaper){if (IsDefaultField(this.m_field)){return GetTermEscaped(escaper);}else{return this.m_field + ":" + GetTermEscaped(escaper);}}
// Original:
public RenderUiTemplateResult renderUiTemplate(RenderUiTemplateRequest request) {request = beforeClientExecution(request);return executeRenderUiTemplate(request);}

// Translation:
public virtual RenderUiTemplateResponse RenderUiTemplate(RenderUiTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = RenderUiTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = RenderUiTemplateResponseUnmarshaller.Instance;return Invoke<RenderUiTemplateResponse>(request, options);}
// Original:
public final LongBuffer asLongBuffer() {return LongToByteBufferAdapter.asLongBuffer(this);}

// Translation:
public sealed override java.nio.LongBuffer asLongBuffer(){return java.nio.LongToByteBufferAdapter.asLongBuffer(this);}
// Original:
public DescribeLimitsResult describeLimits(DescribeLimitsRequest request) {request = beforeClientExecution(request);return executeDescribeLimits(request);}

// Translation:
public virtual DescribeLimitsResponse DescribeLimits(DescribeLimitsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLimitsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLimitsResponseUnmarshaller.Instance;return Invoke<DescribeLimitsResponse>(request, options);}
// Original:
public DescribeAssessmentTargetsResult describeAssessmentTargets(DescribeAssessmentTargetsRequest request) {request = beforeClientExecution(request);return executeDescribeAssessmentTargets(request);}

// Translation:
public virtual DescribeAssessmentTargetsResponse DescribeAssessmentTargets(DescribeAssessmentTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAssessmentTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAssessmentTargetsResponseUnmarshaller.Instance;return Invoke<DescribeAssessmentTargetsResponse>(request, options);}
// Original:
public DeleteClientVpnRouteResult deleteClientVpnRoute(DeleteClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeDeleteClientVpnRoute(request);}

// Translation:
public virtual DeleteClientVpnRouteResponse DeleteClientVpnRoute(DeleteClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClientVpnRouteResponseUnmarshaller.Instance;return Invoke<DeleteClientVpnRouteResponse>(request, options);}
// Original:
public RebaseCommand setUpstream(AnyObjectId upstream) {try {this.upstreamCommit = walk.parseCommit(upstream);this.upstreamCommitName = upstream.name();} catch (IOException e) {throw new JGitInternalException(MessageFormat.format(JGitText.get().couldNotReadObjectWhileParsingCommit,upstream.name()), e);}return this;}

// Translation:
public virtual NGit.Api.RebaseCommand SetUpstream(AnyObjectId upstream){try{this.upstreamCommit = walk.ParseCommit(upstream);this.upstreamCommitName = upstream.Name;}catch (IOException e){throw new JGitInternalException(MessageFormat.Format(JGitText.Get().couldNotReadObjectWhileParsingCommit, upstream.Name), e);}return this;}
// Original:
public Collection<ChildScorable> getChildren() {return Collections.singleton(new ChildScorable(in, "CACHED"));}

// Translation:
public override ICollection<ChildScorer> GetChildren(){return new[] { new ChildScorer(scorer, "CACHED") };}
// Original:
public synchronized String substring(int start) {return super.substring(start);}

// Translation:
public override string substring(int start){lock (this){return base.substring(start);}}
// Original:
public static double sum(double[] values) {double sum = 0;for (double value : values) {sum += value;}return sum;}

// Translation:
public static double Sum(double[] values){double sum = 0;for (int i = 0, iSize = values.Length; i < iSize; i++){sum += values[i];}return sum;}
// Original:
public static BlankRecord[] convertBlankRecords(MulBlankRecord mbk) {BlankRecord[] mulRecs = new BlankRecord[mbk.getNumColumns()];for (int k = 0; k < mbk.getNumColumns(); k++) {BlankRecord br = new BlankRecord();br.setColumn((short) (k + mbk.getFirstColumn()));br.setRow(mbk.getRow());br.setXFIndex(mbk.getXFAt(k));mulRecs[k] = br;}return mulRecs;}

// Translation:
public static BlankRecord[] ConvertBlankRecords(MulBlankRecord mbk){BlankRecord[] mulRecs = new BlankRecord[mbk.NumColumns];for (int k = 0; k < mbk.NumColumns; k++){BlankRecord br = new BlankRecord();br.Column = k + mbk.FirstColumn;br.Row = mbk.Row;br.XFIndex = mbk.GetXFAt(k);mulRecs[k] = br;}return mulRecs;}
// Original:
public DeregisterDBProxyTargetsResult deregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request) {request = beforeClientExecution(request);return executeDeregisterDBProxyTargets(request);}

// Translation:
public virtual DeregisterDBProxyTargetsResponse DeregisterDBProxyTargets(DeregisterDBProxyTargetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterDBProxyTargetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterDBProxyTargetsResponseUnmarshaller.Instance;return Invoke<DeregisterDBProxyTargetsResponse>(request, options);}
// Original:
public SummaryInformation(final PropertySet ps) throws UnexpectedPropertySetTypeException {super(ps);if (!isSummaryInformation()) {throw new UnexpectedPropertySetTypeException("Not a " + getClass().getName());}}

// Translation:
public SummaryInformation(PropertySet ps): base(ps){if (!IsSummaryInformation)throw new UnexpectedPropertySetTypeException("Not a "+ GetType().Name);}
// Original:
public void setCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider) {if (credential != null) {return;}credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);}

// Translation:
public void SetCredentialsProvider(AlibabaCloudCredentialsProvider credentialsProvider){if (_credential != null){return;}_credential = new CredentialsBackupCompatibilityAdaptor(credentialsProvider);}
// Original:
public CharArrayReader(char[] buf, int offset, int length) {if (offset < 0 || offset > buf.length || length < 0 || offset + length < 0) {throw new IllegalArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.length;this.count = offset + length < bufferLength ? length : bufferLength;}

// Translation:
public CharArrayReader(char[] buf, int offset, int length){if (offset < 0 || offset > buf.Length || length < 0 || offset + length < 0){throw new System.ArgumentException();}this.buf = buf;this.pos = offset;this.markedPos = offset;int bufferLength = buf.Length;this.count = offset + length < bufferLength ? length : bufferLength;}
// Original:
public Object getProperty(final long id) {wasNull = !properties.containsKey(id);return (wasNull) ? null : properties.get(id).getValue();}

// Translation:
public virtual Object GetProperty(long id){wasNull = false;for (int i = 0; i < properties.Length; i++)if (id == properties[i].ID)return properties[i].Value;wasNull = true;return null;}
// Original:
public BufferedOutputStream(OutputStream out, int size) {super(out);if (size <= 0) {throw new IllegalArgumentException("size <= 0");}buf = new byte[size];}

// Translation:
public BufferedOutputStream(java.io.OutputStream @out, int size) : base(@out){if (size <= 0){throw new System.ArgumentException("size <= 0");}buf = new byte[size];}
// Original:
public AuthorizeDBSecurityGroupIngressRequest(String dBSecurityGroupName) {setDBSecurityGroupName(dBSecurityGroupName);}

// Translation:
public AuthorizeDBSecurityGroupIngressRequest(string dbSecurityGroupName){_dbSecurityGroupName = dbSecurityGroupName;}
// Original:
public ArrayDataSource(T[] elements) {this.elements = elements.clone();}

// Translation:
public ArrayDataSource(T[] elements) {this.elements = elements;}
// Original:
public CreateDeploymentResult createDeployment(CreateDeploymentRequest request) {request = beforeClientExecution(request);return executeCreateDeployment(request);}

// Translation:
public virtual CreateDeploymentResponse CreateDeployment(CreateDeploymentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentResponseUnmarshaller.Instance;return Invoke<CreateDeploymentResponse>(request, options);}
// Original:
public final int getInt() {int newPosition = position + SizeOf.INT;if (newPosition > limit) {throw new BufferUnderflowException();}int result = Memory.peekInt(backingArray, offset + position, order);position = newPosition;return result;}

// Translation:
public sealed override int getInt(){int newPosition = _position + libcore.io.SizeOf.INT;if (newPosition > _limit){throw new java.nio.BufferUnderflowException();}int result = libcore.io.Memory.peekInt(backingArray, offset + _position, _order);_position = newPosition;return result;}
// Original:
public DeleteTransitGatewayRouteResult deleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeDeleteTransitGatewayRoute(request);}

// Translation:
public virtual DeleteTransitGatewayRouteResponse DeleteTransitGatewayRoute(DeleteTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<DeleteTransitGatewayRouteResponse>(request, options);}
// Original:
public ListMultipartUploadsRequest(String bucketName) {this.bucketName = bucketName;}

// Translation:
public ListMultipartUploadsRequest(string vaultName){_vaultName = vaultName;}
// Original:
public float score(float freq, long norm) {return (float) SimilarityBase.this.score(stats, freq, getLengthValue(norm));}

// Translation:
public override float Score(int doc, float freq){return outerInstance.Score(stats, freq, norms == null ? 1F : outerInstance.DecodeNormValue((byte)norms.Get(doc)));}
// Original:
public char next() {if (offset >= (end - 1)) {offset = end;return DONE;}return string.charAt(++offset);}

// Translation:
public char next(){if (offset >= (end - 1)){offset = end;return java.text.CharacterIteratorClass.DONE;}return @string[++offset];}