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 ... |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 10