language
stringclasses
2 values
func_code_string
stringlengths
63
466k
java
public ServiceFuture<ProjectInner> createOrUpdateAsync(String groupName, String serviceName, String projectName, ProjectInner parameters, final ServiceCallback<ProjectInner> serviceCallback) { return ServiceFuture.fromResponse(createOrUpdateWithServiceResponseAsync(groupName, serviceName, projectName, parameter...
python
def inFootprint(footprint,ra,dec): """ Check if set of ra,dec combinations are in footprint. Careful, input files must be in celestial coordinates. filename : Either healpix map or mangle polygon file ra,dec : Celestial coordinates Returns: inside : boolean array of coordinates in ...
java
public static int toIntegerWithDefault(Object value, int defaultValue) { Integer result = toNullableInteger(value); return result != null ? (int) result : defaultValue; }
python
def solve_and_plot_series(self, x0, params, varied_data, varied_idx, solver=None, plot_kwargs=None, plot_residuals_kwargs=None, **kwargs): """ Solve and plot for a series of a varied parameter. Convenience method, see :meth:`solve_series`, :meth:`plot_series` & :me...
java
private void addFileStreamEntries(String kind) { Obligation obligation = database.getFactory().addObligation("java.io." + kind); database.addEntry(new MatchMethodEntry(new SubtypeTypeMatcher(BCELUtil.getObjectTypeInstance(Values.DOTTED_JAVA_IO_FILE + kind)), new ExactStringMatcher("<init...
python
def overwrite(self, text, size=None): """ Overwrites the current line. It will not add a new line so use line('') if necessary. """ self._io.overwrite(text, size=size)
python
def add_dimension(self, name, data=None): """Add a named dimension to this entity.""" self.dimensions.add(name) if data is None: valobj = self.__dimtype__() else: valobj = make_object(self.__dimtype__, data) self._data[name] = valobj setattr(self, ...
java
public static String asUTF8String(InputStream in) { // Precondition check Validate.notNull(in, "Stream must be specified"); StringBuilder buffer = new StringBuilder(); String line; try { BufferedReader reader = new BufferedReader(new InputStreamReader(in, CHARSET_UT...
java
public static String[] getMonths(Locale locale) { if (locale == null) { locale = Locale.US; } DateFormatSymbols dfs = DateFormatSymbols.getInstance(locale); return dfs.getMonths(); }
python
def play(self): """ Play Conway's Game of Life. """ # Write the initial configuration to file. self.t = 1 # Current time level while self.t <= self.T: # Evolve! # print( "At time level %d" % t) # Loop over each cell of the grid and apply Conway's rules. ...
java
public DestinationHandler getDestination(SIBUuid12 destinationUuid, boolean includeInvisible) throws SITemporaryDestinationNotFoundException, SINotPossibleInCurrentConfigurationException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getDestination", destinat...
java
public void deselectButton() { if (m_selectedButton != null) { if (m_selectedButton.isChecked()) { m_selectedButton.setChecked(false); } m_selectedButton = null; ValueChangeEvent.fire(this, null); } }
python
def ConsoleLogHandler(loggerRef='', handler=None, level=logging.DEBUG, color=None): """Add a handler to stderr with our custom formatter to a logger.""" if isinstance(loggerRef, logging.Logger): pass elif isinstance(loggerRef, str): # check for root if not loggerRef: log...
python
def redirect_n_times(n): """302 Redirects n times. --- tags: - Redirects parameters: - in: path name: n type: int produces: - text/html responses: 302: description: A redirection. """ assert n > 0 absolute = request.args.get("absolute"...
java
private String getSubstringByte(final Object obj, final int capacity) throws CharacterCodingException, UnsupportedEncodingException { String str = obj == null ? "null" : obj.toString(); if (capacity < 1) { return str; } CharsetEncoder ce = Charset.forName(ENCODING_SHIFT_JIS).newEncoder() .onMalforme...
python
def get_selected_buffer(self): """returns currently selected :class:`Buffer` element from list""" linewidget, _ = self.bufferlist.get_focus() bufferlinewidget = linewidget.get_focus().original_widget return bufferlinewidget.get_buffer()
java
public static Type extractTypeArgument(Type t, int index) throws InvalidTypesException { if (t instanceof ParameterizedType) { Type[] actualTypeArguments = ((ParameterizedType) t).getActualTypeArguments(); if (index < 0 || index >= actualTypeArguments.length) { throw new InvalidTypesException("Cannot extra...
java
public static String urlEncode(String s) { try { return URLEncoder.encode(s, StandardCharsets.UTF_8.name()); } catch (UnsupportedEncodingException e) { throw new IllegalStateException("get a jdk that actually supports utf-8", e); } }
python
def metrics(self, opttype, strike, expiry): """ Basic metrics for a specific option. Parameters ---------- opttype : str ('call' or 'put') strike : numeric Strike price. expiry : date-like Expiration date. Can be a :class:`datetime.datetim...
python
def get_min_isr(zk, topic): """Return the min-isr for topic, or None if not specified""" ISR_CONF_NAME = 'min.insync.replicas' try: config = zk.get_topic_config(topic) except NoNodeError: return None if ISR_CONF_NAME in config['config']: return int(config['config'][ISR_CONF_N...
java
Table ENABLED_ROLES() { Table t = sysTables[ENABLED_ROLES]; if (t == null) { t = createBlankTable(sysTableHsqlNames[ENABLED_ROLES]); addColumn(t, "ROLE_NAME", SQL_IDENTIFIER); // true PK HsqlName name = HsqlNameManager.newInfoSchemaObjectName( ...
python
def print_statement_coverage(self): """Display how many of the direct statements have been converted. Also prints how many are considered 'degenerate' and not converted.""" if not self.all_direct_stmts: self.get_all_direct_statements() if not self.degenerate_stmts: ...
python
def is_backup_class(cls): """Return true if given class supports back up. Currently this means a gludb.data.Storable-derived class that has a mapping as defined in gludb.config""" return True if ( isclass(cls) and issubclass(cls, Storable) and get_mapping(cls, no_mapping_ok=True)...
java
public static Method getAccessibleMethod(Class<?> clazz, Method method) { // Make sure we have a method to check if (method == null) { return null; } // If the requested method is not public we cannot call it if (!Modifier.isPublic(method.getModifiers())) { ...
python
def merged_cell_ranges(self): """Generates the sequence of merged cell ranges in the format: ((col_low, row_low), (col_hi, row_hi)) """ for rlo, rhi, clo, chi in self.raw_sheet.merged_cells: yield ((clo, rlo), (chi, rhi))
python
def _delete_masked_points(*arrs): """Delete masked points from arrays. Takes arrays and removes masked points to help with calculations and plotting. Parameters ---------- arrs : one or more array-like source arrays Returns ------- arrs : one or more array-like arrays ...
python
def find(path, *args, **kwargs): ''' Approximate the Unix ``find(1)`` command and return a list of paths that meet the specified criteria. The options include match criteria: .. code-block:: text name = path-glob # case sensitive iname = path-glob ...
python
def Request(self): """Create the Approval object and notify the Approval Granter.""" approval_id = "approval:%X" % random.UInt32() approval_urn = self.BuildApprovalUrn(approval_id) email_msg_id = email.utils.make_msgid() with aff4.FACTORY.Create( approval_urn, self.approval_type, mode="w"...
python
def _set_key(self): ''' sets the final key to be used currently ''' if self.roll: self.date = time.strftime(self.date_format, time.gmtime(self.start_time)) self.final_key = '{}:{}'.format(self.key, self.date) else: ...
python
def depth(self, *args): """ Get/set the depth """ if len(args): self._depth = args[0] else: return self._depth
python
def commit(self): """ Delete the rest of the line. """ # Get the text cursor for the current document and unselect everything. tc = self.qteWidget.textCursor() tc.clearSelection() # If this is the first ever call to this undo/redo element then # backup t...
java
private void initializePreferenceScreenElevation(final SharedPreferences sharedPreferences) { String key = getString(R.string.preference_screen_elevation_preference_key); String defaultValue = getString(R.string.preference_screen_elevation_preference_default_value); int elevation...
python
def get_version(self, paths=None, default="unknown"): """Get version number of installed module, 'None', or 'default' Search 'paths' for module. If not found, return 'None'. If found, return the extracted version attribute, or 'default' if no version attribute was specified, or the va...
java
public static ExecutorService newSingleThreadDaemonExecutor() { return Executors.newSingleThreadExecutor(r -> { Thread t = Executors.defaultThreadFactory().newThread(r); t.setDaemon(true); return t; }); }
java
public static Range sum(Range range1, Range range2) { if (range1.getMinimum().doubleValue() <= range2.getMinimum().doubleValue()) { if (range1.getMaximum().doubleValue() >= range2.getMaximum().doubleValue()) { return range1; } else { return range(range1.ge...
python
def _add_session(self, session, start_info, groups_by_name): """Adds a new Session protobuffer to the 'groups_by_name' dictionary. Called by _build_session_groups when we encounter a new session. Creates the Session protobuffer and adds it to the relevant group in the 'groups_by_name' dict. Creates the...
python
def run(name, params, delay): ''' Run the job <name> Jobs args and kwargs are given as parameters without dashes. Ex: udata job run my-job arg1 arg2 key1=value key2=value udata job run my-job -- arg1 arg2 key1=value key2=value ''' args = [p for p in params if '=' not in p] ...
java
public static CmsImportExportUserDialog getExportUserDialogForOU( String ou, Window window, boolean allowTechnicalFieldsExport) { CmsImportExportUserDialog res = new CmsImportExportUserDialog(ou, null, window, allowTechnicalFieldsExport); return res; }
java
public Matrix4x3f m02(float m02) { this.m02 = m02; properties &= ~PROPERTY_ORTHONORMAL; if (m02 != 0.0f) properties &= ~(PROPERTY_IDENTITY | PROPERTY_TRANSLATION); return this; }
python
def build_fasttext_cc_embedding_obj(embedding_type): """FastText pre-trained word vectors for 157 languages, with 300 dimensions, trained on Common Crawl and Wikipedia. Released in 2018, it succeesed the 2017 FastText Wikipedia embeddings. It's recommended to use the same tokenizer for your data that was used to co...
java
public void beginScanForUpdates(String deviceName, String resourceGroupName) { beginScanForUpdatesWithServiceResponseAsync(deviceName, resourceGroupName).toBlocking().single().body(); }
java
private static CmsRectangle transformRegionBack(I_CmsTransform transform, CmsRectangle region) { CmsPoint topLeft = region.getTopLeft(); CmsPoint bottomRight = region.getBottomRight(); return CmsRectangle.fromPoints(transform.transformBack(topLeft), transform.transformBack(bottomRight)); }
python
def native(self): """ The native Python datatype representation of this value :return: An integer or None """ if self.contents is None: return None if self._native is None: self._native = int_from_bytes(self._merge_chunks()) ...
python
def _draw_label(self, obj, count): """Helper method to draw on the current label. Not intended for external use. """ # Start a drawing for the whole label. label = Drawing(float(self._lw), float(self._lh)) label.add(self._clip_label) # And one for the available area (i....
java
private static void printUsage(String cmd) { String prefix = "Usage: java " + FairSchedulerShell.class.getSimpleName(); if ("-getfsmaxslots".equalsIgnoreCase(cmd)) { System.err.println(prefix + " [-getfsmaxslots trackerName1, trackerName2 ... ]"); } else if ("-setfsmaxslots".equalsIgnoreCase(cmd)) { ...
python
def set_basefilemtime(self): """Set attributes mtimestamp and mtimefs. If the global list ORIGINEXTENSIONS include any items, try and look for files (in the directory where self.filename is sitting) with the same base name as the loaded file, but with an extension specified in OR...
java
protected void performActions(List<HttpMessage> httpMessages) { for (HttpMessage httpMessage : httpMessages) { if (httpMessage != null) { performAction(httpMessage); } } }
python
def get_conns(cred, providers): """Collect node data asynchronously using gevent lib.""" cld_svc_map = {"aws": conn_aws, "azure": conn_az, "gcp": conn_gcp, "alicloud": conn_ali} sys.stdout.write("\rEstablishing Connections: ") sys.stdout.flush() ...
python
def _namedtuplify(mapping): """ Make the dictionary into a nested series of named tuples. This is what allows accessing by attribute: settings.numerics.jitter Thank you https://gist.github.com/hangtwenty/5960435 """ if isinstance(mapping, collections.Mapping): for key, value in list(mapp...
java
public void setPGrpName(String newPGrpName) { String oldPGrpName = pGrpName; pGrpName = newPGrpName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.ENG__PGRP_NAME, oldPGrpName, pGrpName)); }
python
def sweHousesLon(jd, lat, lon, hsys): """ Returns lists with house and angle longitudes. """ hsys = SWE_HOUSESYS[hsys] hlist, ascmc = swisseph.houses(jd, lat, lon, hsys) angles = [ ascmc[0], ascmc[1], angle.norm(ascmc[0] + 180), angle.norm(ascmc[1] + 180) ] retur...
python
def validator(flag_name, message='Flag validation failed', flag_values=_flagvalues.FLAGS): """A function decorator for defining a flag validator. Registers the decorated function as a validator for flag_name, e.g. @flags.validator('foo') def _CheckFoo(foo): ... See register_validator() fo...
java
private void commit() { m_selectionDone = true; if (!m_filesToUpload.isEmpty()) { m_okButton.disable(Messages.get().key(Messages.GUI_UPLOAD_BUTTON_OK_DISABLE_UPLOADING_0)); if (m_uploadButton instanceof UIObject) { ((UIObject)m_uploadButton).getElement().getStyle...
python
def md_options_to_metadata(options): """Parse markdown options and return language and metadata""" metadata = parse_md_code_options(options) if metadata: language = metadata[0][0] for lang in _JUPYTER_LANGUAGES + ['julia', 'scheme', 'c++']: if language.lower() == lang.lower(): ...
java
public static Filter createFilterFromFilterSpec(Request request, String filterSpec) throws FilterFactory.FilterNotCreatedException { Description topLevelDescription = request.getRunner().getDescription(); String[] tuple; if (filterSpec.contains("=")) { tuple = filt...
python
def CreateKey(self, private_key=None): """ Create a KeyPair Args: private_key (iterable_of_ints): (optional) 32 byte private key Returns: KeyPair: a KeyPair instance """ if private_key is None: private_key = bytes(Random.get_random_by...
python
def change_ssh_pwd(self, pwd=None, comment=None): """ Executes a change SSH password operation on the specified node :param str pwd: changed password value :param str comment: optional comment for audit log :raises NodeCommandFailed: cannot change ssh password :return: N...
java
public static String sha384Hex(String data, Charset charset) throws NoSuchAlgorithmException { return sha384Hex(data.getBytes(charset)); }
python
def filter_network_type(query): """Filter unsupported segment types""" segment_model = segment_models.NetworkSegment query = (query .filter( segment_model.network_type.in_( utils.SUPPORTED_NETWORK_TYPES))) return query
python
def get_provider(self, provider_name='default'): """Fetch provider with the name specified in Configuration file""" try: if self._providers is None: self._providers = self._initialize_providers() return self._providers[provider_name] except KeyError: ...
python
def redirect_url(self, redirect_url): """ Sets the redirect_url of this CreateCheckoutRequest. The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `ht...
python
def _fetch_page_async(self, page_size, **q_options): """Internal version of fetch_page_async().""" q_options.setdefault('batch_size', page_size) q_options.setdefault('produce_cursors', True) it = self.iter(limit=page_size + 1, **q_options) results = [] while (yield it.has_next_async()): re...
python
def unmanaged_cpcs(self): """ :class:`~zhmcclient.UnmanagedCpcManager`: Access to the unmanaged :term:`CPCs <CPC>` in this Console. """ # We do here some lazy loading. if not self._unmanaged_cpcs: self._unmanaged_cpcs = UnmanagedCpcManager(self) return...
java
public void addScreenControls(Container parent) { FieldList record = this.getFieldList(); FieldTable table = record.getTable(); try { int iRowCount = 0; int iColumnCount = 0; table.close(); while (table.hasNext()) {...
java
@Override public AbstractPipelineOutput execute(final AbstractPipelineInput input) throws DITAOTException { final FileInfo fi = job.getFileInfo(f -> f.isInput).iterator().next(); if (!ATTR_FORMAT_VALUE_DITAMAP.equals(fi.format)) { return null; } final File inputFile = new...
python
def _set_domain_name(self, v, load=False): """ Setter method for domain_name, mapped from YANG variable /protocol/cfm/domain_name (list) If this variable is read-only (config: false) in the source YANG file, then _set_domain_name is considered as a private method. Backends looking to populate this v...
python
def get_parameter(self): """Obtain list parameter object from the current widget state. :returns: A DefaultValueParameter from the current state of widget :rtype: DefaultValueParameter """ # Set value for each key for key, value in list(self._parameter.options.items()): ...
java
@Override public void toXML(final StringBuilder builder, final ConfigVerification errors) { boolean sevenzip = controller.is7ZipEnabled(); if (sevenzip) { String cmd; builder.append("\t<externals>\r\n"); if (sevenzip) { cmd = sevenZipPathField.getText(); if (cmd.length() == 0) { error...
java
public String getUrl(String domain, String region) { if (url != null) { return url; } return urlFromUri(domain, region, uri); }
python
def analyzed_projects(raw_df): """ Return all projects that was analyzed. """ df = raw_df[['PRONAC', 'proponenteCgcCpf']] analyzed_projects = df.groupby('proponenteCgcCpf')[ 'PRONAC' ].agg(['unique', 'nunique']) analyzed_projects.columns = ['pronac_list', 'num_pronacs'] return...
java
private void fillWestFlowPanel() { checkShowDrag.setValue(graphicsService.isShowOriginalObjectWhileDragging()); checkShowDrag.setValue(graphicsService.isShowOriginalObjectWhileDragging()); checkShowDrag.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { graphicsServi...
python
def __bounce(self, **kwargs): """ Bounce off of the shoreline. NOTE: This does not work, but left here for future implementation feature = Linestring of two points, being the line segment the particle hit. angle = decimal degrees from 0 (x-axis), couter-clockwis...
java
@Override public void writeObject(Object value) throws JMSException { if (value == null) { throw new NullPointerException("Cannot write null value of object"); } if (value instanceof Boolean) { writeBoolean((Boolean) value); } else if (value instanceof Charact...
java
public BigInteger incrementAndGet() { for (;;) { BigInteger current = get(); BigInteger next = current.add(BigInteger.ONE); if (compareAndSet(current, next)) return next; } }
java
public static <T extends NamedElement> ElementMatcher.Junction<T> nameMatches(String regex) { return new NameMatcher<T>(new StringMatcher(regex, StringMatcher.Mode.MATCHES)); }
python
def raw_field_definition_proxy_post_save(sender, instance, raw, **kwargs): """ When proxy field definitions are loaded from a fixture they're not passing through the `field_definition_post_save` signal. Make sure they are. """ if raw: model_class = instance.content_type.model_class() ...
java
public boolean isMatch(String strMatch) { if (m_setMatches.contains(strMatch)) return true; if (m_parent instanceof XslImportScanListener) return ((XslImportScanListener)m_parent).isMatch(strMatch); return false; }
java
public static void showPublishDialog( CmsPublishData result, CloseHandler<PopupPanel> handler, Runnable refreshAction, I_CmsContentEditorHandler editorHandler) { CmsPublishDialog publishDialog = new CmsPublishDialog(result, refreshAction, editorHandler); if (handler != n...
python
def _submit(self): '''submit the question to the board. When we get here we should have (under self.data) {'record_environment': [('DISPLAY', ':0')], 'user_prompt_board': 'http://127.0.0.1', 'user_prompt_issue': 'I want to know why dinosa...
python
def validate(cls, data, name, **kwargs): """Validate that a piece of data meets certain conditions""" required = kwargs.get('required', False) if required and data is None: raise ValidationError("required", name, True) elif data is None: return elif kwargs...
python
def set_search_url(self, url): """ Reads given query string and stores key-value tuples :param url: A string containing a valid URL to parse arguments from """ if url[0] == '?': url = url[1:] self.arguments = {} for key, value in parse_qs(url).items(): ...
java
public void marshall(SubDomainSetting subDomainSetting, ProtocolMarshaller protocolMarshaller) { if (subDomainSetting == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(subDomainSetting.getPrefix(), P...
java
@Override public void sawOpcode(final int seen) { Object hashCodedStringRef = null; try { stack.precomputation(this); switch (seen) { case Const.INVOKEVIRTUAL: if (Values.SLASHED_JAVA_LANG_STRING.equals(getClassConstantOperand())) { ...
java
static void writeField(DataOutputView out, Field field) throws IOException { Class<?> declaringClass = field.getDeclaringClass(); out.writeUTF(declaringClass.getName()); out.writeUTF(field.getName()); }
python
def sample(self, data, sample_size=15000, blocked_proportion=0.5, original_length=None): '''Draw a sample of record pairs from the dataset (a mix of random pairs & pairs of similar records) and initialize active learning with this sample Arguments: data -- Dictionary of r...
java
private static PeriodFormatter toFormatter(List<Object> elementPairs, boolean notPrinter, boolean notParser) { if (notPrinter && notParser) { throw new IllegalStateException("Builder has created neither a printer nor a parser"); } int size = elementPairs.size(); if (size >= 2...
python
def keysym_definitions(): """Yields all keysym definitions parsed as tuples. """ for keysym_line in keysym_lines(): # As described in the input text, the format of a line is: # 0x20 U0020 . # space /* optional comment */ keysym_number, codepoint, status, _, name_part = [ ...
python
def _CreateDictReader(self, line_reader): """Iterates over the log lines and provide a reader for the values. Args: line_reader (iter): yields each line in the log file. Yields: dict[str, str]: column values keyed by column header. """ for line in line_reader: if isinstance(line,...
python
def resources(self): """Vault resources within context""" res = [] for resource in self._resources: res = res + resource.resources() return res
java
public ContainerOverrides withResourceRequirements(ResourceRequirement... resourceRequirements) { if (this.resourceRequirements == null) { setResourceRequirements(new java.util.ArrayList<ResourceRequirement>(resourceRequirements.length)); } for (ResourceRequirement ele : resourceRequ...
python
def _gather(self, func): """ Removes the experiment's path (prefix) from the names of the gathered items. This means that, for example, 'experiment.print_config' becomes 'print_config'. """ for ingredient, _ in self.traverse_ingredients(): for name, item in fu...
python
def _build_list_item(self, item_value, id_=None): """Return a dict with ID and $type for API representation of value Uses id_ param if provided, defaults to new random ID """ return { '$type': self._type_map[self.input_type]['list_item_type'], 'id': id_ or SID.ge...
python
def read_byte(self, base, offset=0): """ Return the int value of the byte at the file position defined by self._base_offset + *base* + *offset*. If *base* is None, the byte is read from the current position in the stream. """ fmt = 'B' return self._read_int(fmt, b...
java
public static UserMappingTable create(String tableName, List<UserCustomColumn> additionalColumns) { List<UserCustomColumn> columns = new ArrayList<>(); columns.addAll(createRequiredColumns()); if (additionalColumns != null) { columns.addAll(additionalColumns); } return new UserMappingTable(tableName,...
java
@Override public final Float evalFloatResult( final String pQuery, final String pColumnName) throws Exception { Float result = null; IRecordSet<RS> recordSet = null; try { recordSet = retrieveRecords(pQuery); if (recordSet.moveToFirst()) { result = recordSet.getFloat(pColumnName); ...
java
private I_CmsStringModel createStringModel(final CmsUUID id, final String propName, final boolean isStructure) { final CmsClientProperty property = m_properties.get(propName); return new I_CmsStringModel() { private boolean m_active; private EventBus m_eventBus = new SimpleEv...
java
public static String formatDate(final Date date, final String pattren) { final SimpleDateFormat formatter = new SimpleDateFormat(pattren, new Locale("en", "US")); if (date == null) { return ""; } return formatter.format(date); }
python
def schedule_job(date, callable_name, content_object=None, expires='7d', args=(), kwargs={}): """Schedule a job. `date` may be a datetime.datetime or a datetime.timedelta. The callable to be executed may be specified in two ways: - set `callable_name` to an identifier ('mypackage.mya...
python
def parse(self, type_str): """ Parses a type string into an appropriate instance of :class:`~eth_abi.grammar.ABIType`. If a type string cannot be parsed, throws :class:`~eth_abi.exceptions.ParseError`. :param type_str: The type string to be parsed. :returns: An instance...
java
public void addAutofilter(final Table table, final int r1, final int c1, final int r2, final int c2) { if (this.autofilters == null) this.autofilters = new ArrayList<String>(); this.autofilters.add(this.positionUtil.toRangeAddress(table, r1, c1, r2, c2)); }