text
stringlengths
27
1.4k
public String toString() {String biffName = getBiffName(_sid);if (biffName == null) {biffName = "UNKNOWNRECORD";}StringBuilder sb = new StringBuilder();sb.append('[').append(biffName).append("] (0x");sb.append(Integer.toHexString(_sid).toUpperCase(Locale.ROOT)).append(")\n");if (_rawData.length > 0) {sb.append(" rawData=").append(HexDump.toHex(_rawData)).append("\n");}sb.append("[/").append(biffName).append("]\n");return sb.toString();}
public int nextPosition() throws IOException {if (doc != 0) {throw new IllegalStateException();} else if (i >= termFreq - 1) {throw new IllegalStateException("Read past last position");}++i;if (payloadIndex != null) {payload.offset = basePayloadOffset + payloadIndex[positionIndex + i];payload.length = payloadIndex[positionIndex + i + 1] - payloadIndex[positionIndex + i];}if (positions == null) {return -1;} else {return positions[positionIndex + i];}}
public MergeDeveloperIdentitiesResult mergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request) {request = beforeClientExecution(request);return executeMergeDeveloperIdentities(request);}
public CreateUserRequest(String userName) {setUserName(userName);}
public ReplaceNetworkAclEntryResult replaceNetworkAclEntry(ReplaceNetworkAclEntryRequest request) {request = beforeClientExecution(request);return executeReplaceNetworkAclEntry(request);}
public boolean isFastForward() {return fastForward;}
public List<Integer> getLLDecisions() {DecisionInfo[] decisions = atnSimulator.getDecisionInfo();List<Integer> LL = new ArrayList<Integer>();for (int i=0; i<decisions.length; i++) {long fallBack = decisions[i].LL_Fallback;if ( fallBack>0 ) LL.add(i);}return LL;}
public UpdateModelResult updateModel(UpdateModelRequest request) {request = beforeClientExecution(request);return executeUpdateModel(request);}
public int getEndIndex() {return end;}
public DeleteVPCAssociationAuthorizationResult deleteVPCAssociationAuthorization(DeleteVPCAssociationAuthorizationRequest request) {request = beforeClientExecution(request);return executeDeleteVPCAssociationAuthorization(request);}
public GetMediaResult getMedia(GetMediaRequest request) {request = beforeClientExecution(request);return executeGetMedia(request);}
public DeltaRecord clone() {return copy();}
public TableRestoreStatus restoreTableFromClusterSnapshot(RestoreTableFromClusterSnapshotRequest request) {request = beforeClientExecution(request);return executeRestoreTableFromClusterSnapshot(request);}
public void writeInt(int v) {int b3 = (v >>> 24) & 0xFF;int b2 = (v >>> 16) & 0xFF;int b1 = (v >>> 8) & 0xFF;int b0 = (v) & 0xFF;try {out.write(b0);out.write(b1);out.write(b2);out.write(b3);} catch (IOException e) {throw new RuntimeException(e);}}
public static Query parse(String[] queries, String[] fields, Analyzer analyzer)throws QueryNodeException {if (queries.length != fields.length)throw new IllegalArgumentException("queries.length != fields.length");BooleanQuery.Builder bQuery = new BooleanQuery.Builder();StandardQueryParser qp = new StandardQueryParser();qp.setAnalyzer(analyzer);for (int i = 0; i < fields.length; i++) {Query q = qp.parse(queries[i], fields[i]);if (q != null) { bQuery.add(q, BooleanClause.Occur.SHOULD);}}return bQuery.build();}
public UpdateQualificationTypeResult updateQualificationType(UpdateQualificationTypeRequest request) {request = beforeClientExecution(request);return executeUpdateQualificationType(request);}
public void removeTemplate() {remove1stProperty(PropertyIDMap.PID_TEMPLATE);}
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {int nInnerArgs = args.length-1; if (nInnerArgs < 1) {return ErrorEval.VALUE_INVALID;}final Function innerFunc;int functionCode = 0;try {ValueEval ve = OperandResolver.getSingleValue(args[0], srcRowIndex, srcColumnIndex);functionCode = OperandResolver.coerceValueToInt(ve);innerFunc = findFunction(functionCode);} catch (EvaluationException e) {return e.getErrorEval();}final List<ValueEval> list = new ArrayList<>(Arrays.asList(args).subList(1, args.length));Iterator<ValueEval> it = list.iterator();while(it.hasNext()) {ValueEval eval = it.next();if(eval instanceof LazyRefEval) {LazyRefEval lazyRefEval = (LazyRefEval) eval;if(lazyRefEval.isSubTotal()) {it.remove();}if (functionCode > 100 && lazyRefEval.isRowHidden()) {it.remove();}}}return innerFunc.evaluate(list.toArray(new ValueEval[0]), srcRowIndex, srcColumnIndex);}
public InstanceGroupConfig(InstanceRoleType instanceRole, String instanceType, Integer instanceCount) {setInstanceRole(instanceRole.toString());setInstanceType(instanceType);setInstanceCount(instanceCount);}
public LeftMarginRecord(RecordInputStream in) {field_1_margin = in.readDouble();}
public DescribeTrialComponentResult describeTrialComponent(DescribeTrialComponentRequest request) {request = beforeClientExecution(request);return executeDescribeTrialComponent(request);}
public AssociateSubnetCidrBlockResult associateSubnetCidrBlock(AssociateSubnetCidrBlockRequest request) {request = beforeClientExecution(request);return executeAssociateSubnetCidrBlock(request);}
@Override public Iterator<E> iterator() {return new MapBasedMultisetIterator();}
public GetQueueAttributesResult getQueueAttributes(String queueUrl, java.util.List<String> attributeNames) {return getQueueAttributes(new GetQueueAttributesRequest().withQueueUrl(queueUrl).withAttributeNames(attributeNames));}
public final int getBeginA() {return beginA;}
public String toString() {return "NoLock";}
public boolean contains(Object object) {return backingMap.containsKey(object);}
public String toString() {return "arc=" + fstArc + " state=" + fsaState;}
public void clear() {ArrayList <HSSFShape> copy = new ArrayList<>(shapes);for (HSSFShape shape: copy){removeShape(shape);}}
public String toString() {return "PerFieldAnalyzerWrapper(" + fieldAnalyzers + ", default=" + defaultAnalyzer + ")";}
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory) {int bytesRemaining = readHeader( data, offset );int available = data.length - (offset + 8);if (bytesRemaining > available) {bytesRemaining = available;}if (isContainerRecord()) {int bytesWritten = 0;thedata = new byte[0];offset += 8;bytesWritten += 8;while ( bytesRemaining > 0 ) {EscherRecord child = recordFactory.createRecord( data, offset );int childBytesWritten = child.fillFields( data, offset, recordFactory );bytesWritten += childBytesWritten;offset += childBytesWritten;bytesRemaining -= childBytesWritten;getChildRecords().add( child );}return bytesWritten;}if (bytesRemaining < 0) {bytesRemaining = 0;}thedata = IOUtils.safelyAllocate(bytesRemaining, MAX_RECORD_LENGTH);System.arraycopy( data, offset + 8, thedata, 0, bytesRemaining );return bytesRemaining + 8;}
public AssociatePhoneNumberWithUserResult associatePhoneNumberWithUser(AssociatePhoneNumberWithUserRequest request) {request = beforeClientExecution(request);return executeAssociatePhoneNumberWithUser(request);}
public FieldQuery getFieldQuery( Query query ) {try {return getFieldQuery(query, null);} catch (IOException e) {throw new RuntimeException (e);}}
public int getXBATEntriesPerBlock() {return getBATEntriesPerBlock() - 1;}
public static CellRangeAddress createEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB) {if( crB == null) {return crA.copy();}int minRow = lt(crB.getFirstRow(), crA.getFirstRow()) ?crB.getFirstRow() :crA.getFirstRow();int maxRow = gt(crB.getLastRow(), crA.getLastRow()) ?crB.getLastRow() :crA.getLastRow();int minCol = lt(crB.getFirstColumn(),crA.getFirstColumn())?crB.getFirstColumn():crA.getFirstColumn();int maxCol = gt(crB.getLastColumn(), crA.getLastColumn()) ?crB.getLastColumn() :crA.getLastColumn();return new CellRangeAddress(minRow, maxRow, minCol, maxCol);}
public static char[] grow(char[] array, int minSize) {assert minSize >= 0: "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {return growExact(array, oversize(minSize, Character.BYTES));} else return array;}
public void setLineStyleColor(int red, int green, int blue) {int lineStyleColor = ((blue) << 16) | ((green) << 8) | red;setPropertyValue(new EscherRGBProperty(EscherPropertyTypes.LINESTYLE__COLOR, lineStyleColor));}
public CreateFileSystemResult createFileSystem(CreateFileSystemRequest request) {request = beforeClientExecution(request);return executeCreateFileSystem(request);}
public DeleteVaultRequest(String accountId, String vaultName) {setAccountId(accountId);setVaultName(vaultName);}
public ByteBuffer read(int length, long position) {if(position >= size) {throw new IndexOutOfBoundsException("Unable to read " + length + " bytes from " +position + " in stream of length " + size);}int toRead = (int)Math.min(length, size - position);return ByteBuffer.wrap(buffer, (int)position, toRead);}
public boolean addPushRefSpec(RefSpec s) {if (push.contains(s))return false;return push.add(s);}
public ViewBillingResult viewBilling(ViewBillingRequest request) {request = beforeClientExecution(request);return executeViewBilling(request);}
public final char getChar() {int newPosition = position + SizeOf.CHAR;if (newPosition > limit) {throw new BufferUnderflowException();}char result = (char) Memory.peekShort(backingArray, offset + position, order);position = newPosition;return result;}
public SpanQuery getSpanQuery(Element e) throws ParserException {String fieldName = DOMUtils.getAttributeWithInheritanceOrFail(e, "fieldName");String value = DOMUtils.getNonBlankTextOrFail(e);List<SpanQuery> clausesList = new ArrayList<>();try (TokenStream ts = analyzer.tokenStream(fieldName, value)) {TermToBytesRefAttribute termAtt = ts.addAttribute(TermToBytesRefAttribute.class);ts.reset();while (ts.incrementToken()) {SpanTermQuery stq = new SpanTermQuery(new Term(fieldName, BytesRef.deepCopyOf(termAtt.getBytesRef())));clausesList.add(stq);}ts.end();SpanOrQuery soq = new SpanOrQuery(clausesList.toArray(new SpanQuery[clausesList.size()]));float boost = DOMUtils.getAttribute(e, "boost", 1.0f);return new SpanBoostQuery(soq, boost);}catch (IOException ioe) {throw new ParserException("IOException parsing value:" + value);}}
public UpdateGatewayResult updateGateway(UpdateGatewayRequest request) {request = beforeClientExecution(request);return executeUpdateGateway(request);}
public boolean getCachedBooleanValue() {return specialCachedValue.getBooleanValue();}
public DeleteIdentityPoolResult deleteIdentityPool(DeleteIdentityPoolRequest request) {request = beforeClientExecution(request);return executeDeleteIdentityPool(request);}
public PutSuppressedDestinationResult putSuppressedDestination(PutSuppressedDestinationRequest request) {request = beforeClientExecution(request);return executePutSuppressedDestination(request);}
public PutEventsResult putEvents(PutEventsRequest request) {request = beforeClientExecution(request);return executePutEvents(request);}
public GetRecommendationsResult getRecommendations(GetRecommendationsRequest request) {request = beforeClientExecution(request);return executeGetRecommendations(request);}
public boolean equals(Object obj) {if (this == obj) return true;if (obj instanceof SegmentInfo) {final SegmentInfo other = (SegmentInfo) obj;return other.dir == dir && other.name.equals(name);} else {return false;}}
public HSSFDataFormat createDataFormat() {if (formatter == null) {formatter = new HSSFDataFormat(workbook);}return formatter;}
public UpdateFaceRequest() {super("LinkFace", "2018-07-20", "UpdateFace");setProtocol(ProtocolType.HTTPS);setMethod(MethodType.POST);}
public void serialize(LittleEndianOutput out) {out.writeDouble(getMaxChange());}
public ModifyVpcEndpointServicePermissionsResult modifyVpcEndpointServicePermissions(ModifyVpcEndpointServicePermissionsRequest request) {request = beforeClientExecution(request);return executeModifyVpcEndpointServicePermissions(request);}
public IntervalSet nextTokens(ATNState s) {if ( s.nextTokenWithinRule != null ) return s.nextTokenWithinRule;s.nextTokenWithinRule = nextTokens(s, null);s.nextTokenWithinRule.setReadonly(true);return s.nextTokenWithinRule;}
public GetResourceResult getResource(GetResourceRequest request) {request = beforeClientExecution(request);return executeGetResource(request);}
public String toString() {StringBuilder buffer = new StringBuilder();buffer.append("[HYPERLINK RECORD]\n");buffer.append(" .range = ").append(_range.formatAsString()).append("\n");buffer.append(" .guid = ").append(_guid.toString()).append("\n");buffer.append(" .linkOpts= ").append(HexDump.intToHex(_linkOpts)).append("\n");buffer.append(" .label = ").append(getLabel()).append("\n");if ((_linkOpts & HLINK_TARGET_FRAME) != 0) {buffer.append(" .targetFrame= ").append(getTargetFrame()).append("\n");}if((_linkOpts & HLINK_URL) != 0 && _moniker != null) {buffer.append(" .moniker = ").append(_moniker.toString()).append("\n");}if ((_linkOpts & HLINK_PLACE) != 0) {buffer.append(" .textMark= ").append(getTextMark()).append("\n");}buffer.append(" .address = ").append(getAddress()).append("\n");buffer.append("[/HYPERLINK RECORD]\n");return buffer.toString();}
public CreateFacetResult createFacet(CreateFacetRequest request) {request = beforeClientExecution(request);return executeCreateFacet(request);}
@Override public int indexOf(Object object) {final int size;final Object[] array;synchronized (mutex) {size = list.size();array = new Object[size];list.toArray(array);}if (object != null) {for (int i = 0; i < size; i++) {if (object.equals(array[i])) {return i;}}} else {for (int i = 0; i < size; i++) {if (array[i] == null) {return i;}}}return -1;}
public static PrintOrientation valueOf(int value){return _table[value];}
public DefineExpressionResult defineExpression(DefineExpressionRequest request) {request = beforeClientExecution(request);return executeDefineExpression(request);}
public long getLastModified() {return attributes.getLastModifiedInstant().toEpochMilli();}
public void close() {buffer = null;size = -1;}
public StartEntitiesDetectionJobResult startEntitiesDetectionJob(StartEntitiesDetectionJobRequest request) {request = beforeClientExecution(request);return executeStartEntitiesDetectionJob(request);}
public boolean processMatch(ValueEval eval) {if(result == null) {result = eval;}else {if(result instanceof BlankEval) {result = eval;}else {if(!(eval instanceof BlankEval)) {result = ErrorEval.NUM_ERROR;return false;}}}return true;}
public TokenTagToken(String tokenName, int type, String label) {super(type);this.tokenName = tokenName;this.label = label;}
public void reset(boolean zeroFillBuffers, boolean reuseFirst) {if (bufferUpto != -1) {if (zeroFillBuffers) {for(int i=0;i<bufferUpto;i++) {Arrays.fill(buffers[i], (byte) 0);}Arrays.fill(buffers[bufferUpto], 0, byteUpto, (byte) 0);}if (bufferUpto > 0 || !reuseFirst) {final int offset = reuseFirst ? 1 : 0;allocator.recycleByteBlocks(buffers, offset, 1+bufferUpto);Arrays.fill(buffers, offset, 1+bufferUpto, null);}if (reuseFirst) {bufferUpto = 0;byteUpto = 0;byteOffset = 0;buffer = buffers[0];} else {bufferUpto = -1;byteUpto = BYTE_BLOCK_SIZE;byteOffset = -BYTE_BLOCK_SIZE;buffer = null;}}}
public UpdateExpirationForHITResult updateExpirationForHIT(UpdateExpirationForHITRequest request) {request = beforeClientExecution(request);return executeUpdateExpirationForHIT(request);}
public Policy(String id) {this.id = id;}
public UpdateApplicationVersionRequest(String applicationName, String versionLabel) {setApplicationName(applicationName);setVersionLabel(versionLabel);}
public String getEmailAddress() {final int lt = RawParseUtils.nextLF(buffer, valStart, '<');if (valEnd <= lt) {final int at = RawParseUtils.nextLF(buffer, valStart, '@');if (valStart < at && at < valEnd)return getValue();return null;}final int gt = RawParseUtils.nextLF(buffer, lt, '>');if (valEnd < gt)return null;return RawParseUtils.decode(enc, buffer, lt, gt - 1);}
public String simpleFormat(Object value) {StringBuffer sb = new StringBuffer();simpleValue(sb, value);return sb.toString();}
public RevFilter clone() {return new NotRevFilter(a.clone());}
public static int finish(int hash, int numberOfWords) {hash = hash ^ (numberOfWords * 4);hash = hash ^ (hash >>> 16);hash = hash * 0x85EBCA6B;hash = hash ^ (hash >>> 13);hash = hash * 0xC2B2AE35;hash = hash ^ (hash >>> 16);return hash;}
public StempelFilter(TokenStream in, StempelStemmer stemmer, int minLength) {super(in);this.stemmer = stemmer;this.minLength = minLength;}
public GetIntegrationResponseResult getIntegrationResponse(GetIntegrationResponseRequest request) {request = beforeClientExecution(request);return executeGetIntegrationResponse(request);}
public PostToConnectionResult postToConnection(PostToConnectionRequest request) {request = beforeClientExecution(request);return executePostToConnection(request);}
public TermRangeQueryNode(FieldQueryNode lower, FieldQueryNode upper,boolean lowerInclusive, boolean upperInclusive) {setBounds(lower, upper, lowerInclusive, upperInclusive);}
public QueryParser(CharStream stream) {token_source = new QueryParserTokenManager(stream);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 CreateSchemaResult createSchema(CreateSchemaRequest request) {request = beforeClientExecution(request);return executeCreateSchema(request);}
public V get(char[] text, int off, int len) {if(text == null)throw new NullPointerException();return null;}
public List<CharsRef> stem(String word) {return stem(word.toCharArray(), word.length());}
public DeleteSmsTemplateResult deleteSmsTemplate(DeleteSmsTemplateRequest request) {request = beforeClientExecution(request);return executeDeleteSmsTemplate(request);}
public void setPassword(short pw) {field_1_password = pw;}
public CharBuffer append(char c) {return put(c);}
public PutVoiceConnectorLoggingConfigurationResult putVoiceConnectorLoggingConfiguration(PutVoiceConnectorLoggingConfigurationRequest request) {request = beforeClientExecution(request);return executePutVoiceConnectorLoggingConfiguration(request);}
public boolean isAbsolute() {return path.length() > 0 && path.charAt(0) == separatorChar;}
public CreateSnapshotRequest(String volumeId, String description) {setVolumeId(volumeId);setDescription(description);}
public static ReaderIterator getReaderIteratorNoHeader(DataInput in, Format format, int version,int valueCount, int bitsPerValue, int mem) {checkVersion(version);return new PackedReaderIterator(format, version, valueCount, bitsPerValue, in, mem);}
public DoubleBuffer put(int index, double c) {throw new ReadOnlyBufferException();}
public StashDropCommand stashDrop() {return new StashDropCommand(repo);}
public boolean isUnmappable() {return this.type == TYPE_UNMAPPABLE_CHAR;}
public byte readByte() {checkPosition(1);return (byte)read();}
public void decode(long[] blocks, int blocksOffset, int[] values,int valuesOffset, int iterations) {if (bitsPerValue > 32) {throw new UnsupportedOperationException("Cannot decode " + bitsPerValue + "-bits values into an int[]");}for (int i = 0; i < iterations; ++i) {final long block = blocks[blocksOffset++];valuesOffset = decode(block, values, valuesOffset);}}
public CustomAnalyzerConfig build() {return new CustomAnalyzerConfig(this);}
public UpdateAddressBookResult updateAddressBook(UpdateAddressBookRequest request) {request = beforeClientExecution(request);return executeUpdateAddressBook(request);}
public String toString() {return String.format("Point [%dx%d]", x, y);}
public DescribeAccountAttributesResult describeAccountAttributes(DescribeAccountAttributesRequest request) {request = beforeClientExecution(request);return executeDescribeAccountAttributes(request);}
public static final RevFilter before(long ts) {return new Before(ts);}