text
stringlengths
27
1.4k
public void seekExact(BytesRef target, TermState otherState) {if (!target.equals(term)) {state.copyFrom(otherState);term = BytesRef.deepCopyOf(target);seekPending = true;}}
public DescribeClusterParameterGroupsResult describeClusterParameterGroups(DescribeClusterParameterGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterParameterGroups(request);}
public BatchGetApplicationsResult batchGetApplications(BatchGetApplicationsRequest request) {request = beforeClientExecution(request);return executeBatchGetApplications(request);}
public String toString() {return "dels=" + Arrays.toString(item);}
public FreeRefFunction findFunction(String name) {FreeRefFunction evaluatorForFunction;for (UDFFinder pack : _usedToolPacks) {evaluatorForFunction = pack.findFunction(name);if (evaluatorForFunction != null) {return evaluatorForFunction;}}return null;}
public String toString(){StringBuilder sb = new StringBuilder();sb.append("[LABEL]\n");sb.append(" .row = ").append(HexDump.shortToHex(getRow())).append("\n");sb.append(" .column = ").append(HexDump.shortToHex(getColumn())).append("\n");sb.append(" .xfindex = ").append(HexDump.shortToHex(getXFIndex())).append("\n");sb.append(" .string_len= ").append(HexDump.shortToHex(field_4_string_len)).append("\n");sb.append(" .unicode_flag= ").append(HexDump.byteToHex(field_5_unicode_flag)).append("\n");sb.append(" .value = ").append(getValue()).append("\n");sb.append("[/LABEL]\n");return sb.toString();}
public static void verifyLabel(String label) {if (label == null || label.isEmpty()) {throw new IllegalArgumentException("empty or null components not allowed; got: " + label);}}
public boolean setReadOnly() {return setWritable(false, false);}
public CopyImageResult copyImage(CopyImageRequest request) {request = beforeClientExecution(request);return executeCopyImage(request);}
public CreateTrainingJobResult createTrainingJob(CreateTrainingJobRequest request) {request = beforeClientExecution(request);return executeCreateTrainingJob(request);}
public DescribeDomainsResult describeDomains(DescribeDomainsRequest request) {request = beforeClientExecution(request);return executeDescribeDomains(request);}
public String toString() {return "ngram(" + n + ")";}
public boolean formatMatches(ColumnInfoRecord other) {if (_xfIndex != other._xfIndex) {return false;}if (_options != other._options) {return false;}if (_colWidth != other._colWidth) {return false;}return true;}
public AddCommand add() {return new AddCommand(repo);}
public final int limit() {return limit;}
public CharBuffer asReadOnlyBuffer() {return ReadOnlyCharArrayBuffer.copy(this, mark);}
public synchronized boolean add(E object) {if (elementCount == elementData.length) {growByOne();}elementData[elementCount++] = object;modCount++;return true;}
public TSTNode getNode(CharSequence key) {return getNode(key, rootNode);}
public GetEventStreamResult getEventStream(GetEventStreamRequest request) {request = beforeClientExecution(request);return executeGetEventStream(request);}
public SendMessageBatchResult sendMessageBatch(SendMessageBatchRequest request) {request = beforeClientExecution(request);return executeSendMessageBatch(request);}
public DescribeDirectConnectGatewayAttachmentsResult describeDirectConnectGatewayAttachments(DescribeDirectConnectGatewayAttachmentsRequest request) {request = beforeClientExecution(request);return executeDescribeDirectConnectGatewayAttachments(request);}
public Object add(Object prefix, Object output) {assert !(prefix instanceof List);if (!(output instanceof List)) {return outputs.add((T) prefix, (T) output);} else {List<T> outputList = (List<T>) output;List<T> addedList = new ArrayList<>(outputList.size());for(T _output : outputList) {addedList.add(outputs.add((T) prefix, _output));}return addedList;}}
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1,ValueEval arg2, ValueEval arg3) {return evaluate(srcRowIndex, srcColumnIndex, arg0, arg1, arg2, arg3, DEFAULT_ARG4);}
public static List<ParseTree> findAllNodes(ParseTree t, int index, boolean findTokens) {List<ParseTree> nodes = new ArrayList<ParseTree>();_findAllNodes(t, index, findTokens, nodes);return nodes;}
public boolean containsChart() {EscherOptRecord optRecord = (EscherOptRecord)_boundAggregate.findFirstWithId(EscherOptRecord.RECORD_ID);if (optRecord == null) {return false;}for (EscherProperty prop : optRecord.getEscherProperties()) {if (prop.getPropertyNumber() == 896 && prop.isComplex()) {EscherComplexProperty cp = (EscherComplexProperty) prop;String str = StringUtil.getFromUnicodeLE(cp.getComplexData());if (str.equals("Chart 1\0")) {return true;}}}return false;}
public int getWidth() {return w;}
public StopInstanceResult stopInstance(StopInstanceRequest request) {request = beforeClientExecution(request);return executeStopInstance(request);}
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[TABLE]\n");buffer.append(" .range = ").append(getRange()).append("\n");buffer.append(" .flags = ") .append(HexDump.byteToHex(field_5_flags)).append("\n");buffer.append(" .alwaysClc= ").append(isAlwaysCalc()).append("\n");buffer.append(" .reserved = ").append(HexDump.intToHex(field_6_res)).append("\n");CellReference crRowInput = cr(field_7_rowInputRow, field_8_colInputRow);CellReference crColInput = cr(field_9_rowInputCol, field_10_colInputCol);buffer.append(" .rowInput = ").append(crRowInput.formatAsString()).append("\n");buffer.append(" .colInput = ").append(crColInput.formatAsString()).append("\n");buffer.append("[/TABLE]\n");return buffer.toString();}
public RemoveTagsResult removeTags(RemoveTagsRequest request) {request = beforeClientExecution(request);return executeRemoveTags(request);}
public boolean hasNext() {if (next == null)next = peek();return next != null;}
public long byteCount(int packedIntsVersion, int valueCount, int bitsPerValue) {return (long) Math.ceil((double) valueCount * bitsPerValue / 8);}
public GetQueueUrlRequest(String queueName) {setQueueName(queueName);}
public void addEscherRecord(int index, EscherRecord element){escherRecords.add( index, element );}
public ListInstanceGroupsResult listInstanceGroups(ListInstanceGroupsRequest request) {request = beforeClientExecution(request);return executeListInstanceGroups(request);}
public TruncateTokenFilterFactory(Map<String, String> args) {super(args);prefixLength = Byte.parseByte(get(args, PREFIX_LENGTH_KEY, "5"));if (prefixLength < 1)throw new IllegalArgumentException(PREFIX_LENGTH_KEY + " parameter must be a positive number: " + prefixLength);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameter(s): " + args);}}
public GetDetectorResult getDetector(GetDetectorRequest request) {request = beforeClientExecution(request);return executeGetDetector(request);}
public void set(int index, int n) {if (count < index)throw new ArrayIndexOutOfBoundsException(index);else if (count == index)add(n);elseentries[index] = n;}
public StatePair(int s1, int s2) {this.s1 = s1;this.s2 = s2;this.s = -1;}
public DetachDiskResult detachDisk(DetachDiskRequest request) {request = beforeClientExecution(request);return executeDetachDisk(request);}
public void clear() {count = 0;}
public ListIterator<E> listIterator() {return delegate().listIterator(); }
public FieldDoc(int doc, float score, Object[] fields, int shardIndex) {super(doc, score, shardIndex);this.fields = fields;}
public ResourceRecord(String value) {setValue(value);}
public String getAuthority() {return decode(authority);}
public void flush() throws IOException {drain();output.flush();}
public ListMultipartUploadsRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
public UpdateRouteResponseResult updateRouteResponse(UpdateRouteResponseRequest request) {request = beforeClientExecution(request);return executeUpdateRouteResponse(request);}
public boolean containsKey(Object name) {return get(name) != null;}
public SimpleRateLimiter(double mbPerSec) {setMBPerSec(mbPerSec);lastNS = System.nanoTime();}
public void releaseSession(RemoteSession session) {session.disconnect();}
public SetQuotaRequest() {super("CloudPhoto", "2017-07-11", "SetQuota", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
public ParserATNSimulator(Parser parser, ATN atn,DFA[] decisionToDFA,PredictionContextCache sharedContextCache){super(atn, sharedContextCache);this.parser = parser;this.decisionToDFA = decisionToDFA;}
public void remove() {Object[] a = array;int removalIdx = removalIndex;if (modCount != expectedModCount) {throw new ConcurrentModificationException();}if (removalIdx < 0) {throw new IllegalStateException();}System.arraycopy(a, removalIdx + 1, a, removalIdx, remaining);a[--size] = null; removalIndex = -1;expectedModCount = ++modCount;}
public T getPointAt(int index) {return elements[index];}
public StatusCommand setWorkingTreeIt(WorkingTreeIterator workingTreeIt) {this.workingTreeIt = workingTreeIt;return this;}
public CharBlockArray append(CharSequence chars) {return append(chars, 0, chars.length());}
public void clear() {current.clear();}
public String toFormulaString() {return FormulaError.forInt(field_1_error_code).getString();}
public FtPioGrbitSubRecord clone() {return copy();}
public PositionSpan(int start, int end) {this.start = start;this.end = end;}
public void setParams(String params) {super.setParams(params);StringTokenizer st = new StringTokenizer(params, ",");while (st.hasMoreTokens()) {String param = st.nextToken();StringTokenizer expr = new StringTokenizer(param, ":");String key = expr.nextToken();String value = expr.nextToken();if (key.equals("impl")) {if (value.equalsIgnoreCase("icu")) impl = Implementation.ICU;else if (value.equalsIgnoreCase("jdk")) impl = Implementation.JDK;else throw new RuntimeException("Unknown parameter " + param);} else {throw new RuntimeException("Unknown parameter " + param);}}}
public DeleteBuildResult deleteBuild(DeleteBuildRequest request) {request = beforeClientExecution(request);return executeDeleteBuild(request);}
public DescribeVolumeStatusResult describeVolumeStatus() {return describeVolumeStatus(new DescribeVolumeStatusRequest());}
public String getFlags() {return f;}
public ShowNoteCommand setObjectId(RevObject id) {checkCallable();this.id = id;return this;}
public PatternReplaceFilter create(TokenStream input) {return new PatternReplaceFilter(input, pattern, replacement, replaceAll);}
public void reset() throws IOException {drain();output.writeByte(TC_RESET);resetState();}
public Ptg get3DReferencePtg(CellReference cr, SheetIdentifier sheet) {int extIx = getSheetExtIx(sheet);return new Ref3DPtg(cr, extIx);}
public static void fill(boolean[] array, int start, int end, boolean value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
public TokenStream create(TokenStream input) {return new ICUFoldingFilter(input, normalizer);}
public CharSequence toQueryString(EscapeQuerySyntax escaper) {return "[NTF]";}
public StashCreateCommand setWorkingDirectoryMessage(String message) {workingDirectoryMessage = message;return this;}
public SheetRangeEvaluator(int onlySheetIndex, SheetRefEvaluator sheetEvaluator) {this(onlySheetIndex, onlySheetIndex, new SheetRefEvaluator[] {sheetEvaluator});}
public static long[] grow(long[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Long.BYTES));} else return array;}
public static RevFilter create(Collection<RevFilter> list) {if (list.size() < 2)throw new IllegalArgumentException(JGitText.get().atLeastTwoFiltersNeeded);final RevFilter[] subfilters = new RevFilter[list.size()];list.toArray(subfilters);if (subfilters.length == 2)return create(subfilters[0], subfilters[1]);return new List(subfilters);}
public DeregisterOnPremisesInstanceResult deregisterOnPremisesInstance(DeregisterOnPremisesInstanceRequest request) {request = beforeClientExecution(request);return executeDeregisterOnPremisesInstance(request);}
public ListDeliverabilityTestReportsResult listDeliverabilityTestReports(ListDeliverabilityTestReportsRequest request) {request = beforeClientExecution(request);return executeListDeliverabilityTestReports(request);}
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0,ValueEval arg1) {double dn;try {ValueEval ve1 = OperandResolver.getSingleValue(arg1, srcRowIndex, srcColumnIndex);dn = OperandResolver.coerceValueToDouble(ve1);} catch (EvaluationException e1) {return ErrorEval.VALUE_INVALID;}if (dn < 1.0) {return ErrorEval.NUM_ERROR;}int k = (int) Math.ceil(dn);double result;try {double[] ds = ValueCollector.collectValues(arg0);if (k > ds.length) {return ErrorEval.NUM_ERROR;}result = _isLarge ? StatsLib.kthLargest(ds, k) : StatsLib.kthSmallest(ds, k);NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
public ByteArrayDataInput() {reset(BytesRef.EMPTY_BYTES);}
public ByteBuffer putDouble(double value) {throw new ReadOnlyBufferException();}
public ChangeMessageVisibilityResult changeMessageVisibility(ChangeMessageVisibilityRequest request) {request = beforeClientExecution(request);return executeChangeMessageVisibility(request);}
public UpdateWorkGroupResult updateWorkGroup(UpdateWorkGroupRequest request) {request = beforeClientExecution(request);return executeUpdateWorkGroup(request);}
public NavigableMap<K, V> tailMap(K fromInclusive) {return subMap(fromInclusive, INCLUSIVE, null, NO_BOUND);}
public String toString() {return "2";}
public BlameCommand setStartCommit(AnyObjectId commit) {this.startCommit = commit.toObjectId();return this;}
public ModifyEbsDefaultKmsKeyIdResult modifyEbsDefaultKmsKeyId(ModifyEbsDefaultKmsKeyIdRequest request) {request = beforeClientExecution(request);return executeModifyEbsDefaultKmsKeyId(request);}
public void removeAuthor() {remove1stProperty(PropertyIDMap.PID_AUTHOR);}
public Ref get(Object key) {String name = toRefName((String) key);Ref ref = resolved.get(name);if (ref == null)ref = loose.get(name);if (ref == null)ref = packed.get(name);return ref;}
public int addConditionalFormatting( HSSFConditionalFormatting cf ) {CFRecordsAggregate cfraClone = cf.getCFRecordsAggregate().cloneCFAggregate();return _conditionalFormattingTable.add(cfraClone);}
public final String toString() {return getClass().getName() + "[" + this.canonicalName + "]";}
public void serialize(LittleEndianOutput out) {out.writeShort(getIterations());}
public MatchAllDocsQuery build(QueryNode queryNode) throws QueryNodeException {if (!(queryNode instanceof MatchAllDocsQueryNode)) {throw new QueryNodeException(new MessageImpl(QueryParserMessages.LUCENE_QUERY_CONVERSION_ERROR, queryNode.toQueryString(new EscapeQuerySyntaxImpl()), queryNode.getClass().getName()));}return new MatchAllDocsQuery();}
public LongBuffer get(long[] dst) {return get(dst, 0, dst.length);}
public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append("/");buffer.append(operands[ 1 ]);return buffer.toString();}
@Override public void clear() {countMap.clear();}
public SpatialArgs(SpatialOperation operation, Shape shape) {if (operation == null || shape == null)throw new NullPointerException("operation and shape are required");this.operation = operation;this.shape = shape;}
public int compareTo(Completion o) {return this.utf8.compareTo(o.utf8);}
public GetInstancesResult getInstances(GetInstancesRequest request) {request = beforeClientExecution(request);return executeGetInstances(request);}
public int next() {if (text.getIndex() == text.getEndIndex() || 0 == sentenceStarts.length) {return DONE;} else if (currentSentence < sentenceStarts.length - 1) {text.setIndex(sentenceStarts[++currentSentence]);return current();} else {return last();}}
public HSSFClientAnchor getPreferredSize(double scaleX, double scaleY){ImageUtils.setPreferredSize(this, scaleX, scaleY);return getClientAnchor();}