id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
7,900 | public Drawable getIndeterminateDrawable() {return mIndeterminateDrawable;}
| public virtual android.graphics.drawable.Drawable getIndeterminateDrawable(){return mIndeterminateDrawable;}
|
7,901 | public void write(byte[] b, int offset, int len) {checkPosition(len);System.arraycopy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}
| public void Write(byte[] b, int offset, int len){CheckPosition(len);System.Array.Copy(b, offset, _buf, _writeIndex, len);_writeIndex += len;}
|
7,902 | public ListWebsiteCertificateAuthoritiesResult listWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request) {request = beforeClientExecution(request);return executeListWebsiteCertificateAuthorities(request);}
| public virtual ListWebsiteCertificateAuthoritiesResponse ListWebsiteCertificateAuthorities(ListWebsiteCertificateAuthoritiesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListWebsiteCertificateAuthoritiesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListWebsiteCertificateAuthoritiesResponseUnmarshaller.Instance;return Invoke<ListWebsiteCertificateAuthoritiesResponse>(request, options);}
|
7,903 | public RevWalk(ObjectReader or, int depth) {super(or);this.depth = depth;this.deepenNots = Collections.emptyList();this.UNSHALLOW = newFlag("UNSHALLOW"); this.REINTERESTING = newFlag("REINTERESTING"); this.DEEPEN_NOT = newFlag("DEEPEN_NOT"); }
| public RevWalk(ObjectReader or, int depth) : base(or){this.depth = depth;this.UNSHALLOW = NewFlag("UNSHALLOW");this.REINTERESTING = NewFlag("REINTERESTING");}
|
7,904 | public DeleteLogStreamRequest(String logGroupName, String logStreamName) {setLogGroupName(logGroupName);setLogStreamName(logStreamName);}
| public DeleteLogStreamRequest(string logGroupName, string logStreamName){_logGroupName = logGroupName;_logStreamName = logStreamName;}
|
7,905 | public PrintWriter append(CharSequence csq) {if (csq == null) {csq = "null";}append(csq, 0, csq.length());return this;}
| public override java.io.Writer append(java.lang.CharSequence csq){if (csq == null){csq = java.lang.CharSequenceProxy.Wrap("null");}append(csq, 0, csq.Length);return this;}
|
7,906 | public boolean include(TreeWalk walker)throws MissingObjectException,IncorrectObjectTypeException, IOException {count++;if (count % stepSize == 0) {if (count <= total)monitor.update(stepSize);if (monitor.isCancelled())throw StopWalkException.INSTANCE;}return true;}
| public override bool Include(TreeWalk walker){count++;if (count % stepSize == 0){if (count <= total){monitor.Update(stepSize);}if (monitor.IsCancelled()){throw StopWalkException.INSTANCE;}}return true;}
|
7,907 | public RevObject getObjectId() {return id;}
| public virtual RevObject GetObjectId(){return id;}
|
7,908 | public void setFlushOnEnd(boolean flushOnEnd) {this.flushOnEnd = flushOnEnd;}
| public virtual void SetFlushOnEnd(bool flushOnEnd){this.flushOnEnd = flushOnEnd;}
|
7,909 | public ListAutoMLJobsResult listAutoMLJobs(ListAutoMLJobsRequest request) {request = beforeClientExecution(request);return executeListAutoMLJobs(request);}
| public virtual ListAutoMLJobsResponse ListAutoMLJobs(ListAutoMLJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListAutoMLJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListAutoMLJobsResponseUnmarshaller.Instance;return Invoke<ListAutoMLJobsResponse>(request, options);}
|
7,910 | public void addBuilder(String nodeName, SpanQueryBuilder builder) {builders.put(nodeName, builder);}
| public virtual void AddBuilder(string nodeName, ISpanQueryBuilder builder){builders[nodeName] = builder;}
|
7,911 | public DescribeReplicationGroupsResult describeReplicationGroups() {return describeReplicationGroups(new DescribeReplicationGroupsRequest());}
| public virtual DescribeReplicationGroupsResponse DescribeReplicationGroups(){return DescribeReplicationGroups(new DescribeReplicationGroupsRequest());}
|
7,912 | public void removeAllCellsValuesForRow(int rowIndex) {if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX) {throw new IllegalArgumentException("Specified rowIndex " + rowIndex+ " is outside the allowable range (0.." +MAX_ROW_INDEX + ")");}if (rowIndex >= records.length) {return;}records[rowIndex] = null;}
| public void RemoveAllCellsValuesForRow(int rowIndex){if (rowIndex < 0 || rowIndex > MAX_ROW_INDEX){throw new ArgumentException("Specified rowIndex " + rowIndex+ " is outside the allowable range (0.." + MAX_ROW_INDEX + ")");}if (rowIndex >= records.Length){return;}records[rowIndex] = null;}
|
7,913 | public DeleteProxySessionResult deleteProxySession(DeleteProxySessionRequest request) {request = beforeClientExecution(request);return executeDeleteProxySession(request);}
| public virtual DeleteProxySessionResponse DeleteProxySession(DeleteProxySessionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteProxySessionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteProxySessionResponseUnmarshaller.Instance;return Invoke<DeleteProxySessionResponse>(request, options);}
|
7,914 | public DescribePoliciesResult describePolicies() {return describePolicies(new DescribePoliciesRequest());}
| public virtual DescribePoliciesResponse DescribePolicies(){return DescribePolicies(new DescribePoliciesRequest());}
|
7,915 | public NumberFormatIndexRecord(RecordInputStream in) {field_1_formatIndex = in.readShort();}
| public NumberFormatIndexRecord(RecordInputStream in1){field_1_formatIndex = in1.ReadShort();}
|
7,916 | public CreatePrivateVirtualInterfaceResult createPrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request) {request = beforeClientExecution(request);return executeCreatePrivateVirtualInterface(request);}
| public virtual CreatePrivateVirtualInterfaceResponse CreatePrivateVirtualInterface(CreatePrivateVirtualInterfaceRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreatePrivateVirtualInterfaceRequestMarshaller.Instance;options.ResponseUnmarshaller = CreatePrivateVirtualInterfaceResponseUnmarshaller.Instance;return Invoke<CreatePrivateVirtualInterfaceResponse>(request, options);}
|
7,917 | @Override public E get(int location) {return list.get(location);}
| public virtual E get(int location){return list.get(location);}
|
7,918 | public String getPath() {return decode(path);}
| public string getPath(){return decode(path);}
|
7,919 | public static String longToHex(long value) {StringBuilder sb = new StringBuilder(18);writeHex(sb, value, 16, "0x");return sb.toString();}
| public static char[] LongToHex(long value){return ToHexChars(value, 8);}
|
7,920 | public RevFilter clone() {return new Binary(a.clone(), b.clone());}
| public override RevFilter Clone(){return new OrRevFilter.Binary(a.Clone(), b.Clone());}
|
7,921 | public int compareTo( Toffs other ) {int diff = getStartOffset() - other.getStartOffset();if ( diff != 0 ) {return diff;}return getEndOffset() - other.getEndOffset();}
| public virtual int CompareTo(Toffs other){int diff = StartOffset - other.StartOffset;if (diff != 0){return diff;}return EndOffset - other.EndOffset;}
|
7,922 | public UpdateNetworkProfileResult updateNetworkProfile(UpdateNetworkProfileRequest request) {request = beforeClientExecution(request);return executeUpdateNetworkProfile(request);}
| public virtual UpdateNetworkProfileResponse UpdateNetworkProfile(UpdateNetworkProfileRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNetworkProfileRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNetworkProfileResponseUnmarshaller.Instance;return Invoke<UpdateNetworkProfileResponse>(request, options);}
|
7,923 | public GetRelationalDatabaseParametersResult getRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseParameters(request);}
| public virtual GetRelationalDatabaseParametersResponse GetRelationalDatabaseParameters(GetRelationalDatabaseParametersRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetRelationalDatabaseParametersRequestMarshaller.Instance;options.ResponseUnmarshaller = GetRelationalDatabaseParametersResponseUnmarshaller.Instance;return Invoke<GetRelationalDatabaseParametersResponse>(request, options);}
|
7,924 | public boolean contains(Object object) {return indexOf(object, 0) != -1;}
| public override bool contains(object @object){return indexOf(@object, 0) != -1;}
|
7,925 | public boolean remove(Object object) {return removeFirstOccurrenceImpl(object);}
| public override bool remove(object @object){return removeFirstOccurrenceImpl(@object);}
|
7,926 | public DConRefRecord(RecordInputStream inStream) {if (inStream.getSid() != sid) {throw new RecordFormatException("Wrong sid: " + inStream.getSid());}firstRow = inStream.readUShort();lastRow = inStream.readUShort();firstCol = inStream.readUByte();lastCol = inStream.readUByte();charCount = inStream.readUShort();charType = inStream.readUByte() & 0x01;final int byteLength = charCount * (charType + 1);path = IOUtils.safelyAllocate(byteLength, MAX_RECORD_LENGTH);inStream.readFully(path);if (path[0] == 0x02) {_unused = inStream.readRemainder();}}
| public DConRefRecord(RecordInputStream inStream){if (inStream.Sid != sid)throw new RecordFormatException("Wrong sid: " + inStream.Sid);firstRow = inStream.ReadUShort();lastRow = inStream.ReadUShort();firstCol = inStream.ReadUByte();lastCol = inStream.ReadUByte();charCount = inStream.ReadUShort();charType = inStream.ReadUByte() & 0x01; int byteLength = charCount * (charType + 1);path = new byte[byteLength];inStream.ReadFully(path);if (path[0] == 0x02)_unused = inStream.ReadRemainder();}
|
7,927 | public int getSheetIndex(EvaluationSheet evalSheet) {HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).getHSSFSheet();return _uBook.getSheetIndex(sheet);}
| public int GetSheetIndex(IEvaluationSheet evalSheet){HSSFSheet sheet = ((HSSFEvaluationSheet)evalSheet).HSSFSheet;return _uBook.GetSheetIndex(sheet);}
|
7,928 | public synchronized int codePointAt(int index) {return super.codePointAt(index);}
| public override int codePointAt(int index){lock (this){return base.codePointAt(index);}}
|
7,929 | public DeleteRepoBuildRuleRequest() {super("cr", "2016-06-07", "DeleteRepoBuildRule", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]");setMethod(MethodType.DELETE);}
| public DeleteRepoBuildRuleRequest(): base("cr", "2016-06-07", "DeleteRepoBuildRule", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]";Method = MethodType.DELETE;}
|
7,930 | public UpdateEmailChannelResult updateEmailChannel(UpdateEmailChannelRequest request) {request = beforeClientExecution(request);return executeUpdateEmailChannel(request);}
| public virtual UpdateEmailChannelResponse UpdateEmailChannel(UpdateEmailChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateEmailChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateEmailChannelResponseUnmarshaller.Instance;return Invoke<UpdateEmailChannelResponse>(request, options);}
|
7,931 | public TabIdRecord(RecordInputStream in) {int nTabs = in.remaining() / 2;_tabids = new short[nTabs];for (int i = 0; i < _tabids.length; i++) {_tabids[i] = in.readShort();}}
| public TabIdRecord(RecordInputStream in1){_tabids = new short[in1.Remaining / 2];for (int k = 0; k < _tabids.Length; k++){_tabids[k] = in1.ReadShort();}}
|
7,932 | public String toFormulaString(){return ",";}
| public override String ToFormulaString(){return ",";}
|
7,933 | public CreateConnectionResult createConnection(CreateConnectionRequest request) {request = beforeClientExecution(request);return executeCreateConnection(request);}
| public virtual CreateConnectionResponse CreateConnection(CreateConnectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateConnectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateConnectionResponseUnmarshaller.Instance;return Invoke<CreateConnectionResponse>(request, options);}
|
7,934 | public int calculateWorkdays(double start, double end, double[] holidays) {int saturdaysPast = this.pastDaysOfWeek(start, end, Calendar.SATURDAY);int sundaysPast = this.pastDaysOfWeek(start, end, Calendar.SUNDAY);int nonWeekendHolidays = this.calculateNonWeekendHolidays(start, end, holidays);return (int) (end - start + 1) - saturdaysPast - sundaysPast - nonWeekendHolidays;}
| public int CalculateWorkdays(double start, double end, double[] holidays){int saturdaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Saturday);int sundaysPast = this.PastDaysOfWeek(start, end, DayOfWeek.Sunday);int nonWeekendHolidays = this.CalculateNonWeekendHolidays(start, end, holidays);return (int)(end - start + 1) - saturdaysPast - sundaysPast - nonWeekendHolidays;}
|
7,935 | public IndexFormatTooNewException(String resourceDescription, int version, int minVersion, int maxVersion) {super("Format version is not supported (resource " + resourceDescription + "): "+ version + " (needs to be between " + minVersion + " and " + maxVersion + ")");this.resourceDescription = resourceDescription;this.version = version;this.minVersion = minVersion;this.maxVersion = maxVersion;}
| public IndexFormatTooNewException(string resourceDesc, int version, int minVersion, int maxVersion): base("Format version is not supported (resource: " + resourceDesc + "): " + version + " (needs to be between " + minVersion + " and " + maxVersion + ")"){Debug.Assert(resourceDesc != null);}
|
7,936 | public void apply(DirCacheEntry ent) {throw new UnsupportedOperationException(JGitText.get().noApplyInDelete);}
| public override void Apply(DirCacheEntry ent){throw new NotSupportedException(JGitText.Get().noApplyInDelete);}
|
7,937 | public boolean isNewFragment() {position += posIncAtt.getPositionIncrement();if (waitForPos <= position) {waitForPos = -1;} else if (waitForPos != -1) {return false;}WeightedSpanTerm wSpanTerm = queryScorer.getWeightedSpanTerm(termAtt.toString());if (wSpanTerm != null) {List<PositionSpan> positionSpans = wSpanTerm.getPositionSpans();for (PositionSpan positionSpan : positionSpans) {if (positionSpan.start == position) {waitForPos = positionSpan.end + 1;break;}}}boolean isNewFrag = offsetAtt.endOffset() >= (fragmentSize * currentNumFrags)&& (textSize - offsetAtt.endOffset()) >= (fragmentSize >>> 1);if (isNewFrag) {currentNumFrags++;}return isNewFrag;}
| public virtual bool IsNewFragment(){position += posIncAtt.PositionIncrement;if (waitForPos == position){waitForPos = -1;}else if (waitForPos != -1){return false;}WeightedSpanTerm wSpanTerm = queryScorer.GetWeightedSpanTerm(termAtt.ToString());if (wSpanTerm != null){IList<PositionSpan> positionSpans = wSpanTerm.PositionSpans;for (int i = 0; i < positionSpans.Count; i++){if (positionSpans[i].Start == position){waitForPos = positionSpans[i].End + 1;break;}}}bool isNewFrag = offsetAtt.EndOffset >= (fragmentSize * currentNumFrags)&& (textSize - offsetAtt.EndOffset) >= (int)((uint)fragmentSize >> 1);if (isNewFrag){currentNumFrags++;}return isNewFrag;}
|
7,938 | public StopMatchmakingResult stopMatchmaking(StopMatchmakingRequest request) {request = beforeClientExecution(request);return executeStopMatchmaking(request);}
| public virtual StopMatchmakingResponse StopMatchmaking(StopMatchmakingRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopMatchmakingRequestMarshaller.Instance;options.ResponseUnmarshaller = StopMatchmakingResponseUnmarshaller.Instance;return Invoke<StopMatchmakingResponse>(request, options);}
|
7,939 | public DescribeClientVpnTargetNetworksResult describeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request) {request = beforeClientExecution(request);return executeDescribeClientVpnTargetNetworks(request);}
| public virtual DescribeClientVpnTargetNetworksResponse DescribeClientVpnTargetNetworks(DescribeClientVpnTargetNetworksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeClientVpnTargetNetworksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeClientVpnTargetNetworksResponseUnmarshaller.Instance;return Invoke<DescribeClientVpnTargetNetworksResponse>(request, options);}
|
7,940 | public FloatBuffer put(FloatBuffer buf) {throw new ReadOnlyBufferException();}
| public override java.nio.FloatBuffer put(java.nio.FloatBuffer buf){throw new java.nio.ReadOnlyBufferException();}
|
7,941 | public final IntBuffer asIntBuffer() {return IntToByteBufferAdapter.asIntBuffer(this);}
| public sealed override java.nio.IntBuffer asIntBuffer(){return java.nio.IntToByteBufferAdapter.asIntBuffer(this);}
|
7,942 | public RemovePermissionResult removePermission(String queueUrl, String label) {return removePermission(new RemovePermissionRequest().withQueueUrl(queueUrl).withLabel(label));}
| public virtual RemovePermissionResponse RemovePermission(string queueUrl, string label){var request = new RemovePermissionRequest();request.QueueUrl = queueUrl;request.Label = label;return RemovePermission(request);}
|
7,943 | public void inform(ResourceLoader loader) {if (encoderClass.equals("float")){encoder = new FloatEncoder();} else if (encoderClass.equals("integer")){encoder = new IntegerEncoder();} else if (encoderClass.equals("identity")){encoder = new IdentityEncoder();} else {encoder = loader.newInstance(encoderClass, PayloadEncoder.class);}}
| public virtual void Inform(IResourceLoader loader){if (encoderClass.Equals("float", StringComparison.Ordinal)){encoder = new SingleEncoder();}else if (encoderClass.Equals("integer", StringComparison.Ordinal)){encoder = new IntegerEncoder();}else if (encoderClass.Equals("identity", StringComparison.Ordinal)){encoder = new IdentityEncoder();}else{encoder = loader.NewInstance<IPayloadEncoder>(encoderClass );}}
|
7,944 | public GetHealthCheckResult getHealthCheck(GetHealthCheckRequest request) {request = beforeClientExecution(request);return executeGetHealthCheck(request);}
| public virtual GetHealthCheckResponse GetHealthCheck(GetHealthCheckRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetHealthCheckRequestMarshaller.Instance;options.ResponseUnmarshaller = GetHealthCheckResponseUnmarshaller.Instance;return Invoke<GetHealthCheckResponse>(request, options);}
|
7,945 | public ListNotebookInstanceLifecycleConfigsResult listNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request) {request = beforeClientExecution(request);return executeListNotebookInstanceLifecycleConfigs(request);}
| public virtual ListNotebookInstanceLifecycleConfigsResponse ListNotebookInstanceLifecycleConfigs(ListNotebookInstanceLifecycleConfigsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNotebookInstanceLifecycleConfigsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNotebookInstanceLifecycleConfigsResponseUnmarshaller.Instance;return Invoke<ListNotebookInstanceLifecycleConfigsResponse>(request, options);}
|
7,946 | public int next(int n) {if (n < 0) {for (int i = 0; i < -n; i++) {previous();}} else {for (int i = 0; i < n; i++) {next();}}return current();}
| public override int Next(int n){if (n < 0){for (int i = 0; i < -n; i++){Previous();}}else{for (int i = 0; i < n; i++){Next();}}return Current;}
|
7,947 | public static long calculateMaximumSize(final HeaderBlock header){return calculateMaximumSize(header.getBigBlockSize(), header.getBATCount());}
| public static long CalculateMaximumSize(HeaderBlock header){return CalculateMaximumSize(header.BigBlockSize, header.BATCount);}
|
7,948 | public String toString() {return "character=" + _character + ",fontIndex=" + _fontIndex;}
| public override String ToString(){return "character=" + _character + ",fontIndex=" + _fontIndex;}
|
7,949 | public static float[] grow(float[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {float[] copy = new float[oversize(minSize, Float.BYTES)];System.arraycopy(array, 0, copy, 0, array.length);return copy;} elsereturn array;}
| public static float[] Grow(float[] array, int minSize){Debug.Assert(minSize >= 0, "size must be positive (got " + minSize + "): likely integer overflow?");if (array.Length < minSize){float[] newArray = new float[Oversize(minSize, RamUsageEstimator.NUM_BYTES_SINGLE)];Array.Copy(array, 0, newArray, 0, array.Length);return newArray;}else{return array;}}
|
7,950 | public String getDataFormatString() {if (getDataFormatStringCache.get() != null) {if (lastDateFormat.get() == getDataFormat() && _workbook.getFormats().equals(lastFormats.get())) {return getDataFormatStringCache.get();}}lastFormats.set(_workbook.getFormats());lastDateFormat.set(getDataFormat());getDataFormatStringCache.set(getDataFormatString(_workbook));return getDataFormatStringCache.get();}
| public String GetDataFormatString(){if (getDataFormatStringCache != null){if (lastDateFormat == DataFormat && _workbook.Formats.Equals(lastFormats)){return getDataFormatStringCache;}}lastFormats = _workbook.Formats;lastDateFormat = DataFormat;getDataFormatStringCache = GetDataFormatString(_workbook);return getDataFormatStringCache;}
|
7,951 | public UpdateSignalingChannelResult updateSignalingChannel(UpdateSignalingChannelRequest request) {request = beforeClientExecution(request);return executeUpdateSignalingChannel(request);}
| public virtual UpdateSignalingChannelResponse UpdateSignalingChannel(UpdateSignalingChannelRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSignalingChannelRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSignalingChannelResponseUnmarshaller.Instance;return Invoke<UpdateSignalingChannelResponse>(request, options);}
|
7,952 | public MoPenSendMqttMessageRequest() {super("MoPen", "2018-02-11", "MoPenSendMqttMessage", "mopen");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| public MoPenSendMqttMessageRequest(): base("MoPen", "2018-02-11", "MoPenSendMqttMessage", "mopen", "openAPI"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
7,953 | public TreeSet(SortedSet<E> set) {this(set.comparator());Iterator<E> it = set.iterator();while (it.hasNext()) {add(it.next());}}
| public TreeSet(java.util.SortedSet<E> set) : this(set.comparator()){java.util.Iterator<E> it = set.iterator();while (it.hasNext()){add(it.next());}}
|
7,954 | public DisassociateMembersResult disassociateMembers(DisassociateMembersRequest request) {request = beforeClientExecution(request);return executeDisassociateMembers(request);}
| public virtual DisassociateMembersResponse DisassociateMembers(DisassociateMembersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateMembersRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateMembersResponseUnmarshaller.Instance;return Invoke<DisassociateMembersResponse>(request, options);}
|
7,955 | public DeleteVpcLinkResult deleteVpcLink(DeleteVpcLinkRequest request) {request = beforeClientExecution(request);return executeDeleteVpcLink(request);}
| public virtual DeleteVpcLinkResponse DeleteVpcLink(DeleteVpcLinkRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVpcLinkRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVpcLinkResponseUnmarshaller.Instance;return Invoke<DeleteVpcLinkResponse>(request, options);}
|
7,956 | public DescribeDBSnapshotsResult describeDBSnapshots() {return describeDBSnapshots(new DescribeDBSnapshotsRequest());}
| public virtual DescribeDBSnapshotsResponse DescribeDBSnapshots(){return DescribeDBSnapshots(new DescribeDBSnapshotsRequest());}
|
7,957 | public void clear() {if(_evaluationListener != null) {_evaluationListener.onClearWholeCache();}_plainCellCache.clear();_formulaCellCache.clear();}
| public void Clear(){if (_evaluationListener != null){_evaluationListener.OnClearWholeCache();}_plainCellCache.Clear();_formulaCellCache.Clear();}
|
7,958 | public void setDiffAlgorithm(DiffAlgorithm alg) {diffAlgorithm = alg;}
| public virtual void SetDiffAlgorithm(DiffAlgorithm alg){diffAlgorithm = alg;}
|
7,959 | public DVALRecord(RecordInputStream in) {field_1_options = in.readShort();field_2_horiz_pos = in.readInt();field_3_vert_pos = in.readInt();field_cbo_id = in.readInt();field_5_dv_no = in.readInt();}
| public DVALRecord(RecordInputStream in1){this.field_1_options = in1.ReadShort();this.field_2_horiz_pos = in1.ReadInt();this.field_3_vert_pos = in1.ReadInt();this.field_cbo_id = in1.ReadInt();this.field_5_dv_no = in1.ReadInt();}
|
7,960 | public IndexInput clone() {throw new UnsupportedOperationException();}
| public override object Clone(){throw new NotSupportedException();}
|
7,961 | public Appendable append(CharSequence csq, int start, int end) {reserve(end-start);for (int i=start; i<end; i++) {unsafeWrite(csq.charAt(i));}return this;}
| public virtual OpenStringBuilder Append(ICharSequence csq, int startIndex, int length) {EnsureCapacity(length - startIndex);for (int i = startIndex; i < length; i++){UnsafeWrite(csq[i]);}return this;}
|
7,962 | public DescribeJobFlowsResult describeJobFlows(DescribeJobFlowsRequest request) {request = beforeClientExecution(request);return executeDescribeJobFlows(request);}
| public virtual DescribeJobFlowsResponse DescribeJobFlows(DescribeJobFlowsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeJobFlowsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeJobFlowsResponseUnmarshaller.Instance;return Invoke<DescribeJobFlowsResponse>(request, options);}
|
7,963 | public LowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public LowerCaseFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
7,964 | public int compareTo(Revision o) {IndexRevision other = (IndexRevision) o;return commit.compareTo(other.commit);}
| public virtual int CompareTo(string version){long gen = long.Parse(version, NumberStyles.HexNumber);long commitGen = commit.Generation;return commitGen < gen ? -1 : (commitGen > gen ? 1 : 0);}
|
7,965 | public DisassociateResolverRuleResult disassociateResolverRule(DisassociateResolverRuleRequest request) {request = beforeClientExecution(request);return executeDisassociateResolverRule(request);}
| public virtual DisassociateResolverRuleResponse DisassociateResolverRule(DisassociateResolverRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisassociateResolverRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = DisassociateResolverRuleResponseUnmarshaller.Instance;return Invoke<DisassociateResolverRuleResponse>(request, options);}
|
7,966 | public static boolean isUnicodeString(final String value) {return !value.equals(new String(value.getBytes(ISO_8859_1), ISO_8859_1));}
| public static bool IsUnicodeString(String value){return !value.Equals(ISO_8859_1.GetString(ISO_8859_1.GetBytes(value)));}
|
7,967 | public DeleteApplicationCloudWatchLoggingOptionResult deleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request) {request = beforeClientExecution(request);return executeDeleteApplicationCloudWatchLoggingOption(request);}
| public virtual DeleteApplicationCloudWatchLoggingOptionResponse DeleteApplicationCloudWatchLoggingOption(DeleteApplicationCloudWatchLoggingOptionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteApplicationCloudWatchLoggingOptionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteApplicationCloudWatchLoggingOptionResponseUnmarshaller.Instance;return Invoke<DeleteApplicationCloudWatchLoggingOptionResponse>(request, options);}
|
7,968 | public FreqProxPostingsArray(int size, boolean writeFreqs, boolean writeProx, boolean writeOffsets) {super(size);if (writeFreqs) {termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx) {lastPositions = new int[size];if (writeOffsets) {lastOffsets = new int[size];}} else {assert !writeOffsets;}}
| public FreqProxPostingsArray(int size, bool writeFreqs, bool writeProx, bool writeOffsets): base(size){if (writeFreqs){termFreqs = new int[size];}lastDocIDs = new int[size];lastDocCodes = new int[size];if (writeProx){lastPositions = new int[size];if (writeOffsets){lastOffsets = new int[size];}}else{Debug.Assert(!writeOffsets);}}
|
7,969 | public List<String> matchPrefix(String prefix) {return matchPrefix(prefix, defaultNumReturnValues);}
| public virtual IList<string> MatchPrefix(string prefix){return MatchPrefix(prefix, defaultNumReturnValues);}
|
7,970 | public DescribeScalingPoliciesResult describeScalingPolicies(DescribeScalingPoliciesRequest request) {request = beforeClientExecution(request);return executeDescribeScalingPolicies(request);}
| public virtual DescribeScalingPoliciesResponse DescribeScalingPolicies(DescribeScalingPoliciesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeScalingPoliciesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeScalingPoliciesResponseUnmarshaller.Instance;return Invoke<DescribeScalingPoliciesResponse>(request, options);}
|
7,971 | public void serialize(LittleEndianOutput out) {out.writeInt(field_1_row_offset);for (short field_2_cell_offset : field_2_cell_offsets) {out.writeShort(field_2_cell_offset);}}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_row_offset);for (int k = 0; k < field_2_cell_offsets.Length; k++){out1.WriteShort(field_2_cell_offsets[k]);}}
|
7,972 | public UserSViewBegin(RecordInputStream in) {_rawData = in.readRemainder();}
| public UserSViewBegin(RecordInputStream in1){_rawData = in1.ReadRemainder();}
|
7,973 | public static RevFilter create(String pattern) {if (pattern.length() == 0)throw new IllegalArgumentException(JGitText.get().cannotMatchOnEmptyString);if (SubStringRevFilter.safe(pattern))return new SubStringSearch(pattern);return new PatternSearch(pattern);}
| public static RevFilter Create(string pattern){if (pattern.Length == 0){throw new ArgumentException(JGitText.Get().cannotMatchOnEmptyString);}if (SubStringRevFilter.Safe(pattern)){return new CommitterRevFilter.SubStringSearch(pattern);}return new CommitterRevFilter.PatternSearch(pattern);}
|
7,974 | public void serialize(LittleEndianOutput out) {out.writeShort(getFontHeight());out.writeShort(getAttributes());out.writeShort(getColorPaletteIndex());out.writeShort(getBoldWeight());out.writeShort(getSuperSubScript());out.writeByte(getUnderline());out.writeByte(getFamily());out.writeByte(getCharset());out.writeByte(field_9_zero);int fontNameLen = field_11_font_name.length();out.writeByte(fontNameLen);boolean hasMultibyte = StringUtil.hasMultibyte(field_11_font_name);out.writeByte(hasMultibyte ? 0x01 : 0x00);if (fontNameLen > 0) {if (hasMultibyte) {StringUtil.putUnicodeLE(field_11_font_name, out);} else {StringUtil.putCompressedUnicode(field_11_font_name, out);}}}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(FontHeight);out1.WriteShort(Attributes);out1.WriteShort(ColorPaletteIndex);out1.WriteShort(BoldWeight);out1.WriteShort((int) SuperSubScript);out1.WriteByte((int) Underline);out1.WriteByte(Family);out1.WriteByte(Charset);out1.WriteByte(field_9_zero);int fontNameLen = field_11_font_name.Length;out1.WriteByte(fontNameLen);bool hasMultibyte = StringUtil.HasMultibyte(field_11_font_name);out1.WriteByte(hasMultibyte ? 0x01 : 0x00);if (fontNameLen > 0){if (hasMultibyte){StringUtil.PutUnicodeLE(field_11_font_name, out1);}else{StringUtil.PutCompressedUnicode(field_11_font_name, out1);}}}
|
7,975 | public DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchConfigurations(request);}
| public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance;return Invoke<DescribeLaunchConfigurationsResponse>(request, options);}
|
7,976 | public PathEdit(DirCacheEntry ent) {path = ent.path;}
| public PathEdit(DirCacheEntry ent){path = ent.path;}
|
7,977 | public static int toCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff) {if (srcLen < 0) {throw new IllegalArgumentException("srcLen must be >= 0");}int codePointCount = 0;for (int i = 0; i < srcLen; ) {final int cp = Character.codePointAt(src, srcOff + i, srcOff + srcLen);final int charCount = Character.charCount(cp);dest[destOff + codePointCount++] = cp;i += charCount;}return codePointCount;}
| public int ToCodePoints(char[] src, int srcOff, int srcLen, int[] dest, int destOff){if (srcLen < 0){throw new ArgumentException("srcLen must be >= 0");}int codePointCount = 0;for (int i = 0; i < srcLen; ){int cp = CodePointAt(src, srcOff + i, srcOff + srcLen);int charCount = Character.CharCount(cp);dest[destOff + codePointCount++] = cp;i += charCount;}return codePointCount;}
|
7,978 | public boolean hasNext() {return remaining != 0;}
| public virtual bool hasNext(){return this.remaining != 0;}
|
7,979 | public void consume() {if (LA(1) == IntStream.EOF) {throw new IllegalStateException("cannot consume EOF");}lastChar = data[p]; if (p == n-1 && numMarkers==0) {n = 0;p = -1; lastCharBufferStart = lastChar;}p++;currentCharIndex++;sync(1);}
| public virtual void Consume(){if (LA(1) == IntStreamConstants.EOF){throw new InvalidOperationException("cannot consume EOF");}lastChar = data[p];if (p == n - 1 && numMarkers == 0){n = 0;p = -1;lastCharBufferStart = lastChar;}p++;currentCharIndex++;Sync(1);}
|
7,980 | public FileOutputStream(String path) throws FileNotFoundException {this(path, false);}
| public FileOutputStream(string path) : this(path, false){throw new System.NotImplementedException();}
|
7,981 | public FieldConfig(String fieldName) {if (fieldName == null) {throw new IllegalArgumentException("field name must not be null!");}this.fieldName = fieldName;}
| public FieldConfig(string fieldName){if (fieldName == null){throw new ArgumentException("field name should not be null!");}this.fieldName = fieldName;}
|
7,982 | public TokenFilter create(TokenStream input) {return new NGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}
| public override TokenStream Create(TokenStream input){return new NGramTokenFilter(m_luceneMatchVersion, input, minGramSize, maxGramSize);}
|
7,983 | public DescribeCacheParameterGroupsResult describeCacheParameterGroups(DescribeCacheParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeCacheParameterGroups(request);}
| public virtual DescribeCacheParameterGroupsResponse DescribeCacheParameterGroups(DescribeCacheParameterGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCacheParameterGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCacheParameterGroupsResponseUnmarshaller.Instance;return Invoke<DescribeCacheParameterGroupsResponse>(request, options);}
|
7,984 | public ApostropheFilter(TokenStream in) {super(in);}
| public ApostropheFilter(TokenStream @in): base(@in){termAtt = AddAttribute<ICharTermAttribute>();}
|
7,985 | public void writeShort(int v) {writeContinueIfRequired(2);_ulrOutput.writeShort(v);}
| public void WriteShort(int v){WriteContinueIfRequired(2);_ulrOutput.WriteShort(v);}
|
7,986 | public StringBuilder append(Object obj) {if (obj == null) {appendNull();} else {append0(obj.toString());}return this;}
| public java.lang.StringBuilder append(object obj){if (obj == null){appendNull();}else{append0(obj.ToString());}return this;}
|
7,987 | public ListGatewayGroupsResult listGatewayGroups(ListGatewayGroupsRequest request) {request = beforeClientExecution(request);return executeListGatewayGroups(request);}
| public virtual ListGatewayGroupsResponse ListGatewayGroups(ListGatewayGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListGatewayGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListGatewayGroupsResponseUnmarshaller.Instance;return Invoke<ListGatewayGroupsResponse>(request, options);}
|
7,988 | public AlibabaCloudCredentials getCredentials() throws ClientException {if (credentials == null || credentials.isExpired()) {ecsMetadataServiceFetchCount += 1;int maxRetryTimes = MAX_ECS_METADATA_FETCH_RETRY_TIMES;credentials = fetcher.fetch(maxRetryTimes);} else if (credentials.willSoonExpire() && credentials.shouldRefresh()) {try {ecsMetadataServiceFetchCount += 1;credentials = fetcher.fetch();} catch (ClientException e) {credentials.setLastFailedRefreshTime();}}return credentials;}
| public virtual AlibabaCloudCredentials GetCredentials(){try{if (credentials == null){credentials = fetcher.Fetch(maxRetryTimes);}if (credentials.IsExpired()){throw new ClientException("SDK.SessionTokenExpired", "Current session token has expired.");}if (!credentials.WillSoonExpire() || !credentials.ShouldRefresh()){return credentials;}credentials = fetcher.Fetch();return credentials;}catch (ClientException ex){if (ex.ErrorCode.Equals("SDK.SessionTokenExpired") &&ex.ErrorMessage.Equals("Current session token has expired.")){CommonLog.LogException(ex, ex.ErrorCode, ex.ErrorMessage);throw new ClientException(ex.ErrorCode, ex.ErrorMessage);}credentials.SetLastFailedRefreshTime();}return credentials;}
|
7,989 | public DescribeVpnConnectionsResult describeVpnConnections(DescribeVpnConnectionsRequest request) {request = beforeClientExecution(request);return executeDescribeVpnConnections(request);}
| public virtual DescribeVpnConnectionsResponse DescribeVpnConnections(DescribeVpnConnectionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeVpnConnectionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeVpnConnectionsResponseUnmarshaller.Instance;return Invoke<DescribeVpnConnectionsResponse>(request, options);}
|
7,990 | public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {checkPutBounds(1, src.length, srcOffset, byteCount);System.arraycopy(src, srcOffset, backingArray, offset + position, byteCount);position += byteCount;return this;}
| public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){checkPutBounds(1, src.Length, srcOffset, byteCount);System.Array.Copy(src, srcOffset, backingArray, offset + _position, byteCount);_position += byteCount;return this;}
|
7,991 | public ListDistributionsResult listDistributions(ListDistributionsRequest request) {request = beforeClientExecution(request);return executeListDistributions(request);}
| public virtual ListDistributionsResponse ListDistributions(ListDistributionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsResponseUnmarshaller.Instance;return Invoke<ListDistributionsResponse>(request, options);}
|
7,992 | public String getName() {if (params==null) {return name;}return new StringBuilder(name).append('(').append(params).append(')').toString();}
| public virtual string GetName(){if (m_params == null){return name;}return new StringBuilder(name).Append('(').Append(m_params).Append(')').ToString();}
|
7,993 | public DescribeTasksResult describeTasks(DescribeTasksRequest request) {request = beforeClientExecution(request);return executeDescribeTasks(request);}
| public virtual DescribeTasksResponse DescribeTasks(DescribeTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeTasksResponseUnmarshaller.Instance;return Invoke<DescribeTasksResponse>(request, options);}
|
7,994 | public DescribeCacheSubnetGroupsResult describeCacheSubnetGroups() {return describeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}
| public virtual DescribeCacheSubnetGroupsResponse DescribeCacheSubnetGroups(){return DescribeCacheSubnetGroups(new DescribeCacheSubnetGroupsRequest());}
|
7,995 | public float get() {if (position == limit) {throw new BufferUnderflowException();}return byteBuffer.getFloat(position++ * SizeOf.FLOAT);}
| public override float get(){if (_position == _limit){throw new java.nio.BufferUnderflowException();}return byteBuffer.getFloat(_position++ * libcore.io.SizeOf.FLOAT);}
|
7,996 | public ShowNoteCommand setNotesRef(String notesRef) {checkCallable();this.notesRef = notesRef;return this;}
| public virtual NGit.Api.ShowNoteCommand SetNotesRef(string notesRef){CheckCallable();this.notesRef = notesRef;return this;}
|
7,997 | public UpdateAuthorizerResult updateAuthorizer(UpdateAuthorizerRequest request) {request = beforeClientExecution(request);return executeUpdateAuthorizer(request);}
| public virtual UpdateAuthorizerResponse UpdateAuthorizer(UpdateAuthorizerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateAuthorizerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateAuthorizerResponseUnmarshaller.Instance;return Invoke<UpdateAuthorizerResponse>(request, options);}
|
7,998 | public int ordVal(int doc) throws IOException {throw new UnsupportedOperationException();}
| public virtual int OrdVal(int doc){throw new System.NotSupportedException();}
|
7,999 | public UnknownRecord(RecordInputStream in) {_sid = in.getSid();_rawData = in.readRemainder();}
| public UnknownRecord(RecordInputStream in1){_sid = in1.Sid;_rawData = in1.ReadRemainder();}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.