yijunyu/c-to-rust huggingface dataset:
// Original:
public DescribeCacheParameterGroupsResult describeCacheParameterGroups() {return describeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}

// Translation:
public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(){return DescribeCacheParameterGroups(new DescribeCacheParameterGroupsRequest());}
// Original:
public Float getAndIncrement(String key) {String key2 = key.trim().toLowerCase(locale);TSTNode node = getNode(key2);if (node == null) {return null;}Float aux = (Float) (node.data);if (aux == null) {aux = 1f;} else {aux = (float) (aux.intValue() + 1);}put(key2, aux);return aux;}

// Translation:
public virtual float? GetAndIncrement(string key){string key2 = culture.TextInfo.ToLower(key.Trim());TSTNode node = GetNode(key2);if (node == null){return null;}float? aux = (float?)(node.data);if (aux == null){aux = new float?(1);}else{aux = new float?((int)aux + 1);}Put(key2, aux);return aux;}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[WINDOWPROTECT]\n");buffer.append("    .options = ").append(HexDump.shortToHex(_options)).append("\n");buffer.append("[/WINDOWPROTECT]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[WINDOWPROTECT]\n");buffer.Append("    .protect         = ").Append(Protect).Append("\n");buffer.Append("[/WINDOWPROTECT]\n");return buffer.ToString();}
// Original:
public RetrieveDomainAuthCodeResult retrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request) {request = beforeClientExecution(request);return executeRetrieveDomainAuthCode(request);}

// Translation:
public virtual RetrieveDomainAuthCodeResponse RetrieveDomainAuthCode(RetrieveDomainAuthCodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = RetrieveDomainAuthCodeRequestMarshaller.Instance;options.ResponseUnmarshaller = RetrieveDomainAuthCodeResponseUnmarshaller.Instance;return Invoke<RetrieveDomainAuthCodeResponse>(request, options);}
// Original:
public GetRelationalDatabaseMetricDataResult getRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseMetricData(request);}

// Translation:
public virtual GetRelationalDatabaseMetricDataResponse GetRelationalDatabaseMetricData(GetRelationalDatabaseMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseMetricDataResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseMetricDataResponse>(request, options);}
// Original:
public Entry<K, V> pollFirstEntry() {Node<K, V> result = endpoint(true);if (result != null) {removeInternal(result);}return immutableCopy(result);}

// Translation:
public java.util.MapClass.Entry<K, V> pollFirstEntry(){java.util.TreeMap.Node<K, V> result = this.endpoint(true);if (result != null){this._enclosing.removeInternal(result);}return this._enclosing.immutableCopy(result);}
// Original:
public LimitTokenPositionFilter(TokenStream in, int maxTokenPosition, boolean consumeAllTokens) {super(in);if (maxTokenPosition < 1) {throw new IllegalArgumentException("maxTokenPosition must be greater than zero");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;}

// Translation:
public LimitTokenPositionFilter(TokenStream @in, int maxTokenPosition, bool consumeAllTokens): base(@in){if (maxTokenPosition < 1){throw new System.ArgumentException("maxTokenPosition must be greater than zero");}this.maxTokenPosition = maxTokenPosition;this.consumeAllTokens = consumeAllTokens;posIncAtt = AddAttribute<IPositionIncrementAttribute>();}
// Original:
public ViewFieldsRecord(RecordInputStream in) {_sxaxis = in.readShort();_cSub = in.readShort();_grbitSub = in.readShort();_cItm = in.readShort();int cchName = in.readUShort();if (cchName != STRING_NOT_PRESENT_LEN) {int flag = in.readByte();if ((flag & 0x01) != 0) {_name = in.readUnicodeLEString(cchName);} else {_name = in.readCompressedUnicode(cchName);}}}

// Translation:
public ViewFieldsRecord(RecordInputStream in1){sxaxis = in1.ReadShort();cSub = in1.ReadShort();grbitSub = in1.ReadShort();cItm = in1.ReadShort();int cchName = in1.ReadUShort();if (cchName != STRING_NOT_PRESENT_LEN){int flag = in1.ReadByte();if ((flag & 0x01) != 0){_name = in1.ReadUnicodeLEString(cchName);}else{_name = in1.ReadCompressedUnicode(cchName);}}}
// Original:
public synchronized static DefaultProfile getProfile(String regionId, String accessKeyId, String secret) {Credential creden = new Credential(accessKeyId, secret);profile = new DefaultProfile(regionId, creden);return profile;}

// Translation:
public static DefaultProfile GetProfile(string regionId, string accessKeyId, string secret){var credential = new Credential(accessKeyId, secret);_profile = new DefaultProfile(regionId, credential);return _profile;}
// Original:
public int indexOf(String string) {return indexOf(string, 0);}

// Translation:
public virtual int indexOf(string @string){return indexOf(@string, 0);}
// Original:
public ListAppsResult listApps(ListAppsRequest request) {request = beforeClientExecution(request);return executeListApps(request);}

// Translation:
public virtual ListAppsResponse ListApps(ListAppsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAppsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAppsResponseUnmarshaller.Instance;return Invoke<ListAppsResponse>(request, options);}
// Original:
public ListAttachedIndicesResult listAttachedIndices(ListAttachedIndicesRequest request) {request = beforeClientExecution(request);return executeListAttachedIndices(request);}

// Translation:
public virtual ListAttachedIndicesResponse ListAttachedIndices(ListAttachedIndicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAttachedIndicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAttachedIndicesResponseUnmarshaller.Instance;return Invoke<ListAttachedIndicesResponse>(request, options);}
// Original:
public void addShape(HSSFShape shape) {shape.setPatriarch(this);_shapes.add(shape);}

// Translation:
public void AddShape(HSSFShape shape){shape.Patriarch = this;_shapes.Add(shape);}
// Original:
public CreateNatGatewayResult createNatGateway(CreateNatGatewayRequest request) {request = beforeClientExecution(request);return executeCreateNatGateway(request);}

// Translation:
public virtual CreateNatGatewayResponse CreateNatGateway(CreateNatGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNatGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNatGatewayResponseUnmarshaller.Instance;return Invoke<CreateNatGatewayResponse>(request, options);}
// Original:
public GetApnsVoipChannelResult getApnsVoipChannel(GetApnsVoipChannelRequest request) {request = beforeClientExecution(request);return executeGetApnsVoipChannel(request);}

// Translation:
public virtual GetApnsVoipChannelResponse GetApnsVoipChannel(GetApnsVoipChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetApnsVoipChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetApnsVoipChannelResponseUnmarshaller.Instance;return Invoke<GetApnsVoipChannelResponse>(request, options);}
// Original:
public ReplaceTransitGatewayRouteResult replaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request) {request = beforeClientExecution(request);return executeReplaceTransitGatewayRoute(request);}

// Translation:
public virtual ReplaceTransitGatewayRouteResponse ReplaceTransitGatewayRoute(ReplaceTransitGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceTransitGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceTransitGatewayRouteResponseUnmarshaller.Instance;return Invoke<ReplaceTransitGatewayRouteResponse>(request, options);}
// Original:
public long ramBytesUsed() {return super.ramBytesUsed()+ offsets.ramBytesUsed()+ lengths.ramBytesUsed()+ RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ 2 * Integer.BYTES+ 3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF+ values.bytes().length;}

// Translation:
public long RamBytesUsed(){return RamUsageEstimator.AlignObjectSize(3 * RamUsageEstimator.NUM_BYTES_OBJECT_REF + 2 * RamUsageEstimator.NUM_BYTES_INT32)+ RamUsageEstimator.SizeOf(data)+ positions.RamBytesUsed()+ wordNums.RamBytesUsed();}
// Original:
public ParseTreePattern compile(String pattern, int patternRuleIndex) {List<? extends Token> tokenList = tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.getGrammarFileName(),parser.getVocabulary(),Arrays.asList(parser.getRuleNames()),parser.getATNWithBypassAlts(),tokens);ParseTree tree = null;try {parserInterp.setErrorHandler(new BailErrorStrategy());tree = parserInterp.parse(patternRuleIndex);}catch (ParseCancellationException e) {throw (RecognitionException)e.getCause();}catch (RecognitionException re) {throw re;}catch (Exception e) {throw new CannotInvokeStartRule(e);}if ( tokens.LA(1)!=Token.EOF ) {throw new StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}

// Translation:
public virtual ParseTreePattern Compile(string pattern, int patternRuleIndex){IList<IToken> tokenList = Tokenize(pattern);ListTokenSource tokenSrc = new ListTokenSource(tokenList);CommonTokenStream tokens = new CommonTokenStream(tokenSrc);ParserInterpreter parserInterp = new ParserInterpreter(parser.GrammarFileName, parser.Vocabulary, Arrays.AsList(parser.RuleNames), parser.GetATNWithBypassAlts(), tokens);IParseTree tree = null;try{parserInterp.ErrorHandler = new BailErrorStrategy();tree = parserInterp.Parse(patternRuleIndex);}catch (ParseCanceledException e){throw (RecognitionException)e.InnerException;}catch (RecognitionException){throw;}catch (Exception e){throw new ParseTreePatternMatcher.CannotInvokeStartRule(e);}if (tokens.LA(1) != TokenConstants.EOF){throw new ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern();}return new ParseTreePattern(this, pattern, patternRuleIndex, tree);}
// Original:
public GetRelationalDatabaseLogEventsResult getRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogEvents(request);}

// Translation:
public virtual GetRelationalDatabaseLogEventsResponse GetRelationalDatabaseLogEvents(GetRelationalDatabaseLogEventsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseLogEventsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseLogEventsResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseLogEventsResponse>(request, options);}
// Original:
public TokenStream create(TokenStream input) {return new BeiderMorseFilter(input, engine, languageSet);}

// Translation:
public override TokenStream Create(TokenStream input){return new BeiderMorseFilter(input, engine, languageSet);}
// Original:
public FloatBuffer duplicate() {return copy(this, mark);}

// Translation:
public override java.nio.FloatBuffer duplicate(){return copy(this, _mark);}
// Original:
public ClasspathResourceLoader(Class<?> clazz) {this(clazz, clazz.getClassLoader());}

// Translation:
public ClasspathResourceLoader(Type clazz){this.clazz = clazz;}
// Original:
public DescribeRouteTablesResult describeRouteTables(DescribeRouteTablesRequest request) {request = beforeClientExecution(request);return executeDescribeRouteTables(request);}

// Translation:
public virtual DescribeRouteTablesResponse DescribeRouteTables(DescribeRouteTablesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRouteTablesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRouteTablesResponseUnmarshaller.Instance;return Invoke<DescribeRouteTablesResponse>(request, options);}
// Original:
public void setRenameCallback(RenameCallback callback) {renameCallback = callback;}

// Translation:
public virtual void SetRenameCallback(RenameCallback callback){renameCallback = callback;}
// Original:
public DimensionsRecord createDimensions() {DimensionsRecord result = new DimensionsRecord();result.setFirstRow(_firstrow);result.setLastRow(_lastrow);result.setFirstCol((short) _valuesAgg.getFirstCellNum());result.setLastCol((short) _valuesAgg.getLastCellNum());return result;}

// Translation:
public DimensionsRecord CreateDimensions(){DimensionsRecord result = new DimensionsRecord();result.FirstRow=(firstrow);result.LastRow=(lastrow);result.FirstCol =_valuesAgg.FirstCellNum;result.LastCol = _valuesAgg.LastCellNum;return result;}
// Original:
public StopTransformJobResult stopTransformJob(StopTransformJobRequest request) {request = beforeClientExecution(request);return executeStopTransformJob(request);}

// Translation:
public virtual StopTransformJobResponse StopTransformJob(StopTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StopTransformJobResponseUnmarshaller.Instance;return Invoke<StopTransformJobResponse>(request, options);}
// Original:
public final String toString() {return getClass().getName() + " [" +getStringValue() +"]";}

// Translation:
public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append(GetType().Name).Append(" [");sb.Append(this.StringValue);sb.Append("]");return sb.ToString();}
// Original:
public QueryAuthenticationRequest() {super("LinkFace", "2018-07-20", "QueryAuthentication");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}

// Translation:
public QueryAuthenticationRequest(): base("LinkFace", "2018-07-20", "QueryAuthentication"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
// Original:
public PrintStream append(char c) {print(c);return this;}

// Translation:
public virtual java.io.PrintStream append(char c){print(c);return this;}
// Original:
public StartKeyPhrasesDetectionJobResult startKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartKeyPhrasesDetectionJob(request);}

// Translation:
public virtual StartKeyPhrasesDetectionJobResponse StartKeyPhrasesDetectionJob(StartKeyPhrasesDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartKeyPhrasesDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartKeyPhrasesDetectionJobResponseUnmarshaller.Instance;return Invoke<StartKeyPhrasesDetectionJobResponse>(request, options);}
// Original:
public QueryPhraseMap searchPhrase( final List<TermInfo> phraseCandidate ){QueryPhraseMap currMap = this;for( TermInfo ti : phraseCandidate ){currMap = currMap.subMap.get( ti.getText() );if( currMap == null ) return null;}return currMap.isValidTermOrPhrase( phraseCandidate ) ? currMap : null;}

// Translation:
public virtual QueryPhraseMap SearchPhrase(IList<TermInfo> phraseCandidate){QueryPhraseMap currMap = this;foreach (TermInfo ti in phraseCandidate){currMap.subMap.TryGetValue(ti.Text, out currMap);if (currMap == null) return null;}return currMap.IsValidTermOrPhrase(phraseCandidate) ? currMap : null;}
// Original:
public void add(Term term) {if (term == null) {throw new IllegalArgumentException("Term must not be null");}this.terms.add(term);}

// Translation:
public virtual void Add(Term term){if (term == null){throw new ArgumentException("Term must not be null");}this.m_terms.Add(term);}
// Original:
public ListEmailIdentitiesResult listEmailIdentities(ListEmailIdentitiesRequest request) {request = beforeClientExecution(request);return executeListEmailIdentities(request);}

// Translation:
public virtual ListEmailIdentitiesResponse ListEmailIdentities(ListEmailIdentitiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEmailIdentitiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEmailIdentitiesResponseUnmarshaller.Instance;return Invoke<ListEmailIdentitiesResponse>(request, options);}
// Original:
public MutableFPNumber(BigInteger frac, int binaryExponent) {_significand = frac;_binaryExponent = binaryExponent;}

// Translation:
public MutableFPNumber(BigInteger frac, int binaryExponent){_significand = frac;_binaryExponent = binaryExponent;}
// Original:
public CreateNetworkProfileResult createNetworkProfile(CreateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeCreateNetworkProfile(request);}

// Translation:
public virtual CreateNetworkProfileResponse CreateNetworkProfile(CreateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateNetworkProfileResponseUnmarshaller.Instance;return Invoke<CreateNetworkProfileResponse>(request, options);}
// Original:
public Transition removeTransition(int index) {return transitions.remove(index);}

// Translation:
public virtual void RemoveTransition(int index){transitions.RemoveAt(index);}
// Original:
public int doLogic() throws Exception {final PerfRunData runData = getRunData();IndexWriter w = runData.getIndexWriter();if (w == null) {throw new RuntimeException("please open the writer before invoking NearRealtimeReader");}if (runData.getIndexReader() != null) {throw new RuntimeException("please close the existing reader before invoking NearRealtimeReader");}long t = System.currentTimeMillis();DirectoryReader r = DirectoryReader.open(w);runData.setIndexReader(r);r.decRef();reopenCount = 0;while(!stopNow) {long waitForMsec = (pauseMSec - (System.currentTimeMillis() - t));if (waitForMsec > 0) {Thread.sleep(waitForMsec);}t = System.currentTimeMillis();final DirectoryReader newReader = DirectoryReader.openIfChanged(r);if (newReader != null) {final int delay = (int) (System.currentTimeMillis()-t);if (reopenTimes.length == reopenCount) {reopenTimes = ArrayUtil.grow(reopenTimes, 1+reopenCount);}reopenTimes[reopenCount++] = delay;runData.setIndexReader(newReader);newReader.decRef();r = newReader;}}stopNow = false;return reopenCount;}

// Translation:
public override int DoLogic(){PerfRunData runData = RunData;IndexWriter w = runData.IndexWriter;if (w == null){throw new Exception("please open the writer before invoking NearRealtimeReader");}if (runData.GetIndexReader() != null){throw new Exception("please close the existing reader before invoking NearRealtimeReader");}long t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader r = DirectoryReader.Open(w, true);runData.SetIndexReader(r);r.DecRef();reopenCount = 0;while (!Stop){long waitForMsec = (pauseMSec - (J2N.Time.CurrentTimeMilliseconds() - t));if (waitForMsec > 0){Thread.Sleep((int)waitForMsec);}t = J2N.Time.CurrentTimeMilliseconds();DirectoryReader newReader = DirectoryReader.OpenIfChanged(r);if (newReader != null){int delay = (int)(J2N.Time.CurrentTimeMilliseconds() - t);if (reopenTimes.Length == reopenCount){reopenTimes = ArrayUtil.Grow(reopenTimes, 1 + reopenCount);}reopenTimes[reopenCount++] = delay;runData.SetIndexReader(newReader);newReader.DecRef();r = newReader;}}Stop = false;return reopenCount;}
// Original:
public PutAttributesResult putAttributes(PutAttributesRequest request) {request = beforeClientExecution(request);return executePutAttributes(request);}

// Translation:
public virtual PutAttributesResponse PutAttributes(PutAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutAttributesResponseUnmarshaller.Instance;return Invoke<PutAttributesResponse>(request, options);}
// Original:
public DeleteLocalGatewayRouteTableVpcAssociationResult deleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request) {request = beforeClientExecution(request);return executeDeleteLocalGatewayRouteTableVpcAssociation(request);}

// Translation:
public virtual DeleteLocalGatewayRouteTableVpcAssociationResponse DeleteLocalGatewayRouteTableVpcAssociation(DeleteLocalGatewayRouteTableVpcAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLocalGatewayRouteTableVpcAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLocalGatewayRouteTableVpcAssociationResponseUnmarshaller.Instance;return Invoke<DeleteLocalGatewayRouteTableVpcAssociationResponse>(request, options);}
// Original:
public TreeFilter clone() {return this;}

// Translation:
public override RevFilter Clone(){return this;}
// Original:
public static TreeFilter create(TreeFilter[] list) {if (list.length == 2)return create(list[0], list[1]);if (list.length < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final TreeFilter[] subfilters = new TreeFilter[list.length];System.arraycopy(list, 0, subfilters, 0, list.length);return new List(subfilters);}

// Translation:
public static TreeFilter Create(TreeFilter[] list){if (list.Length == 2){return Create(list[0], list[1]);}if (list.Length < 2){throw new ArgumentException(JGitText.Get().atLeastTwoFiltersNeeded);}TreeFilter[] subfilters = new TreeFilter[list.Length];System.Array.Copy(list, 0, subfilters, 0, list.Length);return new AndTreeFilter.List(subfilters);}
// Original:
public void back(int delta) {while (--delta >= 0) {if (currentSubtree != null)nextSubtreePos--;ptr--;parseEntry(false);if (currentSubtree != null)ptr -= currentSubtree.getEntrySpan() - 1;}}

// Translation:
public override void Back(int delta){while (--delta >= 0){if (currentSubtree != null){nextSubtreePos--;}ptr--;ParseEntry();if (currentSubtree != null){ptr -= currentSubtree.GetEntrySpan() - 1;}}}
// Original:
public Map<String, SubmoduleStatus> call() throws GitAPIException {checkCallable();try (SubmoduleWalk generator = SubmoduleWalk.forIndex(repo)) {if (!paths.isEmpty())generator.setFilter(PathFilterGroup.createFromStrings(paths));Map<String, SubmoduleStatus> statuses = new HashMap<>();while (generator.next()) {SubmoduleStatus status = getStatus(generator);statuses.put(status.getPath(), status);}return statuses;} catch (IOException | ConfigInvalidException e) {throw new JGitInternalException(e.getMessage(), e);}}

// Translation:
public override IDictionary<string, SubmoduleStatus> Call(){CheckCallable();try{SubmoduleWalk generator = SubmoduleWalk.ForIndex(repo);if (!paths.IsEmpty()){generator.SetFilter(PathFilterGroup.CreateFromStrings(paths));}IDictionary<string, SubmoduleStatus> statuses = new Dictionary<string, SubmoduleStatus>();while (generator.Next()){SubmoduleStatus status = GetStatus(generator);statuses.Put(status.GetPath(), status);}return statuses;}catch (IOException e){throw new JGitInternalException(e.Message, e);}catch (ConfigInvalidException e){throw new JGitInternalException(e.Message, e);}}
// Original:
public synchronized int available() {return count - pos;}

// Translation:
public override int available(){lock (this){return count - pos;}}
// Original:
public SmallStream(int type, byte[] data) {this.type = type;this.data = data;}

// Translation:
public SmallStream(int type, byte[] data){this.type = type;this.data = data;}
// Original:
public String escapeExtensionField(String extfield) {return QueryParserBase.escape(extfield);}

// Translation:
public virtual string EscapeExtensionField(string extfield){return QueryParserBase.Escape(extfield);}
// Original:
public QueryScorer(Query query) {init(query, null, null, true);}

// Translation:
public QueryScorer(Query query){Init(query, null, null, true);}
// Original:
public int getHighIx() {return _highIx;}

// Translation:
public int GetHighIx(){return _highIx;}