yijunyu/c-to-rust huggingface dataset:
// Original:
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = " ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn "( " + sb.toString() + " )";}

// Translation:
public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return "";StringBuilder sb = new StringBuilder();string filler = "";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = " ";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn "( " + sb.ToString() + " )";}
// Original:
public ByteBuffer putDouble(int index, double value) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.ByteBuffer putDouble(int index, double value){throw new java.nio.ReadOnlyBufferException();}
// Original:
public GetVoiceConnectorGroupResult getVoiceConnectorGroup(GetVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorGroup(request);}

// Translation:
public virtual GetVoiceConnectorGroupResponse GetVoiceConnectorGroup(GetVoiceConnectorGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetVoiceConnectorGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = GetVoiceConnectorGroupResponseUnmarshaller.Instance;return Invoke<GetVoiceConnectorGroupResponse>(request, options);}
// Original:
public BatchUpdateUserResult batchUpdateUser(BatchUpdateUserRequest request) {request = beforeClientExecution(request);return executeBatchUpdateUser(request);}

// Translation:
public virtual BatchUpdateUserResponse BatchUpdateUser(BatchUpdateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchUpdateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchUpdateUserResponseUnmarshaller.Instance;return Invoke<BatchUpdateUserResponse>(request, options);}
// Original:
public String toString() {return new String(chars, offset, length);}

// Translation:
public override string ToString(){return new string(chars, Offset, Length);}
// Original:
public DescribeStorageResult describeStorage(DescribeStorageRequest request) {request = beforeClientExecution(request);return executeDescribeStorage(request);}

// Translation:
public virtual DescribeStorageResponse DescribeStorage(DescribeStorageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStorageRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStorageResponseUnmarshaller.Instance;return Invoke<DescribeStorageResponse>(request, options);}
// Original:
public void close() {flush();}

// Translation:
public override void close(){flush();}
// Original:
public void close() throws IOException {super.close();}

// Translation:
public override void close(){throw new System.NotImplementedException();}
// Original:
public final void backup(int amount) {bufferPosition -= amount;}

// Translation:
public void BackUp(int amount){bufferPosition -= amount;}
// Original:
public UpdateDashboardPublishedVersionResult updateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDashboardPublishedVersion(request);}

// Translation:
public virtual UpdateDashboardPublishedVersionResponse UpdateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDashboardPublishedVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDashboardPublishedVersionResponseUnmarshaller.Instance;return Invoke<UpdateDashboardPublishedVersionResponse>(request, options);}
// Original:
public DocumentStoredFieldVisitor(String... fields) {fieldsToAdd = new HashSet<>(fields.length);for(String field : fields) {fieldsToAdd.add(field);}}

// Translation:
public DocumentStoredFieldVisitor(params string[] fields){fieldsToAdd = new JCG.HashSet<string>();foreach (string field in fields){fieldsToAdd.Add(field);}}
// Original:
public ResumeGameServerGroupResult resumeGameServerGroup(ResumeGameServerGroupRequest request) {request = beforeClientExecution(request);return executeResumeGameServerGroup(request);}

// Translation:
public virtual ResumeGameServerGroupResponse ResumeGameServerGroup(ResumeGameServerGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResumeGameServerGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResumeGameServerGroupResponseUnmarshaller.Instance;return Invoke<ResumeGameServerGroupResponse>(request, options);}
// Original:
public PushCommand setPushAll() {refSpecs.add(Transport.REFSPEC_PUSH_ALL);return this;}

// Translation:
public virtual NGit.Api.PushCommand SetPushAll(){refSpecs.AddItem(NGit.Transport.Transport.REFSPEC_PUSH_ALL);return this;}
// Original:
public DBSnapshot createDBSnapshot(CreateDBSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDBSnapshot(request);}

// Translation:
public virtual CreateDBSnapshotResponse CreateDBSnapshot(CreateDBSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBSnapshotResponseUnmarshaller.Instance;return Invoke<CreateDBSnapshotResponse>(request, options);}
// Original:
public boolean willSoonExpire() {if (roleSessionDurationSeconds == 0) {return false;}long now = System.currentTimeMillis();double expireFact = 0.95;return roleSessionDurationSeconds * expireFact < (now - sessionStartedTimeInMilliSeconds) / 1000.0;}

// Translation:
public virtual bool WillSoonExpire(){if (roleSessionDurationSeconds == 0){return false;}var now = DateTime.UtcNow.currentTimeMillis();return roleSessionDurationSeconds * expireFact <(now - sessionStartedTimeInMilliSeconds) / 1000.0;}
// Original:
public List<Interval> getIntervals() {return intervals;}

// Translation:
public virtual IList<Interval> GetIntervals(){return intervals;}
// Original:
public GetNamespaceRequest() {super("cr", "2016-06-07", "GetNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.GET);}

// Translation:
public GetNamespaceRequest(): base("cr", "2016-06-07", "GetNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.GET;}
// Original:
public DeleteVpcRequest(String vpcId) {setVpcId(vpcId);}

// Translation:
public DeleteVpcRequest(string vpcId){_vpcId = vpcId;}
// Original:
public long ramBytesUsed() {long bytesUsed = BASE_RAM_BYTES_USED;if (dict != null) {bytesUsed += dict.ramBytesUsed();}return bytesUsed;}

// Translation:
public long RamBytesUsed(){return ((fst != null) ? fst.GetSizeInBytes() : 0);}
// Original:
public final ValueEval evaluate(ValueEval[] args, int srcRow, int srcCol) {if (args.length < 1) {return ErrorEval.VALUE_INVALID;}boolean boolResult;try {boolResult = calculate(args);} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(boolResult);}

// Translation:
public ValueEval Evaluate(ValueEval[] args, int srcRow, int srcCol){if (args.Length < 1){return ErrorEval.VALUE_INVALID;}bool boolResult;try{boolResult = Calculate(args);}catch (EvaluationException e){return e.GetErrorEval();}return BoolEval.ValueOf(boolResult);}
// Original:
public void println(String str) {synchronized (lock) {print(str);println();}}

// Translation:
public virtual void println(string str){lock (@lock){print(str);println();}}
// Original:
public TypedPropertyValue( int type, Object value ) {_type = type;_value = value;}

// Translation:
public TypedPropertyValue(int type, Object value){_type = type;_value = value;}
// Original:
public FloatBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}

// Translation:
public override java.nio.FloatBuffer duplicate(){java.nio.ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());java.nio.FloatToByteBufferAdapter buf = new java.nio.FloatToByteBufferAdapter(bb);buf._limit = _limit;buf._position = _position;buf._mark = _mark;return buf;}
// Original:
public MigrateWorkspaceResult migrateWorkspace(MigrateWorkspaceRequest request) {request = beforeClientExecution(request);return executeMigrateWorkspace(request);}

// Translation:
public virtual MigrateWorkspaceResponse MigrateWorkspace(MigrateWorkspaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = MigrateWorkspaceRequestMarshaller.Instance;options.ResponseUnmarshaller = MigrateWorkspaceResponseUnmarshaller.Instance;return Invoke<MigrateWorkspaceResponse>(request, options);}
// Original:
public GetRequestValidatorResult getRequestValidator(GetRequestValidatorRequest request) {request = beforeClientExecution(request);return executeGetRequestValidator(request);}

// Translation:
public virtual GetRequestValidatorResponse GetRequestValidator(GetRequestValidatorRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRequestValidatorRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRequestValidatorResponseUnmarshaller.Instance;return Invoke<GetRequestValidatorResponse>(request, options);}
// Original:
public String toString() { return toString(false); }

// Translation:
public override string ToString(){return ToString(false);}
// Original:
public ForgetSmartHomeAppliancesResult forgetSmartHomeAppliances(ForgetSmartHomeAppliancesRequest request) {request = beforeClientExecution(request);return executeForgetSmartHomeAppliances(request);}

// Translation:
public virtual ForgetSmartHomeAppliancesResponse ForgetSmartHomeAppliances(ForgetSmartHomeAppliancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ForgetSmartHomeAppliancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ForgetSmartHomeAppliancesResponseUnmarshaller.Instance;return Invoke<ForgetSmartHomeAppliancesResponse>(request, options);}
// Original:
public DeleteApiResult deleteApi(DeleteApiRequest request) {request = beforeClientExecution(request);return executeDeleteApi(request);}

// Translation:
public virtual DeleteApiResponse DeleteApi(DeleteApiRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApiRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApiResponseUnmarshaller.Instance;return Invoke<DeleteApiResponse>(request, options);}
// Original:
public void setKeyProgressIncrement(int increment) {mKeyProgressIncrement = increment < 0 ? -increment : increment;}

// Translation:
public virtual void setKeyProgressIncrement(int increment){mKeyProgressIncrement = increment < 0 ? -increment : increment;}
// Original:
public boolean addAll(final IntList c){if (c._limit != 0){if ((_limit + c._limit) > _array.length){growArray(_limit + c._limit);}System.arraycopy(c._array, 0, _array, _limit, c._limit);_limit += c._limit;}return true;}

// Translation:
public bool AddAll(IntList c){if (c._limit != 0){if ((_limit + c._limit) > _array.Length){growArray(_limit + c._limit);}Array.Copy(c._array, 0, _array, _limit, c._limit);_limit += c._limit;}return true;}
// Original:
public DVRecord createDVRecord(HSSFSheet sheet) {FormulaPair fp = _constraint.createFormulas(sheet);return new DVRecord(_constraint.getValidationType(),_constraint.getOperator(),_errorStyle, _emptyCellAllowed, getSuppressDropDownArrow(),_constraint.getValidationType()==ValidationType.LIST && _constraint.getExplicitListValues()!=null,_showPromptBox, _prompt_title, _prompt_text,_showErrorBox, _error_title, _error_text,fp.getFormula1(), fp.getFormula2(),_regions);}

// Translation:
public DVRecord CreateDVRecord(HSSFSheet sheet){NPOI.HSSF.UserModel.DVConstraint.FormulaPair fp = _constraint.CreateFormulas(sheet);return new DVRecord(_constraint.GetValidationType(),_constraint.Operator,_errorStyle, _emptyCellAllowed, SuppressDropDownArrow,_constraint.GetValidationType() == ValidationType.LIST && _constraint.ExplicitListValues != null,_ShowPromptBox, _prompt_title, _prompt_text,_ShowErrorBox, _error_title, _error_text,fp.Formula1, fp.Formula2,_regions);}
// Original:
public boolean evaluate(int cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult <  0;case LE: return cmpResult <= 0;case GT: return cmpResult >  0;case GE: return cmpResult >= 0;}throw new RuntimeException("Cannot call boolean evaluate on non-equality operator '"+ _representation + "'");}

// Translation:
public bool Evaluate(bool cmpResult){switch (_code){case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new Exception("Cannot call bool Evaluate on non-equality operator '"+ _representation + "'");}
// Original:
public boolean isCancelled() {return false;}

// Translation:
public override bool IsCancelled(){return false;}
// Original:
public ListHoursOfOperationsResult listHoursOfOperations(ListHoursOfOperationsRequest request) {request = beforeClientExecution(request);return executeListHoursOfOperations(request);}

// Translation:
public virtual ListHoursOfOperationsResponse ListHoursOfOperations(ListHoursOfOperationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListHoursOfOperationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListHoursOfOperationsResponseUnmarshaller.Instance;return Invoke<ListHoursOfOperationsResponse>(request, options);}
// Original:
public int serialize(int offset, byte [] data) {throw new RecordFormatException("Label Records are supported READ ONLY...convert to LabelSST");}

// Translation:
public override int Serialize(int offset, byte [] data){throw new RecordFormatException("Label Records are supported Read ONLY...Convert to LabelSST");}
// Original:
public URI normalize() {if (opaque) {return this;}String normalizedPath = normalize(path, false);if (path.equals(normalizedPath)) {return this;}URI result = duplicate();result.path = normalizedPath;result.setSchemeSpecificPart();return result;}

// Translation:
public java.net.URI normalize(){if (opaque){return this;}string normalizedPath = normalize(path, false);if (path.Equals(normalizedPath)){return this;}java.net.URI result = duplicate();result.path = normalizedPath;result.setSchemeSpecificPart();return result;}
// Original:
public FreeRefFunction findUserDefinedFunction(String functionName) {return _udfFinder.findFunction(functionName);}

// Translation:
public FreeRefFunction FindUserDefinedFunction(String functionName){return _udfFinder.FindFunction(functionName);}
// Original:
public UpdateGatewayResponseResult updateGatewayResponse(UpdateGatewayResponseRequest request) {request = beforeClientExecution(request);return executeUpdateGatewayResponse(request);}

// Translation:
public virtual UpdateGatewayResponseResponse UpdateGatewayResponse(UpdateGatewayResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGatewayResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGatewayResponseResponseUnmarshaller.Instance;return Invoke<UpdateGatewayResponseResponse>(request, options);}
// Original:
public GetOperationDetailResult getOperationDetail(GetOperationDetailRequest request) {request = beforeClientExecution(request);return executeGetOperationDetail(request);}

// Translation:
public virtual GetOperationDetailResponse GetOperationDetail(GetOperationDetailRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOperationDetailRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOperationDetailResponseUnmarshaller.Instance;return Invoke<GetOperationDetailResponse>(request, options);}
// Original:
public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(":");}buffer.append(term.text());return buffer.toString();}

// Translation:
public override string ToString(string field){StringBuilder buffer = new StringBuilder();if (!Field.Equals(field, StringComparison.Ordinal)){buffer.Append(Field);buffer.Append(":");}buffer.Append(Term.Text());buffer.Append(ToStringUtils.Boost(Boost));return buffer.ToString();}
// Original:
public NameXPtg getNameXPtg(String name, UDFFinder udf) {return getNameXPtg(name, -1, udf);}

// Translation:
public NameXPtg GetNameXPtg(String name, UDFFinder udf){return GetNameXPtg(name, -1, udf);}
// Original:
public String getCharsetName() {return charsetName;}

// Translation:
public virtual string getCharsetName(){return charsetName;}
// Original:
public DescribeWebsiteCertificateAuthorityResult describeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDescribeWebsiteCertificateAuthority(request);}

// Translation:
public virtual DescribeWebsiteCertificateAuthorityResponse DescribeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWebsiteCertificateAuthorityRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWebsiteCertificateAuthorityResponseUnmarshaller.Instance;return Invoke<DescribeWebsiteCertificateAuthorityResponse>(request, options);}
// Original:
static public double ppmt(double r, int per, int nper, double pv, double fv) {return pmt(r, nper, pv, fv) - ipmt(r, per, nper, pv, fv);}

// Translation:
static public double PPMT(double r, int per, int nper, double pv, double fv){return PMT(r, nper, pv, fv) - IPMT(r, per, nper, pv, fv);}
// Original:
public ShortBuffer put(int index, short c) {throw new ReadOnlyBufferException();}

// Translation:
public override java.nio.ShortBuffer put(int index, short c){throw new java.nio.ReadOnlyBufferException();}
// Original:
public void writeBytes(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBytes(value);}

// Translation:
public virtual void writeBytes(string value){throw new System.NotImplementedException();}
// Original:
public LinkTable(int numberOfSheets, WorkbookRecordList workbookRecordList) {_workbookRecordList = workbookRecordList;_definedNames = new ArrayList<>();_externalBookBlocks = new ExternalBookBlock[]{new ExternalBookBlock(numberOfSheets),};_externSheetRecord = new ExternSheetRecord();_recordCount = 2;SupBookRecord supbook = _externalBookBlocks[0].getExternalBookRecord();int idx = findFirstRecordLocBySid(CountryRecord.sid);if (idx < 0) {throw new RuntimeException("CountryRecord not found");}_workbookRecordList.add(idx + 1, _externSheetRecord);_workbookRecordList.add(idx + 1, supbook);}

// Translation:
public LinkTable(int numberOfSheets, WorkbookRecordList workbookRecordList){_workbookRecordList = workbookRecordList;_definedNames = new List<NameRecord>();_externalBookBlocks = new ExternalBookBlock[] {new ExternalBookBlock(numberOfSheets),};_externSheetRecord = new ExternSheetRecord();_recordCount = 2;SupBookRecord supbook = _externalBookBlocks[0].GetExternalBookRecord();int idx = FindFirstRecordLocBySid(CountryRecord.sid);if (idx < 0){throw new Exception("CountryRecord not found");}_workbookRecordList.Add(idx + 1, _externSheetRecord);_workbookRecordList.Add(idx + 1, supbook);}
// Original:
public void remove() {throw new UnsupportedOperationException();}

// Translation:
public void Remove(){throw new NotImplementedException("Unsupported Operations!");}
// Original:
public static int[] grow(int[] array) {return grow(array, 1 + array.length);}

// Translation:
public static float[] Grow(float[] array){return Grow(array, 1 + array.Length);}
// Original:
public void addAll(T[] src, int srcIdx, int srcCnt) {while (0 < srcCnt) {int i = tailBlkIdx;int n = Math.min(srcCnt, BLOCK_SIZE - i);if (n == 0) {add(src[srcIdx++]);srcCnt--;continue;}System.arraycopy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}

// Translation:
public virtual void AddAll(T[] src, int srcIdx, int srcCnt){while (0 < srcCnt){int i = tailBlkIdx;int n = Math.Min(srcCnt, BLOCK_SIZE - i);if (n == 0){AddItem(src[srcIdx++]);srcCnt--;continue;}System.Array.Copy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}
// Original:
public RenewDomainResult renewDomain(RenewDomainRequest request) {request = beforeClientExecution(request);return executeRenewDomain(request);}

// Translation:
public virtual RenewDomainResponse RenewDomain(RenewDomainRequest request){var options = new InvokeOptions();options.RequestMarshaller = RenewDomainRequestMarshaller.Instance;options.ResponseUnmarshaller = RenewDomainResponseUnmarshaller.Instance;return Invoke<RenewDomainResponse>(request, options);}
// Original:
public static boolean isInRange(int i) {return i >= MIN_VALUE && i <= MAX_VALUE;}

// Translation:
public static bool IsInRange(int i){return i >= MIN_VALUE && i <= MAX_VALUE;}
// Original:
public AddApplicationInputResult addApplicationInput(AddApplicationInputRequest request) {request = beforeClientExecution(request);return executeAddApplicationInput(request);}

// Translation:
public virtual AddApplicationInputResponse AddApplicationInput(AddApplicationInputRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddApplicationInputRequestMarshaller.Instance;options.ResponseUnmarshaller = AddApplicationInputResponseUnmarshaller.Instance;return Invoke<AddApplicationInputResponse>(request, options);}
// Original:
public Request<DeletePublicKeyRequest> marshall(DeletePublicKeyRequest deletePublicKeyRequest) {if (deletePublicKeyRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<DeletePublicKeyRequest> request = new DefaultRequest<DeletePublicKeyRequest>(deletePublicKeyRequest, "AmazonCloudFront");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicKeyRequest.getIfMatch() != null) {request.addHeader("If-Match", StringUtils.fromString(deletePublicKeyRequest.getIfMatch()));}String uriResourcePath = "/2019-03-26/public-key/{Id}";uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, "Id", deletePublicKeyRequest.getId());request.setResourcePath(uriResourcePath);return request;}

// Translation:
public IRequest Marshall(DeletePublicKeyRequest publicRequest){var request = new DefaultRequest(publicRequest, "Amazon.CloudFront");request.HttpMethod = "DELETE";if(publicRequest.IsSetIfMatch())request.Headers["If-Match"] = publicRequest.IfMatch;if (!publicRequest.IsSetId())throw new AmazonCloudFrontException("Request object does not have required field Id set");request.AddPathResource("{Id}", StringUtils.FromString(publicRequest.Id));request.ResourcePath = "/2019-03-26/public-key/{Id}";request.MarshallerVersion = 2;return request;}
// Original:
public boolean matches(ParseTree tree) {return matcher.match(tree, this).succeeded();}

// Translation:
public virtual bool Matches(IParseTree tree){return matcher.Match(tree, this).Succeeded;}
// Original:
public CreateDetectorResult createDetector(CreateDetectorRequest request) {request = beforeClientExecution(request);return executeCreateDetector(request);}

// Translation:
public virtual CreateDetectorResponse CreateDetector(CreateDetectorRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDetectorRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDetectorResponseUnmarshaller.Instance;return Invoke<CreateDetectorResponse>(request, options);}
// Original:
public boolean equals(Object other) {if (other instanceof IndexCommit) {IndexCommit otherCommit = (IndexCommit) other;return otherCommit.getDirectory() == getDirectory() && otherCommit.getGeneration() == getGeneration();} else {return false;}}

// Translation:
public override bool Equals(object other){if (other is IndexCommit){IndexCommit otherCommit = (IndexCommit)other;return otherCommit.Directory == Directory && otherCommit.Generation == Generation;}else{return false;}}