text
stringlengths
27
1.4k
public void serialize(LittleEndianOutput out) {_range.serialize(out);serializeExtraData(out);}
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {return isDefaultField(field)? "/"+text+"/": field + ":/" + text + "/";}
public static boolean isRowBlockRecord(int sid) {switch (sid) {case RowRecord.sid:case BlankRecord.sid:case BoolErrRecord.sid:case FormulaRecord.sid:case LabelRecord.sid:case LabelSSTRecord.sid:case NumberRecord.sid:case RKRecord.sid:case ArrayRecord.sid:case SharedFormulaRecord.sid:case TableRecord.sid:return true;}return false;}
public static final int endOfParagraph(byte[] b, int start) {int ptr = start;final int sz = b.length;while (ptr < sz && (b[ptr] != '\n' && b[ptr] != '\r'))ptr = nextLF(b, ptr);if (ptr > start && b[ptr - 1] == '\n')ptr--;if (ptr > start && b[ptr - 1] == '\r')ptr--;return ptr;}
public VerifyDomainDkimResult verifyDomainDkim(VerifyDomainDkimRequest request) {request = beforeClientExecution(request);return executeVerifyDomainDkim(request);}
public boolean equals(Object o) {if (o instanceof HSSFRichTextString) {return _string.equals(((HSSFRichTextString)o)._string);}return false;}
public boolean equals(Object obj) {if (!(obj instanceof RowColKey)) {return false;}RowColKey other = (RowColKey) obj;return _rowIndex == other._rowIndex && _columnIndex == other._columnIndex;}
public GetIdentityPoolConfigurationResult getIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request) {request = beforeClientExecution(request);return executeGetIdentityPoolConfiguration(request);}
public DeleteTrafficMirrorFilterResult deleteTrafficMirrorFilter(DeleteTrafficMirrorFilterRequest request) {request = beforeClientExecution(request);return executeDeleteTrafficMirrorFilter(request);}
public Bits readLiveDocs(Directory dir, SegmentCommitInfo info, IOContext context) throws IOException {assert info.hasDeletions();BytesRefBuilder scratch = new BytesRefBuilder();CharsRefBuilder scratchUTF16 = new CharsRefBuilder();String fileName = IndexFileNames.fileNameFromGeneration(info.info.name, LIVEDOCS_EXTENSION, info.getDelGen());ChecksumIndexInput in = null;boolean success = false;try {in = dir.openChecksumInput(fileName, context);SimpleTextUtil.readLine(in, scratch);assert StringHelper.startsWith(scratch.get(), SIZE);int size = parseIntAt(scratch.get(), SIZE.length, scratchUTF16);BitSet bits = new BitSet(size);SimpleTextUtil.readLine(in, scratch);while (!scratch.get().equals(END)) {assert StringHelper.startsWith(scratch.get(), DOC);int docid = parseIntAt(scratch.get(), DOC.length, scratchUTF16);bits.set(docid);SimpleTextUtil.readLine(in, scratch);}SimpleTextUtil.checkFooter(in);success = true;return new SimpleTextBits(bits, size);} finally {if (success) {IOUtils.close(in);} else {IOUtils.closeWhileHandlingException(in);}}}
public CreateConferenceProviderResult createConferenceProvider(CreateConferenceProviderRequest request) {request = beforeClientExecution(request);return executeCreateConferenceProvider(request);}
public SimpleQQParser(String qqNames[], String indexField) {this.qqNames = qqNames;this.indexField = indexField;}
public boolean isCaseSensitive() {return false;}
public TokenFilter create(TokenStream input) {return new HyphenationCompoundWordTokenFilter(input, hyphenator, dictionary, minWordSize, minSubwordSize, maxSubwordSize, onlyLongestMatch);}
public TokenStream create(TokenStream input) {return new JapaneseBaseFormFilter(input);}
public OrderedATNConfigSet() {this.configLookup = new LexerConfigHashSet();}
public static ValueEval dereferenceResult(ValueEval evaluationResult, int srcRowNum, int srcColNum) {ValueEval value;try {value = OperandResolver.getSingleValue(evaluationResult, srcRowNum, srcColNum);} catch (EvaluationException e) {return e.getErrorEval();}if (value == BlankEval.instance) {return NumberEval.ZERO;}return value;}
public GetGroupRequest(String groupName) {setGroupName(groupName);}
public void narrowSearch(int midIx, boolean isLessThan) {if(isLessThan) {_highIx = midIx;} else {_lowIx = midIx;}}
public void set(int index, long value) {final int o = index >>> 1;final int b = index & 1;final int shift = b << 5;blocks[o] = (blocks[o] & ~(4294967295L << shift)) | (value << shift);}
public String toString() {return cfAggregate.toString();}
public void setConfig(Config config) {super.setConfig(config);random = new Random(config.get("rand.seed", 13));maxDocFacets = config.get("max.doc.facets", 10);maxDims = config.get("max.doc.facets.dims", 5);maxFacetDepth = config.get("max.facet.depth", 3);if (maxFacetDepth < 2) {throw new IllegalArgumentException("max.facet.depth must be at least 2; got: " + maxFacetDepth);}maxValue = maxDocFacets * maxFacetDepth;}
public interface Experiments extends SupportsCreating<Experiment.DefinitionStages.Blank>, HasInner<ExperimentsInner> {Observable<Experiment> getAsync(String resourceGroupName, String workspaceName, String experimentName);Observable<Experiment> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName);Completable deleteAsync(String resourceGroupName, String workspaceName, String experimentName);}
public Builder add(long l) {if (pending == null) {throw new IllegalStateException("Cannot be reused after build()");}if (pendingOff == pending.length) {if (values.length == valuesOff) {final int newLength = ArrayUtil.oversize(valuesOff + 1, 8);grow(newLength);}pack();}pending[pendingOff++] = l;size += 1;return this;}
public static boolean isBuiltInFunctionName(String name) {short ix = FunctionMetadataRegistry.lookupIndexByName(name.toUpperCase(Locale.ROOT));return ix >= 0;}
public void readBytes(byte[] b, int offset, int len) {while(len > 0) {final int numLeft = limit-upto;if (numLeft < len) {System.arraycopy(buffer, upto, b, offset, numLeft);offset += numLeft;len -= numLeft;nextSlice();} else {System.arraycopy(buffer, upto, b, offset, len);upto += len;break;}}}
public String toFormulaString(String[] operands) {StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(CONCAT);buffer.append(operands[ 1 ]);return buffer.toString();}
public ListResolverRuleAssociationsResult listResolverRuleAssociations(ListResolverRuleAssociationsRequest request) {request = beforeClientExecution(request);return executeListResolverRuleAssociations(request);}
public TokenStream create(TokenStream input) {return new ApostropheFilter(input);}
public static String getExtension(String name) {int i = name.lastIndexOf('.');if (i == -1) {return "";}String ext = name.substring(i + 1);if (ext.equals("tmp")) {Matcher matcher = EXT_PATTERN.matcher(name.substring(0, i + 1));if (matcher.find()) {return matcher.group(1);}}return ext;}
public static int getBuiltinFormat(String pFmt) {String fmt = "TEXT".equalsIgnoreCase(pFmt) ? "@" : pFmt;int i = -1;for (String f : _formats) {i++;if (f.equals(fmt)) {return i;}}return -1;}
@Override public int indexOf(Object object) {return list.indexOf(object);}
public void trimToSize() {balance();redimNodeArrays(freenode);CharVector kx = new CharVector();kx.alloc(1);TernaryTree map = new TernaryTree();compact(kx, map, root);kv = kx;kv.trimToSize();}
public GetRepoSyncTaskRequest() {super("cr", "2016-06-07", "GetRepoSyncTask", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/syncTasks/[SyncTaskId]");setMethod(MethodType.GET);}
public ChangeMessageVisibilityRequest(String queueUrl, String receiptHandle, Integer visibilityTimeout) {setQueueUrl(queueUrl);setReceiptHandle(receiptHandle);setVisibilityTimeout(visibilityTimeout);}
public String toString() {return "[SAVERECALC]\n" +" .recalc = " + getRecalc() +"\n" +"[/SAVERECALC]\n";}
public Status getStatus() {return status;}
public StartRepoBuildByRuleRequest() {super("cr", "2016-06-07", "StartRepoBuildByRule", "cr");setUriPattern("/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build");setMethod(MethodType.PUT);}
public ModifyAvailabilityZoneGroupResult modifyAvailabilityZoneGroup(ModifyAvailabilityZoneGroupRequest request) {request = beforeClientExecution(request);return executeModifyAvailabilityZoneGroup(request);}
public int compareSameType(Object other) {assert exists || 0 == value.length();MutableValueStr b = (MutableValueStr)other;int c = value.get().compareTo(b.value.get());if (c != 0) return c;if (exists == b.exists) return 0;return exists ? 1 : -1;}
public CharSequence toQueryString(EscapeQuerySyntax escapeSyntaxParser) {if (getChildren() == null || getChildren().size() == 0)return "";StringBuilder sb = new StringBuilder();String filler = "";for (QueryNode child : getChildren()) {sb.append(filler).append(child.toQueryString(escapeSyntaxParser));filler = ",";}return "[TP[" + sb.toString() + "]]";}
public DescribeChangeSetResult describeChangeSet(DescribeChangeSetRequest request) {request = beforeClientExecution(request);return executeDescribeChangeSet(request);}
public static int initialize(int seed) {return seed;}
public File getIdentityFile() {return identityFile;}
public String toString() {String n = getClass().getName();int lastDot = n.lastIndexOf('.');if (lastDot >= 0) {n = n.substring(lastDot + 1);}return n.replace('$', '.');}
public DeleteVoiceConnectorProxyResult deleteVoiceConnectorProxy(DeleteVoiceConnectorProxyRequest request) {request = beforeClientExecution(request);return executeDeleteVoiceConnectorProxy(request);}
public ByteArrayDataInput(byte[] bytes) {reset(bytes);}
public CreateLocalGatewayRouteResult createLocalGatewayRoute(CreateLocalGatewayRouteRequest request) {request = beforeClientExecution(request);return executeCreateLocalGatewayRoute(request);}
public static int strlen(char[] a, int start) {int len = 0;for (int i = start; i < a.length && a[i] != 0; i++) {len++;}return len;}
public AttachPolicyResult attachPolicy(AttachPolicyRequest request) {request = beforeClientExecution(request);return executeAttachPolicy(request);}
public void print(double dnum) {print(String.valueOf(dnum));}
public static BreakIterator getCharacterInstance() {return getCharacterInstance(Locale.getDefault());}
public boolean add(E object) {throw new UnsupportedOperationException();}
public SendMessageRequest(String queueUrl, String messageBody) {setQueueUrl(queueUrl);setMessageBody(messageBody);}
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {try {AreaEval reA = evaluateRef(arg0);AreaEval reB = evaluateRef(arg1);return resolveRange(reA, reB);} catch (EvaluationException e) {return e.getErrorEval();}}
public CharBuffer put(char[] src, int srcOffset, int charCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, charCount);if (charCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + charCount; ++i) {put(src[i]);}return this;}
public void writeByte(byte b) {assert slice != null;if (slice[upto] != 0) {upto = pool.allocSlice(slice, upto);slice = pool.buffer;offset0 = pool.byteOffset;assert slice != null;}slice[upto++] = b;assert upto != slice.length;}
public static double atanh(double a) {final double mult;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);mult = -0.5d;} else {mult = 0.5d;}return mult * Math.log((1.0d + a) / (1.0d - a));}
public static double asinh(double a) {final double sign;if (Double.doubleToRawLongBits(a) < 0) {a = Math.abs(a);sign = -1.0d;} else {sign = 1.0d;}return sign * Math.log(Math.sqrt(a * a + 1.0d) + a);}
public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){this.analyzer=analyzer;this.maxNumTerms = maxNumTerms;}
public boolean precpred(RuleContext localctx, int precedence) {return precedence >= _precedenceStack.peek();}
public UpdateStackResult updateStack(UpdateStackRequest request) {request = beforeClientExecution(request);return executeUpdateStack(request);}
public StartJumpserverRequest() {super("HPC", "2016-06-03", "StartJumpserver", "hpc");setMethod(MethodType.POST);}
public List<FastIgnoreRule> getRules() {return Collections.unmodifiableList(rules);}
public RefMap() {prefix = ""; packed = RefList.emptyList();loose = RefList.emptyList();resolved = RefList.emptyList();}
public Collection<ObjectId> getCandidates() {return candidates;}
public int get(Object key) {int index = findIndex(key, keys);if (keys[index] == key) {return values[index];}return -1;}
public String toStringEscaped(char[] enabledChars) {StringBuilder result = new StringBuilder();for (int i = 0; i < this.length(); i++) {if (this.chars[i] == '\\') {result.append('\\');} else {for (char character : enabledChars) {if (this.chars[i] == character && this.wasEscaped[i]) {result.append('\\');break;}}}result.append(this.chars[i]);}return result.toString();}
public DiffCommand setCached(boolean cached) {this.cached = cached;return this;}
public RevertCommand revert() {return new RevertCommand(repo);}
@Override public void clear() {if (size != 0) {Arrays.fill(table, null);entryForNullKey = null;modCount++;size = 0;}}
public static double log2(double x) {return Math.log(x) / LOG_2;}
public boolean isHorizontalBorder(){return horizontalBorder.isSet(field_1_options);}
public void validate() throws IllegalArgumentException {if (distErr != null && distErrPct != null)throw new IllegalArgumentException("Only distErr or distErrPct can be specified.");}
public DeleteConfigurationSetResult deleteConfigurationSet(DeleteConfigurationSetRequest request) {request = beforeClientExecution(request);return executeDeleteConfigurationSet(request);}
public boolean incrementToken() {if (used) {return false;}clearAttributes();termAttribute.append(value);offsetAttribute.setOffset(0, value.length());used = true;return true;}
public static DoubleBuffer wrap(double[] array, int start, int doubleCount) {Arrays.checkOffsetAndCount(array.length, start, doubleCount);DoubleBuffer buf = new ReadWriteDoubleArrayBuffer(array);buf.position = start;buf.limit = start + doubleCount;return buf;}
public DescribeSpotInstanceRequestsResult describeSpotInstanceRequests(DescribeSpotInstanceRequestsRequest request) {request = beforeClientExecution(request);return executeDescribeSpotInstanceRequests(request);}
public UpdateFieldLevelEncryptionConfigResult updateFieldLevelEncryptionConfig(UpdateFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeUpdateFieldLevelEncryptionConfig(request);}
public void setCachedResultTypeString() {specialCachedValue = FormulaSpecialCachedValue.createForString();}
public SpanNearBuilder(SpanQueryBuilder factory) {this.factory = factory;}
public long ramBytesUsed() {long sizeInBytes = 0;for(Map.Entry<String,DirectField> entry: fields.entrySet()) {sizeInBytes += entry.getKey().length() * Character.BYTES;sizeInBytes += entry.getValue().ramBytesUsed();}return sizeInBytes;}
public GlobalCluster deleteGlobalCluster(DeleteGlobalClusterRequest request) {request = beforeClientExecution(request);return executeDeleteGlobalCluster(request);}
public String toString() {return type.getSimpleName() + "[" + listener + "]";}
public void parseLine(DocData docData, String line) {int k1 = 0;int k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator title::date)!");}docData.setTitle(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2<0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (missing: separator date::body)!");}docData.setDate(line.substring(k1,k2));k1 = k2+1;k2 = line.indexOf(WriteLineDocTask.SEP, k1);if (k2>=0) {throw new RuntimeException("line: [" + line + "] is in an invalid format (too many separators)!");}docData.setBody(line.substring(k1));}
public boolean isLarge() {return false;}
public String toString() {StringBuilder sb = new StringBuilder();sb.append("TrackingRefUpdate[");sb.append(remoteName);sb.append(" -> ");sb.append(localName);if (forceUpdate)sb.append(" (forced)");sb.append(" ");sb.append(oldObjectId == null ? "" : oldObjectId.abbreviate(7).name());sb.append("..");sb.append(newObjectId == null ? "" : newObjectId.abbreviate(7).name());sb.append("]");return sb.toString();}
public DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes() {return describeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest());}
public DeleteTagsRequest() {super("Ots", "2016-06-20", "DeleteTags", "ots");setMethod(MethodType.POST);}
public ChartFormatRecord(RecordInputStream in) {field1_x_position = in.readInt();field2_y_position = in.readInt();field3_width = in.readInt();field4_height = in.readInt();field5_grbit = in.readUShort();field6_unknown = in.readUShort();}
public void dispatch(IndexChangedListener listener) {listener.onIndexChanged(this);}
public NameRecord cloneFilter(int filterDbNameIndex, int newSheetIndex){NameRecord origNameRecord = getNameRecord(filterDbNameIndex);int newExtSheetIx = checkExternSheet(newSheetIndex);Ptg[] ptgs = origNameRecord.getNameDefinition();for (int i=0; i< ptgs.length; i++) {Ptg ptg = ptgs[i];if (ptg instanceof Area3DPtg) {Area3DPtg a3p = (Area3DPtg) ((OperandPtg) ptg).copy();a3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = a3p;} else if (ptg instanceof Ref3DPtg) {Ref3DPtg r3p = (Ref3DPtg) ((OperandPtg) ptg).copy();r3p.setExternSheetIndex(newExtSheetIx);ptgs[i] = r3p;}}NameRecord newNameRecord = createBuiltInName(NameRecord.BUILTIN_FILTER_DB, newSheetIndex+1);newNameRecord.setNameDefinition(ptgs);newNameRecord.setHidden(true);return newNameRecord;}
public int read(byte[] b) throws IOException {int n = in.read(b);if (n == -1) {close();}return n;}
public void serializeArrayConstantData(LittleEndianOutput out) {int len = _byteEncoding.length-_encodedTokenLen;out.write(_byteEncoding, _encodedTokenLen, len);}
public GetGcmChannelResult getGcmChannel(GetGcmChannelRequest request) {request = beforeClientExecution(request);return executeGetGcmChannel(request);}
public long ramBytesUsed() {return indexReader.ramBytesUsed();}
public short getCalcMode(){return field_1_calcmode;}
public DeleteStreamResult deleteStream(DeleteStreamRequest request) {request = beforeClientExecution(request);return executeDeleteStream(request);}
public DoubleBuffer put(double[] src, int srcOffset, int doubleCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, doubleCount);if (doubleCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + doubleCount; ++i) {put(src[i]);}return this;}
public RevokeSecurityGroupEgressResult revokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest request) {request = beforeClientExecution(request);return executeRevokeSecurityGroupEgress(request);}