yijunyu/c-to-rust huggingface dataset:
// Original:
public void execute(Lexer lexer) {action.execute(lexer);}

// Translation:
public void Execute(Lexer lexer){action.Execute(lexer);}
// Original:
public DeleteModelPackageResult deleteModelPackage(DeleteModelPackageRequest request) {request = beforeClientExecution(request);return executeDeleteModelPackage(request);}

// Translation:
public virtual DeleteModelPackageResponse DeleteModelPackage(DeleteModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelPackageResponseUnmarshaller.Instance;return Invoke<DeleteModelPackageResponse>(request, options);}
// Original:
public Object getValue() {return value;}

// Translation:
public virtual string getValue(){return mValue;}
// Original:
public void applyFont( short fontIndex ) {applyFont(0, _string.getCharCount(), fontIndex);}

// Translation:
public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}
// Original:
public SliceWriter(IntBlockPool pool) {this.pool = pool;}

// Translation:
public SliceWriter(Int32BlockPool pool){this.pool = pool;}
// Original:
public DisableVgwRoutePropagationResult disableVgwRoutePropagation(DisableVgwRoutePropagationRequest request) {request = beforeClientExecution(request);return executeDisableVgwRoutePropagation(request);}

// Translation:
public virtual DisableVgwRoutePropagationResponse DisableVgwRoutePropagation(DisableVgwRoutePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVgwRoutePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVgwRoutePropagationResponseUnmarshaller.Instance;return Invoke<DisableVgwRoutePropagationResponse>(request, options);}
// Original:
public String toString() {return getClass().getName() + " [" +_name.getNameText() +"]";}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_name.NameText);sb.Append("]");return sb.ToString();}
// Original:
public AttachObjectResult attachObject(AttachObjectRequest request) {request = beforeClientExecution(request);return executeAttachObject(request);}

// Translation:
public virtual AttachObjectResponse AttachObject(AttachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachObjectResponseUnmarshaller.Instance;return Invoke<AttachObjectResponse>(request, options);}
// Original:
public DBClusterParameterGroup copyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterParameterGroup(request);}

// Translation:
public virtual CopyDBClusterParameterGroupResponse CopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<CopyDBClusterParameterGroupResponse>(request, options);}
// Original:
public GetRoutesResult getRoutes(GetRoutesRequest request) {request = beforeClientExecution(request);return executeGetRoutes(request);}

// Translation:
public virtual GetRoutesResponse GetRoutes(GetRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoutesResponseUnmarshaller.Instance;return Invoke<GetRoutesResponse>(request, options);}
// Original:
public Entry<String, Ref> next() {if (hasNext()) {Entry<String, Ref> r = next;next = peek();return r;}throw new NoSuchElementException();}

// Translation:
public override KeyValuePair<string, Ref> Next(){if (this.HasNext()){Ent r = this.next;this.next = this.Peek();return r;}throw new NoSuchElementException();}
// Original:
public boolean containsKey(Object key) {return ((key instanceof Long && dictionary.containsKey(key)) || dictionary.containsValue(key));}

// Translation:
public override bool ContainsKey(Object key){if (key is long){return base.ContainsKey((long)key);}if (key is String){return base.ContainsKey((long)dictionaryNameToID[(key)]);}return false;}
// Original:
public UpdateNamespaceRequest() {super("cr", "2016-06-07", "UpdateNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.POST);}

// Translation:
public UpdateNamespaceRequest(): base("cr", "2016-06-07", "UpdateNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.POST;}
// Original:
public ListNotebookInstancesResult listNotebookInstances(ListNotebookInstancesRequest request) {request = beforeClientExecution(request);return executeListNotebookInstances(request);}

// Translation:
public virtual ListNotebookInstancesResponse ListNotebookInstances(ListNotebookInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstancesResponseUnmarshaller.Instance;return Invoke<ListNotebookInstancesResponse>(request, options);}
// Original:
public RoaringDocIdSet build() {flush();return new RoaringDocIdSet(sets, cardinality);}

// Translation:
public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
// Original:
public DescribeGroupsResult describeGroups(DescribeGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGroups(request);}

// Translation:
public virtual DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance;return Invoke<DescribeGroupsResponse>(request, options);}
// Original:
public GetShippingLabelResult getShippingLabel(GetShippingLabelRequest request) {request = beforeClientExecution(request);return executeGetShippingLabel(request);}

// Translation:
public virtual GetShippingLabelResponse GetShippingLabel(GetShippingLabelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetShippingLabelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetShippingLabelResponseUnmarshaller.Instance;return Invoke<GetShippingLabelResponse>(request, options);}
// Original:
public MonitorInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}

// Translation:
public MonitorInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
// Original:
public AtomTransition(ATNState target, int label) {super(target);this.label = label;}

// Translation:
public AtomTransition(ATNState target, int token): base(target){this.token = token;}
// Original:
public MulRKRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_first_col = in.readShort();field_3_rks = RkRec.parseRKs(in);field_4_last_col = in.readShort();}

// Translation:
public MulRKRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_first_col = in1.ReadShort();field_3_rks = RkRec.ParseRKs(in1);field_4_last_col = in1.ReadShort();}
// Original:
public State complete() {if (this.stateRegistry == null) throw new IllegalStateException();if (root.hasChildren()) replaceOrRegister(root);stateRegistry = null;return root;}

// Translation:
public State Complete(){if (this.stateRegistry == null){throw new InvalidOperationException();}if (root.HasChildren){ReplaceOrRegister(root);}stateRegistry = null;return root;}
// Original:
public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceDirectories(request);}

// Translation:
public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceDirectoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceDirectoriesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceDirectoriesResponse>(request, options);}
// Original:
@Override public E remove(int index) {synchronized (CopyOnWriteArrayList.this) {slice.checkElementIndex(index);slice.checkConcurrentModification(elements);E removed = CopyOnWriteArrayList.this.remove(slice.from + index);slice = new Slice(elements, slice.from, slice.to - 1);return removed;}}

// Translation:
public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}
// Original:
public StreamTokenizer(InputStream is) {this();if (is == null) {throw new NullPointerException();}inStream = is;}

// Translation:
public StreamTokenizer(java.io.InputStream @is){throw new System.NotImplementedException();}
// Original:
public ModifyVpcPeeringConnectionOptionsResult modifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcPeeringConnectionOptions(request);}

// Translation:
public virtual ModifyVpcPeeringConnectionOptionsResponse ModifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcPeeringConnectionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcPeeringConnectionOptionsResponseUnmarshaller.Instance;return Invoke<ModifyVpcPeeringConnectionOptionsResponse>(request, options);}
// Original:
public GetAppResult getApp(GetAppRequest request) {request = beforeClientExecution(request);return executeGetApp(request);}

// Translation:
public virtual GetAppResponse GetApp(GetAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance;return Invoke<GetAppResponse>(request, options);}
// Original:
public void start(int totalTasks) {if (!isMainThread())throw new IllegalStateException();pm.start(totalTasks);}

// Translation:
public override void Start(int totalTasks){if (!IsMainThread()){throw new InvalidOperationException();}pm.Start(totalTasks);}
// Original:
public ModifyFleetResult modifyFleet(ModifyFleetRequest request) {request = beforeClientExecution(request);return executeModifyFleet(request);}

// Translation:
public virtual ModifyFleetResponse ModifyFleet(ModifyFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyFleetResponseUnmarshaller.Instance;return Invoke<ModifyFleetResponse>(request, options);}
// Original:
public UpdateFolderResult updateFolder(UpdateFolderRequest request) {request = beforeClientExecution(request);return executeUpdateFolder(request);}

// Translation:
public virtual UpdateFolderResponse UpdateFolder(UpdateFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance;return Invoke<UpdateFolderResponse>(request, options);}
// Original:
public CreateAppResult createApp(CreateAppRequest request) {request = beforeClientExecution(request);return executeCreateApp(request);}

// Translation:
public virtual CreateAppResponse CreateApp(CreateAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance;return Invoke<CreateAppResponse>(request, options);}
// Original:
public static DVConstraint createDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat) {if (expr1 == null) {throw new IllegalArgumentException("expr1 must be supplied");}OperatorType.validateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = null;if (dateFormat != null) {df = new SimpleDateFormat(dateFormat, LocaleUtil.getUserLocale());df.setTimeZone(LocaleUtil.getUserTimeZone());}String formula1 = getFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? convertDate(expr1, df) : null;String formula2 = getFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? convertDate(expr2, df) : null;return new DVConstraint(ValidationType.DATE, comparisonOperator, formula1, formula2, value1, value2, null);}

// Translation:
public static DVConstraint CreateDateConstraint(int comparisonOperator, String expr1, String expr2, String dateFormat){if (expr1 == null){throw new ArgumentException("expr1 must be supplied");}OperatorType.ValidateSecondArg(comparisonOperator, expr2);SimpleDateFormat df = dateFormat == null ? null : new SimpleDateFormat(dateFormat);String formula1 = GetFormulaFromTextExpression(expr1);Double value1 = formula1 == null ? ConvertDate(expr1, df) : Double.NaN;String formula2 = GetFormulaFromTextExpression(expr2);Double value2 = formula2 == null ? ConvertDate(expr2, df) : Double.NaN;return new DVConstraint(ValidationType.DATE, comparisonOperator, formula1, formula2, value1, value2, null);}
// Original:
public final String toString() {return getClass().getName() + " [" + lookupName(_functionIndex) + " nArgs=" + _numberOfArgs + "]";}

// Translation:
public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(LookupName(_functionIndex));sb.Append(" nArgs=").Append(_numberOfArgs);sb.Append("]");return sb.ToString();}
// Original:
public ModifyDefaultCreditSpecificationResult modifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeModifyDefaultCreditSpecification(request);}

// Translation:
public virtual ModifyDefaultCreditSpecificationResponse ModifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDefaultCreditSpecificationResponseUnmarshaller.Instance;return Invoke<ModifyDefaultCreditSpecificationResponse>(request, options);}
// Original:
public Iterator<Note> iterator() {try {return root.iterator(new MutableObjectId(), reader);} catch (IOException e) {throw new RuntimeException(e);}}

// Translation:
public override Sharpen.Iterator<Note> Iterator(){try{return root.Iterator(new MutableObjectId(), reader);}catch (IOException e){throw new RuntimeException(e);}}
// Original:
public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}

// Translation:
public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}
// Original:
public ClientException(String errCode, String errMsg, String requestId) {this(errCode, errMsg);this.requestId = requestId;this.setErrorType(ErrorType.Client);}

// Translation:
public ClientException(string errCode, string errMsg, string requestId) : base(string.Format("{0}
// Original:
public int getInputLength() {return this.inputLength;}

// Translation:
public virtual int getInputLength(){return this.inputLength;}
// Original:
public void onInvalidated() {Log.d(TAG, mSrc + ": invalidated");}

// Translation:
public override void onInvalidated(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetInvalidated();}
// Original:
public TerminalNode addChild(Token matchedToken) {TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);addAnyChild(t);t.setParent(this);return t;}

// Translation:
public virtual ITerminalNode AddChild(IToken matchedToken){TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);AddChild(t);t.Parent = this;return t;}
// Original:
public boolean isUnknown() {return type == Type.UNKNOWN;}

// Translation:
public virtual bool IsUnknown(){return type == JapaneseTokenizerType.UNKNOWN;}
// Original:
public boolean promptPassword(String msg) {CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.get(uri, p)) {password = new String(p.getValue());return true;}password = null;return false;}

// Translation:
public virtual bool PromptPassword(string msg){CredentialItem.Password p = new CredentialItem.Password(msg);if (provider.Get(uri, p)){password = new string(p.GetValue());return true;}else{password = null;return false;}}
// Original:
public CreateTransitGatewayResult createTransitGateway(CreateTransitGatewayRequest request) {request = beforeClientExecution(request);return executeCreateTransitGateway(request);}

// Translation:
public virtual CreateTransitGatewayResponse CreateTransitGateway(CreateTransitGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayResponse>(request, options);}
// Original:
public CreateCampaignResult createCampaign(CreateCampaignRequest request) {request = beforeClientExecution(request);return executeCreateCampaign(request);}

// Translation:
public virtual CreateCampaignResponse CreateCampaign(CreateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;return Invoke<CreateCampaignResponse>(request, options);}
// Original:
public ClientException(String errCode, String errMsg) {super(errCode + " : " + errMsg);this.errCode = errCode;this.errMsg = errMsg;this.setErrorType(ErrorType.Client);}

// Translation:
public ClientException(string errCode, string errMsg) : base(errCode + " : " + errMsg){ErrorCode = errCode;ErrorMessage = errMsg;ErrorType = ErrorType.Client;}
// Original:
public void removeConditionalFormatting(int index) {_conditionalFormattingTable.remove(index);}

// Translation:
public void RemoveConditionalFormatting(int index){_conditionalFormattingTable.Remove(index);}
// Original:
public static void fill(float[] array, float value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}

// Translation:
public static void fill(float[] array, float value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}
// Original:
public TokenStream create(TokenStream input) {return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}

// Translation:
public override TokenStream Create(TokenStream input){return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}
// Original:
public ListS3ResourcesResult listS3Resources(ListS3ResourcesRequest request) {request = beforeClientExecution(request);return executeListS3Resources(request);}

// Translation:
public virtual ListS3ResourcesResponse ListS3Resources(ListS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListS3ResourcesResponseUnmarshaller.Instance;return Invoke<ListS3ResourcesResponse>(request, options);}
// Original:
public String toString() {return new StringBuilder("'").appendCodePoint(from).append("'..'").appendCodePoint(to).append("'").toString();}

// Translation:
public override string ToString(){return "'" + (char)from + "'..'" + (char)to + "'";}
// Original:
public DoubleBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}

// Translation:
public override java.nio.DoubleBuffer compact(){System.Array.Copy(backingArray, _position + offset, backingArray, offset, remaining());_position = _limit - _position;_limit = _capacity;_mark = UNSET_MARK;return this;}
// Original:
public CreatePresignedNotebookInstanceUrlResult createPresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request) {request = beforeClientExecution(request);return executeCreatePresignedNotebookInstanceUrl(request);}

// Translation:
public virtual CreatePresignedNotebookInstanceUrlResponse CreatePresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresignedNotebookInstanceUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresignedNotebookInstanceUrlResponseUnmarshaller.Instance;return Invoke<CreatePresignedNotebookInstanceUrlResponse>(request, options);}
// Original:
public IterationRecord(RecordInputStream in) {_flags = in.readShort();}

// Translation:
public IterationRecord(RecordInputStream in1){_flags = in1.ReadShort();}
// Original:
public CreateUserInfoRequest() {super("cr", "2016-06-07", "CreateUserInfo", "cr");setUriPattern("/users");setMethod(MethodType.PUT);}

// Translation:
public CreateUserInfoRequest(): base("cr", "2016-06-07", "CreateUserInfo", "cr", "openAPI"){UriPattern = "/users";Method = MethodType.PUT;}
// Original:
public void notifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener) {if (_usedBlankCellGroup != null) {if (_usedBlankCellGroup.containsCell(bsk, rowIndex, columnIndex)) {clearFormulaEntry();recurseClearCachedFormulaResults(evaluationListener);}}}

// Translation:
public void NotifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener){if (_usedBlankCellGroup != null){if (_usedBlankCellGroup.ContainsCell(bsk, rowIndex, columnIndex)){ClearFormulaEntry();RecurseClearCachedFormulaResults(evaluationListener);}}}
// Original:
public IntervalSet addAll(IntSet set) {if ( set==null ) {return this;}if (set instanceof IntervalSet) {IntervalSet other = (IntervalSet)set;int n = other.intervals.size();for (int i = 0; i < n; i++) {Interval I = other.intervals.get(i);this.add(I.a,I.b);}}else {for (int value : set.toList()) {add(value);}}return this;}

// Translation:
public virtual Antlr4.Runtime.Misc.IntervalSet AddAll(IIntSet set){if (set == null){return this;}if (set is Antlr4.Runtime.Misc.IntervalSet){Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)set;int n = other.intervals.Count;for (int i = 0; i < n; i++){Interval I = other.intervals[i];this.Add(I.a, I.b);}}else{foreach (int value in set.ToList()){Add(value);}}return this;}
// Original:
public OpenStringBuilder(char[] arr, int len) {set(arr, len);}

// Translation:
public OpenStringBuilder(char[] arr, int len){Set(arr, len);}
// Original:
public boolean isRefLogIncludingResult() {return refLogIncludeResult;}

// Translation:
public virtual bool IsRefLogIncludingResult(){return refLogIncludeResult;}
// Original:
public HeaderFooterRecord(byte[] data) {_rawData = data;}

// Translation:
public HeaderFooterRecord(byte[] data){_rawData = data;}
// Original:
public byte[] getPath(){return Arrays.copyOf(path, path.length);}

// Translation:
public byte[] GetPath(){return Arrays.CopyOf(path, path.Length);}
// Original:
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[REFMODE]\n");buffer.append("    .mode           = ").append(Integer.toHexString(getMode())).append("\n");buffer.append("[/REFMODE]\n");return buffer.toString();}

// Translation:
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[REFMODE]\n");buffer.Append("    .mode           = ").Append(StringUtil.ToHexString(Mode)).Append("\n");buffer.Append("[/REFMODE]\n");return buffer.ToString();}
// Original:
public HSSFChildAnchor() {_escherChildAnchor = new EscherChildAnchorRecord();}

// Translation:
public HSSFChildAnchor(){_escherChildAnchor = new EscherChildAnchorRecord();}
// Original:
public final boolean isRegistered() {return !canonicalName.startsWith("x-") && !canonicalName.startsWith("X-");}

// Translation:
public bool isRegistered(){return !canonicalName.StartsWith("x-") && !canonicalName.StartsWith("X-");}
// Original:
@Override public boolean remove(Object o) {if (containsKey(o)) {unfiltered.remove(o);return true;}return false;}

// Translation:
public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}