java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public SpatialArgs(SpatialOperation operation, Shape shape) {if (operation == null || shape == null)throw new NullPointerException("operation and shape are required");this.operation = operation;this.shape = shape;} | public SpatialArgs(SpatialOperation operation, IShape shape){if (operation == null || shape == null)throw new ArgumentException("operation and shape are required");this.Operation = operation;this.Shape = shape;} |
public int compareTo(Completion o) {return this.utf8.compareTo(o.utf8);} | public int CompareTo(Completion o){return this.Utf8.CompareTo(o.Utf8);} |
public GetInstancesResult getInstances(GetInstancesRequest request) {request = beforeClientExecution(request);return executeGetInstances(request);} | public virtual GetInstancesResponse GetInstances(GetInstancesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstancesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstancesResponseUnmarshaller.Instance;return Invoke<GetInstancesResponse>(request, options);} |
public int next() {if (text.getIndex() == text.getEndIndex() || 0 == sentenceStarts.length) {return DONE;} else if (currentSentence < sentenceStarts.length - 1) {text.setIndex(sentenceStarts[++currentSentence]);return current();} else {return last();}} | public override int Next(){if (text.Index == text.EndIndex || 0 == sentenceStarts.Length){return Done;}else if (currentSentence < sentenceStarts.Length - 1){text.SetIndex(sentenceStarts[++currentSentence]);return Current;}else{return Last();}} |
public HSSFClientAnchor getPreferredSize(double scaleX, double scaleY){ImageUtils.setPreferredSize(this, scaleX, scaleY);return getClientAnchor();} | public IClientAnchor GetPreferredSize(double scaleX, double scaleY){ImageUtils.SetPreferredSize(this, scaleX, scaleY);return ClientAnchor;} |
public CreateTaskSetResult createTaskSet(CreateTaskSetRequest request) {request = beforeClientExecution(request);return executeCreateTaskSet(request);} | public virtual CreateTaskSetResponse CreateTaskSet(CreateTaskSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTaskSetRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTaskSetResponseUnmarshaller.Instance;return Invoke<CreateTaskSetResponse>(request, options);} |
public ByteBuffer putFloat(int index, float value) {return putInt(index, Float.floatToRawIntBits(value));} | public override java.nio.ByteBuffer putFloat(int index, float value){return putInt(index, Sharpen.Util.FloatToRawIntBits(value));} |
public static void main(String[] args) throws Exception {String field = null;int numTerms = DEFAULT_NUMTERMS;if (args.length == 0 || args.length > 4) {usage();System.exit(1);}Directory dir = FSDirectory.open(Paths.get(args[0]));Comparator<TermStats> comparator = new DocFreqComparator();for (int i = 1; i < args.length; i++) {if (args[i].equals("-t")) {comparator = new TotalTermFreqComparator();}else{try {numTerms = Integer.parseInt(args[i]);} catch (NumberFormatException e) {field=args[i];}}}IndexReader reader = DirectoryReader.open(dir);TermStats[] terms = getHighFreqTerms(reader, numTerms, field, comparator);for (int i = 0; i < terms.length; i++) {System.out.printf(Locale.ROOT, "%s:%s \t totalTF = %,d \t docFreq = %,d \n",terms[i].field, terms[i].termtext.utf8ToString(), terms[i].totalTermFreq, terms[i].docFreq);}reader.close();} | public static void Main(string[] args){string field = null;int numTerms = DEFAULT_NUMTERMS;if (args.Length == 0 || args.Length > 4){throw new ArgumentException();}Store.Directory dir = FSDirectory.Open(new DirectoryInfo(args[0]));IComparer<TermStats> comparer = new DocFreqComparer();for (int i = 1; i < args.Length; i++){if (args[i].Equals("-t", StringComparison.Ordinal)){comparer = new TotalTermFreqComparer();}else{if (!int.TryParse(args[i], NumberStyles.Integer, CultureInfo.InvariantCulture, out numTerms))field = args[i];}}using (IndexReader reader = DirectoryReader.Open(dir)){TermStats[] terms = GetHighFreqTerms(reader, numTerms, field, comparer);for (int i = 0; i < terms.Length; i++){Console.WriteLine("{0}:{1} \t totalTF = {2:#,##0} \t doc freq = {3:#,##0} \n", terms[i].Field, terms[i].GetTermText(), terms[i].TotalTermFreq, terms[i].DocFreq);}}} |
public static Collection<String> getNotSupportedFunctionNames(){Collection<String> lst = new TreeSet<>();lst.addAll(FunctionEval.getNotSupportedFunctionNames());lst.addAll(AnalysisToolPak.getNotSupportedFunctionNames());return Collections.unmodifiableCollection(lst);} | public static List<String> GetNotSupportedFunctionNames(){List<String> lst = new List<String>();lst.AddRange(FunctionEval.GetNotSupportedFunctionNames());lst.AddRange(AnalysisToolPak.GetNotSupportedFunctionNames());return lst;} |
public CreateMeetingResult createMeeting(CreateMeetingRequest request) {request = beforeClientExecution(request);return executeCreateMeeting(request);} | public virtual CreateMeetingResponse CreateMeeting(CreateMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateMeetingResponseUnmarshaller.Instance;return Invoke<CreateMeetingResponse>(request, options);} |
public char get(int index) {checkIndex(index);return byteBuffer.getChar(index * SizeOf.CHAR);} | public override char get(int index){checkIndex(index);return byteBuffer.getChar(index * libcore.io.SizeOf.CHAR);} |
public GetInstanceSnapshotResult getInstanceSnapshot(GetInstanceSnapshotRequest request) {request = beforeClientExecution(request);return executeGetInstanceSnapshot(request);} | public virtual GetInstanceSnapshotResponse GetInstanceSnapshot(GetInstanceSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceSnapshotResponseUnmarshaller.Instance;return Invoke<GetInstanceSnapshotResponse>(request, options);} |
public static Map<String, Integer> toMap(String[] keys) {Map<String, Integer> m = new HashMap<String, Integer>();for (int i=0; i<keys.length; i++) {m.put(keys[i], i);}return m;} | public static IDictionary<string, int> ToMap(string[] keys){IDictionary<string, int> m = new Dictionary<string, int>();for (int i = 0; i < keys.Length; i++){m[keys[i]] = i;}return m;} |
public GetHealthCheckStatusResult getHealthCheckStatus(GetHealthCheckStatusRequest request) {request = beforeClientExecution(request);return executeGetHealthCheckStatus(request);} | public virtual GetHealthCheckStatusResponse GetHealthCheckStatus(GetHealthCheckStatusRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckStatusRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckStatusResponseUnmarshaller.Instance;return Invoke<GetHealthCheckStatusResponse>(request, options);} |
public GetReusableDelegationSetResult getReusableDelegationSet(GetReusableDelegationSetRequest request) {request = beforeClientExecution(request);return executeGetReusableDelegationSet(request);} | public virtual GetReusableDelegationSetResponse GetReusableDelegationSet(GetReusableDelegationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetReusableDelegationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetReusableDelegationSetResponseUnmarshaller.Instance;return Invoke<GetReusableDelegationSetResponse>(request, options);} |
public final ValueEval getAbsoluteValue(int row, int col) {int rowOffsetIx = row - _firstRow;int colOffsetIx = col - _firstColumn;if(rowOffsetIx < 0 || rowOffsetIx >= _nRows) {throw new IllegalArgumentException("Specified row index (" + row+ ") is outside the allowed range (" + _firstRow + ".." + _lastRow + ")");}if(colOffsetIx < 0 || colOffsetIx >= _nColumns) {throw new IllegalArgumentException("Specified column index (" + col+ ") is outside the allowed range (" + _firstColumn + ".." + col + ")");}return getRelativeValue(rowOffsetIx, colOffsetIx);} | public ValueEval GetAbsoluteValue(int row, int col){int rowOffsetIx = row - _firstRow;int colOffsetIx = col - _firstColumn;if (rowOffsetIx < 0 || rowOffsetIx >= _nRows){throw new ArgumentException("Specified row index (" + row+ ") is outside the allowed range (" + _firstRow + ".." + _lastRow + ")");}if (colOffsetIx < 0 || colOffsetIx >= _nColumns){throw new ArgumentException("Specified column index (" + col+ ") is outside the allowed range (" + _firstColumn + ".." + col + ")");}return GetRelativeValue(rowOffsetIx, colOffsetIx);} |
public final LongBuffer put(long[] src, int srcOffset, int longCount) {throw new ReadOnlyBufferException();} | public sealed override java.nio.LongBuffer put(long[] src, int srcOffset, int longCount){throw new java.nio.ReadOnlyBufferException();} |
public final String toString() {StringBuilder buffer = new StringBuilder();buffer.append("Document<");for (int i = 0; i < fields.size(); i++) {IndexableField field = fields.get(i);buffer.append(field.toString());if (i != fields.size()-1) {buffer.append(" ");}}buffer.append(">");return buffer.toString();} | public override string ToString(){var buffer = new StringBuilder();buffer.Append("Document<");for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];buffer.Append(field.ToString());if (i != fields.Count - 1){buffer.Append(" ");}}buffer.Append(">");return buffer.ToString();} |
public StartMatchBackfillResult startMatchBackfill(StartMatchBackfillRequest request) {request = beforeClientExecution(request);return executeStartMatchBackfill(request);} | public virtual StartMatchBackfillResponse StartMatchBackfill(StartMatchBackfillRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartMatchBackfillRequestMarshaller.Instance;options.ResponseUnmarshaller = StartMatchBackfillResponseUnmarshaller.Instance;return Invoke<StartMatchBackfillResponse>(request, options);} |
public FeatRecord clone() {return copy();} | public override Object Clone(){return CloneViaReserialise();} |
public DeleteEmailTemplateResult deleteEmailTemplate(DeleteEmailTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteEmailTemplate(request);} | public virtual DeleteEmailTemplateResponse DeleteEmailTemplate(DeleteEmailTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEmailTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEmailTemplateResponseUnmarshaller.Instance;return Invoke<DeleteEmailTemplateResponse>(request, options);} |
public ListReceiptRuleSetsResult listReceiptRuleSets(ListReceiptRuleSetsRequest request) {request = beforeClientExecution(request);return executeListReceiptRuleSets(request);} | public virtual ListReceiptRuleSetsResponse ListReceiptRuleSets(ListReceiptRuleSetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListReceiptRuleSetsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListReceiptRuleSetsResponseUnmarshaller.Instance;return Invoke<ListReceiptRuleSetsResponse>(request, options);} |
public boolean isRowGroupCollapsed(int row) {int collapseRow = findEndOfRowOutlineGroup(row) + 1;return getRow(collapseRow) != null && getRow(collapseRow).getColapsed();} | public bool IsRowGroupCollapsed(int row){int collapseRow = FindEndOfRowOutlineGroup(row) + 1;if (GetRow(collapseRow) == null)return false;else return GetRow(collapseRow).Colapsed;} |
public void setPathFilter(TreeFilter filter) {pathFilter = filter != null ? filter : TreeFilter.ALL;} | public virtual void SetPathFilter(TreeFilter filter){pathFilter = filter != null ? filter : TreeFilter.ALL;} |
public int getReturnState(int index) {assert index == 0;return returnState;} | public override int GetReturnState(int index){System.Diagnostics.Debug.Assert(index == 0);return returnState;} |
public GroupingSearch setGroupDocsLimit(int groupDocsLimit) {this.groupDocsLimit = groupDocsLimit;return this;} | public virtual GroupingSearch SetGroupDocsLimit(int groupDocsLimit){this.groupDocsLimit = groupDocsLimit;return this;} |
public final void removeField(String name) {Iterator<IndexableField> it = fields.iterator();while (it.hasNext()) {IndexableField field = it.next();if (field.name().equals(name)) {it.remove();return;}}} | public void RemoveField(string name){for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];if (field.Name.Equals(name, StringComparison.Ordinal)){fields.Remove(field);return;}}} |
public Double doubleValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Double.valueOf(responseMap.get(key));} | public double? DoubleValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return double.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;} |
public DescribeLoadBalancersResult describeLoadBalancers(DescribeLoadBalancersRequest request) {request = beforeClientExecution(request);return executeDescribeLoadBalancers(request);} | public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance;return Invoke<DescribeLoadBalancersResponse>(request, options);} |
public SpanQuery[] getClauses() {return clauses.toArray(new SpanQuery[clauses.size()]);} | public virtual SpanQuery[] GetClauses(){return clauses.ToArray();} |
public MulBlankRecord clone() {return copy();} | public override Object Clone(){return this;} |
public final PersonIdent getTaggerIdent() {final byte[] raw = buffer;final int nameB = RawParseUtils.tagger(raw, 0);if (nameB < 0)return null;return RawParseUtils.parsePersonIdent(raw, nameB);} | public PersonIdent GetTaggerIdent(){byte[] raw = buffer;int nameB = RawParseUtils.Tagger(raw, 0);if (nameB < 0){return null;}return RawParseUtils.ParsePersonIdent(raw, nameB);} |
public NameRecord createName(){return addName(new NameRecord());} | public NameRecord CreateName(){return AddName(new NameRecord());} |
public void setCacheMissesUntilFill(int i) {ensureOpen();cacheMissesUntilFill = i;} | public virtual void SetCacheMissesUntilFill(int i){EnsureOpen();cacheMissesUntilFill = i;} |
public final int hash(BytesRef br) {return hash32(br.bytes, br.offset, br.length);} | public override int Hash(BytesRef br){return Hash32(br.Bytes, br.Offset, br.Length);} |
public DoubleBuffer get(double[] dst, int dstOffset, int doubleCount) {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);if (byteBuffer instanceof DirectByteBuffer) {((DirectByteBuffer) byteBuffer).get(dst, dstOffset, doubleCount);} else {((HeapByteBuffer) byteBuffer).get(dst, dstOffset, doubleCount);}this.position += doubleCount;return this;} | public override java.nio.DoubleBuffer get(double[] dst, int dstOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.DirectByteBuffer){((java.nio.DirectByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}else{((java.nio.HeapByteBuffer)byteBuffer).get(dst, dstOffset, doubleCount);}this._position += doubleCount;return this;} |
public void append(int key, int value) {if (mSize != 0 && key <= mKeys[mSize - 1]) {put(key, value);return;}int pos = mSize;if (pos >= mKeys.length) {int n = ArrayUtils.idealIntArraySize(pos + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.arraycopy(mKeys, 0, nkeys, 0, mKeys.length);System.arraycopy(mValues, 0, nvalues, 0, mValues.length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;} | public virtual void append(int key, int value){if (mSize != 0 && key <= mKeys[mSize - 1]){put(key, value);return;}int pos = mSize;if (pos >= mKeys.Length){int n = [email protected](pos + 1);int[] nkeys = new int[n];int[] nvalues = new int[n];System.Array.Copy(mKeys, 0, nkeys, 0, mKeys.Length);System.Array.Copy(mValues, 0, nvalues, 0, mValues.Length);mKeys = nkeys;mValues = nvalues;}mKeys[pos] = key;mValues[pos] = value;mSize = pos + 1;} |
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2) {try {double d0 = NumericFunction.singleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.singleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);ValueEval ve = OperandResolver.getSingleValue(arg2, srcRowIndex, srcColumnIndex);Boolean method = OperandResolver.coerceValueToBoolean(ve, false);return new NumberEval(evaluate(d0, d1, method != null && method.booleanValue()));} catch (EvaluationException e) {return e.getErrorEval();}} | public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1, ValueEval arg2){double result;try{double d0 = NumericFunction.SingleOperandEvaluate(arg0, srcRowIndex, srcColumnIndex);double d1 = NumericFunction.SingleOperandEvaluate(arg1, srcRowIndex, srcColumnIndex);ValueEval ve = OperandResolver.GetSingleValue(arg2, srcRowIndex, srcColumnIndex);bool? method = OperandResolver.CoerceValueToBoolean(ve, false);result = Evaluate(d0, d1);}catch (EvaluationException e){return e.GetErrorEval();}return new NumberEval(result);} |
public QueryAllGroupsRequest() {super("LinkFace", "2018-07-20", "QueryAllGroups");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);} | public QueryAllGroupsRequest(): base("LinkFace", "2018-07-20", "QueryAllGroups"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;} |
public int replace(char s[], int len) {if (replacement.length > 0) {System.arraycopy(replacement, 0, s, len - suffix.length, replacement.length);}return len - suffix.length + replacement.length;} | public virtual int Replace(char[] s, int len){if (m_replacement.Length > 0){Array.Copy(m_replacement, 0, s, len - m_suffix.Length, m_replacement.Length);}return len - m_suffix.Length + m_replacement.Length;} |
public StandardSyntaxParserTokenManager(CharStream stream){input_stream = stream;} | public StandardSyntaxParserTokenManager(ICharStream stream){m_input_stream = stream;} |
public final String getFullMessage() {byte[] raw = buffer;int msgB = RawParseUtils.commitMessage(raw, 0);if (msgB < 0) {return ""; }return RawParseUtils.decode(guessEncoding(), raw, msgB, raw.length);} | public string GetFullMessage(){byte[] raw = buffer;int msgB = RawParseUtils.CommitMessage(raw, 0);if (msgB < 0){return string.Empty;}System.Text.Encoding enc = RawParseUtils.ParseEncoding(raw);return RawParseUtils.Decode(enc, raw, msgB, raw.Length);} |
public Request<GetPublicAccessBlockRequest> marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest) {if (getPublicAccessBlockRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<GetPublicAccessBlockRequest> request = new DefaultRequest<GetPublicAccessBlockRequest>(getPublicAccessBlockRequest, "AWSS3Control");request.setHttpMethod(HttpMethodName.GET);if (getPublicAccessBlockRequest.getAccountId() != null) {request.addHeader("x-amz-account-id", StringUtils.fromString(getPublicAccessBlockRequest.getAccountId()));}String uriResourcePath = "/v20180820/configuration/publicAccessBlock";request.setResourcePath(uriResourcePath);return request;} | public IRequest Marshall(GetPublicAccessBlockRequest getPublicAccessBlockRequest){IRequest request = new DefaultRequest(getPublicAccessBlockRequest, "AmazonS3");request.HttpMethod = "GET";if (string.IsNullOrEmpty(getPublicAccessBlockRequest.BucketName))throw new System.ArgumentException("BucketName is a required property and must be set before making this call.", "getPublicAccessBlockRequest.BucketName");request.MarshallerVersion = 2;request.ResourcePath = string.Concat("/", S3Transforms.ToStringValue(getPublicAccessBlockRequest.BucketName));request.AddSubResource("publicAccessBlock");request.UseQueryString = true;return request;} |
public ChangeTagsForResourceResult changeTagsForResource(ChangeTagsForResourceRequest request) {request = beforeClientExecution(request);return executeChangeTagsForResource(request);} | public virtual ChangeTagsForResourceResponse ChangeTagsForResource(ChangeTagsForResourceRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeTagsForResourceRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeTagsForResourceResponseUnmarshaller.Instance;return Invoke<ChangeTagsForResourceResponse>(request, options);} |
public void println(char c) {println(String.valueOf(c));} | public virtual void println(char c){println(c.ToString());} |
public RefUpdate.Result getResult() {return result;} | public virtual RefUpdate.Result GetResult(){return result;} |
public HSSFRow getRow(int rowIndex) {return _rows.get(Integer.valueOf(rowIndex));} | public NPOI.SS.UserModel.IRow GetRow(int rowIndex){if (!rows.ContainsKey(rowIndex))return null;return (HSSFRow)rows[rowIndex];} |
public LongBuffer slice() {byteBuffer.limit(limit * SizeOf.LONG);byteBuffer.position(position * SizeOf.LONG);ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());LongBuffer result = new LongToByteBufferAdapter(bb);byteBuffer.clear();return result;} | public override java.nio.LongBuffer slice(){byteBuffer.limit(_limit * libcore.io.SizeOf.LONG);byteBuffer.position(_position * libcore.io.SizeOf.LONG);java.nio.ByteBuffer bb = byteBuffer.slice().order(byteBuffer.order());java.nio.LongBuffer result = new java.nio.LongToByteBufferAdapter(bb);byteBuffer.clear();return result;} |
public void append(byte[] name, FileMode mode, AnyObjectId id) {append(name, 0, name.length, mode, id);} | public virtual void Append(byte[] name, FileMode mode, AnyObjectId id){Append(name, 0, name.Length, mode, id);} |
public String toString() {return String.format("mode(%d)", mode);} | public override string ToString(){return string.Format("mode({0})", mode);} |
public DescribeScriptResult describeScript(DescribeScriptRequest request) {request = beforeClientExecution(request);return executeDescribeScript(request);} | public virtual DescribeScriptResponse DescribeScript(DescribeScriptRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScriptRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScriptResponseUnmarshaller.Instance;return Invoke<DescribeScriptResponse>(request, options);} |
public String toString() {return "NoMergePolicy";} | public override string ToString(){return "NoMergePolicy";} |
public CacheSecurityGroup revokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest request) {request = beforeClientExecution(request);return executeRevokeCacheSecurityGroupIngress(request);} | public virtual RevokeCacheSecurityGroupIngressResponse RevokeCacheSecurityGroupIngress(RevokeCacheSecurityGroupIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = RevokeCacheSecurityGroupIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = RevokeCacheSecurityGroupIngressResponseUnmarshaller.Instance;return Invoke<RevokeCacheSecurityGroupIngressResponse>(request, options);} |
public final double get(int index) {checkIndex(index);return backingArray[offset + index];} | public sealed override double get(int index){checkIndex(index);return backingArray[offset + index];} |
public DeleteVoiceConnectorTerminationResult deleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorTermination(request);} | public virtual DeleteVoiceConnectorTerminationResponse DeleteVoiceConnectorTermination(DeleteVoiceConnectorTerminationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorTerminationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorTerminationResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorTerminationResponse>(request, options);} |
public FileTreeIterator(Repository repo) {this(repo,repo.getConfig().get(WorkingTreeOptions.KEY).isDirNoGitLinks() ?NoGitlinksStrategy.INSTANCE :DefaultFileModeStrategy.INSTANCE);} | public FileTreeIterator(Repository repo) : this(repo.WorkTree, repo.FileSystem, repo.GetConfig().Get(WorkingTreeOptions.KEY)){InitRootIterator(repo);} |
public ASCIIFoldingFilter(TokenStream input, boolean preserveOriginal){super(input);this.preserveOriginal = preserveOriginal;} | public ASCIIFoldingFilter(TokenStream input, bool preserveOriginal): base(input){this.preserveOriginal = preserveOriginal;termAtt = AddAttribute<ICharTermAttribute>();posIncAttr = AddAttribute<IPositionIncrementAttribute>();} |
public final CharBuffer asCharBuffer() {return CharToByteBufferAdapter.asCharBuffer(this);} | public sealed override java.nio.CharBuffer asCharBuffer(){return java.nio.CharToByteBufferAdapter.asCharBuffer(this);} |
public EmbeddedObjectRefSubRecord clone() {return copy();} | public override Object Clone(){return this; } |
public DescribeLifecycleHookTypesResult describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request) {request = beforeClientExecution(request);return executeDescribeLifecycleHookTypes(request);} | public virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance;return Invoke<DescribeLifecycleHookTypesResponse>(request, options);} |
public String getEncoding() {if (!isOpen()) {return null;}return HistoricalCharsetNames.get(decoder.charset());} | public virtual string getEncoding(){if (!isOpen()){return null;}return java.io.HistoricalCharsetNames.get(decoder.charset());} |
public void respondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request) {request = beforeClientExecution(request);executeRespondDecisionTaskCompleted(request);} | public virtual RespondDecisionTaskCompletedResponse RespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest request){var options = new InvokeOptions();options.RequestMarshaller = RespondDecisionTaskCompletedRequestMarshaller.Instance;options.ResponseUnmarshaller = RespondDecisionTaskCompletedResponseUnmarshaller.Instance;return Invoke<RespondDecisionTaskCompletedResponse>(request, options);} |
public void close() {delegate().close();} | public override void Close(){@in.Close();} |
public GetStreamingDistributionRequest(String id) {setId(id);} | public GetStreamingDistributionRequest(string id){_id = id;} |
@Override public boolean equals(Object object) {return object instanceof Name&& ((Name) object).name.equalsIgnoreCase(name);} | public sealed override bool Equals(object o){return base.Equals(o);} |
public String toString() {return snapshot().toString();} | public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";} |
public GetDirectoryResult getDirectory(GetDirectoryRequest request) {request = beforeClientExecution(request);return executeGetDirectory(request);} | public virtual GetDirectoryResponse GetDirectory(GetDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDirectoryResponseUnmarshaller.Instance;return Invoke<GetDirectoryResponse>(request, options);} |
public SoraniNormalizationFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public SoraniNormalizationFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public CreateSolutionVersionResult createSolutionVersion(CreateSolutionVersionRequest request) {request = beforeClientExecution(request);return executeCreateSolutionVersion(request);} | public virtual CreateSolutionVersionResponse CreateSolutionVersion(CreateSolutionVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSolutionVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSolutionVersionResponseUnmarshaller.Instance;return Invoke<CreateSolutionVersionResponse>(request, options);} |
public UpdateWorkteamResult updateWorkteam(UpdateWorkteamRequest request) {request = beforeClientExecution(request);return executeUpdateWorkteam(request);} | public virtual UpdateWorkteamResponse UpdateWorkteam(UpdateWorkteamRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateWorkteamRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateWorkteamResponseUnmarshaller.Instance;return Invoke<UpdateWorkteamResponse>(request, options);} |
public Matcher region(int start, int end) {return reset(input, start, end);} | public java.util.regex.Matcher region(int start_1, int end_1){return reset(java.lang.CharSequenceProxy.Wrap(input), start_1, end_1);} |
public boolean containsKey(Object o) {if(o == null)throw new NullPointerException();return false;} | public override bool ContainsKey(object o){if (o == null){throw new ArgumentNullException("o");}return false;} |
public UpdateServerCertificateRequest(String serverCertificateName) {setServerCertificateName(serverCertificateName);} | public UpdateServerCertificateRequest(string serverCertificateName){_serverCertificateName = serverCertificateName;} |
public int valueAt(int index) {return mValues[index];} | public virtual int valueAt(int index){return mValues[index];} |
public byte getCharacterClass(char c) {return characterCategoryMap[c];} | public byte GetCharacterClass(char c){return characterCategoryMap[c];} |
public int getBinaryExponent() {return _binaryExponent;} | public int GetBinaryExponent(){return _binaryExponent;} |
public long getOffset() {return offset;} | public virtual long GetOffset(){return offset;} |
public DescribeStackSetResult describeStackSet(DescribeStackSetRequest request) {request = beforeClientExecution(request);return executeDescribeStackSet(request);} | public virtual DescribeStackSetResponse DescribeStackSet(DescribeStackSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeStackSetRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeStackSetResponseUnmarshaller.Instance;return Invoke<DescribeStackSetResponse>(request, options);} |
public E get(int location) {try {return listIterator(location).next();} catch (NoSuchElementException e) {throw new IndexOutOfBoundsException();}} | public override E get(int location){try{return listIterator(location).next();}catch (java.util.NoSuchElementException){throw new System.IndexOutOfRangeException();}} |
public static boolean isComponentRecord(int sid) {switch (sid) {case ProtectRecord.sid:case ObjectProtectRecord.sid:case ScenarioProtectRecord.sid:case PasswordRecord.sid:return true;}return false;} | public static bool IsComponentRecord(int sid){switch (sid){case ProtectRecord.sid:case ObjectProtectRecord.sid:case ScenarioProtectRecord.sid:case PasswordRecord.sid:return true;}return false;} |
public long getFilePointer() {return main.getFilePointer();} | public override long GetFilePointer(){return main.GetFilePointer();} |
public String toFormulaString() {return ""; } | public override String ToFormulaString(){return ""; } |
public boolean run(String s) {int p = 0;int l = s.length();for (int i = 0, cp = 0; i < l; i += Character.charCount(cp)) {p = step(p, cp = s.codePointAt(i));if (p == -1) return false;}return accept.get(p);} | public virtual bool Run(string s){int p = m_initial;int l = s.Length;for (int i = 0, cp = 0; i < l; i += Character.CharCount(cp)){p = Step(p, cp = Character.CodePointAt(s, i));if (p == -1) return false;}return m_accept[p];} |
public GetSchemaAsJsonResult getSchemaAsJson(GetSchemaAsJsonRequest request) {request = beforeClientExecution(request);return executeGetSchemaAsJson(request);} | public virtual GetSchemaAsJsonResponse GetSchemaAsJson(GetSchemaAsJsonRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSchemaAsJsonRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSchemaAsJsonResponseUnmarshaller.Instance;return Invoke<GetSchemaAsJsonResponse>(request, options);} |
public T set(int index, T element) {if (index < 0 || size <= index)throw new IndexOutOfBoundsException(String.valueOf(index));T[] blockRef = directory[toDirectoryIndex(index)];int blockIdx = toBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;} | public override T Set(int index, T element){if (index < 0 || size <= index){throw new IndexOutOfRangeException(index.ToString());}T[] blockRef = directory[ToDirectoryIndex(index)];int blockIdx = ToBlockIndex(index);T old = blockRef[blockIdx];blockRef[blockIdx] = element;return old;} |
public int get(int index, long[] arr, int off, int len) {assert len > 0 : "len must be > 0 (got " + len + ")";assert index >= 0 && index < size();assert off + len <= arr.length;final int gets = Math.min(size() - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o) {arr[o] = get(i);}return gets;} | public virtual int Get(int index, long[] arr, int off, int len){Debug.Assert(len > 0, "len must be > 0 (got " + len + ")");Debug.Assert(index >= 0 && index < Count);Debug.Assert(off + len <= arr.Length);int gets = Math.Min(Count - index, len);for (int i = index, o = off, end = index + gets; i < end; ++i, ++o){arr[o] = Get(i);}return gets;} |
public void addParseListener(ParseTreeListener listener) {if (listener == null) {throw new NullPointerException("listener");}if (_parseListeners == null) {_parseListeners = new ArrayList<ParseTreeListener>();}this._parseListeners.add(listener);} | public virtual void AddParseListener(IParseTreeListener listener){if (listener == null){throw new ArgumentNullException("listener");}if (_parseListeners == null){_parseListeners = new List<IParseTreeListener>();}this._parseListeners.Add(listener);} |
public CreateQueryLoggingConfigResult createQueryLoggingConfig(CreateQueryLoggingConfigRequest request) {request = beforeClientExecution(request);return executeCreateQueryLoggingConfig(request);} | public virtual CreateQueryLoggingConfigResponse CreateQueryLoggingConfig(CreateQueryLoggingConfigRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateQueryLoggingConfigRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateQueryLoggingConfigResponseUnmarshaller.Instance;return Invoke<CreateQueryLoggingConfigResponse>(request, options);} |
public SetIdentityFeedbackForwardingEnabledResult setIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request) {request = beforeClientExecution(request);return executeSetIdentityFeedbackForwardingEnabled(request);} | public virtual SetIdentityFeedbackForwardingEnabledResponse SetIdentityFeedbackForwardingEnabled(SetIdentityFeedbackForwardingEnabledRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetIdentityFeedbackForwardingEnabledRequestMarshaller.Instance;options.ResponseUnmarshaller = SetIdentityFeedbackForwardingEnabledResponseUnmarshaller.Instance;return Invoke<SetIdentityFeedbackForwardingEnabledResponse>(request, options);} |
public int getValueAt(int relativeOffset) {if(relativeOffset >= _values.length) {throw new ArrayIndexOutOfBoundsException("Unable to fetch offset " + relativeOffset + " as the " +"BAT only contains " + _values.length + " entries");}return _values[relativeOffset];} | public int GetValueAt(int relativeOffset){if (relativeOffset >= _values.Length){throw new IndexOutOfRangeException("Unable to fetch offset " + relativeOffset + " as the " +"BAT only contains " + _values.Length + " entries");}return _values[relativeOffset];} |
@Override public boolean equals(Object o) {if (o == this) {return true;}if (!(o instanceof List)) {return false;}List<?> that = (List<?>) o;int s = size;if (that.size() != s) {return false;}Object[] a = array;if (that instanceof RandomAccess) {for (int i = 0; i < s; i++) {Object eThis = a[i];Object ethat = that.get(i);if (eThis == null ? ethat != null : !eThis.equals(ethat)) {return false;}}} else { Iterator<?> it = that.iterator();for (int i = 0; i < s; i++) {Object eThis = a[i];Object eThat = it.next();if (eThis == null ? eThat != null : !eThis.equals(eThat)) {return false;}}}return true;} | public override bool Equals(object o){if (o == this){return true;}if (!(o is java.util.List<E>)){return false;}java.util.List<E> that = (java.util.List<E>)o;int s = _size;if (that.size() != s){return false;}object[] a = array;if (that is java.util.RandomAccess){{for (int i = 0; i < s; i++){object eThis = a[i];object ethat = that.get(i);if (eThis == null ? ethat != null : !eThis.Equals(ethat)){return false;}}}}else{java.util.Iterator<E> it = that.iterator();{for (int i = 0; i < s; i++){object eThis = a[i];object eThat = it.next();if (eThis == null ? eThat != null : !eThis.Equals(eThat)){return false;}}}}return true;} |
public boolean equals(Object o) {if ( o instanceof ATNState ) return stateNumber==((ATNState)o).stateNumber;return false;} | public override bool Equals(object o){return o==this ||(o is ATNState && stateNumber == ((ATNState)o).stateNumber);} |
public EmptyTreeIterator createEmptyTreeIterator() {final byte[] n = new byte[Math.max(pathLen + 1, DEFAULT_PATH_SIZE)];System.arraycopy(path, 0, n, 0, pathLen);n[pathLen] = '/';return new EmptyTreeIterator(this, n, pathLen + 1);} | public override EmptyTreeIterator CreateEmptyTreeIterator(){byte[] n = new byte[Math.Max(pathLen + 1, DEFAULT_PATH_SIZE)];System.Array.Copy(path, 0, n, 0, pathLen);n[pathLen] = (byte)('/');return new EmptyTreeIterator(this, n, pathLen + 1);} |
public boolean isOverflow() {return this.type == TYPE_OVERFLOW;} | public virtual bool isOverflow(){return this.type == TYPE_OVERFLOW;} |
public ListQueueTagsResult listQueueTags(ListQueueTagsRequest request) {request = beforeClientExecution(request);return executeListQueueTags(request);} | public virtual ListQueueTagsResponse ListQueueTags(ListQueueTagsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListQueueTagsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListQueueTagsResponseUnmarshaller.Instance;return Invoke<ListQueueTagsResponse>(request, options);} |
public BuyOriginPicturesRequest() {super("lubancloud", "2018-05-09", "BuyOriginPictures", "luban");setMethod(MethodType.POST);} | public BuyOriginPicturesRequest(): base("lubancloud", "2018-05-09", "BuyOriginPictures", "luban", "openAPI"){Method = MethodType.POST;} |
public static String createSafeSheetName(final String nameProposal, char replaceChar) {if (nameProposal == null) {return "null";}if (nameProposal.length() < 1) {return "empty";}final int length = Math.min(31, nameProposal.length());final String shortenname = nameProposal.substring(0, length);final StringBuilder result = new StringBuilder(shortenname);for (int i=0; i<length; i++) {char ch = result.charAt(i);switch (ch) {case '\u0000':case '\u0003':case ':':case '/':case '\\':case '?':case '*':case ']':case '[':result.setCharAt(i, replaceChar);break;case '\'':if (i==0 || i==length-1) {result.setCharAt(i, replaceChar);}break;default:}}return result.toString();} | public static String CreateSafeSheetName(String nameProposal, char replaceChar) {if (nameProposal == null) {return "null";}if (nameProposal.Length < 1) {return "empty";}int length = Math.Min(31, nameProposal.Length);String shortenname = nameProposal.Substring(0, length);StringBuilder result = new StringBuilder(shortenname);for (int i=0; i<length; i++) {char ch = result[(i)];switch (ch) {case '\u0000':case '\u0003':case ':':case '/':case '\\':case '?':case '*':case ']':case '[':result[i] = replaceChar;break;case '\'':if (i==0 || i==length-1) {result[i] = replaceChar;}break;default:break;}}return result.ToString();} |
public String readLine() throws IOException {return primitiveTypes.readLine();} | public virtual string readLine(){throw new System.NotImplementedException();} |
public void setParentIds(ObjectId... newParents) {parentIds = new ObjectId[newParents.length];for (int i = 0; i < newParents.length; i++)parentIds[i] = newParents[i].copy();} | public virtual void SetParentIds(params ObjectId[] newParents){parentIds = new ObjectId[newParents.Length];for (int i = 0; i < newParents.Length; i++){parentIds[i] = newParents[i].Copy();}} |
public LexerATNConfig(LexerATNConfig c, ATNState state,LexerActionExecutor lexerActionExecutor){super(c, state, c.context, c.semanticContext);this.lexerActionExecutor = lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);} | public LexerATNConfig(LexerATNConfig c, ATNState state,LexerActionExecutor lexerActionExecutor): base(c, state, c.context, c.semanticContext){this.lexerActionExecutor = lexerActionExecutor;this.passedThroughNonGreedyDecision = checkNonGreedyDecision(c, state);} |
Subsets and Splits