id
int32 0
10.3k
| java
stringlengths 29
1.4k
| cs
stringlengths 28
1.38k
|
---|---|---|
3,800 | public int compareTo(FacetLabel other) {final int len = length < other.length ? length : other.length;for (int i = 0, j = 0; i < len; i++, j++) {int cmp = components[i].compareTo(other.components[j]);if (cmp < 0) {return -1; }if (cmp > 0) {return 1; }}return length - other.length;}
| public virtual int CompareTo(FacetLabel other){int len = Length < other.Length ? Length : other.Length;for (int i = 0, j = 0; i < len; i++, j++){int cmp = Components[i].CompareToOrdinal(other.Components[j]);if (cmp < 0){return -1; }if (cmp > 0){return 1; }}return Length - other.Length;}
|
3,801 | public int find(String key) {int len = key.length();char strkey[] = new char[len + 1];key.getChars(0, len, strkey, 0);strkey[len] = 0;return find(strkey, 0);}
| public virtual int Find(string key){int len = key.Length;char[] strkey = new char[len + 1];key.CopyTo(0, strkey, 0, len - 0);strkey[len] = (char)0;return Find(strkey, 0);}
|
3,802 | public final CharBuffer put(char[] src, int srcOffset, int charCount) {throw new ReadOnlyBufferException();}
| public sealed override java.nio.CharBuffer put(char[] src, int srcOffset, int charCount){throw new java.nio.ReadOnlyBufferException();}
|
3,803 | public ListNodesResult listNodes(ListNodesRequest request) {request = beforeClientExecution(request);return executeListNodes(request);}
| public virtual ListNodesResponse ListNodes(ListNodesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListNodesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListNodesResponseUnmarshaller.Instance;return Invoke<ListNodesResponse>(request, options);}
|
3,804 | public DeleteVoiceConnectorStreamingConfigurationResult deleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorStreamingConfiguration(request);}
| public virtual DeleteVoiceConnectorStreamingConfigurationResponse DeleteVoiceConnectorStreamingConfiguration(DeleteVoiceConnectorStreamingConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteVoiceConnectorStreamingConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteVoiceConnectorStreamingConfigurationResponseUnmarshaller.Instance;return Invoke<DeleteVoiceConnectorStreamingConfigurationResponse>(request, options);}
|
3,805 | public TokenStream create(TokenStream input) {return new SoraniNormalizationFilter(input);}
| public override TokenStream Create(TokenStream input){return new SoraniNormalizationFilter(input);}
|
3,806 | public int following(int pos) {if (pos < start || pos > end) {throw new IllegalArgumentException("offset out of bounds");} else if (pos == end) {current = end;return DONE;} else {return last();}}
| public override int Following(int pos){if (pos < start || pos > end){throw new ArgumentException("offset out of bounds");}else if (pos == end){current = end;return Done;}else{return Last();}}
|
3,807 | public SshSessionFactory getSshSessionFactory() {return sch;}
| public virtual SshSessionFactory GetSshSessionFactory(){return sch;}
|
3,808 | @Override public boolean contains(Object o) {if (!(o instanceof Multiset.Entry)) {return false;}Multiset.Entry<?> entry = (Multiset.Entry<?>) o;Collection<V> collection = map.get(entry.getElement());return (collection != null) &&(collection.size() == entry.getCount());}
| public override bool contains(object o){if (!(o is java.util.MapClass.Entry<K, V>)){return false;}java.util.MapClass.Entry<object, object> e = (java.util.MapClass.Entry<object, object>)o;return this._enclosing.containsMapping(e.getKey(), e.getValue());}
|
3,809 | public TokenFilter create(TokenStream input) {CommonGramsFilter commonGrams = new CommonGramsFilter(input, commonWords);return commonGrams;}
| public override TokenStream Create(TokenStream input){var commonGrams = new CommonGramsFilter(m_luceneMatchVersion, input, commonWords);return commonGrams;}
|
3,810 | public DescribeWorkspaceImagesResult describeWorkspaceImages(DescribeWorkspaceImagesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceImages(request);}
| public virtual DescribeWorkspaceImagesResponse DescribeWorkspaceImages(DescribeWorkspaceImagesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeWorkspaceImagesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeWorkspaceImagesResponseUnmarshaller.Instance;return Invoke<DescribeWorkspaceImagesResponse>(request, options);}
|
3,811 | public ValueEval getItem(int index) {if (index < 0 || index > _size) {throw new IllegalArgumentException("Specified index " + index+ " is outside range (0.." + (_size - 1) + ")");}return getItemInternal(index);}
| public ValueEval GetItem(int index){if (index < 0 || index > _size){throw new ArgumentException("Specified index " + index+ " is outside range (0.." + (_size - 1) + ")");}return GetItemInternal(index);}
|
3,812 | public ListEventBusesResult listEventBuses(ListEventBusesRequest request) {request = beforeClientExecution(request);return executeListEventBuses(request);}
| public virtual ListEventBusesResponse ListEventBuses(ListEventBusesRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListEventBusesRequestMarshaller.Instance;options.ResponseUnmarshaller = ListEventBusesResponseUnmarshaller.Instance;return Invoke<ListEventBusesResponse>(request, options);}
|
3,813 | public QualityStats(double maxGoodPoints, long searchTime) {this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new ArrayList<>();pAt = new double[MAX_POINTS+1]; }
| public QualityStats(double maxGoodPoints, long searchTime){this.maxGoodPoints = maxGoodPoints;this.searchTime = searchTime;this.recallPoints = new List<RecallPoint>();pAt = new double[MAX_POINTS + 1]; }
|
3,814 | public GetInvalidationRequest(String distributionId, String id) {setDistributionId(distributionId);setId(id);}
| public GetInvalidationRequest(string distributionId, string id){_distributionId = distributionId;_id = id;}
|
3,815 | public int compareTo(ScoreTerm other) {if (this.boost == other.boost)return other.bytes.get().compareTo(this.bytes.get());elsereturn Float.compare(this.boost, other.boost);}
| public int CompareTo(ScoreTerm other){if (this.Boost == other.Boost){return TermComp.Compare(other.Bytes, this.Bytes);}else{return this.Boost.CompareTo(other.Boost);}}
|
3,816 | public RegenerateSecurityTokenResult regenerateSecurityToken(RegenerateSecurityTokenRequest request) {request = beforeClientExecution(request);return executeRegenerateSecurityToken(request);}
| public virtual RegenerateSecurityTokenResponse RegenerateSecurityToken(RegenerateSecurityTokenRequest request){var options = new InvokeOptions();options.RequestMarshaller = RegenerateSecurityTokenRequestMarshaller.Instance;options.ResponseUnmarshaller = RegenerateSecurityTokenResponseUnmarshaller.Instance;return Invoke<RegenerateSecurityTokenResponse>(request, options);}
|
3,817 | public DescribeRootFoldersResult describeRootFolders(DescribeRootFoldersRequest request) {request = beforeClientExecution(request);return executeDescribeRootFolders(request);}
| public virtual DescribeRootFoldersResponse DescribeRootFolders(DescribeRootFoldersRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeRootFoldersRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeRootFoldersResponseUnmarshaller.Instance;return Invoke<DescribeRootFoldersResponse>(request, options);}
|
3,818 | public DeactivateUserResult deactivateUser(DeactivateUserRequest request) {request = beforeClientExecution(request);return executeDeactivateUser(request);}
| public virtual DeactivateUserResponse DeactivateUser(DeactivateUserRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeactivateUserRequestMarshaller.Instance;options.ResponseUnmarshaller = DeactivateUserResponseUnmarshaller.Instance;return Invoke<DeactivateUserResponse>(request, options);}
|
3,819 | public boolean contains(int el) {int n = intervals.size();int l = 0;int r = n - 1;while (l <= r) {int m = (l + r) / 2;Interval I = intervals.get(m);int a = I.a;int b = I.b;if ( b<el ) {l = m + 1;} else if ( a>el ) {r = m - 1;} else { return true;}}return false;}
| public virtual bool Contains(int el){int n = intervals.Count;for (int i = 0; i < n; i++){Interval I = intervals[i];int a = I.a;int b = I.b;if (el < a){break;}if (el >= a && el <= b){return true;}}return false;}
|
3,820 | public ListJobsResult listJobs(ListJobsRequest request) {request = beforeClientExecution(request);return executeListJobs(request);}
| public virtual ListJobsResponse ListJobs(ListJobsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListJobsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListJobsResponseUnmarshaller.Instance;return Invoke<ListJobsResponse>(request, options);}
|
3,821 | public RussianLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public RussianLightStemFilterFactory(IDictionary<string, string> args): base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
3,822 | public SearchSkillGroupsResult searchSkillGroups(SearchSkillGroupsRequest request) {request = beforeClientExecution(request);return executeSearchSkillGroups(request);}
| public virtual SearchSkillGroupsResponse SearchSkillGroups(SearchSkillGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = SearchSkillGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = SearchSkillGroupsResponseUnmarshaller.Instance;return Invoke<SearchSkillGroupsResponse>(request, options);}
|
3,823 | public SortField getSortField(Bindings bindings, boolean reverse) {return getDoubleValuesSource(bindings).getSortField(reverse);}
| public virtual SortField GetSortField(Bindings bindings, bool reverse){return GetValueSource(bindings).GetSortField(reverse);}
|
3,824 | public ModifyHostsResult modifyHosts(ModifyHostsRequest request) {request = beforeClientExecution(request);return executeModifyHosts(request);}
| public virtual ModifyHostsResponse ModifyHosts(ModifyHostsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyHostsRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyHostsResponseUnmarshaller.Instance;return Invoke<ModifyHostsResponse>(request, options);}
|
3,825 | public void setDate(String date) {this.date = date;}
| public virtual void SetDate(string date){this.date = date;}
|
3,826 | public ValueEval getAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}
| public ValueEval GetAreaEval(int firstRowIndex, int firstColumnIndex,int lastRowIndex, int lastColumnIndex){SheetRangeEvaluator sre = GetRefEvaluatorForCurrentSheet();return new LazyAreaEval(firstRowIndex, firstColumnIndex, lastRowIndex, lastColumnIndex, sre);}
|
3,827 | public CreateContactMethodResult createContactMethod(CreateContactMethodRequest request) {request = beforeClientExecution(request);return executeCreateContactMethod(request);}
| public virtual CreateContactMethodResponse CreateContactMethod(CreateContactMethodRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateContactMethodRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateContactMethodResponseUnmarshaller.Instance;return Invoke<CreateContactMethodResponse>(request, options);}
|
3,828 | public static final RevFilter before(Date ts) {return before(ts.getTime());}
| public static RevFilter Before(DateTime ts){return Before(ts.GetTime());}
|
3,829 | public String toString() { return toString(VocabularyImpl.EMPTY_VOCABULARY); }
| public override String ToString() { return ToString(Vocabulary.EmptyVocabulary); }
|
3,830 | public void updateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex) {for (int i = 0; i < _cfHeaders.size(); i++) {CFRecordsAggregate subAgg = _cfHeaders.get(i);boolean shouldKeep = subAgg.updateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep) {_cfHeaders.remove(i);i--;}}}
| public void UpdateFormulasAfterCellShift(FormulaShifter shifter, int externSheetIndex){for (int i = 0; i < _cfHeaders.Count; i++){CFRecordsAggregate subAgg = (CFRecordsAggregate)_cfHeaders[i];bool shouldKeep = subAgg.UpdateFormulasAfterCellShift(shifter, externSheetIndex);if (!shouldKeep){_cfHeaders.RemoveAt(i);i--;}}}
|
3,831 | public void insertCell(CellValueRecordInterface cvRec) {_valuesAgg.insertCell(cvRec);}
| public void InsertCell(CellValueRecordInterface cvRec){_valuesAgg.InsertCell(cvRec);}
|
3,832 | public ShingleFilter create(TokenStream input) {ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.setOutputUnigrams(outputUnigrams);r.setOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.setTokenSeparator(tokenSeparator);r.setFillerToken(fillerToken);return r;}
| public override TokenStream Create(TokenStream input){ShingleFilter r = new ShingleFilter(input, minShingleSize, maxShingleSize);r.SetOutputUnigrams(outputUnigrams);r.SetOutputUnigramsIfNoShingles(outputUnigramsIfNoShingles);r.SetTokenSeparator(tokenSeparator);r.SetFillerToken(fillerToken);return r;}
|
3,833 | public SlopQueryNode(QueryNode query, int value) {if (query == null) {throw new QueryNodeError(new MessageImpl(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));}this.value = value;setLeaf(false);allocate();add(query);}
| public SlopQueryNode(IQueryNode query, int value){if (query == null){throw new QueryNodeError(new Message(QueryParserMessages.NODE_ACTION_NOT_SUPPORTED, "query", "null"));}this.value = value;IsLeaf = false;Allocate();Add(query);}
|
3,834 | public ReplaceRouteTableAssociationResult replaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request) {request = beforeClientExecution(request);return executeReplaceRouteTableAssociation(request);}
| public virtual ReplaceRouteTableAssociationResponse ReplaceRouteTableAssociation(ReplaceRouteTableAssociationRequest request){var options = new InvokeOptions();options.RequestMarshaller = ReplaceRouteTableAssociationRequestMarshaller.Instance;options.ResponseUnmarshaller = ReplaceRouteTableAssociationResponseUnmarshaller.Instance;return Invoke<ReplaceRouteTableAssociationResponse>(request, options);}
|
3,835 | public void setObjectIdFromRaw(byte[] bs, int p) {final int n = Constants.OBJECT_ID_LENGTH;System.arraycopy(bs, p, idBuffer(), idOffset(), n);}
| public virtual void SetObjectIdFromRaw(byte[] bs, int p){int n = Constants.OBJECT_ID_LENGTH;System.Array.Copy(bs, p, IdBuffer, IdOffset, n);}
|
3,836 | public ListTablesResult listTables(Integer limit) {return listTables(new ListTablesRequest().withLimit(limit));}
| public virtual ListTablesResponse ListTables(int limit){var request = new ListTablesRequest();request.Limit = limit;return ListTables(request);}
|
3,837 | public DeleteDeviceGroupRequest() {super("LinkFace", "2018-07-20", "DeleteDeviceGroup");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
| public DeleteDeviceGroupRequest(): base("LinkFace", "2018-07-20", "DeleteDeviceGroup"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
|
3,838 | public void addRecords(RecordStream rs) {while (true) {if (!readARecord(rs)) {break;}}}
| public void AddRecords(RecordStream rs){while (true){if (!ReadARecord(rs)){break;}}}
|
3,839 | public static Collection<String> getSupportedFunctionNames() {Collection<String> lst = new TreeSet<>();for (int i = 0; i < functions.length; i++) {Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.getFunctionByIndex(i);if (func != null && !(func instanceof NotImplementedFunction)) {lst.add(metaData.getName());}}lst.add("INDIRECT"); return Collections.unmodifiableCollection(lst);}
| public static ReadOnlyCollection<String> GetSupportedFunctionNames(){List<String> lst = new List<String>();for (int i = 0; i < functions.Length; i++){Function func = functions[i];FunctionMetadata metaData = FunctionMetadataRegistry.GetFunctionByIndex(i);if (func != null && !(func is NotImplementedFunction)){lst.Add(metaData.Name);}}lst.Add("INDIRECT"); return lst.AsReadOnly(); }
|
3,840 | public PendingTaskCount countPendingActivityTasks(CountPendingActivityTasksRequest request) {request = beforeClientExecution(request);return executeCountPendingActivityTasks(request);}
| public virtual CountPendingActivityTasksResponse CountPendingActivityTasks(CountPendingActivityTasksRequest request){var options = new InvokeOptions();options.RequestMarshaller = CountPendingActivityTasksRequestMarshaller.Instance;options.ResponseUnmarshaller = CountPendingActivityTasksResponseUnmarshaller.Instance;return Invoke<CountPendingActivityTasksResponse>(request, options);}
|
3,841 | public List<SegToken> process(String sentence) {SegGraph segGraph = createSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);List<SegToken> shortPath = biSegGraph.getShortPath();return shortPath;}
| public virtual IList<SegToken> Process(string sentence){SegGraph segGraph = CreateSegGraph(sentence);BiSegGraph biSegGraph = new BiSegGraph(segGraph);IList<SegToken> shortPath = biSegGraph.GetShortPath();return shortPath;}
|
3,842 | public Area3DPtg(AreaReference arearef, int externIdx) {super(arearef);setExternSheetIndex(externIdx);}
| public Area3DPtg(AreaReference arearef, int externIdx):base(arearef){ExternSheetIndex=(externIdx);}
|
3,843 | public EnableRuleResult enableRule(EnableRuleRequest request) {request = beforeClientExecution(request);return executeEnableRule(request);}
| public virtual EnableRuleResponse EnableRule(EnableRuleRequest request){var options = new InvokeOptions();options.RequestMarshaller = EnableRuleRequestMarshaller.Instance;options.ResponseUnmarshaller = EnableRuleResponseUnmarshaller.Instance;return Invoke<EnableRuleResponse>(request, options);}
|
3,844 | public static boolean equals(byte[] array1, byte[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (array1[i] != array2[i]) {return false;}}return true;}
| public static bool equals(byte[] array1, byte[] array2){if (array1 == array2){return true;}if (array1 == null || array2 == null || array1.Length != array2.Length){return false;}{for (int i = 0; i < array1.Length; i++){if (array1[i] != array2[i]){return false;}}}return true;}
|
3,845 | public boolean isExpectDataAfterPackFooter() {return expectDataAfterPackFooter;}
| public virtual bool IsExpectDataAfterPackFooter(){return expectDataAfterPackFooter;}
|
3,846 | public ListIncomingTypedLinksResult listIncomingTypedLinks(ListIncomingTypedLinksRequest request) {request = beforeClientExecution(request);return executeListIncomingTypedLinks(request);}
| public virtual ListIncomingTypedLinksResponse ListIncomingTypedLinks(ListIncomingTypedLinksRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListIncomingTypedLinksRequestMarshaller.Instance;options.ResponseUnmarshaller = ListIncomingTypedLinksResponseUnmarshaller.Instance;return Invoke<ListIncomingTypedLinksResponse>(request, options);}
|
3,847 | public void removeRevNumber() {remove1stProperty(PropertyIDMap.PID_REVNUMBER);}
| public void RemoveRevNumber(){MutableSection s = (MutableSection)FirstSection;s.RemoveProperty(PropertyIDMap.PID_REVNUMBER);}
|
3,848 | public DeleteMonitoringScheduleResult deleteMonitoringSchedule(DeleteMonitoringScheduleRequest request) {request = beforeClientExecution(request);return executeDeleteMonitoringSchedule(request);}
| public virtual DeleteMonitoringScheduleResponse DeleteMonitoringSchedule(DeleteMonitoringScheduleRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteMonitoringScheduleRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteMonitoringScheduleResponseUnmarshaller.Instance;return Invoke<DeleteMonitoringScheduleResponse>(request, options);}
|
3,849 | public synchronized boolean put(FacetLabel categoryPath, int ordinal) {boolean ret = cache.put(categoryPath, ordinal);if (ret) {cache.makeRoomLRU();}return ret;}
| public virtual bool Put(FacetLabel categoryPath, int ordinal){lock (this){bool ret = cache.Put(categoryPath, ordinal);if (ret){cache.MakeRoomLRU();}return ret;}}
|
3,850 | public void pushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex) {ParserRuleContext previous = _ctx;previous.parent = localctx;previous.invokingState = state;previous.stop = _input.LT(-1);_ctx = localctx;_ctx.start = previous.start;if (_buildParseTrees) {_ctx.addChild(previous);}if ( _parseListeners != null ) {triggerEnterRuleEvent(); }}
| public virtual void PushNewRecursionContext(ParserRuleContext localctx, int state, int ruleIndex){ParserRuleContext previous = _ctx;previous.Parent = localctx;previous.invokingState = state;previous.Stop = _input.LT(-1);_ctx = localctx;_ctx.Start = previous.Start;if (_buildParseTrees){_ctx.AddChild(previous);}if (_parseListeners != null){TriggerEnterRuleEvent();}}
|
3,851 | public Writer() {output = new ByteArrayOutputStream();}
| protected internal Writer(){@lock = this;}
|
3,852 | public String getSignerType() {return null;}
| public override string GetSignerType(){return null;}
|
3,853 | public void add(Ptg token) {if (token == null) {throw new IllegalArgumentException("token must not be null");}_ptgs[_offset] = token;_offset++;}
| public void Add(Ptg token){if (token == null){throw new ArgumentException("token must not be null");}_ptgs[_offset] = token;_offset++;}
|
3,854 | public Repository build() throws IOException {FileRepository repo = new FileRepository(setup());if (isMustExist() && !repo.getObjectDatabase().exists())throw new RepositoryNotFoundException(getGitDir());return repo;}
| public override FileRepository Build(){FileRepository repo = new FileRepository(Setup());if (IsMustExist() && !((ObjectDirectory)repo.ObjectDatabase).Exists()){throw new RepositoryNotFoundException(GetGitDir());}return repo;}
|
3,855 | public List<WeightedFragInfo> getWeightedFragInfoList( List<WeightedFragInfo> src ) {Collections.sort( src, new ScoreComparator() );return src;}
| public override IList<WeightedFragInfo> GetWeightedFragInfoList(IList<WeightedFragInfo> src){CollectionUtil.TimSort(src, new ScoreComparer());return src;}
|
3,856 | public String toString() {return "epsilon";}
| public override string ToString(){return "epsilon";}
|
3,857 | public DescribeDBLogFilesResult describeDBLogFiles(DescribeDBLogFilesRequest request) {request = beforeClientExecution(request);return executeDescribeDBLogFiles(request);}
| public virtual DescribeDBLogFilesResponse DescribeDBLogFiles(DescribeDBLogFilesRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDBLogFilesRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDBLogFilesResponseUnmarshaller.Instance;return Invoke<DescribeDBLogFilesResponse>(request, options);}
|
3,858 | public NoteRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_col = in.readShort();field_3_flags = in.readShort();field_4_shapeid = in.readUShort();int length = in.readShort();field_5_hasMultibyte = in.readByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.readUnicodeLE(in, length);} else {field_6_author = StringUtil.readCompressedUnicode(in, length);}if (in.available() == 1) {field_7_padding = Byte.valueOf(in.readByte());} else if (in.available() == 2 && length == 0) {field_7_padding = Byte.valueOf(in.readByte());in.readByte();}}
| public NoteRecord(RecordInputStream in1){field_1_row = in1.ReadShort();field_2_col = in1.ReadUShort();field_3_flags = in1.ReadShort();field_4_shapeid = in1.ReadUShort();int length = in1.ReadShort();field_5_hasMultibyte = in1.ReadByte() != 0x00;if (field_5_hasMultibyte) {field_6_author = StringUtil.ReadUnicodeLE(in1, length);} else {field_6_author = StringUtil.ReadCompressedUnicode(in1, length);}if (in1.Available() == 1) {field_7_padding = (byte)in1.ReadByte();}else if (in1.Available() == 2 && length == 0){field_7_padding = (byte)in1.ReadByte();in1.ReadByte();}}
|
3,859 | public CherryPickCommand setOurCommitName(String ourCommitName) {this.ourCommitName = ourCommitName;return this;}
| public virtual NGit.Api.CherryPickCommand SetOurCommitName(string ourCommitName){this.ourCommitName = ourCommitName;return this;}
|
3,860 | public GetCloudFormationStackRecordsResult getCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request) {request = beforeClientExecution(request);return executeGetCloudFormationStackRecords(request);}
| public virtual GetCloudFormationStackRecordsResponse GetCloudFormationStackRecords(GetCloudFormationStackRecordsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetCloudFormationStackRecordsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetCloudFormationStackRecordsResponseUnmarshaller.Instance;return Invoke<GetCloudFormationStackRecordsResponse>(request, options);}
|
3,861 | public XPathTokenAnywhereElement(String tokenName, int tokenType) {super(tokenName);this.tokenType = tokenType;}
| public XPathTokenAnywhereElement(string tokenName, int tokenType): base(tokenName){this.tokenType = tokenType;}
|
3,862 | public boolean isExpired() {long now = System.currentTimeMillis();return now >= expiration - refreshIntervalInMillSeconds;}
| public bool IsExpired(){return refreshIntervalInMillSeconds * 1000 * 10 >= RemainTicks();}
|
3,863 | public ListDetectorsResult listDetectors(ListDetectorsRequest request) {request = beforeClientExecution(request);return executeListDetectors(request);}
| public virtual ListDetectorsResponse ListDetectors(ListDetectorsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDetectorsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDetectorsResponseUnmarshaller.Instance;return Invoke<ListDetectorsResponse>(request, options);}
|
3,864 | public void add(int index, T element) {if (index == size) {add(element);} else if (index < 0 || size < index) {throw new IndexOutOfBoundsException(String.valueOf(index));} else {add(null); for (int oldIdx = size - 2; index <= oldIdx; oldIdx--)set(oldIdx + 1, get(oldIdx));set(index, element);}}
| public override void Add(int index, T element){if (index == size){AddItem(element);}else{if (index < 0 || size < index){throw new IndexOutOfRangeException(index.ToString());}else{AddItem(default(T));for (int oldIdx = size - 2; index <= oldIdx; oldIdx--){Set(oldIdx + 1, this[oldIdx]);}Set(index, element);}}}
|
3,865 | public static int intersect(CellRangeAddress crA, CellRangeAddress crB ){int firstRow = crB.getFirstRow();int lastRow = crB.getLastRow();int firstCol = crB.getFirstColumn();int lastCol = crB.getLastColumn();if (gt(crA.getFirstRow(), lastRow) || lt(crA.getLastRow(), firstRow) ||gt(crA.getFirstColumn(), lastCol) || lt(crA.getLastColumn(), firstCol)){return NO_INTERSECTION;}else if( contains(crA, crB) ){return INSIDE;}else if( contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}
| public static int Intersect(CellRangeAddress crA, CellRangeAddress crB){int firstRow = crB.FirstRow;int lastRow = crB.LastRow;int firstCol = crB.FirstColumn;int lastCol = crB.LastColumn;if(gt(crA.FirstRow, lastRow) ||lt(crA.LastRow, firstRow) ||gt(crA.FirstColumn, lastCol) ||lt(crA.LastColumn, firstCol)){return NO_INTERSECTION;}else if (Contains(crA, crB)){return INSIDE;}else if (Contains(crB, crA)){return ENCLOSES;}else{return OVERLAP;}}
|
3,866 | public short getXFAt(int coffset) {return _xfs[coffset];}
| public short GetXFAt(int coffset){return _xfs[coffset];}
|
3,867 | public static final boolean isId(@Nullable String id) {if (id == null) {return false;}if (id.length() != Constants.OBJECT_ID_STRING_LENGTH)return false;try {for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++) {RawParseUtils.parseHexInt4((byte) id.charAt(i));}return true;} catch (ArrayIndexOutOfBoundsException e) {return false;}}
| public static bool IsId(string id){if (id.Length != Constants.OBJECT_ID_STRING_LENGTH){return false;}try{for (int i = 0; i < Constants.OBJECT_ID_STRING_LENGTH; i++){RawParseUtils.ParseHexInt4(unchecked((byte)id[i]));}return true;}catch (IndexOutOfRangeException){return false;}}
|
3,868 | @Override public boolean isEmpty() {return countMap.isEmpty();}
| public override bool isEmpty(){return this._enclosing._size == 0;}
|
3,869 | public ByteVector(byte[] a, int capacity) {if (capacity > 0) {blockSize = capacity;} else {blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}
| public ByteVector(byte[] a, int capacity){if (capacity > 0){blockSize = capacity;}else{blockSize = DEFAULT_BLOCK_SIZE;}array = a;n = 0;}
|
3,870 | public void write(int oneByte) throws IOException {write(new byte[] { (byte) oneByte }, 0, 1);}
| public override void write(int oneByte){throw new System.NotImplementedException();}
|
3,871 | public SegmentCommitInfo info(int i) {return segments.get(i);}
| public SegmentCommitInfo Info(int i) {return segments[i];}
|
3,872 | public ListDistributionsByWebACLIdResult listDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request) {request = beforeClientExecution(request);return executeListDistributionsByWebACLId(request);}
| public virtual ListDistributionsByWebACLIdResponse ListDistributionsByWebACLId(ListDistributionsByWebACLIdRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListDistributionsByWebACLIdRequestMarshaller.Instance;options.ResponseUnmarshaller = ListDistributionsByWebACLIdResponseUnmarshaller.Instance;return Invoke<ListDistributionsByWebACLIdResponse>(request, options);}
|
3,873 | public void serialize(LittleEndianOutput out) {out.writeShort(rt);out.writeShort(grbitFrt);out.writeShort(iObjectKind);out.writeShort(iObjectContext);out.writeShort(iObjectInstance1);out.writeShort(iObjectInstance2);}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(rt);out1.WriteShort(grbitFrt);out1.WriteShort(iObjectKind);out1.WriteShort(iObjectContext);out1.WriteShort(iObjectInstance1);out1.WriteShort(iObjectInstance2);}
|
3,874 | public CreateDeliveryStreamResult createDeliveryStream(CreateDeliveryStreamRequest request) {request = beforeClientExecution(request);return executeCreateDeliveryStream(request);}
| public virtual CreateDeliveryStreamResponse CreateDeliveryStream(CreateDeliveryStreamRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeliveryStreamRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeliveryStreamResponseUnmarshaller.Instance;return Invoke<CreateDeliveryStreamResponse>(request, options);}
|
3,875 | public ResetDBParameterGroupResult resetDBParameterGroup(ResetDBParameterGroupRequest request) {request = beforeClientExecution(request);return executeResetDBParameterGroup(request);}
| public virtual ResetDBParameterGroupResponse ResetDBParameterGroup(ResetDBParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetDBParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetDBParameterGroupResponseUnmarshaller.Instance;return Invoke<ResetDBParameterGroupResponse>(request, options);}
|
3,876 | public DescribeDocumentClassificationJobResult describeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request) {request = beforeClientExecution(request);return executeDescribeDocumentClassificationJob(request);}
| public virtual DescribeDocumentClassificationJobResponse DescribeDocumentClassificationJob(DescribeDocumentClassificationJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeDocumentClassificationJobRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeDocumentClassificationJobResponseUnmarshaller.Instance;return Invoke<DescribeDocumentClassificationJobResponse>(request, options);}
|
3,877 | public DescribeSecurityGroupsResult describeSecurityGroups(DescribeSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeSecurityGroups(request);}
| public virtual DescribeSecurityGroupsResponse DescribeSecurityGroups(DescribeSecurityGroupsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeSecurityGroupsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeSecurityGroupsResponseUnmarshaller.Instance;return Invoke<DescribeSecurityGroupsResponse>(request, options);}
|
3,878 | public UpdateTrafficPolicyInstanceResult updateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyInstance(request);}
| public virtual UpdateTrafficPolicyInstanceResponse UpdateTrafficPolicyInstance(UpdateTrafficPolicyInstanceRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateTrafficPolicyInstanceRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateTrafficPolicyInstanceResponseUnmarshaller.Instance;return Invoke<UpdateTrafficPolicyInstanceResponse>(request, options);}
|
3,879 | public BinaryHunk getForwardBinaryHunk() {return forwardBinaryHunk;}
| public virtual BinaryHunk GetForwardBinaryHunk(){return forwardBinaryHunk;}
|
3,880 | public static ByteBuffer allocateDirect(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}return new ReadWriteDirectByteBuffer(capacity);}
| public static java.nio.ByteBuffer allocateDirect(int capacity_1){if (capacity_1 < 0){throw new System.ArgumentException();}return new java.nio.ReadWriteHeapByteBuffer(capacity_1);}
|
3,881 | public void drawString(String str, int x, int y){if (str == null || str.isEmpty())return;Font excelFont = font;if ( font.getName().equals( "SansSerif" ) ){excelFont = new Font( "Arial", font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ) );}else{excelFont = new Font( font.getName(), font.getStyle(), (int) ( font.getSize() / verticalPixelsPerPoint ));}FontDetails d = StaticFontMetrics.getFontDetails( excelFont );int width = d.getStringWidth( str ) * 8 + 12;int height = (int) ( ( font.getSize() / verticalPixelsPerPoint ) + 6 ) * 2;y -= ( font.getSize() / verticalPixelsPerPoint ) + 2 * verticalPixelsPerPoint; HSSFTextbox textbox = escherGroup.createTextbox( new HSSFChildAnchor( x, y, x + width, y + height ) );textbox.setNoFill( true );textbox.setLineStyle( HSSFShape.LINESTYLE_NONE );HSSFRichTextString s = new HSSFRichTextString( str );HSSFFont hssfFont = matchFont( excelFont );s.applyFont( hssfFont );textbox.setString( s );}
| public void DrawString(String str, int x, int y){if (string.IsNullOrEmpty(str))return;using (Font excelFont = new Font(font.Name.Equals("SansSerif") ? "Arial" : font.Name, (int)(font.Size / verticalPixelsPerPoint), font.Style)){FontDetails d = StaticFontMetrics.GetFontDetails(excelFont);int width = (int)((d.GetStringWidth(str) * 8) + 12);int height = (int)((font.Size / verticalPixelsPerPoint) + 6) * 2;y -= Convert.ToInt32((font.Size / verticalPixelsPerPoint) + 2 * verticalPixelsPerPoint); HSSFTextbox textbox = escherGroup.CreateTextbox(new HSSFChildAnchor(x, y, x + width, y + height));textbox.IsNoFill = (true);textbox.LineStyle = LineStyle.None;HSSFRichTextString s = new HSSFRichTextString(str);HSSFFont hssfFont = MatchFont(excelFont);s.ApplyFont(hssfFont);textbox.String = (s);}}
|
3,882 | public Query makeLuceneQueryFieldNoBoost(String fieldName, BasicQueryFactory qf) {List<Query> luceneSubQueries = makeLuceneSubQueriesField(fieldName, qf);BooleanQuery.Builder bq = new BooleanQuery.Builder();bq.add( luceneSubQueries.get(0), BooleanClause.Occur.MUST);SrndBooleanQuery.addQueriesToBoolean(bq,luceneSubQueries.subList(1, luceneSubQueries.size()),BooleanClause.Occur.MUST_NOT);return bq.build();}
| public override Search.Query MakeLuceneQueryFieldNoBoost(string fieldName, BasicQueryFactory qf){var luceneSubQueries = MakeLuceneSubQueriesField(fieldName, qf);BooleanQuery bq = new BooleanQuery();bq.Add(luceneSubQueries.FirstOrDefault(), Occur.MUST);SrndBooleanQuery.AddQueriesToBoolean(bq,luceneSubQueries.Skip(1).ToList(),Occur.MUST_NOT);return bq;}
|
3,883 | public void reset(byte[] treeData) {attributesNode = null;raw = treeData;prevPtr = -1;currPtr = 0;if (eof())nextPtr = 0;elseparseEntry();}
| public virtual void Reset(byte[] treeData){raw = treeData;prevPtr = -1;currPtr = 0;if (Eof){nextPtr = 0;}else{ParseEntry();}}
|
3,884 | public void serialize(LittleEndianOutput out) {out.writeShort(field_1_save_link_values);}
| public override void Serialize(ILittleEndianOutput out1){out1.WriteShort(field_1_save_link_values);}
|
3,885 | public static Boolean toBooleanOrNull(String stringValue) {if (stringValue == null)return null;if (equalsIgnoreCase("yes", stringValue) || equalsIgnoreCase("true", stringValue) || equalsIgnoreCase("1", stringValue) || equalsIgnoreCase("on", stringValue)) return Boolean.TRUE;else if (equalsIgnoreCase("no", stringValue) || equalsIgnoreCase("false", stringValue) || equalsIgnoreCase("0", stringValue) || equalsIgnoreCase("off", stringValue)) return Boolean.FALSE;elsereturn null;}
| public static bool? ToBooleanOrNull(string stringValue){if (stringValue == null){return null;}if (EqualsIgnoreCase("yes", stringValue) || EqualsIgnoreCase("true", stringValue)|| EqualsIgnoreCase("1", stringValue) || EqualsIgnoreCase("on", stringValue)){return true;}else{if (EqualsIgnoreCase("no", stringValue) || EqualsIgnoreCase("false", stringValue)|| EqualsIgnoreCase("0", stringValue) || EqualsIgnoreCase("off", stringValue)){return false;}else{return null;}}}
|
3,886 | public RevObject lookupOrNull(AnyObjectId id) {return objects.get(id);}
| public virtual RevObject LookupOrNull(AnyObjectId id){return objects.Get(id);}
|
3,887 | public void cloneStyleFrom(FontRecord source) {field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_super_sub_script = source.field_5_super_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}
| public void CloneStyleFrom(FontRecord source){field_1_font_height = source.field_1_font_height;field_2_attributes = source.field_2_attributes;field_3_color_palette_index = source.field_3_color_palette_index;field_4_bold_weight = source.field_4_bold_weight;field_5_base_sub_script = source.field_5_base_sub_script;field_6_underline = source.field_6_underline;field_7_family = source.field_7_family;field_8_charset = source.field_8_charset;field_9_zero = source.field_9_zero;field_11_font_name = source.field_11_font_name;}
|
3,888 | public BrazilianStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public BrazilianStemFilterFactory(IDictionary<string, string> args) : base(args){if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
3,889 | public static byte lookupCharacterClass(String characterClassName) {return (byte) CharacterClass.valueOf(characterClassName).ordinal();}
| public static byte LookupCharacterClass(string characterClassName){return (byte)Enum.Parse(typeof(CharacterClass), characterClassName, true);}
|
3,890 | public ArrayList(int capacity) {if (capacity < 0) {throw new IllegalArgumentException();}array = (capacity == 0 ? EmptyArray.OBJECT : new Object[capacity]);}
| public ArrayList(int capacity){if (capacity < 0){throw new System.ArgumentException();}array = (capacity == 0 ? libcore.util.EmptyArray.OBJECT : new object[capacity]);}
|
3,891 | public CreateHumanTaskUiResult createHumanTaskUi(CreateHumanTaskUiRequest request) {request = beforeClientExecution(request);return executeCreateHumanTaskUi(request);}
| public virtual CreateHumanTaskUiResponse CreateHumanTaskUi(CreateHumanTaskUiRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHumanTaskUiRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHumanTaskUiResponseUnmarshaller.Instance;return Invoke<CreateHumanTaskUiResponse>(request, options);}
|
3,892 | public GetSoftwareUpdatesResult getSoftwareUpdates(GetSoftwareUpdatesRequest request) {request = beforeClientExecution(request);return executeGetSoftwareUpdates(request);}
| public virtual GetSoftwareUpdatesResponse GetSoftwareUpdates(GetSoftwareUpdatesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetSoftwareUpdatesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetSoftwareUpdatesResponseUnmarshaller.Instance;return Invoke<GetSoftwareUpdatesResponse>(request, options);}
|
3,893 | public NamePtg createPtg() {return new NamePtg(_index);}
| public NamePtg CreatePtg(){return new NamePtg(_index);}
|
3,894 | public ListFlowDefinitionsResult listFlowDefinitions(ListFlowDefinitionsRequest request) {request = beforeClientExecution(request);return executeListFlowDefinitions(request);}
| public virtual ListFlowDefinitionsResponse ListFlowDefinitions(ListFlowDefinitionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListFlowDefinitionsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListFlowDefinitionsResponseUnmarshaller.Instance;return Invoke<ListFlowDefinitionsResponse>(request, options);}
|
3,895 | public LittleEndianOutput createDelayedOutput(int size) {checkPosition(size);LittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}
| public ILittleEndianOutput CreateDelayedOutput(int size){CheckPosition(size);ILittleEndianOutput result = new LittleEndianByteArrayOutputStream(_buf, _writeIndex, size);_writeIndex += size;return result;}
|
3,896 | public long get(int index) {return current.get(index);}
| public override long Get(int index){return current.Get(index);}
|
3,897 | public StemmerOverrideFilterFactory(Map<String,String> args) {super(args);dictionaryFiles = get(args, "dictionary");ignoreCase = getBoolean(args, "ignoreCase", false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
| public StemmerOverrideFilterFactory(IDictionary<string, string> args): base(args){dictionaryFiles = Get(args, "dictionary");ignoreCase = GetBoolean(args, "ignoreCase", false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}
|
3,898 | public long get(int index) {final int o = index / 12;final int b = index % 12;final int shift = b * 5;return (blocks[o] >>> shift) & 31L;}
| public override long Get(int index){int o = index / 12;int b = index % 12;int shift = b * 5;return ((long)((ulong)blocks[o] >> shift)) & 31L;}
|
3,899 | public DeleteDeploymentGroupResult deleteDeploymentGroup(DeleteDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeDeleteDeploymentGroup(request);}
| public virtual DeleteDeploymentGroupResponse DeleteDeploymentGroup(DeleteDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteDeploymentGroupResponseUnmarshaller.Instance;return Invoke<DeleteDeploymentGroupResponse>(request, options);}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.