java
stringlengths 28
1.4k
| C#
stringlengths 27
1.38k
|
---|---|
public String toString() {final StringBuilder r = new StringBuilder();r.append("("); for (int i = 0; i < subfilters.length; i++) {if (i > 0)r.append(" OR "); r.append(subfilters[i].toString());}r.append(")"); return r.toString();} | public override string ToString(){StringBuilder r = new StringBuilder();r.Append("(");for (int i = 0; i < subfilters.Length; i++){if (i > 0){r.Append(" AND ");}r.Append(subfilters[i].ToString());}r.Append(")");return r.ToString();} |
public boolean equals( Object o ) {return o instanceof FrenchStemmer;} | public override bool Equals(object o){return o is FrenchStemmer;} |
public MergedCellsTable() {_mergedRegions = new ArrayList<>();} | public MergedCellsTable(){_mergedRegions = new List<CellRangeAddress>();} |
public PrecedencePredicateTransition(ATNState target, int precedence) {super(target);this.precedence = precedence;} | public PrecedencePredicateTransition(ATNState target, int precedence): base(target){this.precedence = precedence;} |
public String toFormulaString() {throw new RuntimeException("Coding Error: Expected ExpPtg to be converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't");} | public override String ToFormulaString(){throw new RecordFormatException("Coding Error: Expected ExpPtg to be Converted from Shared to Non-Shared Formula by ValueRecordsAggregate, but it wasn't");} |
public ParseTree getChild(int i) {return children!=null && i>=0 && i<children.size() ? children.get(i) : null;} | public override IParseTree GetChild(int i){return children != null && i >= 0 && i < children.Count ? children[i] : null;} |
public ListIterator<E> listIterator(int index) {return delegate().listIterator(index); } | public virtual java.util.ListIterator<E> listIterator(int location){lock (mutex){return list.listIterator(location);}} |
public StringBuffer getBuffer() {return buf;} | public virtual java.lang.StringBuffer getBuffer(){return buf;} |
public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray) {hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.init();bytesUsed = bytesStartArray.bytesUsed() == null? Counter.newCounter() : bytesStartArray.bytesUsed();bytesUsed.addAndGet(hashSize * Integer.BYTES);} | public BytesRefHash(ByteBlockPool pool, int capacity, BytesStartArray bytesStartArray){hashSize = capacity;hashHalfSize = hashSize >> 1;hashMask = hashSize - 1;this.pool = pool;ids = new int[hashSize];Arrays.Fill(ids, -1);this.bytesStartArray = bytesStartArray;bytesStart = bytesStartArray.Init();bytesUsed = bytesStartArray.BytesUsed() == null ? Counter.NewCounter() : bytesStartArray.BytesUsed();bytesUsed.AddAndGet(hashSize * RamUsageEstimator.NUM_BYTES_INT32);} |
public GetIdentityDkimAttributesResult getIdentityDkimAttributes(GetIdentityDkimAttributesRequest request) {request = beforeClientExecution(request);return executeGetIdentityDkimAttributes(request);} | public virtual GetIdentityDkimAttributesResponse GetIdentityDkimAttributes(GetIdentityDkimAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityDkimAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityDkimAttributesResponseUnmarshaller.Instance;return Invoke<GetIdentityDkimAttributesResponse>(request, options);} |
public DescribeSubnetsResult describeSubnets(DescribeSubnetsRequest request) {request = beforeClientExecution(request);return executeDescribeSubnets(request);} | public virtual DescribeSubnetsResponse DescribeSubnets(DescribeSubnetsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSubnetsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSubnetsResponseUnmarshaller.Instance;return Invoke<DescribeSubnetsResponse>(request, options);} |
public final void serialize(LittleEndianOutput out) {if (getTextLength() > 0) {out.writeShort(getTextLength());out.writeByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte) {StringUtil.putUnicodeLE(field_3_text, out);} else {StringUtil.putCompressedUnicode(field_3_text, out);}}} | public override void Serialize(ILittleEndianOutput out1){if (TextLength > 0){out1.WriteShort(TextLength);out1.WriteByte(field_2_hasMultibyte ? 0x01 : 0x00);if (field_2_hasMultibyte){StringUtil.PutUnicodeLE(field_3_text, out1);}else{StringUtil.PutCompressedUnicode(field_3_text, out1);}}} |
public DeleteMessageRequest(String queueUrl, String receiptHandle) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);} | public DeleteMessageRequest(string queueUrl, string receiptHandle){_queueUrl = queueUrl;_receiptHandle = receiptHandle;} |
public int find(char[] key, int start) {int d;char p = root;int i = start;char c;while (p != 0) {if (sc[p] == 0xFFFF) {if (strcmp(key, i, kv.getArray(), lo[p]) == 0) {return eq[p];} else {return -1;}}c = key[i];d = c - sc[p];if (d == 0) {if (c == 0) {return eq[p];}i++;p = eq[p];} else if (d < 0) {p = lo[p];} else {p = hi[p];}}return -1;} | public virtual int Find(char[] key, int start){int d;char p = m_root;int i = start;char c;while (p != 0){if (m_sc[p] == 0xFFFF){if (StrCmp(key, i, m_kv.Array, m_lo[p]) == 0){return m_eq[p];}else{return -1;}}c = key[i];d = c - m_sc[p];if (d == 0){if (c == 0){return m_eq[p];}i++;p = m_eq[p];}else if (d < 0){p = m_lo[p];}else{p = m_hi[p];}}return -1;} |
public DescribeIdFormatResult describeIdFormat(DescribeIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeIdFormat(request);} | public virtual DescribeIdFormatResponse DescribeIdFormat(DescribeIdFormatRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdFormatRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdFormatResponseUnmarshaller.Instance;return Invoke<DescribeIdFormatResponse>(request, options);} |
public void setCharAt(int index, char ch) {if (index < 0 || index >= count) {throw indexAndLength(index);}if (shared) {value = value.clone();shared = false;}value[index] = ch;} | public virtual void setCharAt(int index, char ch){if (index < 0 || index >= count){throw indexAndLength(index);}if (shared){value = (char[])value.Clone();shared = false;}value[index] = ch;} |
public FieldFragList createFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize) {FieldFragList ffl = new SimpleFieldFragList( fragCharSize );List<WeightedPhraseInfo> wpil = new ArrayList<>();Iterator<WeightedPhraseInfo> ite = fieldPhraseList.phraseList.iterator();WeightedPhraseInfo phraseInfo = null;while( true ){if( !ite.hasNext() ) break;phraseInfo = ite.next();if( phraseInfo == null ) break;wpil.add( phraseInfo );}if( wpil.size() > 0 )ffl.add( 0, Integer.MAX_VALUE, wpil );return ffl;} | public virtual FieldFragList CreateFieldFragList(FieldPhraseList fieldPhraseList,int fragCharSize){FieldFragList ffl = new SimpleFieldFragList(fragCharSize);List<WeightedPhraseInfo> wpil = new List<WeightedPhraseInfo>();using (IEnumerator<WeightedPhraseInfo> ite = fieldPhraseList.PhraseList.GetEnumerator()){WeightedPhraseInfo phraseInfo = null;while (true){if (!ite.MoveNext()) break;phraseInfo = ite.Current;if (phraseInfo == null) break;wpil.Add(phraseInfo);}if (wpil.Count > 0)ffl.Add(0, int.MaxValue, wpil);return ffl;}} |
public List<String> getModifiedList() {return modifiedList;} | public virtual IList<string> GetModifiedList(){return modifiedList;} |
public synchronized int capacity() {return elementData.length;} | public virtual int capacity(){lock (this){return elementData.Length;}} |
public GermanLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public GermanLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public void setAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2) {checkRange(getDx1(), 0, 1023, "dx1");checkRange(getDx2(), 0, 1023, "dx2");checkRange(getDy1(), 0, 255, "dy1");checkRange(getDy2(), 0, 255, "dy2");checkRange(getCol1(), 0, MAX_COL, "col1");checkRange(getCol2(), 0, MAX_COL, "col2");checkRange(getRow1(), 0, MAX_ROW, "row1");checkRange(getRow2(), 0, MAX_ROW, "row2");setCol1(col1);setRow1(row1);setDx1(x1);setDy1(y1);setCol2(col2);setRow2(row2);setDx2(x2);setDy2(y2);} | public void SetAnchor(short col1, int row1, int x1, int y1, short col2, int row2, int x2, int y2){CheckRange(x1, 0, 1023, "dx1");CheckRange(x2, 0, 1023, "dx2");CheckRange(y1, 0, 255, "dy1");CheckRange(y2, 0, 255, "dy2");CheckRange(col1, 0, 255, "col1");CheckRange(col2, 0, 255, "col2");CheckRange(row1, 0, 255 * 256, "row1");CheckRange(row2, 0, 255 * 256, "row2");this.Col1 = col1;this.Row1 = row1;this.Dx1 = x1;this.Dy1 = y1;this.Col2 = col2;this.Row2 = row2;this.Dx2 = x2;this.Dy2 = y2;} |
public static ErrorEval valueOf(int errorCode) {FormulaError error = FormulaError.forInt(errorCode);ErrorEval eval = evals.get(error);if (eval != null) {return eval;} else {throw new RuntimeException("Unhandled error type for code " + errorCode);}} | public static ErrorEval ValueOf(int errorCode){FormulaError error = FormulaError.ForInt(errorCode);if (evals.ContainsKey(error))return evals[error];throw new RuntimeException("Unhandled error type for code " + errorCode);} |
public static long calculateChecksum(byte[] data) {Checksum sum = new CRC32();sum.update(data, 0, data.length);return sum.getValue();} | public static long CalculateChecksum(byte[] data){CRC32 sum = new CRC32();return (long)sum.ByteCRC(ref data);} |
public RevCommit lookupCommit(AnyObjectId id) {RevCommit c = (RevCommit) objects.get(id);if (c == null) {c = createCommit(id);objects.add(c);}return c;} | public virtual RevCommit LookupCommit(AnyObjectId id){RevCommit c = (RevCommit)objects.Get(id);if (c == null){c = CreateCommit(id);objects.Add(c);}return c;} |
public String toString() {QueryText text = this.values.get(0);return "<path start='" + text.begin + "' end='" + text.end + "' path='"+ getPathString() + "'/>";} | public override string ToString(){QueryText text = this.values[0];return "<path start='" + text.Begin + "' end='" + text.End + "' path='"+ GetPathString() + "'/>";} |
public TokenStream create(TokenStream input) {StopFilter stopFilter = new StopFilter(input,stopWords);return stopFilter;} | public override TokenStream Create(TokenStream input){StopFilter stopFilter = new StopFilter(m_luceneMatchVersion, input, stopWords);stopFilter.SetEnablePositionIncrements(enablePositionIncrements);return stopFilter;} |
public DeleteStreamProcessorResult deleteStreamProcessor(DeleteStreamProcessorRequest request) {request = beforeClientExecution(request);return executeDeleteStreamProcessor(request);} | public virtual DeleteStreamProcessorResponse DeleteStreamProcessor(DeleteStreamProcessorRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteStreamProcessorRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteStreamProcessorResponseUnmarshaller.Instance;return Invoke<DeleteStreamProcessorResponse>(request, options);} |
public RuleWithSetExceptions(String suffix, int min, String replacement,String[] exceptions) {super(suffix, min, replacement);for (int i = 0; i < exceptions.length; i++) {if (!exceptions[i].endsWith(suffix))throw new RuntimeException("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}this.exceptions = new CharArraySet(Arrays.asList(exceptions), false);} | public RuleWithSetExceptions(string suffix, int min, string replacement, string[] exceptions) : base(suffix, min, replacement){for (int i = 0; i < exceptions.Length; i++){if (!exceptions[i].EndsWith(suffix, StringComparison.Ordinal)){throw new Exception("useless exception '" + exceptions[i] + "' does not end with '" + suffix + "'");}}this.m_exceptions = new CharArraySet(LuceneVersion.LUCENE_CURRENT,exceptions, false);} |
public CreateClientVpnRouteResult createClientVpnRoute(CreateClientVpnRouteRequest request) {request = beforeClientExecution(request);return executeCreateClientVpnRoute(request);} | public virtual CreateClientVpnRouteResponse CreateClientVpnRoute(CreateClientVpnRouteRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateClientVpnRouteRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateClientVpnRouteResponseUnmarshaller.Instance;return Invoke<CreateClientVpnRouteResponse>(request, options);} |
public RangeTransition(ATNState target, int from, int to) {super(target);this.from = from;this.to = to;} | public RangeTransition(ATNState target, int from, int to): base(target){this.from = from;this.to = to;} |
public TypeAsPayloadTokenFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public TypeAsPayloadTokenFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public void fromRaw(int[] ints, int p) {w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];} | public virtual void FromRaw(int[] ints, int p){w1 = ints[p];w2 = ints[p + 1];w3 = ints[p + 2];w4 = ints[p + 3];w5 = ints[p + 4];} |
public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer) {super(input);this.normalizer = normalizer;} | public ICUNormalizer2Filter(TokenStream input, Normalizer2 normalizer): base(input){this.normalizer = normalizer;this.termAtt = AddAttribute<ICharTermAttribute>();} |
public static TreeFilter create(TreeFilter a) {return new NotTreeFilter(a);} | public static TreeFilter Create(TreeFilter a){return new NGit.Treewalk.Filter.NotTreeFilter(a);} |
public boolean isMalformed() {return this.type == TYPE_MALFORMED_INPUT;} | public virtual bool isMalformed(){return this.type == TYPE_MALFORMED_INPUT;} |
public void enterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence) {Pair<ParserRuleContext, Integer> pair = new Pair<ParserRuleContext, Integer>(_ctx, localctx.invokingState);_parentContextStack.push(pair);super.enterRecursionRule(localctx, state, ruleIndex, precedence);} | public override void EnterRecursionRule(ParserRuleContext localctx, int state, int ruleIndex, int precedence){_parentContextStack.Push(Tuple.Create(RuleContext, localctx.invokingState));base.EnterRecursionRule(localctx, state, ruleIndex, precedence);} |
public DescribeAddressesResult describeAddresses(DescribeAddressesRequest request) {request = beforeClientExecution(request);return executeDescribeAddresses(request);} | public virtual DescribeAddressesResponse DescribeAddresses(DescribeAddressesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAddressesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAddressesResponseUnmarshaller.Instance;return Invoke<DescribeAddressesResponse>(request, options);} |
public int getEstimatedUniqueValues(){return getEstimatedNumberUniqueValuesAllowingForCollisions(bloomSize, filter.cardinality());} | public virtual int GetEstimatedUniqueValues(){return GetEstimatedNumberUniqueValuesAllowingForCollisions(_bloomSize, _filter.Cardinality());} |
public DescribeTransformJobResult describeTransformJob(DescribeTransformJobRequest request) {request = beforeClientExecution(request);return executeDescribeTransformJob(request);} | public virtual DescribeTransformJobResponse DescribeTransformJob(DescribeTransformJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTransformJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTransformJobResponseUnmarshaller.Instance;return Invoke<DescribeTransformJobResponse>(request, options);} |
public HeaderFooterRecord clone() {return copy();} | public override Object Clone(){return CloneViaReserialise();} |
public void decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block0 = blocks[blocksOffset++];values[valuesOffset++] = block0 >>> 40;values[valuesOffset++] = (block0 >>> 16) & 16777215L;final long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | (block1 >>> 56);values[valuesOffset++] = (block1 >>> 32) & 16777215L;values[valuesOffset++] = (block1 >>> 8) & 16777215L;final long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | (block2 >>> 48);values[valuesOffset++] = (block2 >>> 24) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}} | public override void Decode(long[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block0 = blocks[blocksOffset++];values[valuesOffset++] = (long)((ulong)block0 >> 40);values[valuesOffset++] = ((long)((ulong)block0 >> 16)) & 16777215L;long block1 = blocks[blocksOffset++];values[valuesOffset++] = ((block0 & 65535L) << 8) | ((long)((ulong)block1 >> 56));values[valuesOffset++] = ((long)((ulong)block1 >> 32)) & 16777215L;values[valuesOffset++] = ((long)((ulong)block1 >> 8)) & 16777215L;long block2 = blocks[blocksOffset++];values[valuesOffset++] = ((block1 & 255L) << 16) | ((long)((ulong)block2 >> 48));values[valuesOffset++] = ((long)((ulong)block2 >> 24)) & 16777215L;values[valuesOffset++] = block2 & 16777215L;}} |
public FieldInfo fieldInfo(int fieldNumber) {if (fieldNumber < 0) {throw new IllegalArgumentException("Illegal field number: " + fieldNumber);}if (fieldNumber >= byNumber.length) {return null;}return byNumber[fieldNumber];} | public virtual FieldInfo FieldInfo(int fieldNumber){if (fieldNumber < 0){throw new System.ArgumentException("Illegal field number: " + fieldNumber);}Index.FieldInfo ret;byNumber.TryGetValue(fieldNumber, out ret);return ret;} |
public DescribeIdentityPoolResult describeIdentityPool(DescribeIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityPool(request);} | public virtual DescribeIdentityPoolResponse DescribeIdentityPool(DescribeIdentityPoolRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeIdentityPoolRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeIdentityPoolResponseUnmarshaller.Instance;return Invoke<DescribeIdentityPoolResponse>(request, options);} |
public static String getText(Node e) {StringBuilder sb = new StringBuilder();getTextBuffer(e, sb);return sb.toString();} | public static string GetText(XmlNode e){StringBuilder sb = new StringBuilder();GetTextBuffer(e, sb);return sb.ToString();} |
public void delete(int key) {int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0) {removeAt(i);}} | public virtual void delete(int key){int i = binarySearch(mKeys, 0, mSize, key);if (i >= 0){removeAt(i);}} |
public GetCurrentMetricDataResult getCurrentMetricData(GetCurrentMetricDataRequest request) {request = beforeClientExecution(request);return executeGetCurrentMetricData(request);} | public virtual GetCurrentMetricDataResponse GetCurrentMetricData(GetCurrentMetricDataRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCurrentMetricDataRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCurrentMetricDataResponseUnmarshaller.Instance;return Invoke<GetCurrentMetricDataResponse>(request, options);} |
public void append(String name, FileMode mode, AnyObjectId id) {append(encode(name), mode, id);} | public virtual void Append(string name, FileMode mode, AnyObjectId id){Append(Constants.Encode(name), mode, id);} |
public final String replacement() {return replacementChars;} | public string replacement(){return replacementChars;} |
public WindowProtectRecord(boolean protect) {this(0);setProtect(protect);} | public WindowProtectRecord(bool protect):this(0){Protect = (protect);} |
public static boolean equals(long[] array1, long[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;} | public static bool equals(long[] array1, long[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;} |
public PredictionContext getParent(int index) {assert index == 0;return parent;} | public override PredictionContext GetParent(int index){System.Diagnostics.Debug.Assert(index == 0);return parent;} |
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return "*:*";} | public override string ToQueryString(IEscapeQuerySyntax escapeSyntaxParser){return "*:*";} |
public SeekStatus seekCeil(BytesRef term) throws IOException {throw new UnsupportedOperationException(getClass().getName()+" does not support seeking");} | public override SeekStatus SeekCeil(BytesRef term){throw new System.NotSupportedException(this.GetType().Name + " does not support seeking");} |
public BindInstance2VpcRequest() {super("Ots", "2016-06-20", "BindInstance2Vpc", "ots");setMethod(MethodType.POST);} | public BindInstance2VpcRequest(): base("Ots", "2016-06-20", "BindInstance2Vpc", "ots", "openAPI"){Method = MethodType.POST;} |
public UpdateTableResult updateTable(String tableName, ProvisionedThroughput provisionedThroughput) {return updateTable(new UpdateTableRequest().withTableName(tableName).withProvisionedThroughput(provisionedThroughput));} | public virtual UpdateTableResponse UpdateTable(string tableName, ProvisionedThroughput provisionedThroughput){var request = new UpdateTableRequest();request.TableName = tableName;request.ProvisionedThroughput = provisionedThroughput;return UpdateTable(request);} |
public boolean get(int index) {return in.get(docMap.newToOld(index));} | public bool Get(int index){return @in.Get(docMap.NewToOld(index));} |
public GetQueueAttributesResult getQueueAttributes(GetQueueAttributesRequest request) {request = beforeClientExecution(request);return executeGetQueueAttributes(request);} | public virtual GetQueueAttributesResponse GetQueueAttributes(GetQueueAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetQueueAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetQueueAttributesResponseUnmarshaller.Instance;return Invoke<GetQueueAttributesResponse>(request, options);} |
public UpdateUserRoutingProfileResult updateUserRoutingProfile(UpdateUserRoutingProfileRequest request) {request = beforeClientExecution(request);return executeUpdateUserRoutingProfile(request);} | public virtual UpdateUserRoutingProfileResponse UpdateUserRoutingProfile(UpdateUserRoutingProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateUserRoutingProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateUserRoutingProfileResponseUnmarshaller.Instance;return Invoke<UpdateUserRoutingProfileResponse>(request, options);} |
public int getMidIx() {int ixDiff = _highIx - _lowIx;if(ixDiff < 2) {return -1;}return _lowIx + (ixDiff / 2);} | public int GetMidIx(){int ixDiff = _highIx - _lowIx;if (ixDiff < 2){return -1;}return _lowIx + (ixDiff / 2);} |
public MergeResult getMergeResult() {return this.mergeResult;} | public virtual MergeCommandResult GetMergeResult(){return this.mergeResult;} |
public void setAsActiveCell(){int row=_record.getRow();short col=_record.getColumn();_sheet.getSheet().setActiveCellRow(row);_sheet.getSheet().setActiveCellCol(col);} | public void SetAsActiveCell(){int row = _record.Row;int col = _record.Column;this._sheet.Sheet.SetActiveCell(row, col);} |
public InviteMembersResult inviteMembers(InviteMembersRequest request) {request = beforeClientExecution(request);return executeInviteMembers(request);} | public virtual InviteMembersResponse InviteMembers(InviteMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = InviteMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = InviteMembersResponseUnmarshaller.Instance;return Invoke<InviteMembersResponse>(request, options);} |
public FormatTrackingHSSFListener(HSSFListener childListener) {this(childListener, LocaleUtil.getUserLocale());} | public FormatTrackingHSSFListener(IHSSFListener childListener){this.childListener = childListener;} |
public UpdateDistributionRequest(DistributionConfig distributionConfig, String id, String ifMatch) {setDistributionConfig(distributionConfig);setId(id);setIfMatch(ifMatch);} | public UpdateDistributionRequest(string id, string ifMatch, DistributionConfig distributionConfig){_id = id;_ifMatch = ifMatch;_distributionConfig = distributionConfig;} |
public GetLogEventsRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);} | public GetLogEventsRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;} |
public String toString() {return "FlushInfo [numDocs=" + numDocs + ", estimatedSegmentSize="+ estimatedSegmentSize + "]";} | public override string ToString(){return "FlushInfo [numDocs=" + NumDocs + ", estimatedSegmentSize=" + EstimatedSegmentSize + "]";} |
public GrowableWriter resize(int newSize) {GrowableWriter next = new GrowableWriter(getBitsPerValue(), newSize, acceptableOverheadRatio);final int limit = Math.min(size(), newSize);PackedInts.copy(current, 0, next, 0, limit, PackedInts.DEFAULT_BUFFER_SIZE);return next;} | public virtual GrowableWriter Resize(int newSize){GrowableWriter next = new GrowableWriter(BitsPerValue, newSize, acceptableOverheadRatio);int limit = Math.Min(Count, newSize);PackedInt32s.Copy(current, 0, next, 0, limit, PackedInt32s.DEFAULT_BUFFER_SIZE);return next;} |
public Analyzer(ReuseStrategy reuseStrategy) {this.reuseStrategy = reuseStrategy;} | public Analyzer(ReuseStrategy reuseStrategy){this.reuseStrategy = reuseStrategy;} |
public void reset() {prevAccept.reset();startIndex = -1;line = 1;charPositionInLine = 0;mode = Lexer.DEFAULT_MODE;} | public void Reset(){index = -1;line = 0;charPos = -1;dfaState = null;} |
public EmbeddedObjectRefSubRecord() {field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;} | public EmbeddedObjectRefSubRecord(){field_2_unknownFormulaData = new byte[] { 0x02, 0x6C, 0x6A, 0x16, 0x01, }; field_6_unknown = EMPTY_BYTE_ARRAY;field_4_ole_classname = null;field_4_unknownByte = null;} |
public String toString() {return "doc=" + doc + " score=" + score + " shardIndex=" + shardIndex;} | public override string ToString(){return "doc=" + Doc + " score=" + Score + " shardIndex=" + ShardIndex;} |
public static double kthLargest(double[] v, int k) {double r = Double.NaN;int index = k-1; if (v!=null && v.length > index && index >= 0) {Arrays.sort(v);r = v[v.length-index-1];}return r;} | public static double kthLargest(double[] v, int k){double r = double.NaN;k--; if (v != null && v.Length > k && k >= 0){Array.Sort(v);r = v[v.Length - k - 1];}return r;} |
public int get(int forwardId, int backwardId) {int offset = (backwardId * forwardSize + forwardId) * 2;return buffer.getShort(offset);} | public int Get(int forwardId, int backwardId){return costs[backwardId][forwardId];} |
public void sort() {Arrays.sort(entries, 0, count);} | public virtual void Sort(){Arrays.Sort(entries, 0, count);} |
public BM25FQuery build() {int size = fieldAndWeights.size() * termsSet.size();if (size > IndexSearcher.getMaxClauseCount()) {throw new IndexSearcher.TooManyClauses();}BytesRef[] terms = termsSet.toArray(new BytesRef[0]);return new BM25FQuery(similarity, new TreeMap<>(fieldAndWeights), terms);} | public virtual StemmerOverrideMap Build(){ByteSequenceOutputs outputs = ByteSequenceOutputs.Singleton;Builder<BytesRef> builder = new Builder<BytesRef>(FST.INPUT_TYPE.BYTE4, outputs);int[] sort = hash.Sort(BytesRef.UTF8SortedAsUnicodeComparer);Int32sRef intsSpare = new Int32sRef();int size = hash.Count;for (int i = 0; i < size; i++){int id = sort[i];BytesRef bytesRef = hash.Get(id, spare);UnicodeUtil.UTF8toUTF32(bytesRef, intsSpare);builder.Add(intsSpare, new BytesRef(outputValues[id]));}return new StemmerOverrideMap(builder.Finish(), ignoreCase);} |
public LexerCustomAction(int ruleIndex, int actionIndex) {this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;} | public LexerCustomAction(int ruleIndex, int actionIndex){this.ruleIndex = ruleIndex;this.actionIndex = actionIndex;} |
public DescribeDevicePolicyConfigurationResult describeDevicePolicyConfiguration(DescribeDevicePolicyConfigurationRequest request) {request = beforeClientExecution(request);return executeDescribeDevicePolicyConfiguration(request);} | public virtual DescribeDevicePolicyConfigurationResponse DescribeDevicePolicyConfiguration(DescribeDevicePolicyConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDevicePolicyConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDevicePolicyConfigurationResponseUnmarshaller.Instance;return Invoke<DescribeDevicePolicyConfigurationResponse>(request, options);} |
public CreateLBCookieStickinessPolicyRequest(String loadBalancerName, String policyName) {setLoadBalancerName(loadBalancerName);setPolicyName(policyName);} | public CreateLBCookieStickinessPolicyRequest(string loadBalancerName, string policyName){_loadBalancerName = loadBalancerName;_policyName = policyName;} |
public static short[] grow(short[] array) {return grow(array, 1 + array.length);} | public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);} |
public static AttrPtg createSpace(int type, int count) {int data = type & 0x00FF | (count << 8) & 0x00FFFF;return new AttrPtg(space.set(0), data, null, -1);} | public static AttrPtg CreateSpace(SpaceType type, int count){int data = ((int) type) & 0x00FF | (count << 8) & 0x00FFFF;return new AttrPtg(space.Set(0), data, null, -1);} |
public boolean equals(Object o) {return (o instanceof FontRecord) && sameProperties((FontRecord) o);} | public override bool Equals(Object obj){if (this == obj)return true;return false;} |
public void setDSTSavings(int milliseconds) {if (milliseconds > 0) {dstSavings = milliseconds;} else {throw new IllegalArgumentException();}} | public virtual void setDSTSavings(int milliseconds){throw new System.NotImplementedException();} |
public DescribeAccountResult describeAccount(DescribeAccountRequest request) {request = beforeClientExecution(request);return executeDescribeAccount(request);} | public virtual DescribeAccountResponse DescribeAccount(DescribeAccountRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccountRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccountResponseUnmarshaller.Instance;return Invoke<DescribeAccountResponse>(request, options);} |
public int getCellsVal() {int size = 0;for (Row row : rows)size += row.getCellsVal();return size;} | public virtual int GetCellsVal(){int size = 0;foreach (Row row in rows)size += row.GetCellsVal();return size;} |
public boolean equalsSameType(Object other) {assert exists || (false == value);MutableValueBool b = (MutableValueBool)other;return value == b.value && exists == b.exists;} | public override bool EqualsSameType(object other){MutableValueBool b = (MutableValueBool)other;return Value == b.Value && Exists == b.Exists;} |
public K next() {Node<K,V> n = next;advance();return n.key;} | public override K next(){return this.nextEntry().key;} |
public DBCluster createDBCluster(CreateDBClusterRequest request) {request = beforeClientExecution(request);return executeCreateDBCluster(request);} | public virtual CreateDBClusterResponse CreateDBCluster(CreateDBClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDBClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDBClusterResponseUnmarshaller.Instance;return Invoke<CreateDBClusterResponse>(request, options);} |
public boolean equals(Object o) {if (!(o instanceof FormatRun)) {return false;}FormatRun other = (FormatRun) o;return _character == other._character && _fontIndex == other._fontIndex;} | public override bool Equals(Object o){if (!(o is FormatRun)){return false;}FormatRun other = (FormatRun)o;return _character == other._character && _fontIndex == other._fontIndex;} |
public static ValueEval getSingleValue(ValueEval arg, int srcCellRow, int srcCellCol)throws EvaluationException {final ValueEval result;if (arg instanceof RefEval) {result = chooseSingleElementFromRef((RefEval) arg);} else if (arg instanceof AreaEval) {result = chooseSingleElementFromArea((AreaEval) arg, srcCellRow, srcCellCol);} else {result = arg;}if (result instanceof ErrorEval) {throw new EvaluationException((ErrorEval) result);}return result;} | public static ValueEval GetSingleValue(ValueEval arg, int srcCellRow, int srcCellCol){ValueEval result;if (arg is RefEval){result = ChooseSingleElementFromRef((RefEval)arg);}else if (arg is AreaEval){result = ChooseSingleElementFromArea((AreaEval)arg, srcCellRow, srcCellCol);}else{result = arg;}if (result is ErrorEval){throw new EvaluationException((ErrorEval)result);}return result;} |
public GermanStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}} | public GermanStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}} |
public ClusterSubnetGroup modifyClusterSubnetGroup(ModifyClusterSubnetGroupRequest request) {request = beforeClientExecution(request);return executeModifyClusterSubnetGroup(request);} | public virtual ModifyClusterSubnetGroupResponse ModifyClusterSubnetGroup(ModifyClusterSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyClusterSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyClusterSubnetGroupResponseUnmarshaller.Instance;return Invoke<ModifyClusterSubnetGroupResponse>(request, options);} |
public FacetLabel subpath(final int length) {if (length >= this.length || length < 0) {return this;} else {return new FacetLabel(this, length);}} | public virtual FacetLabel Subpath(int length){if (length >= this.Length || length < 0){return this;}else{return new FacetLabel(this, length);}} |
public DataValidationConstraint createDecimalConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(ValidationType.DECIMAL, operatorType, formula1, formula2);} | public IDataValidationConstraint CreateDecimalConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(ValidationType.DECIMAL, operatorType, formula1, formula2);} |
public ByteBuffer put(byte b) {if (position == limit) {throw new BufferOverflowException();}backingArray[offset + position++] = b;return this;} | public override java.nio.ByteBuffer put(byte b){if (_position == _limit){throw new java.nio.BufferOverflowException();}backingArray[offset + _position++] = b;return this;} |
public DescribeUserProfileResult describeUserProfile(DescribeUserProfileRequest request) {request = beforeClientExecution(request);return executeDescribeUserProfile(request);} | public virtual DescribeUserProfileResponse DescribeUserProfile(DescribeUserProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeUserProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;return Invoke<DescribeUserProfileResponse>(request, options);} |
public K firstKey() {Entry<K, V> entry = endpoint(true);if (entry == null) {throw new NoSuchElementException();}return entry.getKey();} | public K firstKey(){java.util.MapClass.Entry<K, V> entry = this.endpoint(true);if (entry == null){throw new java.util.NoSuchElementException();}return entry.getKey();} |
public DescribeAutoScalingGroupsResult describeAutoScalingGroups(DescribeAutoScalingGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeAutoScalingGroups(request);} | public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance;return Invoke<DescribeAutoScalingGroupsResponse>(request, options);} |
public Class<RefsChangedListener> getListenerType() {return RefsChangedListener.class;} | public override Type GetListenerType(){return typeof(RefsChangedListener);} |
public int getWordCost(int wordId) {return WORD_COST;} | public int GetWordCost(int wordId){return WORD_COST;} |
public void serialize(LittleEndianOutput out) {out.writeByte(field_1_horizontalAlignment);out.writeByte(field_2_verticalAlignment);out.writeShort(field_3_displayMode);out.writeInt(field_4_rgbColor);out.writeInt(field_5_x);out.writeInt(field_6_y);out.writeInt(field_7_width);out.writeInt(field_8_height);out.writeShort(field_9_options1);out.writeShort(field_10_indexOfColorValue);out.writeShort(field_11_options2);out.writeShort(field_12_textRotation);} | public override void Serialize(ILittleEndianOutput out1){out1.WriteByte(field_1_horizontalAlignment);out1.WriteByte(field_2_verticalAlignment);out1.WriteShort(field_3_DisplayMode);out1.WriteInt(field_4_rgbColor);out1.WriteInt(field_5_x);out1.WriteInt(field_6_y);out1.WriteInt(field_7_width);out1.WriteInt(field_8_height);out1.WriteShort(field_9_options1);out1.WriteShort(field_10_IndexOfColorValue);out1.WriteShort(field_11_options2);out1.WriteShort(field_12_textRotation);} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.