sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name__read_apps) function_name__read_apps
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_apps) identifier_apps
(dictionary
)dictionary
)assig... | Read the configuration of applications returning a dictionary
:return: A dictionary with application names as keys and configuration \
object as values. |
(module
(function_definition
(function_name_hostname) function_name_hostname
(parameters
(identifier_hn) identifier_hn
(identifier_ft) identifier_ft
(identifier_si) identifier_si
)parameters
(block
(if_statement
(boolean_operator
(not_operator
(ide... | Check hostname, facter and systemid to get the fqdn, hostname and domain.
Prefer hostname to facter and systemid.
Returns:
insights.combiners.hostname.Hostname: A named tuple with `fqdn`,
`hostname` and `domain` components.
Raises:
Exception: If no hostname can be found in any of ... |
(module
(function_definition
(function_name_calculate_entropy) function_name_calculate_entropy
(parameters
(identifier_self) identifier_self
(identifier_entropy_string) identifier_entropy_string
)parameters
(block
(expression_statement
(assignment
(identifier_total)... | Calculates the entropy of a string based on known frequency of
English letters.
Args:
entropy_string: A str representing the string to calculate.
Returns:
A negative float with the total entropy of the string (higher
is better). |
(module
(function_definition
(function_name__maybe_match_name) function_name__maybe_match_name
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
)parameters
(block
(expression_statement
(assignment
(identifier_a_has) identifier_a_has
(cal... | Try to find a name to attach to the result of an operation between
a and b. If only one of these has a `name` attribute, return that
name. Otherwise return a consensus name if they match of None if
they have different names.
Parameters
----------
a : object
b : object
Returns
---... |
(module
(function_definition
(function_name__parse_os_release) function_name__parse_os_release
(parameters
(list_splat_pattern
(identifier_os_release_files) identifier_os_release_files
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
... | Parse os-release and return a parameter dictionary
See http://www.freedesktop.org/software/systemd/man/os-release.html
for specification of the file format. |
(module
(function_definition
(function_name_parse_source_file) function_name_parse_source_file
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(ide... | Parse source file into AST node
Parameters
----------
filename : str
File path
Returns
-------
node : AST node
content : utf-8 encoded string |
(module
(function_definition
(function_name__download_mirbase) function_name__download_mirbase
(parameters
(identifier_args) identifier_args
(default_parameter
(identifier_version) identifier_version
(string_"CURRENT") string_"CURRENT"
)default_parameter
)parameters
(... | Download files from mirbase |
(module
(function_definition
(function_name_parse_band_log) function_name_parse_band_log
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string... | Process incoming logging messages from the service. |
(module
(function_definition
(function_name__read_para_hip_signature_2) function_name__read_para_hip_signature_2
(parameters
(identifier_self) identifier_self
(identifier_code) identifier_code
(identifier_cbit) identifier_cbit
(identifier_clen) identifier_clen
(keyword_separator
... | Read HIP HIP_SIGNATURE_2 parameter.
Structure of HIP HIP_SIGNATURE_2 parameter [RFC 7401]:
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_save_script_file_for_state_and_source_path) function_name_save_script_file_for_state_and_source_path
(parameters
(identifier_state) identifier_state
(identifier_state_path_full) identifier_state_path_full
(default_parameter
(identifier_as_c... | Saves the script file for a state to the directory of the state.
The script name will be set to the SCRIPT_FILE constant.
:param state: The state of which the script file should be saved
:param str state_path_full: The path to the file system storage location of the state
:param bool as_copy: Temporar... |
(module
(function_definition
(function_name__find_start_time) function_name__find_start_time
(parameters
(identifier_hdr) identifier_hdr
(identifier_s_freq) identifier_s_freq
)parameters
(block
(expression_statement
(assignment
(identifier_start_time) identifier_sta... | Find the start time, usually in STC, but if that's not correct, use ERD
Parameters
----------
hdr : dict
header with stc (and stamps) and erd
s_freq : int
sampling frequency
Returns
-------
datetime
either from stc or from erd
Notes
-----
Sometimes, but... |
(module
(function_definition
(function_name__Execute) function_name__Execute
(parameters
(identifier_self) identifier_self
(identifier_options) identifier_options
)parameters
(block
(expression_statement
(assignment
(identifier_whitelist) identifier_whitelist
... | Handles security groups operations. |
(module
(function_definition
(function_name_set_value) function_name_set_value
(parameters
(identifier_self) identifier_self
(identifier_pymux) identifier_pymux
(identifier_value) identifier_value
)parameters
(block
(try_statement
(block
(expression_statement
... | Take a string, and return an integer. Raise SetOptionError when the
given text does not parse to a positive integer. |
(module
(function_definition
(function_name_genlmsg_valid_hdr) function_name_genlmsg_valid_hdr
(parameters
(identifier_nlh) identifier_nlh
(identifier_hdrlen) identifier_hdrlen
)parameters
(block
(if_statement
(not_operator
(call
(identifier_nlmsg_valid_... | Validate Generic Netlink message headers.
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/genl.c#L117
Verifies the integrity of the Netlink and Generic Netlink headers by enforcing the following requirements:
- Valid Netlink message header (`nlmsg_valid_hdr()`)
- Presence of a complete Gene... |
(module
(function_definition
(function_name_changed_path) function_name_changed_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Find any changed path and update all changed modification times.") string_"Find any changed path and ... | Find any changed path and update all changed modification times. |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_expires) identifier_expires
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_oper... | Save a copy of the object into the cache. |
(module
(function_definition
(function_name_populateFromRow) function_name_populateFromRow
(parameters
(identifier_self) identifier_self
(identifier_referenceSetRecord) identifier_referenceSetRecord
)parameters
(block
(expression_statement
(assignment
(attribute
... | Populates this reference set from the values in the specified DB
row. |
(module
(function_definition
(function_name__rev) function_name__rev
(parameters
(identifier_repo) identifier_repo
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_repo_info) identifier_repo_info
... | Returns revision ID of repo |
(module
(function_definition
(function_name_prepare) function_name_prepare
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_l... | Prepare the incoming request, checking to see the request is sending
JSON content in the request body. If so, the content is decoded and
assigned to the json_arguments attribute. |
(module
(function_definition
(function_name_find_config) function_name_find_config
(parameters
(identifier_directory_or_file) identifier_directory_or_file
(default_parameter
(identifier_debug) identifier_debug
(False) False
)default_parameter
)parameters
(block
... | Return configuration filename.
If `directory_or_file` is a file, return the real-path of that file. If it
is a directory, find the configuration (any file name in CONFIG_FILES) in
that directory or its ancestors. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_self) identifier_self
(identifier_host) identifier_host
(default_parameter
(identifier_port) identifier_port
(integer_25) integer_25
)default_parameter
(default_parameter
... | Executes a single health check against a remote host and port. This
method may only be called once per object.
:param host: The hostname or IP address of the SMTP server to check.
:type host: str
:param port: The port number of the SMTP server to check.
:type port: int
:... |
(module
(function_definition
(function_name_launchDashboardOverlay) function_name_launchDashboardOverlay
(parameters
(identifier_self) identifier_self
(identifier_pchAppKey) identifier_pchAppKey
)parameters
(block
(expression_statement
(assignment
(identifier_fn) id... | Launches the dashboard overlay application if it is not already running. This call is only valid for
dashboard overlay applications. |
(module
(function_definition
(function_name__parse_use) function_name__parse_use
(parameters
(identifier_self) identifier_self
(identifier_string) identifier_string
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
... | Extracts use dependencies from the innertext of a module. |
(module
(function_definition
(function_name_sphericalAngSep) function_name_sphericalAngSep
(parameters
(identifier_ra0) identifier_ra0
(identifier_dec0) identifier_dec0
(identifier_ra1) identifier_ra1
(identifier_dec1) identifier_dec1
(default_parameter
(identifier_radian... | Compute the spherical angular separation between two
points on the sky.
//Taken from http://www.movable-type.co.uk/scripts/gis-faq-5.1.html
NB: For small distances you can probably use
sqrt( dDec**2 + cos^2(dec)*dRa)
where dDec = dec1 - dec0 and
dRa = ra1 - ra0
... |
(module
(function_definition
(function_name___add_token_annotation_tier) function_name___add_token_annotation_tier
(parameters
(identifier_self) identifier_self
(identifier_tier) identifier_tier
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifi... | adds a tier to the document graph, in which each event annotates
exactly one token. |
(module
(function_definition
(function_name__prepare_value_nd) function_name__prepare_value_nd
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
(identifier_vshape) identifier_vshape
)parameters
(block
(if_statement
(call
(ident... | Given value and vshape, create an `NDArray` from value with the same
context and dtype as the current one and broadcast it to vshape. |
(module
(function_definition
(function_name__read_stderr) function_name__read_stderr
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(identifier_open) identifier_ope... | Read the stderr file of the kernel. |
(module
(function_definition
(function_name_internal_get_description) function_name_internal_get_description
(parameters
(identifier_dbg) identifier_dbg
(identifier_seq) identifier_seq
(identifier_thread_id) identifier_thread_id
(identifier_frame_id) identifier_frame_id
(identifi... | Fetch the variable description stub from the debug console |
(module
(function_definition
(function_name_get_epoch_namespace_lifetime_grace_period) function_name_get_epoch_namespace_lifetime_grace_period
(parameters
(identifier_block_height) identifier_block_height
(identifier_namespace_id) identifier_namespace_id
)parameters
(block
(expressio... | what's the namespace lifetime grace period for this epoch? |
(module
(function_definition
(function_name_promise) function_name_promise
(parameters
(identifier_cls) identifier_cls
(identifier_fn) identifier_fn
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwa... | Used to build a task based on a callable function and the arguments.
Kick it off and start execution of the task.
:param fn: callable
:param args: tuple
:param kwargs: dict
:return: SynchronousTask or AsynchronousTask |
(module
(function_definition
(function_name_tuple_of) function_name_tuple_of
(parameters
(list_splat_pattern
(identifier_generators) identifier_generators
)list_splat_pattern
)parameters
(block
(class_definition
(identifier_TupleOfGenerators) identifier_TupleOfGenerat... | Generates a tuple by generating values for each of the specified
generators.
This is a class factory, it makes a class which is a closure around the
specified generators. |
(module
(function_definition
(function_name_make_ttv_yaml) function_name_make_ttv_yaml
(parameters
(identifier_corpora) identifier_corpora
(identifier_path_to_ttv_file) identifier_path_to_ttv_file
(default_parameter
(identifier_ttv_ratio) identifier_ttv_ratio
(identifier_DEFA... | Create a test, train, validation from the corpora given and saves it as a YAML filename.
Each set will be subject independent, meaning that no one subject can have data in more than one
set
# Arguments;
corpora: a list of the paths to corpora used (these have to be formatted accoring to no... |
(module
(function_definition
(function_name_verify_logout_request) function_name_verify_logout_request
(parameters
(identifier_cls) identifier_cls
(identifier_logout_request) identifier_logout_request
(identifier_ticket) identifier_ticket
)parameters
(block
(try_statement
... | verifies the single logout request came from the CAS server
returns True if the logout_request is valid, False otherwise |
(module
(function_definition
(function_name_matrix) function_name_matrix
(parameters
(identifier_ctx) identifier_ctx
(identifier_scenario_name) identifier_scenario_name
(identifier_subcommand) identifier_subcommand
)parameters
(block
(expression_statement
(assignment
... | List matrix of steps used to test instances. |
(module
(function_definition
(function_name_validate) function_name_validate
(parameters
(identifier_self) identifier_self
(identifier_val) identifier_val
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_validation)... | Validate values according to the requirement |
(module
(function_definition
(function_name_request_with_retries_on_post_search) function_name_request_with_retries_on_post_search
(parameters
(identifier_self) identifier_self
(identifier_session) identifier_session
(identifier_url) identifier_url
(identifier_query) identifier_query
... | Submit a request and retry POST search requests specifically.
We don't currently retry on POST requests, and this is intended as a temporary fix until
the swagger is updated and changes applied to prod. In the meantime, this function will add
retries specifically for POST search (and any other... |
(module
(function_definition
(function_name_get_active_keys_to_keycode_list) function_name_get_active_keys_to_keycode_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(attribute
(id... | Get a list of active keys. Uses XQueryKeymap |
(module
(function_definition
(function_name_log) function_name_log
(parameters
(identifier_self) identifier_self
(identifier_level) identifier_level
(identifier_message) identifier_message
)parameters
(block
(if_statement
(comparison_operator
(attribute
... | Write a log message via the child process.
The child process must already exist; call :meth:`live_log_child`
to make sure. If it has died in a way we don't expect then
this will raise :const:`signal.SIGPIPE`. |
(module
(function_definition
(function_name__postrun) function_name__postrun
(parameters
(identifier_self) identifier_self
(identifier_result) identifier_result
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logg... | To execute after exection
:param kser.result.Result result: Execution result
:return: Execution result
:rtype: kser.result.Result |
(module
(function_definition
(function_name_use_db) function_name_use_db
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_mode) identifier_mode
(attribute
(attribute
(identifier_WorkDB) identifier_WorkDB
(identifier_Mode... | Open a DB in file `path` in mode `mode` as a context manager.
On exiting the context the DB will be automatically closed.
Args:
path: The path to the DB file.
mode: The mode in which to open the DB. See the `Mode` enum for
details.
Raises:
FileNotFoundError: If `mode` is `Mode.o... |
(module
(function_definition
(function_name_reject_entry) function_name_reject_entry
(parameters
(identifier_request) identifier_request
(identifier_entry_id) identifier_entry_id
)parameters
(block
(expression_statement
(assignment
(identifier_return_url) identifier... | Admins can reject an entry that has been verified or approved but not
invoiced to set its status to 'unverified' for the user to fix. |
(module
(function_definition
(function_name_list_changes) function_name_list_changes
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(id... | Return a list of modified records.
This is only applicable for attached tables.
Returns:
A list of `(row_index, record)` tuples of modified records
Raises:
:class:`delphin.exceptions.ItsdbError`: when called on a
detached table |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_addr) identifier_addr
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_hrpgot) identifier_hrpgot
(identifier_data) identi... | Decode a segwit address. |
(module
(function_definition
(function_name_asQuartusTcl) function_name_asQuartusTcl
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_buff) identifier_buff
(type
(generic_type
(identifier_List) identifier_List
(type_parame... | Add interface to Quartus tcl
:param buff: line buffer for output
:param version: Quartus version
:param intfName: name of top interface
:param component: component object from ipcore generator
:param packager: instance of IpPackager which is packagin current design
:para... |
(module
(function_definition
(function_name_hasnew) function_name_hasnew
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_allowempty) identifier_allowempty
(False) False
)default_parameter
)parameters
(block
(for_statement
(id... | Does the correction define new corrected annotations? |
(module
(function_definition
(function_name_MakeOdds) function_name_MakeOdds
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(pattern_list
(identifier_hypo) identifier_hypo
(identifier_prob) identifier_prob
)pattern_list
... | Transforms from probabilities to odds.
Values with prob=0 are removed. |
(module
(function_definition
(function_name_get_self_host) function_name_get_self_host
(parameters
(identifier_request_data) identifier_request_data
)parameters
(block
(if_statement
(comparison_operator
(string_'http_host') string_'http_host'
(identifier_request... | Returns the current host.
:param request_data: The request as a dict
:type: dict
:return: The current host
:rtype: string |
(module
(function_definition
(function_name_schedCoro) function_name_schedCoro
(parameters
(identifier_self) identifier_self
(identifier_coro) identifier_coro
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_synapse) identifi... | Schedules a free-running coroutine to run on this base's event loop. Kills the coroutine if Base is fini'd.
It does not pend on coroutine completion.
Precondition:
This function is *not* threadsafe and must be run on the Base's event loop
Returns:
asyncio.Task: An asyn... |
(module
(function_definition
(function_name_get_statistics_24h) function_name_get_statistics_24h
(parameters
(identifier_self) identifier_self
(identifier_endtime) identifier_endtime
)parameters
(block
(expression_statement
(assignment
(identifier_js) identifier_js
... | Return statistical data last 24h from time |
(module
(function_definition
(function_name_check_jobs) function_name_check_jobs
(parameters
(identifier_jobs) identifier_jobs
)parameters
(block
(if_statement
(comparison_operator
(identifier_jobs) identifier_jobs
(integer_0) integer_0
)comparison_opera... | Validate number of jobs. |
(module
(function_definition
(function_name_when_matches) function_name_when_matches
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_good_value) identifier_good_value
(default_parameter
(identifier_bad_values) identifier_bad_values
... | Resolve when an path value equals value
Args:
path (list): The path to wait to
good_value (object): the value to wait for
bad_values (list): values to raise an error on
timeout (float): time in seconds to wait for responses, wait
forever if None
... |
(module
(function_definition
(function_name_fit) function_name_fit
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(default_parameter
(identifier_parent_node) identifier_parent_node
(None) None
)default_parameter
(default_parameter
... | Computes the CPD for each node from a given data in the form of a pandas dataframe.
If a variable from the data is not present in the model, it adds that node into the model.
Parameters
----------
data : pandas DataFrame object
A DataFrame object with column names same as th... |
(module
(function_definition
(function_name_create_index) function_name_create_index
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_es) identifier_es
(call
(attribute
(iden... | Override to provide code for creating the target index.
By default it will be created without any special settings or mappings. |
(module
(function_definition
(function_name__from_dict) function_name__from_dict
(parameters
(identifier_cls) identifier_cls
(identifier__dict) identifier__dict
)parameters
(block
(expression_statement
(assignment
(identifier_args) identifier_args
(diction... | Initialize a TrainingDataSet object from a json dictionary. |
(module
(function_definition
(function_name_addLabel) function_name_addLabel
(parameters
(identifier_self) identifier_self
(identifier_aminoAcidLabels) identifier_aminoAcidLabels
(default_parameter
(identifier_excludingModifications) identifier_excludingModifications
(None) N... | Adds a new labelstate.
:param aminoAcidsLabels: Describes which amino acids can bear which
labels. Possible keys are the amino acids in one letter code and
'nTerm', 'cTerm'. Possible values are the modifications ids from
:attr:`maspy.constants.aaModMass` as strings or a list... |
(module
(function_definition
(function_name_detach_all_classes) function_name_detach_all_classes
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_classes) identifier_classes
(call
(identif... | Detach from all tracked classes. |
(module
(function_definition
(function_name_classproperty) function_name_classproperty
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_doc) identifier_doc
(attribute
(identifier_func) ide... | Use as a decorator on a method definition to make it a class-level attribute.
This decorator can be applied to a method, a classmethod, or a staticmethod. This decorator will
bind the first argument to the class object.
Usage:
>>> class Foo(object):
... @classproperty
... def name(cls):
... retu... |
(module
(function_definition
(function_name_sort_cards) function_name_sort_cards
(parameters
(identifier_cards) identifier_cards
(default_parameter
(identifier_ranks) identifier_ranks
(None) None
)default_parameter
)parameters
(block
(expression_statement
... | Sorts a given list of cards, either by poker ranks, or big two ranks.
:arg cards:
The cards to sort.
:arg dict ranks:
The rank dict to reference for sorting. If ``None``, it will
default to ``DEFAULT_RANKS``.
:returns:
The sorted cards. |
(module
(function_definition
(function_name_from_sequence) function_name_from_sequence
(parameters
(identifier_chain) identifier_chain
(identifier_list_of_residues) identifier_list_of_residues
(default_parameter
(identifier_sequence_type) identifier_sequence_type
(None) None
... | Takes in a chain identifier and protein sequence and returns a Sequence object of Residues, indexed from 1. |
(module
(function_definition
(function_name_rule_variable) function_name_rule_variable
(parameters
(identifier_field_type) identifier_field_type
(default_parameter
(identifier_label) identifier_label
(None) None
)default_parameter
(default_parameter
(identifier_... | Decorator to make a function into a rule variable |
(module
(function_definition
(function_name_start_in_keepedalive_processes) function_name_start_in_keepedalive_processes
(parameters
(identifier_obj) identifier_obj
(identifier_nb_process) identifier_nb_process
)parameters
(block
(expression_statement
(assignment
(i... | Start nb_process and keep them alive. Send job to them multiple times, then close thems. |
(module
(function_definition
(function_name_ring_position) function_name_ring_position
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_type... | The current position of the ring, in degrees
counterclockwise from the northern-most point of the ring in
the tablet's current logical orientation.
If the source is
:attr:`~libinput.constant.TabletPadRingAxisSource.FINGER`,
libinput sends a terminating event with a ring value of -1 when
the finger is lifte... |
(module
(function_definition
(function_name_init_services) function_name_init_services
(parameters
(identifier_service_definitions) identifier_service_definitions
(identifier_service_context) identifier_service_context
(identifier_state_db) identifier_state_db
(default_parameter
... | Initiates a set of services
:param service_definitions: A dictionary cotaining service definitions
:param service_context: A reference to the service context, this is the same
for all service instances.
:param state_db: A reference to the state database. Shared by all the
services.
:par... |
(module
(function_definition
(function_name__capabilities_dict) function_name__capabilities_dict
(parameters
(identifier_envs) identifier_envs
(identifier_tags) identifier_tags
)parameters
(block
(expression_statement
(assignment
(identifier_capabilities) identifier... | Convert the dictionary of environment variables to
a dictionary of desired capabilities to send to the
Remote WebDriver.
`tags` is a list of string tags to apply to the SauceLabs job. |
(module
(function_definition
(function_name_pch_emitter) function_name_pch_emitter
(parameters
(identifier_target) identifier_target
(identifier_source) identifier_source
(identifier_env) identifier_env
)parameters
(block
(expression_statement
(call
(identifie... | Adds the object file target. |
(module
(function_definition
(function_name_get_configdir) function_name_get_configdir
(parameters
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_configdir) identifier_configdir
(call
(attribute
... | Return the string representing the configuration directory.
The directory is chosen as follows:
1. If the ``name.upper() + CONFIGDIR`` environment variable is supplied,
choose that.
2a. On Linux, choose `$HOME/.config`.
2b. On other platforms, choose `$HOME/.matplotlib`.
3. If the chosen... |
(module
(function_definition
(function_name__load_params) function_name__load_params
(parameters
(identifier_params) identifier_params
(default_parameter
(identifier_logger) identifier_logger
(identifier_logging) identifier_logging
)default_parameter
)parameters
(bloc... | Given a str as a path to the .params file or a pair of params,
returns two dictionaries representing arg_params and aux_params. |
(module
(function_definition
(function_name_clean) function_name_clean
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operato... | Clean generated objects from the dataset, but only if there are File contents
to regenerate them |
(module
(function_definition
(function_name_call_mr_transform) function_name_call_mr_transform
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_opt) identifier_opt
(string_'') string_''
)default_parameter
(default_parameter
(identifie... | r"""Call mr_transform
This method calls the iSAP module mr_transform
Parameters
----------
data : np.ndarray
Input data, 2D array
opt : list or str, optional
Options to be passed to mr_transform
path : str, optional
Path for output files (default is './')
remove_fil... |
(module
(function_definition
(function_name_walk_recursive) function_name_walk_recursive
(parameters
(identifier_f) identifier_f
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
... | Recursively apply a function to all dicts in a nested dictionary
:param f: Function to apply
:param data: Dictionary (possibly nested) to recursively apply
function to
:return: |
(module
(function_definition
(function_name_set_loader) function_name_set_loader
(parameters
(identifier_self) identifier_self
(identifier_loader) identifier_loader
(identifier_destructor) identifier_destructor
(identifier_state) identifier_state
)parameters
(block
(retur... | Override the default disk loader with a custom loader fn. |
(module
(function_definition
(function_name__raise_error_if_not_drawing_classifier_input_sframe) function_name__raise_error_if_not_drawing_classifier_input_sframe
(parameters
(identifier_dataset) identifier_dataset
(identifier_feature) identifier_feature
(identifier_target) identifier_target... | Performs some sanity checks on the SFrame provided as input to
`turicreate.drawing_classifier.create` and raises a ToolkitError
if something in the dataset is missing or wrong. |
(module
(function_definition
(function_name_get_extensions) function_name_get_extensions
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_data) identifier_data
(False) False
)default_parameter
)parameters
(block
(expression_statement
... | Yields the extensions or their names
Parameters
----------
data : boolean, optional
If True, returns a generator which yields the extensions.
If False, returns a generator which yields the names of
the extensions (default)
Returns
-------
... |
(module
(function_definition
(function_name_linsert) function_name_linsert
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_pivot) identifier_pivot
(identifier_value) identifier_value
(default_parameter
(identifier_before) identifi... | Inserts value in the list stored at key either before or
after the reference value pivot. |
(module
(function_definition
(function_name_to_placeholder) function_name_to_placeholder
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_db_type) ide... | Returns a placeholder for the specified name, by applying the instance's format strings.
:name: if None an unamed placeholder is returned, otherwise a named placeholder is returned.
:db_type: if not None the placeholder is typecast. |
(module
(function_definition
(function_name_round) function_name_round
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_decimals) identifier_decimals
(integer_0) integer_0
)default_parameter
(list_splat_pattern
(identifier_args) ident... | Round each value in a Series to the given number of decimals.
Parameters
----------
decimals : int
Number of decimal places to round to (default: 0).
If decimals is negative, it specifies the number of
positions to the left of the decimal point.
Retu... |
(module
(function_definition
(function_name__update_to_s3_uri) function_name__update_to_s3_uri
(parameters
(identifier_property_key) identifier_property_key
(identifier_resource_property_dict) identifier_resource_property_dict
(default_parameter
(identifier_s3_uri_value) identifier_s... | Updates the 'property_key' in the 'resource_property_dict' to the value of 's3_uri_value'
Note: The function will mutate the resource_property_dict that is pass in
Parameters
----------
property_key str, required
Key in the resource_property_dict
resource_property_d... |
(module
(function_definition
(function_name_sudo) function_name_sudo
(parameters
(identifier_command) identifier_command
(default_parameter
(identifier_show) identifier_show
(True) True
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
... | Runs a command as sudo on the remote server. |
(module
(function_definition
(function_name__get_inline_fragment) function_name__get_inline_fragment
(parameters
(identifier_ast) identifier_ast
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_ast) identifier_ast
(identifier_s... | Return the inline fragment at the current AST node, or None if no fragment exists. |
(module
(function_definition
(function_name_SetValue) function_name_SetValue
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
(identifier_col) identifier_col
(identifier_value) identifier_value
)parameters
(block
(expression_statement
... | Set value in the pandas DataFrame |
(module
(function_definition
(function_name_total_bytes_billed) function_name_total_bytes_billed
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute... | Return total bytes billed from job statistics, if present.
See:
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#statistics.query.totalBytesBilled
:rtype: int or None
:returns: total bytes processed by the job, or None if job is not
yet complete. |
(module
(function_definition
(function_name_register_provider) function_name_register_provider
(parameters
(identifier_cls) identifier_cls
(identifier_provider) identifier_provider
)parameters
(block
(function_definition
(function_name_decorator) function_name_decorator
... | Register method to keep list of providers. |
(module
(function_definition
(function_name_set_blacklisted_filepaths) function_name_set_blacklisted_filepaths
(parameters
(identifier_self) identifier_self
(identifier_filepaths) identifier_filepaths
(default_parameter
(identifier_remove_from_stored) identifier_remove_from_stored
... | Sets internal blacklisted filepaths to filepaths.
If `remove_from_stored` is `True`, any `filepaths` in
`self.plugin_filepaths` will be automatically removed.
Recommend passing in absolute filepaths but method will attempt
to convert to absolute filepaths based on current working direct... |
(module
(function_definition
(function_name_Reset) function_name_Reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__cur_state) identifie... | Preserves FSM but resets starting state and current record. |
(module
(function_definition
(function_name_addattr) function_name_addattr
(parameters
(identifier_self) identifier_self
(identifier_attrname) identifier_attrname
(default_parameter
(identifier_value) identifier_value
(None) None
)default_parameter
(default_parame... | Adds an attribute to self. If persistent is True, the attribute will
be made a persistent attribute. Persistent attributes are copied
whenever a view or copy of this array is created. Otherwise, new views
or copies of this will not have the attribute. |
(module
(function_definition
(function_name__compute_intensity) function_name__compute_intensity
(parameters
(identifier_ccube) identifier_ccube
(identifier_bexpcube) identifier_bexpcube
)parameters
(block
(expression_statement
(assignment
(identifier_bexp_data) ide... | Compute the intensity map |
(module
(function_definition
(function_name_set_created_date) function_name_set_created_date
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_date) identifier_date
(None) None
)default_parameter
)parameters
(block
(if_statement
... | Set the created date of a IOC to the current date.
User may specify the date they want to set as well.
:param date: Date value to set the created date to. This should be in the xsdDate form.
This defaults to the current date if it is not provided.
xsdDate form: YYYY-MM-DDTHH:MM:SS
... |
(module
(function_definition
(function_name_os_walk) function_name_os_walk
(parameters
(identifier_top) identifier_top
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictio... | This is a helper than ensures that all paths returned from os.walk are
unicode. |
(module
(function_definition
(function_name_commit) function_name_commit
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(call
... | commit current edits. |
(module
(function_definition
(function_name_simplex_projection) function_name_simplex_projection
(parameters
(identifier_v) identifier_v
(default_parameter
(identifier_b) identifier_b
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statem... | r"""Projection vectors to the simplex domain
Implemented according to the paper: Efficient projections onto the
l1-ball for learning in high dimensions, John Duchi, et al. ICML 2008.
Implementation Time: 2011 June 17 by Bin@libin AT pmail.ntu.edu.sg
Optimization Problem: min_{w}\| w - v \|_{2}^{2}
... |
(module
(function_definition
(function_name__aux_types) function_name__aux_types
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_aux_types) identifier_aux_types
(list
)list
)assignm... | The data types of the aux data for the BaseSparseNDArray. |
(module
(function_definition
(function_name_escape_newlines) function_name_escape_newlines
(parameters
(typed_parameter
(identifier_s) identifier_s
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_str) identi... | Escapes CR, LF, and backslashes.
Its counterpart is :func:`unescape_newlines`.
``s.encode("string_escape")`` and ``s.encode("unicode_escape")`` are
alternatives, but they mess around with quotes, too (specifically,
backslash-escaping single quotes). |
(module
(function_definition
(function_name_uncontract_general) function_name_uncontract_general
(parameters
(identifier_basis) identifier_basis
(default_parameter
(identifier_use_copy) identifier_use_copy
(True) True
)default_parameter
)parameters
(block
(if_st... | Removes the general contractions from a basis set
The input basis set is not modified. The returned basis
may have functions with coefficients of zero and may have duplicate
shells.
If use_copy is True, the input basis set is not modified. |
(module
(function_definition
(function_name_Images2Rgbd) function_name_Images2Rgbd
(parameters
(identifier_rgb) identifier_rgb
(identifier_d) identifier_d
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
... | Translates from ROS Images to JderobotTypes Rgbd.
@param rgb: ROS color Image to translate
@param d: ROS depth image to translate
@type rgb: ImageROS
@type d: ImageROS
@return a Rgbd translated from Images |
(module
(function_definition
(function_name_validate_value) function_name_validate_value
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identi... | Validate value is an acceptable type during set_python operation |
(module
(function_definition
(function_name_between) function_name_between
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_objs1) identifier_objs1
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
... | Generate `n` solutions which attempt to trade-off `objs1` and `objs2`.
Parameters
----------
objs1
First boundary point for desired objective function values
objs2
Second boundary point for desired objective function values
n
Number of solut... |
(module
(function_definition
(function_name_process_item) function_name_process_item
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_group) ide... | Calculate new maximum value for each group,
for "new" items only. |
(module
(function_definition
(function_name_PmfProbLess) function_name_PmfProbLess
(parameters
(identifier_pmf1) identifier_pmf1
(identifier_pmf2) identifier_pmf2
)parameters
(block
(expression_statement
(assignment
(identifier_total) identifier_total
(flo... | Probability that a value from pmf1 is less than a value from pmf2.
Args:
pmf1: Pmf object
pmf2: Pmf object
Returns:
float probability |
(module
(function_definition
(function_name__GetStatus) function_name__GetStatus
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_two_factor) identifier_two_factor
(False) False
)default_parameter
)parameters
(block
(expression_statem... | Check whether OS Login is installed.
Args:
two_factor: bool, True if two factor should be enabled.
Returns:
bool, True if OS Login is installed. |
(module
(function_definition
(function_name_load_remote_settings) function_name_load_remote_settings
(parameters
(identifier_self) identifier_self
(identifier_remote_bucket) identifier_remote_bucket
(identifier_remote_file) identifier_remote_file
)parameters
(block
(if_statemen... | Attempt to read a file from s3 containing a flat json object. Adds each
key->value pair as environment variables. Helpful for keeping
sensitiZve or stage-specific configuration variables in s3 instead of
version control. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.