yijunyu/c-to-rust huggingface dataset:
// Original:
public EventSubscription createEventSubscription(CreateEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeCreateEventSubscription(request);}

// Translation:
public virtual CreateEventSubscriptionResponse CreateEventSubscription(CreateEventSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventSubscriptionResponseUnmarshaller.Instance;return Invoke<CreateEventSubscriptionResponse>(request, options);}
// Original:
@Override public V get(Object key) {return isInBounds(key) ? TreeMap.this.get(key) : null;}

// Translation:
public override V get(object key){return this.isInBounds(key) ? this._enclosing.get(key) : default(V);}
// Original:
public void setAnchor(int dx1, int dy1, int dx2, int dy2) {setDx1(Math.min(dx1, dx2));setDy1(Math.min(dy1, dy2));setDx2(Math.max(dx1, dx2));setDy2(Math.max(dy1, dy2));}

// Translation:
public void SetAnchor(int dx1, int dy1, int dx2, int dy2){this.Dx1 = Math.Min(dx1, dx2);this.Dy1 = Math.Min(dy1, dy2);this.Dx2 = Math.Max(dx1, dx2);this.Dy2 = Math.Max(dy1, dy2);}
// Original:
public int next() {if (current == end) {return DONE;} else {return last();}}

// Translation:
public override int Next(){if (current == end){return Done;}else{return Last();}}
// Original:
public UpdateGcmChannelResult updateGcmChannel(UpdateGcmChannelRequest request) {request = beforeClientExecution(request);return executeUpdateGcmChannel(request);}

// Translation:
public virtual UpdateGcmChannelResponse UpdateGcmChannel(UpdateGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGcmChannelResponseUnmarshaller.Instance;return Invoke<UpdateGcmChannelResponse>(request, options);}
// Original:
public void write(LittleEndianOutput out) {throw new IllegalStateException("XSSF-only Ptg, should not be serialised");}

// Translation:
public override void Write(ILittleEndianOutput out1){throw new InvalidOperationException("XSSF-only Ptg, should not be serialised");}
// Original:
public PlacementGroup(String groupName) {setGroupName(groupName);}

// Translation:
public PlacementGroup(string groupName){_groupName = groupName;}
// Original:
public SendCustomVerificationEmailResult sendCustomVerificationEmail(SendCustomVerificationEmailRequest request) {request = beforeClientExecution(request);return executeSendCustomVerificationEmail(request);}

// Translation:
public virtual SendCustomVerificationEmailResponse SendCustomVerificationEmail(SendCustomVerificationEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendCustomVerificationEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendCustomVerificationEmailResponseUnmarshaller.Instance;return Invoke<SendCustomVerificationEmailResponse>(request, options);}
// Original:
public CreateCollectionRequest() {super("cr", "2016-06-07", "CreateCollection", "cr");setUriPattern("/collections");setMethod(MethodType.PUT);}

// Translation:
public CreateCollectionRequest(): base("cr", "2016-06-07", "CreateCollection", "cr", "openAPI"){UriPattern = "/collections";Method = MethodType.PUT;}
// Original:
public synchronized boolean remove(Object o) {int index = indexOf(o);if (index == -1) {return false;}remove(index);return true;}

// Translation:
public virtual bool remove(object o){lock (this){int index = indexOf(o);if (index == -1){return false;}remove(index);return true;}}
// Original:
public final boolean matches(char c) {return Character.isDigit(c);}

// Translation:
public bool Matches(char c){return char.IsDigit(c);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeByte(getWSBool2());out.writeByte(getWSBool1());}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(WSBool1);out1.WriteByte(WSBool2);}
// Original:
public SubmitGenerateTaskRequest() {super("lubancloud", "2018-05-09", "SubmitGenerateTask", "luban");setMethod(MethodType.POST);}

// Translation:
public SubmitGenerateTaskRequest(): base("lubancloud", "2018-05-09", "SubmitGenerateTask", "luban", "openAPI"){Method = MethodType.POST;}
// Original:
public E ceiling(E e) {return backingMap.ceilingKey(e);}

// Translation:
public virtual E ceiling(E e){return backingMap.ceilingKey(e);}
// Original:
public BatchApplyUpdateActionResult batchApplyUpdateAction(BatchApplyUpdateActionRequest request) {request = beforeClientExecution(request);return executeBatchApplyUpdateAction(request);}

// Translation:
public virtual BatchApplyUpdateActionResponse BatchApplyUpdateAction(BatchApplyUpdateActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchApplyUpdateActionRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchApplyUpdateActionResponseUnmarshaller.Instance;return Invoke<BatchApplyUpdateActionResponse>(request, options);}
// Original:
public Break(RecordInputStream in) {main = in.readUShort() - 1;subFrom = in.readUShort();subTo = in.readUShort();}

// Translation:
public Break(RecordInputStream in1){main = in1.ReadUShort() - 1;subFrom = in1.ReadUShort();subTo = in1.ReadUShort();}
// Original:
public FileNameMatcher createMatcherForSuffix() {final List<Head> copyOfHeads = new ArrayList<>(heads.size());copyOfHeads.addAll(heads);return new FileNameMatcher(copyOfHeads);}

// Translation:
public virtual NGit.Fnmatch.FileNameMatcher CreateMatcherForSuffix(){IList<Head> copyOfHeads = new AList<Head>(heads.Count);Sharpen.Collections.AddAll(copyOfHeads, heads);return new NGit.Fnmatch.FileNameMatcher(copyOfHeads);}
// Original:
public static boolean isEmptyOrNull(String stringValue) {return stringValue == null || stringValue.length() == 0;}

// Translation:
public static bool IsEmptyOrNull(string stringValue){return stringValue == null || stringValue.Length == 0;}
// Original:
public static char[] grow(char[] array) {return grow(array, 1 + array.length);}

// Translation:
public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}
// Original:
public ModifySubnetAttributeResult modifySubnetAttribute(ModifySubnetAttributeRequest request) {request = beforeClientExecution(request);return executeModifySubnetAttribute(request);}

// Translation:
public virtual ModifySubnetAttributeResponse ModifySubnetAttribute(ModifySubnetAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifySubnetAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifySubnetAttributeResponseUnmarshaller.Instance;return Invoke<ModifySubnetAttributeResponse>(request, options);}
// Original:
public GetProxySessionResult getProxySession(GetProxySessionRequest request) {request = beforeClientExecution(request);return executeGetProxySession(request);}

// Translation:
public virtual GetProxySessionResponse GetProxySession(GetProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetProxySessionResponseUnmarshaller.Instance;return Invoke<GetProxySessionResponse>(request, options);}
// Original:
public String toString() {return "TermStats{" +"decodedTermText='" + decodedTermText + '\'' +", field='" + field + '\'' +", docFreq=" + docFreq +'}';}

// Translation:
public override string ToString(){return ("TermStats: Term=" + termtext.Utf8ToString() + " DocFreq=" + DocFreq + " TotalTermFreq=" + TotalTermFreq);}
// Original:
public String getSignificantDecimalDigitsLastDigitRounded() {long wp = _wholePart + 5; StringBuilder sb = new StringBuilder(24);sb.append(wp);sb.setCharAt(sb.length()-1, '0');return sb.toString();}

// Translation:
public String GetSignificantDecimalDigitsLastDigitRounded(){long wp = _wholePart + 5; StringBuilder sb = new StringBuilder(24);sb.Append(wp);sb[sb.Length - 1]= '0';return sb.ToString();}
// Original:
public boolean canReuse(IndexInput docIn, FieldInfo fieldInfo) {return docIn == startDocIn &&indexHasFreq == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS) >= 0) &&indexHasPos == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0) &&indexHasPayloads == fieldInfo.hasPayloads();}

// Translation:
public bool CanReuse(IndexInput docIn, FieldInfo fieldInfo){return docIn == startDocIn &&indexHasFreq == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS) >= 0) &&indexHasPos == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS) >= 0) &&indexHasPayloads == fieldInfo.HasPayloads;}
// Original:
public Sort(SortField field) {setSort(field);}

// Translation:
public Sort(SortField field){SetSort(field);}
// Original:
public static byte[] encodeASCII(String s) {final byte[] r = new byte[s.length()];for (int k = r.length - 1; k >= 0; k--) {final char c = s.charAt(k);if (c > 127)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().notASCIIString, s));r[k] = (byte) c;}return r;}

// Translation:
public static byte[] EncodeASCII(string s){byte[] r = new byte[s.Length];for (int k = r.Length - 1; k >= 0; k--){char c = s[k];if (c > 127){throw new ArgumentException(MessageFormat.Format(JGitText.Get().notASCIIString, s));}r[k] = unchecked((byte)c);}return r;}
// Original:
public PurgeQueueResult purgeQueue(PurgeQueueRequest request) {request = beforeClientExecution(request);return executePurgeQueue(request);}

// Translation:
public virtual PurgeQueueResponse PurgeQueue(PurgeQueueRequest request){var options = new InvokeOptions();options.RequestMarshaller = PurgeQueueRequestMarshaller.Instance;options.ResponseUnmarshaller = PurgeQueueResponseUnmarshaller.Instance;return Invoke<PurgeQueueResponse>(request, options);}
// Original:
public boolean sempred(RuleContext _localctx, int ruleIndex, int actionIndex) {return true;}

// Translation:
public virtual bool Sempred(RuleContext _localctx, int ruleIndex, int actionIndex){return true;}
// Original:
public ListStreamsResult listStreams() {return listStreams(new ListStreamsRequest());}

// Translation:
public virtual ListStreamsResponse ListStreams(){return ListStreams(new ListStreamsRequest());}
// Original:
public String getSurfaceFormString() {return new String(surfaceForm, offset, length);}

// Translation:
public virtual string GetSurfaceFormString(){return new string(surfaceForm, offset, length);}
// Original:
public GetVaultNotificationsResult getVaultNotifications(GetVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeGetVaultNotifications(request);}

// Translation:
public virtual GetVaultNotificationsResponse GetVaultNotifications(GetVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVaultNotificationsResponseUnmarshaller.Instance;return Invoke<GetVaultNotificationsResponse>(request, options);}
// Original:
public DeleteTypedLinkFacetResult deleteTypedLinkFacet(DeleteTypedLinkFacetRequest request) {request = beforeClientExecution(request);return executeDeleteTypedLinkFacet(request);}

// Translation:
public virtual DeleteTypedLinkFacetResponse DeleteTypedLinkFacet(DeleteTypedLinkFacetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTypedLinkFacetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTypedLinkFacetResponseUnmarshaller.Instance;return Invoke<DeleteTypedLinkFacetResponse>(request, options);}
// Original:
public int previousIndex() {return pos;}

// Translation:
public int previousIndex(){return this.pos;}
// 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) + docIDs.RamBytesUsed() + offsets.RamBytesUsed();}
// Original:
public PushCommand push() {return new PushCommand(repo);}

// Translation:
public virtual PushCommand Push(){return new PushCommand(repo);}
// Original:
public SelectResult select(SelectRequest request) {request = beforeClientExecution(request);return executeSelect(request);}

// Translation:
public virtual SelectResponse Select(SelectRequest request){var options = new InvokeOptions();options.RequestMarshaller = SelectRequestMarshaller.Instance;options.ResponseUnmarshaller = SelectResponseUnmarshaller.Instance;return Invoke<SelectResponse>(request, options);}
// Original:
public ByteArrayDataOutput(byte[] bytes) {reset(bytes);}

// Translation:
public ByteArrayDataOutput(byte[] bytes){Reset(bytes);}
// Original:
public boolean renameTo(String newName) {return directory.renameTo(newName);}

// Translation:
public bool RenameTo(string newName){return directory.RenameTo(newName);}
// Original:
public boolean canReuse(IndexInput docIn, FieldInfo fieldInfo) {return docIn == startDocIn &&indexHasOffsets == (fieldInfo.getIndexOptions().compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) &&indexHasPayloads == fieldInfo.hasPayloads();}

// Translation:
public bool CanReuse(IndexInput docIn, FieldInfo fieldInfo){return docIn == startDocIn &&indexHasOffsets == (fieldInfo.IndexOptions.CompareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) &&indexHasPayloads == fieldInfo.HasPayloads;}
// Original:
public boolean equals( Object o ) {return o instanceof DanishStemmer;}

// Translation:
public override bool Equals(object o){return o is DanishStemmer;}
// Original:
public BooleanQuery build(QueryNode queryNode) throws QueryNodeException {BooleanQueryNode booleanNode = (BooleanQueryNode) queryNode;BooleanQuery.Builder bQuery = new BooleanQuery.Builder();List<QueryNode> children = booleanNode.getChildren();if (children != null) {for (QueryNode child : children) {Object obj = child.getTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);if (obj != null) {Query query = (Query) obj;try {bQuery.add(query, getModifierValue(child));} catch (TooManyClauses ex) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, IndexSearcher.getMaxClauseCount(), queryNode.toQueryString(new EscapeQuerySyntaxImpl())), ex);}}}}return bQuery.build();}

// Translation:
public virtual Query Build(IQueryNode queryNode){BooleanQueryNode booleanNode = (BooleanQueryNode)queryNode;BooleanQuery bQuery = new BooleanQuery();IList<IQueryNode> children = booleanNode.GetChildren();if (children != null){foreach (IQueryNode child in children){object obj = child.GetTag(QueryTreeBuilder.QUERY_TREE_BUILDER_TAGID);if (obj != null){Query query = (Query)obj;try{bQuery.Add(query, GetModifierValue(child));}catch (BooleanQuery.TooManyClausesException ex){throw new QueryNodeException(new Message(QueryParserMessages.TOO_MANY_BOOLEAN_CLAUSES, BooleanQuery.MaxClauseCount, queryNode.ToQueryString(new EscapeQuerySyntax())), ex);}}}}return bQuery;}
// Original:
public String getName() {return name;}

// Translation:
public virtual string GetName(){return name;}
// Original:
public List<TerminalNode> getTokens(int ttype) {if ( children==null ) {return Collections.emptyList();}List<TerminalNode> tokens = null;for (ParseTree o : children) {if ( o instanceof TerminalNode ) {TerminalNode tnode = (TerminalNode)o;Token symbol = tnode.getSymbol();if ( symbol.getType()==ttype ) {if ( tokens==null ) {tokens = new ArrayList<TerminalNode>();}tokens.add(tnode);}}}if ( tokens==null ) {return Collections.emptyList();}return tokens;}

// Translation:
public virtual ITerminalNode[] GetTokens(int ttype)#endif{if (children == null){return Collections.EmptyList<ITerminalNode>();}List<ITerminalNode> tokens = null;foreach (IParseTree o in children){if (o is ITerminalNode){ITerminalNode tnode = (ITerminalNode)o;IToken symbol = tnode.Symbol;if (symbol.Type == ttype){if (tokens == null){tokens = new List<ITerminalNode>();}tokens.Add(tnode);}}}if (tokens == null){return Collections.EmptyList<ITerminalNode>();}#if (NET45PLUS && !DOTNETCORE)return tokens;#elsereturn tokens.ToArray();#endif}
// Original:
public UpdateApnsChannelResult updateApnsChannel(UpdateApnsChannelRequest request) {request = beforeClientExecution(request);return executeUpdateApnsChannel(request);}

// Translation:
public virtual UpdateApnsChannelResponse UpdateApnsChannel(UpdateApnsChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApnsChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApnsChannelResponseUnmarshaller.Instance;return Invoke<UpdateApnsChannelResponse>(request, options);}
// Original:
public String getInput() {return input;}

// Translation:
public virtual string getInput(){return input;}
// Original:
public int serialize( int offset, byte[] data, EscherSerializationListener listener ) {listener.beforeRecordSerialize(offset, getRecordId(), this);LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );LittleEndian.putInt( data, offset + 4, getRecordSize() - HEADER_SIZE );int pos = offset + HEADER_SIZE;System.arraycopy( field_1_UID, 0, data, pos, 16 );data[pos + 16] = field_2_marker;byte[] pd = getPicturedata();System.arraycopy( pd, 0, data, pos + 17, pd.length );listener.afterRecordSerialize(offset + getRecordSize(), getRecordId(), getRecordSize(), this);return HEADER_SIZE + 16 + 1 + pd.length;}

// Translation:
public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, RecordSize - HEADER_SIZE);int pos = offset + HEADER_SIZE;Array.Copy(field_1_UID, 0, data, pos, 16);data[pos + 16] = field_2_marker;Array.Copy(field_pictureData, 0, data, pos + 17, field_pictureData.Length);listener.AfterRecordSerialize(offset + RecordSize, RecordId, RecordSize, this);return HEADER_SIZE + 16 + 1 + field_pictureData.Length;}
// Original:
public DescribeFolderContentsResult describeFolderContents(DescribeFolderContentsRequest request) {request = beforeClientExecution(request);return executeDescribeFolderContents(request);}

// Translation:
public virtual DescribeFolderContentsResponse DescribeFolderContents(DescribeFolderContentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFolderContentsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFolderContentsResponseUnmarshaller.Instance;return Invoke<DescribeFolderContentsResponse>(request, options);}
// Original:
public CreateDBInstanceReadReplicaRequest(String dBInstanceIdentifier, String sourceDBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);setSourceDBInstanceIdentifier(sourceDBInstanceIdentifier);}

// Translation:
public CreateDBInstanceReadReplicaRequest(string dbInstanceIdentifier, string sourceDBInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;_sourceDBInstanceIdentifier = sourceDBInstanceIdentifier;}
// Original:
public DVRecord clone() {return copy();}

// Translation:
public override Object Clone(){return CloneViaReserialise();}
// Original:
public CreateDefaultSubnetResult createDefaultSubnet(CreateDefaultSubnetRequest request) {request = beforeClientExecution(request);return executeCreateDefaultSubnet(request);}

// Translation:
public virtual CreateDefaultSubnetResponse CreateDefaultSubnet(CreateDefaultSubnetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDefaultSubnetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDefaultSubnetResponseUnmarshaller.Instance;return Invoke<CreateDefaultSubnetResponse>(request, options);}
// Original:
public AbbreviatedObjectId getNewId() {return newId;}

// Translation:
public virtual AbbreviatedObjectId GetNewId(){return newId;}
// Original:
public final V setValue(V value) {V oldValue = this.value;this.value = value;return oldValue;}

// Translation:
public virtual V setValue(V value){V oldValue = this.value;this.value = value;return oldValue;}
// Original:
public int get(String name, int dflt) {int vals[] = (int[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, "" + dflt);if (sval.indexOf(":") < 0) {return Integer.parseInt(sval);}int k = sval.indexOf(":");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToIntArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}

// Translation:
public virtual string Get(string name, string dflt){string[] vals;object temp;if (valByRound.TryGetValue(name, out temp) && temp != null){vals = (string[])temp;return vals[roundNumber % vals.Length];}string sval;if (!props.TryGetValue(name, out sval)){sval = dflt;}if (sval == null){return null;}if (sval.IndexOf(':') < 0){return sval;}else if (sval.IndexOf(":\\", StringComparison.Ordinal) >= 0 || sval.IndexOf(":/", StringComparison.Ordinal) >= 0){return sval;}int k = sval.IndexOf(':');string colName = sval.Substring(0, k - 0);sval = sval.Substring(k + 1);colForValByRound[name] = colName;vals = PropToStringArray(sval);valByRound[name] = vals;return vals[roundNumber % vals.Length];}
// Original:
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("extBook=").append(_extBookIndex);buffer.append(" firstSheet=").append(_firstSheetIndex);buffer.append(" lastSheet=").append(_lastSheetIndex);return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("extBook=").Append(_extBookIndex);buffer.Append(" firstSheet=").Append(_firstSheetIndex);buffer.Append(" lastSheet=").Append(_lastSheetIndex);return buffer.ToString();}
// Original:
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeInt(field_1_reserved);out.writeShort(field_2_subex_len);}

// Translation:
public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteInt(field_1_reserved);out1.WriteShort(field_2_subex_len);}
// Original:
public final Buffer rewind() {position = 0;mark = UNSET_MARK;return this;}

// Translation:
public java.nio.Buffer rewind(){_position = 0;_mark = UNSET_MARK;return this;}
// Original:
public short getHideObj(){return field_1_hide_obj;}

// Translation:
public short GetHideObj(){return field_1_hide_obj;}
// Original:
public PrintGridlinesRecord(RecordInputStream in) {field_1_print_gridlines = in.readShort();}

// Translation:
public PrintGridlinesRecord(RecordInputStream in1){field_1_print_gridlines = in1.ReadShort();}
// Original:
public CreateEventTrackerResult createEventTracker(CreateEventTrackerRequest request) {request = beforeClientExecution(request);return executeCreateEventTracker(request);}

// Translation:
public virtual CreateEventTrackerResponse CreateEventTracker(CreateEventTrackerRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateEventTrackerRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateEventTrackerResponseUnmarshaller.Instance;return Invoke<CreateEventTrackerResponse>(request, options);}
// Original:
public boolean hasNext() {return index < to;}

// Translation:
public virtual bool hasNext(){return index < to;}
// Original:
public void removeExFormatRecord(ExtendedFormatRecord rec) {records.remove(rec); numxfs--;}

// Translation:
public void RemoveExFormatRecord(ExtendedFormatRecord rec){records.Remove(rec); numxfs--;}