id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
1,800 | public PredictCategoryRequest() {super("visionai-poc", "2020-04-08", "PredictCategory");setMethod(MethodType.POST);}
| public PredictCategoryRequest(): base("visionai-poc", "2020-04-08", "PredictCategory"){Method = MethodType.POST;}
|
1,801 | public DeleteLagResult deleteLag(DeleteLagRequest request) {request = beforeClientExecution(request);return executeDeleteLag(request);}
| public virtual DeleteLagResponse DeleteLag(DeleteLagRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLagRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLagResponseUnmarshaller.Instance;return Invoke<DeleteLagResponse>(request, options);}
|
1,802 | public boolean equals(Object other) {if (!(other instanceof LongBuffer)) {return false;}LongBuffer otherBuffer = (LongBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
| public override bool Equals(object other){if (!(other is java.nio.LongBuffer)){return false;}java.nio.LongBuffer otherBuffer = (java.nio.LongBuffer)other;if (remaining() != otherBuffer.remaining()){return false;}int myPosition = _position;int otherPosition = otherBuffer._position;bool equalSoFar = true;while (equalSoFar && (myPosition < _limit)){equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
|
1,803 | public void end() {state.end();}
| public void End(){state.End();}
|
1,804 | public BooleanMatcher(boolean value, CmpOp operator) {super(operator);_value = boolToInt(value);}
| public BooleanMatcher(bool value, CmpOp optr): base(optr){_value = BoolToInt(value);}
|
1,805 | public SheetVector(RefEval re) {_size = re.getNumberOfSheets();_re = re;}
| public SheetVector(RefEval re){_size = re.NumberOfSheets;_re = re;}
|
1,806 | public UpdateGameSessionResult updateGameSession(UpdateGameSessionRequest request) {request = beforeClientExecution(request);return executeUpdateGameSession(request);}
| public virtual UpdateGameSessionResponse UpdateGameSession(UpdateGameSessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateGameSessionRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateGameSessionResponseUnmarshaller.Instance;return Invoke<UpdateGameSessionResponse>(request, options);}
|
1,807 | public String getName() {return String.format(Locale.ROOT, "Dirichlet(%f)", getMu());}
| public override string GetName(){return "Dirichlet(" + Number.ToString(Mu) + ")";}
|
1,808 | public void decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes) throws IOException {assert offset + length <= originalLength;if (length == 0) {bytes.length = 0;return;}final int compressedLength = in.readVInt();final int paddedLength = compressedLength + 1;compressed = ArrayUtil.grow(compressed, paddedLength);in.readBytes(compressed, 0, compressedLength);compressed[compressedLength] = 0; final Inflater decompressor = new Inflater(true);try {decompressor.setInput(compressed, 0, paddedLength);bytes.offset = bytes.length = 0;bytes.bytes = ArrayUtil.grow(bytes.bytes, originalLength);try {bytes.length = decompressor.inflate(bytes.bytes, bytes.length, originalLength);} catch (DataFormatException e) {throw new IOException(e);}if (!decompressor.finished()) {throw new CorruptIndexException("Invalid decoder state: needsInput=" + decompressor.needsInput()+ ", needsDict=" + decompressor.needsDictionary(), in);}} finally {decompressor.end();}if (bytes.length != originalLength) {throw new CorruptIndexException("Lengths mismatch: " + bytes.length + " != " + originalLength, in);}bytes.offset = offset;bytes.length = length;}
| public override void Decompress(DataInput input, int originalLength, int offset, int length, BytesRef bytes){Debug.Assert(offset + length <= originalLength);if (length == 0){bytes.Length = 0;return;}byte[] compressedBytes = new byte[input.ReadVInt32()];input.ReadBytes(compressedBytes, 0, compressedBytes.Length);byte[] decompressedBytes = null;using (MemoryStream decompressedStream = new MemoryStream()){using (MemoryStream compressedStream = new MemoryStream(compressedBytes)){using (DeflateStream dStream = new DeflateStream(compressedStream, System.IO.Compression.CompressionMode.Decompress)){dStream.CopyTo(decompressedStream);}}decompressedBytes = decompressedStream.ToArray();}if (decompressedBytes.Length != originalLength){throw new CorruptIndexException("Length mismatch: " + decompressedBytes.Length + " != " + originalLength + " (resource=" + input + ")");}bytes.Bytes = decompressedBytes;bytes.Offset = offset;bytes.Length = length;}
|
1,809 | public Pair<String,String> splitExtensionField(String defaultField,String field) {int indexOf = field.indexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Pair<>(field, null);final String indexField = indexOf == 0 ? defaultField : field.substring(0,indexOf);final String extensionKey = field.substring(indexOf + 1);return new Pair<>(indexField, extensionKey);}
| public virtual Tuple<string, string> SplitExtensionField(string defaultField, string field){int indexOf = field.IndexOf(this.extensionFieldDelimiter);if (indexOf < 0)return new Tuple<string, string>(field, null);string indexField = indexOf == 0 ? defaultField : field.Substring(0, indexOf);string extensionKey = field.Substring(indexOf + 1);return new Tuple<string, string>(indexField, extensionKey);}
|
1,810 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[FRAME]\n");buffer.append(" .borderType = ").append("0x").append(HexDump.toHex( getBorderType ())).append(" (").append( getBorderType() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" .options = ").append("0x").append(HexDump.toHex( getOptions ())).append(" (").append( getOptions() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append(" .autoSize = ").append(isAutoSize()).append('\n');buffer.append(" .autoPosition = ").append(isAutoPosition()).append('\n');buffer.append("[/FRAME]\n");return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[FRAME]\n");buffer.Append(" .borderType = ").Append("0x").Append(HexDump.ToHex(BorderType)).Append(" (").Append(BorderType).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .options = ").Append("0x").Append(HexDump.ToHex(Options)).Append(" (").Append(Options).Append(" )");buffer.Append(Environment.NewLine);buffer.Append(" .autoSize = ").Append(IsAutoSize).Append('\n');buffer.Append(" .autoPosition = ").Append(IsAutoPosition).Append('\n');buffer.Append("[/FRAME]\n");return buffer.ToString();}
|
1,811 | public Cluster pauseCluster(PauseClusterRequest request) {request = beforeClientExecution(request);return executePauseCluster(request);}
| public virtual PauseClusterResponse PauseCluster(PauseClusterRequest request){var options = new InvokeOptions();options.RequestMarshaller = PauseClusterRequestMarshaller.Instance;options.ResponseUnmarshaller = PauseClusterResponseUnmarshaller.Instance;return Invoke<PauseClusterResponse>(request, options);}
|
1,812 | public void setValue(String newValue) {value = newValue;}
| public virtual void SetValue(string newValue){value = newValue;}
|
1,813 | public AllocateAddressResult allocateAddress(AllocateAddressRequest request) {request = beforeClientExecution(request);return executeAllocateAddress(request);}
| public virtual AllocateAddressResponse AllocateAddress(AllocateAddressRequest request){var options = new InvokeOptions();options.RequestMarshaller = AllocateAddressRequestMarshaller.Instance;options.ResponseUnmarshaller = AllocateAddressResponseUnmarshaller.Instance;return Invoke<AllocateAddressResponse>(request, options);}
|
1,814 | public GetNetworkProfileResult getNetworkProfile(GetNetworkProfileRequest request) {request = beforeClientExecution(request);return executeGetNetworkProfile(request);}
| public virtual GetNetworkProfileResponse GetNetworkProfile(GetNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = GetNetworkProfileResponseUnmarshaller.Instance;return Invoke<GetNetworkProfileResponse>(request, options);}
|
1,815 | public static void reThrow(Throwable th) throws IOException {if (th != null) {throw rethrowAlways(th);}}
| public static void ReThrow(Exception th){if (th != null){if (th is System.IO.IOException){throw th;}ReThrowUnchecked(th);}}
|
1,816 | public void removeCell(CellValueRecordInterface cvRec) {if (cvRec instanceof FormulaRecordAggregate) {((FormulaRecordAggregate)cvRec).notifyFormulaChanging();}_valuesAgg.removeCell(cvRec);}
| public void RemoveCell(CellValueRecordInterface cvRec){if (cvRec is FormulaRecordAggregate){((FormulaRecordAggregate)cvRec).NotifyFormulaChanging();}_valuesAgg.RemoveCell(cvRec);}
|
1,817 | public Snapshot createSnapshot(CreateSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateSnapshot(request);}
| public virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;return Invoke<CreateSnapshotResponse>(request, options);}
|
1,818 | public Token get(int i) {if ( i < 0 || i >= tokens.size() ) {throw new IndexOutOfBoundsException("token index "+i+" out of range 0.."+(tokens.size()-1));}return tokens.get(i);}
| public virtual IToken Get(int i){if (i < 0 || i >= tokens.Count){throw new ArgumentOutOfRangeException("token index " + i + " out of range 0.." + (tokens.Count - 1));}return tokens[i];}
|
1,819 | public DescribeAlarmsResult describeAlarms(DescribeAlarmsRequest request) {request = beforeClientExecution(request);return executeDescribeAlarms(request);}
| public virtual DescribeAlarmsResponse DescribeAlarms(DescribeAlarmsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAlarmsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAlarmsResponseUnmarshaller.Instance;return Invoke<DescribeAlarmsResponse>(request, options);}
|
1,820 | public static long[] grow(long[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} elsereturn array;}
| public static long[] Grow(long[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){long[] newArray = new long[Oversize(minSize, RamUsageEstimator.NUM_BYTES_INT64)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
|
1,821 | public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = 8;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_shapeId );LittleEndian.putInt( data, offset + 12, field_2_flags );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), getRecordSize(), this );return 8 + 8;}
| public override int Serialize(int offset, byte[] data, EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);int remainingBytes = 8;LittleEndian.PutInt(data, offset + 4, remainingBytes);LittleEndian.PutInt(data, offset + 8, field_1_shapeId);LittleEndian.PutInt(data, offset + 12, field_2_flags);listener.AfterRecordSerialize(offset + RecordSize, RecordId, RecordSize, this);return 8 + 8;}
|
1,822 | public LsRemoteCommand setTags(boolean tags) {this.tags = tags;return this;}
| public virtual NGit.Api.LsRemoteCommand SetTags(bool tags){this.tags = tags;return this;}
|
1,823 | public ASCIIFoldingFilterFactory(Map<String,String> args) {super(args);preserveOriginal = getBoolean(args, PRESERVE_ORIGINAL, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public ASCIIFoldingFilterFactory(IDictionary<string, string> args): base(args){preserveOriginal = GetBoolean(args, "preserveOriginal", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
1,824 | public String toString() {return "input=" + input.get() + " output=" + output + " context=" + context + " boost=" + boost + " payload=" + payload;}
| public override string ToString(){return "input=" + Input + " cost=" + Cost;}
|
1,825 | public ListNotesCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
| public virtual NGit.Api.ListNotesCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
|
1,826 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[SXVD]\n");buffer.append(" .sxaxis = ").append(HexDump.shortToHex(_sxaxis)).append('\n');buffer.append(" .cSub = ").append(HexDump.shortToHex(_cSub)).append('\n');buffer.append(" .grbitSub = ").append(HexDump.shortToHex(_grbitSub)).append('\n');buffer.append(" .cItm = ").append(HexDump.shortToHex(_cItm)).append('\n');buffer.append(" .name = ").append(_name).append('\n');buffer.append("[/SXVD]\n");return buffer.toString();}
| public override string ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SXVD]\n");buffer.Append(" .sxaxis = ").Append(HexDump.ShortToHex(sxaxis)).Append('\n');buffer.Append(" .cSub = ").Append(HexDump.ShortToHex(cSub)).Append('\n');buffer.Append(" .grbitSub = ").Append(HexDump.ShortToHex(grbitSub)).Append('\n');buffer.Append(" .cItm = ").Append(HexDump.ShortToHex(cItm)).Append('\n');buffer.Append(" .name = ").Append(_name).Append('\n');buffer.Append("[/SXVD]\n");return buffer.ToString();}
|
1,827 | public V get(Object o) {if(o == null)throw new NullPointerException();return null;}
| public override V Get(object o){if (o == null){throw new ArgumentNullException("o");}return default(V);}
|
1,828 | public String toString() {final StringBuilder sb = new StringBuilder();sb.append("[NAMECMT]\n");sb.append(" .record type = ").append(HexDump.shortToHex(field_1_record_type)).append("\n");sb.append(" .frt cell ref flag = ").append(HexDump.byteToHex(field_2_frt_cell_ref_flag)).append("\n");sb.append(" .reserved = ").append(field_3_reserved).append("\n");sb.append(" .name length = ").append(field_6_name_text.length()).append("\n");sb.append(" .comment length = ").append(field_7_comment_text.length()).append("\n");sb.append(" .name = ").append(field_6_name_text).append("\n");sb.append(" .comment = ").append(field_7_comment_text).append("\n");sb.append("[/NAMECMT]\n");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append("[NAMECMT]\n");sb.Append(" .record type = ").Append(HexDump.ShortToHex(field_1_record_type)).Append("\n");sb.Append(" .frt cell ref flag = ").Append(HexDump.ByteToHex(field_2_frt_cell_ref_flag)).Append("\n");sb.Append(" .reserved = ").Append(field_3_reserved).Append("\n");sb.Append(" .name length = ").Append(field_6_name_text.Length).Append("\n");sb.Append(" .comment length = ").Append(field_7_comment_text.Length).Append("\n");sb.Append(" .name = ").Append(field_6_name_text).Append("\n");sb.Append(" .comment = ").Append(field_7_comment_text).Append("\n");sb.Append("[/NAMECMT]\n");return sb.ToString();}
|
1,829 | public CodepointCountFilterFactory(Map<String, String> args) {super(args);min = requireInt(args, MIN_KEY);max = requireInt(args, MAX_KEY);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public CodepointCountFilterFactory(IDictionary<string, string> args): base(args){min = RequireInt32(args, MIN_KEY);max = RequireInt32(args, MAX_KEY);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
1,830 | public Entry<K, V> ceilingEntry(K key) {return immutableCopy(findBounded(key, CEILING));}
| public java.util.MapClass.Entry<K, V> ceilingEntry(K key){return this._enclosing.immutableCopy(this.findBounded(key, java.util.TreeMap.Relation.CEILING));}
|
1,831 | public long setStartTimeMillis() {startTimeMillis = System.currentTimeMillis();return startTimeMillis;}
| public virtual long SetStartTimeMillis(){startTimeMillis = J2N.Time.CurrentTimeMilliseconds();return startTimeMillis;}
|
1,832 | public ListProfilingGroupsResult listProfilingGroups(ListProfilingGroupsRequest request) {request = beforeClientExecution(request);return executeListProfilingGroups(request);}
| public virtual ListProfilingGroupsResponse ListProfilingGroups(ListProfilingGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListProfilingGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListProfilingGroupsResponseUnmarshaller.Instance;return Invoke<ListProfilingGroupsResponse>(request, options);}
|
1,833 | public static PersonIdent parsePersonIdent(String in) {return parsePersonIdent(Constants.encode(in), 0);}
| public static PersonIdent ParsePersonIdent(string @in){return ParsePersonIdent(Constants.Encode(@in), 0);}
|
1,834 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_numerator);out.writeShort(field_2_denominator);}
| public override void Serialize(ILittleEndianOutput out1) {out1.WriteShort(field_1_numerator);out1.WriteShort(field_2_denominator);}
|
1,835 | public AddCommand setUpdate(boolean update) {this.update = update;return this;}
| public virtual NGit.Api.AddCommand SetUpdate(bool update){this.update = update;return this;}
|
1,836 | public static <T> T[] copyOf(T[] original, int newLength) {if (original == null) {throw new NullPointerException();}if (newLength < 0) {throw new NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
| public static int[] copyOf(int[] original, int newLength){if (newLength < 0){throw new java.lang.NegativeArraySizeException();}return copyOfRange(original, 0, newLength);}
|
1,837 | public void writeByte(int v) {writeContinueIfRequired(1);_ulrOutput.writeByte(v);}
| public void WriteByte(int v){WriteContinueIfRequired(1);_ulrOutput.WriteByte(v);}
|
1,838 | public DeleteDBInstanceRequest(String dBInstanceIdentifier) {setDBInstanceIdentifier(dBInstanceIdentifier);}
| public DeleteDBInstanceRequest(string dbInstanceIdentifier){_dbInstanceIdentifier = dbInstanceIdentifier;}
|
1,839 | public void reset() {previousValue = value = minValue;}
| public virtual void Reset(){previousValue = value = minValue;}
|
1,840 | public void setLength(long sz) {setLength((int) sz);}
| public virtual void SetLength(long sz){SetLength((int)sz);}
|
1,841 | public static String revisionVersion(IndexCommit indexCommit, IndexCommit taxoCommit) {return Long.toString(indexCommit.getGeneration(), RADIX) + ":" + Long.toString(taxoCommit.getGeneration(), RADIX);}
| public static string RevisionVersion(IndexCommit indexCommit, IndexCommit taxonomyCommit){return string.Format("{0:X}:{1:X}", indexCommit.Generation, taxonomyCommit.Generation);}
|
1,842 | public String pattern() {return needleString;}
| public virtual string Pattern(){return needleString;}
|
1,843 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append( "[SST]\n" );buffer.append( " .numstrings = " ).append( Integer.toHexString( getNumStrings() ) ).append( "\n" );buffer.append( " .uniquestrings = " ).append( Integer.toHexString( getNumUniqueStrings() ) ).append( "\n" );for ( int k = 0; k < field_3_strings.size(); k++ ){UnicodeString s = field_3_strings.get( k );buffer.append(" .string_").append(k).append(" = ").append( s.getDebugInfo() ).append( "\n" );}buffer.append( "[/SST]\n" );return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[SST]\n");buffer.Append(" .numstrings = ").Append(StringUtil.ToHexString(NumStrings)).Append("\n");buffer.Append(" .uniquestrings = ").Append(StringUtil.ToHexString(NumUniqueStrings)).Append("\n");for (int k = 0; k < field_3_strings.Size; k++){UnicodeString s = (UnicodeString)field_3_strings[k];buffer.Append(" .string_" + k + " = ").Append(s.GetDebugInfo()).Append("\n");}buffer.Append("[/SST]\n");return buffer.ToString();}
|
1,844 | public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (Iterator<QueryNode> it = getChildren().iterator(); it.hasNext();) {sb.append(filler).append(it.next().toQueryString(escapeSyntaxParser));filler = " OR ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();elsereturn "( " + 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 (var child in children){sb.Append(filler).Append(child.ToQueryString(escapeSyntaxParser));filler = " OR ";}if ((Parent != null && Parent is GroupQueryNode)|| IsRoot)return sb.ToString();elsereturn "( " + sb.ToString() + " )";}
|
1,845 | public PushCommand setReceivePack(String receivePack) {checkCallable();this.receivePack = receivePack;return this;}
| public virtual NGit.Api.PushCommand SetReceivePack(string receivePack){CheckCallable();this.receivePack = receivePack;return this;}
|
1,846 | public DeleteImagePermissionsResult deleteImagePermissions(DeleteImagePermissionsRequest request) {request = beforeClientExecution(request);return executeDeleteImagePermissions(request);}
| public virtual DeleteImagePermissionsResponse DeleteImagePermissions(DeleteImagePermissionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteImagePermissionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteImagePermissionsResponseUnmarshaller.Instance;return Invoke<DeleteImagePermissionsResponse>(request, options);}
|
1,847 | public static Ptg[] getTokens(Formula formula) {if (formula == null) {return null;}return formula.getTokens();}
| public static Ptg[] GetTokens(Formula formula){if (formula == null){return null;}return formula.Tokens;}
|
1,848 | public void skipToNextByte() {remainingBits = 0;}
| public void SkipToNextByte(){remainingBits = 0;}
|
1,849 | public GetJourneyExecutionActivityMetricsResult getJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request) {request = beforeClientExecution(request);return executeGetJourneyExecutionActivityMetrics(request);}
| public virtual GetJourneyExecutionActivityMetricsResponse GetJourneyExecutionActivityMetrics(GetJourneyExecutionActivityMetricsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetJourneyExecutionActivityMetricsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetJourneyExecutionActivityMetricsResponseUnmarshaller.Instance;return Invoke<GetJourneyExecutionActivityMetricsResponse>(request, options);}
|
1,850 | public DeregisterContainerInstanceResult deregisterContainerInstance(DeregisterContainerInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterContainerInstance(request);}
| public virtual DeregisterContainerInstanceResponse DeregisterContainerInstance(DeregisterContainerInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterContainerInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterContainerInstanceResponseUnmarshaller.Instance;return Invoke<DeregisterContainerInstanceResponse>(request, options);}
|
1,851 | public DeleteEntityRecognizerResult deleteEntityRecognizer(DeleteEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeDeleteEntityRecognizer(request);}
| public virtual DeleteEntityRecognizerResponse DeleteEntityRecognizer(DeleteEntityRecognizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteEntityRecognizerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteEntityRecognizerResponseUnmarshaller.Instance;return Invoke<DeleteEntityRecognizerResponse>(request, options);}
|
1,852 | public DescribeGameSessionsResult describeGameSessions(DescribeGameSessionsRequest request) {request = beforeClientExecution(request);return executeDescribeGameSessions(request);}
| public virtual DescribeGameSessionsResponse DescribeGameSessions(DescribeGameSessionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeGameSessionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeGameSessionsResponseUnmarshaller.Instance;return Invoke<DescribeGameSessionsResponse>(request, options);}
|
1,853 | public SegToken(char[] idArray, int start, int end, int wordType, int weight) {this.charArray = idArray;this.startOffset = start;this.endOffset = end;this.wordType = wordType;this.weight = weight;}
| public SegToken(char[] idArray, int start, int end, WordType wordType, int weight){this.CharArray = idArray;this.StartOffset = start;this.EndOffset = end;this.WordType = wordType;this.Weight = weight;}
|
1,854 | public int compareTo( TermInfo o ){return ( this.position - o.position );}
| public virtual int CompareTo(TermInfo o){return (this.position - o.position);}
|
1,855 | public TagMeetingResult tagMeeting(TagMeetingRequest request) {request = beforeClientExecution(request);return executeTagMeeting(request);}
| public virtual TagMeetingResponse TagMeeting(TagMeetingRequest request){var options = new InvokeOptions();options.RequestMarshaller = TagMeetingRequestMarshaller.Instance;options.ResponseUnmarshaller = TagMeetingResponseUnmarshaller.Instance;return Invoke<TagMeetingResponse>(request, options);}
|
1,856 | public final Buffer limit(int newLimit) {limitImpl(newLimit);return this;}
| public java.nio.Buffer limit(int newLimit){limitImpl(newLimit);return this;}
|
1,857 | public final DoubleValuesSource makeRecipDistanceValueSource(Shape queryShape) {Rectangle bbox = queryShape.getBoundingBox();double diagonalDist = ctx.getDistCalc().distance(ctx.makePoint(bbox.getMinX(), bbox.getMinY()), bbox.getMaxX(), bbox.getMaxY());double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f;DoubleValuesSource distance = makeDistanceValueSource(queryShape.getCenter(), 1.0);return new ReciprocalDoubleValuesSource(c, distance);}
| public ValueSource MakeRecipDistanceValueSource(IShape queryShape){IRectangle bbox = queryShape.BoundingBox;double diagonalDist = m_ctx.DistCalc.Distance(m_ctx.MakePoint(bbox.MinX, bbox.MinY), bbox.MaxX, bbox.MaxY);double distToEdge = diagonalDist * 0.5;float c = (float)distToEdge * 0.1f; return new ReciprocalSingleFunction(MakeDistanceValueSource(queryShape.Center, 1.0), 1f, c, c);}
|
1,858 | public GetLoginProfileRequest(String userName) {setUserName(userName);}
| public GetLoginProfileRequest(string userName){_userName = userName;}
|
1,859 | public int serializeComplexPart( byte[] data, int pos ){return 0;}
| public override int SerializeComplexPart(byte[] data, int pos){return 0;}
|
1,860 | public DBCellRecord(int rowOffset, short[] cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}
| public DBCellRecord(int rowOffset, short[]cellOffsets) {field_1_row_offset = rowOffset;field_2_cell_offsets = cellOffsets;}
|
1,861 | public StoredField(String name, long value) {super(name, TYPE);fieldsData = value;}
| public StoredField(string name, int value): base(name, TYPE){FieldsData = new Int32(value);}
|
1,862 | public final Locale getLocale() {return locale;}
| public CultureInfo GetLocale(){return locale;}
|
1,863 | public SpanNotBuilder(SpanQueryBuilder factory) {this.factory = factory;}
| public SpanNotBuilder(ISpanQueryBuilder factory){this.factory = factory;}
|
1,864 | public String toString() {return toString(0);}
| public override string ToString(){return ToString(Info.Dir, 0);}
|
1,865 | public int compareTo(ExtRst o) {int result;result = reserved - o.reserved;if (result != 0) {return result;}result = formattingFontIndex - o.formattingFontIndex;if (result != 0) {return result;}result = formattingOptions - o.formattingOptions;if (result != 0) {return result;}result = numberOfRuns - o.numberOfRuns;if (result != 0) {return result;}result = phoneticText.compareTo(o.phoneticText);if (result != 0) {return result;}result = phRuns.length - o.phRuns.length;if (result != 0) {return result;}for(int i=0; i<phRuns.length; i++) {result = phRuns[i].phoneticTextFirstCharacterOffset - o.phRuns[i].phoneticTextFirstCharacterOffset;if (result != 0) {return result;}result = phRuns[i].realTextFirstCharacterOffset - o.phRuns[i].realTextFirstCharacterOffset;if (result != 0) {return result;}result = phRuns[i].realTextLength - o.phRuns[i].realTextLength;if (result != 0) {return result;}}result = Arrays.hashCode(extraData)-Arrays.hashCode(o.extraData);return result;}
| public int CompareTo(ExtRst o){int result;result = reserved - o.reserved;if (result != 0) return result;result = formattingFontIndex - o.formattingFontIndex;if (result != 0) return result;result = formattingOptions - o.formattingOptions;if (result != 0) return result;result = numberOfRuns - o.numberOfRuns;if (result != 0) return result;result = string.Compare(phoneticText, o.phoneticText, StringComparison.CurrentCulture);if (result != 0) return result;result = phRuns.Length - o.phRuns.Length;if (result != 0) return result;for (int i = 0; i < phRuns.Length; i++){result = phRuns[i].phoneticTextFirstCharacterOffset - o.phRuns[i].phoneticTextFirstCharacterOffset;if (result != 0) return result;result = phRuns[i].realTextFirstCharacterOffset - o.phRuns[i].realTextFirstCharacterOffset;if (result != 0) return result;result = phRuns[i].realTextLength - o.phRuns[i].realTextLength;if (result != 0) return result;}result = Arrays.HashCode(extraData) - Arrays.HashCode(o.extraData);return result;}
|
1,866 | public GetInstanceSnapshotsResult getInstanceSnapshots(GetInstanceSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetInstanceSnapshots(request);}
| public virtual GetInstanceSnapshotsResponse GetInstanceSnapshots(GetInstanceSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetInstanceSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetInstanceSnapshotsResponseUnmarshaller.Instance;return Invoke<GetInstanceSnapshotsResponse>(request, options);}
|
1,867 | public static long[] grow(long[] array) {return grow(array, 1 + array.length);}
| public static short[] Grow(short[] array){return Grow(array, 1 + array.Length);}
|
1,868 | public TranslateTextResult translateText(TranslateTextRequest request) {request = beforeClientExecution(request);return executeTranslateText(request);}
| public virtual TranslateTextResponse TranslateText(TranslateTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = TranslateTextRequestMarshaller.Instance;options.ResponseUnmarshaller = TranslateTextResponseUnmarshaller.Instance;return Invoke<TranslateTextResponse>(request, options);}
|
1,869 | public DimensionsRecord(RecordInputStream in) {field_1_first_row = in.readInt();field_2_last_row = in.readInt();field_3_first_col = in.readShort();field_4_last_col = in.readShort();field_5_zero = in.readShort();if (in.available() == 2) {logger.log(POILogger.INFO, "DimensionsRecord has extra 2 bytes.");in.readShort();}}
| public DimensionsRecord(RecordInputStream in1){field_1_first_row = in1.ReadInt();field_2_last_row = in1.ReadInt();field_3_first_col = in1.ReadShort();field_4_last_col = in1.ReadShort();field_5_zero = in1.ReadShort();}
|
1,870 | public int flags() {return flags;}
| public int flags(){return _flags;}
|
1,871 | public Vector(int capacity, int capacityIncrement) {if (capacity < 0) {throw new IllegalArgumentException();}elementData = newElementArray(capacity);elementCount = 0;this.capacityIncrement = capacityIncrement;}
| public Vector(int capacity_1, int capacityIncrement){if (capacity_1 < 0){throw new System.ArgumentException();}elementData = new object[capacity_1];elementCount = 0;this.capacityIncrement = capacityIncrement;}
|
1,872 | public DeleteLogGroupRequest(String logGroupName) {setLogGroupName(logGroupName);}
| public DeleteLogGroupRequest(string logGroupName){_logGroupName = logGroupName;}
|
1,873 | public RemoveManagedScalingPolicyResult removeManagedScalingPolicy(RemoveManagedScalingPolicyRequest request) {request = beforeClientExecution(request);return executeRemoveManagedScalingPolicy(request);}
| public virtual RemoveManagedScalingPolicyResponse RemoveManagedScalingPolicy(RemoveManagedScalingPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = RemoveManagedScalingPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = RemoveManagedScalingPolicyResponseUnmarshaller.Instance;return Invoke<RemoveManagedScalingPolicyResponse>(request, options);}
|
1,874 | public GetDataRetrievalPolicyResult getDataRetrievalPolicy(GetDataRetrievalPolicyRequest request) {request = beforeClientExecution(request);return executeGetDataRetrievalPolicy(request);}
| public virtual GetDataRetrievalPolicyResponse GetDataRetrievalPolicy(GetDataRetrievalPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDataRetrievalPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDataRetrievalPolicyResponseUnmarshaller.Instance;return Invoke<GetDataRetrievalPolicyResponse>(request, options);}
|
1,875 | public DescribeExportImageTasksResult describeExportImageTasks(DescribeExportImageTasksRequest request) {request = beforeClientExecution(request);return executeDescribeExportImageTasks(request);}
| public virtual DescribeExportImageTasksResponse DescribeExportImageTasks(DescribeExportImageTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeExportImageTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeExportImageTasksResponseUnmarshaller.Instance;return Invoke<DescribeExportImageTasksResponse>(request, options);}
|
1,876 | public DefaultICUTokenizerConfig(boolean cjkAsWords, boolean myanmarAsWords) {this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}
| public DefaultICUTokenizerConfig(bool cjkAsWords, bool myanmarAsWords){this.cjkAsWords = cjkAsWords;this.myanmarAsWords = myanmarAsWords;}
|
1,877 | public DisableAvailabilityZonesForLoadBalancerResult disableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDisableAvailabilityZonesForLoadBalancer(request);}
| public virtual DisableAvailabilityZonesForLoadBalancerResponse DisableAvailabilityZonesForLoadBalancer(DisableAvailabilityZonesForLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableAvailabilityZonesForLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableAvailabilityZonesForLoadBalancerResponseUnmarshaller.Instance;return Invoke<DisableAvailabilityZonesForLoadBalancerResponse>(request, options);}
|
1,878 | public synchronized void setIndexFieldName(String dimName, String indexFieldName) {DimConfig ft = fieldTypes.get(dimName);if (ft == null) {ft = new DimConfig();fieldTypes.put(dimName, ft);}ft.indexFieldName = indexFieldName;}
| public virtual void SetIndexFieldName(string dimName, string indexFieldName){lock (this){if (!fieldTypes.TryGetValue(dimName, out DimConfig fieldType)){fieldTypes[dimName] = new DimConfig { IndexFieldName = indexFieldName };}else{fieldType.IndexFieldName = indexFieldName;}}}
|
1,879 | public BytesRef encode(char[] buffer, int offset, int length) {int payload = ArrayUtil.parseInt(buffer, offset, length);byte[] bytes = PayloadHelper.encodeInt(payload);BytesRef result = new BytesRef(bytes);return result;}
| public override BytesRef Encode(char[] buffer, int offset, int length){int payload = ArrayUtil.ParseInt32(buffer, offset, length); byte[] bytes = PayloadHelper.EncodeInt32(payload);BytesRef result = new BytesRef(bytes);return result;}
|
1,880 | public HideObjRecord(RecordInputStream in) {field_1_hide_obj = in.readShort();}
| public HideObjRecord(RecordInputStream in1){field_1_hide_obj = in1.ReadShort();}
|
1,881 | public String toString() {if ( isEmpty() ) return "[]";StringBuilder buf = new StringBuilder();buf.append("[");for (int i=0; i<returnStates.length; i++) {if ( i>0 ) buf.append(", ");if ( returnStates[i]==EMPTY_RETURN_STATE ) {buf.append("$");continue;}buf.append(returnStates[i]);if ( parents[i]!=null ) {buf.append(' ');buf.append(parents[i].toString());}else {buf.append("null");}}buf.append("]");return buf.toString();}
| public override String ToString(){if (IsEmpty)return "[]";StringBuilder buf = new StringBuilder();buf.Append("[");for (int i = 0; i < returnStates.Length; i++){if (i > 0) buf.Append(", ");if (returnStates[i] == EMPTY_RETURN_STATE){buf.Append("$");continue;}buf.Append(returnStates[i]);if (parents[i] != null){buf.Append(' ');buf.Append(parents[i].ToString());}else {buf.Append("null");}}buf.Append("]");return buf.ToString();}
|
1,882 | public synchronized int getSecondaryProgress() {return mIndeterminate ? 0 : mSecondaryProgress;}
| public virtual int getSecondaryProgress(){lock (this){return mIndeterminate ? 0 : mSecondaryProgress;}}
|
1,883 | public DeleteContactMethodResult deleteContactMethod(DeleteContactMethodRequest request) {request = beforeClientExecution(request);return executeDeleteContactMethod(request);}
| public virtual DeleteContactMethodResponse DeleteContactMethod(DeleteContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteContactMethodResponseUnmarshaller.Instance;return Invoke<DeleteContactMethodResponse>(request, options);}
|
1,884 | @Override public List<E> subList(int start, int end) {synchronized (mutex) {return new SynchronizedList<E>(list.subList(start, end), mutex);}}
| public virtual java.util.List<E> subList(int start, int end){lock (mutex){return new java.util.Collections.SynchronizedList<E>(list.subList(start, end), mutex);}}
|
1,885 | @Override public boolean equals(Object object) {return m.equals(object);}
| public override bool Equals(object @object){return mapEntry.Equals(@object);}
|
1,886 | public static String getSchemePrefix(String spec) {int colon = spec.indexOf(':');if (colon < 1) {return null;}for (int i = 0; i < colon; i++) {char c = spec.charAt(i);if (!isValidSchemeChar(i, c)) {return null;}}return spec.substring(0, colon).toLowerCase(Locale.US);}
| public static string getSchemePrefix(string spec){int colon = spec.IndexOf(':');if (colon < 1){return null;}{for (int i = 0; i < colon; i++){char c = spec[i];if (!isValidSchemeChar(i, c)){return null;}}}return Sharpen.StringHelper.Substring(spec, 0, colon).ToLower(System.Globalization.CultureInfo.InvariantCulture);}
|
1,887 | public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}
| public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){throw new System.NotImplementedException();}
|
1,888 | public CreateServiceResult createService(CreateServiceRequest request) {request = beforeClientExecution(request);return executeCreateService(request);}
| public virtual CreateServiceResponse CreateService(CreateServiceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateServiceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateServiceResponseUnmarshaller.Instance;return Invoke<CreateServiceResponse>(request, options);}
|
1,889 | public void serialize(LittleEndianOutput out) {out.writeShort(_numberOfRegions);for (int i = 0; i < _numberOfRegions; i++) {_regions[_startIndex + i].serialize(out);}}
| public override void Serialize(ILittleEndianOutput out1){int nItems = _numberOfRegions;out1.WriteShort(nItems);for (int i = 0; i < _numberOfRegions; i++){_regions[_startIndex + i].Serialize(out1);}}
|
1,890 | public StringBuilder insert(int offset, char c) {insert0(offset, c);return this;}
| public java.lang.StringBuilder insert(int offset, char c){insert0(offset, c);return this;}
|
1,891 | public LabelSSTRecord(RecordInputStream in) {super(in);field_4_sst_index = in.readInt();}
| public LabelSSTRecord(RecordInputStream in1): base(in1){field_4_sst_index = in1.ReadInt();}
|
1,892 | public void setObjectId(AnyObjectId id) {if (objectId == null)objectId = id.copy();}
| public virtual void SetObjectId(AnyObjectId id){if (objectId == null){objectId = id.Copy();}}
|
1,893 | public int add(CFRecordsAggregate cfAggregate) {cfAggregate.getHeader().setID(_cfHeaders.size());_cfHeaders.add(cfAggregate);return _cfHeaders.size() - 1;}
| public int Add(CFRecordsAggregate cfAggregate){_cfHeaders.Add(cfAggregate);return _cfHeaders.Count - 1;}
|
1,894 | public TermVectorsPostingsArray(int size) {super(size);freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}
| public TermVectorsPostingsArray(int size): base(size){freqs = new int[size];lastOffsets = new int[size];lastPositions = new int[size];}
|
1,895 | public FieldsQuery(SrndQuery q, List<String> fieldNames, char fieldOp) {this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}
| public FieldsQuery(SrndQuery q, IList<string> fieldNames, char fieldOp){this.q = q;this.fieldNames = fieldNames;this.fieldOp = fieldOp;}
|
1,896 | public TokenStream create(TokenStream in) {return new GreekLowerCaseFilter(in);}
| public override TokenStream Create(TokenStream @in){return new GreekLowerCaseFilter(m_luceneMatchVersion, @in);}
|
1,897 | public ECSMetadataServiceCredentialsFetcher() {this.connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}
| public ECSMetadataServiceCredentialsFetcher(){connectionTimeoutInMilliseconds = DEFAULT_TIMEOUT_IN_MILLISECONDS;}
|
1,898 | public static Decoder getDecoder(Format format, int version, int bitsPerValue) {checkVersion(version);return BulkOperation.of(format, bitsPerValue);}
| public static IDecoder GetDecoder(Format format, int version, int bitsPerValue){CheckVersion(version);return BulkOperation.Of(format, bitsPerValue);}
|
1,899 | public synchronized void reset() {nameFinder.clearAdaptiveData();}
| public virtual void Reset(){lock (this){nameFinder.clearAdaptiveData();}}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.