id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
2,200 | public Builder() {this.similarity = new BM25Similarity();}
| public Builder(){InitializeInstanceFields();}
|
2,201 | public List<Ref> getRevertedRefs() {return revertedRefs;}
| public virtual IList<Ref> GetRevertedRefs(){return revertedRefs;}
|
2,202 | public DetachPolicyResult detachPolicy(DetachPolicyRequest request) {request = beforeClientExecution(request);return executeDetachPolicy(request);}
| public virtual DetachPolicyResponse DetachPolicy(DetachPolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetachPolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = DetachPolicyResponseUnmarshaller.Instance;return Invoke<DetachPolicyResponse>(request, options);}
|
2,203 | public final void writeUTF(String str) throws IOException {write(ModifiedUtf8.encode(str));}
| public virtual void writeUTF(string str){throw new System.NotImplementedException();}
|
2,204 | public DeleteBusinessReportScheduleResult deleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteBusinessReportSchedule(request);}
| public virtual DeleteBusinessReportScheduleResponse DeleteBusinessReportSchedule(DeleteBusinessReportScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteBusinessReportScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteBusinessReportScheduleResponseUnmarshaller.Instance;return Invoke<DeleteBusinessReportScheduleResponse>(request, options);}
|
2,205 | public JapanesePartOfSpeechStopFilterFactory(Map<String,String> args) {super(args);stopTagFiles = get(args, "tags");if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public JapanesePartOfSpeechStopFilterFactory(IDictionary<string, string> args): base(args){stopTagFiles = Get(args, "tags");enablePositionIncrements = GetBoolean(args, "enablePositionIncrements", true);if (args.Count > 0){throw new ArgumentException("Unknown parameters: " + args);}}
|
2,206 | public SetVaultNotificationsResult setVaultNotifications(SetVaultNotificationsRequest request) {request = beforeClientExecution(request);return executeSetVaultNotifications(request);}
| public virtual SetVaultNotificationsResponse SetVaultNotifications(SetVaultNotificationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SetVaultNotificationsRequestMarshaller.Instance;options.ResponseUnmarshaller = SetVaultNotificationsResponseUnmarshaller.Instance;return Invoke<SetVaultNotificationsResponse>(request, options);}
|
2,207 | public void writeBytes(byte[] b, int offset, int length) {assert pos + length <= limit;System.arraycopy(b, offset, bytes, pos, length);pos += length;}
| public override void WriteBytes(byte[] b, int offset, int length){Debug.Assert(pos + length <= limit);System.Buffer.BlockCopy(b, offset, bytes, pos, length);pos += length;}
|
2,208 | public UpdateLedgerResult updateLedger(UpdateLedgerRequest request) {request = beforeClientExecution(request);return executeUpdateLedger(request);}
| public virtual UpdateLedgerResponse UpdateLedger(UpdateLedgerRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateLedgerRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateLedgerResponseUnmarshaller.Instance;return Invoke<UpdateLedgerResponse>(request, options);}
|
2,209 | public BatchDetectDominantLanguageResult batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) {request = beforeClientExecution(request);return executeBatchDetectDominantLanguage(request);}
| public virtual BatchDetectDominantLanguageResponse BatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request){var options = new InvokeOptions();options.RequestMarshaller = BatchDetectDominantLanguageRequestMarshaller.Instance;options.ResponseUnmarshaller = BatchDetectDominantLanguageResponseUnmarshaller.Instance;return Invoke<BatchDetectDominantLanguageResponse>(request, options);}
|
2,210 | public void pollForUpdates() {assert isMainThread();doUpdates();}
| public virtual void PollForUpdates(){DoUpdates();}
|
2,211 | public int getAltNumber() { return ATN.INVALID_ALT_NUMBER; }
| public virtual int getAltNumber() { return Atn.ATN.INVALID_ALT_NUMBER; }
|
2,212 | public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName()).append(" [");sb.append("]");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(GetType().Name).Append(" [");sb.Append(FormatAsString());sb.Append("]");return sb.ToString();}
|
2,213 | public int getTimeout() {return timeout;}
| public virtual int GetTimeout(){return timeout;}
|
2,214 | public boolean canReuse(IndexInput in) {return in == inStart;}
| public virtual bool CanReuse(IndexInput @in){return @in == _inStart;}
|
2,215 | public DescribeMetricFiltersRequest(String logGroupName) {setLogGroupName(logGroupName);}
| public DescribeMetricFiltersRequest(string logGroupName){_logGroupName = logGroupName;}
|
2,216 | public final void write(char[] b) {write(b,0,b.length);}
| public virtual void Write(char b){if (m_len >= m_buf.Length){Resize(m_len + 1);}UnsafeWrite(b);}
|
2,217 | public void trimToSize() {if (count < value.length) {char[] newValue = new char[count];System.arraycopy(value, 0, newValue, 0, count);value = newValue;shared = false;}}
| public virtual void trimToSize(){if (count < value.Length){char[] newValue = new char[count];System.Array.Copy(value, 0, newValue, 0, count);value = newValue;shared = false;}}
|
2,218 | public ListTransformJobsResult listTransformJobs(ListTransformJobsRequest request) {request = beforeClientExecution(request);return executeListTransformJobs(request);}
| public virtual ListTransformJobsResponse ListTransformJobs(ListTransformJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListTransformJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListTransformJobsResponseUnmarshaller.Instance;return Invoke<ListTransformJobsResponse>(request, options);}
|
2,219 | public EvaluationName getName(NamePtg namePtg) {int ix = namePtg.getIndex();return new Name(_iBook.getNameRecord(ix), ix);}
| public IEvaluationName GetName(NamePtg namePtg){int ix = namePtg.Index;return new Name(_iBook.GetNameRecord(ix), ix);}
|
2,220 | public StashCreateCommand setIndexMessage(String message) {indexMessage = message;return this;}
| public virtual NGit.Api.StashCreateCommand SetIndexMessage(string message){indexMessage = message;return this;}
|
2,221 | public HSSFPalette getCustomPalette(){return new HSSFPalette(workbook.getCustomPalette());}
| public HSSFPalette GetCustomPalette(){return new HSSFPalette(workbook.CustomPalette);}
|
2,222 | public DeregisterTaskDefinitionResult deregisterTaskDefinition(DeregisterTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDeregisterTaskDefinition(request);}
| public virtual DeregisterTaskDefinitionResponse DeregisterTaskDefinition(DeregisterTaskDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterTaskDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterTaskDefinitionResponseUnmarshaller.Instance;return Invoke<DeregisterTaskDefinitionResponse>(request, options);}
|
2,223 | public String pattern() {return pattern;}
| public string pattern(){return _pattern;}
|
2,224 | public void setThreads(int threads) {this.threads = threads;}
| public virtual void SetThreads(int threads){this.threads = threads;}
|
2,225 | public void execute(ReceivePack rp) {try {String expTarget = getOldSymref();boolean detach = getNewSymref() != null|| (type == Type.DELETE && expTarget != null);RefUpdate ru = rp.getRepository().updateRef(getRefName(), detach);if (expTarget != null) {if (!ru.getRef().isSymbolic() || !ru.getRef().getTarget().getName().equals(expTarget)) {setResult(Result.LOCK_FAILURE);return;}}ru.setRefLogIdent(rp.getRefLogIdent());ru.setRefLogMessage(refLogMessage, refLogIncludeResult);switch (getType()) {case DELETE:if (!ObjectId.zeroId().equals(getOldId())) {ru.setExpectedOldObjectId(getOldId());}ru.setForceUpdate(true);setResult(ru.delete(rp.getRevWalk()));break;case CREATE:case UPDATE:case UPDATE_NONFASTFORWARD:ru.setForceUpdate(rp.isAllowNonFastForwards());ru.setExpectedOldObjectId(getOldId());ru.setRefLogMessage("push", true); if (getNewSymref() != null) {setResult(ru.link(getNewSymref()));} else {ru.setNewObjectId(getNewId());setResult(ru.update(rp.getRevWalk()));}break;}} catch (IOException err) {reject(err);}}
| public virtual void Execute(BaseReceivePack rp){try{RefUpdate ru = rp.GetRepository().UpdateRef(GetRefName());ru.SetRefLogIdent(rp.GetRefLogIdent());switch (GetType()){case ReceiveCommand.Type.DELETE:{if (!ObjectId.ZeroId.Equals(GetOldId())){ru.SetExpectedOldObjectId(GetOldId());}ru.SetForceUpdate(true);SetResult(ru.Delete(rp.GetRevWalk()));break;}case ReceiveCommand.Type.CREATE:case ReceiveCommand.Type.UPDATE:case ReceiveCommand.Type.UPDATE_NONFASTFORWARD:{ru.SetForceUpdate(rp.IsAllowNonFastForwards());ru.SetExpectedOldObjectId(GetOldId());ru.SetNewObjectId(GetNewId());ru.SetRefLogMessage("push", true);SetResult(ru.Update(rp.GetRevWalk()));break;}}}catch (IOException err){Reject(err);}}
|
2,226 | public GetEbsDefaultKmsKeyIdResult getEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeGetEbsDefaultKmsKeyId(request);}
| public virtual GetEbsDefaultKmsKeyIdResponse GetEbsDefaultKmsKeyId(GetEbsDefaultKmsKeyIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetEbsDefaultKmsKeyIdRequestMarshaller.Instance;options.ResponseUnmarshaller = GetEbsDefaultKmsKeyIdResponseUnmarshaller.Instance;return Invoke<GetEbsDefaultKmsKeyIdResponse>(request, options);}
|
2,227 | public String toString() {return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";}
| public override string ToString(){return Slice.ToString() + ":" + DocsAndPositionsEnum;}
|
2,228 | public DeleteCacheParameterGroupRequest(String cacheParameterGroupName) {setCacheParameterGroupName(cacheParameterGroupName);}
| public DeleteCacheParameterGroupRequest(string cacheParameterGroupName){_cacheParameterGroupName = cacheParameterGroupName;}
|
2,229 | public NavigableMap<K, V> headMap(K to, boolean inclusive) {Bound toBound = inclusive ? INCLUSIVE : EXCLUSIVE;return subMap(null, NO_BOUND, to, toBound);}
| public java.util.NavigableMap<K, V> headMap(K to, bool inclusive){java.util.TreeMap.Bound toBound = inclusive ? java.util.TreeMap.Bound.INCLUSIVE :java.util.TreeMap.Bound.EXCLUSIVE;return this.subMap(default(K), java.util.TreeMap.Bound.NO_BOUND, to, toBound);}
|
2,230 | public OutputStream getOutputStream() {return rawOut;}
| public virtual OutputStream GetOutputStream(){return rawOut;}
|
2,231 | public Boolean booleanValue(String key) {String value = responseMap.get(key);if (null == value || 0 == value.length()) {return null;}return Boolean.valueOf(responseMap.get(key));}
| public bool? BooleanValue(string key){if (null != DictionaryUtil.Get(ResponseDictionary, key)){return bool.Parse(DictionaryUtil.Get(ResponseDictionary, key));}return null;}
|
2,232 | public ATN getATNWithBypassAlts() {String serializedAtn = getSerializedATN();if (serializedAtn == null) {throw new UnsupportedOperationException("The current parser does not support an ATN with bypass alternatives.");}synchronized (bypassAltsAtnCache) {ATN result = bypassAltsAtnCache.get(serializedAtn);if (result == null) {ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.setGenerateRuleBypassTransitions(true);result = new ATNDeserializer(deserializationOptions).deserialize(serializedAtn.toCharArray());bypassAltsAtnCache.put(serializedAtn, result);}return result;}}
| public virtual ATN GetATNWithBypassAlts(){string serializedAtn = SerializedAtn;if (serializedAtn == null){throw new NotSupportedException("The current parser does not support an ATN with bypass alternatives.");}lock (bypassAltsAtnCache){ATN result = bypassAltsAtnCache.Get(serializedAtn);if (result == null){ATNDeserializationOptions deserializationOptions = new ATNDeserializationOptions();deserializationOptions.GenerateRuleBypassTransitions = true;result = new ATNDeserializer(deserializationOptions).Deserialize(serializedAtn.ToCharArray());bypassAltsAtnCache.Put(serializedAtn, result);}return result;}}
|
2,233 | public GetDownloadUrlRequest() {super("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| public GetDownloadUrlRequest(): base("CloudPhoto", "2017-07-11", "GetDownloadUrl", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
2,234 | public int getCRC() {return crc;}
| public virtual int GetCRC(){return crc;}
|
2,235 | public boolean addEscherRecord(EscherRecord element){return escherRecords.add( element );}
| public bool AddEscherRecord(EscherRecord element){escherRecords.Add(element);return true;}
|
2,236 | public CharBuffer put(String src, int start, int end) {throw new ReadOnlyBufferException();}
| public override java.nio.CharBuffer put(string src, int start, int end){throw new java.nio.ReadOnlyBufferException();}
|
2,237 | public ModifyWorkspaceStateResult modifyWorkspaceState(ModifyWorkspaceStateRequest request) {request = beforeClientExecution(request);return executeModifyWorkspaceState(request);}
| public virtual ModifyWorkspaceStateResponse ModifyWorkspaceState(ModifyWorkspaceStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyWorkspaceStateRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyWorkspaceStateResponseUnmarshaller.Instance;return Invoke<ModifyWorkspaceStateResponse>(request, options);}
|
2,238 | public ICUTransformFilter(TokenStream input, Transliterator transform) {super(input);this.transform = transform;if (transform.getFilter() == null && transform instanceof com.ibm.icu.text.RuleBasedTransliterator) {final UnicodeSet sourceSet = transform.getSourceSet();if (sourceSet != null && !sourceSet.isEmpty())transform.setFilter(sourceSet);}}
| public ICUTransformFilter(TokenStream input, Transliterator transform): base(input){this.transform = transform;this.termAtt = AddAttribute<ICharTermAttribute>();#pragma warning disable 612, 618if (transform.Filter == null && transform is RuleBasedTransliterator)#pragma warning restore 612, 618{UnicodeSet sourceSet = transform.GetSourceSet();if (sourceSet != null && sourceSet.Any())transform.Filter=sourceSet;}}
|
2,239 | public StopGameSessionPlacementResult stopGameSessionPlacement(StopGameSessionPlacementRequest request) {request = beforeClientExecution(request);return executeStopGameSessionPlacement(request);}
| public virtual StopGameSessionPlacementResponse StopGameSessionPlacement(StopGameSessionPlacementRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopGameSessionPlacementRequestMarshaller.Instance;options.ResponseUnmarshaller = StopGameSessionPlacementResponseUnmarshaller.Instance;return Invoke<StopGameSessionPlacementResponse>(request, options);}
|
2,240 | public ObjectId getDeltaBase() {return null;}
| public virtual ObjectId GetDeltaBase(){return null;}
|
2,241 | public RefModeRecord clone() {return copy();}
| public override Object Clone(){RefModeRecord rec = new RefModeRecord();rec.field_1_mode = field_1_mode;return rec;}
|
2,242 | public boolean addURI(URIish toAdd) {if (uris.contains(toAdd))return false;return uris.add(toAdd);}
| public virtual bool AddURI(URIish toAdd){if (uris.Contains(toAdd)){return false;}return uris.AddItem(toAdd);}
|
2,243 | public FileMode getOldMode() {return getOldMode(0);}
| public override FileMode GetOldMode(){return GetOldMode(0);}
|
2,244 | public Collection<RemoteRefUpdate> getRemoteUpdates() {return Collections.unmodifiableCollection(remoteUpdates.values());}
| public virtual ICollection<RemoteRefUpdate> GetRemoteUpdates(){return Sharpen.Collections.UnmodifiableCollection(remoteUpdates.Values);}
|
2,245 | public String toString() {StringBuilder sb = new StringBuilder();sb.append(getClass().getName());sb.append(" [");String ws = String.valueOf(_wholePart);sb.append(ws.charAt(0));sb.append('.');sb.append(ws.substring(1));sb.append(' ');sb.append(getFractionalDigits());sb.append("E");sb.append(getDecimalExponent());sb.append("]");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder();sb.Append(this.GetType().Name);sb.Append(" [");String ws = _wholePart.ToString(CultureInfo.InvariantCulture);sb.Append(ws[0]);sb.Append('.');sb.Append(ws.Substring(1));sb.Append(' ');sb.Append(GetFractionalDigits());sb.Append("E");sb.Append(GetDecimalExponent());sb.Append("]");return sb.ToString();}
|
2,246 | public CreateCollectionResult createCollection(CreateCollectionRequest request) {request = beforeClientExecution(request);return executeCreateCollection(request);}
| public virtual CreateCollectionResponse CreateCollection(CreateCollectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateCollectionRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateCollectionResponseUnmarshaller.Instance;return Invoke<CreateCollectionResponse>(request, options);}
|
2,247 | public ChangeMessageVisibilityBatchResult changeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibilityBatch(request);}
| public virtual ChangeMessageVisibilityBatchResponse ChangeMessageVisibilityBatch(ChangeMessageVisibilityBatchRequest request){var options = new InvokeOptions();options.RequestMarshaller = ChangeMessageVisibilityBatchRequestMarshaller.Instance;options.ResponseUnmarshaller = ChangeMessageVisibilityBatchResponseUnmarshaller.Instance;return Invoke<ChangeMessageVisibilityBatchResponse>(request, options);}
|
2,248 | public static int[] copyOfRange(int[] original, int start, int end) {if (start > end) {throw new IllegalArgumentException();}int originalLength = original.length;if (start < 0 || start > originalLength) {throw new ArrayIndexOutOfBoundsException();}int resultLength = end - start;int copyLength = Math.min(resultLength, originalLength - start);int[] result = new int[resultLength];System.arraycopy(original, start, result, 0, copyLength);return result;}
| public static int[] copyOfRange(int[] original, int start, int end){if (start > end){throw new System.ArgumentException();}int originalLength = original.Length;if (start < 0 || start > originalLength){throw new System.IndexOutOfRangeException();}int resultLength = end - start;int copyLength = System.Math.Min(resultLength, originalLength - start);int[] result = new int[resultLength];System.Array.Copy(original, start, result, 0, copyLength);return result;}
|
2,249 | public static void setInstance(SshSessionFactory newFactory) {if (newFactory != null) {INSTANCE = newFactory;} else {INSTANCE = loadSshSessionFactory();}}
| public static void SetInstance(SshSessionFactory newFactory){if (newFactory != null){INSTANCE = newFactory;}else{INSTANCE = new DefaultSshSessionFactory();}}
|
2,250 | public GetRepoSyncTaskListRequest() {super("cr", "2016-06-07", "GetRepoSyncTaskList", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/syncTasks");setMethod(MethodType.GET);}
| public GetRepoSyncTaskListRequest(): base("cr", "2016-06-07", "GetRepoSyncTaskList", "cr", "openAPI"){UriPattern = "/repos/[RepoNamespace]/[RepoName]/syncTasks";Method = MethodType.GET;}
|
2,251 | public RunInstancesRequest(String imageId, Integer minCount, Integer maxCount) {setImageId(imageId);setMinCount(minCount);setMaxCount(maxCount);}
| public RunInstancesRequest(string imageId, int minCount, int maxCount){_imageId = imageId;_minCount = minCount;_maxCount = maxCount;}
|
2,252 | public DeleteCodeRepositoryResult deleteCodeRepository(DeleteCodeRepositoryRequest request) {request = beforeClientExecution(request);return executeDeleteCodeRepository(request);}
| public virtual DeleteCodeRepositoryResponse DeleteCodeRepository(DeleteCodeRepositoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteCodeRepositoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteCodeRepositoryResponseUnmarshaller.Instance;return Invoke<DeleteCodeRepositoryResponse>(request, options);}
|
2,253 | public void fill(int fromIndex, int toIndex, long val) {assert fromIndex >= 0;assert fromIndex <= toIndex;assert PackedInts.unsignedBitsRequired(val) <= bitsPerValue;final int valuesPerBlock = 64 / bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1) {super.fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0) {for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i) {set(fromIndex++, val);}assert fromIndex % valuesPerBlock == 0;}final int fromBlock = fromIndex / valuesPerBlock;final int toBlock = toIndex / valuesPerBlock;assert fromBlock * valuesPerBlock == fromIndex;long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i) {blockValue = blockValue | (val << (i * bitsPerValue));}Arrays.fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i) {set(i, val);}}
| public override void Fill(int fromIndex, int toIndex, long val){Debug.Assert(fromIndex >= 0);Debug.Assert(fromIndex <= toIndex);Debug.Assert(PackedInt32s.BitsRequired(val) <= m_bitsPerValue);int valuesPerBlock = 64 / m_bitsPerValue;if (toIndex - fromIndex <= valuesPerBlock << 1){base.Fill(fromIndex, toIndex, val);return;}int fromOffsetInBlock = fromIndex % valuesPerBlock;if (fromOffsetInBlock != 0){for (int i = fromOffsetInBlock; i < valuesPerBlock; ++i){Set(fromIndex++, val);}Debug.Assert(fromIndex % valuesPerBlock == 0);}int fromBlock = fromIndex / valuesPerBlock;int toBlock = toIndex / valuesPerBlock;Debug.Assert(fromBlock * valuesPerBlock == fromIndex);long blockValue = 0L;for (int i = 0; i < valuesPerBlock; ++i){blockValue = blockValue | (val << (i * m_bitsPerValue));}Arrays.Fill(blocks, fromBlock, toBlock, blockValue);for (int i = valuesPerBlock * toBlock; i < toIndex; ++i){Set(i, val);}}
|
2,254 | public void close() {str = null;}
| public override void close(){str = null;}
|
2,255 | public ListDomainNamesResult listDomainNames() {return listDomainNames(new ListDomainNamesRequest());}
| public virtual ListDomainNamesResponse ListDomainNames(){return ListDomainNames(new ListDomainNamesRequest());}
|
2,256 | public AbortMultipartUploadRequest(String accountId, String vaultName, String uploadId) {setAccountId(accountId);setVaultName(vaultName);setUploadId(uploadId);}
| public AbortMultipartUploadRequest(string accountId, string vaultName, string uploadId){_accountId = accountId;_vaultName = vaultName;_uploadId = uploadId;}
|
2,257 | public RevCommit getNewHead() {return newHead;}
| public virtual RevCommit GetNewHead(){return newHead;}
|
2,258 | public long get(int index) {final int o = index >>> 5;final int b = index & 31;final int shift = b << 1;return (blocks[o] >>> shift) & 3L;}
| public override long Get(int index){int o = (int)((uint)index >> 5);int b = index & 31;int shift = b << 1;return ((long)((ulong)blocks[o] >> shift)) & 3L;}
|
2,259 | public UpdateContainerInstancesStateResult updateContainerInstancesState(UpdateContainerInstancesStateRequest request) {request = beforeClientExecution(request);return executeUpdateContainerInstancesState(request);}
| public virtual UpdateContainerInstancesStateResponse UpdateContainerInstancesState(UpdateContainerInstancesStateRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateContainerInstancesStateRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateContainerInstancesStateResponseUnmarshaller.Instance;return Invoke<UpdateContainerInstancesStateResponse>(request, options);}
|
2,260 | public GetExternalModelsResult getExternalModels(GetExternalModelsRequest request) {request = beforeClientExecution(request);return executeGetExternalModels(request);}
| public virtual GetExternalModelsResponse GetExternalModels(GetExternalModelsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExternalModelsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExternalModelsResponseUnmarshaller.Instance;return Invoke<GetExternalModelsResponse>(request, options);}
|
2,261 | public GetFaceDetectionResult getFaceDetection(GetFaceDetectionRequest request) {request = beforeClientExecution(request);return executeGetFaceDetection(request);}
| public virtual GetFaceDetectionResponse GetFaceDetection(GetFaceDetectionRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetFaceDetectionRequestMarshaller.Instance;options.ResponseUnmarshaller = GetFaceDetectionResponseUnmarshaller.Instance;return Invoke<GetFaceDetectionResponse>(request, options);}
|
2,262 | public void delete() {synchronized (SnapshotDeletionPolicy.this) {if (!refCounts.containsKey(cp.getGeneration())) {cp.delete();}}}
| public override void Delete(){lock (outerInstance){if (!outerInstance.m_refCounts.ContainsKey(m_cp.Generation)){m_cp.Delete();}}}
|
2,263 | public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];for (int shift = 56; shift >= 0; shift -= 8) {values[valuesOffset++] = (int) ((block >>> shift) & 255);}}}
| public override void Decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations){for (int i = 0; i < iterations; ++i){long block = blocks[blocksOffset++];for (int shift = 56; shift >= 0; shift -= 8){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 255);}}}
|
2,264 | public Iterator<E> descendingIterator() {return new ReverseLinkIterator<E>(this);}
| public virtual java.util.Iterator<E> descendingIterator(){return new java.util.LinkedList<E>.ReverseLinkIterator<E>(this, this);}
|
2,265 | public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider) {this.provider = provider;}
| public CredentialsBackupCompatibilityAdaptor(AlibabaCloudCredentialsProvider provider){this.provider = provider;}
|
2,266 | public DescribeDBClusterSnapshotsResult describeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeDBClusterSnapshots(request);}
| public virtual DescribeDBClusterSnapshotsResponse DescribeDBClusterSnapshots(DescribeDBClusterSnapshotsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBClusterSnapshotsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBClusterSnapshotsResponseUnmarshaller.Instance;return Invoke<DescribeDBClusterSnapshotsResponse>(request, options);}
|
2,267 | public FontRecord getFontRecordAt(int idx) {int index = idx;if (index > 4) {index -= 1; }if (index > (numfonts - 1)) {throw new ArrayIndexOutOfBoundsException("There are only " + numfonts + " font records, but you asked for index " + idx);}return ( FontRecord ) records.get((records.getFontpos() - (numfonts - 1)) + index);}
| public FontRecord GetFontRecordAt(int idx){int index = idx;if (index > 4){index -= 1; }if (index > (numfonts - 1)){throw new IndexOutOfRangeException("There are only " + numfonts+ " font records, you asked for " + idx);}FontRecord retval =(FontRecord)records[(records.Fontpos - (numfonts - 1) + index)];return retval;}
|
2,268 | public final ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {if (args.length != 2) {return ErrorEval.VALUE_INVALID;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}
| public ValueEval Evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex){if (args.Length != 2){return ErrorEval.VALUE_INVALID;}return Evaluate(srcRowIndex, srcColumnIndex, args[0], args[1]);}
|
2,269 | public DescribeCustomerGatewaysResult describeCustomerGateways() {return describeCustomerGateways(new DescribeCustomerGatewaysRequest());}
| public virtual DescribeCustomerGatewaysResponse DescribeCustomerGateways(){return DescribeCustomerGateways(new DescribeCustomerGatewaysRequest());}
|
2,270 | public CreateSubnetRequest(String vpcId, String cidrBlock) {setVpcId(vpcId);setCidrBlock(cidrBlock);}
| public CreateSubnetRequest(string vpcId, string cidrBlock){_vpcId = vpcId;_cidrBlock = cidrBlock;}
|
2,271 | public StempelStemmer(Trie stemmer) {this.stemmer = stemmer;}
| public StempelStemmer(Trie stemmer){this.stemmer = stemmer;}
|
2,272 | public NLPNERTaggerOp(TokenNameFinderModel model) {this.nameFinder = new NameFinderME(model);}
| public NLPNERTaggerOp(TokenNameFinderModel model){this.nameFinder = new NameFinderME(model);}
|
2,273 | public TreeFilter clone() {return new FollowFilter(path.clone(), cfg);}
| public override TreeFilter Clone(){return new NGit.Revwalk.FollowFilter(((PathFilter)path.Clone()));}
|
2,274 | public QueryAddUserInfoRequest() {super("LinkFace", "2018-07-20", "QueryAddUserInfo");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| public QueryAddUserInfoRequest(): base("LinkFace", "2018-07-20", "QueryAddUserInfo"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
2,275 | public boolean include(TreeWalk walker) {DirCacheIterator i = walker.getTree(treeIdx, DirCacheIterator.class);if (i == null)return true;DirCacheEntry e = i.getDirCacheEntry();return e == null || !e.isSkipWorkTree();}
| public override bool Include(TreeWalk walker){DirCacheIterator i = walker.GetTree<DirCacheIterator>(treeIdx);if (i == null){return true;}DirCacheEntry e = i.GetDirCacheEntry();return e == null || !e.IsSkipWorkTree;}
|
2,276 | public final CompareResult compareTo(ValueEval other) {if (other == null) {throw new RuntimeException("compare to value cannot be null");}if (_targetClass != other.getClass()) {return CompareResult.TYPE_MISMATCH;}return compareSameType(other);}
| public CompareResult CompareTo(ValueEval other){if (other == null){throw new Exception("Compare to value cannot be null");}if (_targetType != other.GetType()){return CompareResult.TypeMismatch;}return CompareSameType(other);}
|
2,277 | public SegmentReadState(SegmentReadState other,String newSegmentSuffix) {this.directory = other.directory;this.segmentInfo = other.segmentInfo;this.fieldInfos = other.fieldInfos;this.context = other.context;this.segmentSuffix = newSegmentSuffix;}
| public SegmentReadState(SegmentReadState other, string newSegmentSuffix){this.Directory = other.Directory;this.SegmentInfo = other.SegmentInfo;this.FieldInfos = other.FieldInfos;this.Context = other.Context;this.TermsIndexDivisor = other.TermsIndexDivisor;this.SegmentSuffix = newSegmentSuffix;}
|
2,278 | public void println(Object obj) {println(String.valueOf(obj));}
| public virtual void println(object obj){println(Sharpen.StringHelper.GetValueOf(obj));}
|
2,279 | public DeleteModelResult deleteModel(DeleteModelRequest request) {request = beforeClientExecution(request);return executeDeleteModel(request);}
| public virtual DeleteModelResponse DeleteModel(DeleteModelRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteModelRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteModelResponseUnmarshaller.Instance;return Invoke<DeleteModelResponse>(request, options);}
|
2,280 | public void setFiles(Collection<String> files) {setFiles = new HashSet<>();addFiles(files);}
| public void SetFiles(ISet<string> files){CheckFileNames(files);setFiles = files;}
|
2,281 | public void release() {lItr.release();}
| public virtual void Release(){reader.Release();}
|
2,282 | public FloatBuffer asReadOnlyBuffer() {return duplicate();}
| public override java.nio.FloatBuffer asReadOnlyBuffer(){return duplicate();}
|
2,283 | public int get(int key, int valueIfKeyNotFound) {int i = binarySearch(mKeys, 0, mSize, key);if (i < 0) {return valueIfKeyNotFound;} else {return mValues[i];}}
| public virtual int get(int key, int valueIfKeyNotFound){int i = binarySearch(mKeys, 0, mSize, key);if (i < 0){return valueIfKeyNotFound;}else{return mValues[i];}}
|
2,284 | public CharBuffer get(char[] dst) {return get(dst, 0, dst.length);}
| public virtual java.nio.CharBuffer get(char[] dst){return get(dst, 0, dst.Length);}
|
2,285 | public static String toHex(String value) {return (value == null || value.length() == 0)? "[]": toHex(value.getBytes(LocaleUtil.CHARSET_1252));}
| public static string ToHex(byte value){return ToHex((long)value, 2);}
|
2,286 | public String resolveNameXText(NameXPtg n) {return _iBook.resolveNameXText(n.getSheetRefIndex(), n.getNameIndex());}
| public String ResolveNameXText(NameXPtg n){return _iBook.ResolveNameXText(n.SheetRefIndex, n.NameIndex);}
|
2,287 | public String toString() {StringBuilder sb = new StringBuilder(64);sb.append(getClass().getName());sb.append(" [").append(_representation).append("]");return sb.toString();}
| public override String ToString(){StringBuilder sb = new StringBuilder(64);sb.Append(this.GetType().Name);sb.Append(" [").Append(_representation).Append("]");return sb.ToString();}
|
2,288 | public PutEmailIdentityMailFromAttributesResult putEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request) {request = beforeClientExecution(request);return executePutEmailIdentityMailFromAttributes(request);}
| public virtual PutEmailIdentityMailFromAttributesResponse PutEmailIdentityMailFromAttributes(PutEmailIdentityMailFromAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutEmailIdentityMailFromAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = PutEmailIdentityMailFromAttributesResponseUnmarshaller.Instance;return Invoke<PutEmailIdentityMailFromAttributesResponse>(request, options);}
|
2,289 | public RemoveAlbumPhotosRequest() {super("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| public RemoveAlbumPhotosRequest(): base("CloudPhoto", "2017-07-11", "RemoveAlbumPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
2,290 | public DeleteAttributesResult deleteAttributes(DeleteAttributesRequest request) {request = beforeClientExecution(request);return executeDeleteAttributes(request);}
| public virtual DeleteAttributesResponse DeleteAttributes(DeleteAttributesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteAttributesRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteAttributesResponseUnmarshaller.Instance;return Invoke<DeleteAttributesResponse>(request, options);}
|
2,291 | public void disableRefLog() {destination.setRefLogMessage("", false); }
| public virtual void DisableRefLog(){destination.SetRefLogMessage(string.Empty, false);}
|
2,292 | public TokenStream create(TokenStream input) {return new GermanLightStemFilter(input);}
| public override TokenStream Create(TokenStream input){return new GermanLightStemFilter(input);}
|
2,293 | public E removeLast() {return removeLastImpl();}
| public virtual E removeLast(){return removeLastImpl();}
|
2,294 | public UpdateDomainMetadataResult updateDomainMetadata(UpdateDomainMetadataRequest request) {request = beforeClientExecution(request);return executeUpdateDomainMetadata(request);}
| public virtual UpdateDomainMetadataResponse UpdateDomainMetadata(UpdateDomainMetadataRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainMetadataRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainMetadataResponseUnmarshaller.Instance;return Invoke<UpdateDomainMetadataResponse>(request, options);}
|
2,295 | public short findNewDrawingGroupId() {return dgg.findNewDrawingGroupId();}
| public short FindNewDrawingGroupId(){short dgId = 1;while (DrawingGroupExists(dgId))dgId++;return dgId;}
|
2,296 | public String toString() {return "FacetEntry{" +"value=" + value.utf8ToString() +", count=" + count +'}';}
| public override string ToString(){return "FacetEntry{" +"value=" + value.Utf8ToString() +", count=" + count +'}';}
|
2,297 | public SharedFormulaRecord linkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) {SharedFormulaGroup result = findFormulaGroupForCell(firstCell);if(null == result) {throw new RuntimeException("Failed to find a matching shared formula record");}result.add(agg);return result.getSFR();}
| public SharedFormulaRecord LinkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg){SharedFormulaGroup result = FindFormulaGroupForCell(firstCell);if (null == result){throw new RuntimeException("Failed to find a matching shared formula record");}result.Add(agg);return result.SFR;}
|
2,298 | public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(field_1_label_index);out.writeShort(field_2_zero);}
| public override void Write(ILittleEndianOutput out1){out1.WriteByte(sid + PtgClass);out1.WriteShort(field_1_label_index);out1.WriteShort(field_2_zero);}
|
2,299 | public Appendable append(char c) {write(c);return this;}
| public virtual OpenStringBuilder Append(string csq){return Append(csq, 0, csq.Length);}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.