java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public ResetClusterParameterGroupResult resetClusterParameterGroup(ResetClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetClusterParameterGroup(request);} | public virtual ResetClusterParameterGroupResponse ResetClusterParameterGroup(ResetClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetClusterParameterGroupResponse>(request, options);} |
public void mark(int readlimit) {in.mark(readlimit);} | public override void Mark(int readlimit){@in.Mark(readlimit);} |
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PASSWORD]\n");buffer.append(" .password = ").append(HexDump.shortToHex(field_1_password)).append("\n");buffer.append("[/PASSWORD]\n");return buffer.toString();} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PASSWORD]\n");buffer.Append(" .password = ").Append(StringUtil.ToHexString(Password)).Append("\n");buffer.Append("[/PASSWORD]\n");return buffer.ToString();} |
public SendTemplatedEmailResult sendTemplatedEmail(SendTemplatedEmailRequest request) {request = beforeClientExecution(request);return executeSendTemplatedEmail(request);} | public virtual SendTemplatedEmailResponse SendTemplatedEmail(SendTemplatedEmailRequest request){var options = new InvokeOptions();options.RequestMarshaller = SendTemplatedEmailRequestMarshaller.Instance;options.ResponseUnmarshaller = SendTemplatedEmailResponseUnmarshaller.Instance;return Invoke<SendTemplatedEmailResponse>(request, options);} |
public boolean equals(Object obj) {if ( !(obj instanceof Predicate) ) return false;if ( this == obj ) return true;Predicate p = (Predicate)obj;return this.ruleIndex == p.ruleIndex &&this.predIndex == p.predIndex &&this.isCtxDependent == p.isCtxDependent;} | public override bool Equals(object obj){if (!(obj is SemanticContext.Predicate)){return false;}if (this == obj){return true;}SemanticContext.Predicate p = (SemanticContext.Predicate)obj;return this.ruleIndex == p.ruleIndex && this.predIndex == p.predIndex && this.isCtxDependent == p.isCtxDependent;} |
public void writeBoolean(boolean value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBoolean(value);} | public virtual void writeBoolean(bool value){throw new System.NotImplementedException();} |
public boolean checkPosition(int position) {Iterator<PositionSpan> positionSpanIt = positionSpans.iterator();while (positionSpanIt.hasNext()) {PositionSpan posSpan = positionSpanIt.next();if (((position >= posSpan.start) && (position <= posSpan.end))) {return true;}}return false;} | public virtual bool CheckPosition(int position){foreach (var positionSpan in _positionSpans){if ((position >= positionSpan.Start) && (position <= positionSpan.End)){return true;}}return false;} |
public static int log(long x, int base) {if (base <= 1) {throw new IllegalArgumentException("base must be > 1");}int ret = 0;while (x >= base) {x /= base;ret++;}return ret;} | public static int Log(long x, int @base){if (@base <= 1){throw new System.ArgumentException("base must be > 1");}int ret = 0;while (x >= @base){x /= @base;ret++;}return ret;} |
public final LongBuffer get(long[] dst, int dstOffset, int longCount) {if (longCount > remaining()) {throw new BufferUnderflowException();}System.arraycopy(backingArray, offset + position, dst, dstOffset, longCount);position += longCount;return this;} | public sealed override java.nio.LongBuffer get(long[] dst, int dstOffset, int longCount){if (longCount > remaining()){throw new java.nio.BufferUnderflowException();}System.Array.Copy(backingArray, offset + _position, dst, dstOffset, longCount);_position += longCount;return this;} |
public boolean equals(Object obj) {return obj == this;} | public override bool Equals(object obj){return obj == this;} |
public void exportRepository(String name, Repository db) {exports.put(nameWithDotGit(name), db);} | public virtual void ExportRepository(string name, Repository db){exports.Put(NameWithDotGit(name), db);} |
public void println(long l) {println(String.valueOf(l));} | public virtual void println(long l){println(l.ToString());} |
public HSSFFormulaEvaluator createFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);} | public NPOI.SS.UserModel.IFormulaEvaluator CreateFormulaEvaluator(){return new HSSFFormulaEvaluator(workbook);} |
public boolean equals(Object obj) {if ( obj==null || !(obj instanceof IntervalSet) ) {return false;}IntervalSet other = (IntervalSet)obj;return this.intervals.equals(other.intervals);} | public override bool Equals(object obj){if (obj == null || !(obj is Antlr4.Runtime.Misc.IntervalSet)){return false;}Antlr4.Runtime.Misc.IntervalSet other = (Antlr4.Runtime.Misc.IntervalSet)obj;return this.intervals.SequenceEqual(other.intervals);} |
public FileMode getIndexFileMode(DirCacheIterator indexIter) {final FileMode wtMode = getEntryFileMode();if (indexIter == null) {return wtMode;}final FileMode iMode = indexIter.getEntryFileMode();if (getOptions().isFileMode() && iMode != FileMode.GITLINK && iMode != FileMode.TREE) {return wtMode;}if (!getOptions().isFileMode()) {if (FileMode.REGULAR_FILE == wtMode&& FileMode.EXECUTABLE_FILE == iMode) {return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode&& FileMode.REGULAR_FILE == iMode) {return iMode;}}if (FileMode.GITLINK == iMode&& FileMode.TREE == wtMode && !getOptions().isDirNoGitLinks()) {return iMode;}if (FileMode.TREE == iMode&& FileMode.GITLINK == wtMode) {return iMode;}return wtMode;} | public virtual FileMode GetIndexFileMode(DirCacheIterator indexIter){FileMode wtMode = EntryFileMode;if (indexIter == null){return wtMode;}if (GetOptions().IsFileMode()){return wtMode;}FileMode iMode = indexIter.EntryFileMode;if (FileMode.REGULAR_FILE == wtMode && FileMode.EXECUTABLE_FILE == iMode){return iMode;}if (FileMode.EXECUTABLE_FILE == wtMode && FileMode.REGULAR_FILE == iMode){return iMode;}return wtMode;} |
public CreateScheduledActionResult createScheduledAction(CreateScheduledActionRequest request) {request = beforeClientExecution(request);return executeCreateScheduledAction(request);} | public virtual CreateScheduledActionResponse CreateScheduledAction(CreateScheduledActionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateScheduledActionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateScheduledActionResponseUnmarshaller.Instance;return Invoke<CreateScheduledActionResponse>(request, options);} |
public PackConfig getConfig() {return config;} | public virtual PackConfig GetConfig(){return this._enclosing.config;} |
public CharBuffer put(char c) {throw new ReadOnlyBufferException();} | public override java.nio.CharBuffer put(char c){throw new java.nio.ReadOnlyBufferException();} |
public DeleteDistributionRequest(String id, String ifMatch) {setId(id);setIfMatch(ifMatch);} | public DeleteDistributionRequest(string id, string ifMatch){_id = id;_ifMatch = ifMatch;} |
public static long pop_andnot(long[] arr1, long[] arr2, int wordOffset, int numWords) {long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i) {popCount += Long.bitCount(arr1[i] & ~arr2[i]);}return popCount;} | public static long Pop_AndNot(long[] arr1, long[] arr2, int wordOffset, int numWords){long popCount = 0;for (int i = wordOffset, end = wordOffset + numWords; i < end; ++i){popCount += (arr1[i] & ~arr2[i]).PopCount();}return popCount;} |
public boolean include(TreeWalk walker) {return true;} | public override bool Include(TreeWalk walker){return true;} |
public DescribeReservedDBInstancesOfferingsResult describeReservedDBInstancesOfferings() {return describeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());} | public virtual DescribeReservedDBInstancesOfferingsResponse DescribeReservedDBInstancesOfferings(){return DescribeReservedDBInstancesOfferings(new DescribeReservedDBInstancesOfferingsRequest());} |
public ByteVector(byte[] a) {blockSize = DEFAULT_BLOCK_SIZE;array = a;n = 0;} | public ByteVector(int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = new byte[blockSize];n = 0;} |
public Appendable append(CharSequence csq) {return append(csq, 0, csq.length());} | public virtual OpenStringBuilder Append(ICharSequence csq){return Append(csq, 0, csq.Length);} |
public String getLookaheadName(TokenStream input) {return getTokenName(input.LA(1));} | public string GetLookaheadName(ITokenStream input){return GetTokenName(input.LA(1));} |
public static final ObjectId fromRaw(byte[] bs) {return fromRaw(bs, 0);} | public static NGit.ObjectId FromRaw(byte[] bs){return FromRaw(bs, 0);} |
public GutsRecord(RecordInputStream in) {field_1_left_row_gutter = in.readShort();field_2_top_col_gutter = in.readShort();field_3_row_level_max = in.readShort();field_4_col_level_max = in.readShort();} | public GutsRecord(RecordInputStream in1){field_1_left_row_gutter = in1.ReadShort();field_2_top_col_gutter = in1.ReadShort();field_3_row_level_max = in1.ReadShort();field_4_col_level_max = in1.ReadShort();} |
public GermanMinimalStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public GermanMinimalStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public DescribeActiveReceiptRuleSetResult describeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request) {request = beforeClientExecution(request);return executeDescribeActiveReceiptRuleSet(request);} | public virtual DescribeActiveReceiptRuleSetResponse DescribeActiveReceiptRuleSet(DescribeActiveReceiptRuleSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeActiveReceiptRuleSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeActiveReceiptRuleSetResponseUnmarshaller.Instance;return Invoke<DescribeActiveReceiptRuleSetResponse>(request, options);} |
public GetGeoLocationResult getGeoLocation(GetGeoLocationRequest request) {request = beforeClientExecution(request);return executeGetGeoLocation(request);} | public virtual GetGeoLocationResponse GetGeoLocation(GetGeoLocationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGeoLocationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGeoLocationResponseUnmarshaller.Instance;return Invoke<GetGeoLocationResponse>(request, options);} |
public KStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public KStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public PublishRequest(String topicArn, String message) {setTopicArn(topicArn);setMessage(message);} | public PublishRequest(string topicArn, string message){_topicArn = topicArn;_message = message;} |
public void replace(int start, int limit, String text) {final int charsLen = text.length();final int newLength = shiftForReplace(start, limit, charsLen);text.getChars(0, charsLen, buffer, start);token.setLength(length = newLength);} | public void Replace(int start, int length, string text) {int charsLen = text.Length;int newLength = ShiftForReplace(start, length + start, charsLen); text.CopyTo(0, buffer, start, charsLen);token.Length = (this.length = newLength);} |
public DescribeInternetGatewaysResult describeInternetGateways() {return describeInternetGateways(new DescribeInternetGatewaysRequest());} | public virtual DescribeInternetGatewaysResponse DescribeInternetGateways(){return DescribeInternetGateways(new DescribeInternetGatewaysRequest());} |
public ListQualificationTypesResult listQualificationTypes(ListQualificationTypesRequest request) {request = beforeClientExecution(request);return executeListQualificationTypes(request);} | public virtual ListQualificationTypesResponse ListQualificationTypes(ListQualificationTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQualificationTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQualificationTypesResponseUnmarshaller.Instance;return Invoke<ListQualificationTypesResponse>(request, options);} |
public DetachInstancesResult detachInstances(DetachInstancesRequest request) {request = beforeClientExecution(request);return executeDetachInstances(request);} | public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance;return Invoke<DetachInstancesResponse>(request, options);} |
public boolean include(TreeWalk walker) {final int n = walker.getTreeCount();if (n == 1) return true;final int m = walker.getRawMode(baseTree);for (int i = 1; i < n; i++)if (walker.getRawMode(i) != m || !walker.idEqual(i, baseTree))return true;return false;} | public override bool Include(TreeWalk walker){int n = walker.TreeCount;if (n == 1){return true;}int m = walker.GetRawMode(0);for (int i = 1; i < n; i++){if (walker.GetRawMode(i) != m || !walker.IdEqual(i, 0)){return true;}}return false;} |
public List<MatchingDocs> getMatchingDocs() {List<MatchingDocs> matchingDocs = super.getMatchingDocs();if (totalHits == NOT_CALCULATED) {totalHits = 0;for (MatchingDocs md : matchingDocs) {totalHits += md.totalHits;}}if (totalHits <= sampleSize) {return matchingDocs;}if (sampledDocs == null) {samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = createSampledDocs(matchingDocs);}return sampledDocs;} | public override IList<MatchingDocs> GetMatchingDocs(){IList<MatchingDocs> matchingDocs = base.GetMatchingDocs();if (totalHits == NOT_CALCULATED){totalHits = 0;foreach (MatchingDocs md in matchingDocs){totalHits += md.TotalHits;}}if (totalHits <= sampleSize){return matchingDocs;}if (sampledDocs == null){samplingRate = (1.0 * sampleSize) / totalHits;sampledDocs = CreateSampledDocs(matchingDocs);}return sampledDocs;} |
public CreateDataSourceFromS3Result createDataSourceFromS3(CreateDataSourceFromS3Request request) {request = beforeClientExecution(request);return executeCreateDataSourceFromS3(request);} | public virtual CreateDataSourceFromS3Response CreateDataSourceFromS3(CreateDataSourceFromS3Request request){var options = new InvokeOptions();options.RequestMarshaller = CreateDataSourceFromS3RequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDataSourceFromS3ResponseUnmarshaller.Instance;return Invoke<CreateDataSourceFromS3Response>(request, options);} |
public UpdateFleetMetadataResult updateFleetMetadata(UpdateFleetMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateFleetMetadata(request);} | public virtual UpdateFleetMetadataResponse UpdateFleetMetadata(UpdateFleetMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFleetMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFleetMetadataResponseUnmarshaller.Instance;return Invoke<UpdateFleetMetadataResponse>(request, options);} |
public ObjectId getNewObjectId() {return newValue;} | public virtual ObjectId GetNewObjectId(){return newValue;} |
public long ramBytesUsed() {long sizeInBytes = ((termBytesReader!=null)? termBytesReader.ramBytesUsed() : 0);for(FieldIndexData entry : fields.values()) {sizeInBytes += entry.ramBytesUsed();}return sizeInBytes;} | public override long RamBytesUsed(){long sizeInBytes = 0;foreach (FieldIndexData entry in fields.Values){sizeInBytes += entry.RamBytesUsed();}return sizeInBytes;} |
public StringBuilder append(char c) {append0(c);return this;} | public java.lang.StringBuilder append(char c){append0(c);return this;} |
public void unread(int oneChar) throws IOException {synchronized (lock) {checkNotClosed();if (pos == 0) {throw new IOException("Pushback buffer full");}buf[--pos] = (char) oneChar;}} | public virtual void unread(int oneChar){lock (@lock){checkNotClosed();if (pos == 0){throw new System.IO.IOException("Pushback buffer full");}buf[--pos] = (char)oneChar;}} |
public QueryFaceRequest() {super("LinkFace", "2018-07-20", "QueryFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public QueryFaceRequest(): base("LinkFace", "2018-07-20", "QueryFace"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public ProductDomain(String product, String domain) {this.productName = product;this.domainName = domain;} | public ProductDomain(string product, string domain){ProductName = product;DomainName = domain;} |
public void disableRefLog() {refLogMessage = null;refLogIncludeResult = false;} | public virtual void DisableRefLog(){refLogMessage = null;refLogIncludeResult = false;} |
public static TaxonomyWriterCache defaultTaxonomyWriterCache() {return new UTF8TaxonomyWriterCache();} | public static ITaxonomyWriterCache DefaultTaxonomyWriterCache(){return new Cl2oTaxonomyWriterCache(1024, 0.15f, 3);} |
public PushCommand setDryRun(boolean dryRun) {checkCallable();this.dryRun = dryRun;return this;} | public virtual NGit.Api.PushCommand SetDryRun(bool dryRun){CheckCallable();this.dryRun = dryRun;return this;} |
public ProcessBuilder runInShell(String cmd, String[] args) {List<String> argv = new ArrayList<>(3 + args.length);argv.add("cmd.exe"); argv.add("/c"); argv.add(cmd);argv.addAll(Arrays.asList(args));ProcessBuilder proc = new ProcessBuilder();proc.command(argv);return proc;} | public override ProcessStartInfo RunInShell(string cmd, string[] args){IList<string> argv = new AList<string>(3 + args.Length);argv.AddItem("cmd.exe");argv.AddItem("/c");argv.AddItem(cmd);Sharpen.Collections.AddAll(argv, Arrays.AsList(args));ProcessStartInfo proc = new ProcessStartInfo();proc.SetCommand(argv);return proc;} |
public NameCommentRecord(final RecordInputStream ris) {field_1_record_type = ris.readShort();field_2_frt_cell_ref_flag = ris.readShort();field_3_reserved = ris.readLong();final int field_4_name_length = ris.readShort();final int field_5_comment_length = ris.readShort();if (ris.readByte() == 0) {field_6_name_text = StringUtil.readCompressedUnicode(ris, field_4_name_length);} else {field_6_name_text = StringUtil.readUnicodeLE(ris, field_4_name_length);}if (ris.readByte() == 0) {field_7_comment_text = StringUtil.readCompressedUnicode(ris, field_5_comment_length);} else {field_7_comment_text = StringUtil.readUnicodeLE(ris, field_5_comment_length);}} | public NameCommentRecord(RecordInputStream ris){ILittleEndianInput in1 = ris;field_1_record_type = in1.ReadShort();field_2_frt_cell_ref_flag = in1.ReadShort();field_3_reserved = in1.ReadLong();int field_4_name_length = in1.ReadShort();int field_5_comment_length = in1.ReadShort();in1.ReadByte(); field_6_name_text = StringUtil.ReadCompressedUnicode(in1, field_4_name_length);in1.ReadByte(); field_7_comment_text = StringUtil.ReadCompressedUnicode(in1, field_5_comment_length);} |
public void onPull(float deltaDistance) {final long now = AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) {return;}if (mState != STATE_PULL) {mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = Math.abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = Math.max(PULL_EDGE_BEGIN, Math.min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = Math.max(HELD_EDGE_SCALE_Y, Math.min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.f));mGlowAlpha = mGlowAlphaStart = Math.min(MAX_ALPHA,mGlowAlpha +(Math.abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = Math.abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0) {glowChange = -glowChange;}if (mPullDistance == 0) {mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = Math.min(MAX_GLOW_HEIGHT, Math.max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;} | public virtual void onPull(float deltaDistance){long now = android.view.animation.AnimationUtils.currentAnimationTimeMillis();if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration){return;}if (mState != STATE_PULL){mGlowScaleY = PULL_GLOW_BEGIN;}mState = STATE_PULL;mStartTime = now;mDuration = PULL_TIME;mPullDistance += deltaDistance;float distance = System.Math.Abs(mPullDistance);mEdgeAlpha = mEdgeAlphaStart = System.Math.Max(PULL_EDGE_BEGIN, System.Math.Min(distance, MAX_ALPHA));mEdgeScaleY = mEdgeScaleYStart = System.Math.Max(HELD_EDGE_SCALE_Y, System.Math.Min(distance * PULL_DISTANCE_EDGE_FACTOR, 1.0f));mGlowAlpha = mGlowAlphaStart = System.Math.Min(MAX_ALPHA, mGlowAlpha + (System.Math.Abs(deltaDistance) * PULL_DISTANCE_ALPHA_GLOW_FACTOR));float glowChange = System.Math.Abs(deltaDistance);if (deltaDistance > 0 && mPullDistance < 0){glowChange = -glowChange;}if (mPullDistance == 0){mGlowScaleY = 0;}mGlowScaleY = mGlowScaleYStart = System.Math.Min(MAX_GLOW_HEIGHT, System.Math.Max(0, mGlowScaleY + glowChange * PULL_DISTANCE_GLOW_FACTOR));mEdgeAlphaFinish = mEdgeAlpha;mEdgeScaleYFinish = mEdgeScaleY;mGlowAlphaFinish = mGlowAlpha;mGlowScaleYFinish = mGlowScaleY;} |
public URIish setPath(String n) {final URIish r = new URIish(this);r.path = n;r.rawPath = n;return r;} | public virtual NGit.Transport.URIish SetPath(string n){NGit.Transport.URIish r = new NGit.Transport.URIish(this);r.path = n;r.rawPath = n;return r;} |
public UpdateTemplateResult updateTemplate(UpdateTemplateRequest request) {request = beforeClientExecution(request);return executeUpdateTemplate(request);} | public virtual UpdateTemplateResponse UpdateTemplate(UpdateTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance;return Invoke<UpdateTemplateResponse>(request, options);} |
public void encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}} | public override void Encode(long[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}} |
public ListDomainDeliverabilityCampaignsResult listDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request) {request = beforeClientExecution(request);return executeListDomainDeliverabilityCampaigns(request);} | public virtual ListDomainDeliverabilityCampaignsResponse ListDomainDeliverabilityCampaigns(ListDomainDeliverabilityCampaignsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDomainDeliverabilityCampaignsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDomainDeliverabilityCampaignsResponseUnmarshaller.Instance;return Invoke<ListDomainDeliverabilityCampaignsResponse>(request, options);} |
public void setReuseObjects(boolean reuseObjects) {this.reuseObjects = reuseObjects;} | public virtual void SetReuseObjects(bool reuseObjects){this.reuseObjects = reuseObjects;} |
public DiffFormatter(OutputStream out) {this.out = out;} | public DiffFormatter(OutputStream @out){this.@out = @out;} |
public ExpectedAttributeValue(Boolean exists) {setExists(exists);} | public ExpectedAttributeValue(bool exists){_exists = exists;} |
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException {PostingsReaderBase postingsReader = new Lucene84PostingsReader(state);boolean success = false;try {FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;} finally {if (!success) {IOUtils.closeWhileHandlingException(postingsReader);}}} | public override FieldsProducer FieldsProducer(SegmentReadState state){PostingsReaderBase postingsReader = new Lucene41PostingsReader(state.Directory, state.FieldInfos,state.SegmentInfo, state.Context, state.SegmentSuffix);bool success = false;try{FieldsProducer ret = new FSTTermsReader(state, postingsReader);success = true;return ret;}finally{if (!success){IOUtils.DisposeWhileHandlingException(postingsReader);}}} |
public ListSubscribedWorkteamsResult listSubscribedWorkteams(ListSubscribedWorkteamsRequest request) {request = beforeClientExecution(request);return executeListSubscribedWorkteams(request);} | public virtual ListSubscribedWorkteamsResponse ListSubscribedWorkteams(ListSubscribedWorkteamsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListSubscribedWorkteamsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListSubscribedWorkteamsResponseUnmarshaller.Instance;return Invoke<ListSubscribedWorkteamsResponse>(request, options);} |
public BatchDeleteAttributesRequest(String domainName, java.util.List<DeletableItem> items) {setDomainName(domainName);setItems(items);} | public BatchDeleteAttributesRequest(string domainName, List<DeletableItem> items){_domainName = domainName;_items = items;} |
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(_value ? 1 : 0);} | public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteByte(field_1_value ? 1 : 0);} |
public NavigableMap<K, V> descendingMap() {return new BoundedMap(!ascending, from, fromBound, to, toBound);} | public java.util.NavigableMap<K, V> descendingMap(){return new java.util.TreeMap<K, V>.BoundedMap(this._enclosing, !this.ascending, this.from, this.fromBound, this.to, this.toBound);} |
public ByteBuffer putLong(long value) {int newPosition = position + SizeOf.LONG;if (newPosition > limit) {throw new BufferOverflowException();}Memory.pokeLong(backingArray, offset + position, value, order);position = newPosition;return this;} | public override java.nio.ByteBuffer putLong(long value){int newPosition = _position + libcore.io.SizeOf.LONG;if (newPosition > _limit){throw new java.nio.BufferOverflowException();}libcore.io.Memory.pokeLong(backingArray, offset + _position, value, _order);_position = newPosition;return this;} |
public CFRecordsAggregate get(int index) {checkIndex(index);return _cfHeaders.get(index);} | public CFRecordsAggregate Get(int index){CheckIndex(index);return (CFRecordsAggregate)_cfHeaders[index];} |
public long get(int index) {final int o = index / 9;final int b = index % 9;final int shift = b * 7;return (blocks[o] >>> shift) & 127L;} | public override long Get(int index){int o = index / 9;int b = index % 9;int shift = b * 7;return ((long)((ulong)blocks[o] >> shift)) & 127L;} |
public GetSegmentsResult getSegments(GetSegmentsRequest request) {request = beforeClientExecution(request);return executeGetSegments(request);} | public virtual GetSegmentsResponse GetSegments(GetSegmentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSegmentsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSegmentsResponseUnmarshaller.Instance;return Invoke<GetSegmentsResponse>(request, options);} |
public DeleteVpcEndpointsResult deleteVpcEndpoints(DeleteVpcEndpointsRequest request) {request = beforeClientExecution(request);return executeDeleteVpcEndpoints(request);} | public virtual DeleteVpcEndpointsResponse DeleteVpcEndpoints(DeleteVpcEndpointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcEndpointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcEndpointsResponseUnmarshaller.Instance;return Invoke<DeleteVpcEndpointsResponse>(request, options);} |
public String toString() {switch (getCellTypeEnum()) {case BLANK:return "";case BOOLEAN:return getBooleanCellValue()?"TRUE":"FALSE";case ERROR:return ErrorEval.getText((( BoolErrRecord ) _record).getErrorValue());case FORMULA:return getCellFormula();case NUMERIC:if (DateUtil.isCellDateFormatted(this)) {SimpleDateFormat sdf = new SimpleDateFormat("dd-MMM-yyyy", LocaleUtil.getUserLocale());sdf.setTimeZone(LocaleUtil.getUserTimeZone());return sdf.format(getDateCellValue());}return String.valueOf(getNumericCellValue());case STRING:return getStringCellValue();default:return "Unknown Cell Type: " + getCellType();}} | public override String ToString(){switch (CellType){case CellType.Blank:return "";case CellType.Boolean:return BooleanCellValue ? "TRUE" : "FALSE";case CellType.Error:return NPOI.SS.Formula.Eval.ErrorEval.GetText(((BoolErrRecord)_record).ErrorValue);case CellType.Formula:return CellFormula;case CellType.Numeric:string format = this.CellStyle.GetDataFormatString();DataFormatter formatter = new DataFormatter();return formatter.FormatCellValue(this);case CellType.String:return StringCellValue;default:return "Unknown Cell Type: " + CellType;}} |
public List<? extends HunkHeader> getHunks() {if (hunks == null)return Collections.emptyList();return hunks;} | public virtual IList<HunkHeader> GetHunks(){if (hunks == null){return Sharpen.Collections.EmptyList<HunkHeader>();}return hunks;} |
public ObjectId toObjectId() {ensureId();return idBuffer.toObjectId();} | public virtual ObjectId ToObjectId(){EnsureId();return idBuffer.ToObjectId();} |
public ListQueuesRequest(String queueNamePrefix) {setQueueNamePrefix(queueNamePrefix);} | public ListQueuesRequest(string queueNamePrefix){_queueNamePrefix = queueNamePrefix;} |
public AcceptTransitGatewayPeeringAttachmentResult acceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeAcceptTransitGatewayPeeringAttachment(request);} | public virtual AcceptTransitGatewayPeeringAttachmentResponse AcceptTransitGatewayPeeringAttachment(AcceptTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AcceptTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = AcceptTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke<AcceptTransitGatewayPeeringAttachmentResponse>(request, options);} |
public String toString() {final int n = length();final StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++)b.append(charAt(i));return b.toString();} | public override string ToString(){int n = Length;StringBuilder b = new StringBuilder(n);for (int i = 0; i < n; i++){b.Append(CharAt (i));}return b.ToString();} |
public String toString(String field) {StringBuilder buffer = new StringBuilder();buffer.append("(");for (int i = 0 ; i < disjuncts.length; i++) {Query subquery = disjuncts[i];if (subquery instanceof BooleanQuery) { buffer.append("(");buffer.append(subquery.toString(field));buffer.append(")");}else buffer.append(subquery.toString(field));if (i != disjuncts.length-1) buffer.append(" | ");}buffer.append(")");if (tieBreakerMultiplier != 0.0f) {buffer.append("~");buffer.append(tieBreakerMultiplier);}return buffer.toString();} | public override string ToString(string field){StringBuilder buffer = new StringBuilder();buffer.Append("(");int numDisjunctions = disjuncts.Count;for (int i = 0; i < numDisjunctions; i++){Query subquery = disjuncts[i];if (subquery is BooleanQuery) {buffer.Append("(");buffer.Append(subquery.ToString(field));buffer.Append(")");}else{buffer.Append(subquery.ToString(field));}if (i != numDisjunctions - 1){buffer.Append(" | ");}}buffer.Append(")");if (tieBreakerMultiplier != 0.0f){buffer.Append("~");buffer.Append(tieBreakerMultiplier);}if (Boost != 1.0){buffer.Append("^");buffer.Append(Boost);}return buffer.ToString();} |
@Override public boolean isEmpty() {return c.isEmpty();} | public virtual bool isEmpty(){return c.isEmpty();} |
public String getContentDisposition() {return contentDisposition;} | public string ServiceEndpoint { get; internal set; } |
public DescribeHsmClientCertificatesResult describeHsmClientCertificates() {return describeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());} | public virtual DescribeHsmClientCertificatesResponse DescribeHsmClientCertificates(){return DescribeHsmClientCertificates(new DescribeHsmClientCertificatesRequest());} |
public static int[] grow(int[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Integer.BYTES));} else return array;} | public static short[] Grow(short[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){short[] newArray = new short[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT16)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}} |
public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() <= 0) {return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.length() + originalText.length() + postTag.length());returnBuffer.append(preTag);returnBuffer.append(originalText);returnBuffer.append(postTag);return returnBuffer.toString();} | public virtual string HighlightTerm(string originalText, TokenGroup tokenGroup){if (tokenGroup.TotalScore <= 0){return originalText;}StringBuilder returnBuffer = new StringBuilder(preTag.Length + originalText.Length + postTag.Length);returnBuffer.Append(preTag);returnBuffer.Append(originalText);returnBuffer.Append(postTag);return returnBuffer.ToString();} |
public LimitTokenCountFilter(TokenStream in, int maxTokenCount, boolean consumeAllTokens) {super(in);if (maxTokenCount < 1) {throw new IllegalArgumentException("maxTokenCount must be greater than zero");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;} | public LimitTokenCountFilter(TokenStream @in, int maxTokenCount, bool consumeAllTokens): base(@in){if (maxTokenCount < 1){throw new System.ArgumentOutOfRangeException("maxTokenCount must be greater than zero");}this.maxTokenCount = maxTokenCount;this.consumeAllTokens = consumeAllTokens;} |
public void encode(int[] values, int valuesOffset, byte[] blocks,int blocksOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = writeLong(block, blocks, blocksOffset);}} | public override void Encode(int[] values, int valuesOffset, byte[] blocks, int blocksOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = Encode(values, valuesOffset);valuesOffset += valueCount;blocksOffset = WriteInt64(block, blocks, blocksOffset);}} |
public TokenFilter create(TokenStream input) {return new ClassicFilter(input);} | public override TokenStream Create(TokenStream input){return new ClassicFilter(input);} |
public boolean isAllowThin() {return allowThin;} | public virtual bool IsAllowThin(){return allowThin;} |
public boolean contains(Object o) {if (!(o instanceof Entry))return false;Entry<?, ?> e = (Entry<?, ?>) o;return containsMapping(e.getKey(), e.getValue());} | public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());} |
public void add(long v) throws IOException {assert PackedInts.unsignedBitsRequired(v) <= bitsPerValue;assert !finished;if (valueCount != -1 && written >= valueCount) {throw new EOFException("Writing past end of stream");}nextValues[off++] = v;if (off == nextValues.length) {flush();}++written;} | public override void Add(long v){Debug.Assert(m_bitsPerValue == 64 || (v >= 0 && v <= PackedInt32s.MaxValue(m_bitsPerValue)), m_bitsPerValue.ToString());Debug.Assert(!finished);if (m_valueCount != -1 && written >= m_valueCount){throw new System.IO.EndOfStreamException("Writing past end of stream");}nextValues[off++] = v;if (off == nextValues.Length){Flush();}++written;} |
public GetOnlineServiceResultRequest() {super("industry-brain", "2018-07-12", "GetOnlineServiceResult");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public GetOnlineServiceResultRequest(): base("industry-brain", "2018-07-12", "GetOnlineServiceResult"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public void setBigFileThreshold(int bigFileThreshold) {this.bigFileThreshold = bigFileThreshold;} | public virtual void SetBigFileThreshold(int bigFileThreshold){this.bigFileThreshold = bigFileThreshold;} |
public boolean isEmpty() {return size == 0;} | public override bool isEmpty(){return this._enclosing._size == 0;} |
public int compareTo(ScoreTerm other) {if (term.bytesEquals(other.term))return 0; if (this.boost == other.boost)return other.term.compareTo(this.term);else return Float.compare(this.boost, other.boost);} | public virtual int CompareTo(ScoreTerm other){if (Term.BytesEquals(other.Term)){return 0; }if (this.Boost == other.Boost){return other.Term.CompareTo(this.Term);}else{return this.Boost.CompareTo(other.Boost);}} |
public int codePointCount(int start, int end) {if (start < 0 || end > count || start > end) {throw startEndAndLength(start, end);}return Character.codePointCount(value, start, end - start);} | public virtual int codePointCount(int start, int end){if (start < 0 || end > count || start > end){throw startEndAndLength(start, end);}return Sharpen.CharHelper.CodePointCount(value, start, end - start);} |
public String[] getCommitNames() {return commitNames;} | public virtual string[] GetCommitNames(){return commitNames;} |
public boolean isEmpty() {if (sizeIsValid)return 0 == size;return !iterator().hasNext();} | public override bool IsEmpty(){return EntrySet().IsEmpty();} |
public boolean isBorder(){return border.isSet(field_1_options);} | public bool IsBorder(){return border.IsSet(field_1_options);} |
public DeleteLaunchTemplateVersionsResult deleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchTemplateVersions(request);} | public virtual DeleteLaunchTemplateVersionsResponse DeleteLaunchTemplateVersions(DeleteLaunchTemplateVersionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLaunchTemplateVersionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLaunchTemplateVersionsResponseUnmarshaller.Instance;return Invoke<DeleteLaunchTemplateVersionsResponse>(request, options);} |
public DescribeDeviceResult describeDevice(DescribeDeviceRequest request) {request = beforeClientExecution(request);return executeDescribeDevice(request);} | public virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;return Invoke<DescribeDeviceResponse>(request, options);} |
public static Class<? extends TokenizerFactory> lookupClass(String name) {return loader.lookupClass(name);} | public static Type LookupClass(string name){return loader.LookupClass(name);} |
public CreateParameterGroupResult createParameterGroup(CreateParameterGroupRequest request) {request = beforeClientExecution(request);return executeCreateParameterGroup(request);} | public virtual CreateParameterGroupResponse CreateParameterGroup(CreateParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateParameterGroupResponseUnmarshaller.Instance;return Invoke<CreateParameterGroupResponse>(request, options);} |
public FieldsQuery(SrndQuery q, String fieldName, char fieldOp) {this.q = q;fieldNames = new ArrayList<>();fieldNames.add(fieldName);this.fieldOp = fieldOp;} | public FieldsQuery(SrndQuery q, string fieldName, char fieldOp){this.q = q;var fieldNameList = new List<string>();fieldNameList.Add(fieldName);this.fieldNames = fieldNameList;this.fieldOp = fieldOp;} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.