text
stringlengths
27
1.4k
public BoostQueryNode(QueryNode query, float 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 void setFallbackAlgorithm(DiffAlgorithm alg) {fallback = alg;}
public void add(Transition t) {find(t.min).starts.add(t);find(1+t.max).ends.add(t);}
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append(" [FEATURE FORMULA ERRORS]\n");buffer.append(" checkCalculationErrors = ");buffer.append(" checkEmptyCellRef = ");buffer.append(" checkNumbersAsText = ");buffer.append(" checkInconsistentRanges = ");buffer.append(" checkInconsistentFormulas = ");buffer.append(" checkDateTimeFormats = ");buffer.append(" checkUnprotectedFormulas = ");buffer.append(" performDataValidation = ");buffer.append(" [/FEATURE FORMULA ERRORS]\n");return buffer.toString();}
public void execute(Lexer lexer) {lexer.setType(type);}
public UpgradePublishedSchemaResult upgradePublishedSchema(UpgradePublishedSchemaRequest request) {request = beforeClientExecution(request);return executeUpgradePublishedSchema(request);}
public int readRecordSID() {readPlain(buffer, 0, LittleEndianConsts.SHORT_SIZE);int sid = LittleEndian.getUShort(buffer, 0);shouldSkipEncryptionOnCurrentRecord = isNeverEncryptedRecord(sid);return sid;}
public CreateImageBuilderStreamingURLResult createImageBuilderStreamingURL(CreateImageBuilderStreamingURLRequest request) {request = beforeClientExecution(request);return executeCreateImageBuilderStreamingURL(request);}
public SheetIdentifier(String bookName, NameIdentifier sheetIdentifier) {_bookName = bookName;_sheetIdentifier = sheetIdentifier;}
public boolean equals( Object o ) {return o instanceof PortugueseStemmer;}
public PasswordRecord clone() {return copy();}
public DescribeTableRequest(String tableName) {setTableName(tableName);}
public ModifyCacheParameterGroupResult modifyCacheParameterGroup(ModifyCacheParameterGroupRequest request) {request = beforeClientExecution(request);return executeModifyCacheParameterGroup(request);}
public E set(int location, E object) {ListIterator<E> it = listIterator(location);if (!it.hasNext()) {throw new IndexOutOfBoundsException();}E result = it.next();it.set(object);return result;}
public String toFormulaString() {return NumberToTextConverter.toText(field_1_value);}
public ListBootstrapActionsResult listBootstrapActions(ListBootstrapActionsRequest request) {request = beforeClientExecution(request);return executeListBootstrapActions(request);}
public void serialize(LittleEndianOutput out) {out.writeShort(_wStyle);out.writeShort(_cLine);out.writeShort(_dxMin);StringUtil.writeUnicodeString(out, _str);if(_unused != null) {out.writeByte(_unused);}}
public SynonymFilter(TokenStream input, SynonymMap synonyms, boolean ignoreCase) {super(input);this.synonyms = synonyms;this.ignoreCase = ignoreCase;this.fst = synonyms.fst;if (fst == null) {throw new IllegalArgumentException("fst must be non-null");}this.fstReader = fst.getBytesReader();rollBufferSize = 1+synonyms.maxHorizontalContext;futureInputs = new PendingInput[rollBufferSize];futureOutputs = new PendingOutputs[rollBufferSize];for(int pos=0;pos<rollBufferSize;pos++) {futureInputs[pos] = new PendingInput();futureOutputs[pos] = new PendingOutputs();}scratchArc = new FST.Arc<>();}
public CreateApiResult createApi(CreateApiRequest request) {request = beforeClientExecution(request);return executeCreateApi(request);}
public IndexOutput createOutput(String name, IOContext context) throws IOException {ensureOpen();if (context.context != Context.MERGE || context.mergeInfo.estimatedMergeBytes < minBytesDirect) {return delegate.createOutput(name, context);} else {return new NativeUnixIndexOutput(getDirectory().resolve(name), name, mergeBufferSize);}}
public void drawArc(int x, int y, int width, int height,int startAngle, int arcAngle){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"drawArc not supported");}
public UpdateUserSettingsResult updateUserSettings(UpdateUserSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateUserSettings(request);}
public DeleteDiskSnapshotResult deleteDiskSnapshot(DeleteDiskSnapshotRequest request) {request = beforeClientExecution(request);return executeDeleteDiskSnapshot(request);}
public ColumnInfoRecord() {setColumnWidth(2275);_options = 2;_xfIndex = 0x0f;field_6_reserved = 2; }
public final long getLong(int index) {checkIndex(index, SizeOf.LONG);return Memory.peekLong(backingArray, offset + index, order);}
public DeleteKnownHostKeysResult deleteKnownHostKeys(DeleteKnownHostKeysRequest request) {request = beforeClientExecution(request);return executeDeleteKnownHostKeys(request);}
public DeleteSigningCertificateRequest(String certificateId) {setCertificateId(certificateId);}
public StopProcessingJobResult stopProcessingJob(StopProcessingJobRequest request) {request = beforeClientExecution(request);return executeStopProcessingJob(request);}
public TermsEnum getTermsEnum(Terms terms) throws IOException {switch(type) {case NONE:return TermsEnum.EMPTY;case ALL:return terms.iterator();case SINGLE:return new SingleTermsEnum(terms.iterator(), term);case NORMAL:return terms.intersect(this, null);default:throw new RuntimeException("unhandled case");}}
public void grow() {costs = ArrayUtil.grow(costs, 1+count);lastRightID = ArrayUtil.grow(lastRightID, 1+count);backPos = ArrayUtil.grow(backPos, 1+count);backWordPos = ArrayUtil.grow(backWordPos, 1+count);backIndex = ArrayUtil.grow(backIndex, 1+count);backID = ArrayUtil.grow(backID, 1+count);final Type[] newBackType = new Type[backID.length];System.arraycopy(backType, 0, newBackType, 0, backType.length);backType = newBackType;}
public int get(final int index){if (index >= _limit){throw new IndexOutOfBoundsException(index + " not accessible in a list of length " + _limit);}return _array[ index ];}
public LongBuffer slice() {return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset + position);}
public ListProblemsResult listProblems(ListProblemsRequest request) {request = beforeClientExecution(request);return executeListProblems(request);}
public static double pmt(double r, double n, double p, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1*(f+p)/n;}else {double r1 = r + 1;retval = ( f + p * Math.pow(r1, n) ) * r/((t ? r1 : 1) * (1 - Math.pow(r1, n)));}return retval;}
public PrintGridlinesRecord clone() {return copy();}
public HSSFCellStyle getColumnStyle(int column) {short styleIndex = _sheet.getXFIndexForColAt((short) column);if (styleIndex == 0xf) {return null;}ExtendedFormatRecord xf = _book.getExFormatAt(styleIndex);return new HSSFCellStyle(styleIndex, xf, _book);}
public Query makeLuceneQueryField(String fieldName, BasicQueryFactory qf){Query q = makeLuceneQueryFieldNoBoost(fieldName, qf);if (isWeighted()) {q = new BoostQuery(q, getWeight()); }return q;}
public double getPrecisionAt(int n) {if (n<1 || n>MAX_POINTS) {throw new IllegalArgumentException("n="+n+" - but it must be in [1,"+MAX_POINTS+"] range!");}if (n>numPoints) {return (numPoints * pAt[(int)numPoints])/n;}return pAt[n];}
public DescribeEngineDefaultParametersRequest(String dBParameterGroupFamily) {setDBParameterGroupFamily(dBParameterGroupFamily);}
public DeleteClientCertificateResult deleteClientCertificate(DeleteClientCertificateRequest request) {request = beforeClientExecution(request);return executeDeleteClientCertificate(request);}
public int compareTo(CharBuffer otherBuffer) {int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining(): otherBuffer.remaining();int thisPos = position;int otherPos = otherBuffer.position;char thisByte, otherByte;while (compareRemaining > 0) {thisByte = get(thisPos);otherByte = otherBuffer.get(otherPos);if (thisByte != otherByte) {return thisByte < otherByte ? -1 : 1;}thisPos++;otherPos++;compareRemaining--;}return remaining() - otherBuffer.remaining();}
public byte readByte(){return _in.readByte();}
public SendBounceResult sendBounce(SendBounceRequest request) {request = beforeClientExecution(request);return executeSendBounce(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 < 0 || dn > 1) { return ErrorEval.NUM_ERROR;}double result;try {double[] ds = ValueCollector.collectValues(arg0);int N = ds.length;if (N == 0 || N > 8191) {return ErrorEval.NUM_ERROR;}double n = (N - 1) * dn + 1;if (n == 1d) {result = StatsLib.kthSmallest(ds, 1);} else if (Double.compare(n, N) == 0) {result = StatsLib.kthLargest(ds, 1);} else {int k = (int) n;double d = n - k;result = StatsLib.kthSmallest(ds, k) + d* (StatsLib.kthSmallest(ds, k + 1) - StatsLib.kthSmallest(ds, k));}NumericFunction.checkValue(result);} catch (EvaluationException e) {return e.getErrorEval();}return new NumberEval(result);}
public int getIndexOfFormattingRun(int index) {FormatRun r = _string.getFormatRun(index);return r.getCharacterPos();}
public void getEntryObjectId(MutableObjectId out) {out.fromRaw(idBuffer(), idOffset());}
public static byte[] grow(byte[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Byte.BYTES));} else return array;}
public boolean get(String name, boolean dflt) {boolean vals[] = (boolean[]) valByRound.get(name);if (vals != null) {return vals[roundNumber % vals.length];}String sval = props.getProperty(name, "" + dflt);if (sval.indexOf(":") < 0) {return Boolean.valueOf(sval).booleanValue();}int k = sval.indexOf(":");String colName = sval.substring(0, k);sval = sval.substring(k + 1);colForValByRound.put(name, colName);vals = propToBooleanArray(sval);valByRound.put(name, vals);return vals[roundNumber % vals.length];}
public GroupingSearch setCaching(int maxDocsToCache, boolean cacheScores) {this.maxDocsToCache = maxDocsToCache;this.maxCacheRAMMB = null;this.cacheScores = cacheScores;return this;}
public boolean isValidTermOrPhrase( final List<TermInfo> phraseCandidate ){if( !terminal ) return false;if( phraseCandidate.size() == 1 ) return true;int pos = phraseCandidate.get( 0 ).getPosition();for( int i = 1; i < phraseCandidate.size(); i++ ){int nextPos = phraseCandidate.get( i ).getPosition();if( Math.abs( nextPos - pos - 1 ) > slop ) return false;pos = nextPos;}return true;}
public Run startWorkflowExecution(StartWorkflowExecutionRequest request) {request = beforeClientExecution(request);return executeStartWorkflowExecution(request);}
public char[] nextKey() {goNext();return keys[lastPos];}
public ContainsResult contains(BytesRef value) {int hash = hashFunction.hash(value);if (hash < 0) {hash = hash * -1;}return mayContainValue(hash);}
public GetMethodResponseResult getMethodResponse(GetMethodResponseRequest request) {request = beforeClientExecution(request);return executeGetMethodResponse(request);}
public void setValue(boolean value) {_value = value ? 1 : 0;_isError = false;}
public synchronized E elementAt(int location) {if (location < elementCount) {return (E) elementData[location];}throw arrayIndexOutOfBoundsException(location, elementCount);}
public void set(int index, long value) {final int o = index >>> 3;final int b = index & 7;final int shift = b << 3;blocks[o] = (blocks[o] & ~(255L << shift)) | (value << shift);}
public IterationRecord clone() {return copy();}
public boolean requiresCommitBody() {return a.requiresCommitBody();}
public UpdateTrafficPolicyCommentResult updateTrafficPolicyComment(UpdateTrafficPolicyCommentRequest request) {request = beforeClientExecution(request);return executeUpdateTrafficPolicyComment(request);}
public UpdatePrimaryEmailAddressResult updatePrimaryEmailAddress(UpdatePrimaryEmailAddressRequest request) {request = beforeClientExecution(request);return executeUpdatePrimaryEmailAddress(request);}
public static Pattern compile(String pattern) {return new Pattern(pattern, 0);}
public static int update(int hash, int value) {final int c1 = 0xCC9E2D51;final int c2 = 0x1B873593;final int r1 = 15;final int r2 = 13;final int m = 5;final int n = 0xE6546B64;int k = value;k = k * c1;k = (k << r1) | (k >>> (32 - r1));k = k * c2;hash = hash ^ k;hash = (hash << r2) | (hash >>> (32 - r2));hash = hash * m + n;return hash;}
public void serialize(LittleEndianOutput out) {out.writeShort(getHorizontalHold());out.writeShort(getVerticalHold());out.writeShort(getWidth());out.writeShort(getHeight());out.writeShort(getOptions());out.writeShort(getActiveSheetIndex());out.writeShort(getFirstVisibleTab());out.writeShort(getNumSelectedTabs());out.writeShort(getTabWidthRatio());}
public boolean lessThan(ShardRef first, ShardRef second) {assert first != second;final FieldDoc firstFD = (FieldDoc) shardHits[first.shardIndex][first.hitIndex];final FieldDoc secondFD = (FieldDoc) shardHits[second.shardIndex][second.hitIndex];for(int compIDX=0;compIDX<comparators.length;compIDX++) {final FieldComparator comp = comparators[compIDX];final int cmp = reverseMul[compIDX] * comp.compareValues(firstFD.fields[compIDX], secondFD.fields[compIDX]);if (cmp != 0) {return cmp < 0;}}return tieBreakLessThan(first, firstFD, second, secondFD, tieBreaker);}
public static int UTF8toUTF16(BytesRef bytesRef, char[] chars) {return UTF8toUTF16(bytesRef.bytes, bytesRef.offset, bytesRef.length, chars);}
public Trie optimize(Trie orig) {List<CharSequence> cmds = orig.cmds;List<Row> rows = new ArrayList<>();List<Row> orows = orig.rows;int remap[] = new int[orows.size()];Arrays.fill(remap, 1);for (int j = orows.size() - 1; j >= 0; j--) {if (eat(orows.get(j), remap)) {remap[j] = 0;}}Arrays.fill(remap, -1);rows = removeGaps(orig.root, orows, new ArrayList<Row>(), remap);return new Trie(orig.forward, remap[orig.root], cmds, rows);}
public DataValidationConstraint createCustomConstraint(String formula) {return DVConstraint.createCustomFormulaConstraint(formula);}
public ByteBuffer putInt(int index, int value) {throw new ReadOnlyBufferException();}
public DescribeLoadBalancerPolicyTypesResult describeLoadBalancerPolicyTypes() {return describeLoadBalancerPolicyTypes(new DescribeLoadBalancerPolicyTypesRequest());}
public NIOFSIndexInput clone() {NIOFSIndexInput clone = (NIOFSIndexInput)super.clone();clone.isClone = true;return clone;}
public long getTotalSLLATNLookaheadOps() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();long k = 0;for (int i = 0; i < decisions.length; i++) {k += decisions[i].SLL_ATNTransitions;}return k;}
public UpdateEndpointResult updateEndpoint(UpdateEndpointRequest request) {request = beforeClientExecution(request);return executeUpdateEndpoint(request);}
public GetEmailChannelResult getEmailChannel(GetEmailChannelRequest request) {request = beforeClientExecution(request);return executeGetEmailChannel(request);}
public ListPhoneNumberOrdersResult listPhoneNumberOrders(ListPhoneNumberOrdersRequest request) {request = beforeClientExecution(request);return executeListPhoneNumberOrders(request);}
public UpdateBuildResult updateBuild(UpdateBuildRequest request) {request = beforeClientExecution(request);return executeUpdateBuild(request);}
public int serialize( int offset, byte[] data, EscherSerializationListener listener ){listener.beforeRecordSerialize( offset, getRecordId(), this );LittleEndian.putShort( data, offset, getOptions() );LittleEndian.putShort( data, offset + 2, getRecordId() );int remainingBytes = 16;LittleEndian.putInt( data, offset + 4, remainingBytes );LittleEndian.putInt( data, offset + 8, field_1_rectX1 );LittleEndian.putInt( data, offset + 12, field_2_rectY1 );LittleEndian.putInt( data, offset + 16, field_3_rectX2 );LittleEndian.putInt( data, offset + 20, field_4_rectY2 );listener.afterRecordSerialize( offset + getRecordSize(), getRecordId(), offset + getRecordSize(), this );return 8 + 16;}
public CleanCommand setDryRun(boolean dryRun) {this.dryRun = dryRun;return this;}
public DescribeClusterVersionsResult describeClusterVersions(DescribeClusterVersionsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterVersions(request);}
public DescribeWorkspacesResult describeWorkspaces(DescribeWorkspacesRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaces(request);}
public void copyRawTo(int[] b, int o) {b[o] = w1;b[o + 1] = w2;b[o + 2] = w3;b[o + 3] = w4;b[o + 4] = w5;}
public SetStackPolicyResult setStackPolicy(SetStackPolicyRequest request) {request = beforeClientExecution(request);return executeSetStackPolicy(request);}
public String toString() {StringBuilder s = new StringBuilder();append(s, oldRef, "CREATE"); s.append(' ');append(s, newRef, "DELETE"); s.append(' ').append(getRefName());s.append(' ').append(getResult());if (getMessage() != null) {s.append(' ').append(getMessage());}return s.toString();}
public short getXFAt(int coffset) {return field_3_rks[coffset].xf;}
public ByteBuffer put(byte[] src, int srcOffset, int byteCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, byteCount);if (byteCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + byteCount; ++i) {put(src[i]);}return this;}
public ReceiveMessageResult receiveMessage(String queueUrl) {return receiveMessage(new ReceiveMessageRequest().withQueueUrl(queueUrl));}
public NativeUnixIndexInput(NativeUnixIndexInput other) throws IOException {super(other.toString());this.fis = null;channel = other.channel;this.bufferSize = other.bufferSize;buffer = ByteBuffer.allocateDirect(bufferSize);filePos = -bufferSize;bufferPos = bufferSize;isOpen = true;isClone = true;seek(other.getFilePointer());}
public Merger newMerger(Repository db, boolean inCore) {return new OneSide(db, treeIndex);}
public void flush() {synchronized (lock) {if (out != null) {try {out.flush();} catch (IOException e) {setError();}} else {setError();}}}
public DisassociateIamInstanceProfileResult disassociateIamInstanceProfile(DisassociateIamInstanceProfileRequest request) {request = beforeClientExecution(request);return executeDisassociateIamInstanceProfile(request);}
public void beginTask(String title, int totalWork) {if (!isMainThread())throw new IllegalStateException();pm.beginTask(title, totalWork);}
public void run() {try {count = task.runAndMaybeStats(letChildReport);} catch (Exception e) {throw new RuntimeException(e);}}
public TokenFilter create(TokenStream input) {return new EdgeNGramTokenFilter(input, minGramSize, maxGramSize, preserveOriginal);}
public String toString() {return "RemoteRefUpdate[remoteName="+ remoteName+ ", "+ status+ ", "+ (expectedOldObjectId != null ? expectedOldObjectId.name(): "(null)") + "..."+ (newObjectId != null ? newObjectId.name() : "(null)")+ (fastForward ? ", fastForward" : "")+ ", srcRef=" + srcRef+ (forceUpdate ? ", forceUpdate" : "") + ", message="+ (message != null ? "\"" + message + "\"" : "null") + "]";}
public ListJournalS3ExportsResult listJournalS3Exports(ListJournalS3ExportsRequest request) {request = beforeClientExecution(request);return executeListJournalS3Exports(request);}
public boolean lookingAt() {matchFound = lookingAtImpl(address, input, matchOffsets);if (matchFound) {findPos = matchOffsets[1];}return matchFound;}
public DescribeIdentityUsageResult describeIdentityUsage(DescribeIdentityUsageRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityUsage(request);}
public void carry(RevFlag flag) {final int carry = flags & flag.mask;if (carry != 0)carryFlags(this, carry);}
public Count(){_predicate = defaultPredicate;}
public ShowNoteCommand notesShow() {return new ShowNoteCommand(repo);}