yijunyu/c-to-rust huggingface dataset:
// Original:
public void setParams(String params) {super.setParams(params);final StreamTokenizer stok = new StreamTokenizer(new StringReader(params));stok.quoteChar('"');stok.quoteChar('\'');stok.eolIsSignificant(false);stok.ordinaryChar(',');try {while (stok.nextToken() != StreamTokenizer.TT_EOF) {switch (stok.ttype) {case ',': {break;}case '\'':case '\"':case StreamTokenizer.TT_WORD: {analyzerNames.add(stok.sval);break;}default: {throw new RuntimeException("Unexpected token: " + stok.toString());}}}} catch (RuntimeException e) {if (e.getMessage().startsWith("Line #")) {throw e;} else {throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", e);}} catch (Throwable t) {throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", t);}}

// Translation:
public override void SetParams(string @params){base.SetParams(@params);StreamTokenizer stok = new StreamTokenizer(new StringReader(@params));stok.QuoteChar('"');stok.QuoteChar('\'');stok.EndOfLineIsSignificant = false;stok.OrdinaryChar(',');try{while (stok.NextToken() != StreamTokenizer.TokenType_EndOfStream){switch (stok.TokenType){case ',':{break;}case '\'':case '\"':case StreamTokenizer.TokenType_Word:{analyzerNames.Add(stok.StringValue);break;}default:{throw new Exception("Unexpected token: " + stok.ToString());}}}}catch (Exception e){if (e.Message.StartsWith("Line #", StringComparison.Ordinal)){throw; }else{throw new Exception("Line #" + (stok.LineNumber + AlgLineNum) + ": ", e);}}}
// Original:
public DescribeVolumesResult describeVolumes(DescribeVolumesRequest request) {request = beforeClientExecution(request);return executeDescribeVolumes(request);}

// Translation:
public virtual DescribeVolumesResponse DescribeVolumes(DescribeVolumesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVolumesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVolumesResponseUnmarshaller.Instance;return Invoke<DescribeVolumesResponse>(request, options);}
// Original:
public DescribeFlowLogsResult describeFlowLogs(DescribeFlowLogsRequest request) {request = beforeClientExecution(request);return executeDescribeFlowLogs(request);}

// Translation:
public virtual DescribeFlowLogsResponse DescribeFlowLogs(DescribeFlowLogsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFlowLogsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFlowLogsResponseUnmarshaller.Instance;return Invoke<DescribeFlowLogsResponse>(request, options);}
// Original:
public UpdateMethodResult updateMethod(UpdateMethodRequest request) {request = beforeClientExecution(request);return executeUpdateMethod(request);}

// Translation:
public virtual UpdateMethodResponse UpdateMethod(UpdateMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateMethodResponseUnmarshaller.Instance;return Invoke<UpdateMethodResponse>(request, options);}
// Original:
public GetAuthorizationTokenRequest() {super("cr", "2016-06-07", "GetAuthorizationToken", "cr");setUriPattern("/tokens");setMethod(MethodType.GET);}

// Translation:
public GetAuthorizationTokenRequest(): base("cr", "2016-06-07", "GetAuthorizationToken", "cr", "openAPI"){UriPattern = "/tokens";Method = MethodType.GET;}
// Original:
public StopContactResult stopContact(StopContactRequest request) {request = beforeClientExecution(request);return executeStopContact(request);}

// Translation:
public virtual StopContactResponse StopContact(StopContactRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopContactRequestMarshaller.Instance;options.ResponseUnmarshaller = StopContactResponseUnmarshaller.Instance;return Invoke<StopContactResponse>(request, options);}
// Original:
public CreateDataSetResult createDataSet(CreateDataSetRequest request) {request = beforeClientExecution(request);return executeCreateDataSet(request);}

// Translation:
public virtual CreateDataSetResponse CreateDataSet(CreateDataSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSetResponseUnmarshaller.Instance;return Invoke<CreateDataSetResponse>(request, options);}
// Original:
public ObjectDatabase newCachedDatabase() {return this;}

// Translation:
public virtual NGit.ObjectDatabase NewCachedDatabase(){return this;}
// Original:
public CreateJourneyResult createJourney(CreateJourneyRequest request) {request = beforeClientExecution(request);return executeCreateJourney(request);}

// Translation:
public virtual CreateJourneyResponse CreateJourney(CreateJourneyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateJourneyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateJourneyResponseUnmarshaller.Instance;return Invoke<CreateJourneyResponse>(request, options);}
// Original:
public DeleteDashboardsResult deleteDashboards(DeleteDashboardsRequest request) {request = beforeClientExecution(request);return executeDeleteDashboards(request);}

// Translation:
public virtual DeleteDashboardsResponse DeleteDashboards(DeleteDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDashboardsResponseUnmarshaller.Instance;return Invoke<DeleteDashboardsResponse>(request, options);}
// Original:
public UpgradeIndexMergePolicy(MergePolicy in) {super(in);}

// Translation:
public UpgradeIndexMergePolicy(MergePolicy @base){this.m_base = @base;}
// Original:
public GetHealthCheckCountResult getHealthCheckCount(GetHealthCheckCountRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckCount(request);}

// Translation:
public virtual GetHealthCheckCountResponse GetHealthCheckCount(GetHealthCheckCountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckCountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckCountResponseUnmarshaller.Instance;return Invoke<GetHealthCheckCountResponse>(request, options);}
// Original:
public ChartStartBlockRecord(RecordInputStream in) {rt = in.readShort();grbitFrt = in.readShort();iObjectKind = in.readShort();iObjectContext = in.readShort();iObjectInstance1 = in.readShort();iObjectInstance2 = in.readShort();}

// Translation:
public ChartStartBlockRecord(RecordInputStream in1){rt = in1.ReadShort();grbitFrt = in1.ReadShort();iObjectKind = in1.ReadShort();iObjectContext = in1.ReadShort();iObjectInstance1 = in1.ReadShort();iObjectInstance2 = in1.ReadShort();}
// Original:
public SeriesRecord(RecordInputStream in) {field_1_categoryDataType = in.readShort();field_2_valuesDataType   = in.readShort();field_3_numCategories    = in.readShort();field_4_numValues        = in.readShort();field_5_bubbleSeriesType = in.readShort();field_6_numBubbleValues  = in.readShort();}

// Translation:
public SeriesRecord(RecordInputStream in1){field_1_categoryDataType = in1.ReadShort();field_2_valuesDataType = in1.ReadShort();field_3_numCategories = in1.ReadShort();field_4_numValues = in1.ReadShort();field_5_bubbleSeriesType = in1.ReadShort();field_6_numBubbleValues = in1.ReadShort();}
// Original:
public static Class<? extends CharFilterFactory> lookupClass(String name) {return loader.lookupClass(name);}

// Translation:
public static Type LookupClass(string name){return loader.LookupClass(name);}
// Original:
public GetPublicKeyResult getPublicKey(GetPublicKeyRequest request) {request = beforeClientExecution(request);return executeGetPublicKey(request);}

// Translation:
public virtual GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetPublicKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetPublicKeyResponseUnmarshaller.Instance;return Invoke<GetPublicKeyResponse>(request, options);}
// Original:
public CreateLocalGatewayRouteTableVpcAssociationResult createLocalGatewayRouteTableVpcAssociation(CreateLocalGatewayRouteTableVpcAssociationRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRouteTableVpcAssociation(request);}

// Translation:
public virtual CreateLocalGatewayRouteTableVpcAssociationResponse CreateLocalGatewayRouteTableVpcAssociation(CreateLocalGatewayRouteTableVpcAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLocalGatewayRouteTableVpcAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLocalGatewayRouteTableVpcAssociationResponseUnmarshaller.Instance;return Invoke<CreateLocalGatewayRouteTableVpcAssociationResponse>(request, options);}
// Original:
public static boolean toBoolean(String stringValue) {if (stringValue == null)throw new NullPointerException(JGitText.get().expectedBooleanStringValue);final Boolean bool = toBooleanOrNull(stringValue);if (bool == null)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notABoolean, stringValue));return bool.booleanValue();}

// Translation:
public static bool ToBoolean(string stringValue){if (stringValue == null){throw new ArgumentNullException(JGitText.Get().expectedBooleanStringValue);}bool? @bool = ToBooleanOrNull(stringValue);if (@bool == null){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notABoolean, stringValue));}return @bool.Value;}
// Original:
public Set<String> getAdded() {return Collections.unmodifiableSet(diff.getAdded());}

// Translation:
public virtual ICollection<string> GetAdded(){return Sharpen.Collections.UnmodifiableSet(diff.GetAdded());}
// Original:
public Set<String> getNames(String section) {return getNames(section, null);}

// Translation:
public virtual ICollection<string> GetNames(string section){return GetNames(section, null);}
// Original:
public DescribeCacheClustersResult describeCacheClusters(DescribeCacheClustersRequest request) {request = beforeClientExecution(request);return executeDescribeCacheClusters(request);}

// Translation:
public virtual DescribeCacheClustersResponse DescribeCacheClusters(DescribeCacheClustersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheClustersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheClustersResponseUnmarshaller.Instance;return Invoke<DescribeCacheClustersResponse>(request, options);}
// Original:
public List<String> getUnmergedPaths() {return unmergedPaths;}

// Translation:
public virtual IList<string> GetUnmergedPaths(){return unmergedPaths;}
// Original:
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}
// Original:
public int addString(UnicodeString string){field_1_num_strings++;UnicodeString ucs = ( string == null ) ? EMPTY_STRING: string;int rval;int index = field_3_strings.getIndex(ucs);if ( index != -1 ) {rval = index;} else {rval = field_3_strings.size();field_2_num_unique_strings++;SSTDeserializer.addToStringTable( field_3_strings, ucs );}return rval;}

// Translation:
public int AddString(UnicodeString str){field_1_num_strings++;UnicodeString ucs = (str == null) ? EMPTY_STRING: str;int rval;int index = field_3_strings.GetIndex(ucs);if (index != -1){rval = index;}else{rval = field_3_strings.Size;field_2_num_unique_strings++;SSTDeserializer.AddToStringTable(field_3_strings, ucs);}return rval;}
// Original:
public long getDeltaSearchMemoryLimit() {return deltaSearchMemoryLimit;}

// Translation:
public virtual long GetDeltaSearchMemoryLimit(){return deltaSearchMemoryLimit;}
// Original:
public String toString() {return "Token(\"" + new String(surfaceForm, offset, length) + "\" pos=" + position + " length=" + length +" posLen=" + positionLength + " type=" + type + " wordId=" + wordId +" leftID=" + dictionary.getLeftId(wordId) + ")";}

// Translation:
public override string ToString(){return "Token(\"" + new string(surfaceForm, offset, length) + "\" pos=" + position + " length=" + length +" posLen=" + positionLength + " type=" + type + " wordId=" + wordId +" leftID=" + dictionary.GetLeftId(wordId) + ")";}
// Original:
public String toFormulaString(FormulaRenderingWorkbook book) {return ExternSheetNameResolver.prependSheetName(book, field_1_index_extern_sheet, formatReferenceAsString());}

// Translation:
public String ToFormulaString(IFormulaRenderingWorkbook book){return ExternSheetNameResolver.PrependSheetName(book, field_1_index_extern_sheet, FormatReferenceAsString());}
// Original:
public E get(int index) {return (E) elements[index];}

// Translation:
public virtual E get(int index){return (E)elements[index];}
// Original:
public byte[] getCachedBytes() {return data;}

// Translation:
public override byte[] GetCachedBytes(){return data;}
// Original:
public DescribeConnectionsResult describeConnections() {return describeConnections(new DescribeConnectionsRequest());}

// Translation:
public virtual DescribeConnectionsResponse DescribeConnections(){return DescribeConnections(new DescribeConnectionsRequest());}
// Original:
public void ensureCapacity(int minimumCapacity) {Object[] a = array;if (a.length < minimumCapacity) {Object[] newArray = new Object[minimumCapacity];System.arraycopy(a, 0, newArray, 0, size);array = newArray;modCount++;}}

// Translation:
public virtual void ensureCapacity(int minimumCapacity){object[] a = array;if (a.Length < minimumCapacity){object[] newArray = new object[minimumCapacity];System.Array.Copy(a, 0, newArray, 0, _size);array = newArray;modCount++;}}
// Original:
public DeleteLifecycleHookResult deleteLifecycleHook(DeleteLifecycleHookRequest request) {request = beforeClientExecution(request);return executeDeleteLifecycleHook(request);}

// Translation:
public virtual DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance;return Invoke<DeleteLifecycleHookResponse>(request, options);}
// Original:
public final float maxBytesPerChar() {return maxBytesPerChar;}

// Translation:
public float maxBytesPerChar(){return _maxBytesPerChar;}
// Original:
public BlankCellRectangleGroup(int firstRowIndex, int firstColumnIndex, int lastColumnIndex) {_firstRowIndex = firstRowIndex;_firstColumnIndex = firstColumnIndex;_lastColumnIndex = lastColumnIndex;_lastRowIndex = firstRowIndex;}

// Translation:
public BlankCellRectangleGroup(int firstRowIndex, int firstColumnIndex, int lastColumnIndex){_firstRowIndex = firstRowIndex;_firstColumnIndex = firstColumnIndex;_lastColumnIndex = lastColumnIndex;_lastRowIndex = firstRowIndex;}
// Original:
public int findEndOfRowOutlineGroup(int row) {int level = getRow( row ).getOutlineLevel();int currentRow;for (currentRow = row; currentRow < getLastRowNum(); currentRow++) {if (getRow(currentRow) == null || getRow(currentRow).getOutlineLevel() < level) {break;}}return currentRow-1;}

// Translation:
public int FindEndOfRowOutlineGroup(int row){int level = GetRow(row).OutlineLevel;int currentRow;for (currentRow = row; currentRow < this.LastRowNum; currentRow++){if (GetRow(currentRow) == null || GetRow(currentRow).OutlineLevel < level){break;}}return currentRow - 1;}
// Original:
public String getEncoding() {if (encoder == null) {return null;}return HistoricalCharsetNames.get(encoder.charset());}

// Translation:
public virtual string getEncoding(){if (encoder == null){return null;}return java.io.HistoricalCharsetNames.get(encoder.charset());}
// Original:
public void clearAllCachedResultValues() {_cache.clear();_sheetIndexesBySheet.clear();_workbook.clearAllCachedResultValues();}

// Translation:
public void ClearAllCachedResultValues(){_cache.Clear();_sheetIndexesBySheet.Clear();}
// Original:
public final String toString() {StringBuilder sb = new StringBuilder();String recordName = getRecordName();sb.append("[").append(recordName).append("]\n");sb.append("    .row    = ").append(HexDump.shortToHex(getRow())).append("\n");sb.append("    .col    = ").append(HexDump.shortToHex(getColumn())).append("\n");if (isBiff2()) {sb.append("    .cellattrs = ").append(HexDump.shortToHex(getCellAttrs())).append("\n");} else {sb.append("    .xfindex   = ").append(HexDump.shortToHex(getXFIndex())).append("\n");}appendValueText(sb);sb.append("\n");sb.append("[/").append(recordName).append("]\n");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();String recordName = this.RecordName;sb.Append("[").Append(recordName).Append("]\n");sb.Append("    .row    = ").Append(HexDump.ShortToHex(Row)).Append("\n");sb.Append("    .col    = ").Append(HexDump.ShortToHex(Column)).Append("\n");if (IsBiff2){sb.Append("    .cellattrs = ").Append(HexDump.ShortToHex(CellAttrs)).Append("\n");}else{sb.Append("    .xFindex   = ").Append(HexDump.ShortToHex(XFIndex)).Append("\n");}AppendValueText(sb);sb.Append("\n");sb.Append("[/").Append(recordName).Append("]\n");return sb.ToString();}
// Original:
public DescribeDBClusterEndpointsResult describeDBClusterEndpoints(DescribeDBClusterEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterEndpoints(request);}

// Translation:
public virtual DescribeDBClusterEndpointsResponse DescribeDBClusterEndpoints(DescribeDBClusterEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterEndpointsResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterEndpointsResponse>(request, options);}
// Original:
public boolean renameTo(final String newName){boolean rval = false;if (!isRoot()){rval = _parent.changeName(getName(), newName);}return rval;}

// Translation:
public bool RenameTo(String newName){bool rval = false;if (!IsRoot){rval = _parent.ChangeName(Name, newName);}return rval;}
// Original:
public Explanation explain(Explanation freq, long norm) {List<Explanation> subs = new ArrayList<>();for (SimScorer subScorer : subScorers) {subs.add(subScorer.explain(freq, norm));}return Explanation.match(score(freq.getValue().floatValue(), norm), "sum of:", subs);}

// Translation:
public override Explanation Explain(int doc, Explanation freq){Explanation expl = new Explanation(Score(doc, freq.Value), "sum of:");foreach (SimScorer subScorer in subScorers){expl.AddDetail(subScorer.Explain(doc, freq));}return expl;}
// Original:
public DocTermsIndexDocValues(ValueSource vs, LeafReaderContext context, String field) throws IOException {this(vs, open(context, field));}

// Translation:
public DocTermsIndexDocValues(ValueSource vs, AtomicReaderContext context, string field){try{m_termsIndex = FieldCache.DEFAULT.GetTermsIndex(context.AtomicReader, field);}catch (Exception e){throw new DocTermsIndexException(field, e);}this.m_vs = vs;}
// Original:
public static int compareTo(Ref o1, Ref o2) {return o1.getName().compareTo(o2.getName());}

// Translation:
public static int CompareTo(Ref o1, string o2){return Sharpen.Runtime.CompareOrdinal(o1.GetName(), o2);}
// Original:
public Dimension getImageDimension(){InternalWorkbook iwb = getPatriarch().getSheet().getWorkbook().getWorkbook();EscherBSERecord bse = iwb.getBSERecord(getPictureIndex());byte[] data = bse.getBlipRecord().getPicturedata();int type = bse.getBlipTypeWin32();return ImageUtils.getImageDimension(new ByteArrayInputStream(data), type);}

// Translation:
public Size GetImageDimension(){InternalWorkbook iwb = (_patriarch.Sheet.Workbook as HSSFWorkbook).Workbook;EscherBSERecord bse = iwb.GetBSERecord(PictureIndex);byte[] data = bse.BlipRecord.PictureData;using (MemoryStream ms = new MemoryStream(data)){using (Image img = Image.FromStream(ms)){return img.Size;}}}
// Original:
public static double var(double[] v) {double r = Double.NaN;if (v!=null && v.length > 1) {r = devsq(v) / (v.length - 1);}return r;}

// Translation:
public static double var(double[] v){double r = Double.NaN;if (v != null && v.Length > 1){r = devsq(v) / (v.Length - 1);}return r;}
// Original:
public UpdateCloudFrontOriginAccessIdentityRequest(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig, String id, String ifMatch) {setCloudFrontOriginAccessIdentityConfig(cloudFrontOriginAccessIdentityConfig);setId(id);setIfMatch(ifMatch);}

// Translation:
public UpdateCloudFrontOriginAccessIdentityRequest(string id, string ifMatch, CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig){_id = id;_ifMatch = ifMatch;_cloudFrontOriginAccessIdentityConfig = cloudFrontOriginAccessIdentityConfig;}
// Original:
public DiffCommand setDestinationPrefix(String destinationPrefix) {this.destinationPrefix = destinationPrefix;return this;}

// Translation:
public virtual NGit.Api.DiffCommand SetDestinationPrefix(string destinationPrefix){this.destinationPrefix = destinationPrefix;return this;}
// Original:
public int available() throws IOException {return IoBridge.available(fd);}

// Translation:
public override int available(){throw new System.NotImplementedException();}
// Original:
final public SrndQuery NotQuery() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries = null;Token oprt = null;q = NQuery();label_4:while (true) {switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:;break;default:jj_la1[2] = jj_gen;break label_4;}oprt = jj_consume_token(NOT);if (queries == null) {queries = new ArrayList<SrndQuery>();queries.add(q);}q = NQuery();queries.add(q);}{if (true) return (queries == null) ? q : getNotQuery(queries, oprt);}throw new Error("Missing return statement in function");}

// Translation:
public SrndQuery NotQuery(){SrndQuery q;IList<SrndQuery> queries = null;Token oprt = null;q = NQuery();while (true){switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.NOT:;break;default:jj_la1[2] = jj_gen;goto label_4;}oprt = Jj_consume_token(RegexpToken.NOT);if (queries == null){queries = new List<SrndQuery>();queries.Add(q);}q = NQuery();queries.Add(q);}label_4:{ if (true) return (queries == null) ? q : GetNotQuery(queries, oprt); }throw new Exception("Missing return statement in function");}
// Original:
public String toString() {StringBuilder sb = new StringBuilder();sb.append('[').append("USERSVIEWEND").append("] (0x");sb.append(Integer.toHexString(sid).toUpperCase(Locale.ROOT)).append(")\n");sb.append("  rawData=").append(HexDump.toHex(_rawData)).append("\n");sb.append("[/").append("USERSVIEWEND").append("]\n");return sb.toString();}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[").Append("USERSVIEWEND").Append("] (0x");sb.Append(StringUtil.ToHexString(sid).ToUpper() + ")\n");sb.Append("  rawData=").Append(HexDump.ToHex(_rawData)).Append("\n");sb.Append("[/").Append("USERSVIEWEND").Append("]\n");return sb.ToString();}
// Original:
public FloatBuffer asReadOnlyBuffer() {FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf.limit = limit;buf.position = position;buf.mark = mark;buf.byteBuffer.order = byteBuffer.order;return buf;}

// Translation:
public override java.nio.FloatBuffer asReadOnlyBuffer(){java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(byteBuffer.asReadOnlyBuffer());buf._limit = _limit;buf._position = _position;buf._mark = _mark;buf.byteBuffer._order = byteBuffer._order;return buf;}
// Original:
public LogCommand log() {return new LogCommand(repo);}

// Translation:
public virtual LogCommand Log(){return new LogCommand(repo);}