text
stringlengths
27
1.4k
public ShortBuffer put(short[] src, int srcOffset, int shortCount) {Arrays.checkOffsetAndCount(src.length, srcOffset, shortCount);if (shortCount > remaining()) {throw new BufferOverflowException();}for (int i = srcOffset; i < srcOffset + shortCount; ++i) {put(src[i]);}return this;}
public String toString() {if (getChildren() == null || getChildren().size() == 0)return "<multiPhrase/>";StringBuilder sb = new StringBuilder();sb.append("<multiPhrase>");for (QueryNode child : getChildren()) {sb.append("\n");sb.append(child.toString());}sb.append("\n</multiPhrase>");return sb.toString();}
public GetGatewayResponseResult getGatewayResponse(GetGatewayResponseRequest request) {request = beforeClientExecution(request);return executeGetGatewayResponse(request);}
public SubscribeRequest(String topicArn, String protocol, String endpoint) {setTopicArn(topicArn);setProtocol(protocol);setEndpoint(endpoint);}
public void setLengthNormFactors(int min, int max, float steepness, boolean discountOverlaps) {this.ln_min = min;this.ln_max = max;this.ln_steep = steepness;this.discountOverlaps = discountOverlaps;}
public void start() {mStartTime = ANIMATION_START;}
public DeleteLaunchConfigurationResult deleteLaunchConfiguration(DeleteLaunchConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteLaunchConfiguration(request);}
public void remove( Object record ) {int i = 0;for (org.apache.poi.hssf.record.Record r : records) {if (r == record) {remove(i);break;}i++;}}
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeShort(getFunctionIndex());}
public Term(String fld, BytesRef bytes) {field = fld;this.bytes = bytes == null ? null : BytesRef.deepCopyOf(bytes);}
public long ramBytesUsed() {return RamUsageEstimator.alignObjectSize(RamUsageEstimator.NUM_BYTES_OBJECT_HEADER+ RamUsageEstimator.NUM_BYTES_OBJECT_REF+ Long.BYTES+ Float.BYTES)+ current.ramBytesUsed();}
public int serialize( int offset, byte[] data){return serialize( offset, data, new NullEscherSerializationListener() );}
public String toString() {if (count == 0) {return "";}int wasted = value.length - count;if (wasted >= 256|| (wasted >= INITIAL_CAPACITY && wasted >= (count >> 1))) {return new String(value, 0, count);}shared = true;return new String(0, count, value);}
public void serialize(LittleEndianOutput out) {out.writeShort(field_1_protect);}
public AssociateResolverEndpointIpAddressResult associateResolverEndpointIpAddress(AssociateResolverEndpointIpAddressRequest request) {request = beforeClientExecution(request);return executeAssociateResolverEndpointIpAddress(request);}
public RevertCommand include(AnyObjectId commit) {return include(commit.getName(), commit);}
public static ByteBuffer wrap(byte[] array) {return new ReadWriteHeapByteBuffer(array);}
public void removeSecurity() {remove1stProperty(PropertyIDMap.PID_SECURITY);}
public ImportVolumeResult importVolume(ImportVolumeRequest request) {request = beforeClientExecution(request);return executeImportVolume(request);}
public boolean isDetectRenames() {return renameDetector != null;}
public CacheCluster rebootCacheCluster(RebootCacheClusterRequest request) {request = beforeClientExecution(request);return executeRebootCacheCluster(request);}
public DescribeTemplateAliasResult describeTemplateAlias(DescribeTemplateAliasRequest request) {request = beforeClientExecution(request);return executeDescribeTemplateAlias(request);}
public void reset() {if (overflow != null) {destroy();}if (blocks != null)blocks.clear();elseblocks = new ArrayList<>(initialBlocks);blocks.add(new Block(Math.min(inCoreLimit, Block.SZ)));}
public DescribeWorkspaceSnapshotsResult describeWorkspaceSnapshots(DescribeWorkspaceSnapshotsRequest request) {request = beforeClientExecution(request);return executeDescribeWorkspaceSnapshots(request);}
public void clear() {name = null;body = null;title = null;date = null;props = null;id = -1;}
public DeleteDistributionResult deleteDistribution(DeleteDistributionRequest request) {request = beforeClientExecution(request);return executeDeleteDistribution(request);}
public final long next() {assert hasNext();long result = currentValues[pOff++];if (pOff == currentCount) {vOff += 1;pOff = 0;fillBlock();}return result;}
public AttachInstancesToLoadBalancerResult attachInstancesToLoadBalancer(AttachInstancesToLoadBalancerRequest request) {request = beforeClientExecution(request);return executeAttachInstancesToLoadBalancer(request);}
public PrintSetupRecord(RecordInputStream in) {field_1_paper_size = in.readShort();field_2_scale = in.readShort();field_3_page_start = in.readShort();field_4_fit_width = in.readShort();field_5_fit_height = in.readShort();field_6_options = in.readShort();field_7_hresolution = in.readShort();field_8_vresolution = in.readShort();field_9_headermargin = in.readDouble();field_10_footermargin = in.readDouble();field_11_copies = in.readShort();}
public UpdateNotificationSettingsResult updateNotificationSettings(UpdateNotificationSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateNotificationSettings(request);}
public DescribeSnapshotAttributeResult describeSnapshotAttribute(DescribeSnapshotAttributeRequest request) {request = beforeClientExecution(request);return executeDescribeSnapshotAttribute(request);}
public ListDocumentClassificationJobsResult listDocumentClassificationJobs(ListDocumentClassificationJobsRequest request) {request = beforeClientExecution(request);return executeListDocumentClassificationJobs(request);}
public Item() {parent = 0;child = 0;}
public static final AbbreviatedObjectId fromObjectId(AnyObjectId id) {return new AbbreviatedObjectId(Constants.OBJECT_ID_STRING_LENGTH,id.w1, id.w2, id.w3, id.w4, id.w5);}
public String format(Object value) {StringBuffer sb = new StringBuffer();formatValue(sb, value);return sb.toString();}
public void processContinueRecord( byte[] record ){rawDataContainer.concatenate(record);}
public ListenerHandle addChangeListener(ConfigChangedListener listener) {return listeners.addConfigChangedListener(listener);}
public BlendedTermQuery build() {return new BlendedTermQuery(ArrayUtil.copyOfSubArray(terms, 0, numTerms),ArrayUtil.copyOfSubArray(boosts, 0, numTerms),ArrayUtil.copyOfSubArray(contexts, 0, numTerms),rewriteMethod);}
public void setFlagByBit(int bitmask, boolean enabled) {if (enabled) {flags |= bitmask;} else {flags &= (0xFFFF ^ bitmask);}}
public static double calculate(double pStartDateVal, double pEndDateVal, int basis) throws EvaluationException {if (basis < 0 || basis >= 5) {throw new EvaluationException(ErrorEval.NUM_ERROR);}int startDateVal = (int) Math.floor(pStartDateVal);int endDateVal = (int) Math.floor(pEndDateVal);if (startDateVal == endDateVal) {return 0;}if (startDateVal > endDateVal) {int temp = startDateVal;startDateVal = endDateVal;endDateVal = temp;}switch (basis) {case 0: return basis0(startDateVal, endDateVal);case 1: return basis1(startDateVal, endDateVal);case 2: return basis2(startDateVal, endDateVal);case 3: return basis3(startDateVal, endDateVal);case 4: return basis4(startDateVal, endDateVal);}throw new IllegalStateException("cannot happen");}
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 = " ";}if ((getParent() != null && getParent() instanceof GroupQueryNode)|| isRoot())return sb.toString();else return "( " + sb.toString() + " )";}
public ByteBuffer putDouble(int index, double value) {throw new ReadOnlyBufferException();}
public GetVoiceConnectorGroupResult getVoiceConnectorGroup(GetVoiceConnectorGroupRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorGroup(request);}
public BatchUpdateUserResult batchUpdateUser(BatchUpdateUserRequest request) {request = beforeClientExecution(request);return executeBatchUpdateUser(request);}
public String toString() {return new String(chars, offset, length);}
public DescribeStorageResult describeStorage(DescribeStorageRequest request) {request = beforeClientExecution(request);return executeDescribeStorage(request);}
public void close() {flush();}
public void close() throws IOException {super.close();}
public final void backup(int amount) {bufferPosition -= amount;}
public UpdateDashboardPublishedVersionResult updateDashboardPublishedVersion(UpdateDashboardPublishedVersionRequest request) {request = beforeClientExecution(request);return executeUpdateDashboardPublishedVersion(request);}
public DocumentStoredFieldVisitor(String... fields) {fieldsToAdd = new HashSet<>(fields.length);for(String field : fields) {fieldsToAdd.add(field);}}
public ResumeGameServerGroupResult resumeGameServerGroup(ResumeGameServerGroupRequest request) {request = beforeClientExecution(request);return executeResumeGameServerGroup(request);}
public PushCommand setPushAll() {refSpecs.add(Transport.REFSPEC_PUSH_ALL);return this;}
public DBSnapshot createDBSnapshot(CreateDBSnapshotRequest request) {request = beforeClientExecution(request);return executeCreateDBSnapshot(request);}
public boolean willSoonExpire() {if (roleSessionDurationSeconds == 0) {return false;}long now = System.currentTimeMillis();double expireFact = 0.95;return roleSessionDurationSeconds * expireFact < (now - sessionStartedTimeInMilliSeconds) / 1000.0;}
public List<Interval> getIntervals() {return intervals;}
public GetNamespaceRequest() {super("cr", "2016-06-07", "GetNamespace", "cr");setUriPattern("/namespace/[Namespace]");setMethod(MethodType.GET);}
public DeleteVpcRequest(String vpcId) {setVpcId(vpcId);}
public long ramBytesUsed() {long bytesUsed = BASE_RAM_BYTES_USED;if (dict != null) {bytesUsed += dict.ramBytesUsed();}return bytesUsed;}
public final ValueEval evaluate(ValueEval[] args, int srcRow, int srcCol) {if (args.length < 1) {return ErrorEval.VALUE_INVALID;}boolean boolResult;try {boolResult = calculate(args);} catch (EvaluationException e) {return e.getErrorEval();}return BoolEval.valueOf(boolResult);}
public void println(String str) {synchronized (lock) {print(str);println();}}
public TypedPropertyValue( int type, Object value ) {_type = type;_value = value;}
public FloatBuffer duplicate() {ByteBuffer bb = byteBuffer.duplicate().order(byteBuffer.order());FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(bb);buf.limit = limit;buf.position = position;buf.mark = mark;return buf;}
public MigrateWorkspaceResult migrateWorkspace(MigrateWorkspaceRequest request) {request = beforeClientExecution(request);return executeMigrateWorkspace(request);}
public GetRequestValidatorResult getRequestValidator(GetRequestValidatorRequest request) {request = beforeClientExecution(request);return executeGetRequestValidator(request);}
public String toString() { return toString(false); }
public ForgetSmartHomeAppliancesResult forgetSmartHomeAppliances(ForgetSmartHomeAppliancesRequest request) {request = beforeClientExecution(request);return executeForgetSmartHomeAppliances(request);}
public DeleteApiResult deleteApi(DeleteApiRequest request) {request = beforeClientExecution(request);return executeDeleteApi(request);}
public void setKeyProgressIncrement(int increment) {mKeyProgressIncrement = increment < 0 ? -increment : increment;}
public boolean addAll(final IntList c){if (c._limit != 0){if ((_limit + c._limit) > _array.length){growArray(_limit + c._limit);}System.arraycopy(c._array, 0, _array, _limit, c._limit);_limit += c._limit;}return true;}
public DVRecord createDVRecord(HSSFSheet sheet) {FormulaPair fp = _constraint.createFormulas(sheet);return new DVRecord(_constraint.getValidationType(),_constraint.getOperator(),_errorStyle, _emptyCellAllowed, getSuppressDropDownArrow(),_constraint.getValidationType()==ValidationType.LIST && _constraint.getExplicitListValues()!=null,_showPromptBox, _prompt_title, _prompt_text,_showErrorBox, _error_title, _error_text,fp.getFormula1(), fp.getFormula2(),_regions);}
public boolean evaluate(int cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult == 0;case NE: return cmpResult != 0;case LT: return cmpResult < 0;case LE: return cmpResult <= 0;case GT: return cmpResult > 0;case GE: return cmpResult >= 0;}throw new RuntimeException("Cannot call boolean evaluate on non-equality operator '"+ _representation + "'");}
public boolean isCancelled() {return false;}
public ListHoursOfOperationsResult listHoursOfOperations(ListHoursOfOperationsRequest request) {request = beforeClientExecution(request);return executeListHoursOfOperations(request);}
public int serialize(int offset, byte [] data) {throw new RecordFormatException("Label Records are supported READ ONLY...convert to LabelSST");}
public URI normalize() {if (opaque) {return this;}String normalizedPath = normalize(path, false);if (path.equals(normalizedPath)) {return this;}URI result = duplicate();result.path = normalizedPath;result.setSchemeSpecificPart();return result;}
public FreeRefFunction findUserDefinedFunction(String functionName) {return _udfFinder.findFunction(functionName);}
public UpdateGatewayResponseResult updateGatewayResponse(UpdateGatewayResponseRequest request) {request = beforeClientExecution(request);return executeUpdateGatewayResponse(request);}
public GetOperationDetailResult getOperationDetail(GetOperationDetailRequest request) {request = beforeClientExecution(request);return executeGetOperationDetail(request);}
public String toString(String field) {StringBuilder buffer = new StringBuilder();if (!getField().equals(field)) {buffer.append(getField());buffer.append(":");}buffer.append(term.text());return buffer.toString();}
public NameXPtg getNameXPtg(String name, UDFFinder udf) {return getNameXPtg(name, -1, udf);}
public String getCharsetName() {return charsetName;}
public DescribeWebsiteCertificateAuthorityResult describeWebsiteCertificateAuthority(DescribeWebsiteCertificateAuthorityRequest request) {request = beforeClientExecution(request);return executeDescribeWebsiteCertificateAuthority(request);}
static public double ppmt(double r, int per, int nper, double pv, double fv) {return pmt(r, nper, pv, fv) - ipmt(r, per, nper, pv, fv);}
public ShortBuffer put(int index, short c) {throw new ReadOnlyBufferException();}
public void writeBytes(String value) throws IOException {checkWritePrimitiveTypes();primitiveTypes.writeBytes(value);}
public LinkTable(int numberOfSheets, WorkbookRecordList workbookRecordList) {_workbookRecordList = workbookRecordList;_definedNames = new ArrayList<>();_externalBookBlocks = new ExternalBookBlock[]{new ExternalBookBlock(numberOfSheets),};_externSheetRecord = new ExternSheetRecord();_recordCount = 2;SupBookRecord supbook = _externalBookBlocks[0].getExternalBookRecord();int idx = findFirstRecordLocBySid(CountryRecord.sid);if (idx < 0) {throw new RuntimeException("CountryRecord not found");}_workbookRecordList.add(idx + 1, _externSheetRecord);_workbookRecordList.add(idx + 1, supbook);}
public void remove() {throw new UnsupportedOperationException();}
public static int[] grow(int[] array) {return grow(array, 1 + array.length);}
public void addAll(T[] src, int srcIdx, int srcCnt) {while (0 < srcCnt) {int i = tailBlkIdx;int n = Math.min(srcCnt, BLOCK_SIZE - i);if (n == 0) {add(src[srcIdx++]);srcCnt--;continue;}System.arraycopy(src, srcIdx, tailBlock, i, n);tailBlkIdx += n;size += n;srcIdx += n;srcCnt -= n;}}
public RenewDomainResult renewDomain(RenewDomainRequest request) {request = beforeClientExecution(request);return executeRenewDomain(request);}
public static boolean isInRange(int i) {return i >= MIN_VALUE && i <= MAX_VALUE;}
public AddApplicationInputResult addApplicationInput(AddApplicationInputRequest request) {request = beforeClientExecution(request);return executeAddApplicationInput(request);}
public Request<DeletePublicKeyRequest> marshall(DeletePublicKeyRequest deletePublicKeyRequest) {if (deletePublicKeyRequest == null) {throw new SdkClientException("Invalid argument passed to marshall(...)");}Request<DeletePublicKeyRequest> request = new DefaultRequest<DeletePublicKeyRequest>(deletePublicKeyRequest, "AmazonCloudFront");request.setHttpMethod(HttpMethodName.DELETE);if (deletePublicKeyRequest.getIfMatch() != null) {request.addHeader("If-Match", StringUtils.fromString(deletePublicKeyRequest.getIfMatch()));}String uriResourcePath = "/2019-03-26/public-key/{Id}";uriResourcePath = com.amazonaws.transform.PathMarshallers.NON_GREEDY.marshall(uriResourcePath, "Id", deletePublicKeyRequest.getId());request.setResourcePath(uriResourcePath);return request;}
public boolean matches(ParseTree tree) {return matcher.match(tree, this).succeeded();}
public CreateDetectorResult createDetector(CreateDetectorRequest request) {request = beforeClientExecution(request);return executeCreateDetector(request);}
public boolean equals(Object other) {if (other instanceof IndexCommit) {IndexCommit otherCommit = (IndexCommit) other;return otherCommit.getDirectory() == getDirectory() && otherCommit.getGeneration() == getGeneration();} else {return false;}}
public void yypushback(int number) {if ( number > yylength() )zzScanError(ZZ_PUSHBACK_2BIG);zzMarkedPos -= number;}
public ValueEval evaluate(int srcRowIndex, int srcColumnIndex, ValueEval arg0, ValueEval arg1) {return fixed(arg0, arg1, BoolEval.FALSE, srcRowIndex, srcColumnIndex);}
public RevisionSyntaxException(String message, String revstr) {super(message);this.revstr = revstr;}