yijunyu/c-to-rust huggingface dataset:
// Original:
public DescribeReservedDBInstancesOfferingsResult describeReservedDBInstancesOfferings() {return describeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}

// Translation:
public virtual DescribeReservedDBInstancesOfferingsResponse DescribeReservedDBInstancesOfferings(){return DescribeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());}
// Original:
public ByteVector(byte[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;}

// Translation:
public ByteVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;}
// Original:
public Appendable append(CharSequence csq) {return append(csq, 0, csq.length());}

// Translation:
public virtual OpenStringBuilder Append(ICharSequence csq){return Append(csq, 0, csq.Length);}
// Original:
public String getLookaheadName(TokenStream input) {return getTokenName(input.LA(1));}

// Translation:
public string GetLookaheadName(ITokenStream input){return GetTokenName(input.LA(1));}
// Original:
public static final ObjectId fromRaw(byte[] bs) {return fromRaw(bs, 0);}

// Translation:
public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);}
// Original:
public GutsRecord(RecordInputStream in) {field_1_left_row_gutter = in.readShort();field_2_top_col_gutter  = in.readShort();field_3_row_level_max   = in.readShort();field_4_col_level_max   = in.readShort();}

// Translation:
public GutsRecord(RecordInputStream in1){field_1_left_row_gutter = in1.ReadShort();field_2_top_col_gutter = in1.ReadShort();field_3_row_level_max = in1.ReadShort();field_4_col_level_max = in1.ReadShort();}
// Original:
public GermanMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public GermanMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public DescribeActiveReceiptRuleSetResult describeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDescribeActiveReceiptRuleSet(request);}

// Translation:
public virtual DescribeActiveReceiptRuleSetResponse DescribeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<DescribeActiveReceiptRuleSetResponse>(request, options);}
// Original:
public GetGeoLocationResult getGeoLocation(GetGeoLocationRequest request) {request = beforeClientExecution(request);return executeGetGeoLocation(request);}

// Translation:
public virtual GetGeoLocationResponse GetGeoLocation(GetGeoLocationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGeoLocationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGeoLocationResponseUnmarshaller.Instance;return Invoke<GetGeoLocationResponse>(request, options);}
// Original:
public KStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

// Translation:
public KStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
// Original:
public PublishRequest(String topicArn, String message) {setTopicArn(topicArn);setMessage(message);}

// Translation:
public PublishRequest(string topicArn, string message){_topicArn = topicArn;_message = message;}
// Original:
public void replace(int start, int limit, String text) {final int charsLen = text.length();final int newLength = shiftForReplace(start, limit, charsLen);text.getChars(0, charsLen, buffer, start);token.setLength(length = newLength);}

// Translation:
public void Replace(int start, int length, string text) {int charsLen = text.Length;int newLength = ShiftForReplace(start, length + start, charsLen); text.CopyTo(0, buffer, start, charsLen);token.Length = (this.length = newLength);}
// Original:
public DescribeInternetGatewaysResult describeInternetGateways() {return describeInternetGateways(new DescribeInternetGatewaysRequest());}

// Translation:
public virtual DescribeInternetGatewaysResponse DescribeInternetGateways(){return DescribeInternetGateways(new DescribeInternetGatewaysRequest());}
// Original:
public ListQualificationTypesResult listQualificationTypes(ListQualificationTypesRequest request) {request = beforeClientExecution(request);return executeListQualificationTypes(request);}

// Translation:
public virtual ListQualificationTypesResponse ListQualificationTypes(ListQualificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationTypesResponseUnmarshaller.Instance;return Invoke<ListQualificationTypesResponse>(request, options);}
// Original:
public DetachInstancesResult detachInstances(DetachInstancesRequest request) {request = beforeClientExecution(request);return executeDetachInstances(request);}

// Translation:
public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance;return Invoke<DetachInstancesResponse>(request, options);}
// Original:
public boolean include(TreeWalk walker) {final int n = walker.getTreeCount();if (n == 1) return true;final int m = walker.getRawMode(baseTree);for (int i = 1; i < n; i++)if (walker.getRawMode(i) != m || !walker.idEqual(i, baseTree))return true;return false;}

// Translation:
public override bool Include(TreeWalk walker){int n = walker.TreeCount;if (n == 1){return true;}int m = walker.GetRawMode(0);for (int i = 1; i < n; i++){if (walker.GetRawMode(i) != m || !walker.IdEqual(i, 0)){return true;}}return false;}
// Original:
public List<MatchingDocs> getMatchingDocs() {List<MatchingDocs> matchingDocs = super.getMatchingDocs();if (totalHits == NOT_CALCULATED) {totalHits = 0;for (MatchingDocs md : matchingDocs) {totalHits += md.totalHits;}}if (totalHits <= sampleSize) {return matchingDocs;}if (sampledDocs == null) {samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = createSampledDocs(matchingDocs);}return sampledDocs;}

// Translation:
public override IList<MatchingDocs> GetMatchingDocs(){IList<MatchingDocs> matchingDocs = base.GetMatchingDocs();if (totalHits == NOT_CALCULATED){totalHits = 0;foreach (MatchingDocs md in matchingDocs){totalHits += md.TotalHits;}}if (totalHits <= sampleSize){return matchingDocs;}if (sampledDocs == null){samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = CreateSampledDocs(matchingDocs);}return sampledDocs;}
// Original:
public CreateDataSourceFromS3Result createDataSourceFromS3(CreateDataSourceFromS3Request request) {request = beforeClientExecution(request);return executeCreateDataSourceFromS3(request);}

// Translation:
public virtual CreateDataSourceFromS3Response CreateDataSourceFromS3(CreateDataSourceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromS3ResponseUnmarshaller.Instance;return Invoke<CreateDataSourceFromS3Response>(request, options);}
// Original:
public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateFleetMetadata(request);}

// Translation:
public virtual UpdateFleetMetadataResponse UpdateFleetMetadata(UpdateFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetMetadataResponseUnmarshaller.Instance;return Invoke<UpdateFleetMetadataResponse>(request, options);}
// Original:
public ObjectId getNewObjectId() {return newValue;}

// Translation:
public virtual ObjectId GetNewObjectId(){return newValue;}
// Original:
public long ramBytesUsed() {long sizeInBytes = ((termBytesReader!=null)? termBytesReader.ramBytesUsed() : 0);for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}

// Translation:
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}
// Original:
public StringBuilder append(char c) {append0(c);return this;}

// Translation:
public java.lang.StringBuilder append(char c){append0(c);return this;}
// Original:
public void unread(int oneChar) throws IOException {synchronized (lock) {checkNotClosed();if (pos == 0) {throw new IOException("Pushback buffer full");}buf[--pos] = (char) oneChar;}}

// Translation:
public virtual void unread(int oneChar){lock (@lock){checkNotClosed();if (pos == 0){throw new System.IO.IOException("Pushback buffer full");}buf[--pos] = (char)oneChar;}}
// Original:
public QueryFaceRequest() {super("LinkFace", "2018-07-20", "QueryFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public QueryFaceRequest(): base("LinkFace", "2018-07-20", "QueryFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public ProductDomain(String product, String domain) {this.productName = product;this.domainName = domain;}

// Translation:
public ProductDomain(string product, string domain){ProductName = product;DomainName = domain;}
// Original:
public void disableRefLog() {refLogMessage = null;refLogIncludeResult = false;}

// Translation:
public virtual void DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;}
// Original:
public static TaxonomyWriterCache defaultTaxonomyWriterCache() {return new UTF8TaxonomyWriterCache();}

// Translation:
public static ITaxonomyWriterCache DefaultTaxonomyWriterCache(){return new Cl2oTaxonomyWriterCache(1024, 0.15f, 3);}
// Original:
public PushCommand setDryRun(boolean dryRun) {checkCallable();this.dryRun = dryRun;return this;}

// Translation:
public virtual NGit.Api.PushCommand SetDryRun(bool dryRun){CheckCallable();this.dryRun = dryRun;return this;}
// Original:
public ProcessBuilder runInShell(String cmd, String[] args) {List<String> argv = new ArrayList<>(3 + args.length);argv.add("cmd.exe"); argv.add("/c"); argv.add(cmd);argv.addAll(Arrays.asList(args));ProcessBuilder proc = new ProcessBuilder();proc.command(argv);return proc;}

// Translation:
public override ProcessStartInfo RunInShell(string cmd, string[] args){IList<string> argv = new AList<string>(3 + args.Length);argv.AddItem("cmd.exe");argv.AddItem("/c");argv.AddItem(cmd);Sharpen.Collections.AddAll(argv, Arrays.AsList(args));ProcessStartInfo proc = new ProcessStartInfo();proc.SetCommand(argv);return proc;}
// Original:
public NameCommentRecord(final RecordInputStream ris) {field_1_record_type = ris.readShort();field_2_frt_cell_ref_flag = ris.readShort();field_3_reserved = ris.readLong();final int field_4_name_length = ris.readShort();final int field_5_comment_length = ris.readShort();if (ris.readByte() == 0) {field_6_name_text = StringUtil.readCompressedUnicode(ris, field_4_name_length);} else {field_6_name_text = StringUtil.readUnicodeLE(ris, field_4_name_length);}if (ris.readByte() == 0) {field_7_comment_text = StringUtil.readCompressedUnicode(ris, field_5_comment_length);} else {field_7_comment_text = StringUtil.readUnicodeLE(ris, field_5_comment_length);}}

// Translation:
public NameCommentRecord(RecordInputStream ris){ILittleEndianInput in1 = ris;field_1_record_type = in1.ReadShort();field_2_frt_cell_ref_flag = in1.ReadShort();field_3_reserved = in1.ReadLong();int field_4_name_length = in1.ReadShort();int field_5_comment_length = in1.ReadShort();in1.ReadByte(); field_6_name_text = StringUtil.ReadCompressedUnicode(in1, field_4_name_length);in1.ReadByte(); field_7_comment_text = StringUtil.ReadCompressedUnicode(in1, field_5_comment_length);}
// Original:
public void onPull(float deltaDistance) {final long now = AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) {return;}if (mState != STATE_PULL) {mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = Math.abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = Math.max(HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f));mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA,mGlowAlpha +(Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = Math.abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0) {glowChange = -glowChange;}if (mPullDistance == 0) {mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}

// Translation:
public virtual void onPull(float deltaDistance){long now = android.view.animation.AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration){return;}if (mState != STATE_PULL){mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = System.Math.Abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = System.Math.Max(PULL_EDGE_BEGIN, System.Math.Min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = System.Math.Max(HELD_EDGE_SCALE_Y, System.Math.Min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.0f));mGlowAlpha = mGlowAlphaStart = System.Math.Min(MAX_ALPHA, mGlowAlpha + (System.Math.Abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = System.Math.Abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0){glowChange = -glowChange;}if (mPullDistance == 0){mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = System.Math.Min(MAX_GLOW_HEIGHT, System.Math.Max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;}
// Original:
public URIish setPath(String n) {final URIish r = new URIish(this);r.path = n;r.rawPath = n;return r;}

// Translation:
public virtual NGit.Transport.URIish SetPath(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.path = n;r.rawPath = n;return r;}
// Original:
public UpdateTemplateResult updateTemplate(UpdateTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateTemplate(request);}

// Translation:
public virtual UpdateTemplateResponse UpdateTemplate(UpdateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance;return Invoke<UpdateTemplateResponse>(request, options);}
// Original:
public void encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}}

// Translation:
public override void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}}
// Original:
public ListDomainDeliverabilityCampaignsResult listDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request) {request = beforeClientExecution(request);return executeListDomainDeliverabilityCampaigns(request);}

// Translation:
public virtual ListDomainDeliverabilityCampaignsResponse ListDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainDeliverabilityCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainDeliverabilityCampaignsResponseUnmarshaller.Instance;return Invoke<ListDomainDeliverabilityCampaignsResponse>(request, options);}
// Original:
public void setReuseObjects(boolean reuseObjects) {this.reuseObjects = reuseObjects;}

// Translation:
public virtual void SetReuseObjects(bool reuseObjects){this.reuseObjects = reuseObjects;}
// Original:
public DiffFormatter(OutputStream out) {this.out = out;}

// Translation:
public DiffFormatter(OutputStream @out){this.@out = @out;}
// Original:
public ExpectedAttributeValue(Boolean exists) {setExists(exists);}

// Translation:
public ExpectedAttributeValue(bool exists){_exists = exists;}
// Original:
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException {PostingsReaderBase postingsReader = new Lucene84PostingsReader(state);boolean success = false;try {FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsReader);}}}

// Translation:
public override FieldsProducer FieldsProducer(SegmentReadState state){PostingsReaderBase postingsReader = new Lucene41PostingsReader(state.Directory, state.FieldInfos,state.SegmentInfo, state.Context, state.SegmentSuffix);bool success = false;try{FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsReader);}}}
// Original:
public ListSubscribedWorkteamsResult listSubscribedWorkteams(ListSubscribedWorkteamsRequest request) {request = beforeClientExecution(request);return executeListSubscribedWorkteams(request);}

// Translation:
public virtual ListSubscribedWorkteamsResponse ListSubscribedWorkteams(ListSubscribedWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSubscribedWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSubscribedWorkteamsResponseUnmarshaller.Instance;return Invoke<ListSubscribedWorkteamsResponse>(request, options);}
// Original:
public BatchDeleteAttributesRequest(String domainName, java.util.List<DeletableItem> items) {setDomainName(domainName);setItems(items);}

// Translation:
public BatchDeleteAttributesRequest(string domainName, List<DeletableItem> items){_domainName = domainName;_items = items;}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(_value ? 1 : 0);}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(field_1_value ? 1 : 0);}
// Original:
public NavigableMap<K, V> descendingMap() {return new BoundedMap(!ascending, from, fromBound, to, toBound);}

// Translation:
public java.util.NavigableMap<K, V> descendingMap(){return new java.util.TreeMap<K, V>.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound);}
// Original:
public ByteBuffer putLong(long value) {int newPosition = position + SizeOf.LONG;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeLong(backingArray, offset + position, value, order);position = newPosition;return this;}

// Translation:
public override java.nio.ByteBuffer putLong(long value){int newPosition = _position + libcore.io.SizeOf.LONG;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeLong(backingArray, offset + _position, value, _order);_position = newPosition;return this;}
// Original:
public CFRecordsAggregate get(int index) {checkIndex(index);return _cfHeaders.get(index);}

// Translation:
public CFRecordsAggregate Get(int index){CheckIndex(index);return (CFRecordsAggregate)_cfHeaders[index];}
// Original:
public long get(int index) {final int o = index / 9;final int b = index % 9;final int shift = b * 7;return (blocks[o] >>> shift) & 127L;}

// Translation:
public override long Get(int index){int o = index / 9;int b = index % 9;int shift = b * 7;return ((long)((ulong)blocks[o] >> shift)) & 127L;}
// Original:
public GetSegmentsResult getSegments(GetSegmentsRequest request) {request = beforeClientExecution(request);return executeGetSegments(request);}

// Translation:
public virtual GetSegmentsResponse GetSegments(GetSegmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentsResponseUnmarshaller.Instance;return Invoke<GetSegmentsResponse>(request, options);}
// Original:
public DeleteVpcEndpointsResult deleteVpcEndpoints(DeleteVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpoints(request);}

// Translation:
public virtual DeleteVpcEndpointsResponse DeleteVpcEndpoints(DeleteVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteVpcEndpointsResponse>(request, options);}
// Original:
public String toString() {switch (getCellTypeEnum()) {case BLANK:return "";case BOOLEAN:return getBooleanCellValue()?"TRUE":"FALSE";case ERROR:return ErrorEval.getText((( BoolErrRecord ) _record).getErrorValue());case FORMULA:return getCellFormula();case NUMERIC:if (DateUtil.isCellDateFormatted(this)) {SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy", LocaleUtil.getUserLocale());sdf.setTimeZone(LocaleUtil.getUserTimeZone());return sdf.format(getDateCellValue());}return  String.valueOf(getNumericCellValue());case STRING:return getStringCellValue();default:return "Unknown Cell Type: " + getCellType();}}

// Translation:
public override String ToString(){switch (CellType){case CellType.Blank:return "";case CellType.Boolean:return BooleanCellValue ? "TRUE" : "FALSE";case CellType.Error:return NPOI.SS.Formula.Eval.ErrorEval.GetText(((BoolErrRecord)_record).ErrorValue);case CellType.Formula:return CellFormula;case CellType.Numeric:string format = this.CellStyle.GetDataFormatString();DataFormatter formatter = new DataFormatter();return formatter.FormatCellValue(this);case CellType.String:return StringCellValue;default:return "Unknown Cell Type: " + CellType;}}
// Original:
public List<? extends HunkHeader> getHunks() {if (hunks == null)return Collections.emptyList();return hunks;}

// Translation:
public virtual IList<HunkHeader> GetHunks(){if (hunks == null){return Sharpen.Collections.EmptyList<HunkHeader>();}return hunks;}
// Original:
public ObjectId toObjectId() {ensureId();return idBuffer.toObjectId();}

// Translation:
public virtual ObjectId ToObjectId(){EnsureId();return idBuffer.ToObjectId();}
// Original:
public ListQueuesRequest(String queueNamePrefix) {setQueueNamePrefix(queueNamePrefix);}

// Translation:
public ListQueuesRequest(string queueNamePrefix){_queueNamePrefix = queueNamePrefix;}
// Original:
public AcceptTransitGatewayPeeringAttachmentResult acceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeAcceptTransitGatewayPeeringAttachment(request);}

// Translation:
public virtual AcceptTransitGatewayPeeringAttachmentResponse AcceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke<AcceptTransitGatewayPeeringAttachmentResponse>(request, options);}