yijunyu/c-to-rust huggingface dataset:
// Original:
public DBSecurityGroup createDBSecurityGroup(CreateDBSecurityGroupRequest request) {request = beforeClientExecution(request);return executeCreateDBSecurityGroup(request);}

// Translation:
public virtual CreateDBSecurityGroupResponse CreateDBSecurityGroup(CreateDBSecurityGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBSecurityGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBSecurityGroupResponseUnmarshaller.Instance;return Invoke<CreateDBSecurityGroupResponse>(request, options);}
// Original:
public boolean equals(Object obj) {if (this == obj) {return true;}if (obj == null) {return false;}if (getClass() != obj.getClass()) {return false;}ExpressionValueSource other = (ExpressionValueSource) obj;if (expression == null) {if (other.expression != null) {return false;}} else if (!expression.sourceText.equals(other.expression.sourceText)) {return false;}if (needsScores != other.needsScores) {return false;}if (!Arrays.equals(variables, other.variables)) {return false;}return true;}

// Translation:
public override bool Equals(object obj){if (this == obj){return true;}if (obj == null){return false;}if (GetType() != obj.GetType()){return false;}ExpressionValueSource other = (ExpressionValueSource)obj;if (expression == null){if (other.expression != null){return false;}}else{if (!expression.Equals(other.expression)){return false;}}if (needsScores != other.needsScores){return false;}if (!Arrays.Equals(variables, other.variables)){return false;}return true;}
// Original:
public static String getPreferredEncoding() {return ISO_8859_1.name();}

// Translation:
public static String GetPreferredEncoding(){return ISO_8859_1.WebName;}
// Original:
public synchronized IndexSearcher getIndexSearcher() {if (indexReader != null) {indexReader.incRef();}return indexSearcher;}

// Translation:
public virtual IndexSearcher GetIndexSearcher(){lock (this){if (indexReader != null){indexReader.IncRef();}return indexSearcher;}}
// Original:
public boolean equals( Object o ) {return o instanceof German2Stemmer;}

// Translation:
public override bool Equals(object o){return o is German2Stemmer;}
// Original:
public FacetLabel(final String... components) {this.components = components;length = components.length;checkComponents();}

// Translation:
public FacetLabel(params string[] components){this.Components = components;Length = components.Length;CheckComponents();}
// Original:
public void visitContainedRecords(RecordVisitor rv) {if (_recs.isEmpty()) {return;}rv.visitRecord(_begin);for (int i = 0; i < _recs.size(); i++) {RecordBase rb = _recs.get(i);if (rb instanceof RecordAggregate) {((RecordAggregate) rb).visitContainedRecords(rv);} else {rv.visitRecord((org.apache.poi.hssf.record.Record) rb);}}rv.visitRecord(_end);}

// Translation:
public override void VisitContainedRecords(RecordVisitor rv){if (_recs.Count == 0){return;}rv.VisitRecord(_begin);for (int i = 0; i < _recs.Count; i++){RecordBase rb = _recs[i];if (rb is RecordAggregate){((RecordAggregate)rb).VisitContainedRecords(rv);}else{rv.VisitRecord((Record)rb);}}rv.VisitRecord(_end);}
// Original:
public void setDirCache(DirCache dc) {this.dircache = dc;implicitDirCache = false;}

// Translation:
public virtual void SetDirCache(DirCache dc){this.dircache = dc;}
// Original:
public long seek(BytesRef target) {long lo = 0;          long hi = fieldIndex.numIndexTerms - 1;while (hi >= lo) {long mid = (lo + hi) >>> 1;final long offset = fieldIndex.termOffsets.get(mid);final int length = (int) (fieldIndex.termOffsets.get(1+mid) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);int delta = target.compareTo(term);if (delta < 0) {hi = mid - 1;} else if (delta > 0) {lo = mid + 1;} else {assert mid >= 0;ord = mid*indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(mid);}}if (hi < 0) {assert hi == -1;hi = 0;}final long offset = fieldIndex.termOffsets.get(hi);final int length = (int) (fieldIndex.termOffsets.get(1+hi) - offset);termBytesReader.fillSlice(term, fieldIndex.termBytesStart + offset, length);ord = hi*indexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.get(hi);}

// Translation:
public override long Seek(BytesRef target){int lo = 0;          int hi = fieldIndex.numIndexTerms - 1;Debug.Assert(outerInstance.totalIndexInterval > 0, "totalIndexInterval=" + outerInstance.totalIndexInterval);while (hi >= lo){int mid = (int)(((uint)(lo + hi)) >> 1);long offset2 = fieldIndex.termOffsets.Get(mid);int length2 = (int)(fieldIndex.termOffsets.Get(1 + mid) - offset2);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset2, length2);int delta = outerInstance.termComp.Compare(target, term);if (delta < 0){hi = mid - 1;}else if (delta > 0){lo = mid + 1;}else{Debug.Assert(mid >= 0);ord = mid * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(mid);}}if (hi < 0){Debug.Assert(hi == -1);hi = 0;}long offset = fieldIndex.termOffsets.Get(hi);int length = (int)(fieldIndex.termOffsets.Get(1 + hi) - offset);outerInstance.termBytesReader.FillSlice(term, fieldIndex.termBytesStart + offset, length);ord = hi * outerInstance.totalIndexInterval;return fieldIndex.termsStart + fieldIndex.termsDictOffsets.Get(hi);}
// Original:
public void write(byte[] b, int offset, int len) {int i=0;while(true) {int nWritableChars = Math.min(len - i, _ulrOutput.getAvailableSpace() / 1);for ( ; nWritableChars > 0; nWritableChars--) {_ulrOutput.writeByte(b[offset + i++]);}if (i >= len) {break;}writeContinue();}}

// Translation:
public void Write(byte[] b, int offset, int len){int i = 0;while (true){int nWritableChars = Math.Min(len - i, _ulrOutput.AvailableSpace / 1);for (; nWritableChars > 0; nWritableChars--){_ulrOutput.WriteByte(b[offset + i++]);}if (i >= len){break;}WriteContinue();}}
// Original:
public FormatFlagsConversionMismatchException(String f, char c) {if (f == null) {throw new NullPointerException();}this.f = f;this.c = c;}

// Translation:
public FormatFlagsConversionMismatchException(string f, char c){if (f == null){throw new System.ArgumentNullException();}this.f = f;this.c = c;}
// Original:
public List<Head> getNextHeads(char c) {return FileNameMatcher.EMPTY_HEAD_LIST;}

// Translation:
public IList<Head> GetNextHeads(char c){return FileNameMatcher.EMPTY_HEAD_LIST;}
// Original:
public void addQueryBuilder(String nodeName, QueryBuilder builder) {queryFactory.addBuilder(nodeName, builder);}

// Translation:
public virtual void AddQueryBuilder(string nodeName, IQueryBuilder builder){m_queryFactory.AddBuilder(nodeName, builder);}
// Original:
public int defineDecisionState(DecisionState s) {decisionToState.add(s);s.decision = decisionToState.size()-1;return s.decision;}

// Translation:
public virtual int DefineDecisionState(DecisionState s){decisionToState.Add(s);s.decision = decisionToState.Count - 1;decisionToDFA = Arrays.CopyOf(decisionToDFA, decisionToState.Count);decisionToDFA[decisionToDFA.Length - 1] = new DFA(s, s.decision);return s.decision;}
// Original:
public void afterRefresh(boolean didRefresh) {refreshDone();}

// Translation:
public virtual void AfterRefresh(bool didRefresh){outerInstance.RefreshDone();}
// Original:
public static final int prevLF(byte[] b, int ptr, char chrA) {if (ptr == b.length)--ptr;while (ptr >= 0) {final byte c = b[ptr--];if (c == chrA || c == '\n')return ptr;}return ptr;}

// Translation:
public static int PrevLF(byte[] b, int ptr, char chrA){if (ptr == b.Length){--ptr;}while (ptr >= 0){byte c = b[ptr--];if (c == chrA || c == '\n'){return ptr;}}return ptr;}
// Original:
public ConsumeContentSourceTask(PerfRunData runData) {super(runData);source = runData.getContentSource();}

// Translation:
public ConsumeContentSourceTask(PerfRunData runData): base(runData){source = runData.ContentSource;}
// Original:
public DescribeInstanceTypeOfferingsResult describeInstanceTypeOfferings(DescribeInstanceTypeOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeInstanceTypeOfferings(request);}

// Translation:
public virtual DescribeInstanceTypeOfferingsResponse DescribeInstanceTypeOfferings(DescribeInstanceTypeOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInstanceTypeOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInstanceTypeOfferingsResponseUnmarshaller.Instance;return Invoke<DescribeInstanceTypeOfferingsResponse>(request, options);}
// Original:
public void clearDrawingGroups() {drawingGroups.clear();}

// Translation:
public void ClearDrawingGroups(){drawingGroups.Clear();}
// Original:
public String formatDate(PersonIdent ident) {switch (format) {case RAW:int offset = ident.getTimeZoneOffset();String sign = offset < 0 ? "-" : "+"; int offset2;if (offset < 0)offset2 = -offset;elseoffset2 = offset;int hours = offset2 / 60;int minutes = offset2 % 60;return String.format("%d %s%02d%02d", ident.getWhen().getTime() / 1000, sign, hours, minutes);case RELATIVE:return RelativeDateFormatter.format(ident.getWhen());case LOCALELOCAL:case LOCAL:dateTimeInstance.setTimeZone(SystemReader.getInstance().getTimeZone());return dateTimeInstance.format(ident.getWhen());case LOCALE:TimeZone tz = ident.getTimeZone();if (tz == null)tz = SystemReader.getInstance().getTimeZone();dateTimeInstance.setTimeZone(tz);dateTimeInstance2.setTimeZone(tz);return dateTimeInstance.format(ident.getWhen()) + " " + dateTimeInstance2.format(ident.getWhen());default:tz = ident.getTimeZone();if (tz == null)tz = SystemReader.getInstance().getTimeZone();dateTimeInstance.setTimeZone(ident.getTimeZone());return dateTimeInstance.format(ident.getWhen());}}

// Translation:
public virtual string FormatDate(PersonIdent ident){TimeZoneInfo tz;switch (format){case GitDateFormatter.Format.RAW:{int offset = ident.GetTimeZoneOffset();string sign = offset < 0 ? "-" : "+";int offset2;if (offset < 0){offset2 = -offset;}else{offset2 = offset;}int hours = offset2 / 60;int minutes = offset2 % 60;return string.Format("%d %s%02d%02d", ident.GetWhen().GetTime() / 1000, sign, hours, minutes);}case GitDateFormatter.Format.RELATIVE:{return RelativeDateFormatter.Format(ident.GetWhen());}case GitDateFormatter.Format.LOCALELOCAL:case GitDateFormatter.Format.LOCAL:{dateTimeInstance.SetTimeZone(SystemReader.GetInstance().GetTimeZone());return dateTimeInstance.Format(ident.GetWhen());}case GitDateFormatter.Format.LOCALE:{tz = ident.GetTimeZone();if (tz == null){tz = SystemReader.GetInstance().GetTimeZone();}dateTimeInstance.SetTimeZone(tz);dateTimeInstance2.SetTimeZone(tz);return dateTimeInstance.Format(ident.GetWhen()) + " " + dateTimeInstance2.Format(ident.GetWhen());}default:{tz = ident.GetTimeZone();if (tz == null){tz = SystemReader.GetInstance().GetTimeZone();}dateTimeInstance.SetTimeZone(ident.GetTimeZone());return dateTimeInstance.Format(ident.GetWhen());break;}}}
// Original:
public DeregisterStreamConsumerResult deregisterStreamConsumer(DeregisterStreamConsumerRequest request) {request = beforeClientExecution(request);return executeDeregisterStreamConsumer(request);}

// Translation:
public virtual DeregisterStreamConsumerResponse DeregisterStreamConsumer(DeregisterStreamConsumerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterStreamConsumerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterStreamConsumerResponseUnmarshaller.Instance;return Invoke<DeregisterStreamConsumerResponse>(request, options);}
// Original:
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;return true;}

// Translation:
public override bool Equals(object obj){if (object.ReferenceEquals(obj, this)){return true;}if (object.ReferenceEquals(null, obj)){return object.ReferenceEquals(null, this);}if (this.GetType() != obj.GetType()){return false;}return true;}
// Original:
public ByteBuffer asReadOnlyBuffer() {return ReadOnlyHeapByteBuffer.copy(this, mark);}

// Translation:
public override java.nio.ByteBuffer asReadOnlyBuffer(){return java.nio.ReadOnlyHeapByteBuffer.copy(this, _mark);}
// Original:
public long ramBytesUsed() {long sizeInBytes = 0;for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;}

// Translation:
public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;}
// Original:
public CreateTransitGatewayRouteTableResult createTransitGatewayRouteTable(CreateTransitGatewayRouteTableRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayRouteTable(request);}

// Translation:
public virtual CreateTransitGatewayRouteTableResponse CreateTransitGatewayRouteTable(CreateTransitGatewayRouteTableRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRouteTableRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayRouteTableResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayRouteTableResponse>(request, options);}
// Original:
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int pos            = offset + 8;int size           = 0;field_1_color1 =  LittleEndian.getInt( data, pos + size );size+=4;field_2_color2 =  LittleEndian.getInt( data, pos + size );size+=4;field_3_color3 =  LittleEndian.getInt( data, pos + size );size+=4;field_4_color4 =  LittleEndian.getInt( data, pos + size );size+=4;bytesRemaining -= size;if (bytesRemaining != 0) {throw new RecordFormatException("Expecting no remaining data but got " + bytesRemaining + " byte(s).");}return 8 + size + bytesRemaining;}

// Translation:
public override int FillFields(byte[] data, int offset, IEscherRecordFactory recordFactory){int bytesRemaining = ReadHeader(data, offset);int pos = offset + 8;int size = 0;field_1_color1 = LittleEndian.GetInt(data, pos + size); size += 4;field_2_color2 = LittleEndian.GetInt(data, pos + size); size += 4;field_3_color3 = LittleEndian.GetInt(data, pos + size); size += 4;field_4_color4 = LittleEndian.GetInt(data, pos + size); size += 4;bytesRemaining -= size;if (bytesRemaining != 0)throw new RecordFormatException("Expecting no remaining data but got " + bytesRemaining + " byte(s).");return 8 + size + bytesRemaining;}
// Original:
public CharSequence[] getMultiFields() {return getQueryConfigHandler().get(ConfigurationKeys.MULTI_FIELDS);}

// Translation:
public virtual string[] GetMultiFields(){return QueryConfigHandler.Get(ConfigurationKeys.MULTI_FIELDS);}
// Original:
public boolean hasNext() {return returnedNumber < getObjectCount();}

// Translation:
public override bool HasNext(){return this.returnedNumber < this._enclosing.GetObjectCount();}
// Original:
public String toString() {return SpatialArgsParser.writeSpatialArgs(this);}

// Translation:
public override string ToString(){return SpatialArgsParser.WriteSpatialArgs(this);}
// Original:
public static RowRecord createRow(int rowNumber) {return new RowRecord(rowNumber);}

// Translation:
public static RowRecord CreateRow(int rowNumber){return new RowRecord(rowNumber);}
// Original:
public void serialize(LittleEndianOutput out) {out.writeByte(field_1_last_column_index);out.writeByte(field_2_first_column_index);out.writeShort(field_3_row_index);ConstantValueParser.encode(out, field_4_constant_values);}

// Translation:
public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_last_column_index);out1.WriteByte(field_2_first_column_index);out1.WriteShort(field_3_row_index);ConstantValueParser.Encode(out1, field_4_constant_values);}
// Original:
public DescribeHostReservationOfferingsResult describeHostReservationOfferings(DescribeHostReservationOfferingsRequest request) {request = beforeClientExecution(request);return executeDescribeHostReservationOfferings(request);}

// Translation:
public virtual DescribeHostReservationOfferingsResponse DescribeHostReservationOfferings(DescribeHostReservationOfferingsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeHostReservationOfferingsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeHostReservationOfferingsResponseUnmarshaller.Instance;return Invoke<DescribeHostReservationOfferingsResponse>(request, options);}
// Original:
public void setEmpty() {field_2_first_col = 0;field_3_last_col = 0;}

// Translation:
public void SetEmpty(){field_2_first_col = 0;field_3_last_col = 0;}
// Original:
public CancelBundleTaskResult cancelBundleTask(CancelBundleTaskRequest request) {request = beforeClientExecution(request);return executeCancelBundleTask(request);}

// Translation:
public virtual CancelBundleTaskResponse CancelBundleTask(CancelBundleTaskRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelBundleTaskRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelBundleTaskResponseUnmarshaller.Instance;return Invoke<CancelBundleTaskResponse>(request, options);}
// Original:
public ShingleFilter(TokenStream input, String tokenType) {this(input, DEFAULT_MIN_SHINGLE_SIZE, DEFAULT_MAX_SHINGLE_SIZE);setTokenType(tokenType);}

// Translation:
public ShingleFilter(TokenStream input, string tokenType): this(input, DEFAULT_MIN_SHINGLE_SIZE, DEFAULT_MAX_SHINGLE_SIZE){SetTokenType(tokenType);}
// Original:
public MergeException(String message, Directory dir) {super(message);this.dir = dir;}

// Translation:
public MergeException(string message, Directory dir): base(message){this.dir = dir;}
// Original:
public TestDNSAnswerResult testDNSAnswer(TestDNSAnswerRequest request) {request = beforeClientExecution(request);return executeTestDNSAnswer(request);}

// Translation:
public virtual TestDNSAnswerResponse TestDNSAnswer(TestDNSAnswerRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestDNSAnswerRequestMarshaller.Instance;options.ResponseUnmarshaller = TestDNSAnswerResponseUnmarshaller.Instance;return Invoke<TestDNSAnswerResponse>(request, options);}
// Original:
public String getFieldAsString() {return field.toString();}

// Translation:
public virtual string GetFieldAsString(){return field.ToString();}
// Original:
public GetMasterAccountResult getMasterAccount(GetMasterAccountRequest request) {request = beforeClientExecution(request);return executeGetMasterAccount(request);}

// Translation:
public virtual GetMasterAccountResponse GetMasterAccount(GetMasterAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMasterAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMasterAccountResponseUnmarshaller.Instance;return Invoke<GetMasterAccountResponse>(request, options);}
// Original:
public int getIndexVersion() {return indexVersion;}

// Translation:
public virtual int GetIndexVersion(){return indexVersion;}
// Original:
public GetAdmChannelResult getAdmChannel(GetAdmChannelRequest request) {request = beforeClientExecution(request);return executeGetAdmChannel(request);}

// Translation:
public virtual GetAdmChannelResponse GetAdmChannel(GetAdmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAdmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAdmChannelResponseUnmarshaller.Instance;return Invoke<GetAdmChannelResponse>(request, options);}
// Original:
public boolean equals(Object obj) {if (! (obj instanceof BasicQueryFactory))return false;BasicQueryFactory other = (BasicQueryFactory) obj;return atMax() == other.atMax();}

// Translation:
public override bool Equals(object obj){if (!(obj is BasicQueryFactory))return false;BasicQueryFactory other = (BasicQueryFactory)obj;return AtMax == other.AtMax;}
// Original:
public byte readByte() {return (byte)readUByte();}

// Translation:
public int ReadByte(){return (byte)ReadUByte();}
// Original:
public DeletePolicyResult deletePolicy(DeletePolicyRequest request) {request = beforeClientExecution(request);return executeDeletePolicy(request);}

// Translation:
public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance;return Invoke<DeletePolicyResponse>(request, options);}
// Original:
public String get(Object key) {return idMap.get(key);}

// Translation:
public Object Get(long id){return this[id];}
// Original:
public void setNonLocalizedMessage(Message message) {this.message = message;}

// Translation:
public virtual void SetNonLocalizedMessage(IMessage message){this.m_message = message;}
// Original:
public DescribeClusterVersionsResult describeClusterVersions() {return describeClusterVersions(new DescribeClusterVersionsRequest());}

// Translation:
public virtual DescribeClusterVersionsResponse DescribeClusterVersions(){return DescribeClusterVersions(new DescribeClusterVersionsRequest());}
// Original:
public void onPostReceive(ReceivePack rp,Collection<ReceiveCommand> commands) {for (int i = 0; i < count; i++)hooks[i].onPostReceive(rp, commands);}

// Translation:
public override void OnPostReceive(ReceivePack rp, ICollection<ReceiveCommand> commands){for (int i = 0; i < count; i++){hooks[i].OnPostReceive(rp, commands);}}
// Original:
public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append("^");buffer.append(operands[ 1 ]);return buffer.toString();}

// Translation:
public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append("^");buffer.Append(operands[1]);return buffer.ToString();}
// Original:
public int stem(char s[], int len) {if (len < 6)return len;if (s[len-1] == 'x') {if (s[len-3] == 'a' && s[len-2] == 'u')s[len-2] = 'l';return len - 1;}if (s[len-1] == 's') len--;if (s[len-1] == 'r') len--;if (s[len-1] == 'e') len--;if (s[len-1] == 'é') len--;if (s[len-1] == s[len-2] && Character.isLetter(s[len-1])) len--;return len;}

// Translation:
public virtual int Stem(char[] s, int len){if (len < 6){return len;}if (s[len - 1] == 'x'){if (s[len - 3] == 'a' && s[len - 2] == 'u'){s[len - 2] = 'l';}return len - 1;}if (s[len - 1] == 's'){len--;}if (s[len - 1] == 'r'){len--;}if (s[len - 1] == 'e'){len--;}if (s[len - 1] == 'é'){len--;}if (s[len - 1] == s[len - 2]){len--;}return len;}
// Original:
public static RkRec[] parseRKs(RecordInputStream in) {int nItems = (in.remaining()-2) / ENCODED_SIZE;RkRec[] retval = new RkRec[nItems];for (int i=0; i<nItems; i++) {retval[i] = new RkRec(in);}return retval;}

// Translation:
public static RkRec[] ParseRKs(RecordInputStream in1){int nItems = (in1.Remaining - 2) / ENCODED_SIZE;RkRec[] retval = new RkRec[nItems];for (int i = 0; i < nItems; i++){retval[i] = new RkRec(in1);}return retval;}
// Original:
public boolean deliverSelfNotifications() {return true;}

// Translation:
public override bool deliverSelfNotifications(){return true;}
// Original:
public CreateWorkteamResult createWorkteam(CreateWorkteamRequest request) {request = beforeClientExecution(request);return executeCreateWorkteam(request);}

// Translation:
public virtual CreateWorkteamResponse CreateWorkteam(CreateWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateWorkteamResponseUnmarshaller.Instance;return Invoke<CreateWorkteamResponse>(request, options);}
// Original:
public ProfilingATNSimulator(Parser parser) {super(parser,parser.getInterpreter().atn,parser.getInterpreter().decisionToDFA,parser.getInterpreter().sharedContextCache);numDecisions = atn.decisionToState.size();decisions = new DecisionInfo[numDecisions];for (int i=0; i<numDecisions; i++) {decisions[i] = new DecisionInfo(i);}}

// Translation:
public ProfilingATNSimulator(Parser parser): base(parser,parser.Interpreter.atn,parser.Interpreter.decisionToDFA,parser.Interpreter.getSharedContextCache()){numDecisions = atn.decisionToState.Count;decisions = new DecisionInfo[numDecisions];for (int i = 0; i < numDecisions; i++){decisions[i] = new DecisionInfo(i);}}