id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
5,600 | public Tag(String key) {setKey(key);}
| public Tag(string key){_key = key;}
|
5,601 | public InactivatePhotosRequest() {super("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| public InactivatePhotosRequest(): base("CloudPhoto", "2017-07-11", "InactivatePhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
5,602 | public DescribeEventSubscriptionsResult describeEventSubscriptions() {return describeEventSubscriptions(new DescribeEventSubscriptionsRequest());}
| public virtual DescribeEventSubscriptionsResponse DescribeEventSubscriptions(){return DescribeEventSubscriptions(new DescribeEventSubscriptionsRequest());}
|
5,603 | public short get(int index) {checkIndex(index);return byteBuffer.getShort(index * SizeOf.SHORT);}
| public override short get(int index){checkIndex(index);return byteBuffer.getShort(index * libcore.io.SizeOf.SHORT);}
|
5,604 | public boolean isExportAll() {return exportAll;}
| public virtual bool IsExportAll(){return exportAll;}
|
5,605 | public static void validateSecondArg(int comparisonOperator, String paramValue) {switch (comparisonOperator) {case BETWEEN:case NOT_BETWEEN:if (paramValue == null) {throw new IllegalArgumentException("expr2 must be supplied for 'between' comparisons");}}}
| public static void ValidateSecondArg(int comparisonOperator, String paramValue){switch (comparisonOperator){case BETWEEN:if (paramValue == null){throw new ArgumentException("expr2 must be supplied for 'between' comparisons");}break;case NOT_BETWEEN:if (paramValue == null){throw new ArgumentException("expr2 must be supplied for 'between' comparisons");}break;}}
|
5,606 | public V next() {V v = nextValue;advance();return v;}
| public override V next(){return this.nextEntry().value;}
|
5,607 | public UpdateSchemaResult updateSchema(UpdateSchemaRequest request) {request = beforeClientExecution(request);return executeUpdateSchema(request);}
| public virtual UpdateSchemaResponse UpdateSchema(UpdateSchemaRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSchemaRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSchemaResponseUnmarshaller.Instance;return Invoke<UpdateSchemaResponse>(request, options);}
|
5,608 | public PortugueseMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public PortugueseMinimalStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
5,609 | public SeriesChartGroupIndexRecord(RecordInputStream in) {field_1_chartGroupIndex = in.readShort();}
| public SeriesChartGroupIndexRecord(RecordInputStream in1){field_1_chartGroupIndex = in1.ReadShort();}
|
5,610 | public ValueEval evaluate(int srcCellRow, int srcCellCol) {return ErrorEval.NA;}
| public override ValueEval Evaluate(int srcCellRow, int srcCellCol){return ErrorEval.NA;}
|
5,611 | public E get(int key) {return get(key, null);}
| public virtual E get(int key){return get(key, default(E));}
|
5,612 | public DescribeComponentConfigurationResult describeComponentConfiguration(DescribeComponentConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeComponentConfiguration(request);}
| public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeComponentConfigurationResponse>(request, options);}
|
5,613 | public CellRangeAddressList copy() {CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.size();for (int k = 0; k < nItems; k++) {CellRangeAddress region = _list.get(k);result.addCellRangeAddress(region.copy());}return result;}
| public CellRangeAddressList Copy(){CellRangeAddressList result = new CellRangeAddressList();int nItems = _list.Count;for (int k = 0; k < nItems; k++){CellRangeAddress region = (CellRangeAddress)_list[k];result.AddCellRangeAddress(region.Copy());}return result;}
|
5,614 | public DescribeClientVpnAuthorizationRulesResult describeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnAuthorizationRules(request);}
| public virtual DescribeClientVpnAuthorizationRulesResponse DescribeClientVpnAuthorizationRules(DescribeClientVpnAuthorizationRulesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnAuthorizationRulesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnAuthorizationRulesResponseUnmarshaller.Instance;return Invoke<DescribeClientVpnAuthorizationRulesResponse>(request, options);}
|
5,615 | public HSSFConditionalFormattingRule getRule(int idx) {CFRuleBase ruleRecord = cfAggregate.getRule(idx);return new HSSFConditionalFormattingRule(sheet, ruleRecord);}
| public IConditionalFormattingRule GetRule(int idx){CFRuleRecord ruleRecord = cfAggregate.GetRule(idx);return new HSSFConditionalFormattingRule(_workbook, ruleRecord);}
|
5,616 | public final Ref getAdvertisedRef(String name) {return advertisedRefs.get(name);}
| public Ref GetAdvertisedRef(string name){return advertisedRefs.Get(name);}
|
5,617 | public int getType() {return delegate().getType();}
| public override int GetType(){return type;}
|
5,618 | public DeleteCustomVerificationEmailTemplateResult deleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteCustomVerificationEmailTemplate(request);}
| public virtual DeleteCustomVerificationEmailTemplateResponse DeleteCustomVerificationEmailTemplate(DeleteCustomVerificationEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCustomVerificationEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCustomVerificationEmailTemplateResponseUnmarshaller.Instance;return Invoke<DeleteCustomVerificationEmailTemplateResponse>(request, options);}
|
5,619 | public void setRefLogMessage(String msg) {if (msg == null)disableRefLog();elsedestination.setRefLogMessage(msg, false);}
| public virtual void SetRefLogMessage(string msg){if (msg == null){DisableRefLog();}else{destination.SetRefLogMessage(msg, false);}}
|
5,620 | public CreateVpcEndpointConnectionNotificationResult createVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request) {request = beforeClientExecution(request);return executeCreateVpcEndpointConnectionNotification(request);}
| public virtual CreateVpcEndpointConnectionNotificationResponse CreateVpcEndpointConnectionNotification(CreateVpcEndpointConnectionNotificationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateVpcEndpointConnectionNotificationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateVpcEndpointConnectionNotificationResponseUnmarshaller.Instance;return Invoke<CreateVpcEndpointConnectionNotificationResponse>(request, options);}
|
5,621 | public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0) {int rnum;if (arg0 instanceof AreaEval) {rnum = ((AreaEval) arg0).getFirstColumn();} else if (arg0 instanceof RefEval) {rnum = ((RefEval) arg0).getColumn();} else {return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}
| public ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0){int rnum;if (arg0 is AreaEval){rnum = ((AreaEval)arg0).FirstColumn;}else if (arg0 is RefEval){rnum = ((RefEval)arg0).Column;}else{return ErrorEval.VALUE_INVALID;}return new NumberEval(rnum + 1);}
|
5,622 | public CompleteMultipartUploadRequest(String accountId, String vaultName, String uploadId, String archiveSize, String checksum) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);setArchiveSize(archiveSize);setChecksum(checksum);}
| public CompleteMultipartUploadRequest(string accountId, string vaultName, string uploadId, string archiveSize, string checksum){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;_archiveSize = archiveSize;_checksum = checksum;}
|
5,623 | public void clearRect(int x, int y, int width, int height){Color color = foreground;setColor(background);fillRect(x,y,width,height);setColor(color);}
| public void ClearRect(int x, int y, int width, int height){Color color = foreground;SetColor(background);FillRect(x, y, width, height);SetColor(color);}
|
5,624 | public String getRawFragment() {return fragment;}
| public string getRawFragment(){return fragment;}
|
5,625 | public String toString() {StringBuilder s = new StringBuilder();for(int i=0;i<count;i++) {if (i > 0) {s.append(' ');}s.append(points[i].point).append(':').append(points[i].starts.next/3).append(',').append(points[i].ends.next/3);}return s.toString();}
| public override string ToString(){StringBuilder s = new StringBuilder();for (int i = 0; i < count; i++){if (i > 0){s.Append(' ');}s.Append(points[i].point).Append(':').Append(points[i].starts.count).Append(',').Append(points[i].ends.count);}return s.ToString();}
|
5,626 | public static double sinh(double d) {double ePowX = Math.pow(Math.E, d);double ePowNegX = Math.pow(Math.E, -d);return (ePowX - ePowNegX) / 2;}
| public static double Sinh(double d){double ePowX = Math.Pow(Math.E, d);double ePowNegX = Math.Pow(Math.E, -d);d = (ePowX - ePowNegX) / 2;return d;}
|
5,627 | public GetMembersResult getMembers(GetMembersRequest request) {request = beforeClientExecution(request);return executeGetMembers(request);}
| public virtual GetMembersResponse GetMembers(GetMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetMembersResponseUnmarshaller.Instance;return Invoke<GetMembersResponse>(request, options);}
|
5,628 | public HSSFPatternFormatting createPatternFormatting(){return getPatternFormatting(true);}
| public IPatternFormatting CreatePatternFormatting(){return GetPatternFormatting(true);}
|
5,629 | public DeleteSpotDatafeedSubscriptionResult deleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteSpotDatafeedSubscription(request);}
| public virtual DeleteSpotDatafeedSubscriptionResponse DeleteSpotDatafeedSubscription(DeleteSpotDatafeedSubscriptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteSpotDatafeedSubscriptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteSpotDatafeedSubscriptionResponseUnmarshaller.Instance;return Invoke<DeleteSpotDatafeedSubscriptionResponse>(request, options);}
|
5,630 | public RevFilter clone() {return new SkipRevFilter(skip);}
| public override RevFilter Clone(){return new NGit.Revwalk.Filter.SkipRevFilter(skip);}
|
5,631 | public BinarySearchIndexes(int highIx) {_lowIx = -1;_highIx = highIx;}
| public BinarySearchIndexes(int highIx){_lowIx = -1;_highIx = highIx;}
|
5,632 | public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {return SrndBooleanQuery.makeBooleanQuery(makeLuceneSubQueriesField(fieldName, qf), BooleanClause.Occur.SHOULD);}
| public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){return SrndBooleanQuery.MakeBooleanQuery(MakeLuceneSubQueriesField(fieldName, qf), Occur.SHOULD);}
|
5,633 | public static CloneCommand cloneRepository() {return new CloneCommand();}
| public static CloneCommand CloneRepository(){return new CloneCommand();}
|
5,634 | public EnableMetricsCollectionResult enableMetricsCollection(EnableMetricsCollectionRequest request) {request = beforeClientExecution(request);return executeEnableMetricsCollection(request);}
| public virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance;return Invoke<EnableMetricsCollectionResponse>(request, options);}
|
5,635 | public DescribePlayerSessionsResult describePlayerSessions(DescribePlayerSessionsRequest request) {request = beforeClientExecution(request);return executeDescribePlayerSessions(request);}
| public virtual DescribePlayerSessionsResponse DescribePlayerSessions(DescribePlayerSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribePlayerSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribePlayerSessionsResponseUnmarshaller.Instance;return Invoke<DescribePlayerSessionsResponse>(request, options);}
|
5,636 | public UpdateDocumentVersionResult updateDocumentVersion(UpdateDocumentVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDocumentVersion(request);}
| public virtual UpdateDocumentVersionResponse UpdateDocumentVersion(UpdateDocumentVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDocumentVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDocumentVersionResponseUnmarshaller.Instance;return Invoke<UpdateDocumentVersionResponse>(request, options);}
|
5,637 | public TagCommand setTagger(PersonIdent tagger) {this.tagger = tagger;return this;}
| public virtual NGit.Api.TagCommand SetTagger(PersonIdent tagger){this.tagger = tagger;return this;}
|
5,638 | public void setCellValue(boolean value) {int row=_record.getRow();short col=_record.getColumn();short styleIndex=_record.getXFIndex();switch (_cellType) {default:setCellType(CellType.BOOLEAN, false, row, col, styleIndex);case BOOLEAN:(( BoolErrRecord ) _record).setValue(value);break;case FORMULA:((FormulaRecordAggregate)_record).setCachedBooleanResult(value);break;}}
| public void SetCellValue(double value){if(double.IsInfinity(value)){SetCellErrorValue(FormulaError.DIV0.Code);}else if (double.IsNaN(value)){SetCellErrorValue(FormulaError.NUM.Code);}else{int row = _record.Row;int col = _record.Column;short styleIndex = _record.XFIndex;switch (cellType){case CellType.Numeric:((NumberRecord)_record).Value = value;break;case CellType.Formula:((FormulaRecordAggregate)_record).SetCachedDoubleResult(value);break;default:SetCellType(CellType.Numeric, false, row, col, styleIndex);((NumberRecord)_record).Value = value;break;}}}
|
5,639 | public PatternReplaceFilterFactory(Map<String, String> args) {super(args);pattern = getPattern(args, "pattern");replacement = get(args, "replacement");replaceAll = "all".equals(get(args, "replace", Arrays.asList("all", "first"), "all"));if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public PatternReplaceFilterFactory(IDictionary<string, string> args) : base(args){pattern = GetPattern(args, "pattern");replacement = Get(args, "replacement");replaceAll = "all".Equals(Get(args, "replace", new string[] { "all", "first" }, "all"), StringComparison.Ordinal);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
5,640 | public List<T> asList(Object output) {if (!(output instanceof List)) {List<T> result = new ArrayList<>(1);result.add((T) output);return result;} else {return (List<T>) output;}}
| public IList<T> AsList(object output){if (!(output is IList<T> outputList)){return new JCG.List<T>(1) { (T)output };}else{return outputList;}}
|
5,641 | public FooterKey(String keyName) {name = keyName;raw = Constants.encode(keyName.toLowerCase(Locale.ROOT));}
| public FooterKey(string keyName){name = keyName;raw = Constants.Encode(keyName.ToLower());}
|
5,642 | public List<Token> getTokens() { return tokens; }
| public virtual IList<IToken> GetTokens(){return tokens;}
|
5,643 | public DeleteTaskSetResult deleteTaskSet(DeleteTaskSetRequest request) {request = beforeClientExecution(request);return executeDeleteTaskSet(request);}
| public virtual DeleteTaskSetResponse DeleteTaskSet(DeleteTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTaskSetResponseUnmarshaller.Instance;return Invoke<DeleteTaskSetResponse>(request, options);}
|
5,644 | public DescribeLifecycleConfigurationResult describeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleConfiguration(request);}
| public virtual DescribeLifecycleConfigurationResponse DescribeLifecycleConfiguration(DescribeLifecycleConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeLifecycleConfigurationResponse>(request, options);}
|
5,645 | public DescribeNodegroupResult describeNodegroup(DescribeNodegroupRequest request) {request = beforeClientExecution(request);return executeDescribeNodegroup(request);}
| public virtual DescribeNodegroupResponse DescribeNodegroup(DescribeNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNodegroupResponseUnmarshaller.Instance;return Invoke<DescribeNodegroupResponse>(request, options);}
|
5,646 | public CustomProperty() {this.name = null;}
| public CustomProperty(){this.name = null;}
|
5,647 | public DeleteDirectConnectGatewayResult deleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request) {request = beforeClientExecution(request);return executeDeleteDirectConnectGateway(request);}
| public virtual DeleteDirectConnectGatewayResponse DeleteDirectConnectGateway(DeleteDirectConnectGatewayRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDirectConnectGatewayRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDirectConnectGatewayResponseUnmarshaller.Instance;return Invoke<DeleteDirectConnectGatewayResponse>(request, options);}
|
5,648 | public AddCommand(Repository repo) {super(repo);filepatterns = new LinkedList<>();}
| protected internal AddCommand(Repository repo) : base(repo){filepatterns = new List<string>();}
|
5,649 | public UpdateStageResult updateStage(UpdateStageRequest request) {request = beforeClientExecution(request);return executeUpdateStage(request);}
| public virtual UpdateStageResponse UpdateStage(UpdateStageRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStageRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStageResponseUnmarshaller.Instance;return Invoke<UpdateStageResponse>(request, options);}
|
5,650 | public ModifyIdFormatResult modifyIdFormat(ModifyIdFormatRequest request) {request = beforeClientExecution(request);return executeModifyIdFormat(request);}
| public virtual ModifyIdFormatResponse ModifyIdFormat(ModifyIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyIdFormatResponseUnmarshaller.Instance;return Invoke<ModifyIdFormatResponse>(request, options);}
|
5,651 | public RemoveRoleFromDBClusterResult removeRoleFromDBCluster(RemoveRoleFromDBClusterRequest request) {request = beforeClientExecution(request);return executeRemoveRoleFromDBCluster(request);}
| public virtual RemoveRoleFromDBClusterResponse RemoveRoleFromDBCluster(RemoveRoleFromDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveRoleFromDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveRoleFromDBClusterResponseUnmarshaller.Instance;return Invoke<RemoveRoleFromDBClusterResponse>(request, options);}
|
5,652 | public E set(int location, E object) {if (location >= 0 && location < size) {Link<E> link = voidLink;if (location < (size / 2)) {for (int i = 0; i <= location; i++) {link = link.next;}} else {for (int i = size; i > location; i--) {link = link.previous;}}E result = link.data;link.data = object;return result;}throw new IndexOutOfBoundsException();}
| public override E set(int location, E @object){if (location >= 0 && location < _size){java.util.LinkedList.Link<E> link = voidLink;if (location < (_size / 2)){{for (int i = 0; i <= location; i++){link = link.next;}}}else{{for (int i = _size; i > location; i--){link = link.previous;}}}E result = link.data;link.data = @object;return result;}throw new System.IndexOutOfRangeException();}
|
5,653 | public ListPhoneNumbersResult listPhoneNumbers(ListPhoneNumbersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumbers(request);}
| public virtual ListPhoneNumbersResponse ListPhoneNumbers(ListPhoneNumbersRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListPhoneNumbersRequestMarshaller.Instance;options.ResponseUnmarshaller = ListPhoneNumbersResponseUnmarshaller.Instance;return Invoke<ListPhoneNumbersResponse>(request, options);}
|
5,654 | public GermanNormalizationFilter(TokenStream input) {super(input);}
| public GermanNormalizationFilter(TokenStream input): base(input){termAtt = AddAttribute<ICharTermAttribute>();}
|
5,655 | @Override public boolean equals(Object object) {return list.equals(object);}
| public override bool Equals(object @object){return list.Equals(@object);}
|
5,656 | public PullCommand pull() {return new PullCommand(repo);}
| public virtual PullCommand Pull(){return new PullCommand(repo);}
|
5,657 | public String toString() {return "ALL"; }
| public override string ToString(){return "ALL";}
|
5,658 | public CreateIngestionResult createIngestion(CreateIngestionRequest request) {request = beforeClientExecution(request);return executeCreateIngestion(request);}
| public virtual CreateIngestionResponse CreateIngestion(CreateIngestionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIngestionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIngestionResponseUnmarshaller.Instance;return Invoke<CreateIngestionResponse>(request, options);}
|
5,659 | public StashCreateCommand(Repository repo) {super(repo);person = new PersonIdent(repo);}
| protected internal StashCreateCommand(Repository repo) : base(repo){person = new PersonIdent(repo);}
|
5,660 | public final ShortBuffer asShortBuffer() {return ShortToByteBufferAdapter.asShortBuffer(this);}
| public sealed override java.nio.ShortBuffer asShortBuffer(){return java.nio.ShortToByteBufferAdapter.asShortBuffer(this);}
|
5,661 | public FeatSmartTag() {data = new byte[0];}
| public FeatSmartTag(){data = new byte[0];}
|
5,662 | public LogCommand setSkip(int skip) {checkCallable();this.skip = skip;return this;}
| public virtual NGit.Api.LogCommand SetSkip(int skip){CheckCallable();this.skip = skip;return this;}
|
5,663 | public Ptg[] getFormulaTokens(FormulaRecord formula) {int formulaRow = formula.getRow();int formulaColumn = formula.getColumn();if (!isInRange(formulaRow, formulaColumn)) {throw new RuntimeException("Shared Formula Conversion: Coding Error");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.convertSharedFormulas(field_7_parsed_expr.getTokens(), formulaRow, formulaColumn);}
| public Ptg[] GetFormulaTokens(FormulaRecord formula){int formulaRow = formula.Row;int formulaColumn = formula.Column;if (!IsInRange(formulaRow, formulaColumn)){throw new Exception("Shared Formula Conversion: Coding Error");}SharedFormula sf = new SharedFormula(SpreadsheetVersion.EXCEL97);return sf.ConvertSharedFormulas(field_7_parsed_expr.Tokens, formulaRow, formulaColumn);}
|
5,664 | public int regionEnd() {return regionEnd;}
| public int regionEnd(){return _regionEnd;}
|
5,665 | public int getBehindCount() {return behindCount;}
| public virtual int GetBehindCount(){return behindCount;}
|
5,666 | public void encode(int[] values, int valuesOffset, long[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {blocks[blocksOffset++] = encode(values, valuesOffset);valuesOffset += valueCount;}}
| public override void Encode(int[] values, int valuesOffset, long[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){blocks[blocksOffset++] = Encode(values, valuesOffset);valuesOffset += valueCount;}}
|
5,667 | public PutImageScanningConfigurationResult putImageScanningConfiguration(PutImageScanningConfigurationRequest request) {request = beforeClientExecution(request);return executePutImageScanningConfiguration(request);}
| public virtual PutImageScanningConfigurationResponse PutImageScanningConfiguration(PutImageScanningConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutImageScanningConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = PutImageScanningConfigurationResponseUnmarshaller.Instance;return Invoke<PutImageScanningConfigurationResponse>(request, options);}
|
5,668 | public BlameCommand blame() {return new BlameCommand(repo);}
| public virtual BlameCommand Blame(){return new BlameCommand(repo);}
|
5,669 | public BytesRef textToBytesRef() {return new BytesRef(text);}
| public virtual BytesRef TextToBytesRef(){return new BytesRef(text.ToString());}
|
5,670 | public int compareTo(DoubleBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;double thisDouble, otherDouble;while (compareRemaining > 0) {thisDouble = get(thisPos);otherDouble = otherBuffer.get(otherPos);if ((thisDouble != otherDouble)&& ((thisDouble == thisDouble) || (otherDouble == otherDouble))) {return thisDouble < otherDouble ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
| public virtual int compareTo(java.nio.DoubleBuffer otherBuffer){int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining();int thisPos = _position;int otherPos = otherBuffer._position;double thisDouble;double otherDouble;while (compareRemaining > 0){thisDouble = get(thisPos);otherDouble = otherBuffer.get(otherPos);if ((thisDouble != otherDouble) && ((thisDouble == thisDouble) || (otherDouble ==otherDouble))){return thisDouble < otherDouble ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
|
5,671 | public CreateIpGroupResult createIpGroup(CreateIpGroupRequest request) {request = beforeClientExecution(request);return executeCreateIpGroup(request);}
| public virtual CreateIpGroupResponse CreateIpGroup(CreateIpGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateIpGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateIpGroupResponseUnmarshaller.Instance;return Invoke<CreateIpGroupResponse>(request, options);}
|
5,672 | public synchronized E set(int index, E e) {Object[] newElements = elements.clone();@SuppressWarnings("unchecked")E result = (E) newElements[index];newElements[index] = e;elements = newElements;return result;}
| public virtual E set(int index, E e){lock (this){object[] newElements = (object[])elements.Clone();E result = (E)newElements[index];newElements[index] = e;elements = newElements;return result;}}
|
5,673 | public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(":");buffer.append(operands[ 1 ]);return buffer.toString();}
| public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(":");buffer.Append(operands[1]);return buffer.ToString();}
|
5,674 | public synchronized String substring(int start, int end) {return super.substring(start, end);}
| public override string substring(int start, int end){lock (this){return base.substring(start, end);}}
|
5,675 | public static TreeFilter create(TreeFilter a, TreeFilter b) {if (a == ALL)return b;if (b == ALL)return a;return new Binary(a, b);}
| public static TreeFilter Create(TreeFilter a, TreeFilter b){if (a == ALL){return b;}if (b == ALL){return a;}return new AndTreeFilter.Binary(a, b);}
|
5,676 | public static String authoritySafePath(String authority, String path) {if (authority != null && !authority.isEmpty() && !path.isEmpty() && !path.startsWith("/")) {return "/" + path;}return path;}
| public static string authoritySafePath(string authority, string path){if (authority != null && !string.IsNullOrEmpty(authority) && !string.IsNullOrEmpty(path) && !path.StartsWith("/")){return "/" + path;}return path;}
|
5,677 | public final void smudgeRacilyClean() {final int base = infoOffset + P_SIZE;Arrays.fill(info, base, base + 4, (byte) 0);}
| public void SmudgeRacilyClean(){int @base = infoOffset + P_SIZE;Arrays.Fill(info, @base, @base + 4, unchecked((byte)0));}
|
5,678 | public SeriesListRecord clone() {return copy();}
| public override Object Clone(){return new SeriesListRecord((short[])field_1_seriesNumbers.Clone());}
|
5,679 | public void decode(){if (null == escherRecords || 0 == escherRecords.size()){byte[] rawData = getRawData();convertToEscherRecords(0, rawData.length, rawData );}}
| public void Decode(){if (null == escherRecords || 0 == escherRecords.Count){byte[] rawData = RawData;ConvertToEscherRecords(0, rawData.Length, rawData);}}
|
5,680 | public RemoveAutoScalingPolicyResult removeAutoScalingPolicy(RemoveAutoScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveAutoScalingPolicy(request);}
| public virtual RemoveAutoScalingPolicyResponse RemoveAutoScalingPolicy(RemoveAutoScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveAutoScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveAutoScalingPolicyResponseUnmarshaller.Instance;return Invoke<RemoveAutoScalingPolicyResponse>(request, options);}
|
5,681 | public byte readByte() {assert !eof();assert upto <= limit;if (upto == limit)nextSlice();return buffer[upto++];}
| public override byte ReadByte(){Debug.Assert(!Eof());Debug.Assert(upto <= limit);if (upto == limit){NextSlice();}return (byte)buffer[upto++];}
|
5,682 | public CreateAliasResult createAlias(CreateAliasRequest request) {request = beforeClientExecution(request);return executeCreateAlias(request);}
| public virtual CreateAliasResponse CreateAlias(CreateAliasRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAliasRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAliasResponseUnmarshaller.Instance;return Invoke<CreateAliasResponse>(request, options);}
|
5,683 | public boolean markSupported() {return in.markSupported();}
| public override bool markSupported(){return @in.markSupported();}
|
5,684 | public String getRawSchemeSpecificPart() {return schemeSpecificPart;}
| public string getRawSchemeSpecificPart(){return schemeSpecificPart;}
|
5,685 | public CreateRouteResponseResult createRouteResponse(CreateRouteResponseRequest request) {request = beforeClientExecution(request);return executeCreateRouteResponse(request);}
| public virtual CreateRouteResponseResponse CreateRouteResponse(CreateRouteResponseRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateRouteResponseRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateRouteResponseResponseUnmarshaller.Instance;return Invoke<CreateRouteResponseResponse>(request, options);}
|
5,686 | public void remove() {if (lastEntryReturned == null)throw new IllegalStateException();if (modCount != expectedModCount)throw new ConcurrentModificationException();HashMap.this.remove(lastEntryReturned.key);lastEntryReturned = null;expectedModCount = modCount;}
| public virtual void remove(){if (this.lastEntryReturned == null){throw new System.InvalidOperationException();}if (this._enclosing.modCount != this.expectedModCount){throw new java.util.ConcurrentModificationException();}this._enclosing.remove(this.lastEntryReturned.key);this.lastEntryReturned = null;this.expectedModCount = this._enclosing.modCount;}
|
5,687 | public void put(int key, E value) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {mValues[i] = value;} else {i = ~i;if (i < mSize && mValues[i] == DELETED) {mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.length) {gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(mSize + 1);int[] nkeys = new int[n];Object[] nvalues = new Object[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0) {System.arraycopy(mKeys, i, mKeys, i + 1, mSize - i);System.arraycopy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}
| public virtual void put(int key, E value){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){mValues[i] = value;}else{i = ~i;if (i < mSize && mValues[i] == DELETED){mKeys[i] = key;mValues[i] = value;return;}if (mGarbage && mSize >= mKeys.Length){gc();i = ~binarySearch(mKeys, 0, mSize, key);}if (mSize >= mKeys.Length){int n = [email protected](mSize + 1);int[] nkeys = new int[n];object[] nvalues = new object[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}if (mSize - i != 0){System.Array.Copy(mKeys, i, mKeys, i + 1, mSize - i);System.Array.Copy(mValues, i, mValues, i + 1, mSize - i);}mKeys[i] = key;mValues[i] = value;mSize++;}}
|
5,688 | public boolean equals(Object obj) {if (obj == this) {return true;}else if (!(obj instanceof LexerCustomAction)) {return false;}LexerCustomAction other = (LexerCustomAction)obj;return ruleIndex == other.ruleIndex&& actionIndex == other.actionIndex;}
| public override bool Equals(object obj){if (obj == this){return true;}else{if (!(obj is Antlr4.Runtime.Atn.LexerCustomAction)){return false;}}Antlr4.Runtime.Atn.LexerCustomAction other = (Antlr4.Runtime.Atn.LexerCustomAction)obj;return ruleIndex == other.ruleIndex && actionIndex == other.actionIndex;}
|
5,689 | public void seekExact(BytesRef term, TermState state) throws IOException {throw new UnsupportedOperationException(getClass().getName()+" does not support seeking");}
| public override void SeekExact(BytesRef term, TermState state){throw new System.NotSupportedException(this.GetType().Name + " does not support seeking");}
|
5,690 | public void readBytes(byte[] b, int offset, int len) {assert b.length >= offset + len;final int offsetEnd = offset + len;while (true) {final int blockLeft = blockSize - currentBlockUpto;final int left = offsetEnd - offset;if (blockLeft < left) {System.arraycopy(currentBlock, currentBlockUpto,b, offset,blockLeft);nextBlock();offset += blockLeft;} else {System.arraycopy(currentBlock, currentBlockUpto,b, offset,left);currentBlockUpto += left;break;}}}
| public override void ReadBytes(byte[] b, int offset, int len){Debug.Assert(b.Length >= offset + len);int offsetEnd = offset + len;while (true){int blockLeft = outerInstance.blockSize - currentBlockUpto;int left = offsetEnd - offset;if (blockLeft < left){System.Buffer.BlockCopy(currentBlock, currentBlockUpto, b, offset, blockLeft);NextBlock();offset += blockLeft;}else{System.Buffer.BlockCopy(currentBlock, currentBlockUpto, b, offset, left);currentBlockUpto += left;break;}}}
|
5,691 | public FileResolver(File basePath, boolean exportAll) {this();exportDirectory(basePath);setExportAll(exportAll);}
| public FileResolver(FilePath basePath, bool exportAll) : this(){ExportDirectory(basePath);SetExportAll(exportAll);}
|
5,692 | @Override public void add(int location, E object) {synchronized (mutex) {list.add(location, object);}}
| public virtual void add(int location, E @object){lock (mutex){list.add(location, @object);}}
|
5,693 | public String replaceFirst(String replacement) {reset();StringBuffer buffer = new StringBuffer(input.length());if (find()) {appendReplacement(buffer, replacement);}return appendTail(buffer).toString();}
| public string replaceFirst(string replacement){reset();java.lang.StringBuffer buffer = new java.lang.StringBuffer(input.Length);if (find()){appendReplacement(buffer, replacement);}return appendTail(buffer).ToString();}
|
5,694 | public String format2DRefAsString() {return formatReferenceAsString();}
| public String Format2DRefAsString(){return FormatReferenceAsString();}
|
5,695 | public static String trimFromLast(String str, String stripString) {int pos = str.lastIndexOf(stripString);if (pos > -1) {return str.substring(0, pos);} else {return str;}}
| public static string TrimFromLast(string str, string stripString){var pos = str.LastIndexOf(stripString);if (pos > -1){return str.Substring(0, pos);}return str;}
|
5,696 | public float hyperbolicTf(float freq) {if (0.0f == freq) return 0.0f;final float min = tf_hyper_min;final float max = tf_hyper_max;final double base = tf_hyper_base;final float xoffset = tf_hyper_xoffset;final double x = (double)(freq - xoffset);final float result = min +(float)((max-min) / 2.0f*(( ( Math.pow(base,x) - Math.pow(base,-x) )/ ( Math.pow(base,x) + Math.pow(base,-x) ))+ 1.0d));return Float.isNaN(result) ? max : result;}
| public virtual float HyperbolicTf(float freq){if (0.0f == freq){return 0.0f;}float min = tf_hyper_min;float max = tf_hyper_max;double @base = tf_hyper_base;float xoffset = tf_hyper_xoffset;double x = (double)(freq - xoffset);float result = min + (float)((max - min) / 2.0f * (((Math.Pow(@base, x) - Math.Pow(@base, -x)) / (Math.Pow(@base, x) + Math.Pow(@base, -x))) + 1.0d));return float.IsNaN(result) ? max : result;}
|
5,697 | public void setConfig(Config config) {super.setConfig(config);sortRange = config.get("sort.rng", 20000);r = new Random(config.get("rand.seed", 13));}
| public override void SetConfig(Config config){base.SetConfig(config);sortRange = config.Get("sort.rng", 20000);r = new Random(config.Get("rand.seed", 13));}
|
5,698 | public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<<j)) != 0) {la1tokens[j] = true;}if ((jj_la1_1[i] & (1<<j)) != 0) {la1tokens[32+j] = true;}}}}for (int i = 0; i < 33; i++) {if (la1tokens[i]) {jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.add(jj_expentry);}}jj_endpos = 0;jj_rescan_token();jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.size()][];for (int i = 0; i < jj_expentries.size(); i++) {exptokseq[i] = jj_expentries.get(i);}return new ParseException(token, exptokseq, tokenImage);}
| public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[34];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 28; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 34; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, StandardSyntaxParserConstants.TokenImage);}
|
5,699 | public int addConditionalFormatting(CellRangeAddress[] regions,ConditionalFormattingRule rule1) {return addConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}
| public int AddConditionalFormatting(CellRangeAddress[] regions,IConditionalFormattingRule rule1){return AddConditionalFormatting(regions, (HSSFConditionalFormattingRule)rule1);}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.