id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
4,700 | public void execute(Lexer lexer) {action.execute(lexer);}
| public void Execute(Lexer lexer){action.Execute(lexer);}
|
4,701 | public DeleteModelPackageResult deleteModelPackage(DeleteModelPackageRequest request) {request = beforeClientExecution(request);return executeDeleteModelPackage(request);}
| public virtual DeleteModelPackageResponse DeleteModelPackage(DeleteModelPackageRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelPackageRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelPackageResponseUnmarshaller.Instance;return Invoke<DeleteModelPackageResponse>(request, options);}
|
4,702 | public Object getValue() {return value;}
| public virtual string getValue(){return mValue;}
|
4,703 | public void applyFont( short fontIndex ) {applyFont(0, _string.getCharCount(), fontIndex);}
| public void ApplyFont(short fontIndex){ApplyFont(0, _string.CharCount, fontIndex);}
|
4,704 | public SliceWriter(IntBlockPool pool) {this.pool = pool;}
| public SliceWriter(Int32BlockPool pool){this.pool = pool;}
|
4,705 | public DisableVgwRoutePropagationResult disableVgwRoutePropagation(DisableVgwRoutePropagationRequest request) {request = beforeClientExecution(request);return executeDisableVgwRoutePropagation(request);}
| public virtual DisableVgwRoutePropagationResponse DisableVgwRoutePropagation(DisableVgwRoutePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableVgwRoutePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableVgwRoutePropagationResponseUnmarshaller.Instance;return Invoke<DisableVgwRoutePropagationResponse>(request, options);}
|
4,706 | public String toString() {return getClass().getName() + " [" +_name.getNameText() +"]";}
| public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(_name.NameText);sb.Append("]");return sb.ToString();}
|
4,707 | public AttachObjectResult attachObject(AttachObjectRequest request) {request = beforeClientExecution(request);return executeAttachObject(request);}
| public virtual AttachObjectResponse AttachObject(AttachObjectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachObjectRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachObjectResponseUnmarshaller.Instance;return Invoke<AttachObjectResponse>(request, options);}
|
4,708 | public DBClusterParameterGroup copyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeCopyDBClusterParameterGroup(request);}
| public virtual CopyDBClusterParameterGroupResponse CopyDBClusterParameterGroup(CopyDBClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CopyDBClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CopyDBClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<CopyDBClusterParameterGroupResponse>(request, options);}
|
4,709 | public GetRoutesResult getRoutes(GetRoutesRequest request) {request = beforeClientExecution(request);return executeGetRoutes(request);}
| public virtual GetRoutesResponse GetRoutes(GetRoutesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRoutesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRoutesResponseUnmarshaller.Instance;return Invoke<GetRoutesResponse>(request, options);}
|
4,710 | public Entry<String, Ref> next() {if (hasNext()) {Entry<String, Ref> r = next;next = peek();return r;}throw new NoSuchElementException();}
| public override KeyValuePair<string, Ref> Next(){if (this.HasNext()){Ent r = this.next;this.next = this.Peek();return r;}throw new NoSuchElementException();}
|
4,711 | public boolean containsKey(Object key) {return ((key instanceof Long && dictionary.containsKey(key)) || dictionary.containsValue(key));}
| 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;}
|
4,712 | public UpdateNamespaceRequest() {super("cr", "2016-06-07", "UpdateNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.POST);}
| public UpdateNamespaceRequest(): base("cr", "2016-06-07", "UpdateNamespace", "cr", "openAPI"){UriPattern = "/namespace/[Namespace]";Method = MethodType.POST;}
|
4,713 | public ListNotebookInstancesResult listNotebookInstances(ListNotebookInstancesRequest request) {request = beforeClientExecution(request);return executeListNotebookInstances(request);}
| public virtual ListNotebookInstancesResponse ListNotebookInstances(ListNotebookInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstancesResponseUnmarshaller.Instance;return Invoke<ListNotebookInstancesResponse>(request, options);}
|
4,714 | public RoaringDocIdSet build() {flush();return new RoaringDocIdSet(sets, cardinality);}
| public override WAH8DocIdSet Build(){if (this.wordNum != -1){AddWord(wordNum, (byte)word);}return base.Build();}
|
4,715 | public DescribeGroupsResult describeGroups(DescribeGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeGroups(request);}
| public virtual DescribeGroupsResponse DescribeGroups(DescribeGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGroupsResponseUnmarshaller.Instance;return Invoke<DescribeGroupsResponse>(request, options);}
|
4,716 | public GetShippingLabelResult getShippingLabel(GetShippingLabelRequest request) {request = beforeClientExecution(request);return executeGetShippingLabel(request);}
| public virtual GetShippingLabelResponse GetShippingLabel(GetShippingLabelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetShippingLabelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetShippingLabelResponseUnmarshaller.Instance;return Invoke<GetShippingLabelResponse>(request, options);}
|
4,717 | public MonitorInstancesRequest(java.util.List<String> instanceIds) {setInstanceIds(instanceIds);}
| public MonitorInstancesRequest(List<string> instanceIds){_instanceIds = instanceIds;}
|
4,718 | public AtomTransition(ATNState target, int label) {super(target);this.label = label;}
| public AtomTransition(ATNState target, int token): base(target){this.token = token;}
|
4,719 | 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();}
| 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();}
|
4,720 | public State complete() {if (this.stateRegistry == null) throw new IllegalStateException();if (root.hasChildren()) replaceOrRegister(root);stateRegistry = null;return root;}
| public State Complete(){if (this.stateRegistry == null){throw new InvalidOperationException();}if (root.HasChildren){ReplaceOrRegister(root);}stateRegistry = null;return root;}
|
4,721 | public DescribeWorkspaceDirectoriesResult describeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceDirectories(request);}
| public virtual DescribeWorkspaceDirectoriesResponse DescribeWorkspaceDirectories(DescribeWorkspaceDirectoriesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceDirectoriesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceDirectoriesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceDirectoriesResponse>(request, options);}
|
4,722 | @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;}}
| public virtual E remove(int index){lock (this){E removed = (E)elements[index];removeRange(index, index + 1);return removed;}}
|
4,723 | public StreamTokenizer(InputStream is) {this();if (is == null) {throw new NullPointerException();}inStream = is;}
| public StreamTokenizer(java.io.InputStream @is){throw new System.NotImplementedException();}
|
4,724 | public ModifyVpcPeeringConnectionOptionsResult modifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcPeeringConnectionOptions(request);}
| public virtual ModifyVpcPeeringConnectionOptionsResponse ModifyVpcPeeringConnectionOptions(ModifyVpcPeeringConnectionOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyVpcPeeringConnectionOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyVpcPeeringConnectionOptionsResponseUnmarshaller.Instance;return Invoke<ModifyVpcPeeringConnectionOptionsResponse>(request, options);}
|
4,725 | public GetAppResult getApp(GetAppRequest request) {request = beforeClientExecution(request);return executeGetApp(request);}
| public virtual GetAppResponse GetApp(GetAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetAppRequestMarshaller.Instance;options.ResponseUnmarshaller = GetAppResponseUnmarshaller.Instance;return Invoke<GetAppResponse>(request, options);}
|
4,726 | public void start(int totalTasks) {if (!isMainThread())throw new IllegalStateException();pm.start(totalTasks);}
| public override void Start(int totalTasks){if (!IsMainThread()){throw new InvalidOperationException();}pm.Start(totalTasks);}
|
4,727 | public ModifyFleetResult modifyFleet(ModifyFleetRequest request) {request = beforeClientExecution(request);return executeModifyFleet(request);}
| public virtual ModifyFleetResponse ModifyFleet(ModifyFleetRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyFleetRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyFleetResponseUnmarshaller.Instance;return Invoke<ModifyFleetResponse>(request, options);}
|
4,728 | public UpdateFolderResult updateFolder(UpdateFolderRequest request) {request = beforeClientExecution(request);return executeUpdateFolder(request);}
| public virtual UpdateFolderResponse UpdateFolder(UpdateFolderRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFolderRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFolderResponseUnmarshaller.Instance;return Invoke<UpdateFolderResponse>(request, options);}
|
4,729 | public CreateAppResult createApp(CreateAppRequest request) {request = beforeClientExecution(request);return executeCreateApp(request);}
| public virtual CreateAppResponse CreateApp(CreateAppRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAppRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAppResponseUnmarshaller.Instance;return Invoke<CreateAppResponse>(request, options);}
|
4,730 | 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);}
| 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);}
|
4,731 | public final String toString() {return getClass().getName() + " [" + lookupName(_functionIndex) + " nArgs=" + _numberOfArgs + "]";}
| 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();}
|
4,732 | public ModifyDefaultCreditSpecificationResult modifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request) {request = beforeClientExecution(request);return executeModifyDefaultCreditSpecification(request);}
| public virtual ModifyDefaultCreditSpecificationResponse ModifyDefaultCreditSpecification(ModifyDefaultCreditSpecificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyDefaultCreditSpecificationRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyDefaultCreditSpecificationResponseUnmarshaller.Instance;return Invoke<ModifyDefaultCreditSpecificationResponse>(request, options);}
|
4,733 | public Iterator<Note> iterator() {try {return root.iterator(new MutableObjectId(), reader);} catch (IOException e) {throw new RuntimeException(e);}}
| public override Sharpen.Iterator<Note> Iterator(){try{return root.Iterator(new MutableObjectId(), reader);}catch (IOException e){throw new RuntimeException(e);}}
|
4,734 | public ObjectId idFor(TreeFormatter formatter) {return delegate().idFor(formatter);}
| public virtual ObjectId IdFor(TreeFormatter formatter){return formatter.ComputeId(this);}
|
4,735 | public ClientException(String errCode, String errMsg, String requestId) {this(errCode, errMsg);this.requestId = requestId;this.setErrorType(ErrorType.Client);}
| public ClientException(string errCode, string errMsg, string requestId) : base(string.Format("{0}
|
4,736 | public int getInputLength() {return this.inputLength;}
| public virtual int getInputLength(){return this.inputLength;}
|
4,737 | public void onInvalidated() {Log.d(TAG, mSrc + ": invalidated");}
| public override void onInvalidated(){this._enclosing.refreshExpGroupMetadataList(true, true);this._enclosing.notifyDataSetInvalidated();}
|
4,738 | public TerminalNode addChild(Token matchedToken) {TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);addAnyChild(t);t.setParent(this);return t;}
| public virtual ITerminalNode AddChild(IToken matchedToken){TerminalNodeImpl t = new TerminalNodeImpl(matchedToken);AddChild(t);t.Parent = this;return t;}
|
4,739 | public boolean isUnknown() {return type == Type.UNKNOWN;}
| public virtual bool IsUnknown(){return type == JapaneseTokenizerType.UNKNOWN;}
|
4,740 | 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;}
| 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;}}
|
4,741 | public CreateTransitGatewayResult createTransitGateway(CreateTransitGatewayRequest request) {request = beforeClientExecution(request);return executeCreateTransitGateway(request);}
| public virtual CreateTransitGatewayResponse CreateTransitGateway(CreateTransitGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayResponse>(request, options);}
|
4,742 | public CreateCampaignResult createCampaign(CreateCampaignRequest request) {request = beforeClientExecution(request);return executeCreateCampaign(request);}
| public virtual CreateCampaignResponse CreateCampaign(CreateCampaignRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCampaignRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCampaignResponseUnmarshaller.Instance;return Invoke<CreateCampaignResponse>(request, options);}
|
4,743 | public ClientException(String errCode, String errMsg) {super(errCode + " : " + errMsg);this.errCode = errCode;this.errMsg = errMsg;this.setErrorType(ErrorType.Client);}
| public ClientException(string errCode, string errMsg) : base(errCode + " : " + errMsg){ErrorCode = errCode;ErrorMessage = errMsg;ErrorType = ErrorType.Client;}
|
4,744 | public void removeConditionalFormatting(int index) {_conditionalFormattingTable.remove(index);}
| public void RemoveConditionalFormatting(int index){_conditionalFormattingTable.Remove(index);}
|
4,745 | public static void fill(float[] array, float value) {for (int i = 0; i < array.length; i++) {array[i] = value;}}
| public static void fill(float[] array, float value){{for (int i = 0; i < array.Length; i++){array[i] = value;}}}
|
4,746 | public TokenStream create(TokenStream input) {return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}
| public override TokenStream Create(TokenStream input){return dictionary == null ? input : new StemmerOverrideFilter(input, dictionary);}
|
4,747 | public ListS3ResourcesResult listS3Resources(ListS3ResourcesRequest request) {request = beforeClientExecution(request);return executeListS3Resources(request);}
| public virtual ListS3ResourcesResponse ListS3Resources(ListS3ResourcesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListS3ResourcesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListS3ResourcesResponseUnmarshaller.Instance;return Invoke<ListS3ResourcesResponse>(request, options);}
|
4,748 | public String toString() {return new StringBuilder("'").appendCodePoint(from).append("'..'").appendCodePoint(to).append("'").toString();}
| public override string ToString(){return "'" + (char)from + "'..'" + (char)to + "'";}
|
4,749 | public DoubleBuffer compact() {System.arraycopy(backingArray, position + offset, backingArray, offset, remaining());position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
| 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;}
|
4,750 | public CreatePresignedNotebookInstanceUrlResult createPresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request) {request = beforeClientExecution(request);return executeCreatePresignedNotebookInstanceUrl(request);}
| public virtual CreatePresignedNotebookInstanceUrlResponse CreatePresignedNotebookInstanceUrl(CreatePresignedNotebookInstanceUrlRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePresignedNotebookInstanceUrlRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePresignedNotebookInstanceUrlResponseUnmarshaller.Instance;return Invoke<CreatePresignedNotebookInstanceUrlResponse>(request, options);}
|
4,751 | public IterationRecord(RecordInputStream in) {_flags = in.readShort();}
| public IterationRecord(RecordInputStream in1){_flags = in1.ReadShort();}
|
4,752 | public CreateUserInfoRequest() {super("cr", "2016-06-07", "CreateUserInfo", "cr");setUriPattern("/users");setMethod(MethodType.PUT);}
| public CreateUserInfoRequest(): base("cr", "2016-06-07", "CreateUserInfo", "cr", "openAPI"){UriPattern = "/users";Method = MethodType.PUT;}
|
4,753 | public void notifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener) {if (_usedBlankCellGroup != null) {if (_usedBlankCellGroup.containsCell(bsk, rowIndex, columnIndex)) {clearFormulaEntry();recurseClearCachedFormulaResults(evaluationListener);}}}
| public void NotifyUpdatedBlankCell(BookSheetKey bsk, int rowIndex, int columnIndex, IEvaluationListener evaluationListener){if (_usedBlankCellGroup != null){if (_usedBlankCellGroup.ContainsCell(bsk, rowIndex, columnIndex)){ClearFormulaEntry();RecurseClearCachedFormulaResults(evaluationListener);}}}
|
4,754 | 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;}
| 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;}
|
4,755 | public OpenStringBuilder(char[] arr, int len) {set(arr, len);}
| public OpenStringBuilder(char[] arr, int len){Set(arr, len);}
|
4,756 | public boolean isRefLogIncludingResult() {return refLogIncludeResult;}
| public virtual bool IsRefLogIncludingResult(){return refLogIncludeResult;}
|
4,757 | public HeaderFooterRecord(byte[] data) {_rawData = data;}
| public HeaderFooterRecord(byte[] data){_rawData = data;}
|
4,758 | public byte[] getPath(){return Arrays.copyOf(path, path.length);}
| public byte[] GetPath(){return Arrays.CopyOf(path, path.Length);}
|
4,759 | 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();}
| 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();}
|
4,760 | public HSSFChildAnchor() {_escherChildAnchor = new EscherChildAnchorRecord();}
| public HSSFChildAnchor(){_escherChildAnchor = new EscherChildAnchorRecord();}
|
4,761 | public final boolean isRegistered() {return !canonicalName.startsWith("x-") && !canonicalName.startsWith("X-");}
| public bool isRegistered(){return !canonicalName.StartsWith("x-") && !canonicalName.StartsWith("X-");}
|
4,762 | @Override public boolean remove(Object o) {if (containsKey(o)) {unfiltered.remove(o);return true;}return false;}
| public override bool remove(object o){lock (this._enclosing){int oldSize = this._enclosing._size;this._enclosing.remove(o);return this._enclosing._size != oldSize;}}
|
4,763 | public static Token newToken(int ofKind, String image){switch(ofKind){default : return new Token(ofKind, image);}}
| public static Token NewToken(int ofKind, string image){switch (ofKind){default: return new Token(ofKind, image);}}
|
4,764 | public float overheadPerValue(int bitsPerValue) {assert isSupported(bitsPerValue);final int valuesPerBlock = 64 / bitsPerValue;final int overhead = 64 % bitsPerValue;return (float) overhead / valuesPerBlock;}
| public virtual float OverheadPerValue(int bitsPerValue){Debug.Assert(IsSupported(bitsPerValue));return 0f;}
|
4,765 | public void clear() {backingMap.clear();}
| public override void clear(){backingMap.clear();}
|
4,766 | public CompoundException(Collection<Throwable> why) {super(format(why));causeList = Collections.unmodifiableList(new ArrayList<>(why));}
| public CompoundException(ICollection<Exception> why) : base(Format(why)){causeList = Sharpen.Collections.UnmodifiableList(new AList<Exception>(why));}
|
4,767 | public DeleteEnvironmentConfigurationRequest(String applicationName, String environmentName) {setApplicationName(applicationName);setEnvironmentName(environmentName);}
| public DeleteEnvironmentConfigurationRequest(string applicationName, string environmentName){_applicationName = applicationName;_environmentName = environmentName;}
|
4,768 | public ModifyImageAttributeRequest(String imageId, String attribute) {setImageId(imageId);setAttribute(attribute);}
| public ModifyImageAttributeRequest(string imageId, string attribute){_imageId = imageId;_attribute = attribute;}
|
4,769 | public LastCellOfRowDummyRecord(int row, int lastColumnNumber) {this.row = row;this.lastColumnNumber = lastColumnNumber;}
| public LastCellOfRowDummyRecord(int row, int lastColumnNumber){this.row = row;this.lastColumnNumber = lastColumnNumber;}
|
4,770 | public String toString() {return path.toString();}
| public override string ToString(){return path.ToString();}
|
4,771 | public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(ADD);buffer.append(operands[ 0]);return buffer.toString();}
| public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(Add);buffer.Append(operands[0]);return buffer.ToString();}
|
4,772 | public void abort() {try {reset();} finally {if (nextTermsHash != null) {nextTermsHash.abort();}}}
| public override void Abort(){Reset();try{consumer.Abort();}finally{if (nextTermsHash != null){nextTermsHash.Abort();}}}
|
4,773 | public CreateUsagePlanKeyResult createUsagePlanKey(CreateUsagePlanKeyRequest request) {request = beforeClientExecution(request);return executeCreateUsagePlanKey(request);}
| public virtual CreateUsagePlanKeyResponse CreateUsagePlanKey(CreateUsagePlanKeyRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsagePlanKeyRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsagePlanKeyResponseUnmarshaller.Instance;return Invoke<CreateUsagePlanKeyResponse>(request, options);}
|
4,774 | public boolean isOutOfBounds(int lowValidIx, int highValidIx) {if(_offset < lowValidIx) {return true;}if(getLastIndex() > highValidIx) {return true;}return false;}
| public bool IsOutOfBounds(int lowValidIx, int highValidIx){if (_offset < lowValidIx){return true;}if (LastIndex > highValidIx){return true;}return false;}
|
4,775 | public CherryPickStatus getStatus() {return status;}
| public virtual CherryPickResult.CherryPickStatus GetStatus(){return status;}
|
4,776 | public static String getRomanization(String s) {StringBuilder out = new StringBuilder();try {getRomanization(out, s);} catch (IOException bogus) {throw new RuntimeException(bogus);}return out.toString();}
| public static string GetRomanization(string s){StringBuilder result = new StringBuilder();try{GetRomanization(result, s);}catch (IOException bogus){throw new Exception(bogus.ToString(), bogus);}return result.ToString();}
|
4,777 | public GetDistributionRequest(String id) {setId(id);}
| public GetDistributionRequest(string id){_id = id;}
|
4,778 | public String signString(String stringToSign, String accessKeySecret) {return null;}
| public override string SignString(string stringToSign, string accessKeySecret){return "";}
|
4,779 | public Repository open(C req, String name)throws RepositoryNotFoundException, ServiceNotEnabledException {if (isUnreasonableName(name))throw new RepositoryNotFoundException(name);Repository db = exports.get(nameWithDotGit(name));if (db != null) {db.incrementOpen();return db;}for (File base : exportBase) {File dir = FileKey.resolve(new File(base, name), FS.DETECTED);if (dir == null)continue;try {FileKey key = FileKey.exact(dir, FS.DETECTED);db = RepositoryCache.open(key, true);} catch (IOException e) {throw new RepositoryNotFoundException(name, e);}try {if (isExportOk(req, name, db)) {return db;}throw new ServiceNotEnabledException();} catch (RuntimeException | IOException e) {db.close();throw new RepositoryNotFoundException(name, e);} catch (ServiceNotEnabledException e) {db.close();throw e;}}if (exportBase.size() == 1) {File dir = new File(exportBase.iterator().next(), name);throw new RepositoryNotFoundException(name,new RepositoryNotFoundException(dir));}throw new RepositoryNotFoundException(name);}
| public override Repository Open(C req, string name){if (IsUnreasonableName(name)){throw new RepositoryNotFoundException(name);}Repository db = exports.Get(NameWithDotGit(name));if (db != null){db.IncrementOpen();return db;}foreach (FilePath @base in exportBase){FilePath dir = RepositoryCache.FileKey.Resolve(new FilePath(@base, name), FS.DETECTED);if (dir == null){continue;}try{RepositoryCache.FileKey key = RepositoryCache.FileKey.Exact(dir, FS.DETECTED);db = RepositoryCache.Open(key, true);}catch (IOException e){throw new RepositoryNotFoundException(name, e);}try{if (IsExportOk(req, name, db)){return db;}else{throw new ServiceNotEnabledException();}}catch (RuntimeException e){db.Close();throw new RepositoryNotFoundException(name, e);}catch (IOException e){db.Close();throw new RepositoryNotFoundException(name, e);}catch (ServiceNotEnabledException e){db.Close();throw;}}if (exportBase.Count == 1){FilePath dir = new FilePath(exportBase.Iterator().Next(), name);throw new RepositoryNotFoundException(name, new RepositoryNotFoundException(dir));}throw new RepositoryNotFoundException(name);}
|
4,780 | public synchronized boolean addIfAbsent(E object) {if (contains(object)) {return false;}add(object);return true;}
| public virtual bool addIfAbsent(E @object){lock (this){if (contains(@object)){return false;}add(@object);return true;}}
|
4,781 | public EnableTransitGatewayRouteTablePropagationResult enableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request) {request = beforeClientExecution(request);return executeEnableTransitGatewayRouteTablePropagation(request);}
| public virtual EnableTransitGatewayRouteTablePropagationResponse EnableTransitGatewayRouteTablePropagation(EnableTransitGatewayRouteTablePropagationRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableTransitGatewayRouteTablePropagationRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableTransitGatewayRouteTablePropagationResponseUnmarshaller.Instance;return Invoke<EnableTransitGatewayRouteTablePropagationResponse>(request, options);}
|
4,782 | public PatternKeywordMarkerFilter(TokenStream in, Pattern pattern) {super(in);this.matcher = pattern.matcher("");}
| public PatternKeywordMarkerFilter(TokenStream @in, Regex pattern): base(@in){termAtt = AddAttribute<ICharTermAttribute>();this.matcher = pattern.Match("");this.pattern = pattern;}
|
4,783 | public AddInstanceGroupsRequest(java.util.List<InstanceGroupConfig> instanceGroups, String jobFlowId) {setInstanceGroups(instanceGroups);setJobFlowId(jobFlowId);}
| public AddInstanceGroupsRequest(string jobFlowId, List<InstanceGroupConfig> instanceGroups){_jobFlowId = jobFlowId;_instanceGroups = instanceGroups;}
|
4,784 | public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader) throws IOException {final String termsFileName = IndexFileNames.segmentFileName(state.segmentInfo.name, state.segmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;final IndexInput in = state.directory.openInput(termsFileName, state.context);boolean success = false;try {CodecUtil.checkIndexHeader(in, FSTTermsWriter.TERMS_CODEC_NAME,FSTTermsWriter.TERMS_VERSION_START,FSTTermsWriter.TERMS_VERSION_CURRENT,state.segmentInfo.getId(), state.segmentSuffix);CodecUtil.checksumEntireFile(in);this.postingsReader.init(in, state);seekDir(in);final FieldInfos fieldInfos = state.fieldInfos;final int numFields = in.readVInt();for (int i = 0; i < numFields; i++) {int fieldNumber = in.readVInt();FieldInfo fieldInfo = fieldInfos.fieldInfo(fieldNumber);long numTerms = in.readVLong();long sumTotalTermFreq = in.readVLong();long sumDocFreq = fieldInfo.getIndexOptions() == IndexOptions.DOCS ? sumTotalTermFreq : in.readVLong();int docCount = in.readVInt();TermsReader current = new TermsReader(fieldInfo, in, numTerms, sumTotalTermFreq, sumDocFreq, docCount);TermsReader previous = fields.put(fieldInfo.name, current);checkFieldSummary(state.segmentInfo, in, current, previous);}success = true;} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}
| public FSTTermsReader(SegmentReadState state, PostingsReaderBase postingsReader){string termsFileName = IndexFileNames.SegmentFileName(state.SegmentInfo.Name, state.SegmentSuffix, FSTTermsWriter.TERMS_EXTENSION);this.postingsReader = postingsReader;IndexInput @in = state.Directory.OpenInput(termsFileName, state.Context);bool success = false;try{version = ReadHeader(@in);if (version >= FSTTermsWriter.TERMS_VERSION_CHECKSUM){CodecUtil.ChecksumEntireFile(@in);}this.postingsReader.Init(@in);SeekDir(@in);FieldInfos fieldInfos = state.FieldInfos;int numFields = @in.ReadVInt32();for (int i = 0; i < numFields; i++){int fieldNumber = @in.ReadVInt32();FieldInfo fieldInfo = fieldInfos.FieldInfo(fieldNumber);long numTerms = @in.ReadVInt64();long sumTotalTermFreq = fieldInfo.IndexOptions == IndexOptions.DOCS_ONLY ? -1 : @in.ReadVInt64();long sumDocFreq = @in.ReadVInt64();int docCount = @in.ReadVInt32();int longsSize = @in.ReadVInt32();TermsReader current = new TermsReader(this, fieldInfo, @in, numTerms, sumTotalTermFreq, sumDocFreq, docCount, longsSize);TermsReader previous;fields.TryGetValue(fieldInfo.Name, out previous);fields[fieldInfo.Name] = current;CheckFieldSummary(state.SegmentInfo, @in, current, previous);}success = true;}finally{if (success){IOUtils.Dispose(@in);}else{IOUtils.DisposeWhileHandlingException(@in);}}}
|
4,785 | public DescribeVpcEndpointsResult describeVpcEndpoints(DescribeVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDescribeVpcEndpoints(request);}
| public virtual DescribeVpcEndpointsResponse DescribeVpcEndpoints(DescribeVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpcEndpointsResponseUnmarshaller.Instance;return Invoke<DescribeVpcEndpointsResponse>(request, options);}
|
4,786 | public void setNewPrefix(String prefix) {newPrefix = prefix;}
| public virtual void SetNewPrefix(string prefix){newPrefix = prefix;}
|
4,787 | public GetHostedZoneRequest(String id) {setId(id);}
| public GetHostedZoneRequest(string id){_id = id;}
|
4,788 | public List<File> getUpdatedFiles() {return updatedFiles;}
| public virtual IList<FilePath> GetUpdatedFiles(){return updatedFiles;}
|
4,789 | public DeleteDhcpOptionsRequest(String dhcpOptionsId) {setDhcpOptionsId(dhcpOptionsId);}
| public DeleteDhcpOptionsRequest(string dhcpOptionsId){_dhcpOptionsId = dhcpOptionsId;}
|
4,790 | public QueryPhraseMap getTermMap( String term ){return subMap.get( term );}
| public virtual QueryPhraseMap GetTermMap(string term){QueryPhraseMap result;subMap.TryGetValue(term, out result);return result;}
|
4,791 | public PutConfigurationSetDeliveryOptionsResult putConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request) {request = beforeClientExecution(request);return executePutConfigurationSetDeliveryOptions(request);}
| public virtual PutConfigurationSetDeliveryOptionsResponse PutConfigurationSetDeliveryOptions(PutConfigurationSetDeliveryOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutConfigurationSetDeliveryOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutConfigurationSetDeliveryOptionsResponseUnmarshaller.Instance;return Invoke<PutConfigurationSetDeliveryOptionsResponse>(request, options);}
|
4,792 | public ChartRecord(RecordInputStream in) {field_1_x = in.readInt();field_2_y = in.readInt();field_3_width = in.readInt();field_4_height = in.readInt();}
| public ChartRecord(RecordInputStream in1){field_1_x = in1.ReadInt();field_2_y = in1.ReadInt();field_3_width = in1.ReadInt();field_4_height = in1.ReadInt();}
|
4,793 | public ListTaskDefinitionsResult listTaskDefinitions(ListTaskDefinitionsRequest request) {request = beforeClientExecution(request);return executeListTaskDefinitions(request);}
| public virtual ListTaskDefinitionsResponse ListTaskDefinitions(ListTaskDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTaskDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTaskDefinitionsResponseUnmarshaller.Instance;return Invoke<ListTaskDefinitionsResponse>(request, options);}
|
4,794 | public String getRawPath() {return rawPath;}
| public virtual string GetRawPath(){return rawPath;}
|
4,795 | public IndexRecord(RecordInputStream in) {int field_1_zero = in.readInt();if (field_1_zero != 0) {throw new RecordFormatException("Expected zero for field 1 but got " + field_1_zero);}field_2_first_row = in.readInt();field_3_last_row_add1 = in.readInt();field_4_zero = in.readInt();int nCells = in.remaining() / 4;field_5_dbcells = new IntList(nCells);for(int i=0; i<nCells; i++) {field_5_dbcells.add(in.readInt());}}
| public IndexRecord(RecordInputStream in1){field_1_zero = in1.ReadInt();if (field_1_zero != 0){throw new RecordFormatException("Expected zero for field 1 but got " + field_1_zero);}field_2_first_row = in1.ReadInt();field_3_last_row_add1 = in1.ReadInt();field_4_zero = in1.ReadInt();int nCells = in1.Remaining / 4;field_5_dbcells =new IntList(nCells); for (int i = 0; i < nCells; i++){field_5_dbcells.Add(in1.ReadInt());}}
|
4,796 | public Class<? extends Enum> enumType() {return enumType;}
| public virtual System.Type enumType(){return _enumType;}
|
4,797 | public boolean isSupportedType(final int variantType) {for (int st : SUPPORTED_TYPES) {if (variantType == st) {return true;}}return false;}
| public bool IsSupportedType(int variantType){for (int i = 0; i < SUPPORTED_TYPES.Length; i++)if (variantType == SUPPORTED_TYPES[i])return true;return false;}
|
4,798 | public PersonIdent getSourceCommitter(int idx) {return sourceCommitters[idx];}
| public virtual PersonIdent GetSourceCommitter(int idx){return sourceCommitters[idx];}
|
4,799 | public RemoveTagsRequest(String resourceId, java.util.List<String> tagKeys) {setResourceId(resourceId);setTagKeys(tagKeys);}
| public RemoveTagsRequest(string resourceId, List<string> tagKeys){_resourceId = resourceId;_tagKeys = tagKeys;}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.