text
stringlengths
27
1.4k
public ListHealthChecksResult listHealthChecks() {return listHealthChecks(new ListHealthChecksRequest());}
public boolean equals(Object obj) {if (!(obj instanceof File)) {return false;}return path.equals(((File) obj).getPath());}
public ListPhotoStoresRequest() {super("CloudPhoto", "2017-07-11", "ListPhotoStores", "cloudphoto");setProtocol(ProtocolType.HTTPS);}
public PutAccessControlRuleResult putAccessControlRule(PutAccessControlRuleRequest request) {request = beforeClientExecution(request);return executePutAccessControlRule(request);}
public StopTrainingEntityRecognizerResult stopTrainingEntityRecognizer(StopTrainingEntityRecognizerRequest request) {request = beforeClientExecution(request);return executeStopTrainingEntityRecognizer(request);}
public GetRevisionResult getRevision(GetRevisionRequest request) {request = beforeClientExecution(request);return executeGetRevision(request);}
public HSSFPicture createPicture(HSSFChildAnchor anchor, int pictureIndex) {HSSFPicture shape = new HSSFPicture(this, anchor);shape.setParent(this);shape.setAnchor(anchor);shape.setPictureIndex(pictureIndex);shapes.add(shape);onCreate(shape);EscherSpRecord sp = shape.getEscherContainer().getChildById(EscherSpRecord.RECORD_ID);if (shape.getAnchor().isHorizontallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPHORIZ);}if (shape.getAnchor().isVerticallyFlipped()){sp.setFlags(sp.getFlags() | EscherSpRecord.FLAG_FLIPVERT);}return shape;}
public RecordSizingVisitor() {_totalSize = 0;}
public UpdateApplicationSettingsResult updateApplicationSettings(UpdateApplicationSettingsRequest request) {request = beforeClientExecution(request);return executeUpdateApplicationSettings(request);}
public LogCommand addPath(String path) {checkCallable();pathFilters.add(PathFilter.create(path));return this;}
public GetRelationalDatabaseLogStreamsResult getRelationalDatabaseLogStreams(GetRelationalDatabaseLogStreamsRequest request) {request = beforeClientExecution(request);return executeGetRelationalDatabaseLogStreams(request);}
public FloatBuffer compact() {if (byteBuffer.isReadOnly()) {throw new ReadOnlyBufferException();}byteBuffer.limit(limit * SizeOf.FLOAT);byteBuffer.position(position * SizeOf.FLOAT);byteBuffer.compact();byteBuffer.clear();position = limit - position;limit = capacity;mark = UNSET_MARK;return this;}
public void serialize(LittleEndianOutput out) {out.writeInt(field_1_lineColor);out.writeShort(field_2_linePattern);out.writeShort(field_3_weight);out.writeShort(field_4_format);out.writeShort(field_5_colourPaletteIndex);}
public DBInstanceAutomatedBackup deleteDBInstanceAutomatedBackup(DeleteDBInstanceAutomatedBackupRequest request) {request = beforeClientExecution(request);return executeDeleteDBInstanceAutomatedBackup(request);}
public MultiSimilarity(Similarity sims[]) {this.sims = sims;}
public final Explanation explain(BasicStats stats, double tfn) {return Explanation.match((float) (scoreTimes1pTfn(stats) / (1 + tfn)),getClass().getSimpleName()+ ", computed as (F + 1) / (n * (tfn + 1)) from:",Explanation.match((float) tfn, "tfn, normalized term frequency"),Explanation.match(stats.getTotalTermFreq(),"F, total number of occurrences of term across all documents + 1"),Explanation.match(stats.getDocFreq(),"n, number of documents containing term + 1"),Explanation.match((float) tfn, "tfn, normalized term frequency"));}
public GetNodeResult getNode(GetNodeRequest request) {request = beforeClientExecution(request);return executeGetNode(request);}
public CreateCapacityProviderResult createCapacityProvider(CreateCapacityProviderRequest request) {request = beforeClientExecution(request);return executeCreateCapacityProvider(request);}
public String[] listAll() throws IOException {List<String> files = new ArrayList<>();NoSuchFileException exc = null;try {for(String f : primaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext)) {files.add(f);}}} catch (NoSuchFileException e) {exc = e;}try {for(String f : secondaryDir.listAll()) {String ext = getExtension(f);if (primaryExtensions.contains(ext) == false) {files.add(f);}}} catch (NoSuchFileException e) {if (exc != null) {throw exc;}if (files.isEmpty()) {throw e;}}if (exc != null && files.isEmpty()) {throw exc;}String[] result = files.toArray(new String[files.size()]);Arrays.sort(result);return result;}
public int readUByte() {return readByte() & 0xFF;}
public NumberEval(double value) {_value = value;}
@Override public Iterator<E> iterator() {synchronized (mutex) {return c.iterator();}}
public String getInflectionType(int wordId) {return null;}
public GetDeliverabilityDashboardOptionsResult getDeliverabilityDashboardOptions(GetDeliverabilityDashboardOptionsRequest request) {request = beforeClientExecution(request);return executeGetDeliverabilityDashboardOptions(request);}
public static double getExcelDate(LocalDateTime date) {return getExcelDate(date, false);}
public String getBaseForm(int wordId, char surface[], int off, int len) {return null; }
public DescribeDhcpOptionsResult describeDhcpOptions() {return describeDhcpOptions(new DescribeDhcpOptionsRequest());}
public FormatRecord(int indexCode, String fs) {field_1_index_code = indexCode;field_4_formatstring = fs;field_3_hasMultibyte = StringUtil.hasMultibyte(fs);}
public String getPrintArea(int sheetIndex) {NameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);if (name == null) {return null;}return HSSFFormulaParser.toFormulaString(this, name.getNameDefinition());}
public CreateLoadBalancerResult createLoadBalancer(CreateLoadBalancerRequest request) {request = beforeClientExecution(request);return executeCreateLoadBalancer(request);}
public GetVoiceConnectorTerminationHealthResult getVoiceConnectorTerminationHealth(GetVoiceConnectorTerminationHealthRequest request) {request = beforeClientExecution(request);return executeGetVoiceConnectorTerminationHealth(request);}
public CRNCountRecord(RecordInputStream in) {field_1_number_crn_records = in.readShort();if(field_1_number_crn_records < 0) {field_1_number_crn_records = (short)-field_1_number_crn_records;}field_2_sheet_table_index = in.readShort();}
public BOFRecord(RecordInputStream in) {field_1_version = in.readShort();field_2_type = in.readShort();if (in.remaining() >= 2) {field_3_build = in.readShort();}if (in.remaining() >= 2) {field_4_year = in.readShort();}if (in.remaining() >= 4) {field_5_history = in.readInt();}if (in.remaining() >= 4) {field_6_rversion = in.readInt();}}
public AcsRequest buildRequest() {if (uriPattern != null) {CommonRoaRequest request = new CommonRoaRequest(product);request.setSysUriPattern(uriPattern);for (String pathParamKey : pathParameters.keySet()) {request.putPathParameter(pathParamKey, pathParameters.get(pathParamKey));}fillParams(request);return request;} else {CommonRpcRequest request = new CommonRpcRequest(product);fillParams(request);return request;}}
public void undeleteAll() {for (FakeDeleteLeafIndexReader r : getSequentialSubReaders()) {r.undeleteAll();}}
public final String GetImage() {return new String(buffer, tokenStart, bufferPosition - tokenStart);}
public DescribeComponentResult describeComponent(DescribeComponentRequest request) {request = beforeClientExecution(request);return executeDescribeComponent(request);}
public RoaringDocIdSet build() {flush();return new RoaringDocIdSet(sets, cardinality);}
public TokenStream create(TokenStream input) {return new GermanNormalizationFilter(input);}
public DrillSideways(IndexSearcher searcher, FacetsConfig config, TaxonomyReader taxoReader,SortedSetDocValuesReaderState state) {this(searcher, config, taxoReader, state, null);}
public DescribeAnalysisSchemesResult describeAnalysisSchemes(DescribeAnalysisSchemesRequest request) {request = beforeClientExecution(request);return executeDescribeAnalysisSchemes(request);}
public PutTargetsResult putTargets(PutTargetsRequest request) {request = beforeClientExecution(request);return executePutTargets(request);}
public RevokeIpRulesResult revokeIpRules(RevokeIpRulesRequest request) {request = beforeClientExecution(request);return executeRevokeIpRules(request);}
public RegisterGameServerResult registerGameServer(RegisterGameServerRequest request) {request = beforeClientExecution(request);return executeRegisterGameServer(request);}
public void write(LittleEndianOutput out) {out.writeByte(sid + getPtgClass());out.writeByte(_options);out.writeShort(_data);int[] jt = _jumpTable;if (jt != null) {for (int i = 0; i < jt.length; i++) {out.writeShort(jt[i]);}out.writeShort(_chooseFuncOffset);}}
public int getCellsPnt() {Iterator<Character> i = cells.keySet().iterator();int size = 0;for (; i.hasNext();) {Character c = i.next();Cell e = at(c);if (e.ref >= 0) {size++;}}return size;}
public E removeFirst() {return removeFirstImpl();}
public String toString() {if (getChildren() == null || getChildren().size() == 0)return "<boolean operation='default'/>";StringBuilder sb = new StringBuilder();sb.append("<boolean operation='default'>");for (QueryNode child : getChildren()) {sb.append("\n");sb.append(child.toString());}sb.append("\n</boolean>");return sb.toString();}
public TokenStream create(TokenStream input) {return new TruncateTokenFilter(input, prefixLength);}
public String getErrorDisplay(int c) {String s = String.valueOf((char)c);switch ( c ) {case Token.EOF :s = "<EOF>";break;case '\n' :s = "\\n";break;case '\t' :s = "\\t";break;case '\r' :s = "\\r";break;}return s;}
public CreateContactResult createContact(CreateContactRequest request) {request = beforeClientExecution(request);return executeCreateContact(request);}
public Transition[][] getSortedTransitions() {int numStates = getNumStates();Transition[][] transitions = new Transition[numStates][];for(int s=0;s<numStates;s++) {int numTransitions = getNumTransitions(s);transitions[s] = new Transition[numTransitions];for(int t=0;t<numTransitions;t++) {Transition transition = new Transition();getTransition(s, t, transition);transitions[s][t] = transition;}}return transitions;}
public DescribeAccountModificationsResult describeAccountModifications(DescribeAccountModificationsRequest request) {request = beforeClientExecution(request);return executeDescribeAccountModifications(request);}
public ListSolutionVersionsResult listSolutionVersions(ListSolutionVersionsRequest request) {request = beforeClientExecution(request);return executeListSolutionVersions(request);}
public void finish(FieldInfos fis, int numDocs) throws IOException {if (numDocsWritten != numDocs) {throw new RuntimeException("mergeFields produced an invalid result: docCount is " + numDocs+ " but only saw " + numDocsWritten + " file=" + out.toString() + "; now aborting this merge to prevent index corruption");}write(END);newLine();SimpleTextUtil.writeChecksum(out, scratch);}
public SetVaultNotificationsRequest(String vaultName, VaultNotificationConfig vaultNotificationConfig) {setVaultName(vaultName);setVaultNotificationConfig(vaultNotificationConfig);}
public Trie reduce(Reduce by) {List<Trie> h = new ArrayList<>();for (Trie trie : tries)h.add(trie.reduce(by));MultiTrie m = new MultiTrie(forward);m.tries = h;return m;}
public void println() {synchronized (lock) {print(System.lineSeparator());if (autoFlush) {flush();}}}
public final void writeChar(int val) throws IOException {writeShort(val);}
public String toFormulaString(String[] operands){StringBuilder buffer = new StringBuilder();buffer.append(operands[ 0 ]);buffer.append(GREATERTHAN);buffer.append(operands[ 1 ]);return buffer.toString();}
public UpdateDeploymentResult updateDeployment(UpdateDeploymentRequest request) {request = beforeClientExecution(request);return executeUpdateDeployment(request);}
public ListRoutingProfilesResult listRoutingProfiles(ListRoutingProfilesRequest request) {request = beforeClientExecution(request);return executeListRoutingProfiles(request);}
public boolean isFormulaSame(SharedFormulaRecord other) {return field_7_parsed_expr.isSame(other.field_7_parsed_expr);}
public static byte getType(int ch) {switch (Character.getType(ch)) {case Character.UPPERCASE_LETTER: return UPPER;case Character.LOWERCASE_LETTER: return LOWER;case Character.TITLECASE_LETTER:case Character.MODIFIER_LETTER:case Character.OTHER_LETTER:case Character.NON_SPACING_MARK:case Character.ENCLOSING_MARK: case Character.COMBINING_SPACING_MARK:return ALPHA;case Character.DECIMAL_DIGIT_NUMBER:case Character.LETTER_NUMBER:case Character.OTHER_NUMBER:return DIGIT;case Character.SURROGATE: return ALPHA|DIGIT;default: return SUBWORD_DELIM;}}
public CreateImageResult createImage(CreateImageRequest request) {request = beforeClientExecution(request);return executeCreateImage(request);}
public void assume(RevCommit c) {if (c != null)assume.add(c);}
public DeleteTagsResult deleteTags(DeleteTagsRequest request) {request = beforeClientExecution(request);return executeDeleteTags(request);}
public ListTemplateVersionsResult listTemplateVersions(ListTemplateVersionsRequest request) {request = beforeClientExecution(request);return executeListTemplateVersions(request);}
public String toString() {return "(" + x + ", " + y + ")"; }
public DisjunctionMaxQueryBuilder(QueryBuilder factory) {this.factory = factory;}
public PutNotificationConfigurationResult putNotificationConfiguration(PutNotificationConfigurationRequest request) {request = beforeClientExecution(request);return executePutNotificationConfiguration(request);}
public RecognizeFlowerRequest() {super("visionai-poc", "2020-04-08", "RecognizeFlower");setMethod(MethodType.POST);}
public IndexFormatTooOldException(String resourceDescription, int version, int minVersion, int maxVersion) {super("Format version is not supported (resource " + resourceDescription + "): " +version + " (needs to be between " + minVersion + " and " + maxVersion +"). This version of Lucene only supports indexes created with release 8.0 and later.");this.resourceDescription = resourceDescription;this.version = version;this.minVersion = minVersion;this.maxVersion = maxVersion;this.reason = null;}
public void add(int el) {if ( readonly ) throw new IllegalStateException("can't alter readonly IntervalSet");add(el,el);}
@Override public final int read(byte[] buffer) throws IOException {return super.read(buffer);}
@Override public boolean remove(Object key) {if (!contains(key)) {return false;}removeFromBothMaps(key);return true;}
public DescribeClusterSecurityGroupsResult describeClusterSecurityGroups(DescribeClusterSecurityGroupsRequest request) {request = beforeClientExecution(request);return executeDescribeClusterSecurityGroups(request);}
public TokenStream create(TokenStream input) {return new ScandinavianFoldingFilter(input);}
public DeleteNotebookInstanceLifecycleConfigResult deleteNotebookInstanceLifecycleConfig(DeleteNotebookInstanceLifecycleConfigRequest request) {request = beforeClientExecution(request);return executeDeleteNotebookInstanceLifecycleConfig(request);}
public DescribeComponentConfigurationRecommendationResult describeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request) {request = beforeClientExecution(request);return executeDescribeComponentConfigurationRecommendation(request);}
public SimpleMergedSegmentWarmer(InfoStream infoStream) {this.infoStream = infoStream;}
public int nextIndex() {return pos + 1;}
public ThaiTokenizerFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public int doLogic() throws Exception {if (name==null || value==null) {throw new Exception(getName()+" - undefined name or value: name="+name+" value="+value);}getRunData().getConfig().set(name,value);return 0;}
public void setPrintArea(int sheetIndex, String reference){NameRecord name = workbook.getSpecificBuiltinRecord(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);if (name == null) {name = workbook.createBuiltInName(NameRecord.BUILTIN_PRINT_AREA, sheetIndex+1);}String[] parts = COMMA_PATTERN.split(reference);StringBuilder sb = new StringBuilder(32);for (int i = 0; i < parts.length; i++) {if(i>0) {sb.append(",");}SheetNameFormatter.appendFormat(sb, getSheetName(sheetIndex));sb.append("!");sb.append(parts[i]);}name.setNameDefinition(HSSFFormulaParser.parse(sb.toString(), this, FormulaType.NAMEDRANGE, sheetIndex));}
public String getPartOfSpeech() {return dictionary.getPartOfSpeech(wordId);}
public synchronized static DefaultProfile getProfile(String regionId) {return new DefaultProfile(regionId);}
public TurkishLowerCaseFilterFactory(Map<String,String> args) {super(args);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public static boolean equals(double[] array1, double[] array2) {if (array1 == array2) {return true;}if (array1 == null || array2 == null || array1.length != array2.length) {return false;}for (int i = 0; i < array1.length; i++) {if (Double.doubleToLongBits(array1[i]) != Double.doubleToLongBits(array2[i])) {return false;}}return true;}
public ShortField(final int offset)throws ArrayIndexOutOfBoundsException{if (offset < 0){throw new ArrayIndexOutOfBoundsException("Illegal offset: "+ offset);}_offset = offset;}
public int getEffectivePort() {return getEffectivePort(scheme, port);}
public GetDiskSnapshotsResult getDiskSnapshots(GetDiskSnapshotsRequest request) {request = beforeClientExecution(request);return executeGetDiskSnapshots(request);}
public ParseTreePatternMatcher(Lexer lexer, Parser parser) {this.lexer = lexer;this.parser = parser;}
public PassageScorer(float k1, float b, float pivot) {this.k1 = k1;this.b = b;this.pivot = pivot;}
public CreateTicketRequest() {super("Ccs", "2017-10-01", "CreateTicket", "ccs");setMethod(MethodType.POST);}
public RejectTransitGatewayVpcAttachmentResult rejectTransitGatewayVpcAttachment(RejectTransitGatewayVpcAttachmentRequest request) {request = beforeClientExecution(request);return executeRejectTransitGatewayVpcAttachment(request);}
public DeleteApnsChannelResult deleteApnsChannel(DeleteApnsChannelRequest request) {request = beforeClientExecution(request);return executeDeleteApnsChannel(request);}
public Entry getEntry(final String name) throws FileNotFoundException {Entry rval = null;if (name != null) {rval = _byname.get(name);}if (rval == null) {if(_byname.containsKey("Workbook")) {throw new IllegalArgumentException("The document is really a XLS file");} else if(_byname.containsKey("PowerPoint Document")) {throw new IllegalArgumentException("The document is really a PPT file");} else if(_byname.containsKey("VisioDocument")) {throw new IllegalArgumentException("The document is really a VSD file");}throw new FileNotFoundException("no such entry: \"" + name+ "\", had: " + _byname.keySet());}return rval;}
public TokenStream create(TokenStream input) {return new FrenchMinimalStemFilter(input);}
public int getDecimalExponent() {return _relativeDecimalExponent+EXPONENT_OFFSET;}