sequence
stringlengths
557
12.7k
docstring
stringlengths
4
15.2k
(module (function_definition (function_name_set_default_encoder_parameters) function_name_set_default_encoder_parameters (parameters )parameters (block (expression_statement (assignment (identifier_ARGTYPES) identifier_ARGTYPES (list (call (a...
Wraps openjp2 library function opj_set_default_encoder_parameters. Sets encoding parameters to default values. That means lossless 1 tile size of precinct : 2^15 x 2^15 (means 1 precinct) size of code-block : 64 x 64 number of resolutions: 6 no SOP marker in the co...
(module (function_definition (function_name_get_current_path) function_name_get_current_path (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_path) identifier_path (call (attribute ...
Gets the path of the currently selected item.
(module (function_definition (function_name_iter_setup_packages) function_name_iter_setup_packages (parameters (identifier_srcdir) identifier_srcdir (identifier_packages) identifier_packages )parameters (block (for_statement (identifier_packagename) identifier_packagename ...
A generator that finds and imports all of the ``setup_package.py`` modules in the source packages. Returns ------- modgen : generator A generator that yields (modname, mod), where `mod` is the module and `modname` is the module name for the ``setup_package.py`` modules.
(module (function_definition (function_name_sendmail) function_name_sendmail (parameters (identifier_self) identifier_self (identifier_sender) identifier_sender (identifier_recipients) identifier_recipients (identifier_message) identifier_message (default_parameter (ident...
Performs an entire e-mail transaction. Example: >>> try: >>> with SMTP() as client: >>> try: >>> r = client.sendmail(sender, recipients, message) >>> except SMTPException: >>> print("Error while...
(module (function_definition (function_name_runCommandReturnOutput) function_name_runCommandReturnOutput (parameters (identifier_cmd) identifier_cmd )parameters (block (expression_statement (assignment (identifier_splits) identifier_splits (call (att...
Runs a shell command and return the stdout and stderr
(module (function_definition (function_name__str_dtype) function_name__str_dtype (parameters (identifier_dtype) identifier_dtype )parameters (block (assert_statement (comparison_operator (attribute (identifier_dtype) identifier_dtype (identifier_by...
Represent dtypes without byte order, as earlier Java tickstore code doesn't support explicit byte order.
(module (function_definition (function_name__psed) function_name__psed (parameters (identifier_text) identifier_text (identifier_before) identifier_before (identifier_after) identifier_after (identifier_limit) identifier_limit (identifier_flags) identifier_flags )parameters ...
Does the actual work for file.psed, so that single lines can be passed in
(module (function_definition (function_name_trigger_actions) function_name_trigger_actions (parameters (identifier_self) identifier_self (identifier_subsystem) identifier_subsystem )parameters (block (for_statement (pattern_list (identifier_py3_module) identifier_py...
Refresh all modules which subscribed to the given subsystem.
(module (function_definition (function_name_to_text) function_name_to_text (parameters (identifier_self) identifier_self (identifier_line) identifier_line )parameters (block (return_statement (call (call (identifier_getattr) identifier_getattr ...
Return the textual representation of the given `line`.
(module (function_definition (function_name_fault_zone) function_name_fault_zone (parameters (identifier_self) identifier_self (identifier_zone) identifier_zone (default_parameter (identifier_simulate_wire_problem) identifier_simulate_wire_problem (False) False )default...
Faults a zone if we are emulating a zone expander. :param zone: zone to fault :type zone: int :param simulate_wire_problem: Whether or not to simulate a wire fault :type simulate_wire_problem: bool
(module (function_definition (function_name_query_certificate) function_name_query_certificate (parameters (identifier_self) identifier_self (identifier_cert_hash) identifier_cert_hash )parameters (block (try_statement (block (expression_statement (assig...
Queries Circl.lu Passive SSL for a certificate hash using PyPSSL class. Returns error if nothing is found. :param cert_hash: hash to query for :type cert_hash: str :return: python dict of results :rtype: dict
(module (function_definition (function_name_finish) function_name_finish (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_os) identifier_os (identifier_system) identifier_system ...
Update widgets on finish
(module (function_definition (function_name_check_token) function_name_check_token (parameters (identifier_self) identifier_self (identifier_token) identifier_token (identifier_allowed_roles) identifier_allowed_roles (identifier_resource) identifier_resource (identifier_method) i...
This function is called when a token is sent throught the access_token parameter or the Authorization header as specified in the oAuth 2 specification. The provided token is validated with the JWT_SECRET defined in the Eve configuration. The token issuer (iss claim) must be the one specified by...
(module (function_definition (function_name_extractVersion) function_name_extractVersion (parameters (identifier_string) identifier_string (default_parameter (identifier_default) identifier_default (string_'?') string_'?' )default_parameter )parameters (block (r...
Extracts a three digit standard format version number
(module (function_definition (function_name_calc_fft_with_PyCUDA) function_name_calc_fft_with_PyCUDA (parameters (identifier_Signal) identifier_Signal )parameters (block (expression_statement (call (identifier_print) identifier_print (argument_list (...
Calculates the FFT of the passed signal by using the scikit-cuda libary which relies on PyCUDA Parameters ---------- Signal : ndarray Signal to be transformed into Fourier space Returns ------- Signalfft : ndarray Array containing the signal's FFT
(module (function_definition (function_name_list_ifd) function_name_list_ifd (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_i) identifier_i (call (attribute (identifier_sel...
Return the list of IFDs in the header.
(module (function_definition (function_name_highlight_null) function_name_highlight_null (parameters (identifier_self) identifier_self (default_parameter (identifier_null_color) identifier_null_color (string_'red') string_'red' )default_parameter )parameters (block ...
Shade the background ``null_color`` for missing values. Parameters ---------- null_color : str Returns ------- self : Styler
(module (function_definition (function_name_with_host) function_name_with_host (parameters (identifier_self) identifier_self (identifier_host) identifier_host )parameters (block (if_statement (not_operator (call (identifier_isinstance) identifier_isinsta...
Return a new URL with host replaced. Autoencode host if needed. Changing host for relative URLs is not allowed, use .join() instead.
(module (function_definition (function_name_get_all_json_from_indexq) function_name_get_all_json_from_indexq (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_files) identifier_files (call ...
Gets all data from the todo files in indexq and returns one huge list of all data.
(module (function_definition (function_name_write_data) function_name_write_data (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_start_position) identifier_start_position (integer_0) integer_0 )default_param...
Write data from the specified line :param data: string to write, each one on new line :param start_position: starting line :return:
(module (function_definition (function_name_bind_unix_socket) function_name_bind_unix_socket (parameters (identifier_file_) identifier_file_ (default_parameter (identifier_mode) identifier_mode (integer_0o600) integer_0o600 )default_parameter (default_parameter ...
Creates a listening unix socket. If a socket with the given name already exists, it will be deleted. If any other file with that name exists, an exception will be raised. Returns a socket object (not a list of socket objects like `bind_sockets`)
(module (function_definition (function_name__edge_list_to_sframe) function_name__edge_list_to_sframe (parameters (identifier_ls) identifier_ls (identifier_src_column_name) identifier_src_column_name (identifier_dst_column_name) identifier_dst_column_name )parameters (block (exp...
Convert a list of edges into an SFrame.
(module (function_definition (function_name_dict_head) function_name_dict_head (parameters (identifier_d) identifier_d (default_parameter (identifier_N) identifier_N (integer_5) integer_5 )default_parameter )parameters (block (return_statement (dictionar...
Return the head of a dictionary. It will be random! Default is to return the first 5 key/value pairs in a dictionary. Args: d: Dictionary to get head. N: Number of elements to display. Returns: dict: the first N items of the dictionary.
(module (function_definition (function_name_on_lstCategories_itemSelectionChanged) function_name_on_lstCategories_itemSelectionChanged (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (identifier_self) ide...
Update purpose description label. .. note:: This is an automatic Qt slot executed when the purpose selection changes.
(module (function_definition (function_name_optimise_z) function_name_optimise_z (parameters (identifier_z) identifier_z (list_splat_pattern (identifier_args) identifier_args )list_splat_pattern )parameters (block (expression_statement (assignment (pat...
Return pore diameter for coordinates optimisation in z direction.
(module (function_definition (function_name_simulated_quantize) function_name_simulated_quantize (parameters (identifier_x) identifier_x (identifier_num_bits) identifier_num_bits (identifier_noise) identifier_noise )parameters (block (expression_statement (assignment ...
Simulate quantization to num_bits bits, with externally-stored scale. num_bits is the number of bits used to store each value. noise is a float32 Tensor containing values in [0, 1). Each value in noise should take different values across different steps, approximating a uniform distribution over [0, 1). In t...
(module (function_definition (function_name_clear) function_name_clear (parameters (identifier_self) identifier_self )parameters (block (expression_statement (call (attribute (attribute (identifier_self) identifier_self (identifier_...
Removes all data from the buffer.
(module (function_definition (function_name_fill_notebook) function_name_fill_notebook (parameters (identifier_work_notebook) identifier_work_notebook (identifier_script_blocks) identifier_script_blocks )parameters (block (for_statement (pattern_list (identifier_bla...
Writes the Jupyter notebook cells Parameters ---------- script_blocks : list Each list element should be a tuple of (label, content, lineno).
(module (function_definition (function_name_validate_enum_attribute) function_name_validate_enum_attribute (parameters (identifier_self) identifier_self (typed_parameter (identifier_attribute) identifier_attribute (type (identifier_str) identifier_str )type ...
Validates that the attribute value is among the candidates
(module (function_definition (function_name_get_migrations_to_down) function_name_get_migrations_to_down (parameters (identifier_self) identifier_self (identifier_migration_id) identifier_migration_id )parameters (block (expression_statement (assignment (identifier_...
Find migrations to rollback.
(module (function_definition (function_name_pointspace) function_name_pointspace (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block (expression_statement (ass...
Returns a dictionary with the keys `data` and `fit`. `data` is just `scipy_data_fitting.Data.array`. `fit` is a two row [`numpy.ndarray`][1], the first row values correspond to the independent variable and are generated using [`numpy.linspace`][2]. The second row are the values of `sci...
(module (function_definition (function_name_to_frame) function_name_to_frame (parameters (identifier_self) identifier_self (default_parameter (identifier_index) identifier_index (True) True )default_parameter (default_parameter (identifier_name) identifier_name ...
Create a DataFrame with the levels of the MultiIndex as columns. Column ordering is determined by the DataFrame constructor with data as a dict. .. versionadded:: 0.24.0 Parameters ---------- index : boolean, default True Set the index of the returned DataF...
(module (function_definition (function_name_getOverlayDualAnalogTransform) function_name_getOverlayDualAnalogTransform (parameters (identifier_self) identifier_self (identifier_ulOverlay) identifier_ulOverlay (identifier_eWhich) identifier_eWhich )parameters (block (expression_...
Gets the analog input to Dual Analog coordinate scale for the specified overlay.
(module (function_definition (function_name_render_path) function_name_render_path (parameters (identifier_self) identifier_self (identifier_template_path) identifier_template_path (list_splat_pattern (identifier_context) identifier_context )list_splat_pattern (dictionary...
Render the template at the given path using the given context. Read the render() docstring for more information.
(module (function_definition (function_name_OnSafeModeEntry) function_name_OnSafeModeEntry (parameters (identifier_self) identifier_self (identifier_event) identifier_event )parameters (block (expression_statement (call (attribute (attribute ...
Safe mode entry event handler
(module (function_definition (function_name_apply_visitor) function_name_apply_visitor (parameters (identifier_visitor) identifier_visitor (identifier_decl_inst) identifier_decl_inst )parameters (block (expression_statement (assignment (identifier_fname) identifier_...
Applies a visitor on declaration instance. :param visitor: instance :type visitor: :class:`type_visitor_t` or :class:`decl_visitor_t`
(module (function_definition (function_name__create_dist) function_name__create_dist (parameters (identifier_self) identifier_self (identifier_dist_tgt) identifier_dist_tgt (identifier_dist_target_dir) identifier_dist_target_dir (identifier_setup_requires_pex) identifier_setup_requires...
Create a .whl file for the specified python_distribution target.
(module (function_definition (function_name_greg2julian) function_name_greg2julian (parameters (identifier_year) identifier_year (identifier_month) identifier_month (identifier_day) identifier_day (identifier_hour) identifier_hour (identifier_minute) identifier_minute (iden...
Function to convert a date from Gregorian to Julian format :param year: Year of events (integer numpy.ndarray) :param month: Month of events (integer numpy.ndarray) :param day: Days of event (integer numpy.ndarray) :param hour: Hour of event (integer numpy.ndarray) :...
(module (function_definition (function_name_load_or_import_from_config) function_name_load_or_import_from_config (parameters (identifier_key) identifier_key (default_parameter (identifier_app) identifier_app (None) None )default_parameter (default_parameter (ide...
Load or import value from config. :returns: The loaded value.
(module (function_definition (function_name_probe) function_name_probe (parameters (identifier_w) identifier_w (default_parameter (identifier_name) identifier_name (None) None )default_parameter )parameters (block (if_statement (not_operator (c...
Print useful information about a WireVector when in debug mode. :param w: WireVector from which to get info :param name: optional name for probe (defaults to an autogenerated name) :return: original WireVector w Probe can be inserted into a existing design easily as it returns the original wire un...
(module (function_definition (function_name_process_selectors) function_name_process_selectors (parameters (identifier_self) identifier_self (default_parameter (identifier_index) identifier_index (integer_0) integer_0 )default_parameter (default_parameter (ident...
Process selectors. We do our own selectors as BeautifulSoup4 has some annoying quirks, and we don't really need to do nth selectors or siblings or descendants etc.
(module (function_definition (function_name_enclosure_directed) function_name_enclosure_directed (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (pattern_list (identifier_root) identifier_root (ide...
Networkx DiGraph of polygon enclosure
(module (function_definition (function_name_rename) function_name_rename (parameters (identifier_self) identifier_self (dictionary_splat_pattern (identifier_mapping) identifier_mapping )dictionary_splat_pattern )parameters (block (expression_statement (assignmen...
The rename method allows stream parameters to be allocated to new names to avoid clashes with other stream parameters of the same name. Returns a new clone of the stream instance with the specified name mapping.
(module (function_definition (function_name_start) function_name_start (parameters (identifier_self) identifier_self (identifier_local_port) identifier_local_port (identifier_remote_address) identifier_remote_address (identifier_remote_port) identifier_remote_port )parameters (...
Start ssh tunnel type: local_port: int param: local_port: local tunnel endpoint ip binding type: remote_address: str param: remote_address: Remote tunnel endpoing ip binding type: remote_port: int param: remote_port: Remote tunnel endpoint port binding
(module (function_definition (function_name_rate_of_change) function_name_rate_of_change (parameters (identifier_data) identifier_data (identifier_period) identifier_period )parameters (block (expression_statement (call (attribute (identifier_catch_error...
Rate of Change. Formula: (Close - Close n periods ago) / (Close n periods ago) * 100
(module (function_definition (function_name_probes_used_extract_scores) function_name_probes_used_extract_scores (parameters (identifier_full_scores) identifier_full_scores (identifier_same_probes) identifier_same_probes )parameters (block (if_statement (comparison_operator ...
Extracts a matrix of scores for a model, given a probes_used row vector of boolean
(module (function_definition (function_name__readall) function_name__readall (parameters (identifier_self) identifier_self (identifier_file) identifier_file (identifier_count) identifier_count )parameters (block (expression_statement (assignment (identifier_da...
Receive EXACTLY the number of bytes requested from the file object. Blocks until the required number of bytes have been received.
(module (function_definition (function_name_lockfile) function_name_lockfile (parameters (identifier_lockfile_name) identifier_lockfile_name (default_parameter (identifier_lock_wait_timeout) identifier_lock_wait_timeout (unary_operator (integer_1) integer_1 )unary...
Only runs the method if the lockfile is not acquired. You should create a setting ``LOCKFILE_PATH`` which points to ``/home/username/tmp/``. In your management command, use it like so:: LOCKFILE = os.path.join( settings.LOCKFILE_FOLDER, 'command_name') class Command(NoArgsCom...
(module (function_definition (function_name__GetOrderedEntries) function_name__GetOrderedEntries (parameters (identifier_data) identifier_data )parameters (block (function_definition (function_name_Tag) function_name_Tag (parameters (identifier_field) identifier_f...
Gets entries of `RDFProtoStruct` in a well-defined order. Args: data: A raw data dictionary of `RDFProtoStruct`. Yields: Entries of the structured in a well-defined order.
(module (function_definition (function_name_mean_squared_error) function_name_mean_squared_error (parameters (typed_parameter (identifier_pred) identifier_pred (type (identifier_Tensor) identifier_Tensor )type )typed_parameter (typed_parameter (ident...
Mean squared error between `pred` and `targ`.
(module (function_definition (function_name_instance_norm) function_name_instance_norm (parameters (identifier_x) identifier_x )parameters (block (with_statement (with_clause (with_item (call (attribute (identifier_tf) identifier_...
Instance normalization layer.
(module (function_definition (function_name_funding_info) function_name_funding_info (parameters (identifier_self) identifier_self (identifier_key) identifier_key (identifier_value) identifier_value )parameters (block (return_statement (dictionary (pair ...
Populate the ``funding_info`` key.
(module (function_definition (function_name_remove_example) function_name_remove_example (parameters (identifier_self) identifier_self (identifier_data) identifier_data (default_parameter (identifier_cloud) identifier_cloud (None) None )default_parameter (default_...
This is an API made to remove a single instance of training data. This is useful in cases where a single instance of content has been modified, but the remaining examples remain valid. For example, if a piece of content has been retagged. Inputs data - String: The exact text you wish to...
(module (function_definition (function_name_html_encode) function_name_html_encode (parameters (identifier_text) identifier_text )parameters (block (expression_statement (assignment (identifier_text) identifier_text (call (attribute (id...
Encode characters with a special meaning as HTML. :param text: The plain text (a string). :returns: The text converted to HTML (a string).
(module (function_definition (function_name__parse_ppm_segment) function_name__parse_ppm_segment (parameters (identifier_self) identifier_self (identifier_fptr) identifier_fptr )parameters (block (expression_statement (assignment (identifier_offset) identifier_offse...
Parse the PPM segment. Parameters ---------- fptr : file Open file object. Returns ------- PPMSegment The current PPM segment.
(module (function_definition (function_name_count_courses) function_name_count_courses (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_c) identifier_c (integer_0) integer_0 )assignment ...
Return the average number of courses per string.
(module (function_definition (function_name_get_catalog_hierarchy_design_session) function_name_get_catalog_hierarchy_design_session (parameters (identifier_self) identifier_self (identifier_proxy) identifier_proxy )parameters (block (if_statement (not_operator (cal...
Gets the catalog hierarchy design session. arg: proxy (osid.proxy.Proxy): proxy return: (osid.cataloging.CatalogHierarchyDesignSession) - a ``CatalogHierarchyDesignSession`` raise: NullArgument - ``proxy`` is null raise: OperationFailed - unable to complete request ...
(module (function_definition (function_name_transform) function_name_transform (parameters (identifier_self) identifier_self (identifier_X) identifier_X )parameters (block (return_statement (call (attribute (attribute (identifier_self) iden...
Transform data by mapping it into the latent space.
(module (function_definition (function_name_get_logx) function_name_get_logx (parameters (identifier_nlive) identifier_nlive (default_parameter (identifier_simulate) identifier_simulate (False) False )default_parameter )parameters (block (expression_statement ...
r"""Returns a logx vector showing the expected or simulated logx positions of points. The shrinkage factor between two points .. math:: t_i = X_{i-1} / X_{i} is distributed as the largest of :math:`n_i` uniform random variables between 1 and 0, where :math:`n_i` is the local number of live points...
(module (function_definition (function_name__FlushAllRows) function_name__FlushAllRows (parameters (identifier_self) identifier_self (identifier_db_connection) identifier_db_connection (identifier_table_name) identifier_table_name )parameters (block (for_statement (iden...
Copies rows from the given db into the output file then deletes them.
(module (function_definition (function_name_refactor) function_name_refactor (parameters (identifier_self) identifier_self (identifier_items) identifier_items (default_parameter (identifier_write) identifier_write (False) False )default_parameter (default_paramete...
Refactor a list of files and directories.
(module (function_definition (function_name_reset) function_name_reset (parameters (default_parameter (identifier_all) identifier_all (False) False )default_parameter (default_parameter (identifier_vms) identifier_vms (False) False )default_parameter ...
Reset the running state of VMM or a subsystem. all: Reset the running state. switches: Reset the configured switches. vms: Reset and terminate all VMs. CLI Example: .. code-block:: bash salt '*' vmctl.reset all=True
(module (function_definition (function_name__stream_docker_logs) function_name__stream_docker_logs (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_thread) identifier_thread (call (attribu...
Stream stdout and stderr from the task container to this process's stdout and stderr, respectively.
(module (function_definition (function_name_exists) function_name_exists (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_path) identifier_path (attribute (identifier_self) identifier_self...
Returns ``True`` if the path for this FileSystemTarget exists; ``False`` otherwise. This method is implemented by using :py:attr:`fs`.
(module (function_definition (function_name_run_query) function_name_run_query (parameters (identifier_db) identifier_db (identifier_query) identifier_query )parameters (block (if_statement (comparison_operator (identifier_db) identifier_db (list_comprehen...
Run SQL query and return result CLI Example: .. code-block:: bash salt '*' oracle.run_query my_db "select * from my_table"
(module (function_definition (function_name_strictly_positive_int_or_none) function_name_strictly_positive_int_or_none (parameters (identifier_val) identifier_val )parameters (block (expression_statement (assignment (identifier_val) identifier_val (call ...
Parse `val` into either `None` or a strictly positive integer.
(module (function_definition (function_name__get_top_file_envs) function_name__get_top_file_envs (parameters )parameters (block (try_statement (block (return_statement (subscript (identifier___context__) identifier___context__ (string_'sa...
Get all environments from the top file
(module (function_definition (function_name_time_reached) function_name_time_reached (parameters (identifier_self) identifier_self (identifier_current_time) identifier_current_time (identifier_scheduled_call) identifier_scheduled_call )parameters (block (if_statement (c...
Checks to see if it's time to run a scheduled call or not. If it IS time to run a scheduled call, this function will execute the method associated with that call. Args: current_time (float): Current timestamp from time.time(). scheduled_call (dict): A scheduled call diction...
(module (function_definition (function_name_determine_band_channel) function_name_determine_band_channel (parameters (identifier_kal_out) identifier_kal_out )parameters (block (expression_statement (assignment (identifier_band) identifier_band (string_"") string...
Return band, channel, target frequency from kal output.
(module (function_definition (function_name___marshal_matches) function_name___marshal_matches (parameters (identifier_matched) identifier_matched )parameters (block (expression_statement (assignment (identifier_json_matches) identifier_json_matches (list ...
Convert matches to JSON format. :param matched: a list of matched identities :returns json_matches: a list of matches in JSON format
(module (function_definition (function_name__extract_delta) function_name__extract_delta (parameters (identifier_expr) identifier_expr (identifier_idx) identifier_idx )parameters (block (import_from_statement (dotted_name (identifier_qnet) identifier_qnet ...
Extract a "simple" Kronecker delta containing `idx` from `expr`. Assuming `expr` can be written as the product of a Kronecker Delta and a `new_expr`, return a tuple of the sympy.KroneckerDelta instance and `new_expr`. Otherwise, return a tuple of None and the original `expr` (possibly converted to a :c...
(module (function_definition (function_name_run_cleanup) function_name_run_cleanup (parameters (identifier_build_ext_cmd) identifier_build_ext_cmd )parameters (block (if_statement (not_operator (attribute (identifier_build_ext_cmd) identifier_build_ext_cmd ...
Cleanup after ``BuildFortranThenExt.run``. For in-place builds, moves the built shared library into the source directory.
(module (function_definition (function_name_connect) function_name_connect (parameters (identifier_self) identifier_self )parameters (block (if_statement (not_operator (parenthesized_expression (boolean_operator (boolean_operator ...
Sets up the HTTP session to talk to Twitter. If one is active it is closed and another one is opened.
(module (function_definition (function_name_rm_gos) function_name_rm_gos (parameters (identifier_self) identifier_self (identifier_rm_goids) identifier_rm_goids )parameters (block (expression_statement (assignment (attribute (identifier_self) identifier_...
Remove any edges that contain user-specified edges.
(module (function_definition (function_name_replace) function_name_replace (parameters (identifier_self) identifier_self (identifier_old) identifier_old (identifier_new) identifier_new )parameters (block (if_statement (comparison_operator (attribute ...
Replace an instruction
(module (function_definition (function_name_get) function_name_get (parameters (identifier_self) identifier_self (identifier_obj) identifier_obj (identifier_id) identifier_id (default_parameter (identifier_sub_object) identifier_sub_object (None) None )default_par...
Function get Get an object by id @param obj: object name ('hosts', 'puppetclasses'...) @param id: the id of the object (name or id) @return RETURN: the targeted object
(module (function_definition (function_name_concretize_write_addr) function_name_concretize_write_addr (parameters (identifier_self) identifier_self (identifier_addr) identifier_addr (default_parameter (identifier_strategies) identifier_strategies (None) None )default_p...
Concretizes an address meant for writing. :param addr: An expression for the address. :param strategies: A list of concretization strategies (to override the default). :returns: A list of concrete addresses.
(module (function_definition (function_name_run) function_name_run (parameters (identifier_self) identifier_self (identifier_cmd) identifier_cmd (default_parameter (identifier_fn) identifier_fn (None) None )default_parameter (default_parameter (identifier_...
Run the cmd `cmd` with trace
(module (function_definition (function_name_add) function_name_add (parameters (identifier_self) identifier_self (identifier_filetype) identifier_filetype (dictionary_splat_pattern (identifier_kwargs) identifier_kwargs )dictionary_splat_pattern )parameters (block ...
Adds a filepath into the list of tasks to download
(module (function_definition (function_name_confusion_matrix) function_name_confusion_matrix (parameters (typed_parameter (identifier_expected) identifier_expected (type (attribute (identifier_np) identifier_np (identifier_ndarray) identifier_ndarray ...
Calculate and return confusion matrix for the predicted and expected labels :param expected: array of expected classes (integers) with shape `[num_of_data]` :param predicted: array of predicted classes (integers) with shape `[num_of_data]` :param num_classes: number of classification classes :return: c...
(module (function_definition (function_name_principal_inertia_transform) function_name_principal_inertia_transform (parameters (identifier_self) identifier_self )parameters (block (expression_statement (assignment (identifier_order) identifier_order (subscript ...
A transform which moves the current mesh so the principal inertia vectors are on the X,Y, and Z axis, and the centroid is at the origin. Returns ---------- transform : (4, 4) float Homogenous transformation matrix
(module (function_definition (function_name_delete_field_value) function_name_delete_field_value (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (expression_statement (assignment (identifier_name) identifier_name ...
Mark this field to be deleted
(module (function_definition (function_name_delete) function_name_delete (parameters (identifier_self) identifier_self (identifier_identity_id) identifier_identity_id (identifier_service) identifier_service )parameters (block (return_statement (call (attribute...
Delete the limit for the given identity and service :param identity_id: The ID of the identity to retrieve :param service: The service that the token is linked to :return: dict of REST API output with headers attached :rtype: :class:`~datasift.request.DictResponse` ...
(module (function_definition (function_name__convert_name) function_name__convert_name (parameters (identifier_self) identifier_self (identifier_name) identifier_name )parameters (block (if_statement (call (attribute (identifier_re) identifier_re ...
Convert ``name`` to int if it looks like an int. Otherwise, return it as is.
(module (function_definition (function_name_update_view_state) function_name_update_view_state (parameters (identifier_self) identifier_self (identifier_view) identifier_view (identifier_state) identifier_state )parameters (block (if_statement (comparison_operator ...
Update the state of a view.
(module (function_definition (function_name_resample_dset) function_name_resample_dset (parameters (identifier_dset) identifier_dset (identifier_template) identifier_template (default_parameter (identifier_prefix) identifier_prefix (None) None )default_parameter (...
Resamples ``dset`` to the grid of ``template`` using resampling mode ``resam``. Default prefix is to suffix ``_resam`` at the end of ``dset`` Available resampling modes: :NN: Nearest Neighbor :Li: Linear :Cu: Cubic :Bk: Blocky
(module (function_definition (function_name__get_ui_content) function_name__get_ui_content (parameters (identifier_self) identifier_self (identifier_cli) identifier_cli (identifier_width) identifier_width (identifier_height) identifier_height )parameters (block (function_...
Create a `UIContent` instance.
(module (function_definition (function_name_nb_to_python) function_name_nb_to_python (parameters (identifier_nb_path) identifier_nb_path )parameters (block (expression_statement (assignment (identifier_exporter) identifier_exporter (call (attribute ...
convert notebook to python script
(module (function_definition (function_name_check_recommended_files) function_name_check_recommended_files (parameters (identifier_data) identifier_data (identifier_vcs) identifier_vcs )parameters (block (expression_statement (assignment (identifier_main_files) iden...
Do check for recommended files. Returns True when all is fine.
(module (function_definition (function_name_type) function_name_type (parameters (identifier_self) identifier_self (typed_parameter (identifier_name) identifier_name (type (identifier_str) identifier_str )type )typed_parameter )parameters (block ...
return the first complete definition of type 'name
(module (function_definition (function_name_nCr) function_name_nCr (parameters (identifier_n) identifier_n (identifier_r) identifier_r )parameters (block (expression_statement (assignment (identifier_f) identifier_f (attribute (identifier_math)...
Calculates nCr. Args: n (int): total number of items. r (int): items to choose Returns: nCr.
(module (function_definition (function_name___log_overview_errors) function_name___log_overview_errors (parameters (identifier_self) identifier_self )parameters (block (if_statement (attribute (identifier_self) identifier_self (identifier_error_file_names) ident...
Show info about sources files of stored routines that were not loaded successfully.
(module (function_definition (function_name_discard) function_name_discard (parameters (identifier_samples) identifier_samples (identifier_chains) identifier_chains )parameters (block (expression_statement (assignment (identifier_samples) identifier_samples ...
Discard broken chains. Args: samples (array_like): Samples as a nS x nV array_like object where nS is the number of samples and nV is the number of variables. The values should all be 0/1 or -1/+1. chains (list[array_like]): List of chains of length nC where nC ...
(module (function_definition (function_name_search) function_name_search (parameters (identifier_self) identifier_self (identifier_start_ts) identifier_start_ts (identifier_end_ts) identifier_end_ts )parameters (block (return_statement (call (attribute ...
Query Elasticsearch for documents in a time range. This method is used to find documents that may be in conflict during a rollback event in MongoDB.
(module (function_definition (function_name_list_records_for_build_configuration) function_name_list_records_for_build_configuration (parameters (default_parameter (identifier_id) identifier_id (None) None )default_parameter (default_parameter (identifier_name) identi...
List all BuildRecords for a given BuildConfiguration
(module (function_definition (function_name_get_default_config) function_name_get_default_config (parameters (identifier_self) identifier_self (identifier_jid) identifier_jid (default_parameter (identifier_node) identifier_node (None) None )default_parameter )parame...
Request the default configuration of a node. :param jid: Address of the PubSub service. :type jid: :class:`aioxmpp.JID` :param node: Name of the PubSub node to query. :type node: :class:`str` :raises aioxmpp.errors.XMPPError: as returned by the service :return: The defau...
(module (function_definition (function_name_i18n_javascript) function_name_i18n_javascript (parameters (identifier_self) identifier_self (identifier_request) identifier_request )parameters (block (if_statement (attribute (identifier_settings) identifier_settings ...
Displays the i18n JavaScript that the Django admin requires. This takes into account the USE_I18N setting. If it's set to False, the generated JavaScript will be leaner and faster.
(module (function_definition (function_name_worker_failed) function_name_worker_failed (parameters )parameters (block (expression_statement (assignment (identifier_participant_id) identifier_participant_id (call (attribute (attribute ...
Fail worker. Used by bots only for now.
(module (function_definition (function_name_collect_hosts) function_name_collect_hosts (parameters (identifier_api) identifier_api (identifier_wanted_hostnames) identifier_wanted_hostnames )parameters (block (expression_statement (assignment (identifier_all_hosts) i...
Return a list of ApiHost objects for the set of hosts that we want to change config for.
(module (function_definition (function_name_AskYesNoCancel) function_name_AskYesNoCancel (parameters (identifier_message) identifier_message (default_parameter (identifier_title) identifier_title (string_'FontParts') string_'FontParts' )default_parameter (default_parame...
An ask yes, no or cancel dialog, a `message` is required. Optionally a `title`, `default` and `informativeText` can be provided. The `default` option is to indicate which button is the default button. :: from fontParts.ui import AskYesNoCancel print(AskYesNoCancel("who are you?"))