sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_read_csv) function_name_read_csv
(parameters
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_list) identifier_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_csv) identifier_csv
(identifier_DictReader) identifier_DictReader
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_reader) identifier_reader
(block
(for_statement
(tuple_pattern
(identifier_k) identifier_k
(identifier_v) identifier_v
)tuple_pattern
(call
(attribute
(identifier_row) identifier_row
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(identifier_values) identifier_values
(identifier_k) identifier_k
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_npvalues) identifier_npvalues
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(subscript
(identifier_values) identifier_values
(identifier_k) identifier_k
)subscript
)argument_list
)call
)pair
(for_in_clause
(identifier_k) identifier_k
(call
(attribute
(identifier_values) identifier_values
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(call
(attribute
(identifier_npvalues) identifier_npvalues
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(for_statement
(identifier_datatype) identifier_datatype
(list
(attribute
(identifier_np) identifier_np
(identifier_int) identifier_int
)attribute
(attribute
(identifier_np) identifier_np
(identifier_float) identifier_float
)attribute
)list
(block
(try_statement
(block
(expression_statement
(call
(attribute
(subscript
(subscript
(identifier_npvalues) identifier_npvalues
(identifier_k) identifier_k
)subscript
(slice
(colon) colon
(integer_1) integer_1
)slice
)subscript
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_datatype) identifier_datatype
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_npvalues) identifier_npvalues
(identifier_k) identifier_k
)subscript
(call
(attribute
(subscript
(identifier_npvalues) identifier_npvalues
(identifier_k) identifier_k
)subscript
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_datatype) identifier_datatype
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_dao) identifier_dao
(call
(identifier_DataAccessObject) identifier_DataAccessObject
(argument_list
(identifier_npvalues) identifier_npvalues
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_dao) identifier_dao
)return_statement
)block
)function_definition
)module | Read a csv file into a DataAccessObject
:param fname: filename |
(module
(function_definition
(function_name_tags_newer) function_name_tags_newer
(parameters
(identifier_self) identifier_self
(identifier_versions_file) identifier_versions_file
(identifier_majors) identifier_majors
)parameters
(block
(expression_statement
(assignment
(identifier_highest) identifier_highest
(call
(attribute
(identifier_versions_file) identifier_versions_file
(identifier_highest_version_major) identifier_highest_version_major
)attribute
(argument_list
(identifier_majors) identifier_majors
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all) identifier_all
(call
(attribute
(identifier_self) identifier_self
(identifier_tags_get) identifier_tags_get
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_newer) identifier_newer
(call
(identifier__newer_tags_get) identifier__newer_tags_get
(argument_list
(identifier_highest) identifier_highest
(identifier_all) identifier_all
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_newer) identifier_newer
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"No new tags found.") string_"No new tags found."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_newer) identifier_newer
)return_statement
)block
)function_definition
)module | Checks this git repo tags for newer versions.
@param versions_file: a common.VersionsFile instance to
check against.
@param majors: a list of major branches to check. E.g. ['6', '7']
@raise RuntimeError: no newer tags were found.
@raise MissingMajorException: A new version from a newer major branch is
exists, but hasn't been downloaded due to it not being in majors. |
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_self) identifier_self
(identifier_title) identifier_title
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(call
(identifier_finditem) identifier_finditem
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(comparison_operator
(subscript
(identifier_x) identifier_x
(string_'name') string_'name'
)subscript
(identifier_title) identifier_title
)comparison_operator
)lambda
(call
(attribute
(identifier_self) identifier_self
(identifier_list_spreadsheet_files) identifier_list_spreadsheet_files
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_properties) identifier_properties
(string_'title') string_'title'
)subscript
(subscript
(identifier_properties) identifier_properties
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(return_statement
(call
(identifier_Spreadsheet) identifier_Spreadsheet
(argument_list
(identifier_self) identifier_self
(identifier_properties) identifier_properties
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_StopIteration) identifier_StopIteration
(block
(raise_statement
(identifier_SpreadsheetNotFound) identifier_SpreadsheetNotFound
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Opens a spreadsheet.
:param title: A title of a spreadsheet.
:type title: str
:returns: a :class:`~gspread.models.Spreadsheet` instance.
If there's more than one spreadsheet with same title the first one
will be opened.
:raises gspread.SpreadsheetNotFound: if no spreadsheet with
specified `title` is found.
>>> c = gspread.authorize(credentials)
>>> c.open('My fancy spreadsheet') |
(module
(function_definition
(function_name___x_product_aux) function_name___x_product_aux
(parameters
(identifier_property_sets) identifier_property_sets
(identifier_seen_features) identifier_seen_features
)parameters
(block
(assert_statement
(call
(identifier_is_iterable_typed) identifier_is_iterable_typed
(argument_list
(identifier_property_sets) identifier_property_sets
(attribute
(identifier_property_set) identifier_property_set
(identifier_PropertySet) identifier_PropertySet
)attribute
)argument_list
)call
)assert_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_seen_features) identifier_seen_features
(identifier_set) identifier_set
)argument_list
)call
)assert_statement
(if_statement
(not_operator
(identifier_property_sets) identifier_property_sets
)not_operator
(block
(return_statement
(tuple
(list
)list
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)tuple
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_properties) identifier_properties
(call
(attribute
(subscript
(identifier_property_sets) identifier_property_sets
(integer_0) integer_0
)subscript
(identifier_all) identifier_all
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_these_features) identifier_these_features
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_p) identifier_p
(call
(attribute
(subscript
(identifier_property_sets) identifier_property_sets
(integer_0) integer_0
)subscript
(identifier_non_free) identifier_non_free
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_these_features) identifier_these_features
(identifier_add) identifier_add
)attribute
(argument_list
(attribute
(identifier_p) identifier_p
(identifier_feature) identifier_feature
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(binary_operator
(identifier_these_features) identifier_these_features
(identifier_seen_features) identifier_seen_features
)binary_operator
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_inner_result) identifier_inner_result
(identifier_inner_seen) identifier_inner_seen
)tuple_pattern
(call
(identifier___x_product_aux) identifier___x_product_aux
(argument_list
(subscript
(identifier_property_sets) identifier_property_sets
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(identifier_seen_features) identifier_seen_features
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(identifier_inner_result) identifier_inner_result
(binary_operator
(identifier_inner_seen) identifier_inner_seen
(identifier_these_features) identifier_these_features
)binary_operator
)tuple
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(tuple_pattern
(identifier_inner_result) identifier_inner_result
(identifier_inner_seen) identifier_inner_seen
)tuple_pattern
(call
(identifier___x_product_aux) identifier___x_product_aux
(argument_list
(subscript
(identifier_property_sets) identifier_property_sets
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(binary_operator
(identifier_seen_features) identifier_seen_features
(identifier_these_features) identifier_these_features
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_inner_result) identifier_inner_result
(block
(for_statement
(identifier_inner) identifier_inner
(identifier_inner_result) identifier_inner_result
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(identifier_properties) identifier_properties
(identifier_inner) identifier_inner
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_properties) identifier_properties
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(binary_operator
(identifier_inner_seen) identifier_inner_seen
(identifier_these_features) identifier_these_features
)binary_operator
(block
(expression_statement
(assignment
(tuple_pattern
(identifier_inner_result2) identifier_inner_result2
(identifier_inner_seen2) identifier_inner_seen2
)tuple_pattern
(call
(identifier___x_product_aux) identifier___x_product_aux
(argument_list
(subscript
(identifier_property_sets) identifier_property_sets
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(identifier_seen_features) identifier_seen_features
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_inner_result2) identifier_inner_result2
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(tuple
(identifier_result) identifier_result
(binary_operator
(identifier_inner_seen) identifier_inner_seen
(identifier_these_features) identifier_these_features
)binary_operator
)tuple
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns non-conflicting combinations of property sets.
property_sets is a list of PropertySet instances. seen_features is a set of Property
instances.
Returns a tuple of:
- list of lists of Property instances, such that within each list, no two Property instance
have the same feature, and no Property is for feature in seen_features.
- set of features we saw in property_sets |
(module
(function_definition
(function_name_appname) function_name_appname
(parameters
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(string_'mod_wsgi') string_'mod_wsgi'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(string_'nvn_web') string_'nvn_web'
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module | Return a useful application name based on the program argument.
A special case maps 'mod_wsgi' to a more appropriate name so
web applications show up as our own. |
(module
(function_definition
(function_name_enu2ecef) function_name_enu2ecef
(parameters
(typed_parameter
(identifier_e1) identifier_e1
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_n1) identifier_n1
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_u1) identifier_u1
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_lat0) identifier_lat0
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_lon0) identifier_lon0
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_parameter
(identifier_h0) identifier_h0
(type
(identifier_float) identifier_float
)type
)typed_parameter
(typed_default_parameter
(identifier_ell) identifier_ell
(type
(identifier_Ellipsoid) identifier_Ellipsoid
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_deg) identifier_deg
(type
(identifier_bool) identifier_bool
)type
(True) True
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_float) identifier_float
)type
(type
(identifier_float) identifier_float
)type
(type
(identifier_float) identifier_float
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(pattern_list
(identifier_x0) identifier_x0
(identifier_y0) identifier_y0
(identifier_z0) identifier_z0
)pattern_list
(call
(identifier_geodetic2ecef) identifier_geodetic2ecef
(argument_list
(identifier_lat0) identifier_lat0
(identifier_lon0) identifier_lon0
(identifier_h0) identifier_h0
(identifier_ell) identifier_ell
(keyword_argument
(identifier_deg) identifier_deg
(identifier_deg) identifier_deg
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_dx) identifier_dx
(identifier_dy) identifier_dy
(identifier_dz) identifier_dz
)pattern_list
(call
(identifier_enu2uvw) identifier_enu2uvw
(argument_list
(identifier_e1) identifier_e1
(identifier_n1) identifier_n1
(identifier_u1) identifier_u1
(identifier_lat0) identifier_lat0
(identifier_lon0) identifier_lon0
(keyword_argument
(identifier_deg) identifier_deg
(identifier_deg) identifier_deg
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(binary_operator
(identifier_x0) identifier_x0
(identifier_dx) identifier_dx
)binary_operator
(binary_operator
(identifier_y0) identifier_y0
(identifier_dy) identifier_dy
)binary_operator
(binary_operator
(identifier_z0) identifier_z0
(identifier_dz) identifier_dz
)binary_operator
)expression_list
)return_statement
)block
)function_definition
)module | ENU to ECEF
Parameters
----------
e1 : float or numpy.ndarray of float
target east ENU coordinate (meters)
n1 : float or numpy.ndarray of float
target north ENU coordinate (meters)
u1 : float or numpy.ndarray of float
target up ENU coordinate (meters)
lat0 : float
Observer geodetic latitude
lon0 : float
Observer geodetic longitude
h0 : float
observer altitude above geodetic ellipsoid (meters)
ell : Ellipsoid, optional
reference ellipsoid
deg : bool, optional
degrees input/output (False: radians in/out)
Results
-------
x : float or numpy.ndarray of float
target x ECEF coordinate (meters)
y : float or numpy.ndarray of float
target y ECEF coordinate (meters)
z : float or numpy.ndarray of float
target z ECEF coordinate (meters) |
(module
(function_definition
(function_name_get_maybe_base_expanded_node_name) function_name_get_maybe_base_expanded_node_name
(parameters
(identifier_self) identifier_self
(identifier_node_name) identifier_node_name
(identifier_run_key) identifier_run_key
(identifier_device_name) identifier_device_name
)parameters
(block
(expression_statement
(assignment
(identifier_device_name) identifier_device_name
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_compat) identifier_compat
)attribute
(identifier_as_str) identifier_as_str
)attribute
(argument_list
(identifier_device_name) identifier_device_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_run_key) identifier_run_key
(attribute
(identifier_self) identifier_self
(identifier__run_key_to_original_graphs) identifier__run_key_to_original_graphs
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Unknown run_key: %s') string_'Unknown run_key: %s'
(identifier_run_key) identifier_run_key
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_device_name) identifier_device_name
(subscript
(attribute
(identifier_self) identifier_self
(identifier__run_key_to_original_graphs) identifier__run_key_to_original_graphs
)attribute
(identifier_run_key) identifier_run_key
)subscript
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Unknown device for run key "%s": %s') string_'Unknown device for run key "%s": %s'
(tuple
(identifier_run_key) identifier_run_key
(identifier_device_name) identifier_device_name
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier__run_key_to_original_graphs) identifier__run_key_to_original_graphs
)attribute
(identifier_run_key) identifier_run_key
)subscript
(identifier_device_name) identifier_device_name
)subscript
(identifier_maybe_base_expanded_node_name) identifier_maybe_base_expanded_node_name
)attribute
(argument_list
(identifier_node_name) identifier_node_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Obtain possibly base-expanded node name.
Base-expansion is the transformation of a node name which happens to be the
name scope of other nodes in the same graph. For example, if two nodes,
called 'a/b' and 'a/b/read' in a graph, the name of the first node will
be base-expanded to 'a/b/(b)'.
This method uses caching to avoid unnecessary recomputation.
Args:
node_name: Name of the node.
run_key: The run key to which the node belongs.
graph_def: GraphDef to which the node belongs.
Raises:
ValueError: If `run_key` and/or `device_name` do not exist in the record. |
(module
(function_definition
(function_name_iris) function_name_iris
(parameters
(default_parameter
(identifier_display) identifier_display
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(attribute
(identifier_sklearn) identifier_sklearn
(identifier_datasets) identifier_datasets
)attribute
(identifier_load_iris) identifier_load_iris
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
(argument_list
(keyword_argument
(identifier_data) identifier_data
(attribute
(identifier_d) identifier_d
(identifier_data) identifier_data
)attribute
)keyword_argument
(keyword_argument
(identifier_columns) identifier_columns
(attribute
(identifier_d) identifier_d
(identifier_feature_names) identifier_feature_names
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_display) identifier_display
(block
(return_statement
(expression_list
(identifier_df) identifier_df
(list_comprehension
(subscript
(attribute
(identifier_d) identifier_d
(identifier_target_names) identifier_target_names
)attribute
(identifier_v) identifier_v
)subscript
(for_in_clause
(identifier_v) identifier_v
(attribute
(identifier_d) identifier_d
(identifier_target) identifier_target
)attribute
)for_in_clause
)list_comprehension
)expression_list
)return_statement
)block
(else_clause
(block
(return_statement
(expression_list
(identifier_df) identifier_df
(attribute
(identifier_d) identifier_d
(identifier_target) identifier_target
)attribute
)expression_list
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the classic iris data in a nice package. |
(module
(function_definition
(function_name_GetTopLevel) function_name_GetTopLevel
(parameters
(identifier_self) identifier_self
(identifier_file_object) identifier_file_object
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_top_level_object) identifier_top_level_object
(call
(attribute
(identifier_biplist) identifier_biplist
(identifier_readPlist) identifier_readPlist
)attribute
(argument_list
(identifier_file_object) identifier_file_object
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(tuple
(attribute
(identifier_biplist) identifier_biplist
(identifier_InvalidPlistException) identifier_InvalidPlistException
)attribute
(attribute
(identifier_biplist) identifier_biplist
(identifier_NotBinaryPlistException) identifier_NotBinaryPlistException
)attribute
)tuple
(as_pattern_target
(identifier_exception) identifier_exception
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_UnableToParseFile) identifier_UnableToParseFile
)attribute
(argument_list
(call
(attribute
(string_'Unable to parse plist with error: {0!s}') string_'Unable to parse plist with error: {0!s}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_exception) identifier_exception
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_top_level_object) identifier_top_level_object
)return_statement
)block
)function_definition
)module | Returns the deserialized content of a plist as a dictionary object.
Args:
file_object (dfvfs.FileIO): a file-like object to parse.
Returns:
dict[str, object]: contents of the plist.
Raises:
UnableToParseFile: when the file cannot be parsed. |
(module
(function_definition
(function_name_polyline) function_name_polyline
(parameters
(identifier_self) identifier_self
(identifier_arr) identifier_arr
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_arr) identifier_arr
)argument_list
)call
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_line) identifier_line
)attribute
(argument_list
(subscript
(subscript
(identifier_arr) identifier_arr
(identifier_i) identifier_i
)subscript
(integer_0) integer_0
)subscript
(subscript
(subscript
(identifier_arr) identifier_arr
(identifier_i) identifier_i
)subscript
(integer_1) integer_1
)subscript
(subscript
(subscript
(identifier_arr) identifier_arr
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(integer_0) integer_0
)subscript
(subscript
(subscript
(identifier_arr) identifier_arr
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(integer_1) integer_1
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Draw a set of lines |
(module
(function_definition
(function_name_application_name) function_name_application_name
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__application_name) identifier__application_name
)attribute
(None) None
)comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_units) identifier_units
)attribute
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__application_name) identifier__application_name
)attribute
(subscript
(call
(attribute
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_units) identifier_units
)attribute
(integer_0) integer_0
)subscript
(identifier_unit_name) identifier_unit_name
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__application_name) identifier__application_name
)attribute
)return_statement
)block
)function_definition
)module | The name of the remote application for this relation, or ``None``.
This is equivalent to::
relation.units[0].unit_name.split('/')[0] |
(module
(function_definition
(function_name_visit_FunctionDef) function_name_visit_FunctionDef
(parameters
(identifier_self) identifier_self
(identifier_node) identifier_node
)parameters
(block
(assert_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_current_function) identifier_current_function
)attribute
(None) None
)comparison_operator
)assert_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_function) identifier_current_function
)attribute
(identifier_node) identifier_node
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_naming) identifier_naming
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_in_cond) identifier_in_cond
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generic_visit) identifier_generic_visit
)attribute
(argument_list
(identifier_node) identifier_node
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_function) identifier_current_function
)attribute
(None) None
)assignment
)expression_statement
)block
)function_definition
)module | Initialize variable for the current function to add edges from calls.
We compute variable to call dependencies and add edges when returns
are reach. |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(identifier_get_contents) identifier_get_contents
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_'__([a-z]+)__ = [\'"]([^\'"]+)') string_'__([a-z]+)__ = [\'"]([^\'"]+)'
(identifier_contents) identifier_contents
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_metadata) identifier_metadata
(string_'version') string_'version'
)subscript
)return_statement
)block
)function_definition
)module | Extract the version number from a Python module. |
(module
(function_definition
(function_name_unfinished_objects) function_name_unfinished_objects
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(attribute
(identifier_self) identifier_self
(identifier__end_isnull) identifier__end_isnull
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__rbound) identifier__rbound
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_mask) identifier_mask
(binary_operator
(identifier_mask) identifier_mask
(parenthesized_expression
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__end) identifier__end
)attribute
(attribute
(identifier_self) identifier_self
(identifier__rbound) identifier__rbound
)attribute
)comparison_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_oids) identifier_oids
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(attribute
(subscript
(identifier_self) identifier_self
(identifier_mask) identifier_mask
)subscript
(identifier__oid) identifier__oid
)attribute
(identifier_tolist) identifier_tolist
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_self) identifier_self
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__oid) identifier__oid
)attribute
(identifier_apply) identifier_apply
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_oid) identifier_oid
)lambda_parameters
(comparison_operator
(identifier_oid) identifier_oid
(identifier_oids) identifier_oids
)comparison_operator
)lambda
)argument_list
)call
)subscript
)return_statement
)block
)function_definition
)module | Leaves only versions of those objects that has some version with
`_end == None` or with `_end > right cutoff`. |
(module
(function_definition
(function_name_get_subdomain_info) function_name_get_subdomain_info
(parameters
(identifier_fqn) identifier_fqn
(default_parameter
(identifier_db_path) identifier_db_path
(None) None
)default_parameter
(default_parameter
(identifier_atlasdb_path) identifier_atlasdb_path
(None) None
)default_parameter
(default_parameter
(identifier_zonefiles_dir) identifier_zonefiles_dir
(None) None
)default_parameter
(default_parameter
(identifier_check_pending) identifier_check_pending
(False) False
)default_parameter
(default_parameter
(identifier_include_did) identifier_include_did
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_opts) identifier_opts
(call
(identifier_get_blockstack_opts) identifier_get_blockstack_opts
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_is_subdomains_enabled) identifier_is_subdomains_enabled
(argument_list
(identifier_opts) identifier_opts
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"Subdomain support is disabled") string_"Subdomain support is disabled"
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_db_path) identifier_db_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_db_path) identifier_db_path
(subscript
(identifier_opts) identifier_opts
(string_'subdomaindb_path') string_'subdomaindb_path'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_zonefiles_dir) identifier_zonefiles_dir
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_zonefiles_dir) identifier_zonefiles_dir
(subscript
(identifier_opts) identifier_opts
(string_'zonefiles') string_'zonefiles'
)subscript
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_atlasdb_path) identifier_atlasdb_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_atlasdb_path) identifier_atlasdb_path
(subscript
(identifier_opts) identifier_opts
(string_'atlasdb_path') string_'atlasdb_path'
)subscript
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_db) identifier_db
(call
(identifier_SubdomainDB) identifier_SubdomainDB
(argument_list
(identifier_db_path) identifier_db_path
(identifier_zonefiles_dir) identifier_zonefiles_dir
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_subrec) identifier_subrec
(call
(attribute
(identifier_db) identifier_db
(identifier_get_subdomain_entry) identifier_get_subdomain_entry
)attribute
(argument_list
(identifier_fqn) identifier_fqn
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_SubdomainNotFound) identifier_SubdomainNotFound
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warn) identifier_warn
)attribute
(argument_list
(call
(attribute
(string_"No such subdomain: {}") string_"No such subdomain: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fqn) identifier_fqn
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(if_statement
(identifier_check_pending) identifier_check_pending
(block
(expression_statement
(assignment
(attribute
(identifier_subrec) identifier_subrec
(identifier_pending) identifier_pending
)attribute
(call
(attribute
(identifier_db) identifier_db
(identifier_subdomain_check_pending) identifier_subdomain_check_pending
)attribute
(argument_list
(identifier_subrec) identifier_subrec
(identifier_atlasdb_path) identifier_atlasdb_path
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_include_did) identifier_include_did
(block
(expression_statement
(assignment
(attribute
(identifier_subrec) identifier_subrec
(identifier_did_info) identifier_did_info
)attribute
(call
(attribute
(identifier_db) identifier_db
(identifier_get_subdomain_DID_info) identifier_get_subdomain_DID_info
)attribute
(argument_list
(identifier_fqn) identifier_fqn
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_subrec) identifier_subrec
)return_statement
)block
)function_definition
)module | Static method for getting the state of a subdomain, given its fully-qualified name.
Return the subdomain record on success.
Return None if not found. |
(module
(function_definition
(function_name_enable_caching) function_name_enable_caching
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(string_"Enable the cache of this object.") string_"Enable the cache of this object."
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_caching_enabled) identifier_caching_enabled
)attribute
(True) True
)assignment
)expression_statement
(for_statement
(identifier_c) identifier_c
(call
(attribute
(identifier_self) identifier_self
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_enable_cacher) identifier_enable_cacher
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Enable the cache of this object. |
(module
(function_definition
(function_name_meld) function_name_meld
(parameters
(list_splat_pattern
(identifier_values) identifier_values
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(list_comprehension
(identifier_x) identifier_x
(for_in_clause
(identifier_x) identifier_x
(identifier_values) identifier_values
)for_in_clause
(if_clause
(comparison_operator
(identifier_x) identifier_x
(None) None
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_values) identifier_values
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_repeated) identifier_repeated
(argument_list
(list_splat
(identifier_values) identifier_values
)list_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isrepeating) identifier_isrepeating
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(block
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_getvalue) identifier_getvalue
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the repeated value, or the first value if there's only one.
This is a convenience function, equivalent to calling
getvalue(repeated(x)) to get x.
This function skips over instances of None in values (None is not allowed
in repeated variables).
Examples:
meld("foo", "bar") # => ListRepetition("foo", "bar")
meld("foo", "foo") # => ListRepetition("foo", "foo")
meld("foo", None) # => "foo"
meld(None) # => None |
(module
(function_definition
(function_name_wc_wrap) function_name_wc_wrap
(parameters
(identifier_text) identifier_text
(identifier_length) identifier_length
)parameters
(block
(expression_statement
(assignment
(identifier_line_words) identifier_line_words
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_line_len) identifier_line_len
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_words) identifier_words
(call
(attribute
(identifier_re) identifier_re
(identifier_split) identifier_split
)attribute
(argument_list
(string_r"\s+") string_r"\s+"
(call
(attribute
(identifier_text) identifier_text
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_word) identifier_word
(identifier_words) identifier_words
(block
(expression_statement
(assignment
(identifier_word_len) identifier_word_len
(call
(identifier_wcswidth) identifier_wcswidth
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_line_words) identifier_line_words
(comparison_operator
(binary_operator
(identifier_line_len) identifier_line_len
(identifier_word_len) identifier_word_len
)binary_operator
(identifier_length) identifier_length
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_line_words) identifier_line_words
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_line_len) identifier_line_len
(identifier_length) identifier_length
)comparison_operator
(block
(expression_statement
(yield
(identifier_line) identifier_line
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(identifier__wc_hard_wrap) identifier__wc_hard_wrap
(argument_list
(identifier_line) identifier_line
(identifier_length) identifier_length
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_line_words) identifier_line_words
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_line_len) identifier_line_len
(integer_0) integer_0
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_line_words) identifier_line_words
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_line_len) identifier_line_len
(binary_operator
(identifier_word_len) identifier_word_len
(integer_1) integer_1
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(if_statement
(identifier_line_words) identifier_line_words
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_line_words) identifier_line_words
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_line_len) identifier_line_len
(identifier_length) identifier_length
)comparison_operator
(block
(expression_statement
(yield
(identifier_line) identifier_line
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(call
(identifier__wc_hard_wrap) identifier__wc_hard_wrap
(argument_list
(identifier_line) identifier_line
(identifier_length) identifier_length
)argument_list
)call
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Wrap text to given length, breaking on whitespace and taking into account
character width.
Meant for use on a single line or paragraph. Will destroy spacing between
words and paragraphs and any indentation. |
(module
(function_definition
(function_name_convert) function_name_convert
(parameters
(identifier_input_file_name) identifier_input_file_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_delimiter) identifier_delimiter
(boolean_operator
(subscript
(identifier_kwargs) identifier_kwargs
(string_"delimiter") string_"delimiter"
)subscript
(string_",") string_","
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_quotechar) identifier_quotechar
(boolean_operator
(subscript
(identifier_kwargs) identifier_kwargs
(string_"quotechar") string_"quotechar"
)subscript
(string_"|") string_"|"
)boolean_operator
)assignment
)expression_statement
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY2) identifier_PY2
)attribute
(block
(expression_statement
(assignment
(identifier_delimiter) identifier_delimiter
(call
(attribute
(identifier_delimiter) identifier_delimiter
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_quotechar) identifier_quotechar
(call
(attribute
(identifier_quotechar) identifier_quotechar
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"utf-8") string_"utf-8"
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_input_file_name) identifier_input_file_name
(string_"rb") string_"rb"
)argument_list
)call
(as_pattern_target
(identifier_input_file) identifier_input_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_reader) identifier_reader
(call
(attribute
(identifier_csv) identifier_csv
(identifier_reader) identifier_reader
)attribute
(argument_list
(identifier_input_file) identifier_input_file
(keyword_argument
(identifier_encoding) identifier_encoding
(string_"utf-8") string_"utf-8"
)keyword_argument
(keyword_argument
(identifier_delimiter) identifier_delimiter
(identifier_delimiter) identifier_delimiter
)keyword_argument
(keyword_argument
(identifier_quotechar) identifier_quotechar
(identifier_quotechar) identifier_quotechar
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_csv_headers) identifier_csv_headers
(list
)list
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_"no_header") string_"no_header"
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_csv_headers) identifier_csv_headers
(call
(identifier_next) identifier_next
(argument_list
(identifier_reader) identifier_reader
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_csv_rows) identifier_csv_rows
(list_comprehension
(identifier_row) identifier_row
(for_in_clause
(identifier_row) identifier_row
(identifier_reader) identifier_reader
)for_in_clause
(if_clause
(identifier_row) identifier_row
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(boolean_operator
(not_operator
(identifier_csv_headers) identifier_csv_headers
)not_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_csv_rows) identifier_csv_rows
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_csv_rows) identifier_csv_rows
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_csv_headers) identifier_csv_headers
(list_comprehension
(call
(attribute
(string_"Column {}") string_"Column {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(for_in_clause
(identifier_n) identifier_n
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(identifier_end) identifier_end
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_html) identifier_html
(call
(identifier_render_template) identifier_render_template
(argument_list
(identifier_csv_headers) identifier_csv_headers
(identifier_csv_rows) identifier_csv_rows
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_freeze_js) identifier_freeze_js
(argument_list
(identifier_html) identifier_html
)argument_list
)call
)return_statement
)block
)function_definition
)module | Convert CSV file to HTML table |
(module
(function_definition
(function_name_is_hex_string) function_name_is_hex_string
(parameters
(identifier_string) identifier_string
)parameters
(block
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_r'[A-Fa-f0-9]+') string_r'[A-Fa-f0-9]+'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_string) identifier_string
(attribute
(identifier_six) identifier_six
(identifier_binary_type) identifier_binary_type
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(identifier_str) identifier_str
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(comparison_operator
(call
(attribute
(identifier_pattern) identifier_pattern
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_string) identifier_string
)argument_list
)call
(None) None
)comparison_operator
)return_statement
)block
)function_definition
)module | Check if the string is only composed of hex characters. |
(module
(function_definition
(function_name_make_env) function_name_make_env
(parameters
(identifier_env_type) identifier_env_type
(identifier_real_env) identifier_real_env
(identifier_sim_env_kwargs) identifier_sim_env_kwargs
)parameters
(block
(return_statement
(call
(subscript
(dictionary
(pair
(string_"real") string_"real"
(lambda
(call
(attribute
(identifier_real_env) identifier_real_env
(identifier_new_like) identifier_new_like
)attribute
(argument_list
(keyword_argument
(identifier_batch_size) identifier_batch_size
(subscript
(identifier_sim_env_kwargs) identifier_sim_env_kwargs
(string_"batch_size") string_"batch_size"
)subscript
)keyword_argument
(keyword_argument
(identifier_store_rollouts) identifier_store_rollouts
(False) False
)keyword_argument
)argument_list
)call
)lambda
)pair
(pair
(string_"simulated") string_"simulated"
(lambda
(call
(attribute
(identifier_rl_utils) identifier_rl_utils
(identifier_SimulatedBatchGymEnvWithFixedInitialFrames) identifier_SimulatedBatchGymEnvWithFixedInitialFrames
)attribute
(argument_list
(dictionary_splat
(identifier_sim_env_kwargs) identifier_sim_env_kwargs
)dictionary_splat
)argument_list
)call
)lambda
)pair
)dictionary
(identifier_env_type) identifier_env_type
)subscript
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Factory function for envs. |
(module
(function_definition
(function_name_expr) function_name_expr
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_prog) identifier_prog
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(string_'\{([^}]+)\}') string_'\{([^}]+)\}'
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_repl) function_name_repl
(parameters
(identifier_matchobj) identifier_matchobj
)parameters
(block
(return_statement
(binary_operator
(string_"rec['%s']") string_"rec['%s']"
(call
(attribute
(identifier_matchobj) identifier_matchobj
(identifier_group) identifier_group
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
(return_statement
(call
(identifier_eval) identifier_eval
(argument_list
(binary_operator
(string_"lambda rec: ") string_"lambda rec: "
(call
(attribute
(identifier_prog) identifier_prog
(identifier_sub) identifier_sub
)attribute
(argument_list
(identifier_repl) identifier_repl
(identifier_s) identifier_s
)argument_list
)call
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a function operating on a table record.
The expression string is converted into a lambda function by prepending
the string with ``'lambda rec: '``, then replacing anything enclosed in
curly braces (e.g., ``"{foo}"``) with a lookup on the record (e.g.,
``"rec['foo']"``), then finally calling :func:`eval`.
So, e.g., the expression string ``"{foo} * {bar}"`` is converted to the
function ``lambda rec: rec['foo'] * rec['bar']`` |
(module
(function_definition
(function_name__api_group_for_type) function_name__api_group_for_type
(parameters
(identifier_cls) identifier_cls
)parameters
(block
(expression_statement
(assignment
(identifier__groups) identifier__groups
(dictionary
(pair
(tuple
(string_u"v1beta1") string_u"v1beta1"
(string_u"Deployment") string_u"Deployment"
)tuple
(string_u"extensions") string_u"extensions"
)pair
(pair
(tuple
(string_u"v1beta1") string_u"v1beta1"
(string_u"DeploymentList") string_u"DeploymentList"
)tuple
(string_u"extensions") string_u"extensions"
)pair
(pair
(tuple
(string_u"v1beta1") string_u"v1beta1"
(string_u"ReplicaSet") string_u"ReplicaSet"
)tuple
(string_u"extensions") string_u"extensions"
)pair
(pair
(tuple
(string_u"v1beta1") string_u"v1beta1"
(string_u"ReplicaSetList") string_u"ReplicaSetList"
)tuple
(string_u"extensions") string_u"extensions"
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(tuple
(attribute
(identifier_cls) identifier_cls
(identifier_apiVersion) identifier_apiVersion
)attribute
(subscript
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier___name__) identifier___name__
)attribute
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_u".") string_u"."
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)tuple
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_group) identifier_group
(call
(attribute
(identifier__groups) identifier__groups
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_key) identifier_key
(None) None
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_group) identifier_group
)return_statement
)block
)function_definition
)module | Determine which Kubernetes API group a particular PClass is likely to
belong with.
This is basically nonsense. The question being asked is wrong. An
abstraction has failed somewhere. Fixing that will get rid of the need
for this. |
(module
(function_definition
(function_name__get_best_indexes) function_name__get_best_indexes
(parameters
(identifier_logits) identifier_logits
(identifier_n_best_size) identifier_n_best_size
)parameters
(block
(expression_statement
(assignment
(identifier_index_and_score) identifier_index_and_score
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_logits) identifier_logits
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(subscript
(identifier_x) identifier_x
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
(keyword_argument
(identifier_reverse) identifier_reverse
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_best_indexes) identifier_best_indexes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_index_and_score) identifier_index_and_score
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_i) identifier_i
(identifier_n_best_size) identifier_n_best_size
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_best_indexes) identifier_best_indexes
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(subscript
(identifier_index_and_score) identifier_index_and_score
(identifier_i) identifier_i
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_best_indexes) identifier_best_indexes
)return_statement
)block
)function_definition
)module | Get the n-best logits from a list. |
(module
(function_definition
(function_name_apply_published_filter) function_name_apply_published_filter
(parameters
(identifier_self) identifier_self
(identifier_queryset) identifier_queryset
(identifier_operation) identifier_operation
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_operation) identifier_operation
(list
(string_"after") string_"after"
(string_"before") string_"before"
)list
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_queryset) identifier_queryset
(identifier_filter) identifier_filter
)attribute
(argument_list
(call
(identifier_Published) identifier_Published
(argument_list
(dictionary_splat
(dictionary
(pair
(identifier_operation) identifier_operation
(identifier_value) identifier_value
)pair
)dictionary
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Add the appropriate Published filter to a given elasticsearch query.
:param queryset: The DJES queryset object to be filtered.
:param operation: The type of filter (before/after).
:param value: The date or datetime value being applied to the filter. |
(module
(function_definition
(function_name_get_corpus_path) function_name_get_corpus_path
(parameters
(typed_parameter
(identifier_name) identifier_name
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(list
(identifier_str) identifier_str
(None) None
)list
)type
(block
(expression_statement
(assignment
(identifier_db) identifier_db
(call
(identifier_TinyDB) identifier_TinyDB
(argument_list
(call
(identifier_corpus_db_path) identifier_corpus_db_path
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_temp) identifier_temp
(call
(identifier_Query) identifier_Query
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(call
(attribute
(identifier_db) identifier_db
(identifier_search) identifier_search
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_temp) identifier_temp
(identifier_name) identifier_name
)attribute
(identifier_name) identifier_name
)comparison_operator
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_get_full_data_path) identifier_get_full_data_path
(argument_list
(subscript
(subscript
(call
(attribute
(identifier_db) identifier_db
(identifier_search) identifier_search
)attribute
(argument_list
(comparison_operator
(attribute
(identifier_temp) identifier_temp
(identifier_name) identifier_name
)attribute
(identifier_name) identifier_name
)comparison_operator
)argument_list
)call
(integer_0) integer_0
)subscript
(string_"file") string_"file"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_db) identifier_db
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_download) identifier_download
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_path) identifier_path
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get corpus path
:param string name: corpus name |
(module
(function_definition
(function_name__create_fw_fab_dev_te) function_name__create_fw_fab_dev_te
(parameters
(identifier_self) identifier_self
(identifier_tenant_id) identifier_tenant_id
(identifier_drvr_name) identifier_drvr_name
(identifier_fw_dict) identifier_fw_dict
)parameters
(block
(expression_statement
(assignment
(identifier_is_fw_virt) identifier_is_fw_virt
(call
(attribute
(identifier_self) identifier_self
(identifier_is_device_virtual) identifier_is_device_virtual
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fabric) identifier_fabric
)attribute
(identifier_prepare_fabric_fw) identifier_prepare_fabric_fw
)attribute
(argument_list
(identifier_tenant_id) identifier_tenant_id
(identifier_fw_dict) identifier_fw_dict
(identifier_is_fw_virt) identifier_is_fw_virt
(attribute
(identifier_fw_constants) identifier_fw_constants
(identifier_RESULT_FW_CREATE_INIT) identifier_RESULT_FW_CREATE_INIT
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ret) identifier_ret
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(string_"Prepare Fabric failed") string_"Prepare Fabric failed"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_fw_db_final_result) identifier_update_fw_db_final_result
)attribute
(argument_list
(call
(attribute
(identifier_fw_dict) identifier_fw_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'fw_id') string_'fw_id'
)argument_list
)call
(parenthesized_expression
(attribute
(identifier_fw_constants) identifier_fw_constants
(identifier_RESULT_FW_CREATE_DONE) identifier_RESULT_FW_CREATE_DONE
)attribute
)parenthesized_expression
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(attribute
(identifier_self) identifier_self
(identifier_create_fw_device) identifier_create_fw_device
)attribute
(argument_list
(identifier_tenant_id) identifier_tenant_id
(call
(attribute
(identifier_fw_dict) identifier_fw_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'fw_id') string_'fw_id'
)argument_list
)call
(identifier_fw_dict) identifier_fw_dict
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ret) identifier_ret
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_fwid_attr) identifier_fwid_attr
)attribute
(identifier_tenant_id) identifier_tenant_id
)subscript
(identifier_fw_drvr_created) identifier_fw_drvr_created
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_fw_db_dev_status) identifier_update_fw_db_dev_status
)attribute
(argument_list
(call
(attribute
(identifier_fw_dict) identifier_fw_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'fw_id') string_'fw_id'
)argument_list
)call
(string_'SUCCESS') string_'SUCCESS'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_info) identifier_info
)attribute
(argument_list
(string_"FW device create returned success for tenant %s") string_"FW device create returned success for tenant %s"
(identifier_tenant_id) identifier_tenant_id
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_error) identifier_error
)attribute
(argument_list
(string_"FW device create returned failure for tenant %s") string_"FW device create returned failure for tenant %s"
(identifier_tenant_id) identifier_tenant_id
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Prepares the Fabric and configures the device.
This routine calls the fabric class to prepare the fabric when
a firewall is created. It also calls the device manager to
configure the device. It updates the database with the final
result. |
(module
(function_definition
(function_name_decode) function_name_decode
(parameters
(identifier_symbol_string) identifier_symbol_string
(default_parameter
(identifier_checksum) identifier_checksum
(False) False
)default_parameter
(default_parameter
(identifier_strict) identifier_strict
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_symbol_string) identifier_symbol_string
(call
(identifier_normalize) identifier_normalize
(argument_list
(identifier_symbol_string) identifier_symbol_string
(keyword_argument
(identifier_strict) identifier_strict
(identifier_strict) identifier_strict
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_checksum) identifier_checksum
(block
(expression_statement
(assignment
(pattern_list
(identifier_symbol_string) identifier_symbol_string
(identifier_check_symbol) identifier_check_symbol
)pattern_list
(expression_list
(subscript
(identifier_symbol_string) identifier_symbol_string
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
(subscript
(identifier_symbol_string) identifier_symbol_string
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)expression_list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_number) identifier_number
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_symbol) identifier_symbol
(identifier_symbol_string) identifier_symbol_string
(block
(expression_statement
(assignment
(identifier_number) identifier_number
(binary_operator
(binary_operator
(identifier_number) identifier_number
(identifier_base) identifier_base
)binary_operator
(subscript
(identifier_decode_symbols) identifier_decode_symbols
(identifier_symbol) identifier_symbol
)subscript
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(if_statement
(identifier_checksum) identifier_checksum
(block
(expression_statement
(assignment
(identifier_check_value) identifier_check_value
(subscript
(identifier_decode_symbols) identifier_decode_symbols
(identifier_check_symbol) identifier_check_symbol
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_modulo) identifier_modulo
(binary_operator
(identifier_number) identifier_number
(identifier_check_base) identifier_check_base
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_check_value) identifier_check_value
(identifier_modulo) identifier_modulo
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"invalid check symbol '%s' for string '%s'") string_"invalid check symbol '%s' for string '%s'"
(tuple
(identifier_check_symbol) identifier_check_symbol
(identifier_symbol_string) identifier_symbol_string
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_number) identifier_number
)return_statement
)block
)function_definition
)module | Decode an encoded symbol string.
If checksum is set to True, the string is assumed to have a
trailing check symbol which will be validated. If the
checksum validation fails, a ValueError is raised.
If strict is set to True, a ValueError is raised if the
normalization step requires changes to the string.
The decoded string is returned. |
(module
(function_definition
(function_name_format_content) function_name_format_content
(parameters
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_paragraphs) identifier_paragraphs
(call
(identifier_parse_html) identifier_parse_html
(argument_list
(identifier_content) identifier_content
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first) identifier_first
(True) True
)assignment
)expression_statement
(for_statement
(identifier_paragraph) identifier_paragraph
(identifier_paragraphs) identifier_paragraphs
(block
(if_statement
(not_operator
(identifier_first) identifier_first
)not_operator
(block
(expression_statement
(yield
(string_"") string_""
)yield
)expression_statement
)block
)if_statement
(for_statement
(identifier_line) identifier_line
(identifier_paragraph) identifier_paragraph
(block
(expression_statement
(yield
(identifier_line) identifier_line
)yield
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_first) identifier_first
(False) False
)assignment
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Given a Status contents in HTML, converts it into lines of plain text.
Returns a generator yielding lines of content. |
(module
(function_definition
(function_name_get_filters_params) function_name_get_filters_params
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_params) identifier_params
)not_operator
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(attribute
(identifier_self) identifier_self
(identifier_params) identifier_params
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_lookup_params) identifier_lookup_params
(call
(attribute
(identifier_params) identifier_params
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_ignored) identifier_ignored
(identifier_IGNORED_PARAMS) identifier_IGNORED_PARAMS
(block
(if_statement
(comparison_operator
(identifier_ignored) identifier_ignored
(identifier_lookup_params) identifier_lookup_params
)comparison_operator
(block
(delete_statement
(subscript
(identifier_lookup_params) identifier_lookup_params
(identifier_ignored) identifier_ignored
)subscript
)delete_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_lookup_params) identifier_lookup_params
)return_statement
)block
)function_definition
)module | Returns all params except IGNORED_PARAMS |
(module
(function_definition
(function_name__simulate_installation_of) function_name__simulate_installation_of
(parameters
(identifier_to_install) identifier_to_install
(identifier_package_set) identifier_package_set
)parameters
(block
(expression_statement
(assignment
(identifier_installed) identifier_installed
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_inst_req) identifier_inst_req
(identifier_to_install) identifier_to_install
(block
(expression_statement
(assignment
(identifier_dist) identifier_dist
(call
(attribute
(call
(identifier_make_abstract_dist) identifier_make_abstract_dist
(argument_list
(identifier_inst_req) identifier_inst_req
)argument_list
)call
(identifier_dist) identifier_dist
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(identifier_canonicalize_name) identifier_canonicalize_name
(argument_list
(attribute
(identifier_dist) identifier_dist
(identifier_key) identifier_key
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_package_set) identifier_package_set
(identifier_name) identifier_name
)subscript
(call
(identifier_PackageDetails) identifier_PackageDetails
(argument_list
(attribute
(identifier_dist) identifier_dist
(identifier_version) identifier_version
)attribute
(call
(attribute
(identifier_dist) identifier_dist
(identifier_requires) identifier_requires
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_installed) identifier_installed
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_installed) identifier_installed
)return_statement
)block
)function_definition
)module | Computes the version of packages after installing to_install. |
(module
(function_definition
(function_name_grant_local_roles_for) function_name_grant_local_roles_for
(parameters
(identifier_brain_or_object) identifier_brain_or_object
(identifier_roles) identifier_roles
(default_parameter
(identifier_user) identifier_user
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_user_id) identifier_user_id
(call
(identifier_get_user_id) identifier_get_user_id
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_api) identifier_api
(identifier_get_object) identifier_get_object
)attribute
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_roles) identifier_roles
(identifier_basestring) identifier_basestring
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_roles) identifier_roles
(list
(identifier_roles) identifier_roles
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_manage_addLocalRoles) identifier_manage_addLocalRoles
)attribute
(argument_list
(identifier_user_id) identifier_user_id
(identifier_roles) identifier_roles
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_get_local_roles_for) identifier_get_local_roles_for
(argument_list
(identifier_brain_or_object) identifier_brain_or_object
)argument_list
)call
)return_statement
)block
)function_definition
)module | Grant local roles for the object
Code extracted from `IRoleManager.manage_addLocalRoles`
:param brain_or_object: Catalog brain or object
:param user: A user ID, user object or None (for the current user)
:param roles: The local roles to grant for the current user |
(module
(function_definition
(function_name_setupTxns) function_name_setupTxns
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(typed_default_parameter
(identifier_force) identifier_force
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(block
(import_statement
(dotted_name
(identifier_data) identifier_data
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_dataDir) identifier_dataDir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(attribute
(identifier_data) identifier_data
(identifier___file__) identifier___file__
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_allEnvs) identifier_allEnvs
(dictionary
(pair
(string_"local") string_"local"
(call
(identifier_Environment) identifier_Environment
(argument_list
(string_"pool_transactions_local") string_"pool_transactions_local"
(string_"domain_transactions_local") string_"domain_transactions_local"
)argument_list
)call
)pair
(pair
(string_"test") string_"test"
(call
(identifier_Environment) identifier_Environment
(argument_list
(string_"pool_transactions_sandbox") string_"pool_transactions_sandbox"
(string_"domain_transactions_sandbox") string_"domain_transactions_sandbox"
)argument_list
)call
)pair
(pair
(string_"live") string_"live"
(call
(identifier_Environment) identifier_Environment
(argument_list
(string_"pool_transactions_live") string_"pool_transactions_live"
(string_"domain_transactions_live") string_"domain_transactions_live"
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_env) identifier_env
(call
(attribute
(identifier_allEnvs) identifier_allEnvs
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_fileName) identifier_fileName
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_env) identifier_env
(identifier_key) identifier_key
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_fileName) identifier_fileName
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sourceFilePath) identifier_sourceFilePath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dataDir) identifier_dataDir
(identifier_fileName) identifier_fileName
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_sourceFilePath) identifier_sourceFilePath
)argument_list
)call
)not_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_destFilePath) identifier_destFilePath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_base_dir) identifier_base_dir
)attribute
(call
(identifier_genesis_txn_file) identifier_genesis_txn_file
(argument_list
(identifier_fileName) identifier_fileName
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_destFilePath) identifier_destFilePath
)argument_list
)call
(not_operator
(identifier_force) identifier_force
)not_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(identifier_copyfile) identifier_copyfile
(argument_list
(identifier_sourceFilePath) identifier_sourceFilePath
(identifier_destFilePath) identifier_destFilePath
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Create base transactions
:param key: ledger
:param force: replace existing transaction files |
(module
(function_definition
(function_name_get_assembly_mapping_data) function_name_get_assembly_mapping_data
(parameters
(identifier_self) identifier_self
(identifier_source_assembly) identifier_source_assembly
(identifier_target_assembly) identifier_target_assembly
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__load_assembly_mapping_data) identifier__load_assembly_mapping_data
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_path_assembly_mapping_data) identifier__get_path_assembly_mapping_data
)attribute
(argument_list
(identifier_source_assembly) identifier_source_assembly
(identifier_target_assembly) identifier_target_assembly
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get assembly mapping data.
Parameters
----------
source_assembly : {'NCBI36', 'GRCh37', 'GRCh38'}
assembly to remap from
target_assembly : {'NCBI36', 'GRCh37', 'GRCh38'}
assembly to remap to
Returns
-------
dict
dict of json assembly mapping data if loading was successful, else None |
(module
(function_definition
(function_name_lineage) function_name_lineage
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_indexes) identifier_indexes
(call
(attribute
(attribute
(identifier_six) identifier_six
(identifier_moves) identifier_moves
)attribute
(identifier_range) identifier_range
)attribute
(argument_list
(integer_1) integer_1
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_parts) identifier_parts
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(set_comprehension
(call
(identifier_FieldPath) identifier_FieldPath
(argument_list
(list_splat
(subscript
(attribute
(identifier_self) identifier_self
(identifier_parts) identifier_parts
)attribute
(slice
(colon) colon
(identifier_index) identifier_index
)slice
)subscript
)list_splat
)argument_list
)call
(for_in_clause
(identifier_index) identifier_index
(identifier_indexes) identifier_indexes
)for_in_clause
)set_comprehension
)return_statement
)block
)function_definition
)module | Return field paths for all parents.
Returns: Set[:class:`FieldPath`] |
(module
(function_definition
(function_name_operation) function_name_operation
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
(identifier_function) identifier_function
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_TimeSeries) identifier_TimeSeries
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_other) identifier_other
(identifier_TimeSeries) identifier_TimeSeries
)argument_list
)call
(block
(for_statement
(pattern_list
(identifier_time) identifier_time
(identifier_value) identifier_value
)pattern_list
(identifier_self) identifier_self
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_time) identifier_time
)subscript
(call
(identifier_function) identifier_function
(argument_list
(identifier_value) identifier_value
(subscript
(identifier_other) identifier_other
(identifier_time) identifier_time
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(for_statement
(pattern_list
(identifier_time) identifier_time
(identifier_value) identifier_value
)pattern_list
(identifier_other) identifier_other
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_time) identifier_time
)subscript
(call
(identifier_function) identifier_function
(argument_list
(subscript
(identifier_self) identifier_self
(identifier_time) identifier_time
)subscript
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(for_statement
(pattern_list
(identifier_time) identifier_time
(identifier_value) identifier_value
)pattern_list
(identifier_self) identifier_self
(block
(expression_statement
(assignment
(subscript
(identifier_result) identifier_result
(identifier_time) identifier_time
)subscript
(call
(identifier_function) identifier_function
(argument_list
(identifier_value) identifier_value
(identifier_other) identifier_other
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Calculate "elementwise" operation either between this TimeSeries
and another one, i.e.
operation(t) = function(self(t), other(t))
or between this timeseries and a constant:
operation(t) = function(self(t), other)
If it's another time series, the measurement times in the
resulting TimeSeries will be the union of the sets of
measurement times of the input time series. If it's a
constant, the measurement times will not change. |
(module
(function_definition
(function_name_update_preferences_by_category) function_name_update_preferences_by_category
(parameters
(identifier_self) identifier_self
(identifier_category) identifier_category
(identifier_communication_channel_id) identifier_communication_channel_id
(identifier_notification_preferences_frequency) identifier_notification_preferences_frequency
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_path) identifier_path
(string_"communication_channel_id") string_"communication_channel_id"
)subscript
(identifier_communication_channel_id) identifier_communication_channel_id
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_path) identifier_path
(string_"category") string_"category"
)subscript
(identifier_category) identifier_category
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(string_"notification_preferences[frequency]") string_"notification_preferences[frequency]"
)subscript
(identifier_notification_preferences_frequency) identifier_notification_preferences_frequency
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"PUT /api/v1/users/self/communication_channels/{communication_channel_id}/notification_preference_categories/{category} with query params: {params} and form data: {data}") string_"PUT /api/v1/users/self/communication_channels/{communication_channel_id}/notification_preference_categories/{category} with query params: {params} and form data: {data}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(dictionary_splat
(identifier_path) identifier_path
)dictionary_splat
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generic_request) identifier_generic_request
)attribute
(argument_list
(string_"PUT") string_"PUT"
(call
(attribute
(string_"/api/v1/users/self/communication_channels/{communication_channel_id}/notification_preference_categories/{category}") string_"/api/v1/users/self/communication_channels/{communication_channel_id}/notification_preference_categories/{category}"
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(identifier_path) identifier_path
)dictionary_splat
)argument_list
)call
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_no_data) identifier_no_data
(True) True
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update preferences by category.
Change the preferences for multiple notifications based on the category for a single communication channel |
(module
(function_definition
(function_name_get_layout) function_name_get_layout
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_tica_msm) identifier_tica_msm
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'tica') string_'tica'
(list
(string_'tica/tica.py') string_'tica/tica.py'
(string_'tica/tica-plot.py') string_'tica/tica-plot.py'
(string_'tica/tica-sample-coordinate.py') string_'tica/tica-sample-coordinate.py'
(string_'tica/tica-sample-coordinate-plot.py') string_'tica/tica-sample-coordinate-plot.py'
)list
(list
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'cluster') string_'cluster'
(list
(string_'cluster/cluster.py') string_'cluster/cluster.py'
(string_'cluster/cluster-plot.py') string_'cluster/cluster-plot.py'
(string_'cluster/sample-clusters.py') string_'cluster/sample-clusters.py'
(string_'cluster/sample-clusters-plot.py') string_'cluster/sample-clusters-plot.py'
)list
(list
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'msm') string_'msm'
(list
(string_'msm/timescales.py') string_'msm/timescales.py'
(string_'msm/timescales-plot.py') string_'msm/timescales-plot.py'
(string_'msm/microstate.py') string_'msm/microstate.py'
(string_'msm/microstate-plot.py') string_'msm/microstate-plot.py'
(string_'msm/microstate-traj.py') string_'msm/microstate-traj.py'
)list
(list
)list
)argument_list
)call
)list
)argument_list
)call
)list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_layout) identifier_layout
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'') string_''
(list
(string_'0-test-install.py') string_'0-test-install.py'
(string_'1-get-example-data.py') string_'1-get-example-data.py'
(string_'README.md') string_'README.md'
)list
(list
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'analysis') string_'analysis'
(list
(string_'analysis/gather-metadata.py') string_'analysis/gather-metadata.py'
(string_'analysis/gather-metadata-plot.py') string_'analysis/gather-metadata-plot.py'
)list
(list
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'rmsd') string_'rmsd'
(list
(string_'rmsd/rmsd.py') string_'rmsd/rmsd.py'
(string_'rmsd/rmsd-plot.py') string_'rmsd/rmsd-plot.py'
)list
(list
)list
)argument_list
)call
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'landmarks') string_'landmarks'
(list
(string_'landmarks/find-landmarks.py') string_'landmarks/find-landmarks.py'
(string_'landmarks/featurize.py') string_'landmarks/featurize.py'
(string_'landmarks/featurize-plot.py') string_'landmarks/featurize-plot.py'
)list
(list
(identifier_tica_msm) identifier_tica_msm
)list
)argument_list
)call
(call
(identifier_TemplateDir) identifier_TemplateDir
(argument_list
(string_'dihedrals') string_'dihedrals'
(list
(string_'dihedrals/featurize.py') string_'dihedrals/featurize.py'
(string_'dihedrals/featurize-plot.py') string_'dihedrals/featurize-plot.py'
)list
(list
(identifier_tica_msm) identifier_tica_msm
)list
)argument_list
)call
)list
)argument_list
)call
)list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_layout) identifier_layout
)return_statement
)block
)function_definition
)module | Specify a hierarchy of our templates. |
(module
(function_definition
(function_name__build_dependent_model_list) function_name__build_dependent_model_list
(parameters
(identifier_self) identifier_self
(identifier_obj_schema) identifier_obj_schema
)parameters
(block
(expression_statement
(assignment
(identifier_dep_models_list) identifier_dep_models_list
(list
)list
)assignment
)expression_statement
(if_statement
(identifier_obj_schema) identifier_obj_schema
(block
(expression_statement
(assignment
(subscript
(identifier_obj_schema) identifier_obj_schema
(string_'type') string_'type'
)subscript
(call
(attribute
(identifier_obj_schema) identifier_obj_schema
(identifier_get) identifier_get
)attribute
(argument_list
(string_'type') string_'type'
(string_'object') string_'object'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_obj_schema) identifier_obj_schema
(string_'type') string_'type'
)subscript
(string_'array') string_'array'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_dep_models_list) identifier_dep_models_list
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_dependent_model_list) identifier__build_dependent_model_list
)attribute
(argument_list
(call
(attribute
(identifier_obj_schema) identifier_obj_schema
(identifier_get) identifier_get
)attribute
(argument_list
(string_'items') string_'items'
(dictionary
)dictionary
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ref) identifier_ref
(call
(attribute
(identifier_obj_schema) identifier_obj_schema
(identifier_get) identifier_get
)attribute
(argument_list
(string_'$ref') string_'$ref'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_ref) identifier_ref
(block
(expression_statement
(assignment
(identifier_ref_obj_model) identifier_ref_obj_model
(subscript
(call
(attribute
(identifier_ref) identifier_ref
(identifier_split) identifier_split
)attribute
(argument_list
(string_"/") string_"/"
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ref_obj_schema) identifier_ref_obj_schema
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__models) identifier__models
)attribute
(argument_list
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_ref_obj_model) identifier_ref_obj_model
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dep_models_list) identifier_dep_models_list
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_dependent_model_list) identifier__build_dependent_model_list
)attribute
(argument_list
(identifier_ref_obj_schema) identifier_ref_obj_schema
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_dep_models_list) identifier_dep_models_list
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(identifier_ref_obj_model) identifier_ref_obj_model
)list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_properties) identifier_properties
(call
(attribute
(identifier_obj_schema) identifier_obj_schema
(identifier_get) identifier_get
)attribute
(argument_list
(string_'properties') string_'properties'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_properties) identifier_properties
(block
(for_statement
(pattern_list
(identifier__) identifier__
(identifier_prop_obj_schema) identifier_prop_obj_schema
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_properties) identifier_properties
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_dep_models_list) identifier_dep_models_list
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__build_dependent_model_list) identifier__build_dependent_model_list
)attribute
(argument_list
(identifier_prop_obj_schema) identifier_prop_obj_schema
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(identifier_dep_models_list) identifier_dep_models_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Helper function to build the list of models the given object schema is referencing. |
(module
(function_definition
(function_name_save_loop) function_name_save_loop
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_last_hash) identifier_last_hash
(call
(identifier_hash) identifier_hash
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_hosts) identifier_hosts
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(while_statement
(attribute
(identifier_self) identifier_self
(identifier_running) identifier_running
)attribute
(block
(expression_statement
(call
(attribute
(identifier_eventlet) identifier_eventlet
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_save_interval) identifier_save_interval
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_next_hash) identifier_next_hash
(call
(identifier_hash) identifier_hash
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_hosts) identifier_hosts
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_next_hash) identifier_next_hash
(identifier_last_hash) identifier_last_hash
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_last_hash) identifier_last_hash
(identifier_next_hash) identifier_next_hash
)assignment
)expression_statement
)block
)if_statement
)block
)while_statement
)block
)function_definition
)module | Saves the state if it has changed. |
(module
(function_definition
(function_name_subscribe) function_name_subscribe
(parameters
(identifier_self) identifier_self
(identifier_topic) identifier_topic
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_socket_type) identifier_socket_type
)attribute
(set
(identifier_SUB) identifier_SUB
(identifier_XSUB) identifier_XSUB
)set
)comparison_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(binary_operator
(string_"A %s socket cannot subscribe.") string_"A %s socket cannot subscribe."
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_socket_type) identifier_socket_type
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__subscriptions) identifier__subscriptions
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_topic) identifier_topic
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tasks) identifier_tasks
(list_comprehension
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_ensure_future) identifier_ensure_future
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_peer) identifier_peer
(identifier_connection) identifier_connection
)attribute
(identifier_local_subscribe) identifier_local_subscribe
)attribute
(argument_list
(identifier_topic) identifier_topic
)argument_list
)call
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_peer) identifier_peer
(attribute
(identifier_self) identifier_self
(identifier__peers) identifier__peers
)attribute
)for_in_clause
(if_clause
(attribute
(identifier_peer) identifier_peer
(identifier_connection) identifier_connection
)attribute
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(identifier_tasks) identifier_tasks
(block
(try_statement
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_wait) identifier_wait
)attribute
(argument_list
(identifier_tasks) identifier_tasks
(keyword_argument
(identifier_loop) identifier_loop
(attribute
(identifier_self) identifier_self
(identifier_loop) identifier_loop
)attribute
)keyword_argument
)argument_list
)call
)await
)expression_statement
)block
(finally_clause
(block
(for_statement
(identifier_task) identifier_task
(identifier_tasks) identifier_tasks
(block
(expression_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_cancel) identifier_cancel
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)finally_clause
)try_statement
)block
)if_statement
)block
)function_definition
)module | Subscribe the socket to the specified topic.
:param topic: The topic to subscribe to. |
(module
(function_definition
(function_name_host_info_getter) function_name_host_info_getter
(parameters
(identifier_func) identifier_func
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(boolean_operator
(identifier_name) identifier_name
(attribute
(identifier_func) identifier_func
(identifier___name__) identifier___name__
)attribute
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_host_info_gatherers) identifier_host_info_gatherers
(identifier_name) identifier_name
)subscript
(identifier_func) identifier_func
)assignment
)expression_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
)module | The decorated function is added to the process of collecting the host_info.
This just adds the decorated function to the global
``sacred.host_info.host_info_gatherers`` dictionary.
The functions from that dictionary are used when collecting the host info
using :py:func:`~sacred.host_info.get_host_info`.
Parameters
----------
func : callable
A function that can be called without arguments and returns some
json-serializable information.
name : str, optional
The name of the corresponding entry in host_info.
Defaults to the name of the function.
Returns
-------
The function itself. |
(module
(function_definition
(function_name_install_python) function_name_install_python
(parameters
(identifier_name) identifier_name
(default_parameter
(identifier_version) identifier_version
(None) None
)default_parameter
(default_parameter
(identifier_install_args) identifier_install_args
(None) None
)default_parameter
(default_parameter
(identifier_override_args) identifier_override_args
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_install) identifier_install
(argument_list
(identifier_name) identifier_name
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
(keyword_argument
(identifier_source) identifier_source
(string_'python') string_'python'
)keyword_argument
(keyword_argument
(identifier_install_args) identifier_install_args
(identifier_install_args) identifier_install_args
)keyword_argument
(keyword_argument
(identifier_override_args) identifier_override_args
(identifier_override_args) identifier_override_args
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Instructs Chocolatey to install a package via Python's easy_install.
name
The name of the package to be installed. Only accepts a single argument.
version
Install a specific version of the package. Defaults to latest version
available.
install_args
A list of install arguments you want to pass to the installation process
i.e product key or feature list
override_args
Set to true if you want to override the original install arguments (for
the native installer) in the package and use your own. When this is set
to False install_args will be appended to the end of the default
arguments
CLI Example:
.. code-block:: bash
salt '*' chocolatey.install_python <package name>
salt '*' chocolatey.install_python <package name> version=<package version>
salt '*' chocolatey.install_python <package name> install_args=<args> override_args=True |
(module
(function_definition
(function_name_is_user_profile_valid) function_name_is_user_profile_valid
(parameters
(identifier_user_profile) identifier_user_profile
)parameters
(block
(if_statement
(not_operator
(identifier_user_profile) identifier_user_profile
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_user_profile) identifier_user_profile
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_UserProfile) identifier_UserProfile
(identifier_USER_ID_KEY) identifier_USER_ID_KEY
)attribute
(identifier_user_profile) identifier_user_profile
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_UserProfile) identifier_UserProfile
(identifier_EXPERIMENT_BUCKET_MAP_KEY) identifier_EXPERIMENT_BUCKET_MAP_KEY
)attribute
(identifier_user_profile) identifier_user_profile
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_experiment_bucket_map) identifier_experiment_bucket_map
(call
(attribute
(identifier_user_profile) identifier_user_profile
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_UserProfile) identifier_UserProfile
(identifier_EXPERIMENT_BUCKET_MAP_KEY) identifier_EXPERIMENT_BUCKET_MAP_KEY
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_experiment_bucket_map) identifier_experiment_bucket_map
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(for_statement
(identifier_decision) identifier_decision
(call
(attribute
(identifier_experiment_bucket_map) identifier_experiment_bucket_map
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_decision) identifier_decision
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
(comparison_operator
(attribute
(identifier_UserProfile) identifier_UserProfile
(identifier_VARIATION_ID_KEY) identifier_VARIATION_ID_KEY
)attribute
(identifier_decision) identifier_decision
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Determine if provided user profile is valid or not.
Args:
user_profile: User's profile which needs to be validated.
Returns:
Boolean depending upon whether profile is valid or not. |
(module
(function_definition
(function_name_convert_entrez_to_uniprot) function_name_convert_entrez_to_uniprot
(parameters
(identifier_self) identifier_self
(identifier_entrez) identifier_entrez
)parameters
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(attribute
(string_"http://www.uniprot.org/uniprot/?query=%22GENEID+{0}%22&format=xml") string_"http://www.uniprot.org/uniprot/?query=%22GENEID+{0}%22&format=xml"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_entrez) identifier_entrez
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_server) identifier_server
(keyword_argument
(identifier_headers) identifier_headers
(dictionary
(pair
(string_"Content-Type") string_"Content-Type"
(string_"text/xml") string_"text/xml"
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_r) identifier_r
(identifier_ok) identifier_ok
)attribute
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(attribute
(identifier_xmltodict) identifier_xmltodict
(identifier_parse) identifier_parse
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(subscript
(subscript
(subscript
(identifier_info) identifier_info
(string_'uniprot') string_'uniprot'
)subscript
(string_'entry') string_'entry'
)subscript
(string_'accession') string_'accession'
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(subscript
(subscript
(subscript
(subscript
(identifier_info) identifier_info
(string_'uniprot') string_'uniprot'
)subscript
(string_'entry') string_'entry'
)subscript
(integer_0) integer_0
)subscript
(string_'accession') string_'accession'
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Convert Entrez Id to Uniprot Id |
(module
(function_definition
(function_name_stem_word) function_name_stem_word
(parameters
(identifier_self) identifier_self
(identifier_word) identifier_word
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_is_plural) identifier_is_plural
)attribute
(argument_list
(identifier_word) identifier_word
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stem_plural_word) identifier_stem_plural_word
)attribute
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_stem_singular_word) identifier_stem_singular_word
)attribute
(argument_list
(identifier_word) identifier_word
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Stem a word to its common stem form. |
(module
(function_definition
(function_name_get_all_attribute_value) function_name_get_all_attribute_value
(parameters
(identifier_self) identifier_self
(identifier_tag_name) identifier_tag_name
(identifier_attribute) identifier_attribute
(default_parameter
(identifier_format_value) identifier_format_value
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_attribute_filter) identifier_attribute_filter
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(attribute
(identifier_self) identifier_self
(identifier_find_tags) identifier_find_tags
)attribute
(argument_list
(identifier_tag_name) identifier_tag_name
(dictionary_splat
(identifier_attribute_filter) identifier_attribute_filter
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_tag) identifier_tag
(identifier_tags) identifier_tags
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(boolean_operator
(call
(attribute
(identifier_tag) identifier_tag
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_attribute) identifier_attribute
)argument_list
)call
(call
(attribute
(identifier_tag) identifier_tag
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__ns) identifier__ns
)attribute
(argument_list
(identifier_attribute) identifier_attribute
)argument_list
)call
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(if_statement
(identifier_format_value) identifier_format_value
(block
(expression_statement
(yield
(call
(attribute
(identifier_self) identifier_self
(identifier__format_value) identifier__format_value
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(identifier_value) identifier_value
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Yields all the attribute values in xml files which match with the tag name and the specific attribute
:param str tag_name: specify the tag name
:param str attribute: specify the attribute
:param bool format_value: specify if the value needs to be formatted with packagename |
(module
(function_definition
(function_name__at_least_x_are_true) function_name__at_least_x_are_true
(parameters
(identifier_a) identifier_a
(identifier_b) identifier_b
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_tf) identifier_tf
(identifier_equal) identifier_equal
)attribute
(argument_list
(identifier_a) identifier_a
(identifier_b) identifier_b
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_match) identifier_match
(call
(attribute
(identifier_tf) identifier_tf
(identifier_cast) identifier_cast
)attribute
(argument_list
(identifier_match) identifier_match
(attribute
(identifier_tf) identifier_tf
(identifier_int32) identifier_int32
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_tf) identifier_tf
(identifier_greater_equal) identifier_greater_equal
)attribute
(argument_list
(call
(attribute
(identifier_tf) identifier_tf
(identifier_reduce_sum) identifier_reduce_sum
)attribute
(argument_list
(identifier_match) identifier_match
)argument_list
)call
(identifier_x) identifier_x
)argument_list
)call
)return_statement
)block
)function_definition
)module | At least `x` of `a` and `b` `Tensors` are true. |
(module
(function_definition
(function_name__apply_post_render_hooks) function_name__apply_post_render_hooks
(parameters
(identifier_self) identifier_self
(identifier_data) identifier_data
(identifier_obj) identifier_obj
(identifier_fmt) identifier_fmt
)parameters
(block
(expression_statement
(assignment
(identifier_hooks) identifier_hooks
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_post_render_hooks) identifier_post_render_hooks
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_fmt) identifier_fmt
(list
)list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_hook) identifier_hook
(identifier_hooks) identifier_hooks
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_hook) identifier_hook
(argument_list
(identifier_data) identifier_data
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_param) identifier_param
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(binary_operator
(concatenated_string
(string_"The post_render_hook %r could not ") string_"The post_render_hook %r could not "
(string_"be applied:\n\n %s") string_"be applied:\n\n %s"
)concatenated_string
(tuple
(identifier_hook) identifier_hook
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module | Apply the post-render hooks to the data. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_svg_changed) identifier_svg_changed
(False) False
)assignment
)expression_statement
(for_statement
(identifier_prop) identifier_prop
(identifier_kwargs) identifier_kwargs
(block
(if_statement
(comparison_operator
(identifier_prop) identifier_prop
(string_"drawing_id") string_"drawing_id"
)comparison_operator
(block
(pass_statement
)pass_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_prop) identifier_prop
)argument_list
)call
(subscript
(identifier_kwargs) identifier_kwargs
(identifier_prop) identifier_prop
)subscript
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_prop) identifier_prop
(string_"svg") string_"svg"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_svg_changed) identifier_svg_changed
(True) True
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_setattr) identifier_setattr
(argument_list
(identifier_self) identifier_self
(identifier_prop) identifier_prop
(subscript
(identifier_kwargs) identifier_kwargs
(identifier_prop) identifier_prop
)subscript
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier___json__) identifier___json__
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_svg_changed) identifier_svg_changed
)not_operator
(block
(delete_statement
(subscript
(identifier_data) identifier_data
(string_"svg") string_"svg"
)subscript
)delete_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__project) identifier__project
)attribute
(identifier_controller) identifier_controller
)attribute
(identifier_notification) identifier_notification
)attribute
(identifier_emit) identifier_emit
)attribute
(argument_list
(string_"drawing.updated") string_"drawing.updated"
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__project) identifier__project
)attribute
(identifier_dump) identifier_dump
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update the drawing
:param kwargs: Drawing properties |
(module
(function_definition
(function_name__auto) function_name__auto
(parameters
(identifier_direction) identifier_direction
(identifier_name) identifier_name
(identifier_value) identifier_value
(default_parameter
(identifier_source) identifier_source
(string_'auto') string_'auto'
)default_parameter
(default_parameter
(identifier_convert_to_human) identifier_convert_to_human
(True) True
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_direction) identifier_direction
(list
(string_'to') string_'to'
(string_'from') string_'from'
)list
)comparison_operator
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_props) identifier_props
(call
(identifier_property_data_zpool) identifier_property_data_zpool
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_source) identifier_source
(string_'zfs') string_'zfs'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_props) identifier_props
(call
(identifier_property_data_zfs) identifier_property_data_zfs
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_source) identifier_source
(string_'auto') string_'auto'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_props) identifier_props
(identifier_update) identifier_update
)attribute
(argument_list
(call
(identifier_property_data_zfs) identifier_property_data_zfs
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(assignment
(identifier_value_type) identifier_value_type
(conditional_expression
(subscript
(subscript
(identifier_props) identifier_props
(identifier_name) identifier_name
)subscript
(string_'type') string_'type'
)subscript
(comparison_operator
(identifier_name) identifier_name
(identifier_props) identifier_props
)comparison_operator
(string_'str') string_'str'
)conditional_expression
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_value_type) identifier_value_type
(string_'size') string_'size'
)comparison_operator
(comparison_operator
(identifier_direction) identifier_direction
(string_'to') string_'to'
)comparison_operator
)boolean_operator
(block
(return_statement
(call
(subscript
(call
(identifier_globals) identifier_globals
(argument_list
)argument_list
)call
(call
(attribute
(string_'{}_{}') string_'{}_{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_direction) identifier_direction
(identifier_value_type) identifier_value_type
)argument_list
)call
)subscript
(argument_list
(identifier_value) identifier_value
(identifier_convert_to_human) identifier_convert_to_human
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(subscript
(call
(identifier_globals) identifier_globals
(argument_list
)argument_list
)call
(call
(attribute
(string_'{}_{}') string_'{}_{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_direction) identifier_direction
(identifier_value_type) identifier_value_type
)argument_list
)call
)subscript
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Internal magic for from_auto and to_auto |
(module
(function_definition
(function_name__list_subnets_by_identifier) function_name__list_subnets_by_identifier
(parameters
(identifier_self) identifier_self
(identifier_identifier) identifier_identifier
)parameters
(block
(expression_statement
(assignment
(identifier_identifier) identifier_identifier
(subscript
(call
(attribute
(identifier_identifier) identifier_identifier
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(attribute
(identifier_self) identifier_self
(identifier_list_subnets) identifier_list_subnets
)attribute
(argument_list
(keyword_argument
(identifier_identifier) identifier_identifier
(identifier_identifier) identifier_identifier
)keyword_argument
(keyword_argument
(identifier_mask) identifier_mask
(string_'id') string_'id'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(subscript
(identifier_result) identifier_result
(string_'id') string_'id'
)subscript
(for_in_clause
(identifier_result) identifier_result
(identifier_results) identifier_results
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Returns a list of IDs of the subnet matching the identifier.
:param string identifier: The identifier to look up
:returns: List of matching IDs |
(module
(function_definition
(function_name_gfonts_repo_structure) function_name_gfonts_repo_structure
(parameters
(identifier_fonts) identifier_fonts
)parameters
(block
(import_from_statement
(dotted_name
(identifier_fontbakery) identifier_fontbakery
(identifier_utils) identifier_utils
)dotted_name
(dotted_name
(identifier_get_absolute_path) identifier_get_absolute_path
)dotted_name
)import_from_statement
(expression_statement
(assignment
(identifier_abspath) identifier_abspath
(call
(identifier_get_absolute_path) identifier_get_absolute_path
(argument_list
(subscript
(identifier_fonts) identifier_fonts
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(subscript
(call
(attribute
(identifier_abspath) identifier_abspath
(identifier_split) identifier_split
)attribute
(argument_list
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_sep) identifier_sep
)attribute
)argument_list
)call
(unary_operator
(integer_3) integer_3
)unary_operator
)subscript
(list
(string_"ufl") string_"ufl"
(string_"ofl") string_"ofl"
(string_"apache") string_"apache"
)list
)comparison_operator
)return_statement
)block
)function_definition
)module | The family at the given font path
follows the files and directory structure
typical of a font project hosted on
the Google Fonts repo on GitHub ? |
(module
(function_definition
(function_name___Post) function_name___Post
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_request) identifier_request
(identifier_body) identifier_body
(identifier_headers) identifier_headers
)parameters
(block
(return_statement
(call
(attribute
(identifier_synchronized_request) identifier_synchronized_request
(identifier_SynchronizedRequest) identifier_SynchronizedRequest
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_request) identifier_request
(attribute
(identifier_self) identifier_self
(identifier__global_endpoint_manager) identifier__global_endpoint_manager
)attribute
(attribute
(identifier_self) identifier_self
(identifier_connection_policy) identifier_connection_policy
)attribute
(attribute
(identifier_self) identifier_self
(identifier__requests_session) identifier__requests_session
)attribute
(string_'POST') string_'POST'
(identifier_path) identifier_path
(identifier_body) identifier_body
(keyword_argument
(identifier_query_params) identifier_query_params
(None) None
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Azure Cosmos 'POST' http request.
:params str url:
:params str path:
:params (str, unicode, dict) body:
:params dict headers:
:return:
Tuple of (result, headers).
:rtype:
tuple of (dict, dict) |
(module
(function_definition
(function_name_findspan) function_name_findspan
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_words) identifier_words
)list_splat_pattern
)parameters
(block
(for_statement
(identifier_span) identifier_span
(call
(attribute
(identifier_self) identifier_self
(identifier_select) identifier_select
)attribute
(argument_list
(identifier_AbstractSpanAnnotation) identifier_AbstractSpanAnnotation
(None) None
(True) True
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(identifier_tuple) identifier_tuple
(argument_list
(call
(attribute
(identifier_span) identifier_span
(identifier_wrefs) identifier_wrefs
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_words) identifier_words
)comparison_operator
(block
(return_statement
(identifier_span) identifier_span
)return_statement
)block
)if_statement
)block
)for_statement
(raise_statement
(identifier_NoSuchAnnotation) identifier_NoSuchAnnotation
)raise_statement
)block
)function_definition
)module | Returns the span element which spans over the specified words or morphemes.
See also:
:meth:`Word.findspans` |
(module
(function_definition
(function_name_new_result) function_name_new_result
(parameters
(identifier_self) identifier_self
(identifier_job) identifier_job
(default_parameter
(identifier_update_model) identifier_update_model
(True) True
)default_parameter
)parameters
(block
(if_statement
(not_operator
(comparison_operator
(attribute
(identifier_job) identifier_job
(identifier_exception) identifier_exception
)attribute
(None) None
)comparison_operator
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_logger) identifier_logger
)attribute
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_"job {} failed with exception\n{}") string_"job {} failed with exception\n{}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_job) identifier_job
(identifier_id) identifier_id
)attribute
(attribute
(identifier_job) identifier_job
(identifier_exception) identifier_exception
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | registers finished runs
Every time a run has finished, this function should be called
to register it with the result logger. If overwritten, make
sure to call this method from the base class to ensure proper
logging.
Parameters
----------
job: instance of hpbandster.distributed.dispatcher.Job
contains all necessary information about the job
update_model: boolean
determines whether a model inside the config_generator should be updated |
(module
(function_definition
(function_name___load_pst) function_name___load_pst
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
(identifier_Pst) identifier_Pst
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___pst) identifier___pst
)attribute
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_pst) identifier_pst
)attribute
)return_statement
)block
(else_clause
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(string_"loading pst: ") string_"loading pst: "
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___pst) identifier___pst
)attribute
(call
(identifier_Pst) identifier_Pst
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_log) identifier_log
)attribute
(argument_list
(binary_operator
(string_"loading pst: ") string_"loading pst: "
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_pst) identifier_pst
)attribute
)return_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(string_"linear_analysis.__load_pst(): error loading") string_"linear_analysis.__load_pst(): error loading"
(string_" pest control from argument: ") string_" pest control from argument: "
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_pst_arg) identifier_pst_arg
)attribute
)argument_list
)call
)binary_operator
(string_'\n->') string_'\n->'
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | private method set the pst attribute |
(module
(function_definition
(function_name_request_output) function_name_request_output
(parameters
(identifier_self) identifier_self
(identifier_table) identifier_table
(identifier_outtype) identifier_outtype
)parameters
(block
(expression_statement
(assignment
(identifier_job_types) identifier_job_types
(list
(string_"CSV") string_"CSV"
(string_"DataSet") string_"DataSet"
(string_"FITS") string_"FITS"
(string_"VOTable") string_"VOTable"
)list
)assignment
)expression_statement
(assert_statement
(comparison_operator
(identifier_outtype) identifier_outtype
(identifier_job_types) identifier_job_types
)comparison_operator
)assert_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"tableName") string_"tableName"
(identifier_table) identifier_table
)pair
(pair
(string_"type") string_"type"
(identifier_outtype) identifier_outtype
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_self) identifier_self
(identifier__send_request) identifier__send_request
)attribute
(argument_list
(string_"SubmitExtractJob") string_"SubmitExtractJob"
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_job_id) identifier_job_id
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_single) identifier__parse_single
)attribute
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
(string_"long") string_"long"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_job_id) identifier_job_id
)return_statement
)block
)function_definition
)module | Request the output for a given table.
## Arguments
* `table` (str): The name of the table to export.
* `outtype` (str): The type of output. Must be one of:
CSV - Comma Seperated Values
DataSet - XML DataSet
FITS - Flexible Image Transfer System (FITS Binary)
VOTable - XML Virtual Observatory VOTABLE |
(module
(function_definition
(function_name_network_size) function_name_network_size
(parameters
(identifier_value) identifier_value
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
(default_parameter
(identifier_version) identifier_version
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ipaddr_filter_out) identifier_ipaddr_filter_out
(call
(identifier__filter_ipaddr) identifier__filter_ipaddr
(argument_list
(identifier_value) identifier_value
(keyword_argument
(identifier_options) identifier_options
(identifier_options) identifier_options
)keyword_argument
(keyword_argument
(identifier_version) identifier_version
(identifier_version) identifier_version
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ipaddr_filter_out) identifier_ipaddr_filter_out
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_value) identifier_value
(tuple
(identifier_list) identifier_list
(identifier_tuple) identifier_tuple
(attribute
(identifier_types) identifier_types
(identifier_GeneratorType) identifier_GeneratorType
)attribute
)tuple
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier__network_size) identifier__network_size
(argument_list
(subscript
(identifier_ipaddr_filter_out) identifier_ipaddr_filter_out
(integer_0) integer_0
)subscript
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(list_comprehension
(call
(identifier__network_size) identifier__network_size
(argument_list
(identifier_ip_a) identifier_ip_a
)argument_list
)call
(for_in_clause
(identifier_ip_a) identifier_ip_a
(identifier_ipaddr_filter_out) identifier_ipaddr_filter_out
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Get the size of a network. |
(module
(function_definition
(function_name_check_aggregate) function_name_check_aggregate
(parameters
(identifier_self) identifier_self
(identifier_variable) identifier_variable
(default_parameter
(identifier_components) identifier_components
(None) None
)default_parameter
(default_parameter
(identifier_exclude_on_fail) identifier_exclude_on_fail
(False) False
)default_parameter
(default_parameter
(identifier_multiplier) identifier_multiplier
(integer_1) integer_1
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_df_components) identifier_df_components
(call
(attribute
(identifier_self) identifier_self
(identifier_aggregate) identifier_aggregate
)attribute
(argument_list
(identifier_variable) identifier_variable
(identifier_components) identifier_components
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_df_components) identifier_df_components
(None) None
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rows) identifier_rows
(call
(attribute
(identifier_self) identifier_self
(identifier__apply_filters) identifier__apply_filters
)attribute
(argument_list
(keyword_argument
(identifier_variable) identifier_variable
(identifier_variable) identifier_variable
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_df_variable) identifier_df_variable
(identifier_df_components) identifier_df_components
)pattern_list
(parenthesized_expression
(call
(attribute
(call
(identifier__aggregate) identifier__aggregate
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_rows) identifier_rows
)subscript
(string_'variable') string_'variable'
)argument_list
)call
(identifier_align) identifier_align
)attribute
(argument_list
(identifier_df_components) identifier_df_components
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_diff) identifier_diff
(subscript
(identifier_df_variable) identifier_df_variable
(unary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_isclose) identifier_isclose
)attribute
(argument_list
(identifier_df_variable) identifier_df_variable
(binary_operator
(identifier_multiplier) identifier_multiplier
(identifier_df_components) identifier_df_components
)binary_operator
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)unary_operator
)subscript
)assignment
)expression_statement
(if_statement
(call
(identifier_len) identifier_len
(argument_list
(identifier_diff) identifier_diff
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(string_'`{}` - {} of {} rows are not aggregates of components') string_'`{}` - {} of {} rows are not aggregates of components'
)assignment
)expression_statement
(expression_statement
(call
(attribute
(call
(identifier_logger) identifier_logger
(argument_list
)argument_list
)call
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(identifier_msg) identifier_msg
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_variable) identifier_variable
(call
(identifier_len) identifier_len
(argument_list
(identifier_diff) identifier_diff
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_df_variable) identifier_df_variable
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
(if_statement
(identifier_exclude_on_fail) identifier_exclude_on_fail
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__exclude_on_fail) identifier__exclude_on_fail
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_diff) identifier_diff
(identifier_index) identifier_index
)attribute
(identifier_droplevel) identifier_droplevel
)attribute
(argument_list
(list
(integer_2) integer_2
(integer_3) integer_3
(integer_4) integer_4
)list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(call
(identifier_IamDataFrame) identifier_IamDataFrame
(argument_list
(identifier_diff) identifier_diff
(keyword_argument
(identifier_variable) identifier_variable
(identifier_variable) identifier_variable
)keyword_argument
)argument_list
)call
(identifier_timeseries) identifier_timeseries
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Check whether a timeseries matches the aggregation of its components
Parameters
----------
variable: str
variable to be checked for matching aggregation of sub-categories
components: list of str, default None
list of variables, defaults to all sub-categories of `variable`
exclude_on_fail: boolean, default False
flag scenarios failing validation as `exclude: True`
multiplier: number, default 1
factor when comparing variable and sum of components
kwargs: passed to `np.isclose()` |
(module
(function_definition
(function_name_alter_and_get) function_name_alter_and_get
(parameters
(identifier_self) identifier_self
(identifier_function) identifier_function
)parameters
(block
(expression_statement
(call
(identifier_check_not_none) identifier_check_not_none
(argument_list
(identifier_function) identifier_function
(string_"function can't be None") string_"function can't be None"
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__encode_invoke) identifier__encode_invoke
)attribute
(argument_list
(identifier_atomic_reference_alter_and_get_codec) identifier_atomic_reference_alter_and_get_codec
(keyword_argument
(identifier_function) identifier_function
(call
(attribute
(identifier_self) identifier_self
(identifier__to_data) identifier__to_data
)attribute
(argument_list
(identifier_function) identifier_function
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Alters the currently stored reference by applying a function on it and gets the result.
:param function: (Function), A stateful serializable object which represents the Function defined on
server side.
This object must have a serializable Function counter part registered on server side with the actual
``org.hazelcast.core.IFunction`` implementation.
:return: (object), the new value, the result of the applied function. |
(module
(function_definition
(function_name_v4_int_to_packed) function_name_v4_int_to_packed
(parameters
(identifier_address) identifier_address
)parameters
(block
(if_statement
(comparison_operator
(identifier_address) identifier_address
(attribute
(identifier__BaseV4) identifier__BaseV4
(identifier__ALL_ONES) identifier__ALL_ONES
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'Address too large for IPv4') string_'Address too large for IPv4'
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_Bytes) identifier_Bytes
(argument_list
(call
(attribute
(identifier_struct) identifier_struct
(identifier_pack) identifier_pack
)attribute
(argument_list
(string_'!I') string_'!I'
(identifier_address) identifier_address
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | The binary representation of this address.
Args:
address: An integer representation of an IPv4 IP address.
Returns:
The binary representation of this address.
Raises:
ValueError: If the integer is too large to be an IPv4 IP
address. |
(module
(function_definition
(function_name_submit) function_name_submit
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_workflow_uuid) identifier_workflow_uuid
(string_'') string_''
)default_parameter
(default_parameter
(identifier_experiment) identifier_experiment
(string_'') string_''
)default_parameter
(default_parameter
(identifier_image) identifier_image
(string_'') string_''
)default_parameter
(default_parameter
(identifier_cmd) identifier_cmd
(string_'') string_''
)default_parameter
(default_parameter
(identifier_prettified_cmd) identifier_prettified_cmd
(string_'') string_''
)default_parameter
(default_parameter
(identifier_workflow_workspace) identifier_workflow_workspace
(string_'') string_''
)default_parameter
(default_parameter
(identifier_job_name) identifier_job_name
(string_'') string_''
)default_parameter
(default_parameter
(identifier_cvmfs_mounts) identifier_cvmfs_mounts
(string_'false') string_'false'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_job_spec) identifier_job_spec
(dictionary
(pair
(string_'experiment') string_'experiment'
(identifier_experiment) identifier_experiment
)pair
(pair
(string_'docker_img') string_'docker_img'
(identifier_image) identifier_image
)pair
(pair
(string_'cmd') string_'cmd'
(identifier_cmd) identifier_cmd
)pair
(pair
(string_'prettified_cmd') string_'prettified_cmd'
(identifier_prettified_cmd) identifier_prettified_cmd
)pair
(pair
(string_'env_vars') string_'env_vars'
(dictionary
)dictionary
)pair
(pair
(string_'workflow_workspace') string_'workflow_workspace'
(identifier_workflow_workspace) identifier_workflow_workspace
)pair
(pair
(string_'job_name') string_'job_name'
(identifier_job_name) identifier_job_name
)pair
(pair
(string_'cvmfs_mounts') string_'cvmfs_mounts'
(identifier_cvmfs_mounts) identifier_cvmfs_mounts
)pair
(pair
(string_'workflow_uuid') string_'workflow_uuid'
(identifier_workflow_uuid) identifier_workflow_uuid
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_response) identifier_response
(identifier_http_response) identifier_http_response
)pattern_list
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_jobs) identifier_jobs
)attribute
(identifier_create_job) identifier_create_job
)attribute
(argument_list
(keyword_argument
(identifier_job) identifier_job
(identifier_job_spec) identifier_job_spec
)keyword_argument
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_result) identifier_result
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_http_response) identifier_http_response
(identifier_status_code) identifier_status_code
)attribute
(integer_400) integer_400
)comparison_operator
(block
(raise_statement
(call
(identifier_HTTPBadRequest) identifier_HTTPBadRequest
(argument_list
(call
(attribute
(string_'Bad request to create a job. Error: {}') string_'Bad request to create a job. Error: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_http_response) identifier_http_response
(identifier_data) identifier_data
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_http_response) identifier_http_response
(identifier_status_code) identifier_status_code
)attribute
(integer_500) integer_500
)comparison_operator
(block
(raise_statement
(call
(identifier_HTTPInternalServerError) identifier_HTTPInternalServerError
(argument_list
(call
(attribute
(string_'Internal Server Error. Error: {}') string_'Internal Server Error. Error: {}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_http_response) identifier_http_response
(identifier_data) identifier_data
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Submit a job to RJC API.
:param name: Name of the job.
:param experiment: Experiment the job belongs to.
:param image: Identifier of the Docker image which will run the job.
:param cmd: String which represents the command to execute. It can be
modified by the workflow engine i.e. prepending ``cd /some/dir/``.
:prettified_cmd: Original command submitted by the user.
:workflow_workspace: Path to the workspace of the workflow.
:cvmfs_mounts: String with CVMFS volumes to mount in job pods.
:return: Returns a dict with the ``job_id``. |
(module
(function_definition
(function_name_drawdown_recov) function_name_drawdown_recov
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_return_int) identifier_return_int
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_td) identifier_td
(binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_recov_date) identifier_recov_date
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_self) identifier_self
(identifier_drawdown_end) identifier_drawdown_end
)attribute
(argument_list
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(identifier_return_int) identifier_return_int
(block
(return_statement
(attribute
(identifier_td) identifier_td
(identifier_days) identifier_days
)attribute
)return_statement
)block
)if_statement
(return_statement
(identifier_td) identifier_td
)return_statement
)block
)function_definition
)module | Length of drawdown recovery in days.
This is the duration from trough to recovery date.
Parameters
----------
return_int : bool, default False
If True, return the number of days as an int.
If False, return a Pandas Timedelta object.
Returns
-------
int or pandas._libs.tslib.Timedelta |
(module
(function_definition
(function_name_start_response) function_name_start_response
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_status) identifier_status
(integer_200) integer_200
)default_parameter
(default_parameter
(identifier_headers) identifier_headers
(list
)list
)default_parameter
(default_parameter
(identifier_clearheaders) identifier_clearheaders
(True) True
)default_parameter
(default_parameter
(identifier_disabletransferencoding) identifier_disabletransferencoding
(False) False
)default_parameter
)parameters
(block
(expression_statement
(string_"Start to send response") string_"Start to send response"
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__sendHeaders) identifier__sendHeaders
)attribute
(block
(raise_statement
(call
(identifier_HttpProtocolException) identifier_HttpProtocolException
(argument_list
(string_'Cannot modify response, headers already sent') string_'Cannot modify response, headers already sent'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(identifier_status) identifier_status
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_disabledeflate) identifier_disabledeflate
)attribute
(identifier_disabletransferencoding) identifier_disabletransferencoding
)assignment
)expression_statement
(if_statement
(identifier_clearheaders) identifier_clearheaders
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sent_headers) identifier_sent_headers
)attribute
(subscript
(identifier_headers) identifier_headers
(slice
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sent_headers) identifier_sent_headers
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_headers) identifier_headers
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Start to send response |
(module
(function_definition
(function_name__to_bstr) function_name__to_bstr
(parameters
(identifier_l) identifier_l
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_l) identifier_l
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_l) identifier_l
(call
(attribute
(identifier_l) identifier_l
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
(string_'backslashreplace') string_'backslashreplace'
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_l) identifier_l
(identifier_bytes) identifier_bytes
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_l) identifier_l
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(identifier_l) identifier_l
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'ascii') string_'ascii'
(string_'backslashreplace') string_'backslashreplace'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_l) identifier_l
)return_statement
)block
)function_definition
)module | Convert to byte string. |
(module
(function_definition
(function_name_setCurrentIndex) function_name_setCurrentIndex
(parameters
(identifier_self) identifier_self
(identifier_y) identifier_y
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dataTable) identifier_dataTable
)attribute
(identifier_selectionModel) identifier_selectionModel
)attribute
(argument_list
)argument_list
)call
(identifier_setCurrentIndex) identifier_setCurrentIndex
)attribute
(argument_list
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_dataTable) identifier_dataTable
)attribute
(identifier_model) identifier_model
)attribute
(argument_list
)argument_list
)call
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_y) identifier_y
(identifier_x) identifier_x
)argument_list
)call
(attribute
(identifier_QItemSelectionModel) identifier_QItemSelectionModel
(identifier_ClearAndSelect) identifier_ClearAndSelect
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set current selection. |
(module
(function_definition
(function_name_send_to_tsdb) function_name_send_to_tsdb
(parameters
(identifier_self) identifier_self
(identifier_realm) identifier_realm
(identifier_host) identifier_host
(identifier_service) identifier_service
(identifier_metrics) identifier_metrics
(identifier_ts) identifier_ts
(identifier_path) identifier_path
)parameters
(block
(if_statement
(comparison_operator
(identifier_ts) identifier_ts
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ts) identifier_ts
(call
(identifier_int) identifier_int
(argument_list
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_"measurement") string_"measurement"
(identifier_service) identifier_service
)pair
(pair
(string_"tags") string_"tags"
(dictionary
(pair
(string_"host") string_"host"
(identifier_host) identifier_host
)pair
(pair
(string_"service") string_"service"
(identifier_service) identifier_service
)pair
(pair
(string_"realm") string_"realm"
(conditional_expression
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_realm) identifier_realm
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_realm) identifier_realm
(identifier_list) identifier_list
)argument_list
)call
(identifier_realm) identifier_realm
)conditional_expression
)pair
(pair
(string_"path") string_"path"
(identifier_path) identifier_path
)pair
)dictionary
)pair
(pair
(string_"time") string_"time"
(identifier_ts) identifier_ts
)pair
(pair
(string_"fields") string_"fields"
(dictionary
)dictionary
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_path) identifier_path
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_'tags') string_'tags'
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_"path") string_"path"
(identifier_path) identifier_path
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_metric) identifier_metric
(identifier_value) identifier_value
(identifier__) identifier__
)pattern_list
(identifier_metrics) identifier_metrics
(block
(expression_statement
(call
(attribute
(subscript
(identifier_data) identifier_data
(string_'fields') string_'fields'
)subscript
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(identifier_metric) identifier_metric
(identifier_value) identifier_value
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Data: %s") string_"Data: %s"
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_my_metrics) identifier_my_metrics
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_metrics_count) identifier_metrics_count
)attribute
(attribute
(identifier_self) identifier_self
(identifier_metrics_flush_count) identifier_metrics_flush_count
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Send performance data to time series database
Indeed this function stores metrics in the internal cache and checks if the flushing
is necessary and then flushes.
:param realm: concerned realm
:type: string
:param host: concerned host
:type: string
:param service: concerned service
:type: string
:param metrics: list of metrics couple (name, value)
:type: list
:param ts: timestamp
:type: int
:param path: full path (eg. Graphite) for the received metrics
:type: string |
(module
(function_definition
(function_name_translate) function_name_translate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_from_lang) identifier_from_lang
(None) None
)default_parameter
(default_parameter
(identifier_to) identifier_to
(string_"de") string_"de"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_from_lang) identifier_from_lang
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_from_lang) identifier_from_lang
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_translator) identifier_translator
)attribute
(identifier_detect) identifier_detect
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_translator) identifier_translator
)attribute
(identifier_translate) identifier_translate
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
(keyword_argument
(identifier_from_lang) identifier_from_lang
(identifier_from_lang) identifier_from_lang
)keyword_argument
(keyword_argument
(identifier_to_lang) identifier_to_lang
(identifier_to) identifier_to
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Translate the word to another language using Google's Translate API.
.. versionadded:: 0.5.0 (``textblob``) |
(module
(function_definition
(function_name_clear) function_name_clear
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'DELETE FROM results') string_'DELETE FROM results'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'DELETE FROM work_items') string_'DELETE FROM work_items'
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Clear all work items from the session.
This removes any associated results as well. |
(module
(function_definition
(function_name_as_pyplot_figure) function_name_as_pyplot_figure
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_label) identifier_label
(integer_1) integer_1
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_statement
(aliased_import
(dotted_name
(identifier_matplotlib) identifier_matplotlib
(identifier_pyplot) identifier_pyplot
)dotted_name
(identifier_plt) identifier_plt
)aliased_import
)import_statement
(expression_statement
(assignment
(identifier_exp) identifier_exp
(call
(attribute
(identifier_self) identifier_self
(identifier_as_list) identifier_as_list
)attribute
(argument_list
(keyword_argument
(identifier_label) identifier_label
(identifier_label) identifier_label
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fig) identifier_fig
(call
(attribute
(identifier_plt) identifier_plt
(identifier_figure) identifier_figure
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vals) identifier_vals
(list_comprehension
(subscript
(identifier_x) identifier_x
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_x) identifier_x
(identifier_exp) identifier_exp
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_names) identifier_names
(list_comprehension
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_x) identifier_x
(identifier_exp) identifier_exp
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_vals) identifier_vals
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_names) identifier_names
(identifier_reverse) identifier_reverse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_colors) identifier_colors
(list_comprehension
(conditional_expression
(string_'green') string_'green'
(comparison_operator
(identifier_x) identifier_x
(integer_0) integer_0
)comparison_operator
(string_'red') string_'red'
)conditional_expression
(for_in_clause
(identifier_x) identifier_x
(identifier_vals) identifier_vals
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pos) identifier_pos
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_arange) identifier_arange
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_exp) identifier_exp
)argument_list
)call
)argument_list
)call
(float_.5) float_.5
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_plt) identifier_plt
(identifier_barh) identifier_barh
)attribute
(argument_list
(identifier_pos) identifier_pos
(identifier_vals) identifier_vals
(keyword_argument
(identifier_align) identifier_align
(string_'center') string_'center'
)keyword_argument
(keyword_argument
(identifier_color) identifier_color
(identifier_colors) identifier_colors
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_plt) identifier_plt
(identifier_yticks) identifier_yticks
)attribute
(argument_list
(identifier_pos) identifier_pos
(identifier_names) identifier_names
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_mode) identifier_mode
)attribute
(string_"classification") string_"classification"
)comparison_operator
(block
(expression_statement
(assignment
(identifier_title) identifier_title
(binary_operator
(string_'Local explanation for class %s') string_'Local explanation for class %s'
(subscript
(attribute
(identifier_self) identifier_self
(identifier_class_names) identifier_class_names
)attribute
(identifier_label) identifier_label
)subscript
)binary_operator
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_title) identifier_title
(string_'Local explanation') string_'Local explanation'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_plt) identifier_plt
(identifier_title) identifier_title
)attribute
(argument_list
(identifier_title) identifier_title
)argument_list
)call
)expression_statement
(return_statement
(identifier_fig) identifier_fig
)return_statement
)block
)function_definition
)module | Returns the explanation as a pyplot figure.
Will throw an error if you don't have matplotlib installed
Args:
label: desired label. If you ask for a label for which an
explanation wasn't computed, will throw an exception.
Will be ignored for regression explanations.
kwargs: keyword arguments, passed to domain_mapper
Returns:
pyplot figure (barchart). |
(module
(function_definition
(function_name_on_init) function_name_on_init
(parameters
(identifier_app) identifier_app
)parameters
(block
(expression_statement
(assignment
(identifier_docs_path) identifier_docs_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier___file__) identifier___file__
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_root_path) identifier_root_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_docs_path) identifier_docs_path
(string_'..') string_'..'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_apidoc_path) identifier_apidoc_path
(string_'sphinx-apidoc') string_'sphinx-apidoc'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_swg2rst_path) identifier_swg2rst_path
(string_'swg2rst') string_'swg2rst'
)assignment
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_sys) identifier_sys
(string_'real_prefix') string_'real_prefix'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_bin_path) identifier_bin_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_prefix) identifier_prefix
)attribute
(string_'bin') string_'bin'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_apidoc_path) identifier_apidoc_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_bin_path) identifier_bin_path
(identifier_apidoc_path) identifier_apidoc_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_swg2rst_path) identifier_swg2rst_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_bin_path) identifier_bin_path
(identifier_swg2rst_path) identifier_swg2rst_path
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(identifier_check_call) identifier_check_call
(argument_list
(list
(identifier_apidoc_path) identifier_apidoc_path
(string_'-o') string_'-o'
(identifier_docs_path) identifier_docs_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root_path) identifier_root_path
(string_'user_tasks') string_'user_tasks'
)argument_list
)call
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root_path) identifier_root_path
(string_'user_tasks/migrations') string_'user_tasks/migrations'
)argument_list
)call
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_json_path) identifier_json_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_docs_path) identifier_docs_path
(string_'swagger.json') string_'swagger.json'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rst_path) identifier_rst_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_docs_path) identifier_docs_path
(string_'rest_api.rst') string_'rest_api.rst'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_check_call) identifier_check_call
(argument_list
(list
(identifier_swg2rst_path) identifier_swg2rst_path
(identifier_json_path) identifier_json_path
(string_'-f') string_'-f'
(string_'rst') string_'rst'
(string_'-o') string_'-o'
(identifier_rst_path) identifier_rst_path
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run sphinx-apidoc and swg2rst after Sphinx initialization.
Read the Docs won't run tox or custom shell commands, so we need this to
avoid checking in the generated reStructuredText files. |
(module
(function_definition
(function_name_toProtocolElement) function_name_toProtocolElement
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_gaFeatureSet) identifier_gaFeatureSet
(call
(attribute
(identifier_protocol) identifier_protocol
(identifier_FeatureSet) identifier_FeatureSet
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_id) identifier_id
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getId) identifier_getId
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_dataset_id) identifier_dataset_id
)attribute
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_getParentContainer) identifier_getParentContainer
)attribute
(argument_list
)argument_list
)call
(identifier_getId) identifier_getId
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_reference_set_id) identifier_reference_set_id
)attribute
(call
(attribute
(identifier_pb) identifier_pb
(identifier_string) identifier_string
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__referenceSet) identifier__referenceSet
)attribute
(identifier_getId) identifier_getId
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_source_uri) identifier_source_uri
)attribute
(attribute
(identifier_self) identifier_self
(identifier__sourceUri) identifier__sourceUri
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attributes) identifier_attributes
(call
(attribute
(identifier_self) identifier_self
(identifier_getAttributes) identifier_getAttributes
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(identifier_attributes) identifier_attributes
(block
(expression_statement
(call
(attribute
(attribute
(subscript
(attribute
(attribute
(identifier_gaFeatureSet) identifier_gaFeatureSet
(identifier_attributes) identifier_attributes
)attribute
(identifier_attr) identifier_attr
)attribute
(identifier_key) identifier_key
)subscript
(line_continuation_\) line_continuation_\
(identifier_values) identifier_values
)attribute
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_protocol) identifier_protocol
(identifier_encodeValue) identifier_encodeValue
)attribute
(argument_list
(subscript
(identifier_attributes) identifier_attributes
(identifier_key) identifier_key
)subscript
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_gaFeatureSet) identifier_gaFeatureSet
)return_statement
)block
)function_definition
)module | Returns the representation of this FeatureSet as the corresponding
ProtocolElement. |
(module
(function_definition
(function_name_hide_zeroes) function_name_hide_zeroes
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_v) identifier_v
(attribute
(identifier_self) identifier_self
(identifier_subset_labels) identifier_subset_labels
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(comparison_operator
(call
(attribute
(identifier_v) identifier_v
(identifier_get_text) identifier_get_text
)attribute
(argument_list
)argument_list
)call
(string_'0') string_'0'
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_v) identifier_v
(identifier_set_visible) identifier_set_visible
)attribute
(argument_list
(False) False
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Sometimes it makes sense to hide the labels for subsets whose size is zero.
This utility method does this. |
(module
(function_definition
(function_name_iteritems) function_name_iteritems
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(tuple_pattern
(identifier_key) identifier_key
(identifier_val) identifier_val
)tuple_pattern
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___dict__) identifier___dict__
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier__printable_exclude) identifier__printable_exclude
)attribute
)comparison_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(yield
(tuple
(identifier_key) identifier_key
(identifier_val) identifier_val
)tuple
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Wow this class is messed up. I had to overwrite items when
moving to python3, just because I haden't called it yet |
(module
(function_definition
(function_name_print_examples) function_name_print_examples
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_full) identifier_full
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_i) identifier_i
(integer_1) integer_1
)assignment
)expression_statement
(for_statement
(identifier_key) identifier_key
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_DEMOS) identifier_DEMOS
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_example) identifier_example
(subscript
(attribute
(identifier_self) identifier_self
(identifier_DEMOS) identifier_DEMOS
)attribute
(identifier_key) identifier_key
)subscript
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_full) identifier_full
(subscript
(identifier_example) identifier_example
(string_"show") string_"show"
)subscript
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_u"Example %d (%s)") string_u"Example %d (%s)"
(tuple
(identifier_i) identifier_i
(subscript
(identifier_example) identifier_example
(string_u"description") string_u"description"
)subscript
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_u" $ %s %s") string_u" $ %s %s"
(tuple
(attribute
(identifier_self) identifier_self
(identifier_invoke) identifier_invoke
)attribute
(identifier_key) identifier_key
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_msg) identifier_msg
(identifier_append) identifier_append
)attribute
(argument_list
(string_u"") string_u""
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_i) identifier_i
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_print_generic) identifier_print_generic
)attribute
(argument_list
(binary_operator
(binary_operator
(string_u"\n") string_u"\n"
(call
(attribute
(string_u"\n") string_u"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)binary_operator
(string_u"\n") string_u"\n"
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_HELP_EXIT_CODE) identifier_HELP_EXIT_CODE
)attribute
)return_statement
)block
)function_definition
)module | Print the examples and exit.
:param bool full: if ``True``, print all examples; otherwise,
print only selected ones |
(module
(function_definition
(function_name_on_btn_metadata) function_name_on_btn_metadata
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_check_for_meas_file) identifier_check_for_meas_file
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_check_for_uncombined_files) identifier_check_for_uncombined_files
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_model_num) identifier_data_model_num
)attribute
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_wait) identifier_wait
(call
(attribute
(identifier_wx) identifier_wx
(identifier_BusyInfo) identifier_BusyInfo
)attribute
(argument_list
(string_'Compiling required data, please wait...') string_'Compiling required data, please wait...'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_wx) identifier_wx
(identifier_SafeYield) identifier_SafeYield
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ErMagic_frame) identifier_ErMagic_frame
)attribute
(call
(attribute
(identifier_ErMagicBuilder) identifier_ErMagicBuilder
(identifier_MagIC_model_builder) identifier_MagIC_model_builder
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
(identifier_self) identifier_self
(attribute
(identifier_self) identifier_self
(identifier_er_magic) identifier_er_magic
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_data_model_num) identifier_data_model_num
)attribute
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(identifier_wait) identifier_wait
(call
(attribute
(identifier_wx) identifier_wx
(identifier_BusyInfo) identifier_BusyInfo
)attribute
(argument_list
(string_'Compiling required data, please wait...') string_'Compiling required data, please wait...'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_wx) identifier_wx
(identifier_SafeYield) identifier_SafeYield
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_ErMagic_frame) identifier_ErMagic_frame
)attribute
(call
(attribute
(identifier_ErMagicBuilder) identifier_ErMagicBuilder
(identifier_MagIC_model_builder3) identifier_MagIC_model_builder3
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_WD) identifier_WD
)attribute
(identifier_self) identifier_self
(attribute
(identifier_self) identifier_self
(identifier_contribution) identifier_contribution
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ErMagic_frame) identifier_ErMagic_frame
)attribute
(identifier_Show) identifier_Show
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ErMagic_frame) identifier_ErMagic_frame
)attribute
(identifier_Center) identifier_Center
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(call
(attribute
(identifier_wx) identifier_wx
(identifier_DisplaySize) identifier_DisplaySize
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_size) identifier_size
(tuple
(binary_operator
(subscript
(identifier_size) identifier_size
(integer_0) integer_0
)subscript
(binary_operator
(float_0.3) float_0.3
(subscript
(identifier_size) identifier_size
(integer_0) integer_0
)subscript
)binary_operator
)binary_operator
(binary_operator
(subscript
(identifier_size) identifier_size
(integer_1) integer_1
)subscript
(binary_operator
(float_0.3) float_0.3
(subscript
(identifier_size) identifier_size
(integer_1) integer_1
)subscript
)binary_operator
)binary_operator
)tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ErMagic_frame) identifier_ErMagic_frame
)attribute
(identifier_Raise) identifier_Raise
)attribute
(argument_list
)argument_list
)call
)expression_statement
(delete_statement
(identifier_wait) identifier_wait
)delete_statement
)block
)function_definition
)module | Initiate the series of windows to add metadata
to the contribution. |
(module
(function_definition
(function_name__execute_select_commands) function_name__execute_select_commands
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_commands) identifier_commands
)parameters
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_tbl) identifier_tbl
(identifier_command) identifier_command
)pattern_list
(call
(identifier_tqdm) identifier_tqdm
(argument_list
(identifier_commands) identifier_commands
(keyword_argument
(identifier_total) identifier_total
(call
(identifier_len) identifier_len
(argument_list
(identifier_commands) identifier_commands
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_desc) identifier_desc
(call
(attribute
(string_'Executing {0} select queries') string_'Executing {0} select queries'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_source) identifier_source
)argument_list
)call
)keyword_argument
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_tbl) identifier_tbl
(identifier_rows) identifier_rows
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_rows) identifier_rows
(identifier_tbl) identifier_tbl
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(subscript
(identifier_rows) identifier_rows
(identifier_tbl) identifier_tbl
)subscript
(identifier_extend) identifier_extend
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_fetch) identifier_fetch
)attribute
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_commit) identifier_commit
(True) True
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__commit) identifier__commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_rows) identifier_rows
)return_statement
)block
)function_definition
)module | Execute select queries for all of the tables from a source database. |
(module
(function_definition
(function_name_swear_word) function_name_swear_word
(parameters
(identifier_self) identifier_self
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_bad_words) identifier_bad_words
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(string_'words') string_'words'
)subscript
(identifier_get) identifier_get
)attribute
(argument_list
(string_'bad') string_'bad'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_choice) identifier_choice
)attribute
(argument_list
(identifier_bad_words) identifier_bad_words
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a random swear word.
:return: Swear word.
:Example:
Damn. |
(module
(function_definition
(function_name_surface_projection_from_fault_data) function_name_surface_projection_from_fault_data
(parameters
(identifier_cls) identifier_cls
(identifier_edges) identifier_edges
)parameters
(block
(expression_statement
(assignment
(identifier_lons) identifier_lons
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lats) identifier_lats
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_edge) identifier_edge
(identifier_edges) identifier_edges
(block
(for_statement
(identifier_point) identifier_point
(identifier_edge) identifier_edge
(block
(expression_statement
(call
(attribute
(identifier_lons) identifier_lons
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_point) identifier_point
(identifier_longitude) identifier_longitude
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_lats) identifier_lats
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(identifier_point) identifier_point
(identifier_latitude) identifier_latitude
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_lons) identifier_lons
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_lons) identifier_lons
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_float) identifier_float
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lats) identifier_lats
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_lats) identifier_lats
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_float) identifier_float
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(identifier_Mesh) identifier_Mesh
(argument_list
(identifier_lons) identifier_lons
(identifier_lats) identifier_lats
(keyword_argument
(identifier_depths) identifier_depths
(None) None
)keyword_argument
)argument_list
)call
(identifier_get_convex_hull) identifier_get_convex_hull
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a surface projection of the complex fault surface.
:param edges:
A list of horizontal edges of the surface as instances
of :class:`openquake.hazardlib.geo.line.Line`.
:returns:
Instance of :class:`~openquake.hazardlib.geo.polygon.Polygon`
describing the surface projection of the complex fault. |
(module
(function_definition
(function_name_retrieve_content) function_name_retrieve_content
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(identifier_self) identifier_self
(identifier__construct_path_to_source_content) identifier__construct_path_to_source_content
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__http) identifier__http
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__populated_fields) identifier__populated_fields
)attribute
(string_'content') string_'content'
)subscript
(subscript
(identifier_res) identifier_res
(string_'content') string_'content'
)subscript
)assignment
)expression_statement
(return_statement
(subscript
(identifier_res) identifier_res
(string_'content') string_'content'
)subscript
)return_statement
)block
)function_definition
)module | Retrieve the content of a resource. |
(module
(function_definition
(function_name_get_report_details) function_name_get_report_details
(parameters
(identifier_self) identifier_self
(identifier_report_id) identifier_report_id
(default_parameter
(identifier_id_type) identifier_id_type
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'idType') string_'idType'
(identifier_id_type) identifier_id_type
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(string_"reports/%s") string_"reports/%s"
(identifier_report_id) identifier_report_id
)binary_operator
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_Report) identifier_Report
(identifier_from_dict) identifier_from_dict
)attribute
(argument_list
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieves a report by its ID. Internal and external IDs are both allowed.
:param str report_id: The ID of the incident report.
:param str id_type: Indicates whether ID is internal or external.
:return: The retrieved |Report| object.
Example:
>>> report = ts.get_report_details("1a09f14b-ef8c-443f-b082-9643071c522a")
>>> print(report)
{
"id": "1a09f14b-ef8c-443f-b082-9643071c522a",
"created": 1515571633505,
"updated": 1515620420062,
"reportBody": "Employee reported suspect email. We had multiple reports of suspicious email overnight ...",
"title": "Phishing Incident",
"enclaveIds": [
"ac6a0d17-7350-4410-bc57-9699521db992"
],
"distributionType": "ENCLAVE",
"timeBegan": 1479941278000
} |
(module
(function_definition
(function_name_secure_boot) function_name_secure_boot
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_secure_boot) identifier_secure_boot
(identifier_SecureBoot) identifier_SecureBoot
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__conn) identifier__conn
)attribute
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_subresource_path_by) identifier_get_subresource_path_by
)attribute
(argument_list
(identifier_self) identifier_self
(string_'SecureBoot') string_'SecureBoot'
)argument_list
)call
(keyword_argument
(identifier_redfish_version) identifier_redfish_version
(attribute
(identifier_self) identifier_self
(identifier_redfish_version) identifier_redfish_version
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Property to provide reference to `SecureBoot` instance
It is calculated once when the first time it is queried. On refresh,
this property gets reset. |
(module
(function_definition
(function_name__get_ilo_details) function_name__get_ilo_details
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_manager_uri) identifier_manager_uri
(string_'/rest/v1/Managers/1') string_'/rest/v1/Managers/1'
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_status) identifier_status
(identifier_headers) identifier_headers
(identifier_manager) identifier_manager
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__rest_get) identifier__rest_get
)attribute
(argument_list
(identifier_manager_uri) identifier_manager_uri
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_status) identifier_status
(integer_200) integer_200
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_self) identifier_self
(identifier__get_extended_error) identifier__get_extended_error
)attribute
(argument_list
(identifier_manager) identifier_manager
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exception) identifier_exception
(identifier_IloError) identifier_IloError
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_mtype) identifier_mtype
(call
(attribute
(identifier_self) identifier_self
(identifier__get_type) identifier__get_type
)attribute
(argument_list
(identifier_manager) identifier_manager
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(identifier_mtype) identifier_mtype
(list
(string_'Manager.0') string_'Manager.0'
(string_'Manager.1') string_'Manager.1'
)list
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(binary_operator
(string_"%s is not a valid Manager type ") string_"%s is not a valid Manager type "
(identifier_mtype) identifier_mtype
)binary_operator
)assignment
)expression_statement
(raise_statement
(call
(attribute
(identifier_exception) identifier_exception
(identifier_IloError) identifier_IloError
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_manager) identifier_manager
(identifier_manager_uri) identifier_manager_uri
)expression_list
)return_statement
)block
)function_definition
)module | Gets iLO details
:raises: IloError, on an error from iLO.
:raises: IloConnectionError, if iLO is not up after reset.
:raises: IloCommandNotSupportedError, if the command is not supported
on the server. |
(module
(function_definition
(function_name__get_block_transaction_data) function_name__get_block_transaction_data
(parameters
(typed_parameter
(identifier_db) identifier_db
(type
(identifier_BaseDB) identifier_BaseDB
)type
)typed_parameter
(typed_parameter
(identifier_transaction_root) identifier_transaction_root
(type
(identifier_Hash32) identifier_Hash32
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Iterable) identifier_Iterable
(type_parameter
(type
(identifier_Hash32) identifier_Hash32
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_transaction_db) identifier_transaction_db
(call
(identifier_HexaryTrie) identifier_HexaryTrie
(argument_list
(identifier_db) identifier_db
(keyword_argument
(identifier_root_hash) identifier_root_hash
(identifier_transaction_root) identifier_transaction_root
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_transaction_idx) identifier_transaction_idx
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_transaction_key) identifier_transaction_key
(call
(attribute
(identifier_rlp) identifier_rlp
(identifier_encode) identifier_encode
)attribute
(argument_list
(identifier_transaction_idx) identifier_transaction_idx
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_transaction_key) identifier_transaction_key
(identifier_transaction_db) identifier_transaction_db
)comparison_operator
(block
(expression_statement
(yield
(subscript
(identifier_transaction_db) identifier_transaction_db
(identifier_transaction_key) identifier_transaction_key
)subscript
)yield
)expression_statement
)block
(else_clause
(block
(break_statement
)break_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | Returns iterable of the encoded transactions for the given block header |
(module
(function_definition
(function_name_find_group_differences) function_name_find_group_differences
(parameters
(identifier_groups1) identifier_groups1
(identifier_groups2) identifier_groups2
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(import_statement
(aliased_import
(dotted_name
(identifier_utool) identifier_utool
)dotted_name
(identifier_ut) identifier_ut
)aliased_import
)import_statement
(expression_statement
(assignment
(identifier_item_to_others1) identifier_item_to_others1
(dictionary_comprehension
(pair
(identifier_item) identifier_item
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(identifier__group) identifier__group
)argument_list
)call
(set
(identifier_item) identifier_item
)set
)binary_operator
)pair
(for_in_clause
(identifier__group) identifier__group
(identifier_groups1) identifier_groups1
)for_in_clause
(for_in_clause
(identifier_item) identifier_item
(identifier__group) identifier__group
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_item_to_others2) identifier_item_to_others2
(dictionary_comprehension
(pair
(identifier_item) identifier_item
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(identifier__group) identifier__group
)argument_list
)call
(set
(identifier_item) identifier_item
)set
)binary_operator
)pair
(for_in_clause
(identifier__group) identifier__group
(identifier_groups2) identifier_groups2
)for_in_clause
(for_in_clause
(identifier_item) identifier_item
(identifier__group) identifier__group
)for_in_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flat_items1) identifier_flat_items1
(call
(attribute
(identifier_ut) identifier_ut
(identifier_flatten) identifier_flatten
)attribute
(argument_list
(identifier_groups1) identifier_groups1
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flat_items2) identifier_flat_items2
(call
(attribute
(identifier_ut) identifier_ut
(identifier_flatten) identifier_flatten
)attribute
(argument_list
(identifier_groups2) identifier_groups2
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flat_items) identifier_flat_items
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(binary_operator
(identifier_flat_items1) identifier_flat_items1
(identifier_flat_items2) identifier_flat_items2
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_errors) identifier_errors
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_item_to_error) identifier_item_to_error
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(identifier_flat_items) identifier_flat_items
(block
(expression_statement
(assignment
(identifier_others1) identifier_others1
(call
(attribute
(identifier_item_to_others1) identifier_item_to_others1
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_item) identifier_item
(call
(identifier_set) identifier_set
(argument_list
(list
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_others2) identifier_others2
(call
(attribute
(identifier_item_to_others2) identifier_item_to_others2
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_item) identifier_item
(call
(identifier_set) identifier_set
(argument_list
(list
)list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_missing1) identifier_missing1
(binary_operator
(identifier_others1) identifier_others1
(identifier_others2) identifier_others2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_missing2) identifier_missing2
(binary_operator
(identifier_others2) identifier_others2
(identifier_others1) identifier_others1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_error) identifier_error
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_missing1) identifier_missing1
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_missing2) identifier_missing2
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_error) identifier_error
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_item_to_error) identifier_item_to_error
(identifier_item) identifier_item
)subscript
(identifier_error) identifier_error
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_errors) identifier_errors
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_error) identifier_error
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_total_error) identifier_total_error
(call
(identifier_sum) identifier_sum
(argument_list
(identifier_errors) identifier_errors
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_total_error) identifier_total_error
)return_statement
)block
)function_definition
)module | r"""
Returns a measure of how disimilar two groupings are
Args:
groups1 (list): true grouping of items
groups2 (list): predicted grouping of items
CommandLine:
python -m utool.util_alg find_group_differences
SeeAlso:
vtool.group_indicies
vtool.apply_grouping
Example0:
>>> # ENABLE_DOCTEST
>>> from utool.util_alg import * # NOQA
>>> groups1 = [[1, 2, 3], [4], [5, 6], [7, 8], [9, 10, 11]]
>>> groups2 = [[1, 2, 11], [3, 4], [5, 6], [7], [8, 9], [10]]
>>> total_error = find_group_differences(groups1, groups2)
>>> result = ('total_error = %r' % (total_error,))
>>> print(result)
total_error = 20
Example1:
>>> # ENABLE_DOCTEST
>>> from utool.util_alg import * # NOQA
>>> groups1 = [[1, 2, 3], [4], [5, 6]]
>>> groups2 = [[1, 2, 3], [4], [5, 6]]
>>> total_error = find_group_differences(groups1, groups2)
>>> result = ('total_error = %r' % (total_error,))
>>> print(result)
total_error = 0
Example2:
>>> # ENABLE_DOCTEST
>>> from utool.util_alg import * # NOQA
>>> groups1 = [[1, 2, 3], [4], [5, 6]]
>>> groups2 = [[1, 2], [4], [5, 6]]
>>> total_error = find_group_differences(groups1, groups2)
>>> result = ('total_error = %r' % (total_error,))
>>> print(result)
total_error = 4
Ignore:
# Can this be done via sklearn label analysis?
# maybe no... the labels assigned to each component are arbitrary
# maybe if we label edges? likely too many labels.
groups1 = [[1, 2, 3], [4], [5, 6], [7, 8], [9, 10, 11]]
groups2 = [[1, 2, 11], [3, 4], [5, 6], [7], [8, 9], [10]] |
(module
(function_definition
(function_name_fetch_bug_details) function_name_fetch_bug_details
(parameters
(identifier_self) identifier_self
(identifier_bug_ids) identifier_bug_ids
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'include_fields') string_'include_fields'
(string_'product, component, priority, whiteboard, id') string_'product, component, priority, whiteboard, id'
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'id') string_'id'
)subscript
(identifier_bug_ids) identifier_bug_ids
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(attribute
(identifier_settings) identifier_settings
(identifier_BZ_API_URL) identifier_BZ_API_URL
)attribute
(string_'/rest/bug') string_'/rest/bug'
)binary_operator
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_headers) identifier_headers
)attribute
)keyword_argument
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(integer_30) integer_30
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_RequestException) identifier_RequestException
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_'error fetching bugzilla metadata for bugs due to {}') string_'error fetching bugzilla metadata for bugs due to {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_response) identifier_response
(identifier_headers) identifier_headers
)attribute
(string_'Content-Type') string_'Content-Type'
)subscript
(string_'text/html; charset=UTF-8') string_'text/html; charset=UTF-8'
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'bugs') string_'bugs'
(identifier_data) identifier_data
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(subscript
(identifier_data) identifier_data
(string_'bugs') string_'bugs'
)subscript
)return_statement
)block
)function_definition
)module | Fetches bug metadata from bugzilla and returns an encoded
dict if successful, otherwise returns None. |
(module
(function_definition
(function_name__highlight) function_name__highlight
(parameters
(identifier_string) identifier_string
(identifier_color) identifier_color
)parameters
(block
(if_statement
(subscript
(identifier_CONFIG) identifier_CONFIG
(string_'color') string_'color'
)subscript
(block
(if_statement
(comparison_operator
(identifier_color) identifier_color
(integer_8) integer_8
)comparison_operator
(block
(return_statement
(call
(attribute
(string_'\033[{color}m{string}\033[0m') string_'\033[{color}m{string}\033[0m'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_string) identifier_string
(identifier_string) identifier_string
)keyword_argument
(keyword_argument
(identifier_color) identifier_color
(binary_operator
(identifier_color) identifier_color
(integer_30) integer_30
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(string_'\033[{color}m{string}\033[0m') string_'\033[{color}m{string}\033[0m'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_string) identifier_string
(identifier_string) identifier_string
)keyword_argument
(keyword_argument
(identifier_color) identifier_color
(binary_operator
(identifier_color) identifier_color
(integer_82) integer_82
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(return_statement
(identifier_string) identifier_string
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return a string highlighted for a terminal. |
(module
(function_definition
(function_name_set_device_scale) function_name_set_device_scale
(parameters
(identifier_self) identifier_self
(identifier_x_scale) identifier_x_scale
(identifier_y_scale) identifier_y_scale
)parameters
(block
(expression_statement
(call
(attribute
(identifier_cairo) identifier_cairo
(identifier_cairo_surface_set_device_scale) identifier_cairo_surface_set_device_scale
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__pointer) identifier__pointer
)attribute
(identifier_x_scale) identifier_x_scale
(identifier_y_scale) identifier_y_scale
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_status) identifier__check_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets a scale that is multiplied to the device coordinates determined
by the CTM when drawing to surface.
One common use for this is to render to very high resolution display
devices at a scale factor, so that code that assumes 1 pixel will be a
certain size will still work. Setting a transformation via
cairo_translate() isn't sufficient to do this, since functions like
cairo_device_to_user() will expose the hidden scale.
Note that the scale affects drawing to the surface as well as using the
surface in a source pattern.
:param x_scale: the scale in the X direction, in device units.
:param y_scale: the scale in the Y direction, in device units.
*New in cairo 1.14.*
*New in cairocffi 0.9.* |
(module
(function_definition
(function_name_get_resources) function_name_get_resources
(parameters
(identifier_self) identifier_self
(identifier_ids) identifier_ids
(default_parameter
(identifier_cache) identifier_cache
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_client) identifier_client
(call
(attribute
(call
(identifier_local_session) identifier_local_session
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_session_factory) identifier_session_factory
)attribute
)argument_list
)call
(identifier_client) identifier_client
)attribute
(argument_list
(string_'dax') string_'dax'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_client) identifier_client
(identifier_describe_clusters) identifier_describe_clusters
)attribute
(argument_list
(keyword_argument
(identifier_ClusterNames) identifier_ClusterNames
(identifier_ids) identifier_ids
)keyword_argument
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'Clusters') string_'Clusters'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Retrieve dax resources for serverless policies or related resources |
(module
(function_definition
(function_name_verify) function_name_verify
(parameters
(identifier_password_hash) identifier_password_hash
(identifier_password) identifier_password
)parameters
(block
(expression_statement
(call
(identifier_ensure) identifier_ensure
(argument_list
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_password_hash) identifier_password_hash
)argument_list
)call
(identifier_PWHASH_SIZE) identifier_PWHASH_SIZE
)comparison_operator
(binary_operator
(string_"The password hash must be exactly %s bytes long") string_"The password hash must be exactly %s bytes long"
(attribute
(attribute
(identifier_nacl) identifier_nacl
(identifier_bindings) identifier_bindings
)attribute
(identifier_crypto_pwhash_scryptsalsa208sha256_STRBYTES) identifier_crypto_pwhash_scryptsalsa208sha256_STRBYTES
)attribute
)binary_operator
(keyword_argument
(identifier_raising) identifier_raising
(attribute
(identifier_exc) identifier_exc
(identifier_ValueError) identifier_ValueError
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_nacl) identifier_nacl
(identifier_bindings) identifier_bindings
)attribute
(identifier_crypto_pwhash_scryptsalsa208sha256_str_verify) identifier_crypto_pwhash_scryptsalsa208sha256_str_verify
)attribute
(argument_list
(identifier_password_hash) identifier_password_hash
(identifier_password) identifier_password
)argument_list
)call
)return_statement
)block
)function_definition
)module | Takes the output of scryptsalsa208sha256 and compares it against
a user provided password to see if they are the same
:param password_hash: bytes
:param password: bytes
:rtype: boolean
.. versionadded:: 1.2 |
(module
(function_definition
(function_name_OnCopy) function_name_OnCopy
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(assignment
(identifier_focus) identifier_focus
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_FindFocus) identifier_FindFocus
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_focus) identifier_focus
(attribute
(identifier_wx) identifier_wx
(identifier_TextCtrl) identifier_TextCtrl
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_focus) identifier_focus
(identifier_Copy) identifier_Copy
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_selection) identifier_selection
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_grid) identifier_grid
)attribute
(identifier_selection) identifier_selection
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_actions) identifier_actions
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_selection) identifier_selection
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_window) identifier_main_window
)attribute
(identifier_clipboard) identifier_clipboard
)attribute
(identifier_set_clipboard) identifier_set_clipboard
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_event) identifier_event
(identifier_Skip) identifier_Skip
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Clipboard copy event handler |
(module
(function_definition
(function_name_parentItem) function_name_parentItem
(parameters
(identifier_self) identifier_self
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__parentItem) identifier__parentItem
)attribute
(identifier_value) identifier_value
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__recursiveSetNodePath) identifier__recursiveSetNodePath
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__constructNodePath) identifier__constructNodePath
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | The parent item |
(module
(function_definition
(function_name___do_parse) function_name___do_parse
(parameters
(identifier_self) identifier_self
(identifier_pattern_str) identifier_pattern_str
)parameters
(block
(expression_statement
(assignment
(identifier_in_) identifier_in_
(call
(attribute
(identifier_antlr4) identifier_antlr4
(identifier_InputStream) identifier_InputStream
)attribute
(argument_list
(identifier_pattern_str) identifier_pattern_str
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lexer) identifier_lexer
(call
(identifier_STIXPatternLexer) identifier_STIXPatternLexer
(argument_list
(identifier_in_) identifier_in_
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_lexer) identifier_lexer
(identifier_removeErrorListeners) identifier_removeErrorListeners
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_token_stream) identifier_token_stream
(call
(attribute
(identifier_antlr4) identifier_antlr4
(identifier_CommonTokenStream) identifier_CommonTokenStream
)attribute
(argument_list
(identifier_lexer) identifier_lexer
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_STIXPatternParser) identifier_STIXPatternParser
(argument_list
(identifier_token_stream) identifier_token_stream
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_removeErrorListeners) identifier_removeErrorListeners
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_error_listener) identifier_error_listener
(call
(identifier_ParserErrorListener) identifier_ParserErrorListener
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_parser) identifier_parser
(identifier_addErrorListener) identifier_addErrorListener
)attribute
(argument_list
(identifier_error_listener) identifier_error_listener
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_parser) identifier_parser
(identifier__errHandler) identifier__errHandler
)attribute
(call
(attribute
(identifier_antlr4) identifier_antlr4
(identifier_BailErrorStrategy) identifier_BailErrorStrategy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_lit_name) identifier_lit_name
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_parser) identifier_parser
(identifier_literalNames) identifier_literalNames
)attribute
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_lit_name) identifier_lit_name
(string_u"<INVALID>") string_u"<INVALID>"
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_parser) identifier_parser
(identifier_literalNames) identifier_literalNames
)attribute
(identifier_i) identifier_i
)subscript
(subscript
(attribute
(identifier_parser) identifier_parser
(identifier_symbolicNames) identifier_symbolicNames
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_tree) identifier_tree
(call
(attribute
(identifier_parser) identifier_parser
(identifier_pattern) identifier_pattern
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_tree) identifier_tree
)return_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(attribute
(identifier_antlr4) identifier_antlr4
(identifier_error) identifier_error
)attribute
(identifier_Errors) identifier_Errors
)attribute
(identifier_ParseCancellationException) identifier_ParseCancellationException
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_real_exc) identifier_real_exc
(subscript
(attribute
(identifier_e) identifier_e
(identifier_args) identifier_args
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_parser) identifier_parser
(identifier__errHandler) identifier__errHandler
)attribute
(identifier_reportError) identifier_reportError
)attribute
(argument_list
(identifier_parser) identifier_parser
(identifier_real_exc) identifier_real_exc
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_raise_from) identifier_raise_from
)attribute
(argument_list
(call
(identifier_ParseException) identifier_ParseException
(argument_list
(attribute
(identifier_error_listener) identifier_error_listener
(identifier_error_message) identifier_error_message
)attribute
)argument_list
)call
(identifier_real_exc) identifier_real_exc
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Parses the given pattern and returns the antlr parse tree.
:param pattern_str: The STIX pattern
:return: The parse tree
:raises ParseException: If there is a parse error |
(module
(function_definition
(function_name_create) function_name_create
(parameters
(identifier_cls) identifier_cls
(typed_parameter
(identifier_destination) identifier_destination
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_Subnet) identifier_Subnet
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_source) identifier_source
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_Subnet) identifier_Subnet
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_parameter
(identifier_gateway_ip) identifier_gateway_ip
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_parameter
(identifier_metric) identifier_metric
(type
(identifier_int) identifier_int
)type
)typed_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_"gateway_ip") string_"gateway_ip"
(identifier_gateway_ip) identifier_gateway_ip
)pair
(pair
(string_"metric") string_"metric"
(identifier_metric) identifier_metric
)pair
)dictionary
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_source) identifier_source
(identifier_Subnet) identifier_Subnet
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"source") string_"source"
)subscript
(attribute
(identifier_source) identifier_source
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_source) identifier_source
(identifier_int) identifier_int
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"source") string_"source"
)subscript
(identifier_source) identifier_source
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_destination) identifier_destination
(identifier_Subnet) identifier_Subnet
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"destination") string_"destination"
)subscript
(attribute
(identifier_destination) identifier_destination
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_destination) identifier_destination
(identifier_int) identifier_int
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"destination") string_"destination"
)subscript
(identifier_destination) identifier_destination
)assignment
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier__object) identifier__object
)attribute
(argument_list
(await
(call
(attribute
(attribute
(identifier_cls) identifier_cls
(identifier__handler) identifier__handler
)attribute
(identifier_create) identifier_create
)attribute
(argument_list
(dictionary_splat
(identifier_params) identifier_params
)dictionary_splat
)argument_list
)call
)await
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a `StaticRoute` in MAAS.
:param name: The name of the `StaticRoute` (optional, will be given a
default value if not specified).
:type name: `str`
:param description: A description of the `StaticRoute` (optional).
:type description: `str`
:param class_type: The class type of the `StaticRoute` (optional).
:type class_type: `str`
:returns: The created StaticRoute
:rtype: `StaticRoute` |
(module
(function_definition
(function_name_form_valid) function_name_form_valid
(parameters
(identifier_self) identifier_self
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_metric_slugs) identifier_metric_slugs
)attribute
(list_comprehension
(call
(attribute
(identifier_k) identifier_k
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_k) identifier_k
(subscript
(attribute
(identifier_form) identifier_form
(identifier_cleaned_data) identifier_cleaned_data
)attribute
(string_'metrics') string_'metrics'
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_AggregateFormView) identifier_AggregateFormView
(identifier_self) identifier_self
)argument_list
)call
(identifier_form_valid) identifier_form_valid
)attribute
(argument_list
(identifier_form) identifier_form
)argument_list
)call
)return_statement
)block
)function_definition
)module | Pull the metrics from the submitted form, and store them as a
list of strings in ``self.metric_slugs``. |
(module
(function_definition
(function_name_uniqify) function_name_uniqify
(parameters
(identifier_list_) identifier_list_
)parameters
(block
(expression_statement
(string_"inefficient on long lists; short lists only. preserves order.") string_"inefficient on long lists; short lists only. preserves order."
)expression_statement
(expression_statement
(assignment
(identifier_a) identifier_a
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_x) identifier_x
(identifier_list_) identifier_list_
(block
(if_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_a) identifier_a
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_a) identifier_a
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_a) identifier_a
)return_statement
)block
)function_definition
)module | inefficient on long lists; short lists only. preserves order. |
(module
(function_definition
(function_name_guarded) function_name_guarded
(parameters
(identifier_meth) identifier_meth
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_meth) identifier_meth
)argument_list
)call
)decorator
(function_definition
(function_name__check) function_name__check
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_conn_validity) identifier__check_conn_validity
)attribute
(argument_list
(attribute
(identifier_meth) identifier_meth
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_meth) identifier_meth
(argument_list
(identifier_self) identifier_self
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier__check) identifier__check
)return_statement
)block
)function_definition
)module | A decorator to add a sanity check to ConnectionResource methods. |
(module
(function_definition
(function_name___sub) function_name___sub
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_string) identifier_string
(type
(identifier_str) identifier_str
)type
(string_'') string_''
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_replacer) identifier_replacer
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_random) identifier_random
)attribute
(identifier_choice) identifier_choice
)attribute
(argument_list
(list
(string_'_') string_'_'
(string_'-') string_'-'
)list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'\s+') string_r'\s+'
(identifier_replacer) identifier_replacer
(call
(attribute
(identifier_string) identifier_string
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Replace spaces in string.
:param string: String.
:return: String without spaces. |
(module
(function_definition
(function_name_validate_serializer) function_name_validate_serializer
(parameters
(identifier_serializer) identifier_serializer
(identifier__type) identifier__type
)parameters
(block
(if_statement
(not_operator
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_serializer) identifier_serializer
(identifier__type) identifier__type
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Serializer should be an instance of {}") string_"Serializer should be an instance of {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier__type) identifier__type
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Validates the serializer for given type.
:param serializer: (Serializer), the serializer to be validated.
:param _type: (Type), type to be used for serializer validation. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.