yijunyu/c-to-rust huggingface dataset:
// Original:
public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest() {super("Domain-intl", "2017-12-18", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "domain");setMethod(MethodType.POST);}

// Translation:
public SaveTaskForUpdatingRegistrantInfoByIdentityCredentialRequest(): base("Domain-intl", "2017-12-18", "SaveTaskForUpdatingRegistrantInfoByIdentityCredential", "domain", "openAPI"){Method = MethodType.POST;}
// Original:
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int result;if (arg0 instanceof TwoDEval) {result = ((TwoDEval) arg0).getHeight();} else if (arg0 instanceof RefEval) {result = 1;} else { return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}

// Translation:
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int result;if (arg0 is TwoDEval){result = ((TwoDEval)arg0).Height;}else if (arg0 is RefEval){result = 1;}else{ return ErrorEval.VALUE_INVALID;}return new NumberEval(result);}
// Original:
public DescribeReservedInstancesResult describeReservedInstances() {return describeReservedInstances(new DescribeReservedInstancesRequest());}

// Translation:
public virtual DescribeReservedInstancesResponse DescribeReservedInstances(){return DescribeReservedInstances(new DescribeReservedInstancesRequest());}
// Original:
public void setPackedGitMMAP(boolean usemmap) {packedGitMMAP = usemmap;}

// Translation:
public virtual void SetPackedGitMMAP(bool usemmap){packedGitMMAP = usemmap;}
// Original:
public POIFSDocumentPath(){this.components = new String[ 0 ];}

// Translation:
public POIFSDocumentPath(){this.components = new string[0];}
// Original:
public String toString() {return key + "/" + value;}

// Translation:
public override string ToString(){return Key + "/" + Value;}
// Original:
public void decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final int byte0 = blocks[blocksOffset++] & 0xFF;final int byte1 = blocks[blocksOffset++] & 0xFF;final int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | (byte2 >>> 4);final int byte3 = blocks[blocksOffset++] & 0xFF;final int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;int byte1 = blocks[blocksOffset++] & 0xFF;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (byte0 << 12) | (byte1 << 4) | ((int)((uint)byte2 >> 4));int byte3 = blocks[blocksOffset++] & 0xFF;int byte4 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte2 & 15) << 16) | (byte3 << 8) | byte4;}}
// Original:
public void serialize(LittleEndianOutput out) {out.writeShort(_extBookIndex);out.writeShort(_firstSheetIndex);out.writeShort(_lastSheetIndex);}

// Translation:
public void Serialize(ILittleEndianOutput out1){out1.WriteShort(_extBookIndex);out1.WriteShort(_firstSheetIndex);out1.WriteShort(_lastSheetIndex);}
// Original:
public PatternParser(PatternConsumer consumer) {this();this.consumer = consumer;}

// Translation:
public PatternParser(IPatternConsumer consumer): this(){this.consumer = consumer;}
// Original:
public final String[] getValues(String name) {List<String> result = new ArrayList<>();for (IndexableField field : fields) {if (field.name().equals(name) && field.stringValue() != null) {result.add(field.stringValue());}}if (result.size() == 0) {return NO_STRINGS;}return result.toArray(new String[result.size()]);}

// Translation:
public string[] GetValues(string name){var result = new List<string>();foreach (IIndexableField field in fields){if (field.Name.Equals(name, StringComparison.Ordinal) && field.GetStringValue() != null){result.Add(field.GetStringValue());}}if (result.Count == 0){return NO_STRINGS;}return result.ToArray();}
// Original:
public ListIdentityPoolUsageResult listIdentityPoolUsage(ListIdentityPoolUsageRequest request) {request = beforeClientExecution(request);return executeListIdentityPoolUsage(request);}

// Translation:
public virtual ListIdentityPoolUsageResponse ListIdentityPoolUsage(ListIdentityPoolUsageRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIdentityPoolUsageRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIdentityPoolUsageResponseUnmarshaller.Instance;return Invoke<ListIdentityPoolUsageResponse>(request, options);}
// Original:
public ValueEval evaluate(ValueEval[] args, int srcCellRow, int srcCellCol) {if(args.length < 1 || args.length > 5) {return ErrorEval.VALUE_INVALID;}try {BaseRef baseRef = evaluateBaseRef(args[0]);int rowOffset = (args[1] instanceof MissingArgEval) ? 0 : evaluateIntArg(args[1], srcCellRow, srcCellCol);int columnOffset = (args[2] instanceof MissingArgEval) ? 0 : evaluateIntArg(args[2], srcCellRow, srcCellCol);int height = baseRef.getHeight();int width = baseRef.getWidth();switch(args.length) {case 5:if(!(args[4] instanceof MissingArgEval)) {width = evaluateIntArg(args[4], srcCellRow, srcCellCol);}case 4:if(!(args[3] instanceof MissingArgEval)) {height = evaluateIntArg(args[3], srcCellRow, srcCellCol);}break;default:break;}if(height == 0 || width == 0) {return ErrorEval.REF_INVALID;}LinearOffsetRange rowOffsetRange = new LinearOffsetRange(rowOffset, height);LinearOffsetRange colOffsetRange = new LinearOffsetRange(columnOffset, width);return createOffset(baseRef, rowOffsetRange, colOffsetRange);} catch (EvaluationException e) {return e.getErrorEval();}}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcCellRow, int srcCellCol){if (args.Length < 3 || args.Length > 5){return ErrorEval.VALUE_INVALID;}try{BaseRef baseRef = EvaluateBaseRef(args[0]);int rowOffset = EvaluateIntArg(args[1], srcCellRow, srcCellCol);int columnOffset = EvaluateIntArg(args[2], srcCellRow, srcCellCol);int height = baseRef.Height;int width = baseRef.Width;switch (args.Length){case 5:width = EvaluateIntArg(args[4], srcCellRow, srcCellCol);break;case 4:height = EvaluateIntArg(args[3], srcCellRow, srcCellCol);break;}if (height == 0 || width == 0){return ErrorEval.REF_INVALID;}LinearOffsetRange rowOffsetRange = new LinearOffsetRange(rowOffset, height);LinearOffsetRange colOffsetRange = new LinearOffsetRange(columnOffset, width);return CreateOffset(baseRef, rowOffsetRange, colOffsetRange);}catch (EvaluationException e){return e.GetErrorEval();}}
// Original:
public int[] getCountsByTime() {return countsByTime;}

// Translation:
public virtual int[] GetCountsByTime(){return countsByTime;}
// Original:
public UpdateAccountResult updateAccount(UpdateAccountRequest request) {request = beforeClientExecution(request);return executeUpdateAccount(request);}

// Translation:
public virtual UpdateAccountResponse UpdateAccount(UpdateAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAccountResponseUnmarshaller.Instance;return Invoke<UpdateAccountResponse>(request, options);}
// Original:
public DescribeTrainingJobResult describeTrainingJob(DescribeTrainingJobRequest request) {request = beforeClientExecution(request);return executeDescribeTrainingJob(request);}

// Translation:
public virtual DescribeTrainingJobResponse DescribeTrainingJob(DescribeTrainingJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTrainingJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTrainingJobResponseUnmarshaller.Instance;return Invoke<DescribeTrainingJobResponse>(request, options);}
// Original:
public DeleteGroupResult deleteGroup(DeleteGroupRequest request) {request = beforeClientExecution(request);return executeDeleteGroup(request);}

// Translation:
public virtual DeleteGroupResponse DeleteGroup(DeleteGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGroupResponseUnmarshaller.Instance;return Invoke<DeleteGroupResponse>(request, options);}
// Original:
public int advance(int target) {upto++;if (upto == docIDs.length) {return docID = NO_MORE_DOCS;}int inc = 10;int nextUpto = upto+10;int low;int high;while (true) {if (nextUpto >= docIDs.length) {low = nextUpto-inc;high = docIDs.length-1;break;}if (target <= docIDs[nextUpto]) {low = nextUpto-inc;high = nextUpto;break;}inc *= 2;nextUpto += inc;}while (true) {if (low > high) {upto = low;break;}int mid = (low + high) >>> 1;int cmp = docIDs[mid] - target;if (cmp < 0) {low = mid + 1;} else if (cmp > 0) {high = mid - 1;} else {upto = mid;break;}}if (upto == docIDs.length) {return docID = NO_MORE_DOCS;} else {return docID = docIDs[upto];}}

// Translation:
public override int Advance(int target){upto++;if (upto == docIDs.Length){return docID_Renamed = NO_MORE_DOCS;}int inc = 10;int nextUpto = upto + 10;int low;int high;while (true){if (nextUpto >= docIDs.Length){low = nextUpto - inc;high = docIDs.Length - 1;break;}if (target <= docIDs[nextUpto]){low = nextUpto - inc;high = nextUpto;break;}inc *= 2;nextUpto += inc;}while (true){if (low > high){upto = low;break;}int mid = (int) ((uint) (low + high) >> 1);int cmp = docIDs[mid] - target;if (cmp < 0){low = mid + 1;}else if (cmp > 0){high = mid - 1;}else{upto = mid;break;}}if (liveDocs != null){while (upto < docIDs.Length){if (liveDocs.Get(docIDs[upto])){break;}upto++;}}if (upto == docIDs.Length){return docID_Renamed = NO_MORE_DOCS;}else{return docID_Renamed = docIDs[upto];}}
// Original:
public void registerListener(final POIFSReaderListener listener) {if (listener == null) {throw new NullPointerException();}if (registryClosed) {throw new IllegalStateException();}registry.registerListener(listener);}

// Translation:
public void RegisterListener(POIFSReaderListener listener){if (listener == null){throw new NullReferenceException();}if (registryClosed){throw new InvalidOperationException();}registry.RegisterListener(listener);}
// Original:
public static int[] grow(int[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Integer.BYTES));} elsereturn array;}

// Translation:
public static int[] Grow(int[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){int[] newArray = new int[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT32)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
// Original:
public void visitTerminal(TerminalNode node) {System.out.println("consume "+node.getSymbol()+" rule "+getRuleNames()[_ctx.getRuleIndex()]);}

// Translation:
public virtual void VisitTerminal(ITerminalNode node){ParserRuleContext parent = (ParserRuleContext)((IRuleNode)node.Parent).RuleContext;IToken token = node.Symbol;Output.WriteLine("consume " + token + " rule " + this._enclosing.RuleNames[parent.RuleIndex]);}
// Original:
public TokenStream create(TokenStream input) {return new LatvianStemFilter(input);}

// Translation:
public override TokenStream Create(TokenStream input){return new LatvianStemFilter(input);}
// Original:
public ReplicationGroup increaseReplicaCount(IncreaseReplicaCountRequest request) {request = beforeClientExecution(request);return executeIncreaseReplicaCount(request);}

// Translation:
public virtual IncreaseReplicaCountResponse IncreaseReplicaCount(IncreaseReplicaCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseReplicaCountRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseReplicaCountResponseUnmarshaller.Instance;return Invoke<IncreaseReplicaCountResponse>(request, options);}
// Original:
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = byte0 >>> 5;values[valuesOffset++] = (byte0 >>> 2) & 7;final long byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | (byte1 >>> 7);values[valuesOffset++] = (byte1 >>> 4) & 7;values[valuesOffset++] = (byte1 >>> 1) & 7;final long byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | (byte2 >>> 6);values[valuesOffset++] = (byte2 >>> 3) & 7;values[valuesOffset++] = byte2 & 7;}}

// Translation:
public override void Decode(byte[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){int byte0 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = (int)((uint)byte0 >> 5);values[valuesOffset++] = ((int)((uint)byte0 >> 2)) & 7;int byte1 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte0 & 3) << 1) | ((int)((uint)byte1 >> 7));values[valuesOffset++] = ((int)((uint)byte1 >> 4)) & 7;values[valuesOffset++] = ((int)((uint)byte1 >> 1)) & 7;int byte2 = blocks[blocksOffset++] & 0xFF;values[valuesOffset++] = ((byte1 & 1) << 2) | ((int)((uint)byte2 >> 6));values[valuesOffset++] = ((int)((uint)byte2 >> 3)) & 7;values[valuesOffset++] = byte2 & 7;}}
// Original:
public StopHyperParameterTuningJobResult stopHyperParameterTuningJob(StopHyperParameterTuningJobRequest request) {request = beforeClientExecution(request);return executeStopHyperParameterTuningJob(request);}

// Translation:
public virtual StopHyperParameterTuningJobResponse StopHyperParameterTuningJob(StopHyperParameterTuningJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopHyperParameterTuningJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopHyperParameterTuningJobResponseUnmarshaller.Instance;return Invoke<StopHyperParameterTuningJobResponse>(request, options);}
// Original:
public ResetNetworkInterfaceAttributeResult resetNetworkInterfaceAttribute(ResetNetworkInterfaceAttributeRequest request) {request = beforeClientExecution(request);return executeResetNetworkInterfaceAttribute(request);}

// Translation:
public virtual ResetNetworkInterfaceAttributeResponse ResetNetworkInterfaceAttribute(ResetNetworkInterfaceAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetNetworkInterfaceAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetNetworkInterfaceAttributeResponseUnmarshaller.Instance;return Invoke<ResetNetworkInterfaceAttributeResponse>(request, options);}
// Original:
public RevBlob lookupBlob(AnyObjectId id) {RevBlob c = (RevBlob) objects.get(id);if (c == null) {c = new RevBlob(id);objects.add(c);}return c;}

// Translation:
public virtual RevBlob LookupBlob(AnyObjectId id){RevBlob c = (RevBlob)objects.Get(id);if (c == null){c = new RevBlob(id);objects.Add(c);}return c;}
// Original:
public ListGroupMembershipsResult listGroupMemberships(ListGroupMembershipsRequest request) {request = beforeClientExecution(request);return executeListGroupMemberships(request);}

// Translation:
public virtual ListGroupMembershipsResponse ListGroupMemberships(ListGroupMembershipsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGroupMembershipsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGroupMembershipsResponseUnmarshaller.Instance;return Invoke<ListGroupMembershipsResponse>(request, options);}
// Original:
public static void mkdir(File d, boolean skipExisting)throws IOException {if (!d.mkdir()) {if (skipExisting && d.isDirectory())return;throw new IOException(MessageFormat.format(JGitText.get().mkDirFailed, d.getAbsolutePath()));}}

// Translation:
public static void Mkdir(FilePath d, bool skipExisting){if (!d.Mkdir()){if (skipExisting && d.IsDirectory()){return;}throw new IOException(MessageFormat.Format(JGitText.Get().mkDirFailed, d.GetAbsolutePath()));}}
// Original:
public UpdateDetectorVersionMetadataResult updateDetectorVersionMetadata(UpdateDetectorVersionMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateDetectorVersionMetadata(request);}

// Translation:
public virtual UpdateDetectorVersionMetadataResponse UpdateDetectorVersionMetadata(UpdateDetectorVersionMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDetectorVersionMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDetectorVersionMetadataResponseUnmarshaller.Instance;return Invoke<UpdateDetectorVersionMetadataResponse>(request, options);}
// Original:
public void write(String str, int offset, int count) throws IOException {if ((offset | count) < 0 || offset > str.length() - count) {throw new StringIndexOutOfBoundsException(str, offset, count);}char[] buf = new char[count];str.getChars(offset, offset + count, buf, 0);synchronized (lock) {write(buf, 0, buf.length);}}

// Translation:
public virtual void write(string str, int offset, int count){if ((offset | count) < 0 || offset > str.Length - count){throw new java.lang.StringIndexOutOfBoundsException(str, offset, count);}char[] buf = new char[count];Sharpen.StringHelper.GetCharsForString(str, offset, offset + count, buf, 0);lock (@lock){write(buf, 0, buf.Length);}}
// Original:
public synchronized void ensureCapacity(int min) {super.ensureCapacity(min);}

// Translation:
public override void ensureCapacity(int min){lock (this){base.ensureCapacity(min);}}
// Original:
public DescribeRecipeResult describeRecipe(DescribeRecipeRequest request) {request = beforeClientExecution(request);return executeDescribeRecipe(request);}

// Translation:
public virtual DescribeRecipeResponse DescribeRecipe(DescribeRecipeRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRecipeRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRecipeResponseUnmarshaller.Instance;return Invoke<DescribeRecipeResponse>(request, options);}
// Original:
public DisassociateRouteTableResult disassociateRouteTable(DisassociateRouteTableRequest request) {request = beforeClientExecution(request);return executeDisassociateRouteTable(request);}

// Translation:
public virtual DisassociateRouteTableResponse DisassociateRouteTable(DisassociateRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateRouteTableResponseUnmarshaller.Instance;return Invoke<DisassociateRouteTableResponse>(request, options);}
// Original:
public SetTopicAttributesRequest(String topicArn, String attributeName, String attributeValue) {setTopicArn(topicArn);setAttributeName(attributeName);setAttributeValue(attributeValue);}

// Translation:
public SetTopicAttributesRequest(string topicArn, string attributeName, string attributeValue){_topicArn = topicArn;_attributeName = attributeName;_attributeValue = attributeValue;}
// Original:
public static char[] grow(char[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} elsereturn array;}

// Translation:
public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
// Original:
public StashCreateCommand setRef(String ref) {this.ref = ref;return this;}

// Translation:
public virtual NGit.Api.StashCreateCommand SetRef(string @ref){this.@ref = @ref;return this;}
// Original:
public FormulaRecord(RecordInputStream ris) {super(ris);long valueLongBits  = ris.readLong();field_5_options = ris.readShort();specialCachedValue = FormulaSpecialCachedValue.create(valueLongBits);if (specialCachedValue == null) {field_4_value = Double.longBitsToDouble(valueLongBits);}field_6_zero = ris.readInt();int field_7_expression_len = ris.readShort(); int nBytesAvailable = ris.available();field_8_parsed_expr = Formula.read(field_7_expression_len, ris, nBytesAvailable);}

// Translation:
public FormulaRecord(RecordInputStream in1):base(in1){long valueLongBits  = in1.ReadLong();field_5_options = in1.ReadShort();specialCachedValue = SpecialCachedValue.Create(valueLongBits);if (specialCachedValue == null) {field_4_value = BitConverter.Int64BitsToDouble(valueLongBits);}field_6_zero = in1.ReadInt();int field_7_expression_len = in1.ReadShort();field_8_parsed_expr = NPOI.SS.Formula.Formula.Read(field_7_expression_len, in1,in1.Available());}
// Original:
public SynonymQuery build() {Collections.sort(terms, Comparator.comparing(a -> a.term));return new SynonymQuery(terms.toArray(new TermAndBoost[0]), field);}

// Translation:
public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
// Original:
public PasswordRev4Record(RecordInputStream in) {field_1_password = in.readShort();}

// Translation:
public PasswordRev4Record(RecordInputStream in1){field_1_password = in1.ReadShort();}
// Original:
public boolean isReadOnly() {return false;}

// Translation:
public override bool isReadOnly(){return false;}
// Original:
public int preceding(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException("offset out of bounds");} else if (pos == start) {current = start;return DONE;} else {return first();}}

// Translation:
public override int Preceding(int pos){if (pos < start || pos > end){throw new ArgumentException("offset out of bounds");}else if (pos == start){current = start;return Done;}else{return First();}}
// Original:
public CodepageRecord(RecordInputStream in) {field_1_codepage = in.readShort();}

// Translation:
public CodepageRecord(RecordInputStream in1){field_1_codepage = in1.ReadShort();}
// Original:
public ApproveAssignmentResult approveAssignment(ApproveAssignmentRequest request) {request = beforeClientExecution(request);return executeApproveAssignment(request);}

// Translation:
public virtual ApproveAssignmentResponse ApproveAssignment(ApproveAssignmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ApproveAssignmentRequestMarshaller.Instance;options.ResponseUnmarshaller = ApproveAssignmentResponseUnmarshaller.Instance;return Invoke<ApproveAssignmentResponse>(request, options);}
// Original:
public DescribeVpnConnectionsResult describeVpnConnections() {return describeVpnConnections(new DescribeVpnConnectionsRequest());}

// Translation:
public virtual DescribeVpnConnectionsResponse DescribeVpnConnections(){return DescribeVpnConnections(new DescribeVpnConnectionsRequest());}
// Original:
public final V next() { return nextEntry().value; }

// Translation:
public override V next(){return this.nextEntry().value;}
// Original:
public DescribeInstanceHealthResult describeInstanceHealth(DescribeInstanceHealthRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceHealth(request);}

// Translation:
public virtual DescribeInstanceHealthResponse DescribeInstanceHealth(DescribeInstanceHealthRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceHealthRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceHealthResponseUnmarshaller.Instance;return Invoke<DescribeInstanceHealthResponse>(request, options);}
// Original:
public static void register(TransportProtocol proto) {protocols.add(0, new WeakReference<>(proto));}

// Translation:
public static void Register(TransportProtocol proto){protocols.Add(0, new JavaWeakReference<TransportProtocol>(proto));}