sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__buildItem) function_name__buildItem
(parameters
(identifier_self) identifier_self
(identifier_elem) identifier_elem
(default_parameter
(identifier_cls) identifier_cls
(None) None
)default_parameter
(default_parameter
... | Factory function to build objects based on registered PLEXOBJECTS. |
(module
(function_definition
(function_name_connectMSExchange) function_name_connectMSExchange
(parameters
(identifier_server) identifier_server
)parameters
(block
(if_statement
(not_operator
(identifier_sspi) identifier_sspi
)not_operator
(block
... | Creates a connection for the inputted server to a Microsoft Exchange server.
:param server | <smtplib.SMTP>
:usage |>>> import smtplib
|>>> import projex.notify
|>>> smtp = smtplib.SMTP('mail.server.com')
|>>> projex.notify.connectMSExchange(smtp)
... |
(module
(function_definition
(function_name_load_from_cache) function_name_load_from_cache
(parameters
(default_parameter
(identifier_path) identifier_path
(identifier_user_path) identifier_user_path
)default_parameter
)parameters
(block
(if_statement
(not_ope... | Try to load category ranges from userlevel cache file.
:param path: path to userlevel cache file
:type path: str
:returns: category ranges dict or None
:rtype: None or dict of RangeGroup |
(module
(function_definition
(function_name_convex_conj) function_name_convex_conj
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_conj_exp) identifier_conj_exp
(call
(identifier_conj_exp... | The convex conjugate functional of the group L1-norm. |
(module
(function_definition
(function_name_extract) function_name_extract
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(identifier_article_candidates) identifier_article_candida... | Runs the HTML-response trough a list of initialized extractors, a cleaner and compares the results.
:param item: NewscrawlerItem to be processed.
:return: An updated NewscrawlerItem including the results of the extraction |
(module
(function_definition
(function_name__get_ca_certs_paths) function_name__get_ca_certs_paths
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_ca_certs) identifier_ca_certs
(list
)list
)assignment
)expression_st... | Get a list of possible paths containing certificates
Check is installed via pip to:
* Windows: embedded/lib/site-packages/datadog_checks/http_check
* Linux: embedded/lib/python2.7/site-packages/datadog_checks/http_check
Certificate is installed to:
* embedded/ssl/certs/cacert.pem
walk up t... |
(module
(function_definition
(function_name_trigger_all_callbacks) function_name_trigger_all_callbacks
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_callbacks) identifier_callbacks
(None) None
)default_parameter
)parameters
(block
... | Trigger callbacks for all keys on all or a subset of subscribers.
:param Iterable callbacks: list of callbacks or none for all subscribed
:rtype: Iterable[tornado.concurrent.Future] |
(module
(function_definition
(function_name__parse_log_entry) function_name__parse_log_entry
(parameters
(identifier_entry_pb) identifier_entry_pb
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_MessageToDict) identif... | Special helper to parse ``LogEntry`` protobuf into a dictionary.
The ``proto_payload`` field in ``LogEntry`` is of type ``Any``. This
can be problematic if the type URL in the payload isn't in the
``google.protobuf`` registry. To help with parsing unregistered types,
this function will remove ``proto_p... |
(module
(function_definition
(function_name_ssl_context) function_name_ssl_context
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_verify) identifier_verify
(True) True
)default_parameter
(default_parameter
(identifier_cert_reqs) ide... | Create a SSL context object.
This method should not be called by from user code |
(module
(function_definition
(function_name_empty_wav) function_name_empty_wav
(parameters
(typed_parameter
(identifier_wav_path) identifier_wav_path
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
... | Check if a wav contains data |
(module
(function_definition
(function_name_set_general_setting) function_name_set_general_setting
(parameters
(identifier_key) identifier_key
(identifier_value) identifier_value
(default_parameter
(identifier_qsettings) identifier_qsettings
(None) None
)default_paramet... | Set value to QSettings based on key.
:param key: Unique key for setting.
:type key: basestring
:param value: Value to be saved.
:type value: QVariant
:param qsettings: A custom QSettings to use. If it's not defined, it will
use the default one.
:type qsettings: qgis.PyQt.QtCore.QSetti... |
(module
(function_definition
(function_name_range_to_numeric) function_name_range_to_numeric
(parameters
(identifier_ranges) identifier_ranges
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_values) identifier_values
... | Converts a sequence of string ranges to a sequence of floats.
E.g.::
>>> range_to_numeric(['1 uV', '2 mV', '1 V'])
[1E-6, 0.002, 1.0] |
(module
(function_definition
(function_name_photparse) function_name_photparse
(parameters
(identifier_tab) identifier_tab
)parameters
(block
(if_statement
(comparison_operator
(string_'source_id') string_'source_id'
(call
(attribute
(s... | Parse through a photometry table to group by source_id
Parameters
----------
tab: list
SQL query dictionary list from running query_dict.execute()
Returns
-------
newtab: list
Dictionary list after parsing to group together sources |
(module
(function_definition
(function_name_get_unique_scan_parameter_combinations) function_name_get_unique_scan_parameter_combinations
(parameters
(identifier_meta_data_array) identifier_meta_data_array
(default_parameter
(identifier_scan_parameters) identifier_scan_parameters
(N... | Takes the numpy meta data array and returns the first rows with unique combinations of different scan parameter values for selected scan parameters.
If selected columns only is true, the returned histogram only contains the selected columns.
Parameters
----------
meta_data_array : numpy.ndarray
... |
(module
(function_definition
(function_name_command) function_name_command
(parameters
(identifier_command) identifier_command
)parameters
(block
(with_statement
(with_clause
(with_item
(call
(identifier_cd) identifier_cd
(argument_... | Run custom Django management command |
(module
(function_definition
(function_name_are_budget_data_package_fields_filled_in) function_name_are_budget_data_package_fields_filled_in
(parameters
(identifier_self) identifier_self
(identifier_resource) identifier_resource
)parameters
(block
(expression_statement
(assig... | Check if the budget data package fields are all filled in because
if not then this can't be a budget data package |
(module
(function_definition
(function_name_load_data) function_name_load_data
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(identifier_ext) identifier_ext
)parameters
(block
(import_from_statement
(dotted_name
(ident... | Load data from filename |
(module
(function_definition
(function_name_src_paths) function_name_src_paths
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(set_comprehension
(identifier_src) identifier_src
(for_in_clause
(pattern_list
... | Return a list of source files in the diff
for which we have coverage information. |
(module
(function_definition
(function_name_explain) function_name_explain
(parameters
(identifier_self) identifier_self
(identifier_expr) identifier_expr
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
... | Query for and return the query plan associated with the indicated
expression or SQL query.
Returns
-------
plan : string |
(module
(function_definition
(function_name_DEFINE_boolean) function_name_DEFINE_boolean
(parameters
(identifier_name) identifier_name
(identifier_default) identifier_default
(identifier_help) identifier_help
(default_parameter
(identifier_flag_values) identifier_flag_values
... | Registers a boolean flag.
Such a boolean flag does not take an argument. If a user wants to
specify a false value explicitly, the long option beginning with 'no'
must be used: i.e. --noflag
This flag will have a value of None, True or False. None is possible
if default=None and the user does not specify t... |
(module
(function_definition
(function_name_upload_file) function_name_upload_file
(parameters
(identifier_self) identifier_self
(identifier_abspath) identifier_abspath
(identifier_cloud_filename) identifier_cloud_filename
)parameters
(block
(if_statement
(not_operator
... | Uploads a file to the container. |
(module
(function_definition
(function_name_GetIndex) function_name_GetIndex
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_index) identif... | Reads and returns the index tree.
This auxiliary function reads and returns the index tree file
contents for the CHM archive. |
(module
(function_definition
(function_name_info) function_name_info
(parameters
(identifier_ctx) identifier_ctx
)parameters
(block
(expression_statement
(assignment
(identifier_controller) identifier_controller
(subscript
(attribute
(i... | Display status of OATH application. |
(module
(function_definition
(function_name_export_for_training) function_name_export_for_training
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_file_path) identifier_file_path
(string_'./export.json') string_'./export.json'
)default_parameter
... | Create a file from the database that can be used to
train other chat bots. |
(module
(function_definition
(function_name_subtract) function_name_subtract
(parameters
(identifier_self) identifier_self
(identifier_range2) identifier_range2
)parameters
(block
(expression_statement
(assignment
(identifier_outranges) identifier_outranges
... | Take another range, and list of ranges after removing range2, keep options from self
:param range2:
:type range2: GenomicRange
:return: List of Genomic Ranges
:rtype: GenomicRange[] |
(module
(function_definition
(function_name_close) function_name_close
(parameters
(identifier_self) identifier_self
(keyword_separator
)keyword_separator
(default_parameter
(identifier_force_after) identifier_force_after
(integer_30) integer_30
)default_parameter... | Close the connection and return when closed. |
(module
(function_definition
(function_name_validate_contents) function_name_validate_contents
(parameters
(identifier_file_contents) identifier_file_contents
)parameters
(block
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_contents)... | Ensures that all ipynb files in FILE_CONTENTS
are valid JSON files. |
(module
(function_definition
(function_name_stop_actions) function_name_stop_actions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(attribute
(identifier_self) identifier_self
... | Gets a list of stop actions. Valid values are `coast`
and `brake`. |
(module
(function_definition
(function_name__gap) function_name__gap
(parameters
(identifier_src_interval) identifier_src_interval
(identifier_tar_interval) identifier_tar_interval
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(ide... | Refer section 3.1; gap function.
:param src_interval: first argument or interval 1
:param tar_interval: second argument or interval 2
:return: Interval representing gap between two intervals |
(module
(function_definition
(function_name_calc_across_paths_textnodes) function_name_calc_across_paths_textnodes
(parameters
(identifier_paths_nodes) identifier_paths_nodes
(default_parameter
(identifier_dbg) identifier_dbg
(False) False
)default_parameter
)parameters
... | Given a list of parent paths tupled with children textnodes, plus
initialized feature values, we calculate the total and average string
length of the parent's children textnodes. |
(module
(function_definition
(function_name_group) function_name_group
(parameters
(identifier_text) identifier_text
(identifier_size) identifier_size
)parameters
(block
(if_statement
(comparison_operator
(identifier_size) identifier_size
(integer_0) integ... | Group ``text`` into blocks of ``size``.
Example:
>>> group("test", 2)
['te', 'st']
Args:
text (str): text to separate
size (int): size of groups to split the text into
Returns:
List of n-sized groups of text
Raises:
ValueError: If n is non positive |
(module
(function_definition
(function_name_destroy) function_name_destroy
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__running) identi... | Tear down the minion |
(module
(function_definition
(function_name_pint_multiply) function_name_pint_multiply
(parameters
(identifier_da) identifier_da
(identifier_q) identifier_q
(default_parameter
(identifier_out_units) identifier_out_units
(None) None
)default_parameter
)parameters
... | Multiply xarray.DataArray by pint.Quantity.
Parameters
----------
da : xr.DataArray
Input array.
q : pint.Quantity
Multiplicating factor.
out_units : str
Units the output array should be converted into. |
(module
(function_definition
(function_name__to_dict) function_name__to_dict
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_physical_prop_names) identifier_physical_prop_names
(call
(ide... | Return a dictionary representation of the current object. |
(module
(function_definition
(function_name_category) function_name_category
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(string_'series') string_... | Get a category. |
(module
(function_definition
(function_name_add_dicts) function_name_add_dicts
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_counters) identifier_counter... | Adds two or more dicts together. Common keys will have their values added.
For example::
>>> t1 = {'a':1, 'b':2}
>>> t2 = {'b':1, 'c':3}
>>> t3 = {'d':4}
>>> add_dicts(t1, t2, t3)
{'a': 1, 'c': 3, 'b': 3, 'd': 4} |
(module
(function_definition
(function_name_rename_dimension) function_name_rename_dimension
(parameters
(identifier_self) identifier_self
(identifier_old_name) identifier_old_name
(identifier_new_name) identifier_new_name
)parameters
(block
(if_statement
(comparison_op... | Returns a copy where one dimension is renamed. |
(module
(function_definition
(function_name__get_dst_resolution) function_name__get_dst_resolution
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_dst_res) identifier_dst_res
(None) None
)default_parameter
)parameters
(block
(if_stat... | Get default resolution, i.e. the highest resolution or smallest cell size. |
(module
(function_definition
(function_name_get_instance) function_name_get_instance
(parameters
(identifier_self) identifier_self
(identifier_payload) identifier_payload
)parameters
(block
(return_statement
(call
(identifier_EventInstance) identifier_EventInstance
... | Build an instance of EventInstance
:param dict payload: Payload response from the API
:returns: twilio.rest.taskrouter.v1.workspace.event.EventInstance
:rtype: twilio.rest.taskrouter.v1.workspace.event.EventInstance |
(module
(function_definition
(function_name__find_unchanged) function_name__find_unchanged
(parameters
(identifier_old) identifier_old
(identifier_new) identifier_new
)parameters
(block
(expression_statement
(assignment
(identifier_edges) identifier_edges
... | returns edges that are in both old and new |
(module
(function_definition
(function_name_hazard_extra_keyword) function_name_hazard_extra_keyword
(parameters
(identifier_keyword) identifier_keyword
(identifier_feature) identifier_feature
(identifier_parent) identifier_parent
)parameters
(block
(expression_statement
... | Given a keyword, it will return the value of the keyword
from the hazard layer's extra keywords.
For instance:
* hazard_extra_keyword( 'depth' ) -> will return the value of 'depth'
in current hazard layer's extra keywords. |
(module
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_text) identifier_text
(default_parameter
(identifier_showToc) identifier_showToc
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assig... | Returns HTML from MediaWiki markup |
(module
(function_definition
(function_name_handle_request) function_name_handle_request
(parameters
(identifier_self) identifier_self
(identifier_environ) identifier_environ
(identifier_start_response) identifier_start_response
)parameters
(block
(expression_statement
... | Retrieves the route handler and calls the handler returning its the response
:param dict environ: The WSGI environment dictionary for the request
:param start_response:
:return: The WbResponse for the request
:rtype: WbResponse |
(module
(function_definition
(function_name_getLiteral) function_name_getLiteral
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_chars) identifier_chars
(string_u'') string_u''
)assignment
... | Get a sequence of non-special characters. |
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
(identifier_inst) identif... | Save the object instance to the stash. |
(module
(function_definition
(function_name_u8) function_name_u8
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parameter
(ident... | Add an unsigned 1 byte integer field to template.
This is an convenience method that simply calls `Uint` keyword with predefined length. |
(module
(function_definition
(function_name_filter_thumbnail_files) function_name_filter_thumbnail_files
(parameters
(identifier_chan_path) identifier_chan_path
(identifier_filenames) identifier_filenames
(identifier_metadata_provider) identifier_metadata_provider
)parameters
(block
... | We don't want to create `ContentNode` from thumbnail files. |
(module
(function_definition
(function_name_deprecated_attr) function_name_deprecated_attr
(parameters
(identifier_namespace) identifier_namespace
(identifier_attr) identifier_attr
(identifier_replacement) identifier_replacement
)parameters
(block
(expression_statement
... | Marks a module level attribute as deprecated. Accessing it will emit
a PyGIDeprecationWarning warning.
e.g. for ``deprecated_attr("GObject", "STATUS_FOO", "GLib.Status.FOO")``
accessing GObject.STATUS_FOO will emit:
"GObject.STATUS_FOO is deprecated; use GLib.Status.FOO instead"
:param str na... |
(module
(function_definition
(function_name_debug_sql) function_name_debug_sql
(parameters
(typed_parameter
(identifier_sql) identifier_sql
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(list_splat_pattern
(i... | Writes SQL and arguments to the log. |
(module
(function_definition
(function_name_imagenet50) function_name_imagenet50
(parameters
(default_parameter
(identifier_display) identifier_display
(False) False
)default_parameter
(default_parameter
(identifier_resolution) identifier_resolution
(integer_2... | This is a set of 50 images representative of ImageNet images.
This dataset was collected by randomly finding a working ImageNet link and then pasting the
original ImageNet image into Google image search restricted to images licensed for reuse. A
similar image (now with rights to reuse) was downloaded as a ... |
(module
(function_definition
(function_name_GetFormatterObject) function_name_GetFormatterObject
(parameters
(identifier_cls) identifier_cls
(identifier_data_type) identifier_data_type
)parameters
(block
(expression_statement
(assignment
(identifier_data_type) ident... | Retrieves the formatter object for a specific data type.
Args:
data_type (str): data type.
Returns:
EventFormatter: corresponding formatter or the default formatter if
not available. |
(module
(function_definition
(function_name_jenkins_rao) function_name_jenkins_rao
(parameters
(identifier_target) identifier_target
(default_parameter
(identifier_throat_perimeter) identifier_throat_perimeter
(string_'throat.perimeter') string_'throat.perimeter'
)default_par... | r"""
Jenkins and Rao relate the capillary pressure in an eliptical throat to
the aspect ratio
References
----------
Jenkins, R.G. and Rao, M.B., The effect of elliptical pores on
mercury porosimetry results. Powder technology, 38(2), pp.177-180. (1984) |
(module
(function_definition
(function_name__get_status_descr_by_id) function_name__get_status_descr_by_id
(parameters
(identifier_status_id) identifier_status_id
)parameters
(block
(for_statement
(pattern_list
(identifier_status_name) identifier_status_name
(id... | Return linode status by ID
status_id
linode VM status ID |
(module
(function_definition
(function_name_info) function_name_info
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(list
)list
)assignment
)expression_... | Use the priors that make up the model_mapper to generate information on each parameter of the overall model.
This information is extracted from each priors *model_info* property. |
(module
(function_definition
(function_name_attribute_exists) function_name_attribute_exists
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
... | Returns if given attribute exists in the node.
Usage::
>>> node_a = AbstractNode("MyNodeA", attributeA=Attribute(), attributeB=Attribute())
>>> node_a.attribute_exists("attributeA")
True
>>> node_a.attribute_exists("attributeC")
False
:param... |
(module
(function_definition
(function_name__get_node) function_name__get_node
(parameters
(identifier_self) identifier_self
(identifier_node_id) identifier_node_id
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_se... | Refresh and get info for this node, updating the cache. |
(module
(function_definition
(function_name_find_specs) function_name_find_specs
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
)parameters
(block
(expression_statement
(assignment
(identifier_specs) identifier_specs
... | Finds all specs in a given directory. Returns a list of
Example and ExampleGroup instances. |
(module
(function_definition
(function_name_interface_direct_class) function_name_interface_direct_class
(parameters
(identifier_data_class) identifier_data_class
)parameters
(block
(if_statement
(comparison_operator
(identifier_data_class) identifier_data_class
... | help to direct to the correct interface interacting with DB by class name only |
(module
(function_definition
(function_name_get_xyz_2d) function_name_get_xyz_2d
(parameters
(identifier_self) identifier_self
(identifier_xcoord) identifier_xcoord
(identifier_x) identifier_x
(identifier_ycoord) identifier_ycoord
(identifier_y) identifier_y
(identifier_u) ... | Get closest x, y and z for the given `x` and `y` in `data` for
2d coords |
(module
(function_definition
(function_name_write_xml) function_name_write_xml
(parameters
(identifier_self) identifier_self
(identifier_xmlfile) identifier_xmlfile
(default_parameter
(identifier_config) identifier_config
(None) None
)default_parameter
)parameters
... | Save the ROI model as an XML file. |
(module
(function_definition
(function_name_change_to_workdir) function_name_change_to_workdir
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier... | Change working directory to working attribute
:return: None |
(module
(function_definition
(function_name_convert_html_to_xml) function_name_convert_html_to_xml
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argum... | Parses the HTML parsed texts and converts its tags to XML valid tags.
:returns: HTML enabled text in a XML valid format.
:rtype: str |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_fname) identifier_fname
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(block
... | Saves the dataset to a binary .npy file. |
(module
(function_definition
(function_name_get_local_roles_for) function_name_get_local_roles_for
(parameters
(identifier_brain_or_object) identifier_brain_or_object
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
)parameters
(bloc... | Get the local defined roles on the context
Code extracted from `IRoleManager.get_local_roles_for_userid`
:param brain_or_object: Catalog brain or object
:param user: A user ID, user object or None (for the current user)
:returns: List of granted local roles on the given object |
(module
(function_definition
(function_name_maybe_transactional) function_name_maybe_transactional
(parameters
(identifier_func) identifier_func
)parameters
(block
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument... | Variant of `transactional` that will not commit if there's an argument `commit` with a falsey value.
Useful for dry-run style operations. |
(module
(function_definition
(function_name_random_integers) function_name_random_integers
(parameters
(identifier_cls) identifier_cls
(identifier_size) identifier_size
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
... | Returns an SArray with random integer values. |
(module
(function_definition
(function_name__ord_to_str) function_name__ord_to_str
(parameters
(identifier_ordinal) identifier_ordinal
(identifier_weights) identifier_weights
)parameters
(block
(expression_statement
(assignment
(identifier_chars) identifier_chars
... | Reverse function of _str_to_ord. |
(module
(function_definition
(function_name__get_driver) function_name__get_driver
(parameters
(identifier_driver_type) identifier_driver_type
)parameters
(block
(if_statement
(comparison_operator
(identifier_driver_type) identifier_driver_type
(string_'phantomj... | Get webdriver. |
(module
(function_definition
(function_name_show_form_for_method) function_name_show_form_for_method
(parameters
(identifier_self) identifier_self
(identifier_view) identifier_view
(identifier_method) identifier_method
(identifier_request) identifier_request
(identifier_obj) iden... | Returns True if a form should be shown for this method. |
(module
(function_definition
(function_name_getUTC) function_name_getUTC
(parameters
(identifier_self) identifier_self
(identifier_utcoffset) identifier_utcoffset
)parameters
(block
(expression_statement
(assignment
(identifier_newTime) identifier_newTime
... | Returns a new Time object set to UTC given
an offset Time object. |
(module
(function_definition
(function_name_custom_server_error) function_name_custom_server_error
(parameters
(identifier_request) identifier_request
(default_parameter
(identifier_template_name) identifier_template_name
(string_'500.html') string_'500.html'
)default_paramet... | 500 error handler. Displays a full trackback for superusers and the first line of the
traceback for staff members.
Templates: `500.html` or `500A.html` (admin)
Context: trace
Holds the traceback information for debugging. |
(module
(function_definition
(function_name__option) function_name__option
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(identifier___opts__) identifier___opts__
... | Look up the value for an option. |
(module
(function_definition
(function_name_value) function_name_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
... | Value to be written on register.
:param value: An integer.
:raises: IllegalDataValueError when value isn't in range. |
(module
(function_definition
(function_name_visit_object) function_name_visit_object
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(if_statement
(attribute
(identifier_current_app) identifier_current_app
... | Fallback rendering for objects.
If the current application is in debug-mode
(``flask.current_app.debug`` is ``True``), an ``<!-- HTML comment
-->`` will be rendered, indicating which class is missing a visitation
function.
Outside of debug-mode, returns an empty string. |
(module
(function_definition
(function_name_image_tasks) function_name_image_tasks
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(string_"/%s/tasks"... | Returns a json-schema document that represents a container of tasks
entities. |
(module
(function_definition
(function_name_read) function_name_read
(parameters
(identifier_config_values) identifier_config_values
)parameters
(block
(if_statement
(not_operator
(identifier_config_values) identifier_config_values
)not_operator
(block
... | Reads an ordered list of configuration values and deep merge the values in reverse order. |
(module
(function_definition
(function_name_proportional_weights) function_name_proportional_weights
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fraction_stdev) identifier_fraction_stdev
(float_1.0) float_1.0
)default_parameter
(default_... | setup weights inversely proportional to the observation value
Parameters
----------
fraction_stdev : float
the fraction portion of the observation
val to treat as the standard deviation. set to 1.0 for
inversely proportional
wmax : float
... |
(module
(function_definition
(function_name_add_resources_to_registry) function_name_add_resources_to_registry
(parameters
)parameters
(block
(import_from_statement
(dotted_name
(identifier_deform) identifier_deform
(identifier_widget) identifier_widget
)dotte... | Add resources to the deform registry |
(module
(function_definition
(function_name__get_user) function_name__get_user
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_user) identifier_user
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
... | Creates an User from an user_id, if none, or fetch a cached User
As all users are supposed to be in discovery room, its members dict is used for caching |
(module
(function_definition
(function_name_file_md5) function_name_file_md5
(parameters
(identifier_f) identifier_f
(default_parameter
(identifier_size) identifier_size
(integer_8192) integer_8192
)default_parameter
)parameters
(block
(expression_statement
... | Calculates the MD5 of a file. |
(module
(function_definition
(function_name_add_output_variable) function_name_add_output_variable
(parameters
(identifier_self) identifier_self
(identifier_var) identifier_var
)parameters
(block
(assert_statement
(parenthesized_expression
(call
(identif... | Adds the argument variable as one of the output variable |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_dct) identifier_dct
(default_parameter
(identifier_intype) identifier_intype
(string_'json') string_'json'
)default_parameter
(default_parameter
(identifier_raise_er... | decode dict objects, via decoder plugins, to new type
Parameters
----------
intype: str
use decoder method from_<intype> to encode
raise_error : bool
if True, raise ValueError if no suitable plugin found
Examples
--------
>>> load_builtin_plugins('decoders')
[]
>>>... |
(module
(function_definition
(function_name_find_sink_variables) function_name_find_sink_variables
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_is_sink) identifier_is_sink
(dictionary_comprehensio... | Find sink variables in this scope |
(module
(function_definition
(function_name_uploads) function_name_uploads
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_syncEnabled) ide... | returns the class to perform the upload function. it will
only return the uploads class if syncEnabled is True. |
(module
(function_definition
(function_name__decoder) function_name__decoder
(parameters
(identifier_image) identifier_image
(identifier_shrink) identifier_shrink
)parameters
(block
(expression_statement
(assignment
(identifier_decoder) identifier_decoder
... | A context manager for `DmtxDecode`, created and destroyed by
`dmtxDecodeCreate` and `dmtxDecodeDestroy`.
Args:
image (POINTER(DmtxImage)):
shrink (int):
Yields:
POINTER(DmtxDecode): The created decoder
Raises:
PyLibDMTXError: If the decoder could not be created. |
(module
(function_definition
(function_name__ParseSignatureIdentifiers) function_name__ParseSignatureIdentifiers
(parameters
(identifier_self) identifier_self
(identifier_data_location) identifier_data_location
(identifier_signature_identifiers) identifier_signature_identifiers
)paramete... | Parses the signature identifiers.
Args:
data_location (str): location of the format specification file, for
example, "signatures.conf".
signature_identifiers (str): comma separated signature identifiers.
Raises:
IOError: if the format specification file could not be read from
... |
(module
(function_definition
(function_name_dumps) function_name_dumps
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_bucket) identifier_bucket
(None) None
)default_parameter
)parameters
(block
(return_statement
(list_compre... | Serialize files from a bucket.
:param bucket: Instance of files
:class:`invenio_files_rest.models.Bucket`. (Default:
``self.bucket``)
:returns: List of serialized files. |
(module
(function_definition
(function_name_centroid) function_name_centroid
(parameters
(identifier_X) identifier_X
)parameters
(block
(expression_statement
(assignment
(identifier_C) identifier_C
(binary_operator
(call
(attribute
... | Calculate the centroid from a matrix X |
(module
(function_definition
(function_name__compile_rules) function_name__compile_rules
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_state) identifier_state
(identifier_table) identifier_table
... | Compile the rules into the internal lexer state. |
(module
(function_definition
(function_name__store_credentials) function_name__store_credentials
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_password) identifier_password
(default_parameter
(identifier_remember) identifier... | Store credentials for future use. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_new_email_address) identifier_new_email_address
(identifier_name) identifier_name
(identifier_custom_fields) identifier_custom_fields
(identifier_res... | Updates any aspect of a subscriber, including email address, name, and
custom field data if supplied. |
(module
(function_definition
(function_name_get_groups) function_name_get_groups
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_process_result) function_name_process_result
(parameters
(identifier_result) ident... | Return the groups linked to the gateway.
Returns a Command. |
(module
(function_definition
(function_name_update_type_lookups) function_name_update_type_lookups
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(iden... | Update type and typestring lookup dicts.
Must be called once the ``types`` and ``python_type_strings``
attributes are set so that ``type_to_typestring`` and
``typestring_to_type`` are constructed.
.. versionadded:: 0.2
Notes
-----
Subclasses need to call this f... |
(module
(function_definition
(function_name__read_opt_ilnp) function_name__read_opt_ilnp
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(keyword_separator
)keyword_separator
(identifier_desc) identifier_desc
)parameters
(block
(expre... | Read HOPOPT ILNP Nonce option.
Structure of HOPOPT ILNP Nonce option [RFC 6744]:
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
... |
(module
(function_definition
(function_name_normalize_json) function_name_normalize_json
(parameters
(identifier_template) identifier_template
)parameters
(block
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_pars... | Normalize our template for diffing.
Args:
template(str): string representing the template
Returns:
list: json representation of the parameters |
(module
(function_definition
(function_name_group_members) function_name_group_members
(parameters
(identifier_self) identifier_self
(identifier_group_id) identifier_group_id
(default_parameter
(identifier_include_orphans) identifier_include_orphans
(False) False
)defau... | Find all group member trigger definitions
:param group_id: group trigger id
:param include_orphans: If True, include orphan members
:return: list of asociated group members as trigger objects |
(module
(function_definition
(function_name_create_html) function_name_create_html
(parameters
(identifier_api_key) identifier_api_key
(identifier_attrs) identifier_attrs
)parameters
(block
(expression_statement
(assignment
(identifier_gif) identifier_gif
... | Returns complete html tag string. |
(module
(function_definition
(function_name_run_async) function_name_run_async
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifie... | Runs an Ansible Runner task in the background which will start immediately. Returns the thread object and a Runner object.
This uses the same parameters as :py:func:`ansible_runner.interface.run`
:returns: A tuple containing a :py:class:`threading.Thread` object and a :py:class:`ansible_runner.runner.Runner` ... |
(module
(function_definition
(function_name_transceive) function_name_transceive
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
)parameters
... | Transmit arbitrary data and receive the response.
This is a low level method to send arbitrary data to the
tag. While it should almost always be better to use
:meth:`send_apdu` this is the only way to force a specific
timeout value (which is otherwise derived from the Tag's
answ... |
(module
(function_definition
(function_name_convert_to_mb) function_name_convert_to_mb
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(attribute
(identifier... | Convert memory size from GB to MB. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.