language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case AfplibPackage.GBOX__RES: return getRES(); case AfplibPackage.GBOX__XPOS0: return getXPOS0(); case AfplibPackage.GBOX__YPOS0: return getYPOS0(); case AfplibPackage.GBOX__XPOS1: return...
python
def _setup_tls_files(self, files): """Initiates TLSFIle objects with the paths given to this bundle""" for file_type in TLSFileType: if file_type.value in files: file_path = files[file_type.value] setattr(self, file_type.value, TLSFile...
python
def card(self): """ Get the entry's OpenGraph card """ body, more, is_markdown = self._entry_content return TrueCallableProxy( self._get_card, body or more) if is_markdown else CallableProxy(None)
python
def get_files_in_branch(profile, branch_sha): """Get all files in a branch's tree. Args: profile A profile generated from ``simplygithub.authentication.profile``. Such profiles tell this module (i) the ``repo`` to connect to, and (ii) the ``token`` to connect with. ...
java
public Observable<ServiceResponse<List<IdentifyResult>>> identifyWithServiceResponseAsync(String personGroupId, List<UUID> faceIds, Integer maxNumOfCandidatesReturned, Double confidenceThreshold) { if (this.client.azureRegion() == null) { throw new IllegalArgumentException("Parameter this.client.azu...
java
protected InputStream getFileInputStream(String fieldName, List<FormItem> formItems) throws IOException, WebException { for (FormItem formItem : formItems) { if(formItem.isFile() && formItem.getFieldName().equals(fieldName)){ return formItem.openStream(); } } ...
python
def parse(self, data: bytes, context=None): """ Parse some python object from the data. :param data: Data to be parsed. :param context: Optional context dictionary. """ stream = BytesIO(data) return self.parse_stream(stream, context)
python
def unpack_text_io_wrapper(fp, encoding): """ If *fp* is a #io.TextIOWrapper object, this function returns the underlying binary stream and the encoding of the IO-wrapper object. If *encoding* is not None and does not match with the encoding specified in the IO-wrapper, a #RuntimeError is raised. """ if ...
python
def compile_insert(self, query, values): """ Compile insert statement into SQL :param query: A QueryBuilder instance :type query: QueryBuilder :param values: The insert values :type values: dict or list :return: The compiled insert :rtype: str "...
python
def bicluster_similarity(self, reference_model): """ Calculates the similarity between the current model of biclusters and the reference model of biclusters :param reference_model: The reference model of biclusters :return: Returns the consensus score(Hochreiter et. al., 2010), i.e. the...
python
def _metric_unit_from_name(metric_name): """ Return a metric unit string for human consumption, that is inferred from the metric name. If a unit cannot be inferred, `None` is returned. """ for item in _PATTERN_UNIT_LIST: pattern, unit = item if pattern.match(metric_name): ...
java
public static void escapeCssStringMinimal(final char[] text, final int offset, final int len, final Writer writer) throws IOException { escapeCssString(text, offset, len, writer, CssStringEscapeType.BACKSLASH_ESCAPES_DEFAULT_TO_COMPACT_HEXA, CssStringEscapeLevel.LEVEL...
java
@Override public synchronized void deleteAllDataForContext(int contextId) throws DatabaseException { SqlPreparedStatementWrapper psDeleteAllDataForContext = null; try { psDeleteAllDataForContext = DbSQL.getSingleton().getPreparedStatement("context.ps.deletealldataforcontext"); psDeleteAllDat...
python
def get_checkpoint_path(model_path): """ Work around TF problems in checkpoint path handling. Args: model_path: a user-input path Returns: str: the argument that can be passed to NewCheckpointReader """ if os.path.basename(model_path) == model_path: model_path = os.path....
java
@Override public Long expire(final String key, final int seconds) { try { return redis.expire(key, seconds) ? 1L : 0L; } catch (Exception e) { throw new JedisException(e); } }
python
def sort_return_tuples(response, **options): """ If ``groups`` is specified, return the response as a list of n-element tuples with n being the value found in options['groups'] """ if not response or not options.get('groups'): return response n = options['groups'] return list(izip(*[...
java
public <U> U foldRight(U seed, BiFunction<? super T, U, U> accumulator) { return toListAndThen(list -> { U result = seed; for (int i = list.size() - 1; i >= 0; i--) result = accumulator.apply(list.get(i), result); return result; }); }
python
def destination(self): """Get the destination path. This is the property should be calculated every time it is used because a user could change the outdir and filename dynamically. """ return os.path.join(os.path.abspath(self.outdir), self.filename)
java
@Override public GetSigningCertificateResult getSigningCertificate(GetSigningCertificateRequest request) { request = beforeClientExecution(request); return executeGetSigningCertificate(request); }
python
def GetCustomJsonEnumMapping(enum_type, python_name=None, json_name=None): """Return the appropriate remapping for the given enum, or None.""" return _FetchRemapping(enum_type, 'enum', python_name=python_name, json_name=json_name, mappings=_JSON_ENUM_MAPPING...
java
public static State getState(String namespace, Map stormConf, TopologyContext context) { State state; try { String provider; if (stormConf.containsKey(Config.TOPOLOGY_STATE_PROVIDER)) { provider = (String) stormConf.get(Config.TOPOLOGY_STATE_PROVIDER); ...
java
public ClassNode getFromClassCache(String name) { // We use here the class cache cachedClasses to prevent // calls to ClassLoader#loadClass. Disabling this cache will // cause a major performance hit. ClassNode cached = cachedClasses.get(name); return cached; }
python
def delete_knowledge_base(project_id, knowledge_base_id): """Deletes a specific Knowledge base. Args: project_id: The GCP project linked with the agent. knowledge_base_id: Id of the Knowledge base.""" import dialogflow_v2beta1 as dialogflow client = dialogflow.KnowledgeBasesClient() ...
python
def resize_widget(self, widget, row_span, col_span): """Resize a widget in the grid to new dimensions. Parameters ---------- widget : Widget The widget to resize row_span : int The number of rows to be occupied by this widget. col_span : int ...
java
private static <T> GenericIndexed<T> createGenericIndexedVersionOne(ByteBuffer byteBuffer, ObjectStrategy<T> strategy) { boolean allowReverseLookup = byteBuffer.get() == REVERSE_LOOKUP_ALLOWED; int size = byteBuffer.getInt(); ByteBuffer bufferToUse = byteBuffer.asReadOnlyBuffer(); bufferToUse.limit(bu...
python
def merge_dependency_paths(item_paths): """ Utility function that merges multiple dependency paths, as far as they share dependencies. Paths are evaluated and merged in the incoming order. Later paths that are independent, but share some dependencies, are shortened by these dependencies. Paths that are ...
python
def set_properties(self, eid, value, idx='*'): """ Set the value and/or attributes of an xml element, marked with the matching eid attribute, using the properties of the specified object. """ if value.__class__ not in Template.class_cache: props = [] for n...
java
public static String formatAsDirectory(final String dotSep) { if (dotSep == null || "".equals(dotSep)) { return ""; } return dotSep.replace(GROUP_SEPARATOR, PATH_SEPARATOR); }
python
def recent(self): ''' Recent links. ''' kwd = { 'pager': '', 'title': '最近文档', } if self.is_p: self.render('admin/link_ajax/link_list.html', kwd=kwd, view=MLink.query_link(20), ...
java
public String buildResultsInfoMessage(FeatureIndexResults results, double tolerance, LatLng clickLocation, Projection projection) { String message = null; // Fine filter results so that the click location is within the tolerance of each feature row result FeatureIndexResults filteredResults = ...
java
private CounterSnapshot refreshCounterSnapshot(String counterId) throws IOException { final CounterSnapshot newSnapshot = counterSnapshotFactory.create(counterId); inMemSnapshot.put(counterId, newSnapshot); return newSnapshot; }
java
public SegmentationMessage createSGM(int cic) { SegmentationMessage msg = createSGM(); CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode(); code.setCIC(cic); msg.setCircuitIdentificationCode(code); return msg; }
python
def console_output(msg, logging_msg=None): """Use instead of print, to clear the status information before printing""" assert isinstance(msg, bytes) assert isinstance(logging_msg, bytes) or logging_msg is None from polysh import remote_dispatcher remote_dispatcher.log(logging_msg or msg) if re...
python
def setdefault(self, key, value): """Atomic store conditional. Stores _value_ into dictionary at _key_, but only if _key_ does not already exist in the dictionary. Returns the old value found or the new value. """ with self.lock: if key in self: retur...
java
@NotNull public static JpegSegmentData readSegments(@NotNull File file, @Nullable Iterable<JpegSegmentType> segmentTypes) throws JpegProcessingException, IOException { FileInputStream stream = null; try { stream = new FileInputStream(file); return readSegments(new StreamR...
java
protected List<EndpointInfo> doGetUnboundEndpoints(String tenantId, List<Trace> fragments, boolean compress) { List<EndpointInfo> ret = new ArrayList<EndpointInfo>(); Map<String, EndpointInfo> map = new HashMap<String, EndpointInfo>(); // Process the fragments to identify which endp...
java
public IPv6Address replace(int startIndex, int endIndex, IPv6Address replacement, int replacementIndex) { return checkIdentity(getSection().replace(startIndex, endIndex, replacement.getSection(), replacementIndex, replacementIndex + (endIndex - startIndex))); }
java
public void saveToken(CsrfToken t, HttpServletRequest request, HttpServletResponse response) { String ident = getIdentifierFromCookie(request); if (ident != null) { String key = ident.concat(parameterName); CsrfToken token = loadToken(request); if (token == null) { token = generateToken(null); if (...
python
def _SetHashers(self, hasher_names_string): """Sets the hasher names. Args: hasher_names_string (str): comma separated names of the hashers to enable, where 'none' disables the hashing analyzer. """ if not hasher_names_string or hasher_names_string == 'none': return analyzer_...
python
def main(): """ Sets up our command line options, prints the usage/help (if warranted), and runs :py:func:`pyminifier.pyminify` with the given command line options. """ usage = '%prog [options] "<input file>"' if '__main__.py' in sys.argv[0]: # python -m pyminifier usage = 'pyminifier [o...
java
public Deserializer getDeserializer(Class cl) throws HessianProtocolException { Deserializer deserializer; deserializer = (Deserializer) _cachedDeserializerMap.get(cl); if (deserializer != null) return deserializer; deserializer = loadDeserializer(cl); _ca...
python
def execute( schema: GraphQLSchema, document: DocumentNode, root_value: Any = None, context_value: Any = None, variable_values: Dict[str, Any] = None, operation_name: str = None, field_resolver: GraphQLFieldResolver = None, type_resolver: GraphQLTypeResolver = None, middleware: Middl...
java
protected boolean hasDescriptionProperty(final String relPath) { try { final Node descNode = getDescriptionNodeOrNull(); if (descNode == null) { return false; } return descNode.hasProperty(relPath); } catch (final RepositoryException e) { ...
java
private void initializeDynamicPreferenceButton() { Button dynamicPreferenceButton = findViewById(R.id.dynamic_preference_button); dynamicPreferenceButton.setOnClickListener(createDynamicPreferenceButtonListener()); }
python
def build_coordinate_families(self, paired_aligns): '''Given a stream of paired aligns, return a list of pairs that share same coordinates (coordinate family). Flushes families in progress when any of: a) incoming right start > family end b) incoming chrom != current chrom ...
python
def radio_buttons_clicked(self): """Handler when selected radio button changed.""" # Disable all spin boxes for spin_box in list(self.spin_boxes.values()): spin_box.setEnabled(False) # Disable list widget self.list_widget.setEnabled(False) # Get selected radi...
python
def create_entity_type(project_id, display_name, kind): """Create an entity type with the given display name.""" import dialogflow_v2 as dialogflow entity_types_client = dialogflow.EntityTypesClient() parent = entity_types_client.project_agent_path(project_id) entity_type = dialogflow.types.EntityT...
python
def convert_field(self, value, conversion): """Apply conversions mentioned above.""" func = self.CONV_FUNCS.get(conversion) if func is not None: value = getattr(value, func)() elif conversion not in ['R']: # default conversion ('r', 's') return super(S...
python
def activate_(self, n_buffer, image_dimensions, shmem_name): """Shared mem info is given. Now we can create the shmem client """ self.active = True self.image_dimensions = image_dimensions self.client = ShmemRGBClient( name =shmem_name, n_ringb...
python
def get_surrounding_lines(self, past=1, future=1): """Return the current line and x,y previous and future lines. Returns a list of SourceLine's. """ string = self.string pos = self.pos - self.col end = self.length row = self.row linesback = 0 whil...
python
def conv_gru(x, kernel_size, filters, padding="SAME", dilation_rate=(1, 1), name=None, reuse=None): """Convolutional GRU in 1 dimension.""" # Let's make a shorthand for conv call first. def do_conv(args, name, bias_start, padding): ...
java
public PagedResult<CellHistory> getCellHistory(long sheetId, long rowId, long columnId, PaginationParameters pagination, EnumSet<CellHistoryInclusion> includes, Integer level) throws SmartsheetException { String path = "sheets/" + sheetId + "/rows/" + rowId + "...
python
def get_pem_entries(glob_path): ''' Returns a dict containing PEM entries in files matching a glob glob_path: A path to certificates to be read and returned. CLI Example: .. code-block:: bash salt '*' x509.get_pem_entries "/etc/pki/*.crt" ''' ret = {} for path in glo...
python
def set_stream_color(stream, disabled): """ Remember what our original streams were so that we can colorize them separately, which colorama doesn't seem to natively support. """ original_stdout = sys.stdout original_stderr = sys.stderr init(strip=disabled) if stream != original_std...
python
def event_stream(app, *, filter_by_prefix=None): """ Generator function that returns celery events. This function turns the callback based celery event handling into a generator. Args: app: Reference to a celery application object. filter_by_prefix (str): If not None, only allow events tha...
java
public static Syntax loadSyntax(Object mork, String fileName) throws GenericException, IllegalLiteral, IOException { return ((Mork) mork).loadSyntax(fileName); }
java
public TimeSeries setPoint(Point point) { Utils.checkNotNull(point, "point"); return new AutoValue_TimeSeries(getLabelValues(), Collections.singletonList(point), null); }
python
def rename(args): """Supply two names: Existing instance name or ID, and new name to assign to the instance.""" old_name, new_name = args.names add_tags(resources.ec2.Instance(resolve_instance_id(old_name)), Name=new_name, dry_run=args.dry_run)
python
def set_context(self, context): """Replace the current context with another.""" self._set_context(context, emit=False) self._modified = (not context.load_path) self.dataChanged.emit(self.CONTEXT_CHANGED | self.REQUEST_CHANGED | ...
java
public synchronized void pushExternalCacheFragment(ExternalInvalidation externalCacheFragment, DCache cache) { BatchUpdateList bul = getUpdateList(cache); bul.pushECFEvents.add(externalCacheFragment); }
java
public void setBSpace(Integer newBSpace) { Integer oldBSpace = bSpace; bSpace = newBSpace; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.FNIRG__BSPACE, oldBSpace, bSpace)); }
python
def parse_args(argv): """ Use Argparse to parse command-line arguments. :param argv: list of arguments to parse (``sys.argv[1:]``) :type argv: :std:term:`list` :return: parsed arguments :rtype: :py:class:`argparse.Namespace` """ p = argparse.ArgumentParser( description='webhook2...
java
public static List<Class<?>> loadClasses(BundleContext context, List<String> klassNames) throws ClassNotFoundException { ServiceReference sref = context.getServiceReference(PackageAdmin.class.getName()); List<Class<?>> klass = new ArrayList<Class<?>>(klassNames.size()); if (sref == null) { ...
python
def get_object_record_with_sync(self, pid): """Get an object that may not currently be in the cache. If the object is not in the cache, an attempt is made to retrieve the record from a CN on the fly. If the object is found, it is cached before being returned to the user. This allows the...
java
public static String join(Iterator<? extends EncodedPair> pairs, char pairSep, char nameValSep, boolean quoteName, boolean quoteVal){ Writer sw = new StringBuilderWriter(); try { join(sw, pairs,pairSep, nameValSep,quoteName,quoteVal); } catch (IOException e) { //ignore ...
java
public String startBackUp(String repositoryName, String workspaceName, String backupDir) throws IOException, BackupExecuteException { if (workspaceName != null) { String sURL = path + HTTPBackupAgent.Constants.BASE_URL + HTTPBackupAgent.Constants.OperationType...
python
def read_from_hdx(identifier, configuration=None): # type: (str, Optional[Configuration]) -> Optional['Showcase'] """Reads the showcase given by identifier from HDX and returns Showcase object Args: identifier (str): Identifier of showcase configuration (Optional[Configu...
python
def get_new_author(self, api_author): """ Instantiate a new Author from api data. :param api_author: the api data for the Author :return: the new Author """ return Author(site_id=self.site_id, wp_id=api_author["ID"], **self.api...
python
def convert_upsample(builder, layer, input_names, output_names, keras_layer): """ Convert convolution layer from keras to coreml. Parameters ---------- keras_layer: layer A keras layer object. builder: NeuralNetworkBuilder A neural network builder object. """ _check_dat...
java
public static double getPvalue(TransposeDataCollection transposeDataCollection) { if(transposeDataCollection.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } Object[] keys = transposeDataCollection.keySet().toArray...
java
public static void setIdentity( DMatrixRBlock A ) { int minLength = Math.min(A.numRows,A.numCols); CommonOps_DDRM.fill(A, 0); int blockLength = A.blockLength; for( int i = 0; i < minLength; i += blockLength ) { int h = Math.min(blockLength,A.numRows-i); int...
python
def reconnect(self, maxdelay=30, retry=0): """Implements explonential backoff delay before attempting to connect. It is otherwise identical to calling :meth:`.CMClient.connect`. The delay is reset upon a successful login. :param maxdelay: maximum delay in seconds before connect (0-120s)...
java
public RuntimeEnvironment build() { final org.kie.api.runtime.manager.RuntimeEnvironmentBuilder jbpmRuntimeEnvironmentBuilder; Manifest manifest = _manifestBuilder.build(); if (manifest instanceof RemoteManifest) { RemoteManifest remoteManifest = (RemoteManifest)manifest; ...
python
def _datasource_cell(args, cell_body): """Implements the BigQuery datasource cell magic for ipython notebooks. The supported syntax is %%bq datasource --name <var> --paths <url> [--format <CSV|JSON>] <schema> Args: args: the optional arguments following '%%bq datasource' cell_body: the datasource's ...
python
def _close_thread(self, thread, thread_name): """Closes daemon threads @param thread: the thread to close @param thread_name: a human readable name of the thread """ if thread is not None and thread.isAlive(): self.logger.debug("Waiting for {} thread to close".format...
python
def _Aff4Read(aff4_obj, offset, length): """Reads contents of given AFF4 file. Args: aff4_obj: An AFF4 stream instance to retrieve contents for. offset: An offset to start the reading from. length: A number of bytes to read. Reads the whole file if 0. Returns: Contents of specified AFF4 stream. ...
java
protected String escapeHtml(String value) { StringBuilder escaped = new StringBuilder(); for (int i = 0, len = value.length(); i < len; i++) { final char c = value.charAt(i); if (c == '"') { escaped.append("&quot;"); } else if (c == '&') { ...
python
def write_padding_bits(buff, version, length): """\ Writes padding bits if the data stream does not meet the codeword boundary. :param buff: The byte buffer. :param int length: Data stream length. """ # ISO/IEC 18004:2015(E) - 7.4.10 Bit stream to codeword conversion -- page 32 # [...] ...
python
def get_argument_parser(): """Function to obtain the argument parser. Parameters ---------- Returns ------- `argparse.ArgumentParser` A fully configured `argparse.ArgumentParser` object. Notes ----- This function can also be used by the `sphinx-argparse` extension for ...
java
private static IHelpViewer createViewer(Page page) { IHelpViewer viewer; if (getViewerMode(page) == HelpViewerMode.POPUP) { viewer = new HelpViewerProxy(page); } else { BaseComponent root = PageUtil.createPage(VIEWER_URL, page).get(0); viewer = (IHelpViewer) ...
java
private List<String> determineListOfDownloadsToProcess() { List<String> list = new ArrayList<>(); if (!Config.getBoolConfigProperty(ConfigProperty.DOWNLOAD_DEPENDENCIES)) { return list; } // for IEDriver if (SystemUtils.IS_OS_WINDOWS && !checkForPres...
java
@Override public T remove(T entity) { EntityManager entityManager = getEntityManager(); if (entityManager.contains(entity)) { entityManager.remove(entity); } else { entityManager.remove(entityManager.merge(entity)); } return entity; }
python
def _represent_match_traversal(match_traversal): """Emit MATCH query code for an entire MATCH traversal sequence.""" output = [] output.append(_first_step_to_match(match_traversal[0])) for step in match_traversal[1:]: output.append(_subsequent_step_to_match(step)) return u''.join(output)
java
public static Drawable createFromResourceStream(Resources res, TypedValue value, InputStream is, String srcName, BitmapFactory.Options opts) { return Drawable.createFromResourceStream(res, value, is, srcName, opts); }
python
def cleanup_branch(self, branch): """Remove the temporary backport branch. Switch to the default branch before that. """ set_state(WORKFLOW_STATES.REMOVING_BACKPORT_BRANCH) self.checkout_default_branch() try: self.delete_branch(branch) except subproce...
python
def _get_padded(data, start, end): """Return `data[start:end]` filling in with zeros outside array bounds Assumes that either `start<0` or `end>len(data)` but not both. """ if start < 0 and end > data.shape[0]: raise RuntimeError() if start < 0: start_zeros = np.zeros((-start, data...
python
def hset(key, field, value, host=None, port=None, db=None, password=None): ''' Set the value of a hash field. .. versionadded:: 2017.7.0 CLI Example: .. code-block:: bash salt '*' redis.hset foo_hash bar_field bar_value ''' server = _connect(host, port, db, password) return s...
python
def seek_to_end(self, *partitions): """Seek to the most recent available offset for partitions. Arguments: *partitions: Optionally provide specific TopicPartitions, otherwise default to all assigned partitions. Raises: AssertionError: If any partition is...
java
public final void mOctalLiteral() throws RecognitionException { try { int _type = OctalLiteral; int _channel = DEFAULT_TOKEN_CHANNEL; // src/main/resources/org/drools/compiler/semantics/java/parser/Java.g:1306:14: ( '0' ( '0' .. '7' )+ ( IntegerTypeSuffix )? ) // src/main/resources/org/drools/compiler/sem...
java
@Deprecated protected void setURL(URL u, String protocol, String host, int port, String file, String ref) { /* * Only old URL handlers call this, so assume that the host * field might contain "user:passwd@host". Fix as necessary. */ String authori...
python
def create (netParams=None, simConfig=None, output=False): ''' Sequence of commands to create network ''' from .. import sim import __main__ as top if not netParams: netParams = top.netParams if not simConfig: simConfig = top.simConfig sim.initialize(netParams, simConfig) # create network obje...
python
def scansion(self,meter=None,conscious=False): """Print out the parses and their violations in scansion format.""" meter=self.get_meter(meter) self.scansion_prepare(meter=meter,conscious=conscious) for line in self.lines(): try: line.scansion(meter=meter,conscious=conscious) except AttributeError: ...
java
public <O> CursorList<O> transform(Function<? super J, ? extends O> function) { return transform(function, null); }
python
def register_backend(self, config_contents): """Register a single API and its config contents. Args: config_contents: Dict containing API configuration. """ if config_contents is None: return self.__register_class(config_contents) self.__api_configs.append(config_contents) self....
java
public void setNodeAvailable(@Nullable final String nodeId, final boolean available) { if ( _nodeIdService != null ) { _nodeIdService.setNodeAvailable(nodeId, available); } }
python
def linkdir_walk(self): ''' Return the expected result of an os.walk on the linkdir, based on the mountpoint value. ''' try: # Use cached linkdir_walk if we've already run this return self._linkdir_walk except AttributeError: self._link...
java
private byte[] bufX( long bias, int scale, int off, int log ) { byte[] bs = MemoryManager.malloc1((_len <<log)+off); int j = 0; for( int i=0; i< _len; i++ ) { long le = -bias; if(_id == null || _id.length == 0 || (j < _id.length && _id[j] == i)){ if( isNA2(j) ) { le = NAS[log];...
python
def _set_field(self, fieldname, bytestring, transfunc=None): """convienience function to set fields of the tinytag by name. the payload (bytestring) can be changed using the transfunc""" if getattr(self, fieldname): # do not overwrite existing data return value = bytestring ...
python
def calc_all_ar_coefs(self, ar_order, ma_model): """Determine the AR coeffcients based on a least squares approach. The argument `ar_order` defines the number of AR coefficients to be determined. The argument `ma_order` defines a pure |MA| model. The least squares approach is applied o...
java
@Override public void createRetentionPolicy(final String rpName, final String database, final String duration, final String shardDuration, final int replicationFactor) { createRetentionPolicy(rpName, database, duration, null, replicationFactor, false); }