text
stringlengths
27
1.4k
public RegisterInstanceEventNotificationAttributesResult registerInstanceEventNotificationAttributes(RegisterInstanceEventNotificationAttributesRequest request) {request = beforeClientExecution(request);return executeRegisterInstanceEventNotificationAttributes(request);}
public PutRuleResult putRule(PutRuleRequest request) {request = beforeClientExecution(request);return executePutRule(request);}
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 CleanCommand setPaths(Set<String> paths) {this.paths = paths;return this;}
public int getLevelForDistance(double dist) {if (dist == 0)return maxLevels;final int level = GeohashUtils.lookupHashLenForWidthHeight(dist, dist);return Math.max(Math.min(level, maxLevels), 1);}
public StartDocumentTextDetectionResult startDocumentTextDetection(StartDocumentTextDetectionRequest request) {request = beforeClientExecution(request);return executeStartDocumentTextDetection(request);}
public String getLine() {return firstWant.getLine();}
public ValueEval getItem(int index) {if(index > _size) {throw new ArrayIndexOutOfBoundsException("Specified index (" + index+ ") is outside the allowed range (0.." + (_size-1) + ")");}return _tableArray.getValue(_rowIndex, index);}
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[IFMT]\n");buffer.append(" .formatIndex = ").append("0x").append(HexDump.toHex( getFormatIndex ())).append(" (").append( getFormatIndex() ).append(" )");buffer.append(System.getProperty("line.separator"));buffer.append("[/IFMT]\n");return buffer.toString();}
public SubmoduleSyncCommand(Repository repo) {super(repo);paths = new ArrayList<>();}
public void registerWorkflowType(RegisterWorkflowTypeRequest request) {request = beforeClientExecution(request);executeRegisterWorkflowType(request);}
public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset,int length) {this.chars = new char[length];this.wasEscaped = new boolean[length];System.arraycopy(chars, offset, this.chars, 0, length);System.arraycopy(wasEscaped, offset, this.wasEscaped, 0, length);}
public CreateDatasetGroupResult createDatasetGroup(CreateDatasetGroupRequest request) {request = beforeClientExecution(request);return executeCreateDatasetGroup(request);}
public boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;FieldVals other = (FieldVals) obj;if (fieldName == null) {if (other.fieldName != null)return false;} else if (!fieldName.equals(other.fieldName))return false;if (maxEdits != other.maxEdits) {return false;}if (prefixLength != other.prefixLength)return false;if (queryString == null) {if (other.queryString != null)return false;} else if (!queryString.equals(other.queryString))return false;return true;}
public BuildSuggestersResult buildSuggesters(BuildSuggestersRequest request) {request = beforeClientExecution(request);return executeBuildSuggesters(request);}
public GetRelationalDatabaseBundlesResult getRelationalDatabaseBundles(GetRelationalDatabaseBundlesRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseBundles(request);}
public String getMessages() {return messageBuffer != null ? messageBuffer.toString() : ""; }
public DelimitedPayloadTokenFilter(TokenStream input, char delimiter, PayloadEncoder encoder) {super(input);this.delimiter = delimiter;this.encoder = encoder;}
public void setPrintArea(int sheetIndex, int startColumn, int endColumn,int startRow, int endRow) {CellReference cell = new CellReference(startRow, startColumn, true, true);String reference = cell.formatAsString();cell = new CellReference(endRow, endColumn, true, true);reference = reference+":"+cell.formatAsString();setPrintArea(sheetIndex, reference);}
public void normalise64bit() {int oldBitLen = _significand.bitLength();int sc = oldBitLen - C_64;if (sc == 0) {return;}if (sc < 0) {throw new IllegalStateException("Not enough precision");}_binaryExponent += sc;if (sc > 32) {int highShift = (sc-1) & 0xFFFFE0;_significand = _significand.shiftRight(highShift);sc -= highShift;oldBitLen -= highShift;}if (sc < 1) {throw new IllegalStateException();}_significand = Rounder.round(_significand, sc);if (_significand.bitLength() > oldBitLen) {sc++;_binaryExponent++;}_significand = _significand.shiftRight(sc);}
public ObjRecord(RecordInputStream in) {byte[] subRecordData = in.readRemainder();if (LittleEndian.getUShort(subRecordData, 0) != CommonObjectDataSubRecord.sid) {_uninterpretedData = subRecordData;return;}LittleEndianByteArrayInputStream subRecStream = new LittleEndianByteArrayInputStream(subRecordData);CommonObjectDataSubRecord cmo = (CommonObjectDataSubRecord)SubRecord.createSubRecord(subRecStream, 0);subrecords.add(cmo);while (true) {SubRecord subRecord = SubRecord.createSubRecord(subRecStream, cmo.getObjectType());subrecords.add(subRecord);if (subRecord.isTerminating()) {break;}}final int nRemainingBytes = subRecordData.length-subRecStream.getReadIndex();if (nRemainingBytes > 0) {_isPaddedToQuadByteMultiple = subRecordData.length % MAX_PAD_ALIGNMENT == 0;if (nRemainingBytes >= (_isPaddedToQuadByteMultiple ? MAX_PAD_ALIGNMENT : NORMAL_PAD_ALIGNMENT)) {if (!canPaddingBeDiscarded(subRecordData, nRemainingBytes)) {String msg = "Leftover " + nRemainingBytes+ " bytes in subrecord data " + HexDump.toHex(subRecordData);throw new RecordFormatException(msg);}_isPaddedToQuadByteMultiple = false;}} else {_isPaddedToQuadByteMultiple = false;}_uninterpretedData = null;}
public FrenchLightStemFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
@Override public int size() {Slice slice = this.slice;return slice.to - slice.from;}
public boolean equals(Object other) {if (!(other instanceof IntBuffer)) {return false;}IntBuffer otherBuffer = (IntBuffer) other;if (remaining() != otherBuffer.remaining()) {return false;}int myPosition = position;int otherPosition = otherBuffer.position;boolean equalSoFar = true;while (equalSoFar && (myPosition < limit)) {equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++);}return equalSoFar;}
public static void fill(char[] array, int start, int end, char value) {Arrays.checkStartAndEnd(array.length, start, end);for (int i = start; i < end; i++) {array[i] = value;}}
public String toString(){StringBuilder buffer = new StringBuilder();buffer.append("[CALCMODE]\n");buffer.append(" .calcmode = ").append(Integer.toHexString(getCalcMode())).append("\n");buffer.append("[/CALCMODE]\n");return buffer.toString();}
public void setCurrent(String value){current = value.toCharArray();cursor = 0;limit = value.length();limit_backward = 0;bra = cursor;ket = limit;}
public ShortBuffer put(int index, short c) {checkIndex(index);backingArray[offset + index] = c;return this;}
public EventSubscription deleteEventSubscription(DeleteEventSubscriptionRequest request) {request = beforeClientExecution(request);return executeDeleteEventSubscription(request);}
public void setTokenType(String tokenType) {this.tokenType = tokenType;}
public NumericDocValuesField(String name, long value) {this(name, Long.valueOf(value));}
public AddTagsRequest(String resourceId) {setResourceId(resourceId);}
public ValueEval getRefEval(int rowIndex, int columnIndex) {SheetRangeEvaluator sre = getRefEvaluatorForCurrentSheet();return new LazyRefEval(rowIndex, columnIndex, sre);}
public DescribeTaskDefinitionResult describeTaskDefinition(DescribeTaskDefinitionRequest request) {request = beforeClientExecution(request);return executeDescribeTaskDefinition(request);}
public void sort() {if (count > 1) ArrayUtil.timSort(points, 0, count);}
public static final RevFilter before(long ts) {return new Before(ts);}
public void set(E object) {throw new UnsupportedOperationException();}
public EscherDggRecord getDgg() {return dgg;}
public ListenerHandle addConfigChangedListener(ConfigChangedListener listener) {return addListener(ConfigChangedListener.class, listener);}
public DetectSentimentResult detectSentiment(DetectSentimentRequest request) {request = beforeClientExecution(request);return executeDetectSentiment(request);}
public void decode(byte[] blocks, int blocksOffset, long[] values, int valuesOffset, int iterations) {for (int j = 0; j < iterations; ++j) {final byte block = blocks[blocksOffset++];values[valuesOffset++] = (block >>> 6) & 3;values[valuesOffset++] = (block >>> 4) & 3;values[valuesOffset++] = (block >>> 2) & 3;values[valuesOffset++] = block & 3;}}
public HeaderRecord clone() {return copy();}
public CreateEndpointConfigResult createEndpointConfig(CreateEndpointConfigRequest request) {request = beforeClientExecution(request);return executeCreateEndpointConfig(request);}
public Interpolator getInterpolator() {return mInterpolator;}
public GetSolutionMetricsResult getSolutionMetrics(GetSolutionMetricsRequest request) {request = beforeClientExecution(request);return executeGetSolutionMetrics(request);}
public StopActivityStreamResult stopActivityStream(StopActivityStreamRequest request) {request = beforeClientExecution(request);return executeStopActivityStream(request);}
public ListTypedLinkFacetAttributesResult listTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request) {request = beforeClientExecution(request);return executeListTypedLinkFacetAttributes(request);}
public ListSentimentDetectionJobsResult listSentimentDetectionJobs(ListSentimentDetectionJobsRequest request) {request = beforeClientExecution(request);return executeListSentimentDetectionJobs(request);}
public GetAccountSendingEnabledResult getAccountSendingEnabled(GetAccountSendingEnabledRequest request) {request = beforeClientExecution(request);return executeGetAccountSendingEnabled(request);}
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;}
public void simpleValue(StringBuffer toAppendTo, Object value) {formatValue(toAppendTo, value);}
public BatchCheckLayerAvailabilityResult batchCheckLayerAvailability(BatchCheckLayerAvailabilityRequest request) {request = beforeClientExecution(request);return executeBatchCheckLayerAvailability(request);}
public void clearSubRecords() {subrecords.clear();}
public List<Ref> call() throws GitAPIException {checkCallable();List<Ref> tags = new ArrayList<>();try (RevWalk revWalk = new RevWalk(repo)) {List<Ref> refList = repo.getRefDatabase().getRefsByPrefix(Constants.R_TAGS);for (Ref ref : refList) {tags.add(ref);}} catch (IOException e) {throw new JGitInternalException(e.getMessage(), e);}Collections.sort(tags,(Ref o1, Ref o2) -> o1.getName().compareTo(o2.getName()));setCallable(false);return tags;}
public synchronized void clear() {cache.clear();}
public int indexOf(E object, int from) {Object[] snapshot = elements;return indexOf(object, snapshot, from, snapshot.length);}
public String highlightTerm(String originalText, TokenGroup tokenGroup) {if (tokenGroup.getTotalScore() == 0)return originalText;float score = tokenGroup.getTotalScore();if (score == 0) {return originalText;}StringBuilder sb = new StringBuilder(originalText.length() + EXTRA);sb.append("<span style=\"");if (highlightForeground) {sb.append("color: ");sb.append(getForegroundColorString(score));sb.append("; ");}if (highlightBackground) {sb.append("background: ");sb.append(getBackgroundColorString(score));sb.append("; ");}sb.append("\">");sb.append(originalText);sb.append("</span>");return sb.toString();}
public PasswordRecord getPasswordRecord() {return _passwordRecord;}
public SlicedIndexInput clone() {SlicedIndexInput clone = (SlicedIndexInput)super.clone();clone.base = base.clone();clone.fileOffset = fileOffset;clone.length = length;return clone;}
public int getSourceLine(int idx) {return sourceLines[idx] - 1;}
public DeleteResolverRuleResult deleteResolverRule(DeleteResolverRuleRequest request) {request = beforeClientExecution(request);return executeDeleteResolverRule(request);}
static public double ppmt(double r, int per, int nper, double pv, double fv, int type) {return pmt(r, nper, pv, fv, type) - ipmt(r, per, nper, pv, fv, type);}
@Override public Set<K> keySet() {return navigableKeySet();}
public boolean stem() {if (!r_more_than_one_syllable_word()){return false;}limit_backward = cursor;cursor = limit;int v_1 = limit - cursor;r_stem_nominal_verb_suffixes();cursor = limit - v_1;if (!(B_continue_stemming_noun_suffixes)){return false;}int v_2 = limit - cursor;r_stem_noun_suffixes();cursor = limit - v_2;cursor = limit_backward;if (!r_postlude()){return false;}return true;}
public ListShardsResult listShards(ListShardsRequest request) {request = beforeClientExecution(request);return executeListShards(request);}
public SearcherAndTaxonomy(IndexSearcher searcher, DirectoryTaxonomyReader taxonomyReader) {this.searcher = searcher;this.taxonomyReader = taxonomyReader;}
public TreeFilter clone() {return this;}
public void set(int index, long value) {final int o = index / 6;final int b = index % 6;final int shift = b * 10;blocks[o] = (blocks[o] & ~(1023L << shift)) | (value << shift);}
public boolean add(String text) {return map.put(text, PLACEHOLDER) == null;}
public Position get(int pos) {while(pos >= nextPos) {if (count == positions.length) {Position[] newPositions = new Position[ArrayUtil.oversize(1+count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];System.arraycopy(positions, nextWrite, newPositions, 0, positions.length-nextWrite);System.arraycopy(positions, 0, newPositions, positions.length-nextWrite, nextWrite);for(int i=positions.length;i<newPositions.length;i++) {newPositions[i] = new Position();}nextWrite = positions.length;positions = newPositions;}if (nextWrite == positions.length) {nextWrite = 0;}assert positions[nextWrite].count == 0;positions[nextWrite++].pos = nextPos++;count++;}assert inBounds(pos);final int index = getIndex(pos);assert positions[index].pos == pos;return positions[index];}
public synchronized void reset() {pos = 0;}
public void configure(FacetsConfig config) {for(int i=0;i<maxDims;i++) {config.setHierarchical(Integer.toString(i), true);config.setMultiValued(Integer.toString(i), true);}}
public boolean equals(Object obj) {if (obj == null)return false;if (obj == this)return true;if (obj.getClass() != getClass())return false;HSSFClientAnchor anchor = (HSSFClientAnchor) obj;return anchor.getCol1() == getCol1() && anchor.getCol2() == getCol2() && anchor.getDx1() == getDx1()&& anchor.getDx2() == getDx2() && anchor.getDy1() == getDy1() && anchor.getDy2() == getDy2()&& anchor.getRow1() == getRow1() && anchor.getRow2() == getRow2() && anchor.getAnchorType() == getAnchorType();}
public Set<String> getMissing() {return Collections.unmodifiableSet(diff.getMissing());}
public static IndexWriterConfig createWriterConfig(Config config, PerfRunData runData, OpenMode mode, IndexCommit commit) {IndexWriterConfig iwConf = new IndexWriterConfig(runData.getAnalyzer());iwConf.setOpenMode(mode);IndexDeletionPolicy indexDeletionPolicy = getIndexDeletionPolicy(config);iwConf.setIndexDeletionPolicy(indexDeletionPolicy);if (commit != null) {iwConf.setIndexCommit(commit);}final String mergeScheduler = config.get("merge.scheduler","org.apache.lucene.index.ConcurrentMergeScheduler");if (mergeScheduler.equals(NoMergeScheduler.class.getName())) {iwConf.setMergeScheduler(NoMergeScheduler.INSTANCE);} else {try {iwConf.setMergeScheduler(Class.forName(mergeScheduler).asSubclass(MergeScheduler.class).getConstructor().newInstance());} catch (Exception e) {}}}
public GetCapacityReservationUsageResult getCapacityReservationUsage(GetCapacityReservationUsageRequest request) {request = beforeClientExecution(request);return executeGetCapacityReservationUsage(request);}
public void addRule(HSSFConditionalFormattingRule cfRule) {cfAggregate.addRule(cfRule.getCfRuleRecord());}
public DocState(boolean reuseFields, FieldType ft, FieldType bodyFt) {this.reuseFields = reuseFields;if (reuseFields) {fields = new HashMap<>();numericFields = new HashMap<>();fields.put(BODY_FIELD, new Field(BODY_FIELD, "", bodyFt));fields.put(TITLE_FIELD, new Field(TITLE_FIELD, "", ft));fields.put(DATE_FIELD, new Field(DATE_FIELD, "", ft));fields.put(ID_FIELD, new StringField(ID_FIELD, "", Field.Store.YES));fields.put(NAME_FIELD, new Field(NAME_FIELD, "", ft));numericFields.put(DATE_MSEC_FIELD, new LongPoint(DATE_MSEC_FIELD, 0L));numericFields.put(TIME_SEC_FIELD, new IntPoint(TIME_SEC_FIELD, 0));doc = new Document();} else {numericFields = null;fields = null;doc = null;}}
public char[] getValue() {return value;}
public void updateNameCommentRecordCache(final NameCommentRecord commentRecord) {if(commentRecords.containsValue(commentRecord)) {for(Entry<String,NameCommentRecord> entry : commentRecords.entrySet()) {if(entry.getValue().equals(commentRecord)) {commentRecords.remove(entry.getKey());break;}}}commentRecords.put(commentRecord.getNameText(), commentRecord);}
public CompleteMultipartUploadRequest(String vaultName, String uploadId, String archiveSize, String checksum) {setVaultName(vaultName);setUploadId(uploadId);setArchiveSize(archiveSize);setChecksum(checksum);}
public Query getQuery(Element n) throws ParserException {QueryBuilder builder = builders.get(n.getNodeName());if (builder == null) {throw new ParserException("No QueryObjectBuilder defined for node " + n.getNodeName());}return builder.getQuery(n);}
public static double nper(double r, double y, double p, double f, boolean t) {double retval = 0;if (r == 0) {retval = -1 * (f + p) / y;} else {double r1 = r + 1;double ryr = (t ? r1 : 1) * y / r;double a1 = ((ryr - f) < 0)? Math.log(f - ryr): Math.log(ryr - f);double a2 = ((ryr - f) < 0)? Math.log(-p - ryr): Math.log(p + ryr);double a3 = Math.log(r1);retval = (a1 - a2) / a3;}return retval;}
public AndQueryNode(List<QueryNode> clauses) {super(clauses);if ((clauses == null) || (clauses.size() == 0)) {throw new IllegalArgumentException("AND query must have at least one clause");}}
public SeriesListRecord(short[] seriesNumbers) {field_1_seriesNumbers = (seriesNumbers == null) ? null : seriesNumbers.clone();}
public String toString() {return value + ", " + begin + ", " + end;}
public String toString() {return "<StandardQueryParser config=\"" + this.getQueryConfigHandler()+ "\"/>";}
public DescribeActivitiesResult describeActivities(DescribeActivitiesRequest request) {request = beforeClientExecution(request);return executeDescribeActivities(request);}
public int writeTokenValueBytes(LittleEndianOutput out) {out.writeByte(_nColumns-1);out.writeShort(_nRows-1);ConstantValueParser.encode(out, _arrayValues);return 3 + ConstantValueParser.getEncodedSize(_arrayValues);}
public DescribeFleetMetadataResult describeFleetMetadata(DescribeFleetMetadataRequest request) {request = beforeClientExecution(request);return executeDescribeFleetMetadata(request);}
public GlobalCluster modifyGlobalCluster(ModifyGlobalClusterRequest request) {request = beforeClientExecution(request);return executeModifyGlobalCluster(request);}
public DescribeIdentityIdFormatResult describeIdentityIdFormat(DescribeIdentityIdFormatRequest request) {request = beforeClientExecution(request);return executeDescribeIdentityIdFormat(request);}
public ListUserGroupsResult listUserGroups(ListUserGroupsRequest request) {request = beforeClientExecution(request);return executeListUserGroups(request);}
public RevertCommand include(String name, AnyObjectId commit) {return include(new ObjectIdRef.Unpeeled(Storage.LOOSE, name,commit.copy()));}
public BeiderMorseFilter(TokenStream input, PhoneticEngine engine, LanguageSet languages) {super(input);this.engine = engine;this.languages = languages;}
public ListUsersResult listUsers(ListUsersRequest request) {request = beforeClientExecution(request);return executeListUsers(request);}
public PutUserPolicyRequest(String userName, String policyName, String policyDocument) {setUserName(userName);setPolicyName(policyName);setPolicyDocument(policyDocument);}
public synchronized void trimToSize() {super.trimToSize();}
public void serialize(LittleEndianOutput out) {out.writeShort(getWindowing());}
public AreaValueArray(TwoDEval ae) {super(ae.getWidth() * ae.getHeight());_ae = ae;_width = ae.getWidth();}