java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public GetInstanceMetricDataResult getInstanceMetricData(GetInstanceMetricDataRequest request) {request = beforeClientExecution(request);return executeGetInstanceMetricData(request);} | public virtual GetInstanceMetricDataResponse GetInstanceMetricData(GetInstanceMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceMetricDataResponseUnmarshaller.Instance;return Invoke<GetInstanceMetricDataResponse>(request, options);} |
public void seekExact(BytesRef target, TermState otherState) {assert otherState != null && otherState instanceof BlockTermState;assert !doOrd || ((BlockTermState) otherState).ord < numTerms;state.copyFrom(otherState);seekPending = true;indexIsCurrent = false;term.copyBytes(target);} | public override void SeekExact(BytesRef target, TermState otherState){Debug.Assert(otherState != null && otherState is BlockTermState);Debug.Assert(!doOrd || ((BlockTermState)otherState).Ord < outerInstance.numTerms);state.CopyFrom(otherState);seekPending = true;indexIsCurrent = false;term.CopyBytes(target);} |
public NGramDistance(int size) {this.n = size;} | public NGramDistance(int size){this.n = size;} |
public AllocateConnectionOnInterconnectResult allocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request) {request = beforeClientExecution(request);return executeAllocateConnectionOnInterconnect(request);} | public virtual AllocateConnectionOnInterconnectResponse AllocateConnectionOnInterconnect(AllocateConnectionOnInterconnectRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateConnectionOnInterconnectRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateConnectionOnInterconnectResponseUnmarshaller.Instance;return Invoke<AllocateConnectionOnInterconnectResponse>(request, options);} |
public StandardSyntaxParser(CharStream stream) {token_source = new StandardSyntaxParserTokenManager(stream);token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 25; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();} | public StandardSyntaxParser(ICharStream stream){TokenSource = new StandardSyntaxParserTokenManager(stream);Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 28; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();} |
public void serialize(LittleEndianOutput out) {_range.serialize(out);serializeExtraData(out);} | public override void Serialize(ILittleEndianOutput out1){_range.Serialize(out1);SerializeExtraData(out1);} |
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return isDefaultField(field)? "/"+text+"/": field + ":/" + text + "/";} | public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return IsDefaultField(field) ? "/" + text + "/" : field + ":/" + text + "/";} |
public static boolean isRowBlockRecord(int sid) {switch (sid) {case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;} | public static bool IsRowBlockRecord(int sid){switch (sid){case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;} |
public static final int endOfParagraph(byte[] b, int start) {int ptr = start;final int sz = b.length;while (ptr < sz && (b[ptr] != '\n' && b[ptr] != '\r'))ptr = nextLF(b, ptr);if (ptr > start && b[ptr - 1] == '\n')ptr--;if (ptr > start && b[ptr - 1] == '\r')ptr--;return ptr;} | public static int EndOfParagraph(byte[] b, int start){int ptr = start;int sz = b.Length;while (ptr < sz && b[ptr] != '\n'){ptr = NextLF(b, ptr);}while (0 < ptr && start < ptr && b[ptr - 1] == '\n'){ptr--;}return ptr;} |
public VerifyDomainDkimResult verifyDomainDkim(VerifyDomainDkimRequest request) {request = beforeClientExecution(request);return executeVerifyDomainDkim(request);} | public virtual VerifyDomainDkimResponse VerifyDomainDkim(VerifyDomainDkimRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyDomainDkimRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyDomainDkimResponseUnmarshaller.Instance;return Invoke<VerifyDomainDkimResponse>(request, options);} |
public boolean equals(Object o) {if (o instanceof HSSFRichTextString) {return _string.equals(((HSSFRichTextString)o)._string);}return false;} | public override bool Equals(Object o){if (o is HSSFRichTextString){return _string.Equals(((HSSFRichTextString)o)._string);}return false;} |
public boolean equals(Object obj) {if (!(obj instanceof RowColKey)) {return false;}RowColKey other = (RowColKey) obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;} | public override bool Equals(Object obj){RowColKey other = (RowColKey)obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;} |
public GetIdentityPoolConfigurationResult getIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolConfiguration(request);} | public virtual GetIdentityPoolConfigurationResponse GetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoolConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoolConfigurationResponseUnmarshaller.Instance;return Invoke<GetIdentityPoolConfigurationResponse>(request, options);} |
public DeleteTrafficMirrorFilterResult deleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilter(request);} | public virtual DeleteTrafficMirrorFilterResponse DeleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteTrafficMirrorFilterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteTrafficMirrorFilterResponseUnmarshaller.Instance;return Invoke<DeleteTrafficMirrorFilterResponse>(request, options);} |
public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException {assert info.hasDeletions();BytesRefBuilder scratch = new BytesRefBuilder();CharsRefBuilder scratchUTF16 = new CharsRefBuilder();String fileName = IndexFileNames.fileNameFromGeneration(info.info.name, LIVEDOCS_EXTENSION, info.getDelGen());ChecksumIndexInput in = null;boolean success = false;try {in = dir.openChecksumInput(fileName, context);SimpleTextUtil.readLine(in, scratch);assert StringHelper.startsWith(scratch.get(), SIZE);int size = parseIntAt(scratch.get(), SIZE.length, scratchUTF16);BitSet bits = new BitSet(size);SimpleTextUtil.readLine(in, scratch);while (!scratch.get().equals(END)) {assert StringHelper.startsWith(scratch.get(), DOC);int docid = parseIntAt(scratch.get(), DOC.length, scratchUTF16);bits.set(docid);SimpleTextUtil.readLine(in, scratch);}SimpleTextUtil.checkFooter(in);success = true;return new SimpleTextBits(bits, size);} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}} | public override IBits ReadLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context){Debug.Assert(info.HasDeletions);var scratch = new BytesRef();var scratchUtf16 = new CharsRef();var fileName = IndexFileNames.FileNameFromGeneration(info.Info.Name, LIVEDOCS_EXTENSION, info.DelGen);ChecksumIndexInput input = null;var success = false;try{input = dir.OpenChecksumInput(fileName, context);SimpleTextUtil.ReadLine(input, scratch);Debug.Assert(StringHelper.StartsWith(scratch, SIZE));var size = ParseInt32At(scratch, SIZE.Length, scratchUtf16);var bits = new BitArray(size);SimpleTextUtil.ReadLine(input, scratch);while (!scratch.Equals(END)){Debug.Assert(StringHelper.StartsWith(scratch, DOC));var docid = ParseInt32At(scratch, DOC.Length, scratchUtf16);bits.SafeSet(docid, true);SimpleTextUtil.ReadLine(input, scratch);}SimpleTextUtil.CheckFooter(input);success = true;return new SimpleTextBits(bits, size);}finally{if (success){IOUtils.Dispose(input);}else{IOUtils.DisposeWhileHandlingException(input);}}} |
public CreateConferenceProviderResult createConferenceProvider(CreateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeCreateConferenceProvider(request);} | public virtual CreateConferenceProviderResponse CreateConferenceProvider(CreateConferenceProviderRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConferenceProviderRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConferenceProviderResponseUnmarshaller.Instance;return Invoke<CreateConferenceProviderResponse>(request, options);} |
public SimpleQQParser(String qqNames[], String indexField) {this.qqNames = qqNames;this.indexField = indexField;} | public SimpleQQParser(string qqName, string indexField): this(new string[] { qqName }, indexField); |
public boolean isCaseSensitive() {return false;} | public override bool IsCaseSensitive(){return false;} |
public TokenFilter create(TokenStream input) {return new HyphenationCompoundWordTokenFilter(input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);} | public override TokenStream Create(TokenStream input){return new HyphenationCompoundWordTokenFilter(m_luceneMatchVersion, input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);} |
public TokenStream create(TokenStream input) {return new JapaneseBaseFormFilter(input);} | public override TokenStream Create(TokenStream input){return new JapaneseBaseFormFilter(input);} |
public OrderedATNConfigSet() {this.configLookup = new LexerConfigHashSet();} | public OrderedATNConfigSet(){this.configLookup = new LexerConfigHashSet();} |
public static ValueEval dereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum) {ValueEval value;try {value = OperandResolver.getSingleValue(evaluationResult, srcRowNum, srcColNum);} catch (EvaluationException e) {return e.getErrorEval();}if (value == BlankEval.instance) {return NumberEval.ZERO;}return value;} | public static ValueEval DereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum){ValueEval value;try{value = OperandResolver.GetSingleValue(evaluationResult, srcRowNum, srcColNum);}catch (EvaluationException e){return e.GetErrorEval();}if (value == BlankEval.instance){return NumberEval.ZERO;}return value;} |
public GetGroupRequest(String groupName) {setGroupName(groupName);} | public GetGroupRequest(string groupName){_groupName = groupName;} |
public void narrowSearch(int midIx, boolean isLessThan) {if(isLessThan) {_highIx = midIx;} else {_lowIx = midIx;}} | public void NarrowSearch(int midIx, bool isLessThan){if (isLessThan){_highIx = midIx;}else{_lowIx = midIx;}} |
public void set(int index, long value) {final int o = index >>> 1;final int b = index & 1;final int shift = b << 5;blocks[o] = (blocks[o] & ~(4294967295L << shift)) | (value << shift);} | public override void Set(int index, long value){int o = (int)((uint)index >> 1);int b = index & 1;int shift = b << 5;blocks[o] = (blocks[o] & ~(4294967295L << shift)) | (value << shift);} |
public String toString() {return cfAggregate.toString();} | public override String ToString(){return cfAggregate.ToString();} |
public void setConfig(Config config) {super.setConfig(config);random = new Random(config.get("rand.seed", 13));maxDocFacets = config.get("max.doc.facets", 10);maxDims = config.get("max.doc.facets.dims", 5);maxFacetDepth = config.get("max.facet.depth", 3);if (maxFacetDepth < 2) {throw new IllegalArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;} | public override void SetConfig(Config config){base.SetConfig(config);random = new Random(config.Get("rand.seed", 13));maxDocFacets = config.Get("max.doc.facets", 10);maxDims = config.Get("max.doc.facets.dims", 5);maxFacetDepth = config.Get("max.facet.depth", 3);if (maxFacetDepth < 2){throw new ArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;} |
public interface Experiments extends SupportsCreating<Experiment.DefinitionStages.Blank>, HasInner<ExperimentsInner> {Observable<Experiment> getAsync(String resourceGroupName, String workspaceName, String experimentName);Observable<Experiment> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName);Completable deleteAsync(String resourceGroupName, String workspaceName, String experimentName);} | public async Task<AzureOperationResponse> DeleteWithHttpMessagesAsync(string resourceGroupName, string workspaceName, string experimentName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)){AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, customHeaders, cancellationToken).ConfigureAwait(false);return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);} |
public Builder add(long l) {if (pending == null) {throw new IllegalStateException("Cannot be reused after build()");}if (pendingOff == pending.length) {if (values.length == valuesOff) {final int newLength = ArrayUtil.oversize(valuesOff + 1, 8);grow(newLength);}pack();}pending[pendingOff++] = l;size += 1;return this;} | public virtual Builder Add(int doc){if (doc <= previousDoc){throw new System.ArgumentException("Doc IDs must be provided in order, but previousDoc=" + previousDoc + " and doc=" + doc);}buffer[bufferSize++] = doc - previousDoc - 1;if (bufferSize == BLOCK_SIZE){EncodeBlock();bufferSize = 0;}previousDoc = doc;++cardinality;return this;} |
public static boolean isBuiltInFunctionName(String name) {short ix = FunctionMetadataRegistry.lookupIndexByName(name.toUpperCase(Locale.ROOT));return ix >= 0;} | public static bool IsBuiltInFunctionName(String name){short ix = FunctionMetadataRegistry.LookupIndexByName(name.ToUpper());return ix >= 0;} |
public void readBytes(byte[] b, int offset, int len) {while(len > 0) {final int numLeft = limit-upto;if (numLeft < len) {System.arraycopy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;nextSlice();} else {System.arraycopy(buffer, upto, b, offset, len);upto += len;break;}}} | public override void ReadBytes(byte[] b, int offset, int len){while (len > 0){int numLeft = limit - upto;if (numLeft < len){Array.Copy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;NextSlice();}else{Array.Copy(buffer, upto, b, offset, len);upto += len;break;}}} |
public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(CONCAT);buffer.append(operands[ 1 ]);return buffer.toString();} | public override String ToFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.Append(operands[0]);buffer.Append(CONCAT);buffer.Append(operands[1]);return buffer.ToString();} |
public ListResolverRuleAssociationsResult listResolverRuleAssociations(ListResolverRuleAssociationsRequest request) {request = beforeClientExecution(request);return executeListResolverRuleAssociations(request);} | public virtual ListResolverRuleAssociationsResponse ListResolverRuleAssociations(ListResolverRuleAssociationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListResolverRuleAssociationsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListResolverRuleAssociationsResponseUnmarshaller.Instance;return Invoke<ListResolverRuleAssociationsResponse>(request, options);} |
public TokenStream create(TokenStream input) {return new ApostropheFilter(input);} | public override TokenStream Create(TokenStream input){return new ApostropheFilter(input);} |
public static String getExtension(String name) {int i = name.lastIndexOf('.');if (i == -1) {return "";}String ext = name.substring(i + 1);if (ext.equals("tmp")) {Matcher matcher = EXT_PATTERN.matcher(name.substring(0, i + 1));if (matcher.find()) {return matcher.group(1);}}return ext;} | public static string GetExtension(string name){int i = name.LastIndexOf('.');if (i == -1){return "";}return name.Substring(i + 1, name.Length - (i + 1));} |
public static int getBuiltinFormat(String pFmt) {String fmt = "TEXT".equalsIgnoreCase(pFmt) ? "@" : pFmt;int i = -1;for (String f : _formats) {i++;if (f.equals(fmt)) {return i;}}return -1;} | public static String GetBuiltinFormat(int index){if (index < 0 || index >= _formats.Length){return null;}return _formats[index];} |
@Override public int indexOf(Object object) {return list.indexOf(object);} | public virtual int indexOf(object @object){return list.indexOf(@object);} |
public void trimToSize() {balance();redimNodeArrays(freenode);CharVector kx = new CharVector();kx.alloc(1);TernaryTree map = new TernaryTree();compact(kx, map, root);kv = kx;kv.trimToSize();} | public virtual void TrimToSize(){Balance();RedimNodeArrays(m_freenode);CharVector kx = new CharVector();kx.Alloc(1);TernaryTree map = new TernaryTree();Compact(kx, map, m_root);m_kv = kx;m_kv.TrimToSize();} |
public GetRepoSyncTaskRequest() {super("cr", "2016-06-07", "GetRepoSyncTask", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]");setMethod(MethodType.GET);} | public GetRepoSyncTaskRequest(): base("cr", "2016-06-07", "GetRepoSyncTask", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]";Method = MethodType.GET;} |
public ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);setVisibilityTimeout(visibilityTimeout);} | public ChangeMessageVisibilityRequest(string queueUrl, string receiptHandle, int visibilityTimeout){_queueUrl = queueUrl;_receiptHandle = receiptHandle;_visibilityTimeout = visibilityTimeout;} |
public String toString() {return "[SAVERECALC]\n" +" .recalc = " + getRecalc() +"\n" +"[/SAVERECALC]\n";} | public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SAVERECALC]\n");buffer.Append(" .recalc = ").Append(Recalc).Append("\n");buffer.Append("[/SAVERECALC]\n");return buffer.ToString();} |
public Status getStatus() {return status;} | public virtual CheckoutResult.Status GetStatus(){return myStatus;} |
public StartRepoBuildByRuleRequest() {super("cr", "2016-06-07", "StartRepoBuildByRule", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build");setMethod(MethodType.PUT);} | public StartRepoBuildByRuleRequest(): base("cr", "2016-06-07", "StartRepoBuildByRule", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build";Method = MethodType.PUT;} |
public ModifyAvailabilityZoneGroupResult modifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request) {request = beforeClientExecution(request);return executeModifyAvailabilityZoneGroup(request);} | public virtual ModifyAvailabilityZoneGroupResponse ModifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyAvailabilityZoneGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyAvailabilityZoneGroupResponseUnmarshaller.Instance;return Invoke<ModifyAvailabilityZoneGroupResponse>(request, options);} |
public int compareSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;int c = value.get().compareTo(b.value.get());if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;} | public override int CompareSameType(object other){MutableValueStr b = (MutableValueStr)other;int c = Value.CompareTo(b.Value);if (c != 0){return c;}if (Exists == b.Exists){return 0;}return Exists ? 1 : -1;} |
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = ",";}return "[TP[" + sb.toString() + "]]";} | public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){var children = GetChildren();if (children == null || children.Count == 0)return "";StringBuilder sb = new StringBuilder();string filler = "";foreach (IQueryNode child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = ",";}return "[TP[" + sb.ToString() + "]]";} |
public DescribeChangeSetResult describeChangeSet(DescribeChangeSetRequest request) {request = beforeClientExecution(request);return executeDescribeChangeSet(request);} | public virtual DescribeChangeSetResponse DescribeChangeSet(DescribeChangeSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeChangeSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeChangeSetResponseUnmarshaller.Instance;return Invoke<DescribeChangeSetResponse>(request, options);} |
public static int initialize(int seed) {return seed;} | public static int Initialize(int seed){return seed;} |
public File getIdentityFile() {return identityFile;} | public virtual FilePath GetIdentityFile(){return identityFile;} |
public String toString() {String n = getClass().getName();int lastDot = n.lastIndexOf('.');if (lastDot >= 0) {n = n.substring(lastDot + 1);}return n.replace('$', '.');} | public override string ToString(){string n = GetType().FullName;int lastDot = n.LastIndexOf('.');if (lastDot >= 0){n = Sharpen.Runtime.Substring(n, lastDot + 1);}return n.Replace('$', '.');} |
public DeleteVoiceConnectorProxyResult deleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorProxy(request);} | public virtual DeleteVoiceConnectorProxyResponse DeleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorProxyRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorProxyResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorProxyResponse>(request, options);} |
public ByteArrayDataInput(byte[] bytes) {reset(bytes);} | public ByteArrayDataInput(byte[] bytes){Reset(bytes);} |
public CreateLocalGatewayRouteResult createLocalGatewayRoute(CreateLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRoute(request);} | public virtual CreateLocalGatewayRouteResponse CreateLocalGatewayRoute(CreateLocalGatewayRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateLocalGatewayRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateLocalGatewayRouteResponseUnmarshaller.Instance;return Invoke<CreateLocalGatewayRouteResponse>(request, options);} |
public static int strlen(char[] a, int start) {int len = 0;for (int i = start; i < a.length && a[i] != 0; i++) {len++;}return len;} | public static int StrLen(char[] a, int start){int len = 0;for (int i = start; i < a.Length && a[i] != 0; i++){len++;}return len;} |
public AttachPolicyResult attachPolicy(AttachPolicyRequest request) {request = beforeClientExecution(request);return executeAttachPolicy(request);} | public virtual AttachPolicyResponse AttachPolicy(AttachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = AttachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = AttachPolicyResponseUnmarshaller.Instance;return Invoke<AttachPolicyResponse>(request, options);} |
public void print(double dnum) {print(String.valueOf(dnum));} | public virtual void print(double dnum){print(dnum.ToString());} |
public static BreakIterator getCharacterInstance() {return getCharacterInstance(Locale.getDefault());} | public static java.text.BreakIterator getCharacterInstance(){return getCharacterInstance(System.Globalization.CultureInfo.CurrentCulture);} |
public boolean add(E object) {throw new UnsupportedOperationException();} | public virtual bool add(E @object){throw new System.NotSupportedException();} |
public SendMessageRequest(String queueUrl, String messageBody) {setQueueUrl(queueUrl);setMessageBody(messageBody);} | public SendMessageRequest(string queueUrl, string messageBody){_queueUrl = queueUrl;_messageBody = messageBody;} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {AreaEval reA = evaluateRef(arg0);AreaEval reB = evaluateRef(arg1);return resolveRange(reA, reB);} catch (EvaluationException e) {return e.getErrorEval();}} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1){try{AreaEval reA = EvaluateRef(arg0);AreaEval reB = EvaluateRef(arg1);return ResolveRange(reA, reB);}catch (EvaluationException e){return e.GetErrorEval();}} |
public CharBuffer put(char[] src, int srcOffset, int charCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, charCount);if (charCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + charCount; ++i) {put(src[i]);}return this;} | public virtual java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){java.util.Arrays.checkOffsetAndCount(src.Length, srcOffset, charCount);if (charCount > remaining()){throw new java.nio.BufferOverflowException();}{for (int i = srcOffset; i < srcOffset + charCount; ++i){put(src[i]);}}return this;} |
public void writeByte(byte b) {assert slice != null;if (slice[upto] != 0) {upto = pool.allocSlice(slice, upto);slice = pool.buffer;offset0 = pool.byteOffset;assert slice != null;}slice[upto++] = b;assert upto != slice.length;} | public override void WriteByte(byte b){Debug.Assert(slice != null);if (slice[upto] != 0){upto = pool.AllocSlice(slice, upto);slice = pool.Buffer;offset0 = pool.ByteOffset;Debug.Assert(slice != null);}slice[upto++] = (byte)b;Debug.Assert(upto != slice.Length);} |
public static double atanh(double a) {final double mult;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);mult = -0.5d;} else {mult = 0.5d;}return mult * Math.log((1.0d + a) / (1.0d - a));} | public static double Atanh(double a){double mult;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);mult = -0.5d;}else{mult = 0.5d;}return mult * Math.Log((1.0d + a) / (1.0d - a));} |
public static double asinh(double a) {final double sign;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);sign = -1.0d;} else {sign = 1.0d;}return sign * Math.log(Math.sqrt(a * a + 1.0d) + a);} | public static double Asinh(double a){double sign;if (J2N.BitConversion.DoubleToRawInt64Bits(a) < 0){a = Math.Abs(a);sign = -1.0d;}else{sign = 1.0d;}return sign * Math.Log(Math.Sqrt(a * a + 1.0d) + a);} |
public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){this.analyzer=analyzer;this.maxNumTerms = maxNumTerms;} | public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){q = new ScoreTermQueue(maxNumTerms);this.analyzer = analyzer;this.maxNumTerms = maxNumTerms;} |
public boolean precpred(RuleContext localctx, int precedence) {return precedence >= _precedenceStack.peek();} | public override bool Precpred(RuleContext localctx, int precedence){return precedence >= _precedenceStack[_precedenceStack.Count - 1];} |
public UpdateStackResult updateStack(UpdateStackRequest request) {request = beforeClientExecution(request);return executeUpdateStack(request);} | public virtual UpdateStackResponse UpdateStack(UpdateStackRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateStackRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateStackResponseUnmarshaller.Instance;return Invoke<UpdateStackResponse>(request, options);} |
public StartJumpserverRequest() {super("HPC", "2016-06-03", "StartJumpserver", "hpc");setMethod(MethodType.POST);} | public StartJumpserverRequest(): base("HPC", "2016-06-03", "StartJumpserver"){Method = MethodType.POST;} |
public List<FastIgnoreRule> getRules() {return Collections.unmodifiableList(rules);} | public virtual IList<IgnoreRule> GetRules(){return Sharpen.Collections.UnmodifiableList(rules);} |
public RefMap() {prefix = ""; packed = RefList.emptyList();loose = RefList.emptyList();resolved = RefList.emptyList();} | public RefMap(){prefix = string.Empty;packed = RefList.EmptyList();loose = RefList.EmptyList();resolved = RefList.EmptyList();} |
public Collection<ObjectId> getCandidates() {return candidates;} | public virtual ICollection<ObjectId> GetCandidates(){return candidates;} |
public int get(Object key) {int index = findIndex(key, keys);if (keys[index] == key) {return values[index];}return -1;} | public int get(object key){int index = findIndex(key, keys);if (keys[index] == key){return values[index];}return -1;} |
public String toStringEscaped(char[] enabledChars) {StringBuilder result = new StringBuilder();for (int i = 0; i < this.length(); i++) {if (this.chars[i] == '\\') {result.append('\\');} else {for (char character : enabledChars) {if (this.chars[i] == character && this.wasEscaped[i]) {result.append('\\');break;}}}result.append(this.chars[i]);}return result.toString();} | public ICharSequence ToStringEscaped(char[] enabledChars){StringBuilder result = new StringBuilder();for (int i = 0; i < this.Length; i++){if (this.chars[i] == '\\'){result.Append('\\');}else{foreach (char character in enabledChars){if (this.chars[i] == character && this.wasEscaped[i]){result.Append('\\');break;}}}result.Append(this.chars[i]);}return new StringCharSequence(result.ToString());} |
public DiffCommand setCached(boolean cached) {this.cached = cached;return this;} | public virtual NGit.Api.DiffCommand SetCached(bool cached){this.cached = cached;return this;} |
public RevertCommand revert() {return new RevertCommand(repo);} | public virtual RevertCommand Revert(){return new RevertCommand(repo);} |
@Override public void clear() {if (size != 0) {Arrays.fill(table, null);entryForNullKey = null;modCount++;size = 0;}} | public override void clear(){if (_size != 0){java.util.Arrays.fill(table, null);entryForNullKey = null;modCount++;_size = 0;}} |
public static double log2(double x) {return Math.log(x) / LOG_2;} | public static double Log2(double x){return Math.Log(x) / LOG_2;} |
public boolean isHorizontalBorder(){return horizontalBorder.isSet(field_1_options);} | public bool IsHorizontalBorder(){return horizontalBorder.IsSet(field_1_options);} |
public void validate() throws IllegalArgumentException {if (distErr != null && distErrPct != null)throw new IllegalArgumentException("Only distErr or distErrPct can be specified.");} | public virtual void Validate(){if (Operation.IsTargetNeedsArea && !Shape.HasArea){throw new ArgumentException(Operation + " only supports geometry with area");}if (DistErr != null && DistErrPct != null){throw new ArgumentException("Only DistErr or DistErrPct can be specified.");}} |
public DeleteConfigurationSetResult deleteConfigurationSet(DeleteConfigurationSetRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSet(request);} | public virtual DeleteConfigurationSetResponse DeleteConfigurationSet(DeleteConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteConfigurationSetResponseUnmarshaller.Instance;return Invoke<DeleteConfigurationSetResponse>(request, options);} |
public boolean incrementToken() {if (used) {return false;}clearAttributes();termAttribute.append(value);offsetAttribute.setOffset(0, value.length());used = true;return true;} | public override bool IncrementToken(){if (used){return false;}ClearAttributes();termAttribute.Append(value);offsetAttribute.SetOffset(0, value.Length);used = true;return true;} |
public static DoubleBuffer wrap(double[] array, int start, int doubleCount) {Arrays.checkOffsetAndCount(array.length, start, doubleCount);DoubleBuffer buf = new ReadWriteDoubleArrayBuffer(array);buf.position = start;buf.limit = start + doubleCount;return buf;} | public static java.nio.DoubleBuffer wrap(double[] array_1, int start, int doubleCount){java.util.Arrays.checkOffsetAndCount(array_1.Length, start, doubleCount);java.nio.DoubleBuffer buf = new java.nio.ReadWriteDoubleArrayBuffer(array_1);buf._position = start;buf._limit = start + doubleCount;return buf;} |
public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeDescribeSpotInstanceRequests(request);} | public virtual DescribeSpotInstanceRequestsResponse DescribeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSpotInstanceRequestsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSpotInstanceRequestsResponseUnmarshaller.Instance;return Invoke<DescribeSpotInstanceRequestsResponse>(request, options);} |
public UpdateFieldLevelEncryptionConfigResult updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeUpdateFieldLevelEncryptionConfig(request);} | public virtual UpdateFieldLevelEncryptionConfigResponse UpdateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateFieldLevelEncryptionConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateFieldLevelEncryptionConfigResponseUnmarshaller.Instance;return Invoke<UpdateFieldLevelEncryptionConfigResponse>(request, options);} |
public void setCachedResultTypeString() {specialCachedValue = FormulaSpecialCachedValue.createForString();} | public void SetCachedResultTypeString(){specialCachedValue = SpecialCachedValue.CreateForString();} |
public SpanNearBuilder(SpanQueryBuilder factory) {this.factory = factory;} | public SpanNearBuilder(ISpanQueryBuilder factory){this.factory = factory;} |
public long ramBytesUsed() {long sizeInBytes = 0;for(Map.Entry<String,DirectField> entry: fields.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;} | public override long RamBytesUsed(){long sizeInBytes = 0;foreach (KeyValuePair<string, DirectField> entry in fields){sizeInBytes += entry.Key.Length*RamUsageEstimator.NUM_BYTES_CHAR;sizeInBytes += entry.Value.RamBytesUsed();}return sizeInBytes;} |
public GlobalCluster deleteGlobalCluster(DeleteGlobalClusterRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalCluster(request);} | public virtual DeleteGlobalClusterResponse DeleteGlobalCluster(DeleteGlobalClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteGlobalClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteGlobalClusterResponseUnmarshaller.Instance;return Invoke<DeleteGlobalClusterResponse>(request, options);} |
public String toString() {return type.getSimpleName() + "[" + listener + "]";} | public override string ToString(){return type.Name + "[" + listener + "]";} |
public void parseLine(DocData docData, String line) {int k1 = 0;int k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.setTitle(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.setDate(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2>=0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (too many separators)!");}docData.setBody(line.substring(k1));} | public override void ParseLine(DocData docData, string line){int k1 = 0;int k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.Title = line.Substring(k1, k2 - k1);k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 < 0){throw new Exception("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.SetDate(line.Substring(k1, k2 - k1));k1 = k2 + 1;k2 = line.IndexOf(WriteLineDocTask.SEP, k1);if (k2 >= 0){throw new Exception("line: [" + line + "] is in an invalid format (too many separators)!");}docData.Body = line.Substring(k1);} |
public boolean isLarge() {return false;} | public override bool IsLarge(){return false;} |
public String toString() {StringBuilder sb = new StringBuilder();sb.append("TrackingRefUpdate[");sb.append(remoteName);sb.append(" -> ");sb.append(localName);if (forceUpdate)sb.append(" (forced)");sb.append(" ");sb.append(oldObjectId == null ? "" : oldObjectId.abbreviate(7).name());sb.append("..");sb.append(newObjectId == null ? "" : newObjectId.abbreviate(7).name());sb.append("]");return sb.toString();} | public override string ToString(){StringBuilder sb = new StringBuilder();sb.Append("TrackingRefUpdate[");sb.Append(remoteName);sb.Append(" -> ");sb.Append(localName);if (forceUpdate){sb.Append(" (forced)");}sb.Append(" ");sb.Append(oldObjectId == null ? string.Empty : oldObjectId.Abbreviate(7).Name);sb.Append("..");sb.Append(newObjectId == null ? string.Empty : newObjectId.Abbreviate(7).Name);sb.Append("]");return sb.ToString();} |
public DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes() {return describeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());} | public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(){return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());} |
public DeleteTagsRequest() {super("Ots", "2016-06-20", "DeleteTags", "ots");setMethod(MethodType.POST);} | public DeleteTagsRequest(): base("Ots", "2016-06-20", "DeleteTags", "ots", "openAPI"){Method = MethodType.POST;} |
public ChartFormatRecord(RecordInputStream in) {field1_x_position = in.readInt();field2_y_position = in.readInt();field3_width = in.readInt();field4_height = in.readInt();field5_grbit = in.readUShort();field6_unknown = in.readUShort();} | public ChartFormatRecord(RecordInputStream in1){field1_x_position = in1.ReadInt();field2_y_position = in1.ReadInt();field3_width = in1.ReadInt();field4_height = in1.ReadInt();field5_grbit = in1.ReadShort();field6_icrt = in1.ReadShort();} |
public void dispatch(IndexChangedListener listener) {listener.onIndexChanged(this);} | public override void Dispatch(IndexChangedListener listener){listener.OnIndexChanged(this);} |
public NameRecord cloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = getNameRecord(filterDbNameIndex);int newExtSheetIx = checkExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.getNameDefinition();for (int i=0; i< ptgs.length; i++) {Ptg ptg = ptgs[i];if (ptg instanceof Area3DPtg) {Area3DPtg a3p = (Area3DPtg) ((OperandPtg) ptg).copy();a3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = a3p;} else if (ptg instanceof Ref3DPtg) {Ref3DPtg r3p = (Ref3DPtg) ((OperandPtg) ptg).copy();r3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = createBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex+1);newNameRecord.setNameDefinition(ptgs);newNameRecord.setHidden(true);return newNameRecord;} | public NameRecord CloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = GetNameRecord(filterDbNameIndex);int newExtSheetIx = CheckExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.NameDefinition;for (int i = 0; i < ptgs.Length; i++){Ptg ptg = ptgs[i];if (ptg is Area3DPtg){Area3DPtg a3p = (Area3DPtg)((OperandPtg)ptg).Copy();a3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = a3p;}else if (ptg is Ref3DPtg){Ref3DPtg r3p = (Ref3DPtg)((OperandPtg)ptg).Copy();r3p.ExternSheetIndex = (newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = CreateBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex + 1);newNameRecord.NameDefinition = ptgs;newNameRecord.IsHiddenName = true;return newNameRecord;} |
public int read(byte[] b) throws IOException {int n = in.read(b);if (n == -1) {close();}return n;} | public override int read(byte[] buffer){throw new System.NotImplementedException();} |
public void serializeArrayConstantData(LittleEndianOutput out) {int len = _byteEncoding.length-_encodedTokenLen;out.write(_byteEncoding, _encodedTokenLen, len);} | public void SerializeArrayConstantData(ILittleEndianOutput out1){int len = _byteEncoding.Length - _encodedTokenLen;out1.Write(_byteEncoding, _encodedTokenLen, len);} |
public GetGcmChannelResult getGcmChannel(GetGcmChannelRequest request) {request = beforeClientExecution(request);return executeGetGcmChannel(request);} | public virtual GetGcmChannelResponse GetGcmChannel(GetGcmChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetGcmChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = GetGcmChannelResponseUnmarshaller.Instance;return Invoke<GetGcmChannelResponse>(request, options);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.