id
int32
0
10.3k
java
stringlengths
29
1.4k
cs
stringlengths
28
1.38k
6,200
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex) {Date now = new Date(System.currentTimeMillis());return new NumberEval(DateUtil.getExcelDate(now));}
public override ValueEval Evaluate(int srcRowIndex, int srcColumnIndex){return new NumberEval(DateUtil.GetExcelDate(DateTime.Now));}
6,201
public static int idealIntArraySize(int need) {return idealByteArraySize(need * 4) / 4;}
public static int idealIntArraySize(int need){return idealByteArraySize(need * 4) / 4;}
6,202
public long record(IndexSearcher searcher) throws IOException {ensureOpen();final long version = ((DirectoryReader) searcher.getIndexReader()).getVersion();SearcherTracker tracker = searchers.get(version);if (tracker == null) {tracker = new SearcherTracker(searcher);if (searchers.putIfAbsent(version, tracker) != null) {tracker.close();}} else if (tracker.searcher != searcher) {throw new IllegalArgumentException("the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=" + searcher + " vs old=" + tracker.searcher);}return version;}
public virtual long Record(IndexSearcher searcher){EnsureOpen();var version = ((DirectoryReader)searcher.IndexReader).Version;var factoryMethodCalled = false;var tracker = _searchers.GetOrAdd(version, l => new Lazy<SearcherTracker>(() => { factoryMethodCalled = true; return new SearcherTracker(searcher); })).Value;if (!factoryMethodCalled && tracker.Searcher != searcher){throw new ArgumentException("the provided searcher has the same underlying reader version yet the searcher instance differs from before (new=" + searcher + " vs old=" + tracker.Searcher);}return version;}
6,203
public ClassifyDocumentResult classifyDocument(ClassifyDocumentRequest request) {request = beforeClientExecution(request);return executeClassifyDocument(request);}
public virtual ClassifyDocumentResponse ClassifyDocument(ClassifyDocumentRequest request){var options = new InvokeOptions();options.RequestMarshaller = ClassifyDocumentRequestMarshaller.Instance;options.ResponseUnmarshaller = ClassifyDocumentResponseUnmarshaller.Instance;return Invoke<ClassifyDocumentResponse>(request, options);}
6,204
public GetIdentityPoolRolesResult getIdentityPoolRoles(GetIdentityPoolRolesRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolRoles(request);}
public virtual GetIdentityPoolRolesResponse GetIdentityPoolRoles(GetIdentityPoolRolesRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIdentityPoolRolesRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIdentityPoolRolesResponseUnmarshaller.Instance;return Invoke<GetIdentityPoolRolesResponse>(request, options);}
6,205
public CharSequence subSequence(int start, int end) {int newLength = end - start;return new UnescapedCharSequence(this.chars, this.wasEscaped, start,newLength);}
public ICharSequence Subsequence(int startIndex, int length){return new UnescapedCharSequence(this.chars, this.wasEscaped, startIndex,length);}
6,206
public CreateDeploymentGroupResult createDeploymentGroup(CreateDeploymentGroupRequest request) {request = beforeClientExecution(request);return executeCreateDeploymentGroup(request);}
public virtual CreateDeploymentGroupResponse CreateDeploymentGroup(CreateDeploymentGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateDeploymentGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateDeploymentGroupResponseUnmarshaller.Instance;return Invoke<CreateDeploymentGroupResponse>(request, options);}
6,207
public String toString() {StringBuilder r = new StringBuilder();r.append("Tag");r.append("={\n");r.append("object ");r.append(object != null ? object.name() : "NOT_SET");r.append("\n");r.append("type ");r.append(object != null ? Constants.typeString(type) : "NOT_SET");r.append("\n");r.append("tag ");r.append(tag != null ? tag : "NOT_SET");r.append("\n");if (tagger != null) {r.append("tagger ");r.append(tagger);r.append("\n");}r.append("\n");r.append(message != null ? message : "");r.append("}");return r.toString();}
public override string ToString(){StringBuilder r = new StringBuilder();r.Append("Tag");r.Append("={\n");r.Append("object ");r.Append(@object != null ? @object.Name : "NOT_SET");r.Append("\n");r.Append("type ");r.Append(@object != null ? Constants.TypeString(type) : "NOT_SET");r.Append("\n");r.Append("tag ");r.Append(tag != null ? tag : "NOT_SET");r.Append("\n");if (tagger != null){r.Append("tagger ");r.Append(tagger);r.Append("\n");}r.Append("\n");r.Append(message != null ? message : string.Empty);r.Append("}");return r.ToString();}
6,208
public ET next() {if (expectedModCount == list.modCount) {if (hasNext()) {link = link.previous;canRemove = true;return link.data;}throw new NoSuchElementException();}throw new ConcurrentModificationException();}
public virtual ET next(){if (this.expectedModCount == this.list.modCount){if (this.hasNext()){this.link = this.link.previous;this.canRemove = true;return this.link.data;}throw new java.util.NoSuchElementException();}throw new java.util.ConcurrentModificationException();}
6,209
public boolean contains(Object needle) {if (needle instanceof String) {String n = (String) needle;return names.containsKey(n)|| names.containsKey(StringUtils.toLowerCase(n));}return false;}
public override bool Contains(object needle){if (needle is string){string n = (string)needle;return names.ContainsKey(n) || names.ContainsKey(StringUtils.ToLowerCase(n));}return false;}
6,210
public int set(final int holder){return holder | _mask;}
public int Set(int holder){return (holder | this._mask);}
6,211
public void setContext(int lineCount) {if (lineCount < 0)throw new IllegalArgumentException(JGitText.get().contextMustBeNonNegative);context = lineCount;}
public virtual void SetContext(int lineCount){if (lineCount < 0){throw new ArgumentException(JGitText.Get().contextMustBeNonNegative);}context = lineCount;}
6,212
public String getPath(Side side) {return side == Side.OLD ? getOldPath() : getNewPath();}
public virtual string GetPath(DiffEntry.Side side){return side == DiffEntry.Side.OLD ? GetOldPath() : GetNewPath();}
6,213
public DescribeAccessPointsResult describeAccessPoints(DescribeAccessPointsRequest request) {request = beforeClientExecution(request);return executeDescribeAccessPoints(request);}
public virtual DescribeAccessPointsResponse DescribeAccessPoints(DescribeAccessPointsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeAccessPointsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeAccessPointsResponseUnmarshaller.Instance;return Invoke<DescribeAccessPointsResponse>(request, options);}
6,214
public StringBuilder deleteCharAt(int index) {deleteCharAt0(index);return this;}
public java.lang.StringBuilder deleteCharAt(int index){deleteCharAt0(index);return this;}
6,215
public int addSSTString(UnicodeString string) {LOG.log(DEBUG, "insert to sst string='", string);if (sst == null) {insertSST();}return sst.addString(string);}
public int AddSSTString(UnicodeString str){if (sst == null){InsertSST();}return sst.AddString(str);}
6,216
public String outputToString(TermData data) {return data.toString();}
public override string OutputToString(TermData data){return data.ToString();}
6,217
public List<HSSFObjectData> getAllEmbeddedObjects(){List<HSSFObjectData> objects = new ArrayList<>();for (HSSFSheet sheet : _sheets){getAllEmbeddedObjects(sheet, objects);}return Collections.unmodifiableList(objects);}
public IList<HSSFObjectData> GetAllEmbeddedObjects(){List<HSSFObjectData> objects = new List<HSSFObjectData>();for (int i = 0; i < NumberOfSheets; i++){GetAllEmbeddedObjects((HSSFSheet)GetSheetAt(i), objects);}return objects;}
6,218
public DisableDirectoryResult disableDirectory(DisableDirectoryRequest request) {request = beforeClientExecution(request);return executeDisableDirectory(request);}
public virtual DisableDirectoryResponse DisableDirectory(DisableDirectoryRequest request){var options = new InvokeOptions();options.RequestMarshaller = DisableDirectoryRequestMarshaller.Instance;options.ResponseUnmarshaller = DisableDirectoryResponseUnmarshaller.Instance;return Invoke<DisableDirectoryResponse>(request, options);}
6,219
public UpdateApiMappingResult updateApiMapping(UpdateApiMappingRequest request) {request = beforeClientExecution(request);return executeUpdateApiMapping(request);}
public virtual UpdateApiMappingResponse UpdateApiMapping(UpdateApiMappingRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateApiMappingRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateApiMappingResponseUnmarshaller.Instance;return Invoke<UpdateApiMappingResponse>(request, options);}
6,220
public StringBuffer insert(int index, boolean b) {return insert(index, b ? "true" : "false");}
public java.lang.StringBuffer insert(int index, bool b){return insert(index, b ? "true" : "false");}
6,221
public UpdateConfigurationResult updateConfiguration(UpdateConfigurationRequest request) {request = beforeClientExecution(request);return executeUpdateConfiguration(request);}
public virtual UpdateConfigurationResponse UpdateConfiguration(UpdateConfigurationRequest request){var options = new InvokeOptions();options.RequestMarshaller = UpdateConfigurationRequestMarshaller.Instance;options.ResponseUnmarshaller = UpdateConfigurationResponseUnmarshaller.Instance;return Invoke<UpdateConfigurationResponse>(request, options);}
6,222
public synchronized StringBuffer replace(int start, int end, String string) {replace0(start, end, string);return this;}
public java.lang.StringBuffer replace(int start, int end, string @string){lock (this){replace0(start, end, @string);return this;}}
6,223
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 = 60; shift >= 0; shift -= 4) {values[valuesOffset++] = (int) ((block >>> shift) & 15);}}}
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 = 60; shift >= 0; shift -= 4){values[valuesOffset++] = (int)(((long)((ulong)block >> shift)) & 15);}}}
6,224
public synchronized void print(String str) {if (out == null) {setError();return;}if (str == null) {print("null");return;}try {if (encoding == null) {write(str.getBytes());} else {write(str.getBytes(encoding));}} catch (IOException e) {setError();}}
public virtual void print(string str){lock (this){if (@out == null){setError();return;}if (str == null){print("null");return;}try{if (encoding == null){write(Sharpen.StringHelper.GetBytesForString(str));}else{write(Sharpen.StringHelper.GetBytesForString(str, encoding));}}catch (System.IO.IOException){setError();}}}
6,225
@Override public E set(int index, E object) {synchronized (CopyOnWriteArrayList.this) {slice.checkElementIndex(index);slice.checkConcurrentModification(elements);E result = CopyOnWriteArrayList.this.set(index + slice.from, object);slice = new Slice(elements, slice.from, slice.to);return result;}}
public virtual E set(int index, E e){lock (this){object[] newElements = (object[])elements.Clone();E result = (E)newElements[index];newElements[index] = e;elements = newElements;return result;}}
6,226
public static void fill(Object[] array, int start, int end, Object value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
public static void fill(object[] array, int start, int end, object value){java.util.Arrays.checkStartAndEnd(array.Length, start, end);{for (int i = start; i < end; i++){array[i] = value;}}}
6,227
public short checkExternSheet(int firstSheetNumber, int lastSheetNumber){return (short)getOrCreateLinkTable().checkExternSheet(firstSheetNumber, lastSheetNumber);}
public short checkExternSheet(int firstSheetNumber, int lastSheetNumber){return (short)OrCreateLinkTable.CheckExternSheet(firstSheetNumber, lastSheetNumber);}
6,228
public DeleteClusterParameterGroupResult deleteClusterParameterGroup(DeleteClusterParameterGroupRequest request) {request = beforeClientExecution(request);return executeDeleteClusterParameterGroup(request);}
public virtual DeleteClusterParameterGroupResponse DeleteClusterParameterGroup(DeleteClusterParameterGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteClusterParameterGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteClusterParameterGroupResponseUnmarshaller.Instance;return Invoke<DeleteClusterParameterGroupResponse>(request, options);}
6,229
public GetTemplateResult getTemplate(GetTemplateRequest request) {request = beforeClientExecution(request);return executeGetTemplate(request);}
public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetTemplateRequestMarshaller.Instance;options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance;return Invoke<GetTemplateResponse>(request, options);}
6,230
public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {throw new ReadOnlyBufferException();}
public override java.nio.ByteBuffer put(byte[] src, int srcOffset, int byteCount){throw new java.nio.ReadOnlyBufferException();}
6,231
public Note call() throws GitAPIException {checkCallable();NoteMap map = NoteMap.newEmptyMap();RevCommit notesCommit = null;try (RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.newObjectInserter()) {Ref ref = repo.findRef(notesRef);if (ref != null) {notesCommit = walk.parseCommit(ref.getObjectId());map = NoteMap.read(walk.getObjectReader(), notesCommit);}map.set(id, message, inserter);commitNoteMap(repo, notesRef, walk, map, notesCommit, inserter,"Notes added by 'git notes add'"); return map.getNote(id);} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}}
public override Note Call(){CheckCallable();RevWalk walk = new RevWalk(repo);ObjectInserter inserter = repo.NewObjectInserter();NoteMap map = NoteMap.NewEmptyMap();RevCommit notesCommit = null;try{Ref @ref = repo.GetRef(notesRef);if (@ref != null){notesCommit = walk.ParseCommit(@ref.GetObjectId());map = NoteMap.Read(walk.GetObjectReader(), notesCommit);}map.Set(id, message, inserter);CommitNoteMap(walk, map, notesCommit, inserter, "Notes added by 'git notes add'");return map.GetNote(id);}catch (IOException e){throw new JGitInternalException(e.Message, e);}finally{inserter.Release();walk.Release();}}
6,232
public DeleteNodegroupResult deleteNodegroup(DeleteNodegroupRequest request) {request = beforeClientExecution(request);return executeDeleteNodegroup(request);}
public virtual DeleteNodegroupResponse DeleteNodegroup(DeleteNodegroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = DeleteNodegroupRequestMarshaller.Instance;options.ResponseUnmarshaller = DeleteNodegroupResponseUnmarshaller.Instance;return Invoke<DeleteNodegroupResponse>(request, options);}
6,233
public final boolean hasRemaining() {return position < limit;}
public bool hasRemaining(){return _position < _limit;}
6,234
public final int compareTo(AnyObjectId other) {if (this == other)return 0;int cmp;cmp = NB.compareUInt32(w1, other.w1);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w2, other.w2);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w3, other.w3);if (cmp != 0)return cmp;cmp = NB.compareUInt32(w4, other.w4);if (cmp != 0)return cmp;return NB.compareUInt32(w5, other.w5);}
public int CompareTo(AnyObjectId other){if (this == other){return 0;}int cmp;cmp = NB.CompareUInt32(w1, other.w1);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w2, other.w2);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w3, other.w3);if (cmp != 0){return cmp;}cmp = NB.CompareUInt32(w4, other.w4);if (cmp != 0){return cmp;}return NB.CompareUInt32(w5, other.w5);}
6,235
public static IntBuffer wrap(int[] array) {return wrap(array, 0, array.length);}
public static java.nio.IntBuffer wrap(int[] array_1){return wrap(array_1, 0, array_1.Length);}
6,236
public ObjectId getNewId() {return newId;}
public virtual ObjectId GetNewId(){return newId;}
6,237
public DescribeBrokerInstanceOptionsResult describeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request) {request = beforeClientExecution(request);return executeDescribeBrokerInstanceOptions(request);}
public virtual DescribeBrokerInstanceOptionsResponse DescribeBrokerInstanceOptions(DescribeBrokerInstanceOptionsRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeBrokerInstanceOptionsRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeBrokerInstanceOptionsResponseUnmarshaller.Instance;return Invoke<DescribeBrokerInstanceOptionsResponse>(request, options);}
6,238
public GetDASHStreamingSessionURLResult getDASHStreamingSessionURL(GetDASHStreamingSessionURLRequest request) {request = beforeClientExecution(request);return executeGetDASHStreamingSessionURL(request);}
public virtual GetDASHStreamingSessionURLResponse GetDASHStreamingSessionURL(GetDASHStreamingSessionURLRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetDASHStreamingSessionURLRequestMarshaller.Instance;options.ResponseUnmarshaller = GetDASHStreamingSessionURLResponseUnmarshaller.Instance;return Invoke<GetDASHStreamingSessionURLResponse>(request, options);}
6,239
public CancelJobResult cancelJob(CancelJobRequest request) {request = beforeClientExecution(request);return executeCancelJob(request);}
public virtual CancelJobResponse CancelJob(CancelJobRequest request){var options = new InvokeOptions();options.RequestMarshaller = CancelJobRequestMarshaller.Instance;options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance;return Invoke<CancelJobResponse>(request, options);}
6,240
public ListExperimentsResult listExperiments(ListExperimentsRequest request) {request = beforeClientExecution(request);return executeListExperiments(request);}
public virtual ListExperimentsResponse ListExperiments(ListExperimentsRequest request){var options = new InvokeOptions();options.RequestMarshaller = ListExperimentsRequestMarshaller.Instance;options.ResponseUnmarshaller = ListExperimentsResponseUnmarshaller.Instance;return Invoke<ListExperimentsResponse>(request, options);}
6,241
public CreateSubnetGroupResult createSubnetGroup(CreateSubnetGroupRequest request) {request = beforeClientExecution(request);return executeCreateSubnetGroup(request);}
public virtual CreateSubnetGroupResponse CreateSubnetGroup(CreateSubnetGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateSubnetGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateSubnetGroupResponseUnmarshaller.Instance;return Invoke<CreateSubnetGroupResponse>(request, options);}
6,242
public String toString() { return "scorer(" + weight + ")[" + super.toString() + "]"; }
public override string ToString(){return "scorer(" + m_weight + ")";}
6,243
public Executor getExecutor() {return executor;}
public virtual Executor GetExecutor(){return executor;}
6,244
public void write(LittleEndianOutput out) {throw invalid();}
public override void Write(ILittleEndianOutput out1){throw Invalid();}
6,245
public StandardQueryParser(Analyzer analyzer) {this();this.setAnalyzer(analyzer);}
public StandardQueryParser(Analyzer analyzer): this(){this.Analyzer = analyzer;}
6,246
public IndexedUDFFinder(UDFFinder... usedToolPacks) {super(usedToolPacks);_funcMap = new HashMap<>();}
public IndexedUDFFinder(params UDFFinder[] usedToolPacks): base(usedToolPacks){_funcMap = new Dictionary<int, String>();}
6,247
public static int countMatchingCellsInRef(RefEval refEval, I_MatchPredicate criteriaPredicate) {int result = 0;final int firstSheetIndex = refEval.getFirstSheetIndex();final int lastSheetIndex = refEval.getLastSheetIndex();for (int sIx = firstSheetIndex; sIx <= lastSheetIndex; sIx++) {ValueEval ve = refEval.getInnerValueEval(sIx);if(criteriaPredicate.matches(ve)) {result++;}}return result;}
public static int CountMatchingCellsInRef(RefEval refEval, IMatchPredicate criteriaPredicate){int result = 0;for (int sIx = refEval.FirstSheetIndex; sIx <= refEval.LastSheetIndex; sIx++){ValueEval ve = refEval.GetInnerValueEval(sIx);if (criteriaPredicate.Matches(ve)){result++;}}return result;}
6,248
public NameXPxg(int externalWorkbookNumber, String sheetName, String nameName) {this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;this.nameName = nameName;}
public NameXPxg(int externalWorkbookNumber, String sheetName, String nameName){this.externalWorkbookNumber = externalWorkbookNumber;this.sheetName = sheetName;this.nameName = nameName;}
6,249
public MergeInfo(int totalMaxDoc, long estimatedMergeBytes, boolean isExternal, int mergeMaxNumSegments) {this.totalMaxDoc = totalMaxDoc;this.estimatedMergeBytes = estimatedMergeBytes;this.isExternal = isExternal;this.mergeMaxNumSegments = mergeMaxNumSegments;}
public MergeInfo(int totalDocCount, long estimatedMergeBytes, bool isExternal, int mergeMaxNumSegments){this.TotalDocCount = totalDocCount;this.EstimatedMergeBytes = estimatedMergeBytes;this.IsExternal = isExternal;this.MergeMaxNumSegments = mergeMaxNumSegments;}
6,250
public HsmClientCertificate createHsmClientCertificate(CreateHsmClientCertificateRequest request) {request = beforeClientExecution(request);return executeCreateHsmClientCertificate(request);}
public virtual CreateHsmClientCertificateResponse CreateHsmClientCertificate(CreateHsmClientCertificateRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateHsmClientCertificateRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateHsmClientCertificateResponseUnmarshaller.Instance;return Invoke<CreateHsmClientCertificateResponse>(request, options);}
6,251
public Token consume() {Token o = getCurrentToken();if (o.getType() != EOF) {getInputStream().consume();}boolean hasListener = _parseListeners != null && !_parseListeners.isEmpty();if (_buildParseTrees || hasListener) {if ( _errHandler.inErrorRecoveryMode(this) ) {ErrorNode node = _ctx.addErrorNode(createErrorNode(_ctx,o));if (_parseListeners != null) {for (ParseTreeListener listener : _parseListeners) {listener.visitErrorNode(node);}}}else {TerminalNode node = _ctx.addChild(createTerminalNode(_ctx,o));if (_parseListeners != null) {for (ParseTreeListener listener : _parseListeners) {listener.visitTerminal(node);}}}}return o;}
public virtual IToken Consume(){IToken o = CurrentToken;if (o.Type != Eof){((ITokenStream)InputStream).Consume();}bool hasListener = _parseListeners != null && _parseListeners.Count != 0;if (_buildParseTrees || hasListener){if (_errHandler.InErrorRecoveryMode(this)){IErrorNode node = _ctx.AddErrorNode(o);if (_parseListeners != null){foreach (IParseTreeListener listener in _parseListeners){listener.VisitErrorNode(node);}}}else{ITerminalNode node = _ctx.AddChild(o);if (_parseListeners != null){foreach (IParseTreeListener listener in _parseListeners){listener.VisitTerminal(node);}}}}return o;}
6,252
public boolean seekExact(BytesRef term) {final int ord = findTerm(term);if (ord >= 0) {termOrd = ord;setTerm();return true;} else {return false;}}
public override bool SeekExact(BytesRef term){int ord = FindTerm(term);if (ord >= 0){termOrd = ord;SetTerm();return true;}else{return false;}}
6,253
public DescribeEgressOnlyInternetGatewaysResult describeEgressOnlyInternetGateways(DescribeEgressOnlyInternetGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeEgressOnlyInternetGateways(request);}
public virtual DescribeEgressOnlyInternetGatewaysResponse DescribeEgressOnlyInternetGateways(DescribeEgressOnlyInternetGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeEgressOnlyInternetGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeEgressOnlyInternetGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeEgressOnlyInternetGatewaysResponse>(request, options);}
6,254
public Ref getLeaf() {Ref dst = getTarget();while (dst.isSymbolic())dst = dst.getTarget();return dst;}
public virtual Ref GetLeaf(){Ref dst = GetTarget();while (dst.IsSymbolic()){dst = dst.GetTarget();}return dst;}
6,255
public void ReInit(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 virtual void ReInit(QueryParserTokenManager tm){TokenSource = tm;Token = new Token();jj_ntk = -1;jj_gen = 0;for (int i = 0; i < 21; i++) jj_la1[i] = -1;for (int i = 0; i < jj_2_rtns.Length; i++) jj_2_rtns[i] = new JJCalls();}
6,256
public ListStacksResult listStacks() {return listStacks(new ListStacksRequest());}
public virtual ListStacksResponse ListStacks(){return ListStacks(new ListStacksRequest());}
6,257
public PutInstancePublicPortsResult putInstancePublicPorts(PutInstancePublicPortsRequest request) {request = beforeClientExecution(request);return executePutInstancePublicPorts(request);}
public virtual PutInstancePublicPortsResponse PutInstancePublicPorts(PutInstancePublicPortsRequest request){var options = new InvokeOptions();options.RequestMarshaller = PutInstancePublicPortsRequestMarshaller.Instance;options.ResponseUnmarshaller = PutInstancePublicPortsResponseUnmarshaller.Instance;return Invoke<PutInstancePublicPortsResponse>(request, options);}
6,258
public GetConfigurationSetResult getConfigurationSet(GetConfigurationSetRequest request) {request = beforeClientExecution(request);return executeGetConfigurationSet(request);}
public virtual GetConfigurationSetResponse GetConfigurationSet(GetConfigurationSetRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetConfigurationSetRequestMarshaller.Instance;options.ResponseUnmarshaller = GetConfigurationSetResponseUnmarshaller.Instance;return Invoke<GetConfigurationSetResponse>(request, options);}
6,259
public static Element getFirstChildOrFail(Element e) throws ParserException {Element kid = getFirstChildElement(e);if (null == kid) {throw new ParserException(e.getTagName()+ " does not contain a child element");}return kid;}
public static XmlElement GetFirstChildOrFail(XmlElement e){XmlElement kid = GetFirstChildElement(e);if (null == kid){throw new ParserException(e.ToString()+ " does not contain a child element");}return kid;}
6,260
public String toString() {return "Cell(readerIndex=" + readerIndex + " nodeID=" + index.getNodeID()+ " isLeaf=" + index.isLeafNode() + " distanceSquared=" + distanceSquared + ")";}
public override string ToString(){return "ref(" + @ref +")cmd(" + cmd + ")cnt(" + cnt + ")skp(" + skip + ")";}
6,261
public static long getBaseSize(byte[] delta) {int p = 0;long baseLen = 0;int c, shift = 0;do {c = delta[p++] & 0xff;baseLen |= ((long) (c & 0x7f)) << shift;shift += 7;} while ((c & 0x80) != 0);return baseLen;}
public static long GetBaseSize(byte[] delta){int p = 0;long baseLen = 0;int c;int shift = 0;do{c = delta[p++] & unchecked((int)(0xff));baseLen |= ((long)(c & unchecked((int)(0x7f)))) << shift;shift += 7;}while ((c & unchecked((int)(0x80))) != 0);return baseLen;}
6,262
public VerifyEmailIdentityResult verifyEmailIdentity(VerifyEmailIdentityRequest request) {request = beforeClientExecution(request);return executeVerifyEmailIdentity(request);}
public virtual VerifyEmailIdentityResponse VerifyEmailIdentity(VerifyEmailIdentityRequest request){var options = new InvokeOptions();options.RequestMarshaller = VerifyEmailIdentityRequestMarshaller.Instance;options.ResponseUnmarshaller = VerifyEmailIdentityResponseUnmarshaller.Instance;return Invoke<VerifyEmailIdentityResponse>(request, options);}
6,263
public CreateInvalidationResult createInvalidation(CreateInvalidationRequest request) {request = beforeClientExecution(request);return executeCreateInvalidation(request);}
public virtual CreateInvalidationResponse CreateInvalidation(CreateInvalidationRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateInvalidationRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateInvalidationResponseUnmarshaller.Instance;return Invoke<CreateInvalidationResponse>(request, options);}
6,264
public ListGroupsForUserRequest(String userName) {setUserName(userName);}
public ListGroupsForUserRequest(string userName){_userName = userName;}
6,265
public void serialize(LittleEndianOutput out) {out.writeInt(field_1_stream_pos);out.writeShort(field_2_bucket_sst_offset);out.writeShort(field_3_zero);}
public void Serialize(ILittleEndianOutput out1){out1.WriteInt(field_1_stream_pos);out1.WriteShort(field_2_bucket_sst_offset);out1.WriteShort(field_3_zero);}
6,266
public boolean equals(Object o) {if (QueryValueSource.class != o.getClass()) return false;QueryValueSource other = (QueryValueSource)o;return this.q.equals(other.q) && this.defVal==other.defVal;}
public override bool Equals(object o){if (typeof(QueryValueSource) != o.GetType()){return false;}var other = o as QueryValueSource;if (other == null)return false;return this.q.Equals(other.q) && this.defVal == other.defVal;}
6,267
public boolean add(E object) {add(size(), object);return true;}
public void add(E @object){iterator.add(@object);subList.sizeChanged(true);end++;}
6,268
public synchronized SessionToken checkForUpdate(String currentVersion) {ensureOpen();if (currentRevision == null) { return null;}if (currentVersion != null && currentRevision.revision.compareTo(currentVersion) <= 0) {return null;}currentRevision.incRef();final String sessionID = Integer.toString(sessionToken.incrementAndGet());final SessionToken sessionToken = new SessionToken(sessionID, currentRevision.revision);final ReplicationSession timedSessionToken = new ReplicationSession(sessionToken, currentRevision);sessions.put(sessionID, timedSessionToken);return sessionToken;}
public virtual SessionToken CheckForUpdate(string currentVersion){lock (padlock){EnsureOpen();if (currentRevision == null)return null; if (currentVersion != null && currentRevision.Revision.CompareTo(currentVersion) <= 0)return null; currentRevision.IncRef();string sessionID = sessionToken.IncrementAndGet().ToString();SessionToken token = new SessionToken(sessionID, currentRevision.Revision);sessions[sessionID] = new ReplicationSession(token, currentRevision);return token;}}
6,269
public void setCommitNames(String[] commitNames) {this.commitNames = commitNames;}
public virtual void SetCommitNames(string[] commitNames){this.commitNames = commitNames;}
6,270
public FormulaRecordAggregate createFormula(int row, int col) {FormulaRecord fr = new FormulaRecord();fr.setRow(row);fr.setColumn((short) col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}
public FormulaRecordAggregate CreateFormula(int row, int col){FormulaRecord fr = new FormulaRecord();fr.Row=(row);fr.Column=((short)col);return new FormulaRecordAggregate(fr, null, _sharedValueManager);}
6,271
public DetectSyntaxResult detectSyntax(DetectSyntaxRequest request) {request = beforeClientExecution(request);return executeDetectSyntax(request);}
public virtual DetectSyntaxResponse DetectSyntax(DetectSyntaxRequest request){var options = new InvokeOptions();options.RequestMarshaller = DetectSyntaxRequestMarshaller.Instance;options.ResponseUnmarshaller = DetectSyntaxResponseUnmarshaller.Instance;return Invoke<DetectSyntaxResponse>(request, options);}
6,272
public ValueEval evaluate(ValueEval[] args, OperationEvaluationContext ec) { if (args.length < 2 || args.length > 3) {return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.getRowIndex();int srcCellCol = ec.getColumnIndex();double start, end;double[] holidays;try {start = this.evaluator.evaluateDateArg(args[0], srcCellRow, srcCellCol);end = this.evaluator.evaluateDateArg(args[1], srcCellRow, srcCellCol);if (start > end) {return ErrorEval.NAME_INVALID;}ValueEval holidaysCell = args.length == 3 ? args[2] : null;holidays = this.evaluator.evaluateDatesArg(holidaysCell, srcCellRow, srcCellCol);return new NumberEval(WorkdayCalculator.instance.calculateWorkdays(start, end, holidays));} catch (EvaluationException e) {return ErrorEval.VALUE_INVALID;}}
public ValueEval Evaluate(ValueEval[] args, OperationEvaluationContext ec){if (args.Length < 2 || args.Length > 3){return ErrorEval.VALUE_INVALID;}int srcCellRow = ec.RowIndex;int srcCellCol = ec.ColumnIndex;double start, end;double[] holidays;try{start = this.evaluator.EvaluateDateArg(args[0], srcCellRow, srcCellCol);end = this.evaluator.EvaluateDateArg(args[1], srcCellRow, srcCellCol);if (start > end){return ErrorEval.NAME_INVALID;}ValueEval holidaysCell = args.Length == 3 ? args[2] : null;holidays = this.evaluator.EvaluateDatesArg(holidaysCell, srcCellRow, srcCellCol);return new NumberEval(WorkdayCalculator.instance.CalculateWorkdays(start, end, holidays));}catch (EvaluationException){return ErrorEval.VALUE_INVALID;}}
6,273
public HSSFDataValidationHelper(HSSFSheet sheet) {super();}
public HSSFDataValidationHelper(HSSFSheet sheet): base(){this.sheet = sheet;}
6,274
public SyncFacePicturesRequest() {super("LinkFace", "2018-07-20", "SyncFacePictures");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
public SyncFacePicturesRequest(): base("LinkFace", "2018-07-20", "SyncFacePictures"){Protocol = ProtocolType.HTTPS;Method = MethodType.POST;}
6,275
public static String shortToHex(int value) {StringBuilder sb = new StringBuilder(6);writeHex(sb, value & 0xFFFFL, 4, "0x");return sb.toString();}
public static char[] ShortToHex(int value){return ToHexChars(value, 2);}
6,276
public String toString() {switch (state) {case SET:return key;case UNSET:return "-" + key; case UNSPECIFIED:return "!" + key; case CUSTOM:default:return key + "=" + value; }}
public override string ToString(){return "PackWriter.State[" + this.phase + ", memory=" + this.bytesUsed + "]";}
6,277
public void seek(int index) {lazyInit();p = adjustSeekIndex(index);}
public virtual void Seek(int index){LazyInit();p = AdjustSeekIndex(index);}
6,278
public CreateTransitGatewayPeeringAttachmentResult createTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request) {request = beforeClientExecution(request);return executeCreateTransitGatewayPeeringAttachment(request);}
public virtual CreateTransitGatewayPeeringAttachmentResponse CreateTransitGatewayPeeringAttachment(CreateTransitGatewayPeeringAttachmentRequest request){var options = new InvokeOptions();options.RequestMarshaller = CreateTransitGatewayPeeringAttachmentRequestMarshaller.Instance;options.ResponseUnmarshaller = CreateTransitGatewayPeeringAttachmentResponseUnmarshaller.Instance;return Invoke<CreateTransitGatewayPeeringAttachmentResponse>(request, options);}
6,279
public static BytesRef deepCopyOf(BytesRef other) {return new BytesRef(ArrayUtil.copyOfSubArray(other.bytes, other.offset, other.offset + other.length), 0, other.length);}
public static BytesRef DeepCopyOf(BytesRef other){BytesRef copy = new BytesRef();copy.CopyBytes(other);return copy;}
6,280
public TokenCollector(int tokenCount) {_ptgs = new Ptg[tokenCount];_offset = 0;}
public TokenCollector(int tokenCount){_ptgs = new Ptg[tokenCount];_offset = 0;}
6,281
public static String[] tokenize( String format ) {List<String> result = new ArrayList<>();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);String token;while( ( token = tokenizer.getNextToken() ) != null ) {result.add(token);}return result.toArray(new String[0]);}
public static string[] Tokenize(string format){List<string> result = new List<string>();DateFormatTokenizer tokenizer = new DateFormatTokenizer(format);string token;while ((token = tokenizer.GetNextToken()) != null){result.Add(token);}return result.ToArray();}
6,282
public DescribeNatGatewaysResult describeNatGateways(DescribeNatGatewaysRequest request) {request = beforeClientExecution(request);return executeDescribeNatGateways(request);}
public virtual DescribeNatGatewaysResponse DescribeNatGateways(DescribeNatGatewaysRequest request){var options = new InvokeOptions();options.RequestMarshaller = DescribeNatGatewaysRequestMarshaller.Instance;options.ResponseUnmarshaller = DescribeNatGatewaysResponseUnmarshaller.Instance;return Invoke<DescribeNatGatewaysResponse>(request, options);}
6,283
public ResetImageAttributeResult resetImageAttribute(ResetImageAttributeRequest request) {request = beforeClientExecution(request);return executeResetImageAttribute(request);}
public virtual ResetImageAttributeResponse ResetImageAttribute(ResetImageAttributeRequest request){var options = new InvokeOptions();options.RequestMarshaller = ResetImageAttributeRequestMarshaller.Instance;options.ResponseUnmarshaller = ResetImageAttributeResponseUnmarshaller.Instance;return Invoke<ResetImageAttributeResponse>(request, options);}
6,284
public void setHorizontalBorder(boolean value){field_1_options = horizontalBorder.setShortBoolean(field_1_options, value);}
public void SetHorizontalBorder(bool value){field_1_options = horizontalBorder.SetShortBoolean(field_1_options, value);}
6,285
public ReplicationGroup modifyReplicationGroup(ModifyReplicationGroupRequest request) {request = beforeClientExecution(request);return executeModifyReplicationGroup(request);}
public virtual ModifyReplicationGroupResponse ModifyReplicationGroup(ModifyReplicationGroupRequest request){var options = new InvokeOptions();options.RequestMarshaller = ModifyReplicationGroupRequestMarshaller.Instance;options.ResponseUnmarshaller = ModifyReplicationGroupResponseUnmarshaller.Instance;return Invoke<ModifyReplicationGroupResponse>(request, options);}
6,286
public boolean containsKey(CharSequence cs) {if(cs == null)throw new NullPointerException();return false;}
public override bool ContainsKey(char[] text){if (text == null){throw new ArgumentNullException("text");}return false;}
6,287
public GetIntegrationsResult getIntegrations(GetIntegrationsRequest request) {request = beforeClientExecution(request);return executeGetIntegrations(request);}
public virtual GetIntegrationsResponse GetIntegrations(GetIntegrationsRequest request){var options = new InvokeOptions();options.RequestMarshaller = GetIntegrationsRequestMarshaller.Instance;options.ResponseUnmarshaller = GetIntegrationsResponseUnmarshaller.Instance;return Invoke<GetIntegrationsResponse>(request, options);}
6,288
public LabelRecord(RecordInputStream in) {field_1_row = in.readUShort();field_2_column = in.readShort();field_3_xf_index = in.readShort();field_4_string_len = in.readShort();field_5_unicode_flag = in.readByte();if (field_4_string_len > 0) {if (isUnCompressedUnicode()) {field_6_value = in.readUnicodeLEString(field_4_string_len);} else {field_6_value = in.readCompressedUnicode(field_4_string_len);}} else {field_6_value = "";}if (in.remaining() > 0) {logger.log(POILogger.INFO,"LabelRecord data remains: " + in.remaining() +" : " + HexDump.toHex(in.readRemainder()));}}
public LabelRecord(RecordInputStream in1){field_1_row = in1.ReadUShort();field_2_column = in1.ReadUShort();field_3_xf_index = in1.ReadShort();field_4_string_len = in1.ReadShort();field_5_unicode_flag = (byte)in1.ReadByte();if (field_4_string_len > 0){if (IsUncompressedUnicode){field_6_value = in1.ReadUnicodeLEString(field_4_string_len);}else{field_6_value = in1.ReadCompressedUnicode(field_4_string_len);}}else{field_6_value = "";}if (in1.Remaining > 0){logger.Log(POILogger.INFO, "LabelRecord data remains: " +in1.Remaining +" : " + HexDump.ToHex(in1.ReadRemainder()));}}
6,289
public SubmoduleAddCommand setProgressMonitor(ProgressMonitor monitor) {this.monitor = monitor;return this;}
public virtual NGit.Api.SubmoduleAddCommand SetProgressMonitor(ProgressMonitor monitor){this.monitor = monitor;return this;}
6,290
public byte readByte() {if (currentBlockUpto == blockSize) {nextBlock();}return currentBlock[currentBlockUpto++];}
public override byte ReadByte(){if (currentBlockUpto == outerInstance.blockSize){NextBlock();}return (byte)currentBlock[currentBlockUpto++];}
6,291
public TestAlarmResult testAlarm(TestAlarmRequest request) {request = beforeClientExecution(request);return executeTestAlarm(request);}
public virtual TestAlarmResponse TestAlarm(TestAlarmRequest request){var options = new InvokeOptions();options.RequestMarshaller = TestAlarmRequestMarshaller.Instance;options.ResponseUnmarshaller = TestAlarmResponseUnmarshaller.Instance;return Invoke<TestAlarmResponse>(request, options);}
6,292
public void clear() {HashMap.this.clear();}
public override void clear(){this._enclosing.clear();}
6,293
public void visitContainedRecords(RecordVisitor rv) {int nRegions = _mergedRegions.size();if (nRegions < 1) {return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = new CellRangeAddress[nRegions];_mergedRegions.toArray(cras);for (int i = 0; i < nFullMergedCellsRecords; i++) {int startIx = i * MAX_MERGED_REGIONS;rv.visitRecord(new MergeCellsRecord(cras, startIx, MAX_MERGED_REGIONS));}if (nLeftoverMergedRegions > 0) {int startIx = nFullMergedCellsRecords * MAX_MERGED_REGIONS;rv.visitRecord(new MergeCellsRecord(cras, startIx, nLeftoverMergedRegions));}}
public override void VisitContainedRecords(RecordVisitor rv){int nRegions = _mergedRegions.Count;if (nRegions < 1){return;}int nFullMergedCellsRecords = nRegions / MAX_MERGED_REGIONS;int nLeftoverMergedRegions = nRegions % MAX_MERGED_REGIONS;CellRangeAddress[] cras = (CellRangeAddress[])_mergedRegions.ToArray();for (int i = 0; i < nFullMergedCellsRecords; i++){int startIx = i * MAX_MERGED_REGIONS;rv.VisitRecord(new MergeCellsRecord(cras, startIx, MAX_MERGED_REGIONS));}if (nLeftoverMergedRegions > 0){int startIx = nFullMergedCellsRecords * MAX_MERGED_REGIONS;rv.VisitRecord(new MergeCellsRecord(cras, startIx, nLeftoverMergedRegions));}}
6,294
public CharArrayWriter() {buf = new char[32];lock = buf;}
public CharArrayWriter(){buf = new char[32];@lock = buf;}
6,295
public SendEmailRequest(String source, Destination destination, Message message) {setSource(source);setDestination(destination);setMessage(message);}
public SendEmailRequest(string source, Destination destination, Message message){_source = source;_destination = destination;_message = message;}
6,296
public DescribeReservedNodesResult describeReservedNodes() {return describeReservedNodes(new DescribeReservedNodesRequest());}
public virtual DescribeReservedNodesResponse DescribeReservedNodes(){return DescribeReservedNodes(new DescribeReservedNodesRequest());}
6,297
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[PROTECT]\n");buffer.append(" .options = ").append(HexDump.shortToHex(_options)).append("\n");buffer.append("[/PROTECT]\n");return buffer.toString();}
public override String ToString(){StringBuilder buffer = new StringBuilder();buffer.Append("[PROTECT]\n");buffer.Append(" .options = ").Append(HexDump.ShortToHex(_options)).Append("\n");buffer.Append("[/PROTECT]\n");return buffer.ToString();}
6,298
public String getSignerType() {return "PRIVATEKEY";}
public override string GetSignerType(){return "PRIVATEKEY";}
6,299
public StopProjectVersionResult stopProjectVersion(StopProjectVersionRequest request) {request = beforeClientExecution(request);return executeStopProjectVersion(request);}
public virtual StopProjectVersionResponse StopProjectVersion(StopProjectVersionRequest request){var options = new InvokeOptions();options.RequestMarshaller = StopProjectVersionRequestMarshaller.Instance;options.ResponseUnmarshaller = StopProjectVersionResponseUnmarshaller.Instance;return Invoke<StopProjectVersionResponse>(request, options);}