yijunyu/c-to-rust huggingface dataset:
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[SERTOCRT]\n");buffer.append("    .chartGroupIndex      = ").append("0x").append(HexDump.toHex(  getChartGroupIndex ())).append(" (").append( getChartGroupIndex() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("[/SERTOCRT]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SERTOCRT]\n");buffer.Append("    .chartGroupIndex      = ").Append("0x").Append(HexDump.ToHex(ChartGroupIndex)).Append(" (").Append(ChartGroupIndex).Append(" )");buffer.Append(Environment.NewLine);buffer.Append("[/SERTOCRT]\n");return buffer.ToString();}
// Original:
public boolean canHandle(URIish uri) {return canHandle(uri, null, null);}

// Translation:
public virtual bool CanHandle(URIish uri){return CanHandle(uri, null, null);}
// Original:
public GetImportJobResult getImportJob(GetImportJobRequest request) {request = beforeClientExecution(request);return executeGetImportJob(request);}

// Translation:
public virtual GetImportJobResponse GetImportJob(GetImportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetImportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = GetImportJobResponseUnmarshaller.Instance;return Invoke<GetImportJobResponse>(request, options);}
// Original:
public LookupDeveloperIdentityResult lookupDeveloperIdentity(LookupDeveloperIdentityRequest request) {request = beforeClientExecution(request);return executeLookupDeveloperIdentity(request);}

// Translation:
public virtual LookupDeveloperIdentityResponse LookupDeveloperIdentity(LookupDeveloperIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = LookupDeveloperIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance;return Invoke<LookupDeveloperIdentityResponse>(request, options);}
// Original:
public FloatBuffer put(float c) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = c;return this;}

// Translation:
public override java.nio.FloatBuffer put(float c){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = c;return this;}
// Original:
public RefModeRecord(RecordInputStream in) {field_1_mode = in.readShort();}

// Translation:
public RefModeRecord(RecordInputStream in1){field_1_mode = in1.ReadShort();}
// Original:
public BulkOperationPackedSingleBlock(int bitsPerValue) {this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}

// Translation:
public BulkOperationPackedSingleBlock(int bitsPerValue){this.bitsPerValue = bitsPerValue;this.valueCount = 64 / bitsPerValue;this.mask = (1L << bitsPerValue) - 1;}
// Original:
public static String dateToString(Date date, Resolution resolution) {return timeToString(date.getTime(), resolution);}

// Translation:
public static string DateToString(DateTime date, Resolution resolution){return TimeToString(date.Ticks / TimeSpan.TicksPerMillisecond, resolution);}
// Original:
public DescribeUserHierarchyStructureResult describeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request) {request = beforeClientExecution(request);return executeDescribeUserHierarchyStructure(request);}

// Translation:
public virtual DescribeUserHierarchyStructureResponse DescribeUserHierarchyStructure(DescribeUserHierarchyStructureRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserHierarchyStructureRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserHierarchyStructureResponseUnmarshaller.Instance;return Invoke<DescribeUserHierarchyStructureResponse>(request, options);}
// Original:
public GetDomainsResult getDomains(GetDomainsRequest request) {request = beforeClientExecution(request);return executeGetDomains(request);}

// Translation:
public virtual GetDomainsResponse GetDomains(GetDomainsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDomainsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDomainsResponseUnmarshaller.Instance;return Invoke<GetDomainsResponse>(request, options);}
// Original:
public int getStreamFileThreshold() {return streamFileThreshold;}

// Translation:
public virtual int GetStreamFileThreshold(){return streamFileThreshold;}
// Original:
public BatchGetDeploymentInstancesResult batchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request) {request = beforeClientExecution(request);return executeBatchGetDeploymentInstances(request);}

// Translation:
public virtual BatchGetDeploymentInstancesResponse BatchGetDeploymentInstances(BatchGetDeploymentInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchGetDeploymentInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchGetDeploymentInstancesResponseUnmarshaller.Instance;return Invoke<BatchGetDeploymentInstancesResponse>(request, options);}
// Original:
public GetIdentityVerificationAttributesResult getIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityVerificationAttributes(request);}

// Translation:
public virtual GetIdentityVerificationAttributesResponse GetIdentityVerificationAttributes(GetIdentityVerificationAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityVerificationAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityVerificationAttributesResponseUnmarshaller.Instance;return Invoke<GetIdentityVerificationAttributesResponse>(request, options);}
// Original:
public LittleEndianOutputStream(OutputStream out) {super(out);}

// Translation:
public LittleEndianOutputStream(Stream out1){this.out1 = out1;}
// Original:
public GetDeploymentGroupResult getDeploymentGroup(GetDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeGetDeploymentGroup(request);}

// Translation:
public virtual GetDeploymentGroupResponse GetDeploymentGroup(GetDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDeploymentGroupResponseUnmarshaller.Instance;return Invoke<GetDeploymentGroupResponse>(request, options);}
// Original:
public boolean containsKey(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return false;}

// Translation:
public override bool ContainsKey(char[] text, int offset, int length){if (text == null){throw new ArgumentNullException("text");}return false;}
// Original:
public void inform(ResourceLoader loader) throws IOException {clazz = registry.get(name.toUpperCase(Locale.ROOT));if( clazz == null ) {clazz = resolveEncoder(name, loader);}if (maxCodeLength != null) {try {setMaxCodeLenMethod = clazz.getMethod("setMaxCodeLen", int.class);} catch (Exception e) {throw new IllegalArgumentException("Encoder " + name + " / " + clazz + " does not support " + MAX_CODE_LENGTH, e);}}getEncoder();}

// Translation:
public virtual void Inform(IResourceLoader loader){registry.TryGetValue(name.ToUpperInvariant(), out clazz);if (clazz == null){clazz = ResolveEncoder(name, loader);}if (maxCodeLength != null){try{setMaxCodeLenMethod = clazz.GetMethod("set_MaxCodeLen");}catch (Exception e){throw new ArgumentException("Encoder " + name + " / " + clazz + " does not support " + MAX_CODE_LENGTH, e);}}GetEncoder();}
// Original:
public DescribeOrganizationConfigurationResult describeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeOrganizationConfiguration(request);}

// Translation:
public virtual DescribeOrganizationConfigurationResponse DescribeOrganizationConfiguration(DescribeOrganizationConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeOrganizationConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeOrganizationConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeOrganizationConfigurationResponse>(request, options);}
// Original:
public AbbreviatedObjectId getOldId() {return getOldId(0);}

// Translation:
public override AbbreviatedObjectId GetOldId(){return GetOldId(0);}
// Original:
public UpdateRuleMetadataResult updateRuleMetadata(UpdateRuleMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateRuleMetadata(request);}

// Translation:
public virtual UpdateRuleMetadataResponse UpdateRuleMetadata(UpdateRuleMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuleMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuleMetadataResponseUnmarshaller.Instance;return Invoke<UpdateRuleMetadataResponse>(request, options);}
// Original:
public K lowerKey(K key) {Entry<K, V> entry = findBounded(key, LOWER);return entry != null ? entry.getKey() : null;}

// Translation:
public K lowerKey(K key){java.util.MapClass.Entry<K, V> entry = this.findBounded(key, java.util.TreeMap.Relation.LOWER);return entry != null ? entry.getKey() : default(K);}
// Original:
public FtCfSubRecord clone() {return copy();}

// Translation:
public override Object Clone(){FtCfSubRecord rec = new FtCfSubRecord();rec.flags = this.flags;return rec;}
// Original:
public HCenterRecord clone() {return copy();}

// Translation:
public override Object Clone(){HCenterRecord rec = new HCenterRecord();rec.field_1_hcenter = field_1_hcenter;return rec;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(field_1_foregroundColor);out.writeInt(field_2_backgroundColor);out.writeShort(field_3_pattern);out.writeShort(field_4_formatFlags);out.writeShort(field_5_forecolorIndex);out.writeShort(field_6_backcolorIndex);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_foregroundColor);out1.WriteInt(field_2_backgroundColor);out1.WriteShort(field_3_pattern);out1.WriteShort(field_4_formatFlags);out1.WriteShort(field_5_forecolorIndex);out1.WriteShort(field_6_backcolorIndex);}
// Original:
public GetDashboardEmbedUrlResult getDashboardEmbedUrl(GetDashboardEmbedUrlRequest request) {request = beforeClientExecution(request);return executeGetDashboardEmbedUrl(request);}

// Translation:
public virtual GetDashboardEmbedUrlResponse GetDashboardEmbedUrl(GetDashboardEmbedUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDashboardEmbedUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDashboardEmbedUrlResponseUnmarshaller.Instance;return Invoke<GetDashboardEmbedUrlResponse>(request, options);}
// Original:
public BinaryDocValues getBinaryDocValues(String field) {return getSortedDocValues(field, DocValuesType.BINARY);}

// Translation:
public override BinaryDocValues GetBinaryDocValues(string field){return null;}
// Original:
public TreeFilter clone() {final TreeFilter[] s = new TreeFilter[subfilters.length];for (int i = 0; i < s.length; i++)s[i] = subfilters[i].clone();return new List(s);}

// Translation:
public override RevFilter Clone(){RevFilter[] s = new RevFilter[subfilters.Length];for (int i = 0; i < s.Length; i++){s[i] = subfilters[i].Clone();}return new OrRevFilter.List(s);}
// Original:
public DeleteApnsVoipSandboxChannelResult deleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsVoipSandboxChannel(request);}

// Translation:
public virtual DeleteApnsVoipSandboxChannelResponse DeleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApnsVoipSandboxChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApnsVoipSandboxChannelResponseUnmarshaller.Instance;return Invoke<DeleteApnsVoipSandboxChannelResponse>(request, options);}
// Original:
public FreeRefFunction findFunction(String name) {return _functionsByName.get(name.toUpperCase(Locale.ROOT));}

// Translation:
public override FreeRefFunction FindFunction(String name){if (!_functionsByName.ContainsKey(name.ToUpper()))return null;return _functionsByName[name.ToUpper()];}
// Original:
public Credentials(String accessKeyId, String secretAccessKey, String sessionToken, java.util.Date expiration) {setAccessKeyId(accessKeyId);setSecretAccessKey(secretAccessKey);setSessionToken(sessionToken);setExpiration(expiration);}

// Translation:
public Credentials(string accessKeyId, string secretAccessKey, string sessionToken, DateTime expiration){_accessKeyId = accessKeyId;_secretAccessKey = secretAccessKey;_sessionToken = sessionToken;_expiration = expiration;}
// Original:
public ReadTask(PerfRunData runData) {super(runData);if (withSearch()) {queryMaker = getQueryMaker();} else {queryMaker = null;}}

// Translation:
public ReadTask(PerfRunData runData): base(runData){if (WithSearch){queryMaker = GetQueryMaker();}else{queryMaker = null;}}
// Original:
public int getPositionIncrementGap(String fieldName) {return 0;}

// Translation:
public virtual int GetPositionIncrementGap(string fieldName){return 0;}
// Original:
public void serialize(LittleEndianOutput out) {out.writeInt(_option_flags);serializeUnicodeString(_promptTitle, out);serializeUnicodeString(_errorTitle, out);serializeUnicodeString(_promptText, out);serializeUnicodeString(_errorText, out);out.writeShort(_formula1.getEncodedTokenSize());out.writeShort(_not_used_1);_formula1.serializeTokens(out);out.writeShort(_formula2.getEncodedTokenSize());out.writeShort(_not_used_2);_formula2.serializeTokens(out);_regions.serialize(out);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(_option_flags);SerializeUnicodeString(_promptTitle, out1);SerializeUnicodeString(_errorTitle, out1);SerializeUnicodeString(_promptText, out1);SerializeUnicodeString(_errorText, out1);out1.WriteShort(_formula1.EncodedTokenSize);out1.WriteShort(_not_used_1);_formula1.SerializeTokens(out1);out1.WriteShort(_formula2.EncodedTokenSize);out1.WriteShort(_not_used_2);_formula2.SerializeTokens(out1);_regions.Serialize(out1);}
// Original:
public String toString() {return "[PRINTHEADERS]\n" +"    .printheaders   = " + getPrintHeaders() +"\n" +"[/PRINTHEADERS]\n";}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PRINTHEADERS]\n");buffer.Append("    .printheaders   = ").Append(PrintHeaders).Append("\n");buffer.Append("[/PRINTHEADERS]\n");return buffer.ToString();}
// Original:
public GetConferencePreferenceResult getConferencePreference(GetConferencePreferenceRequest request) {request = beforeClientExecution(request);return executeGetConferencePreference(request);}

// Translation:
public virtual GetConferencePreferenceResponse GetConferencePreference(GetConferencePreferenceRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConferencePreferenceRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConferencePreferenceResponseUnmarshaller.Instance;return Invoke<GetConferencePreferenceResponse>(request, options);}
// Original:
public static BitSet getAlts(Collection<BitSet> altsets) {BitSet all = new BitSet();for (BitSet alts : altsets) {all.or(alts);}return all;}

// Translation:
public static BitSet GetAlts(IEnumerable<BitSet> altsets){BitSet all = new BitSet();foreach (BitSet alts in altsets){all.Or(alts);}return all;}
// Original:
public ListTrafficPolicyInstancesResult listTrafficPolicyInstances(ListTrafficPolicyInstancesRequest request) {request = beforeClientExecution(request);return executeListTrafficPolicyInstances(request);}

// Translation:
public virtual ListTrafficPolicyInstancesResponse ListTrafficPolicyInstances(ListTrafficPolicyInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTrafficPolicyInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTrafficPolicyInstancesResponseUnmarshaller.Instance;return Invoke<ListTrafficPolicyInstancesResponse>(request, options);}
// Original:
public void init(Repository src) {repository = src;}

// Translation:
public virtual void Init(Repository src){repository = src;}
// Original:
public StandardSyntaxParser(StandardSyntaxParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}

// Translation:
public StandardSyntaxParser(StandardSyntaxParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
// Original:
public ModifyDBClusterEndpointResult modifyDBClusterEndpoint(ModifyDBClusterEndpointRequest request) {request = beforeClientExecution(request);return executeModifyDBClusterEndpoint(request);}

// Translation:
public virtual ModifyDBClusterEndpointResponse ModifyDBClusterEndpoint(ModifyDBClusterEndpointRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDBClusterEndpointRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDBClusterEndpointResponseUnmarshaller.Instance;return Invoke<ModifyDBClusterEndpointResponse>(request, options);}
// Original:
public DescribeTransitGatewaysResult describeTransitGateways(DescribeTransitGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeTransitGateways(request);}

// Translation:
public virtual DescribeTransitGatewaysResponse DescribeTransitGateways(DescribeTransitGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransitGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransitGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeTransitGatewaysResponse>(request, options);}
// Original:
public GetSimilarPhotosRequest() {super("CloudPhoto", "2017-07-11", "GetSimilarPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}

// Translation:
public GetSimilarPhotosRequest(): base("CloudPhoto", "2017-07-11", "GetSimilarPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
// Original:
public GetProposalResult getProposal(GetProposalRequest request) {request = beforeClientExecution(request);return executeGetProposal(request);}

// Translation:
public virtual GetProposalResponse GetProposal(GetProposalRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProposalRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProposalResponseUnmarshaller.Instance;return Invoke<GetProposalResponse>(request, options);}
// Original:
public AddJobFlowStepsRequest(String jobFlowId) {setJobFlowId(jobFlowId);}

// Translation:
public AddJobFlowStepsRequest(string jobFlowId){_jobFlowId = jobFlowId;}
// Original:
public StartInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}

// Translation:
public StartInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
// Original:
public GetRawMessageContentResult getRawMessageContent(GetRawMessageContentRequest request) {request = beforeClientExecution(request);return executeGetRawMessageContent(request);}

// Translation:
public virtual GetRawMessageContentResponse GetRawMessageContent(GetRawMessageContentRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRawMessageContentRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRawMessageContentResponseUnmarshaller.Instance;return Invoke<GetRawMessageContentResponse>(request, options);}
// Original:
public RevObject next() {return objItr.hasNext() ? objItr.next() : null;}

// Translation:
public virtual RevCommit Next(){return pending.Next();}
// Original:
final public List<SrndQuery> FieldsQueryList() throws ParseException {SrndQuery q;ArrayList<SrndQuery> queries = new ArrayList<SrndQuery>();jj_consume_token(LPAREN);q = FieldsQuery();queries.add(q);label_7:while (true) {jj_consume_token(COMMA);q = FieldsQuery();queries.add(q);switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case COMMA:;break;default:jj_la1[7] = jj_gen;break label_7;}}jj_consume_token(RPAREN);{if (true) return queries;}throw new Error("Missing return statement in function");}

// Translation:
public IList<SrndQuery> FieldsQueryList(){SrndQuery q;IList<SrndQuery> queries = new List<SrndQuery>();Jj_consume_token(RegexpToken.LPAREN);q = FieldsQuery();queries.Add(q);while (true){Jj_consume_token(RegexpToken.COMMA);q = FieldsQuery();queries.Add(q);switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.COMMA:;break;default:jj_la1[7] = jj_gen;goto label_7;}}label_7:Jj_consume_token(RegexpToken.RPAREN);{ if (true) return queries; }throw new Exception("Missing return statement in function");}
// Original:
public boolean contains(long value) {for (int i = 0; i < count; i++)if (entries[i] == value)return true;return false;}

// Translation:
public virtual bool Contains(long value){for (int i = 0; i < count; i++){if (entries[i] == value){return true;}}return false;}
// Original:
public static boolean matchesExtension(String filename, String ext) {return filename.endsWith("." + ext);}

// Translation:
public static bool MatchesExtension(string filename, string ext){return filename.EndsWith("." + ext, StringComparison.Ordinal);}
// Original:
public ObjectId idFor(int type, byte[] data, int off, int len) {return delegate().idFor(type, data, off, len);}

// Translation:
public override ObjectId IdFor(int type, byte[] data, int off, int len){return Delegate().IdFor(type, data, off, len);}
// Original:
public void remove() {parent.remove(this);}

// Translation:
public virtual void Remove(){parent.Remove(this);}
// Original:
public DisassociateDeviceFromRoomResult disassociateDeviceFromRoom(DisassociateDeviceFromRoomRequest request) {request = beforeClientExecution(request);return executeDisassociateDeviceFromRoom(request);}

// Translation:
public virtual DisassociateDeviceFromRoomResponse DisassociateDeviceFromRoom(DisassociateDeviceFromRoomRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateDeviceFromRoomRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateDeviceFromRoomResponseUnmarshaller.Instance;return Invoke<DisassociateDeviceFromRoomResponse>(request, options);}
// Original:
final public ModifierQueryNode.Modifier Modifiers() throws ParseException {ModifierQueryNode.Modifier ret = ModifierQueryNode.Modifier.MOD_NONE;switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case NOT:case PLUS:case MINUS:switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {case PLUS:jj_consume_token(PLUS);ret = ModifierQueryNode.Modifier.MOD_REQ;break;case MINUS:jj_consume_token(MINUS);ret = ModifierQueryNode.Modifier.MOD_NOT;break;case NOT:jj_consume_token(NOT);ret = ModifierQueryNode.Modifier.MOD_NOT;break;default:jj_la1[0] = jj_gen;jj_consume_token(-1);throw new ParseException();}break;default:jj_la1[1] = jj_gen;;}{if (true) return ret;}throw new Error("Missing return statement in function");}

// Translation:
public Modifier Modifiers(){Modifier ret = Modifier.MOD_NONE;switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.NOT:case RegexpToken.PLUS:case RegexpToken.MINUS:switch ((jj_ntk == -1) ? Jj_ntk() : jj_ntk){case RegexpToken.PLUS:Jj_consume_token(RegexpToken.PLUS);ret = Modifier.MOD_REQ;break;case RegexpToken.MINUS:Jj_consume_token(RegexpToken.MINUS);ret = Modifier.MOD_NOT;break;case RegexpToken.NOT:Jj_consume_token(RegexpToken.NOT);ret = Modifier.MOD_NOT;break;default:jj_la1[2] = jj_gen;Jj_consume_token(-1);throw new ParseException();}break;default:jj_la1[3] = jj_gen;break;}{ if (true) return ret; }throw new Exception("Missing return statement in function");}
// Original:
public final RevCommit getParent(int nth) {return parents[nth];}

// Translation:
public NGit.Revwalk.RevCommit GetParent(int nth){return parents[nth];}
// Original:
public boolean hasPrevious() {return iterator.previousIndex() >= start;}

// Translation:
public bool hasPrevious(){return iterator.previousIndex() >= start;}