text
stringlengths
27
1.4k
public boolean equals(Object other) {if (!(other instanceof FloatBuffer)) {return false;}FloatBuffer otherBuffer = (FloatBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {float a = get(myPosition++);float b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}
public static void fill(float[] array, int start, int end, float value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
public DescribeReceiptRuleResult describeReceiptRule(DescribeReceiptRuleRequest request) {request = beforeClientExecution(request);return executeDescribeReceiptRule(request);}
public String toString() {return super.toString()+" "+prefix;}
public float tf(int freq, int passageLen) {float norm = k1 * ((1 - b) + b * (passageLen / pivot));return freq / (freq + norm);}
public DescribeModelResult describeModel(DescribeModelRequest request) {request = beforeClientExecution(request);return executeDescribeModel(request);}
public boolean markSupported() {return true;}
public ListEndpointConfigsResult listEndpointConfigs(ListEndpointConfigsRequest request) {request = beforeClientExecution(request);return executeListEndpointConfigs(request);}
public DescribeDBProxyTargetGroupsResult describeDBProxyTargetGroups(DescribeDBProxyTargetGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeDBProxyTargetGroups(request);}
public long size(DiffEntry.Side side, DiffEntry ent) throws IOException {switch (side) {case OLD:return oldSource.size(ent.oldPath, ent.oldId.toObjectId());case NEW:return newSource.size(ent.newPath, ent.newId.toObjectId());default:throw new IllegalArgumentException();}}
public GlobalReplicationGroup disassociateGlobalReplicationGroup(DisassociateGlobalReplicationGroupRequest request) {request = beforeClientExecution(request);return executeDisassociateGlobalReplicationGroup(request);}
public static void writeHeader(DataOutput out, String codec, int version) throws IOException {BytesRef bytes = new BytesRef(codec);if (bytes.length != codec.length() || bytes.length >= 128) {throw new IllegalArgumentException("codec must be simple ASCII, less than 128 characters in length [got " + codec + "]");}out.writeInt(CODEC_MAGIC);out.writeString(codec);out.writeInt(version);}
public PagedList<DedicatedCapacityInner> listByResourceGroup(String resourceGroupName) {PageImpl<DedicatedCapacityInner> page = new PageImpl<>();page.setItems(listByResourceGroupWithServiceResponseAsync(resourceGroupName).toBlocking().single().body());page.setNextPageLink(null);return new PagedList<DedicatedCapacityInner>(page) {@Overridepublic Page<DedicatedCapacityInner> nextPage(String nextPageLink) {return null;}};}
public DescribeIpGroupsResult describeIpGroups(DescribeIpGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeIpGroups(request);}
public final CoderResult flush(ByteBuffer out) {if (status != END && status != READY) {throw new IllegalStateException();}CoderResult result = implFlush(out);if (result == CoderResult.UNDERFLOW) {status = FLUSH;}return result;}
public final Type getType() {if (beginA < endA) {if (beginB < endB) {return Type.REPLACE;}return Type.DELETE;}if (beginB < endB) {return Type.INSERT;}return Type.EMPTY;}
public Builder() {this(false);}
public DescribeHsmConfigurationsResult describeHsmConfigurations(DescribeHsmConfigurationsRequest request) {request = beforeClientExecution(request);return executeDescribeHsmConfigurations(request);}
public boolean equals(Object other) {if (!(other instanceof DoubleBuffer)) {return false;}DoubleBuffer otherBuffer = (DoubleBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {double a = get(myPosition++);double b = otherBuffer.get(otherPosition++);equalSoFar = a == b || (a != a && b != b);}return equalSoFar;}
public int getSize() {return length;}
public FeatProtection() {securityDescriptor = new byte[0];}
public DeleteNotificationConfigurationResult deleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteNotificationConfiguration(request);}
public int get(int key) {return get(key, 0);}
public HSSFAnchor(int dx1, int dy1, int dx2, int dy2) {createEscherAnchor();setDx1(dx1);setDy1(dy1);setDx2(dx2);setDy2(dy2);}
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {switch (args.length) {case 3:return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], DEFAULT_ARG3, DEFAULT_ARG4);case 4: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, DEFAULT_ARG4);}case 5: {ValueEval arg3 = args[3];if(arg3 == MissingArgEval.instance) {arg3 = DEFAULT_ARG3;}ValueEval arg4 = args[4];if(arg4 == MissingArgEval.instance) {arg4 = DEFAULT_ARG4;}return evaluate(srcRowIndex, srcColumnIndex, args[0], args[1], args[2], arg3, arg4);}default:return ErrorEval.VALUE_INVALID;}}
public Toffs( int startOffset, int endOffset ){this.startOffset = startOffset;this.endOffset = endOffset;}
public GetDocumentationVersionResult getDocumentationVersion(GetDocumentationVersionRequest request) {request = beforeClientExecution(request);return executeGetDocumentationVersion(request);}
public static <T> T[] grow(T[] array, int minSize) {assert minSize >= 0 : "size must be positive (got " + minSize + "): likely integer overflow?";if (array.length < minSize) {final int newLength = oversize(minSize, RamUsageEstimator.NUM_BYTES_OBJECT_REF);return growExact(array, newLength);} else return array;}
public PurchaseProvisionedCapacityResult purchaseProvisionedCapacity(PurchaseProvisionedCapacityRequest request) {request = beforeClientExecution(request);return executePurchaseProvisionedCapacity(request);}
public ListenerHandle addRefsChangedListener(RefsChangedListener listener) {return addListener(RefsChangedListener.class, listener);}
public void drawRect(int x, int y, int width, int height){if (logger.check( POILogger.WARN ))logger.log(POILogger.WARN,"drawRect not supported");}
public DeleteGcmChannelResult deleteGcmChannel(DeleteGcmChannelRequest request) {request = beforeClientExecution(request);return executeDeleteGcmChannel(request);}
public String toString() {return "del=" + item;}
public int read(byte[] b, int off, int len) {if (ptr == data.length)return -1;int n = Math.min(available(), len);System.arraycopy(data, ptr, b, off, n);ptr += n;return n;}
public static String toHex(int value) {StringBuilder sb = new StringBuilder(8);writeHex(sb, value & 0xFFFFFFFFL, 8, "");return sb.toString();}
public DeleteFieldLevelEncryptionConfigResult deleteFieldLevelEncryptionConfig(DeleteFieldLevelEncryptionConfigRequest request) {request = beforeClientExecution(request);return executeDeleteFieldLevelEncryptionConfig(request);}
public AmazonS3EncryptionClient(AWSCredentials credentials,EncryptionMaterials encryptionMaterials) {this(credentials, new StaticEncryptionMaterialsProvider(encryptionMaterials));}
public FontDetails( String fontName, int height ){_fontName = fontName;_height = height;}
public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(LESSTHAN);buffer.append(operands[ 1 ]);return buffer.toString();}
public String toString() {return new String(this.buffer, 0, this.len);}
public WriteRequest(PutRequest putRequest) {setPutRequest(putRequest);}
public static String toHex(byte value) {StringBuilder sb = new StringBuilder(2);writeHex(sb, value & 0xFF, 2, "");return sb.toString();}
public int stem(char s[], int len) {return pluralStep.apply(s, len);}
public void write(byte[] b, int off, int len) {try {super.write(b, off, len);} catch (IOException e) {throw new RuntimeException(e);}}
public Set<Long> idSet() {return Collections.unmodifiableSet(dictionary.keySet());}
public BatchGetDeploymentsResult batchGetDeployments(BatchGetDeploymentsRequest request) {request = beforeClientExecution(request);return executeBatchGetDeployments(request);}
public QueryScorer(Query query, String field, String defaultField) {this.defaultField = defaultField;init(query, field, null, true);}
public long next() throws IOException {current = fstEnum.next();if (current == null) {return -1;} else {return current.output;}}
public GetApplicationDateRangeKpiResult getApplicationDateRangeKpi(GetApplicationDateRangeKpiRequest request) {request = beforeClientExecution(request);return executeGetApplicationDateRangeKpi(request);}
public TokenStream create(TokenStream input) {return new GalicianStemFilter(input);}
public ListHostedZonesResult listHostedZones(ListHostedZonesRequest request) {request = beforeClientExecution(request);return executeListHostedZones(request);}
public int getDepth() {return depth;}
public WindowTwoRecord(RecordInputStream in) {int size = in.remaining();field_1_options = in.readShort();field_2_top_row = in.readShort();field_3_left_col = in.readShort();field_4_header_color = in.readInt();if (size > 10){field_5_page_break_zoom = in.readShort();field_6_normal_zoom = in.readShort();}if (size > 14){ field_7_reserved = in.readInt();}}
public GetUsageResult getUsage(GetUsageRequest request) {request = beforeClientExecution(request);return executeGetUsage(request);}
public void setConfig(Config config) {super.setConfig(config);keepImages = config.get("keep.image.only.docs", true);String fileName = config.get("docs.file", null);if (fileName != null) {file = Paths.get(fileName).toAbsolutePath();}}
public ListSubscriptionsByTopicRequest(String topicArn) {setTopicArn(topicArn);}
public ListTablesRequest(String exclusiveStartTableName, Integer limit) {setExclusiveStartTableName(exclusiveStartTableName);setLimit(limit);}
public String toString() {return start + " to " + end;}
public final float get(int index) {checkIndex(index);return backingArray[offset + index];}
public LongBuffer duplicate() {return copy(this, mark);}
public ListManagedSchemaArnsResult listManagedSchemaArns(ListManagedSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListManagedSchemaArns(request);}
public DescribeSpotPriceHistoryResult describeSpotPriceHistory(DescribeSpotPriceHistoryRequest request) {request = beforeClientExecution(request);return executeDescribeSpotPriceHistory(request);}
public ListDevelopmentSchemaArnsResult listDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request) {request = beforeClientExecution(request);return executeListDevelopmentSchemaArns(request);}
public boolean equals(Object o) {if (!(o instanceof ATNConfig)) {return false;}return this.equals((ATNConfig)o);}
public DeleteEventsConfigurationResult deleteEventsConfiguration(DeleteEventsConfigurationRequest request) {request = beforeClientExecution(request);return executeDeleteEventsConfiguration(request);}
public static short sign(double d) {return (short) ((d == 0)? 0: (d < 0)? -1: 1);}
public void setFillerToken(String fillerToken) {this.fillerToken = null == fillerToken ? new char[0] : fillerToken.toCharArray();}
public UpdateDestinationResult updateDestination(UpdateDestinationRequest request) {request = beforeClientExecution(request);return executeUpdateDestination(request);}
public CreateEmailIdentityResult createEmailIdentity(CreateEmailIdentityRequest request) {request = beforeClientExecution(request);return executeCreateEmailIdentity(request);}
public PersonIdent getSourceAuthor() {return outCandidate.getAuthor();}
public StartMonitoringMembersResult startMonitoringMembers(StartMonitoringMembersRequest request) {request = beforeClientExecution(request);return executeStartMonitoringMembers(request);}
public void setLocalPatternChars(String data) {if (data == null) {throw new NullPointerException();}localPatternChars = data;}
public PersianNormalizationFilter(TokenStream input) {super(input);}
public void liftUp(Row in, List<Row> nodes) {Iterator<Cell> i = in.cells.values().iterator();for (; i.hasNext();) {Cell c = i.next();if (c.ref >= 0) {Row to = nodes.get(c.ref);int sum = to.uniformCmd(changeSkip);if (sum >= 0) {if (sum == c.cmd) {if (changeSkip) {if (c.skip != to.uniformSkip + 1) {continue;}c.skip = to.uniformSkip + 1;} else {c.skip = 0;}c.cnt += to.uniformCnt;c.ref = -1;} else if (c.cmd < 0) {c.cnt = to.uniformCnt;c.cmd = sum;c.ref = -1;if (changeSkip) {c.skip = to.uniformSkip + 1;} else {c.skip = 0;}}}}}}
public String toString() {StringBuilder r = new StringBuilder();r.append("SymbolicRef[");Ref cur = this;while (cur.isSymbolic()) {r.append(cur.getName());r.append(" -> ");cur = cur.getTarget();}r.append(cur.getName());r.append('=');r.append(ObjectId.toString(cur.getObjectId()));r.append("(");r.append(updateIndex); r.append(")]");return r.toString();}
public RemoveAllResourcePermissionsResult removeAllResourcePermissions(RemoveAllResourcePermissionsRequest request) {request = beforeClientExecution(request);return executeRemoveAllResourcePermissions(request);}
public DescribeResourceGroupsResult describeResourceGroups(DescribeResourceGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeResourceGroups(request);}
public SpatialArgs parse(String v, SpatialContext ctx) throws ParseException, InvalidShapeException {int idx = v.indexOf('(');int edx = v.lastIndexOf(')');if (idx < 0 || idx > edx) {throw new ParseException("missing parens: " + v, -1);}SpatialOperation op = SpatialOperation.get(v.substring(0, idx).trim());String body = v.substring(idx + 1, edx).trim();if (body.length() < 1) {throw new ParseException("missing body : " + v, idx + 1);}Shape shape = parseShape(body, ctx);SpatialArgs args = newSpatialArgs(op, shape);if (v.length() > (edx + 1)) {body = v.substring(edx + 1).trim();if (body.length() > 0) {Map<String, String> aa = parseMap(body);readNameValuePairs(args, aa);if (!aa.isEmpty()) {throw new IllegalArgumentException("unused parameters: " + aa);}}}args.validate();return args;}
public boolean wasDeltaAttempted() {int fmt = getFormat();return fmt == PACK_DELTA || fmt == PACK_WHOLE;}
public PutModelResult putModel(PutModelRequest request) {request = beforeClientExecution(request);return executePutModel(request);}
public String toString() {return String.valueOf(stateNumber);}
public CreatePlayerSessionResult createPlayerSession(CreatePlayerSessionRequest request) {request = beforeClientExecution(request);return executeCreatePlayerSession(request);}
public void serialize(LittleEndianOutput out) {out.writeByte(field_1_majorTickType);out.writeByte(field_2_minorTickType);out.writeByte(field_3_labelPosition);out.writeByte(field_4_background);out.writeInt(field_5_labelColorRgb);out.writeInt(field_6_zero1);out.writeInt(field_7_zero2);out.writeInt(field_8_zero3);out.writeInt(field_9_zero4);out.writeShort(field_10_options);out.writeShort(field_11_tickColor);out.writeShort(field_12_zero5);}
public ModifyVpcTenancyResult modifyVpcTenancy(ModifyVpcTenancyRequest request) {request = beforeClientExecution(request);return executeModifyVpcTenancy(request);}
public GetBasePathMappingsResult getBasePathMappings(GetBasePathMappingsRequest request) {request = beforeClientExecution(request);return executeGetBasePathMappings(request);}
public void add(BytesRef utf8) {if (closed) throw new IllegalStateException();buffer.append(utf8);}
public void notifyUpdateCell(HSSFCell cell) {_bookEvaluator.notifyUpdateCell(new HSSFEvaluationCell(cell));}
public AddApplicationReferenceDataSourceResult addApplicationReferenceDataSource(AddApplicationReferenceDataSourceRequest request) {request = beforeClientExecution(request);return executeAddApplicationReferenceDataSource(request);}
public NIOFSIndexInput(String resourceDesc, FileChannel fc, long off, long length, int bufferSize) {super(resourceDesc, bufferSize);this.channel = fc;this.off = off;this.end = off + length;this.isClone = true;}
@Override public Iterator<K> iterator() {final Iterator<Entry<K, V>> iterator = filteredEntrySet.iterator();return new UnmodifiableIterator<K>();}
public TokenStream create(TokenStream input) {return new IndonesianStemFilter(input, stemDerivational);}
public SubmoduleStatusCommand addPath(String path) {paths.add(path);return this;}
public PutInsightRuleResult putInsightRule(PutInsightRuleRequest request) {request = beforeClientExecution(request);return executePutInsightRule(request);}
public JapaneseReadingFormFilterFactory(Map<String,String> args) {super(args);useRomaji = getBoolean(args, ROMAJI_PARAM, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public GetVpcLinkResult getVpcLink(GetVpcLinkRequest request) {request = beforeClientExecution(request);return executeGetVpcLink(request);}
public boolean evaluate(boolean cmpResult) {switch (_code) {case NONE:case EQ:return cmpResult;case NE:return !cmpResult;}throw new RuntimeException("Cannot call boolean evaluate on non-equality operator '"+ _representation + "'");}
public int getEnd() {return end;}
@Override public String toString() {if (string != null) {return string;}StringBuilder result = new StringBuilder();if (scheme != null) {result.append(scheme);result.append(':');}if (opaque) {result.append(schemeSpecificPart);} else {if (authority != null) {result.append("");result.append(authority);}if (path != null) {result.append(path);}if (query != null) {result.append('?');result.append(query);}}if (fragment != null) {result.append('#');result.append(fragment);}string = result.toString();return string;}
public static final ObjectId fromRaw(byte[] bs, int p) {final int a = NB.decodeInt32(bs, p);final int b = NB.decodeInt32(bs, p + 4);final int c = NB.decodeInt32(bs, p + 8);final int d = NB.decodeInt32(bs, p + 12);final int e = NB.decodeInt32(bs, p + 16);return new ObjectId(a, b, c, d, e);}
public int maxRecall(QualityQuery query) {QRelJudgement qrj = judgements.get(query.getQueryID());if (qrj!=null) {return qrj.maxRecall();}return 0;}