id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
1,900 | public String nextKeyString() {return new String(nextKey());}
| public virtual string NextKeyString(){return new string(NextKey());}
|
1,901 | public DescribeEventsResult describeEvents() {return describeEvents(new DescribeEventsRequest());}
| public virtual DescribeEventsResponse DescribeEvents(){return DescribeEvents(new DescribeEventsRequest());}
|
1,902 | public UpdateNodeResult updateNode(UpdateNodeRequest request) {request = beforeClientExecution(request);return executeUpdateNode(request);}
| public virtual UpdateNodeResponse UpdateNode(UpdateNodeRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateNodeRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateNodeResponseUnmarshaller.Instance;return Invoke<UpdateNodeResponse>(request, options);}
|
1,903 | public GetJobOutputRequest(String vaultName, String jobId, String range) {setVaultName(vaultName);setJobId(jobId);setRange(range);}
| public GetJobOutputRequest(string vaultName, string jobId, string range){_vaultName = vaultName;_jobId = jobId;_range = range;}
|
1,904 | public static String stripTags(String buf, int start) {if (start>0) {buf = buf.substring(start);}return buf.replaceAll("<[^>]*>", " ");}
| public static string StripTags(string buf, int start){if (start > 0){buf = buf.Substring(0);}return Regex.Replace(buf, "<[^>]*>", " ");}
|
1,905 | public DescribeLaunchTemplatesResult describeLaunchTemplates(DescribeLaunchTemplatesRequest request) {request = beforeClientExecution(request);return executeDescribeLaunchTemplates(request);}
| public virtual DescribeLaunchTemplatesResponse DescribeLaunchTemplates(DescribeLaunchTemplatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeLaunchTemplatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeLaunchTemplatesResponseUnmarshaller.Instance;return Invoke<DescribeLaunchTemplatesResponse>(request, options);}
|
1,906 | public SynonymFilterFactory(Map<String,String> args) {super(args);ignoreCase = getBoolean(args, "ignoreCase", false);synonyms = require(args, "synonyms");format = get(args, "format");expand = getBoolean(args, "expand", true);analyzerName = get(args, "analyzer");tokenizerFactory = get(args, "tokenizerFactory");if (analyzerName != null && tokenizerFactory != null) {throw new IllegalArgumentException("Analyzer and TokenizerFactory can't be specified both: " +analyzerName + " and " + tokenizerFactory);}if (tokenizerFactory != null) {tokArgs.put("luceneMatchVersion", getLuceneMatchVersion().toString());for (Iterator<String> itr = args.keySet().iterator(); itr.hasNext();) {String key = itr.next();tokArgs.put(key.replaceAll("^tokenizerFactory\\.",""), args.get(key));itr.remove();}}if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public SynonymFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();#pragma warning disable 612, 618if (m_luceneMatchVersion.OnOrAfter(Lucene.Net.Util.LuceneVersion.LUCENE_34)){delegator = new FSTSynonymFilterFactory(new Dictionary<string, string>(OriginalArgs));}#pragma warning restore 612, 618else{if (args.TryGetValue("format", out string value) && !value.Equals("solr", StringComparison.Ordinal)){throw new System.ArgumentException("You must specify luceneMatchVersion >= 3.4 to use alternate synonyms formats");}#pragma warning disable 612, 618delegator = new SlowSynonymFilterFactory(new Dictionary<string, string>(OriginalArgs));#pragma warning restore 612, 618}}
|
1,907 | public void removePrintArea(int sheetIndex) {getWorkbook().removeBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);}
| public void RemovePrintArea(int sheetIndex){Workbook.RemoveBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex + 1);}
|
1,908 | public ModifyTrafficMirrorFilterNetworkServicesResult modifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request) {request = beforeClientExecution(request);return executeModifyTrafficMirrorFilterNetworkServices(request);}
| public virtual ModifyTrafficMirrorFilterNetworkServicesResponse ModifyTrafficMirrorFilterNetworkServices(ModifyTrafficMirrorFilterNetworkServicesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyTrafficMirrorFilterNetworkServicesRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyTrafficMirrorFilterNetworkServicesResponseUnmarshaller.Instance;return Invoke<ModifyTrafficMirrorFilterNetworkServicesResponse>(request, options);}
|
1,909 | public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) {if (args.length == 2) {return evaluate(ec.getRowIndex(), ec.getColumnIndex(), args[0], args[1]);}return ErrorEval.VALUE_INVALID;}
| public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length == 2){return Evaluate(ec.RowIndex, ec.ColumnIndex, args[0], args[1]);}return ErrorEval.VALUE_INVALID;}
|
1,910 | public DeltaRecord(double maxChange) {field_1_max_change = maxChange;}
| public DeltaRecord(double maxChange){field_1_max_change = maxChange;}
|
1,911 | public UpdateDomainEntryResult updateDomainEntry(UpdateDomainEntryRequest request) {request = beforeClientExecution(request);return executeUpdateDomainEntry(request);}
| public virtual UpdateDomainEntryResponse UpdateDomainEntry(UpdateDomainEntryRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateDomainEntryRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateDomainEntryResponseUnmarshaller.Instance;return Invoke<UpdateDomainEntryResponse>(request, options);}
|
1,912 | public SegmentCommitInfo clone() {SegmentCommitInfo other = new SegmentCommitInfo(info, delCount, softDelCount, delGen, fieldInfosGen, docValuesGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;other.nextWriteDocValuesGen = nextWriteDocValuesGen;for (Entry<Integer,Set<String>> e : dvUpdatesFiles.entrySet()) {other.dvUpdatesFiles.put(e.getKey(), new HashSet<>(e.getValue()));}other.fieldInfosFiles.addAll(fieldInfosFiles);return other;}
| public virtual object Clone(){SegmentCommitInfo other = new SegmentCommitInfo(Info, delCount, delGen, fieldInfosGen);other.nextWriteDelGen = nextWriteDelGen;other.nextWriteFieldInfosGen = nextWriteFieldInfosGen;foreach (KeyValuePair<long, ISet<string>> e in genUpdatesFiles){other.genUpdatesFiles[e.Key] = new JCG.HashSet<string>(e.Value);}return other;}
|
1,913 | public String putAttribute(String key, String value) {HashMap<String, String> newMap = new HashMap<>(attributes);String oldValue = newMap.put(key, value);attributes = Collections.unmodifiableMap(newMap);return oldValue;}
| public string PutAttribute(string key, string value){if (attributes == null){attributes = new Dictionary<string, string>();}return attributes[key] = value;}
|
1,914 | public void write(int oneChar) {buf.append((char) oneChar);}
| public override void write(int oneChar){buf.append((char)oneChar);}
|
1,915 | public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[WRITEPROTECT]\n");buffer.append("[/WRITEPROTECT]\n");return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[WritePROTECT]\n");buffer.Append("[/WritePROTECT]\n");return buffer.ToString();}
|
1,916 | public EvaluationSheet getSheet(int sheetIndex) {return new HSSFEvaluationSheet(_uBook.getSheetAt(sheetIndex));}
| public IEvaluationSheet GetSheet(int sheetIndex){return new HSSFEvaluationSheet((HSSFSheet)_uBook.GetSheetAt(sheetIndex));}
|
1,917 | public void removeSlideCount() {remove1stProperty(PropertyIDMap.PID_SLIDECOUNT);}
| public void RemoveSlideCount(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_SLIDECOUNT);}
|
1,918 | public DescribeFlowDefinitionResult describeFlowDefinition(DescribeFlowDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeFlowDefinition(request);}
| public virtual DescribeFlowDefinitionResponse DescribeFlowDefinition(DescribeFlowDefinitionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeFlowDefinitionRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeFlowDefinitionResponseUnmarshaller.Instance;return Invoke<DescribeFlowDefinitionResponse>(request, options);}
|
1,919 | public void set(int index) {intSet.put(index);if (index > maxInt)maxInt = index;}
| public virtual void Set(int index){intSet.Put(index);if (index > maxInt){maxInt = index;}}
|
1,920 | public boolean equals(Object other) {if (other == null) {return false;}if (other instanceof CharsRef) {return this.charsEquals((CharsRef) other);}return false;}
| public override bool Equals(object other){if (other == null){return false;}if (other is CharsRef){return this.CharsEquals(((CharsRef)other));}return false;}
|
1,921 | public StopFilterFactory(Map<String,String> args) {super(args);stopWordFiles = get(args, "words");format = get(args, "format", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public StopFilterFactory(IDictionary<string, string> args): base(args){AssureMatchVersion();stopWordFiles = Get(args, "words");format = Get(args, "format", (null == stopWordFiles ? null : FORMAT_WORDSET));ignoreCase = GetBoolean(args, "ignoreCase", false);enablePositionIncrements = GetBoolean(args, "enablePositionIncrements", true);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
1,922 | public void addState(ATNState state) {if (state != null) {state.atn = this;state.stateNumber = states.size();}states.add(state);}
| public virtual void AddState(ATNState state){if (state != null){state.atn = this;state.stateNumber = states.Count;}states.Add(state);}
|
1,923 | public String batchUrl() {return this.batchUrl;}
| public string BatchUrl { get; set; }
|
1,924 | public ParseException generateParseException() {jj_expentries.clear();boolean[] la1tokens = new boolean[33];if (jj_kind >= 0) {la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 25; i++) {if (jj_la1[i] == jj_gen) {for (int j = 0; j < 32; j++) {if ((jj_la1_0[i] & (1<<j)) != 0) {la1tokens[j] = true;}if ((jj_la1_1[i] & (1<<j)) != 0) {la1tokens[32+j] = true;}}}}for (int i = 0; i < 33; i++) {if (la1tokens[i]) {jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.add(jj_expentry);}}jj_endpos = 0;jj_rescan_token();jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.size()][];for (int i = 0; i < jj_expentries.size(); i++) {exptokseq[i] = jj_expentries.get(i);}return new ParseException(token, exptokseq, tokenImage);}
| public virtual ParseException GenerateParseException(){jj_expentries.Clear();bool[] la1tokens = new bool[33];if (jj_kind >= 0){la1tokens[jj_kind] = true;jj_kind = -1;}for (int i = 0; i < 21; i++){if (jj_la1[i] == jj_gen){for (int j = 0; j < 32; j++){if ((jj_la1_0[i] & (1 << j)) != 0){la1tokens[j] = true;}if ((jj_la1_1[i] & (1 << j)) != 0){la1tokens[32 + j] = true;}}}}for (int i = 0; i < 33; i++){if (la1tokens[i]){jj_expentry = new int[1];jj_expentry[0] = i;jj_expentries.Add(jj_expentry);}}jj_endpos = 0;Jj_rescan_token();Jj_add_error_token(0, 0);int[][] exptokseq = new int[jj_expentries.Count][];for (int i = 0; i < jj_expentries.Count; i++){exptokseq[i] = jj_expentries[i];}return new ParseException(Token, exptokseq, QueryParserConstants.TokenImage);}
|
1,925 | @Override public Iterator<K> iterator() {return new KeyIterator();}
| public override java.util.Iterator<K> iterator(){return new java.util.Hashtable<K, V>.KeyIterator(this._enclosing);}
|
1,926 | public DoubleList() {_array = new double[8];_count = 0;}
| public DoubleList(){_array = new double[8];_Count = 0;}
|
1,927 | public AddNoteCommand setMessage(String message) {checkCallable();this.message = message;return this;}
| public virtual NGit.Api.AddNoteCommand SetMessage(string message){CheckCallable();this.message = message;return this;}
|
1,928 | public SerializationHandleMap() {this.size = 0;this.threshold = 21; int arraySize = (int) (((long) threshold * 10000) / LOAD_FACTOR);resizeArrays(arraySize);}
| public SerializationHandleMap(){this.size = 0;this.threshold = 21;int arraySize = (int)(((long)threshold * 10000) / LOAD_FACTOR);resizeArrays(arraySize);}
|
1,929 | public PagedBytes(int blockBits) {assert blockBits > 0 && blockBits <= 31 : blockBits;this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize-1;upto = blockSize;bytesUsedPerBlock = RamUsageEstimator.alignObjectSize(blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER);numBlocks = 0;}
| public PagedBytes(int blockBits){Debug.Assert(blockBits > 0 && blockBits <= 31, blockBits.ToString());this.blockSize = 1 << blockBits;this.blockBits = blockBits;blockMask = blockSize - 1;upto = blockSize;bytesUsedPerBlock = blockSize + RamUsageEstimator.NUM_BYTES_ARRAY_HEADER + RamUsageEstimator.NUM_BYTES_OBJECT_REF;}
|
1,930 | public IncreaseReplicationFactorResult increaseReplicationFactor(IncreaseReplicationFactorRequest request) {request = beforeClientExecution(request);return executeIncreaseReplicationFactor(request);}
| public virtual IncreaseReplicationFactorResponse IncreaseReplicationFactor(IncreaseReplicationFactorRequest request){var options = new InvokeOptions();options.RequestMarshaller = IncreaseReplicationFactorRequestMarshaller.Instance;options.ResponseUnmarshaller = IncreaseReplicationFactorResponseUnmarshaller.Instance;return Invoke<IncreaseReplicationFactorResponse>(request, options);}
|
1,931 | public UpdateRuntimeConfigurationResult updateRuntimeConfiguration(UpdateRuntimeConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateRuntimeConfiguration(request);}
| public virtual UpdateRuntimeConfigurationResponse UpdateRuntimeConfiguration(UpdateRuntimeConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateRuntimeConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateRuntimeConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateRuntimeConfigurationResponse>(request, options);}
|
1,932 | public char getChar(Map<String,String> args, String name, char defaultValue) {String s = args.remove(name);if (s == null) {return defaultValue;} else {if (s.length() != 1) {throw new IllegalArgumentException(name + " should be a char. \"" + s + "\" is invalid");} else {return s.charAt(0);}}}
| public virtual char GetChar(IDictionary<string, string> args, string name, char defaultVal){string s;if (args.TryGetValue(name, out s)){args.Remove(name);if (s.Length != 1){throw new System.ArgumentException(name + " should be a char. \"" + s + "\" is invalid");}else{return s[0];}}return defaultVal;}
|
1,933 | public void notifyListeners(LexerNoViableAltException e) {String text = _input.getText(Interval.of(_tokenStartCharIndex, _input.index()));String msg = "token recognition error at: '"+ getErrorDisplay(text) + "'";ANTLRErrorListener listener = getErrorListenerDispatch();listener.syntaxError(this, null, _tokenStartLine, _tokenStartCharPositionInLine, msg, e);}
| public virtual void NotifyListeners(LexerNoViableAltException e){string text = _input.GetText(Interval.Of(_tokenStartCharIndex, _input.Index));string msg = "token recognition error at: '" + GetErrorDisplay(text) + "'";IAntlrErrorListener<int> listener = ErrorListenerDispatch;listener.SyntaxError(ErrorOutput, this, 0, _tokenStartLine, _tokenStartColumn, msg, e);}
|
1,934 | public void writeLong(long v) {writeContinueIfRequired(8);_ulrOutput.writeLong(v);}
| public void WriteLong(long v){_out.WriteLong(v);_size += 8;}
|
1,935 | public ChangeMessageVisibilityBatchRequest(String queueUrl, java.util.List<ChangeMessageVisibilityBatchRequestEntry> entries) {setQueueUrl(queueUrl);setEntries(entries);}
| public ChangeMessageVisibilityBatchRequest(string queueUrl, List<ChangeMessageVisibilityBatchRequestEntry> entries){_queueUrl = queueUrl;_entries = entries;}
|
1,936 | public GetExportJobResult getExportJob(GetExportJobRequest request) {request = beforeClientExecution(request);return executeGetExportJob(request);}
| public virtual GetExportJobResponse GetExportJob(GetExportJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetExportJobRequestMarshaller.Instance;options.ResponseUnmarshaller = GetExportJobResponseUnmarshaller.Instance;return Invoke<GetExportJobResponse>(request, options);}
|
1,937 | public AddRoleToDBInstanceResult addRoleToDBInstance(AddRoleToDBInstanceRequest request) {request = beforeClientExecution(request);return executeAddRoleToDBInstance(request);}
| public virtual AddRoleToDBInstanceResponse AddRoleToDBInstance(AddRoleToDBInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = AddRoleToDBInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = AddRoleToDBInstanceResponseUnmarshaller.Instance;return Invoke<AddRoleToDBInstanceResponse>(request, options);}
|
1,938 | public DeregisterInstancesFromLoadBalancerResult deregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request) {request = beforeClientExecution(request);return executeDeregisterInstancesFromLoadBalancer(request);}
| public virtual DeregisterInstancesFromLoadBalancerResponse DeregisterInstancesFromLoadBalancer(DeregisterInstancesFromLoadBalancerRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeregisterInstancesFromLoadBalancerRequestMarshaller.Instance;options.ResponseUnmarshaller = DeregisterInstancesFromLoadBalancerResponseUnmarshaller.Instance;return Invoke<DeregisterInstancesFromLoadBalancerResponse>(request, options);}
|
1,939 | public synchronized StringBuffer insert(int index, char ch) {insert0(index, ch);return this;}
| public java.lang.StringBuffer insert(int index, char ch){lock (this){insert0(index, ch);return this;}}
|
1,940 | public DownloadDBLogFilePortionResult downloadDBLogFilePortion(DownloadDBLogFilePortionRequest request) {request = beforeClientExecution(request);return executeDownloadDBLogFilePortion(request);}
| public virtual DownloadDBLogFilePortionResponse DownloadDBLogFilePortion(DownloadDBLogFilePortionRequest request){var options = new InvokeOptions();options.RequestMarshaller = DownloadDBLogFilePortionRequestMarshaller.Instance;options.ResponseUnmarshaller = DownloadDBLogFilePortionResponseUnmarshaller.Instance;return Invoke<DownloadDBLogFilePortionResponse>(request, options);}
|
1,941 | public GetStaticIpResult getStaticIp(GetStaticIpRequest request) {request = beforeClientExecution(request);return executeGetStaticIp(request);}
| public virtual GetStaticIpResponse GetStaticIp(GetStaticIpRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetStaticIpRequestMarshaller.Instance;options.ResponseUnmarshaller = GetStaticIpResponseUnmarshaller.Instance;return Invoke<GetStaticIpResponse>(request, options);}
|
1,942 | public CreateUsagePlanResult createUsagePlan(CreateUsagePlanRequest request) {request = beforeClientExecution(request);return executeCreateUsagePlan(request);}
| public virtual CreateUsagePlanResponse CreateUsagePlan(CreateUsagePlanRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateUsagePlanRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateUsagePlanResponseUnmarshaller.Instance;return Invoke<CreateUsagePlanResponse>(request, options);}
|
1,943 | public BlameResult call() throws GitAPIException {checkCallable();try (BlameGenerator gen = new BlameGenerator(repo, path)) {if (diffAlgorithm != null)gen.setDiffAlgorithm(diffAlgorithm);if (textComparator != null)gen.setTextComparator(textComparator);if (followFileRenames != null)gen.setFollowFileRenames(followFileRenames.booleanValue());if (reverseEndCommits != null)gen.reverse(startCommit, reverseEndCommits);else if (startCommit != null)gen.push(null, startCommit);else {gen.prepareHead();}return gen.computeBlameResult();} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}
| public override BlameResult Call(){CheckCallable();BlameGenerator gen = new BlameGenerator(repo, path);try{if (diffAlgorithm != null){gen.SetDiffAlgorithm(diffAlgorithm);}if (textComparator != null){gen.SetTextComparator(textComparator);}if (followFileRenames != null){gen.SetFollowFileRenames(followFileRenames);}if (reverseEndCommits != null){gen.Reverse(startCommit, reverseEndCommits);}else{if (startCommit != null){gen.Push(null, startCommit);}else{gen.Push(null, repo.Resolve(Constants.HEAD));if (!repo.IsBare){DirCache dc = repo.ReadDirCache();int entry = dc.FindEntry(path);if (0 <= entry){gen.Push(null, dc.GetEntry(entry).GetObjectId());}FilePath inTree = new FilePath(repo.WorkTree, path);if (inTree.IsFile()){gen.Push(null, new RawText(inTree));}}}}return gen.ComputeBlameResult();}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{gen.Release();}}
|
1,944 | public SearchTransitGatewayMulticastGroupsResult searchTransitGatewayMulticastGroups(SearchTransitGatewayMulticastGroupsRequest request) {request = beforeClientExecution(request);return executeSearchTransitGatewayMulticastGroups(request);}
| public virtual SearchTransitGatewayMulticastGroupsResponse SearchTransitGatewayMulticastGroups(SearchTransitGatewayMulticastGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchTransitGatewayMulticastGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchTransitGatewayMulticastGroupsResponseUnmarshaller.Instance;return Invoke<SearchTransitGatewayMulticastGroupsResponse>(request, options);}
|
1,945 | public LinearOffsetRange normaliseAndTranslate(int translationAmount) {if (_length > 0) {if(translationAmount == 0) {return this;}return new LinearOffsetRange(translationAmount + _offset, _length);}return new LinearOffsetRange(translationAmount + _offset + _length + 1, -_length);}
| public LinearOffsetRange NormaliseAndTranslate(int translationAmount){if (_Length > 0){if (translationAmount == 0){return this;}return new LinearOffsetRange(translationAmount + _offset, _Length);}return new LinearOffsetRange(translationAmount + _offset + _Length + 1, -_Length);}
|
1,946 | public boolean isInvoke(char c) {return invokeMap[characterCategoryMap[c]];}
| public bool IsInvoke(char c){return invokeMap[characterCategoryMap[c]];}
|
1,947 | public int getSize() {return size;}
| public virtual int GetSize(){return size;}
|
1,948 | public int read() throws IOException {if (buf == null) {throw new IOException();}if (pos < buf.length) {return (buf[pos++] & 0xFF);}return in.read();}
| public override int read(){if (buf == null){throw new System.IO.IOException();}if (pos < buf.Length){return (buf[pos++] & unchecked((int)(0xFF)));}return @in.read();}
|
1,949 | public int mark() {return 0;}
| public virtual int Mark(){return 0;}
|
1,950 | public SearchPhotosRequest() {super("CloudPhoto", "2017-07-11", "SearchPhotos", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
| public SearchPhotosRequest(): base("CloudPhoto", "2017-07-11", "SearchPhotos", "cloudphoto", "openAPI"){Protocol = ProtocolType.HTTPS;}
|
1,951 | public void copyFrom(TermState other) {assert other instanceof OrdTermState : "can not copy from " + other.getClass().getName();this.ord = ((OrdTermState) other).ord;}
| public override void CopyFrom(TermState other){Debug.Assert(other is OrdTermState, "can not copy from " + other.GetType().Name);this.Ord = ((OrdTermState)other).Ord;}
|
1,952 | public AnalyzeDocumentResult analyzeDocument(AnalyzeDocumentRequest request) {request = beforeClientExecution(request);return executeAnalyzeDocument(request);}
| public virtual AnalyzeDocumentResponse AnalyzeDocument(AnalyzeDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = AnalyzeDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = AnalyzeDocumentResponseUnmarshaller.Instance;return Invoke<AnalyzeDocumentResponse>(request, options);}
|
1,953 | public int calcExtSSTRecordSize() {return ExtSSTRecord.getRecordSizeForStrings(field_3_strings.size());}
| public int CalcExtSSTRecordSize(){return ExtSSTRecord.GetRecordSizeForStrings(field_3_strings.Size);}
|
1,954 | public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex) {return new FormulaShifter(srcSheetIndex, dstSheetIndex);}
| public static FormulaShifter CreateForSheetShift(int srcSheetIndex, int dstSheetIndex){return new FormulaShifter(srcSheetIndex, dstSheetIndex);}
|
1,955 | public void setRule(int idx, ConditionalFormattingRule cfRule){setRule(idx, (HSSFConditionalFormattingRule)cfRule);}
| public void SetRule(int idx, HSSFConditionalFormattingRule cfRule){cfAggregate.SetRule(idx, cfRule.CfRuleRecord);}
|
1,956 | public SelectionRecord(RecordInputStream in) {field_1_pane = in.readByte();field_2_row_active_cell = in.readUShort();field_3_col_active_cell = in.readShort();field_4_active_cell_ref_index = in.readShort();int field_5_num_refs = in.readUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_6_refs.length; i++) {field_6_refs[i] = new CellRangeAddress8Bit(in);}}
| public SelectionRecord(RecordInputStream in1){field_1_pane = (byte)in1.ReadByte();field_2_row_active_cell = in1.ReadUShort();field_3_col_active_cell = in1.ReadShort();field_4_ref_active_cell = in1.ReadShort();int field_5_num_refs = in1.ReadUShort();field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];for (int i = 0; i < field_5_num_refs; i++){field_6_refs[i] = new CellRangeAddress8Bit(in1);}}
|
1,957 | public void setNeedNewObjectIds(boolean b) {if (b)newObjectIds = new ObjectIdSubclassMap<>();elsenewObjectIds = null;}
| public virtual void SetNeedNewObjectIds(bool b){if (b){newObjectIds = new ObjectIdSubclassMap<ObjectId>();}else{newObjectIds = null;}}
|
1,958 | public GetResolverRulePolicyResult getResolverRulePolicy(GetResolverRulePolicyRequest request) {request = beforeClientExecution(request);return executeGetResolverRulePolicy(request);}
| public virtual GetResolverRulePolicyResponse GetResolverRulePolicy(GetResolverRulePolicyRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetResolverRulePolicyRequestMarshaller.Instance;options.ResponseUnmarshaller = GetResolverRulePolicyResponseUnmarshaller.Instance;return Invoke<GetResolverRulePolicyResponse>(request, options);}
|
1,959 | public static DoubleBuffer wrap(double[] array) {return wrap(array, 0, array.length);}
| public static java.nio.DoubleBuffer wrap(double[] array_1){return wrap(array_1, 0, array_1.Length);}
|
1,960 | public UnitsRecord clone() {return copy();}
| public override Object Clone(){UnitsRecord rec = new UnitsRecord();rec.field_1_units = field_1_units;return rec;}
|
1,961 | public void readFully(byte[] buf, int off, int len) {try {checkEOF(_read(buf, off, len), len);} catch (IOException e) {throw new RuntimeException(e);}}
| public void ReadFully(byte[] buf, int off, int len){int max = off + len;for (int i = off; i < max; i++){byte ch;try{ch = (byte)in1.ReadByte();}catch (IOException e){throw new RuntimeException(e);}CheckEOF(ch);buf[i] = ch;}}
|
1,962 | public DescribeInterconnectLoaResult describeInterconnectLoa(DescribeInterconnectLoaRequest request) {request = beforeClientExecution(request);return executeDescribeInterconnectLoa(request);}
| public virtual DescribeInterconnectLoaResponse DescribeInterconnectLoa(DescribeInterconnectLoaRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeInterconnectLoaRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeInterconnectLoaResponseUnmarshaller.Instance;return Invoke<DescribeInterconnectLoaResponse>(request, options);}
|
1,963 | public static ByteOrder nativeOrder() {return NATIVE_ORDER;}
| public static java.nio.ByteOrder nativeOrder(){return NATIVE_ORDER;}
|
1,964 | public CalcModeRecord(RecordInputStream in) {field_1_calcmode = in.readShort();}
| public CalcModeRecord(RecordInputStream in1){field_1_calcmode = in1.ReadShort();}
|
1,965 | public void addParentId(AnyObjectId additionalParent) {if (parentIds.length == 0) {setParentId(additionalParent);} else {ObjectId[] newParents = new ObjectId[parentIds.length + 1];System.arraycopy(parentIds, 0, newParents, 0, parentIds.length);newParents[parentIds.length] = additionalParent.copy();parentIds = newParents;}}
| public virtual void AddParentId(AnyObjectId additionalParent){if (parentIds.Length == 0){SetParentId(additionalParent);}else{ObjectId[] newParents = new ObjectId[parentIds.Length + 1];System.Array.Copy(parentIds, 0, newParents, 0, parentIds.Length);newParents[parentIds.Length] = additionalParent.Copy();parentIds = newParents;}}
|
1,966 | public CreateAccessPointResult createAccessPoint(CreateAccessPointRequest request) {request = beforeClientExecution(request);return executeCreateAccessPoint(request);}
| public virtual CreateAccessPointResponse CreateAccessPoint(CreateAccessPointRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateAccessPointRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateAccessPointResponseUnmarshaller.Instance;return Invoke<CreateAccessPointResponse>(request, options);}
|
1,967 | public DeleteLoadBalancerListenersResult deleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request) {request = beforeClientExecution(request);return executeDeleteLoadBalancerListeners(request);}
| public virtual DeleteLoadBalancerListenersResponse DeleteLoadBalancerListeners(DeleteLoadBalancerListenersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteLoadBalancerListenersRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteLoadBalancerListenersResponseUnmarshaller.Instance;return Invoke<DeleteLoadBalancerListenersResponse>(request, options);}
|
1,968 | public DescribeOrderableClusterOptionsResult describeOrderableClusterOptions() {return describeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}
| public virtual DescribeOrderableClusterOptionsResponse DescribeOrderableClusterOptions(){return DescribeOrderableClusterOptions(new DescribeOrderableClusterOptionsRequest());}
|
1,969 | public void setDerefTags(boolean deref) {derefTags = deref;}
| public virtual void SetDerefTags(bool deref){derefTags = deref;}
|
1,970 | public DeactivateMFADeviceRequest(String userName, String serialNumber) {setUserName(userName);setSerialNumber(serialNumber);}
| public DeactivateMFADeviceRequest(string userName, string serialNumber){_userName = userName;_serialNumber = serialNumber;}
|
1,971 | public boolean markSupported() {synchronized (lock) {return in.markSupported();}}
| public override bool markSupported(){lock (@lock){return @in.markSupported();}}
|
1,972 | public static void createNewFile(File f) throws IOException {if (!f.createNewFile())throw new IOException(MessageFormat.format(JGitText.get().createNewFileFailed, f));}
| public static void CreateNewFile(FilePath f){if (!f.CreateNewFile()){throw new IOException(MessageFormat.Format(JGitText.Get().createNewFileFailed, f));}}
|
1,973 | public String getFieldAsString() {if (this.field == null)return null;elsereturn this.field.toString();}
| public virtual string GetFieldAsString(){if (this.field == null)return null;elsereturn this.field.ToString();}
|
1,974 | public void inform(ResourceLoader loader) throws IOException {String dicts[] = dictionaryFiles.split(",");InputStream affix = null;List<InputStream> dictionaries = new ArrayList<>();try {dictionaries = new ArrayList<>();for (String file : dicts) {dictionaries.add(loader.openResource(file));}affix = loader.openResource(affixFile);Path tempPath = Files.createTempDirectory(Dictionary.getDefaultTempDir(), "Hunspell");try (Directory tempDir = FSDirectory.open(tempPath)) {this.dictionary = new Dictionary(tempDir, "hunspell", affix, dictionaries, ignoreCase);} finally {IOUtils.rm(tempPath);}} catch (ParseException e) {throw new IOException("Unable to load hunspell data! [dictionary=" + dictionaries + ",affix=" + affixFile + "]", e);} finally {IOUtils.closeWhileHandlingException(affix);IOUtils.closeWhileHandlingException(dictionaries);}}
| public virtual void Inform(IResourceLoader loader){string[] dicts = dictionaryFiles.Split(',').TrimEnd();Stream affix = null;IList<Stream> dictionaries = new List<Stream>();try{dictionaries = new List<Stream>();foreach (string file in dicts){dictionaries.Add(loader.OpenResource(file));}affix = loader.OpenResource(affixFile);this.dictionary = new Dictionary(affix, dictionaries, ignoreCase);}catch (Exception e){throw new IOException("Unable to load hunspell data! [dictionary=" + dictionaries + ",affix=" + affixFile + "]", e);}finally{IOUtils.DisposeWhileHandlingException(affix);IOUtils.DisposeWhileHandlingException(dictionaries);}}
|
1,975 | public DetectDocumentTextResult detectDocumentText(DetectDocumentTextRequest request) {request = beforeClientExecution(request);return executeDetectDocumentText(request);}
| public virtual DetectDocumentTextResponse DetectDocumentText(DetectDocumentTextRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectDocumentTextRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectDocumentTextResponseUnmarshaller.Instance;return Invoke<DetectDocumentTextResponse>(request, options);}
|
1,976 | public DescribeCertificatesResult describeCertificates(DescribeCertificatesRequest request) {request = beforeClientExecution(request);return executeDescribeCertificates(request);}
| public virtual DescribeCertificatesResponse DescribeCertificates(DescribeCertificatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeCertificatesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeCertificatesResponseUnmarshaller.Instance;return Invoke<DescribeCertificatesResponse>(request, options);}
|
1,977 | public int getFormatCount() {return _formats.length;}
| public int GetFormatCount(){return m_formats.Count;}
|
1,978 | public GetOutcomesResult getOutcomes(GetOutcomesRequest request) {request = beforeClientExecution(request);return executeGetOutcomes(request);}
| public virtual GetOutcomesResponse GetOutcomes(GetOutcomesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetOutcomesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetOutcomesResponseUnmarshaller.Instance;return Invoke<GetOutcomesResponse>(request, options);}
|
1,979 | public Set<URIishField> getOptionalFields() {return Collections.emptySet();}
| public virtual ICollection<TransportProtocol.URIishField> GetOptionalFields(){return Sharpen.Collections.EmptySet<TransportProtocol.URIishField>();}
|
1,980 | public BasicStats(String field, double boost) {this.field = field;this.boost = boost;}
| public BasicStats(string field, float queryBoost){this.field = field;this.m_queryBoost = queryBoost;this.m_totalBoost = queryBoost;}
|
1,981 | public UpdateSecurityGroupRuleDescriptionsIngressResult updateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request) {request = beforeClientExecution(request);return executeUpdateSecurityGroupRuleDescriptionsIngress(request);}
| public virtual UpdateSecurityGroupRuleDescriptionsIngressResponse UpdateSecurityGroupRuleDescriptionsIngress(UpdateSecurityGroupRuleDescriptionsIngressRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateSecurityGroupRuleDescriptionsIngressRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateSecurityGroupRuleDescriptionsIngressResponseUnmarshaller.Instance;return Invoke<UpdateSecurityGroupRuleDescriptionsIngressResponse>(request, options);}
|
1,982 | public long getOffset() {return position;}
| public virtual long GetOffset(){return position;}
|
1,983 | public Collection<Ref> getAdvertisedRefs() {return Collections.unmodifiableCollection(advertisedRefs.values());}
| public virtual ICollection<Ref> GetAdvertisedRefs(){return Sharpen.Collections.UnmodifiableCollection(advertisedRefs.Values);}
|
1,984 | public QueryParser(QueryParserTokenManager tm) {token_source = tm;token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();}
| public QueryParser(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 10; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
|
1,985 | public void setText(CharacterIterator newText) {start = newText.getBeginIndex();end = newText.getEndIndex();text = newText;current = start;}
| public override void SetText(CharacterIterator newText){start = newText.BeginIndex;end = newText.EndIndex;text = newText;current = start;}
|
1,986 | public PutOutcomeResult putOutcome(PutOutcomeRequest request) {request = beforeClientExecution(request);return executePutOutcome(request);}
| public virtual PutOutcomeResponse PutOutcome(PutOutcomeRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutOutcomeRequestMarshaller.Instance;options.ResponseUnmarshaller = PutOutcomeResponseUnmarshaller.Instance;return Invoke<PutOutcomeResponse>(request, options);}
|
1,987 | public UnescapedCharSequence(CharSequence text) {this.chars = new char[text.length()];this.wasEscaped = new boolean[text.length()];for (int i = 0; i < text.length(); i++) {this.chars[i] = text.charAt(i);this.wasEscaped[i] = false;}}
| public UnescapedCharSequence(ICharSequence text){this.chars = new char[text.Length];this.wasEscaped = new bool[text.Length];for (int i = 0; i < text.Length; i++){this.chars[i] = text[i];this.wasEscaped[i] = false;}}
|
1,988 | public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {byteBuffer.limit(limit * SizeOf.DOUBLE);byteBuffer.position(position * SizeOf.DOUBLE);if (byteBuffer instanceof ReadWriteDirectByteBuffer) {((ReadWriteDirectByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);} else {((ReadWriteHeapByteBuffer) byteBuffer).put(src, srcOffset, doubleCount);}this.position += doubleCount;return this;}
| public override java.nio.DoubleBuffer put(double[] src, int srcOffset, int doubleCount){byteBuffer.limit(_limit * libcore.io.SizeOf.DOUBLE);byteBuffer.position(_position * libcore.io.SizeOf.DOUBLE);if (byteBuffer is java.nio.ReadWriteDirectByteBuffer){((java.nio.ReadWriteDirectByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}else{((java.nio.ReadWriteHeapByteBuffer)byteBuffer).put(src, srcOffset, doubleCount);}this._position += doubleCount;return this;}
|
1,989 | public void remove() {throw new UnsupportedOperationException();}
| public virtual void remove(){throw new System.NotSupportedException();}
|
1,990 | public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[CHARTTITLEFORMAT]\n");buffer.append(" .format_runs = ").append(_formats.length).append("\n");for(int i=0; i<_formats.length; i++) {CTFormat ctf = _formats[i];buffer.append(" .char_offset= ").append(ctf.getOffset());buffer.append(",.fontidx= ").append(ctf.getFontIndex());buffer.append("\n");}buffer.append("[/CHARTTITLEFORMAT]\n");return buffer.toString();}
| public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[ALRUNS]\n");buffer.Append(" .format_runs = ").Append(m_recs).Append("\n");int idx;CTFormat ctf;for (idx = 0; idx < m_formats.Count; idx++){ctf = (CTFormat)m_formats[idx];buffer.Append(" .char_offset= ").Append(ctf.Offset);buffer.Append(",.fontidx= ").Append(ctf.FontIndex);buffer.Append("\n");}buffer.Append("[/ALRUNS]\n");return buffer.ToString();}
|
1,991 | public StartDominantLanguageDetectionJobResult startDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartDominantLanguageDetectionJob(request);}
| public virtual StartDominantLanguageDetectionJobResponse StartDominantLanguageDetectionJob(StartDominantLanguageDetectionJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = StartDominantLanguageDetectionJobRequestMarshaller.Instance;options.ResponseUnmarshaller = StartDominantLanguageDetectionJobResponseUnmarshaller.Instance;return Invoke<StartDominantLanguageDetectionJobResponse>(request, options);}
|
1,992 | public static boolean hasNonConflictingAltSet(Collection<BitSet> altsets) {for (BitSet alts : altsets) {if ( alts.cardinality()==1 ) {return true;}}return false;}
| public static bool HasNonConflictingAltSet(IEnumerable<BitSet> altsets){foreach (BitSet alts in altsets){if (alts.Cardinality() == 1){return true;}}return false;}
|
1,993 | public ByteBuffer putChar(int index, char value) {return putShort(index, (short) value);}
| public override java.nio.ByteBuffer putChar(int index, char value){return putShort(index, (short)value);}
|
1,994 | public DataValidationConstraint createTextLengthConstraint(int operatorType, String formula1, String formula2) {return DVConstraint.createNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}
| public IDataValidationConstraint CreateTextLengthConstraint(int operatorType, String formula1, String formula2){return DVConstraint.CreateNumericConstraint(ValidationType.TEXT_LENGTH, operatorType, formula1, formula2);}
|
1,995 | public void writeShort(int v) {writeContinueIfRequired(2);_ulrOutput.writeShort(v);}
| public void WriteShort(int v){_out.WriteShort(v);_size += 2;}
|
1,996 | public final short getShort(int index) {checkIndex(index, SizeOf.SHORT);return Memory.peekShort(backingArray, offset + index, order);}
| public sealed override short getShort(int index){checkIndex(index, libcore.io.SizeOf.SHORT);return libcore.io.Memory.peekShort(backingArray, offset + index, _order);}
|
1,997 | public static FuncPtg create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.getFunctionByIndex(functionIndex);if(fm == null) {throw new RuntimeException("Invalid built-in function index (" + functionIndex + ")");}return new FuncPtg(functionIndex, fm);}
| public static FuncPtg Create(int functionIndex) {FunctionMetadata fm = FunctionMetadataRegistry.GetFunctionByIndex(functionIndex);if(fm == null) {throw new Exception("Invalid built-in function index (" + functionIndex + ")");}return new FuncPtg(functionIndex, fm);}
|
1,998 | public String toString() {return "{"+ruleIndex+":"+predIndex+"}?";}
| public override string ToString(){return "{" + ruleIndex + ":" + predIndex + "}?";}
|
1,999 | public ListDashboardsResult listDashboards(ListDashboardsRequest request) {request = beforeClientExecution(request);return executeListDashboards(request);}
| public virtual ListDashboardsResponse ListDashboards(ListDashboardsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDashboardsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDashboardsResponseUnmarshaller.Instance;return Invoke<ListDashboardsResponse>(request, options);}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.