sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_cumulative_gaps_to) function_name_cumulative_gaps_to
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_when) identifier_when
(type
(attribute
(identifier_datetime) identifier_datetime
(identifier_datetime) identifier_datetime
)attribute
)type
)typed_parameter
)parameters
(type
(attribute
(identifier_datetime) identifier_datetime
(identifier_timedelta) identifier_timedelta
)attribute
)type
(block
(expression_statement
(assignment
(identifier_gaps) identifier_gaps
(call
(attribute
(identifier_self) identifier_self
(identifier_gaps) identifier_gaps
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_gaps) identifier_gaps
(identifier_cumulative_time_to) identifier_cumulative_time_to
)attribute
(argument_list
(identifier_when) identifier_when
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return the cumulative time within our gaps, up to ``when``. |
(module
(function_definition
(function_name_parsetypes) function_name_parsetypes
(parameters
(identifier_dtype) identifier_dtype
)parameters
(block
(return_statement
(list_comprehension
(call
(attribute
(call
(attribute
(attribute
(subscript
(identifier_dtype) identifier_dtype
(identifier_i) identifier_i
)subscript
(identifier_name) identifier_name
)attribute
(identifier_strip) identifier_strip
)attribute
(argument_list
(string_'1234567890') string_'1234567890'
)argument_list
)call
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(string_'ing') string_'ing'
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_dtype) identifier_dtype
)argument_list
)call
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Parse the types from a structured numpy dtype object.
Return list of string representations of types from a structured numpy
dtype object, e.g. ['int', 'float', 'str'].
Used by :func:`tabular.io.saveSV` to write out type information in the
header.
**Parameters**
**dtype** : numpy dtype object
Structured numpy dtype object to parse.
**Returns**
**out** : list of strings
List of strings corresponding to numpy types::
[dtype[i].name.strip('1234567890').rstrip('ing') \
for i in range(len(dtype))] |
(module
(function_definition
(function_name_owner) function_name_owner
(parameters
(identifier_self) identifier_self
(identifier_pathobj) identifier_pathobj
)parameters
(block
(expression_statement
(assignment
(identifier_stat) identifier_stat
(call
(attribute
(identifier_self) identifier_self
(identifier_stat) identifier_stat
)attribute
(argument_list
(identifier_pathobj) identifier_pathobj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_stat) identifier_stat
(identifier_is_dir) identifier_is_dir
)attribute
)not_operator
(block
(return_statement
(attribute
(identifier_stat) identifier_stat
(identifier_modified_by) identifier_modified_by
)attribute
)return_statement
)block
(else_clause
(block
(return_statement
(string_'nobody') string_'nobody'
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns file owner
This makes little sense for Artifactory, but to be consistent
with pathlib, we return modified_by instead, if available |
(module
(function_definition
(function_name_get_html_column_count) function_name_get_html_column_count
(parameters
(identifier_html_string) identifier_html_string
)parameters
(block
(try_statement
(block
(import_from_statement
(dotted_name
(identifier_bs4) identifier_bs4
)dotted_name
(dotted_name
(identifier_BeautifulSoup) identifier_BeautifulSoup
)dotted_name
)import_from_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"ERROR: You must have BeautifulSoup to use html2data") string_"ERROR: You must have BeautifulSoup to use html2data"
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_soup) identifier_soup
(call
(identifier_BeautifulSoup) identifier_BeautifulSoup
(argument_list
(identifier_html_string) identifier_html_string
(string_'html.parser') string_'html.parser'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_table) identifier_table
(call
(attribute
(identifier_soup) identifier_soup
(identifier_find) identifier_find
)attribute
(argument_list
(string_'table') string_'table'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_table) identifier_table
)not_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_column_counts) identifier_column_counts
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trs) identifier_trs
(call
(attribute
(identifier_table) identifier_table
(identifier_findAll) identifier_findAll
)attribute
(argument_list
(string_'tr') string_'tr'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_trs) identifier_trs
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(for_statement
(identifier_tr) identifier_tr
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_trs) identifier_trs
)argument_list
)call
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_tr) identifier_tr
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tds) identifier_tds
(call
(attribute
(subscript
(identifier_trs) identifier_trs
(identifier_tr) identifier_tr
)subscript
(identifier_findAll) identifier_findAll
)attribute
(argument_list
(string_'th') string_'th'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tds) identifier_tds
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tds) identifier_tds
(call
(attribute
(subscript
(identifier_trs) identifier_trs
(identifier_tr) identifier_tr
)subscript
(identifier_findAll) identifier_findAll
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_tds) identifier_tds
(call
(attribute
(subscript
(identifier_trs) identifier_trs
(identifier_tr) identifier_tr
)subscript
(identifier_findAll) identifier_findAll
)attribute
(argument_list
(string_'td') string_'td'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_td) identifier_td
(identifier_tds) identifier_tds
(block
(if_statement
(call
(attribute
(identifier_td) identifier_td
(identifier_has_attr) identifier_has_attr
)attribute
(argument_list
(string_'colspan') string_'colspan'
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_td) identifier_td
(string_'colspan') string_'colspan'
)subscript
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_column_counts) identifier_column_counts
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_count) identifier_count
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(identifier_column_counts) identifier_column_counts
)argument_list
)call
)return_statement
)block
)function_definition
)module | Gets the number of columns in an html table.
Paramters
---------
html_string : str
Returns
-------
int
The number of columns in the table |
(module
(function_definition
(function_name_selection) function_name_selection
(parameters
(identifier_self) identifier_self
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update) identifier_update
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_isActiveWindow) identifier_isActiveWindow
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__parent) identifier__parent
)attribute
(identifier_delete_btn) identifier_delete_btn
)attribute
(identifier_setEnabled) identifier_setEnabled
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Update selected row. |
(module
(function_definition
(function_name_register_variable_compilation) function_name_register_variable_compilation
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_compilation_cbk) identifier_compilation_cbk
(identifier_listclass) identifier_listclass
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_compilations_variable) identifier_compilations_variable
)attribute
(identifier_path) identifier_path
)subscript
(dictionary
(pair
(string_'callback') string_'callback'
(identifier_compilation_cbk) identifier_compilation_cbk
)pair
(pair
(string_'listclass') string_'listclass'
(identifier_listclass) identifier_listclass
)pair
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Register given compilation method for variable on given path.
:param str path: JPath for given variable.
:param callable compilation_cbk: Compilation callback to be called.
:param class listclass: List class to use for lists. |
(module
(function_definition
(function_name_is_correctness_available) function_name_is_correctness_available
(parameters
(identifier_self) identifier_self
(identifier_question_id) identifier_question_id
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_get_response) identifier_get_response
)attribute
(argument_list
(identifier_question_id) identifier_question_id
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_is_answered) identifier_is_answered
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_item) identifier_item
(call
(attribute
(identifier_self) identifier_self
(identifier__get_item) identifier__get_item
)attribute
(argument_list
(call
(attribute
(identifier_response) identifier_response
(identifier_get_item_id) identifier_get_item_id
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_item) identifier_item
(identifier_is_correctness_available_for_response) identifier_is_correctness_available_for_response
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | is a measure of correctness available for the question |
(module
(function_definition
(function_name_handle_profile_form) function_name_handle_profile_form
(parameters
(identifier_form) identifier_form
)parameters
(block
(expression_statement
(call
(attribute
(identifier_form) identifier_form
(identifier_process) identifier_process
)attribute
(argument_list
(keyword_argument
(identifier_formdata) identifier_formdata
(attribute
(identifier_request) identifier_request
(identifier_form) identifier_form
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_form) identifier_form
(identifier_validate_on_submit) identifier_validate_on_submit
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_email_changed) identifier_email_changed
(False) False
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_begin_nested) identifier_begin_nested
)attribute
(argument_list
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(attribute
(identifier_current_userprofile) identifier_current_userprofile
(identifier_username) identifier_username
)attribute
(attribute
(attribute
(identifier_form) identifier_form
(identifier_username) identifier_username
)attribute
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current_userprofile) identifier_current_userprofile
(identifier_full_name) identifier_full_name
)attribute
(attribute
(attribute
(identifier_form) identifier_form
(identifier_full_name) identifier_full_name
)attribute
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_current_userprofile) identifier_current_userprofile
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(subscript
(attribute
(identifier_current_app) identifier_current_app
(identifier_config) identifier_config
)attribute
(string_'USERPROFILES_EMAIL_ENABLED') string_'USERPROFILES_EMAIL_ENABLED'
)subscript
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(attribute
(identifier_form) identifier_form
(identifier_email) identifier_email
)attribute
(identifier_data) identifier_data
)attribute
(attribute
(identifier_current_user) identifier_current_user
(identifier_email) identifier_email
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_current_user) identifier_current_user
(identifier_email) identifier_email
)attribute
(attribute
(attribute
(identifier_form) identifier_form
(identifier_email) identifier_email
)attribute
(identifier_data) identifier_data
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current_user) identifier_current_user
(identifier_confirmed_at) identifier_confirmed_at
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_current_user) identifier_current_user
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_email_changed) identifier_email_changed
(True) True
)assignment
)expression_statement
)block
)if_statement
)block
)with_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(identifier_email_changed) identifier_email_changed
(block
(expression_statement
(call
(identifier_send_confirmation_instructions) identifier_send_confirmation_instructions
(argument_list
(identifier_current_user) identifier_current_user
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_flash) identifier_flash
(argument_list
(call
(identifier__) identifier__
(argument_list
(concatenated_string
(string_'Profile was updated. We have sent a verification ') string_'Profile was updated. We have sent a verification '
(string_'email to %(email)s. Please check it.') string_'email to %(email)s. Please check it.'
)concatenated_string
(keyword_argument
(identifier_email) identifier_email
(attribute
(identifier_current_user) identifier_current_user
(identifier_email) identifier_email
)attribute
)keyword_argument
)argument_list
)call
(keyword_argument
(identifier_category) identifier_category
(string_'success') string_'success'
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_flash) identifier_flash
(argument_list
(call
(identifier__) identifier__
(argument_list
(string_'Profile was updated.') string_'Profile was updated.'
)argument_list
)call
(keyword_argument
(identifier_category) identifier_category
(string_'success') string_'success'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Handle profile update form. |
(module
(function_definition
(function_name_addcols) function_name_addcols
(parameters
(identifier_self) identifier_self
(identifier_desc) identifier_desc
(default_parameter
(identifier_dminfo) identifier_dminfo
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_addtoparent) identifier_addtoparent
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_tdesc) identifier_tdesc
(identifier_desc) identifier_desc
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'name') string_'name'
(identifier_desc) identifier_desc
)comparison_operator
(block
(import_statement
(aliased_import
(dotted_name
(identifier_casacore) identifier_casacore
(identifier_tables) identifier_tables
(identifier_tableutil) identifier_tableutil
)dotted_name
(identifier_pt) identifier_pt
)aliased_import
)import_statement
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_desc) identifier_desc
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(comparison_operator
(string_'desc') string_'desc'
(identifier_desc) identifier_desc
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_tdesc) identifier_tdesc
(call
(attribute
(identifier_pt) identifier_pt
(identifier_maketabdesc) identifier_maketabdesc
)attribute
(argument_list
(identifier_desc) identifier_desc
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(string_'valueType') string_'valueType'
(identifier_desc) identifier_desc
)comparison_operator
(block
(expression_statement
(assignment
(identifier_cd) identifier_cd
(call
(attribute
(identifier_pt) identifier_pt
(identifier_makecoldesc) identifier_makecoldesc
)attribute
(argument_list
(subscript
(identifier_desc) identifier_desc
(string_'name') string_'name'
)subscript
(identifier_desc) identifier_desc
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tdesc) identifier_tdesc
(call
(attribute
(identifier_pt) identifier_pt
(identifier_maketabdesc) identifier_maketabdesc
)attribute
(argument_list
(identifier_cd) identifier_cd
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__addcols) identifier__addcols
)attribute
(argument_list
(identifier_tdesc) identifier_tdesc
(identifier_dminfo) identifier_dminfo
(identifier_addtoparent) identifier_addtoparent
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__makerow) identifier__makerow
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add one or more columns.
Columns can always be added to a normal table.
They can also be added to a reference table and optionally to its
parent table.
`desc`
contains a description of the column(s) to be added. It can be given
in three ways:
- a dict created by :func:`maketabdesc`. In this way multiple
columns can be added.
- a dict created by :func:`makescacoldesc`, :func:`makearrcoldesc`,
or :func:`makecoldesc`. In this way a single column can be added.
- a dict created by :func:`getcoldesc`. The key 'name' containing
the column name has to be defined in such a dict.
`dminfo`
can be used to provide detailed data manager info to tell how the
column(s) have to be stored. The dminfo of an existing column can be
obtained using method :func:`getdminfo`.
`addtoparent`
defines if the column should also be added to the parent table in
case the current table is a reference table (result of selection).
If True, it will be added to the parent if it does not exist yet.
For example, add a column using the same data manager type as another
column::
coldmi = t.getdminfo('colarrtsm') # get dminfo of existing column
coldmi["NAME"] = 'tsm2' # give it a unique name
t.addcols (maketabdesc(makearrcoldesc("colarrtsm2",0., ndim=2)),
coldmi) |
(module
(function_definition
(function_name_incremental_value) function_name_incremental_value
(parameters
(identifier_self) identifier_self
(identifier_slip_moment) identifier_slip_moment
(identifier_mmax) identifier_mmax
(identifier_mag_value) identifier_mag_value
(identifier_bbar) identifier_bbar
(identifier_dbar) identifier_dbar
)parameters
(block
(expression_statement
(assignment
(identifier_delta_m) identifier_delta_m
(binary_operator
(identifier_mmax) identifier_mmax
(identifier_mag_value) identifier_mag_value
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_a_3) identifier_a_3
(call
(attribute
(identifier_self) identifier_self
(identifier__get_a3) identifier__get_a3
)attribute
(argument_list
(identifier_bbar) identifier_bbar
(identifier_dbar) identifier_dbar
(identifier_slip_moment) identifier_slip_moment
(identifier_mmax) identifier_mmax
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(binary_operator
(binary_operator
(identifier_a_3) identifier_a_3
(identifier_bbar) identifier_bbar
)binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_np) identifier_np
(identifier_exp) identifier_exp
)attribute
(argument_list
(binary_operator
(identifier_bbar) identifier_bbar
(identifier_delta_m) identifier_delta_m
)binary_operator
)argument_list
)call
(float_1.0) float_1.0
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(comparison_operator
(identifier_delta_m) identifier_delta_m
(float_0.0) float_0.0
)comparison_operator
)parenthesized_expression
)binary_operator
)return_statement
)block
)function_definition
)module | Returns the incremental rate with Mmax = Mag_value |
(module
(function_definition
(function_name_apply_transformation) function_name_apply_transformation
(parameters
(identifier_self) identifier_self
(identifier_structure) identifier_structure
)parameters
(block
(expression_statement
(assignment
(identifier_sga) identifier_sga
(call
(identifier_SpacegroupAnalyzer) identifier_SpacegroupAnalyzer
(argument_list
(identifier_structure) identifier_structure
(keyword_argument
(identifier_symprec) identifier_symprec
(attribute
(identifier_self) identifier_self
(identifier_symprec) identifier_symprec
)attribute
)keyword_argument
(keyword_argument
(identifier_angle_tolerance) identifier_angle_tolerance
(attribute
(identifier_self) identifier_self
(identifier_angle_tolerance) identifier_angle_tolerance
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_sga) identifier_sga
(identifier_get_conventional_standard_structure) identifier_get_conventional_standard_structure
)attribute
(argument_list
(keyword_argument
(identifier_international_monoclinic) identifier_international_monoclinic
(attribute
(identifier_self) identifier_self
(identifier_international_monoclinic) identifier_international_monoclinic
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns most primitive cell for structure.
Args:
structure: A structure
Returns:
The same structure in a conventional standard setting |
(module
(function_definition
(function_name_accept_kwargs) function_name_accept_kwargs
(parameters
(identifier_func) identifier_func
)parameters
(block
(function_definition
(function_name_wrapped) function_name_wrapped
(parameters
(identifier_val) identifier_val
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_val) identifier_val
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(block
(return_statement
(call
(identifier_func) identifier_func
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
(return_statement
(identifier_wrapped) identifier_wrapped
)return_statement
)block
)function_definition
)module | Wrap a function that may not accept kwargs so they are accepted
The output function will always have call signature of
:code:`func(val, **kwargs)`, whereas the original function may have
call signatures of :code:`func(val)` or :code:`func(val, **kwargs)`.
In the case of the former, rather than erroring, kwargs are just
ignored.
This method is called on serializer/deserializer function; these
functions always receive kwargs from serialize, but by using this,
the original functions may simply take a single value. |
(module
(function_definition
(function_name_export_3_column) function_name_export_3_column
(parameters
(identifier_stimfunction) identifier_stimfunction
(identifier_filename) identifier_filename
(default_parameter
(identifier_temporal_resolution) identifier_temporal_resolution
(float_100.0) float_100.0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stim_counter) identifier_stim_counter
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_event_counter) identifier_event_counter
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_stim_counter) identifier_stim_counter
(subscript
(attribute
(identifier_stimfunction) identifier_stimfunction
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)comparison_operator
(block
(if_statement
(comparison_operator
(subscript
(identifier_stimfunction) identifier_stimfunction
(identifier_stim_counter) identifier_stim_counter
(integer_0) integer_0
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_event_onset) identifier_event_onset
(call
(identifier_str) identifier_str
(argument_list
(binary_operator
(identifier_stim_counter) identifier_stim_counter
(identifier_temporal_resolution) identifier_temporal_resolution
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_weight) identifier_weight
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_stimfunction) identifier_stimfunction
(identifier_stim_counter) identifier_stim_counter
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_event_duration) identifier_event_duration
(integer_0) integer_0
)assignment
)expression_statement
(while_statement
(comparison_operator
(subscript
(identifier_stimfunction) identifier_stimfunction
(identifier_stim_counter) identifier_stim_counter
(integer_0) integer_0
)subscript
(binary_operator
(integer_0) integer_0
(identifier_stim_counter) identifier_stim_counter
)binary_operator
(line_continuation_\) line_continuation_\
(subscript
(attribute
(identifier_stimfunction) identifier_stimfunction
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(identifier_event_duration) identifier_event_duration
(binary_operator
(identifier_event_duration) identifier_event_duration
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stim_counter) identifier_stim_counter
(binary_operator
(identifier_stim_counter) identifier_stim_counter
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_event_duration) identifier_event_duration
(call
(identifier_str) identifier_str
(argument_list
(binary_operator
(identifier_event_duration) identifier_event_duration
(identifier_temporal_resolution) identifier_temporal_resolution
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_"a") string_"a"
)argument_list
)call
(as_pattern_target
(identifier_file) identifier_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_file) identifier_file
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(identifier_event_onset) identifier_event_onset
(string_'\t') string_'\t'
)binary_operator
(identifier_event_duration) identifier_event_duration
)binary_operator
(string_'\t') string_'\t'
)binary_operator
(identifier_weight) identifier_weight
)binary_operator
(string_'\n') string_'\n'
)binary_operator
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_event_counter) identifier_event_counter
(binary_operator
(identifier_event_counter) identifier_event_counter
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_stim_counter) identifier_stim_counter
(binary_operator
(identifier_stim_counter) identifier_stim_counter
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module | Output a tab separated three column timing file
This produces a three column tab separated text file, with the three
columns representing onset time (s), event duration (s) and weight,
respectively. Useful if you want to run the simulated data through FEAT
analyses. In a way, this is the reverse of generate_stimfunction
Parameters
----------
stimfunction : timepoint by 1 array
The stimulus function describing the time course of events. For
instance output from generate_stimfunction.
filename : str
The name of the three column text file to be output
temporal_resolution : float
How many elements per second are you modeling with the
stimfunction? |
(module
(function_definition
(function_name_check_dimensions) function_name_check_dimensions
(parameters
(identifier_self) identifier_self
(identifier_dataset) identifier_dataset
)parameters
(block
(expression_statement
(assignment
(identifier_required_ctx) identifier_required_ctx
(call
(identifier_TestCtx) identifier_TestCtx
(argument_list
(attribute
(identifier_BaseCheck) identifier_BaseCheck
(identifier_HIGH) identifier_HIGH
)attribute
(string_'All geophysical variables are time-series incomplete feature types') string_'All geophysical variables are time-series incomplete feature types'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_message) identifier_message
(string_'{} must be a valid timeseries feature type. It must have dimensions of (timeSeries, time).') string_'{} must be a valid timeseries feature type. It must have dimensions of (timeSeries, time).'
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_message) identifier_message
(string_' And all coordinates must have dimensions of (timeSeries)') string_' And all coordinates must have dimensions of (timeSeries)'
)augmented_assignment
)expression_statement
(for_statement
(identifier_variable) identifier_variable
(call
(attribute
(identifier_util) identifier_util
(identifier_get_geophysical_variables) identifier_get_geophysical_variables
)attribute
(argument_list
(identifier_dataset) identifier_dataset
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_is_valid) identifier_is_valid
(call
(attribute
(identifier_util) identifier_util
(identifier_is_multi_timeseries_incomplete) identifier_is_multi_timeseries_incomplete
)attribute
(argument_list
(identifier_dataset) identifier_dataset
(identifier_variable) identifier_variable
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_required_ctx) identifier_required_ctx
(identifier_assert_true) identifier_assert_true
)attribute
(argument_list
(identifier_is_valid) identifier_is_valid
(call
(attribute
(identifier_message) identifier_message
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_variable) identifier_variable
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_required_ctx) identifier_required_ctx
(identifier_to_result) identifier_to_result
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks that the feature types of this dataset are consitent with a time series incomplete dataset
:param netCDF4.Dataset dataset: An open netCDF dataset |
(module
(function_definition
(function_name___request) function_name___request
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_params) identifier_params
)parameters
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'request: %s %s') string_'request: %s %s'
(tuple
(identifier_url) identifier_url
(call
(identifier_str) identifier_str
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(call
(identifier_urlopen) identifier_urlopen
(argument_list
(identifier_url) identifier_url
(call
(identifier_urlencode) identifier_urlencode
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)argument_list
)call
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(string_'action') string_'action'
)argument_list
)call
(string_'data') string_'data'
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_'response: %s') string_'response: %s'
(identifier_response) identifier_response
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_params) identifier_params
(identifier_get) identifier_get
)attribute
(argument_list
(string_'action') string_'action'
(None) None
)argument_list
)call
(string_'data') string_'data'
)comparison_operator
(block
(return_statement
(identifier_response) identifier_response
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
(except_clause
(identifier_TypeError) identifier_TypeError
(identifier_e) identifier_e
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_exception) identifier_exception
)attribute
(argument_list
(string_'request error') string_'request error'
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_ServerError) identifier_ServerError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(identifier_IOError) identifier_IOError
(identifier_e) identifier_e
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_'request error: %s') string_'request error: %s'
(call
(identifier_str) identifier_str
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(raise_statement
(call
(identifier_ServerError) identifier_ServerError
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Make an HTTP POST request to the server and return JSON data.
:param url: HTTP URL to object.
:returns: Response as dict. |
(module
(function_definition
(function_name_share) function_name_share
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_share_id) identifier_share_id
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_token) identifier_token
(type
(identifier_dict) identifier_dict
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_augment) identifier_augment
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
(typed_default_parameter
(identifier_prot) identifier_prot
(type
(identifier_str) identifier_str
)type
(string_"https") string_"https"
)typed_default_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_share_url) identifier_share_url
(call
(attribute
(string_"{}://v1.{}.isogeo.com/shares/{}") string_"{}://v1.{}.isogeo.com/shares/{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_prot) identifier_prot
(attribute
(identifier_self) identifier_self
(identifier_api_url) identifier_api_url
)attribute
(identifier_share_id) identifier_share_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_share_req) identifier_share_req
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_share_url) identifier_share_url
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_header) identifier_header
)attribute
)keyword_argument
(keyword_argument
(identifier_proxies) identifier_proxies
(attribute
(identifier_self) identifier_self
(identifier_proxies) identifier_proxies
)attribute
)keyword_argument
(keyword_argument
(identifier_verify) identifier_verify
(attribute
(identifier_self) identifier_self
(identifier_ssl) identifier_ssl
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_checker) identifier_checker
(identifier_check_api_response) identifier_check_api_response
)attribute
(argument_list
(identifier_share_req) identifier_share_req
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_share) identifier_share
(call
(attribute
(identifier_share_req) identifier_share_req
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_augment) identifier_augment
(block
(expression_statement
(assignment
(identifier_share) identifier_share
(call
(attribute
(identifier_utils) identifier_utils
(identifier_share_extender) identifier_share_extender
)attribute
(argument_list
(identifier_share) identifier_share
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_search) identifier_search
)attribute
(argument_list
(keyword_argument
(identifier_whole_share) identifier_whole_share
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_share) identifier_share
(identifier_share_id) identifier_share_id
)keyword_argument
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_"results") string_"results"
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(pass_statement
)pass_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_share) identifier_share
)return_statement
)block
)function_definition
)module | Get information about a specific share and its applications.
:param str token: API auth token
:param str share_id: share UUID
:param bool augment: option to improve API response by adding
some tags on the fly.
:param str prot: https [DEFAULT] or http
(use it only for dev and tracking needs). |
(module
(function_definition
(function_name_dissolved) function_name_dissolved
(parameters
(identifier_self) identifier_self
(identifier_concs) identifier_concs
)parameters
(block
(expression_statement
(assignment
(identifier_new_concs) identifier_new_concs
(call
(attribute
(identifier_concs) identifier_concs
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_r) identifier_r
(attribute
(identifier_self) identifier_self
(identifier_rxns) identifier_rxns
)attribute
(block
(if_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_has_precipitates) identifier_has_precipitates
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_substances) identifier_substances
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_net_stoich) identifier_net_stoich
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(call
(attribute
(identifier_r) identifier_r
(identifier_net_stoich) identifier_net_stoich
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_substances) identifier_substances
)attribute
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_s_net) identifier_s_net
(identifier_s_stoich) identifier_s_stoich
(identifier_s_idx) identifier_s_idx
)pattern_list
(call
(attribute
(identifier_r) identifier_r
(identifier_precipitate_stoich) identifier_precipitate_stoich
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_substances) identifier_substances
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_new_concs) identifier_new_concs
(binary_operator
(binary_operator
(subscript
(identifier_new_concs) identifier_new_concs
(identifier_s_idx) identifier_s_idx
)subscript
(identifier_s_stoich) identifier_s_stoich
)binary_operator
(identifier_net_stoich) identifier_net_stoich
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_new_concs) identifier_new_concs
)return_statement
)block
)function_definition
)module | Return dissolved concentrations |
(module
(function_definition
(function_name_versions_from_archive) function_name_versions_from_archive
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_py_vers) identifier_py_vers
(call
(identifier_versions_from_trove) identifier_versions_from_trove
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_classifiers) identifier_classifiers
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(identifier_ver) identifier_ver
(for_in_clause
(identifier_ver) identifier_ver
(identifier_py_vers) identifier_py_vers
)for_in_clause
(if_clause
(comparison_operator
(identifier_ver) identifier_ver
(attribute
(identifier_self) identifier_self
(identifier_unsupported_version) identifier_unsupported_version
)attribute
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return Python versions extracted from trove classifiers. |
(module
(function_definition
(function_name__node) function_name__node
(parameters
(identifier_self) identifier_self
(identifier_tax_id) identifier_tax_id
)parameters
(block
(expression_statement
(assignment
(identifier_s) identifier_s
(call
(identifier_select) identifier_select
(argument_list
(list
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)attribute
(identifier_c) identifier_c
)attribute
(identifier_parent_id) identifier_parent_id
)attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)attribute
(identifier_c) identifier_c
)attribute
(identifier_rank) identifier_rank
)attribute
)list
(comparison_operator
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_nodes) identifier_nodes
)attribute
(identifier_c) identifier_c
)attribute
(identifier_tax_id) identifier_tax_id
)attribute
(identifier_tax_id) identifier_tax_id
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(identifier_s) identifier_s
(identifier_execute) identifier_execute
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_res) identifier_res
(identifier_fetchone) identifier_fetchone
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_output) identifier_output
)not_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_'value "{}" not found in nodes.tax_id') string_'value "{}" not found in nodes.tax_id'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_tax_id) identifier_tax_id
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns parent_id, rank
FIXME: expand return rank to include custom 'below' ranks built when
get_lineage is caled |
(module
(function_definition
(function_name_load_data) function_name_load_data
(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
(assignment
(identifier_argpos) identifier_argpos
(dictionary_comprehension
(pair
(subscript
(subscript
(identifier_v) identifier_v
(string_'extras') string_'extras'
)subscript
(string_'argpos') string_'argpos'
)subscript
(identifier_k) identifier_k
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(comparison_operator
(string_'argpos') string_'argpos'
(subscript
(identifier_v) identifier_v
(string_'extras') string_'extras'
)subscript
)comparison_operator
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_dict) identifier_dict
(argument_list
(dictionary_comprehension
(pair
(subscript
(identifier_argpos) identifier_argpos
(identifier_n) identifier_n
)subscript
(identifier_a) identifier_a
)pair
(for_in_clause
(pattern_list
(identifier_n) identifier_n
(identifier_a) identifier_a
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)for_in_clause
)dictionary_comprehension
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_apply_units_to_cache) identifier_apply_units_to_cache
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Collects positional and keyword arguments into `data` and applies units.
:return: data |
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_cls) identifier_cls
(identifier_obj) identifier_obj
(identifier_file) identifier_file
(default_parameter
(identifier_protocol) identifier_protocol
(integer_0) integer_0
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier_save_option_state) identifier_save_option_state
)attribute
(True) True
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_obj) identifier_obj
(identifier_file) identifier_file
(keyword_argument
(identifier_protocol) identifier_protocol
(identifier_protocol) identifier_protocol
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_cls) identifier_cls
(identifier_save_option_state) identifier_save_option_state
)attribute
(False) False
)assignment
)expression_statement
)block
)function_definition
)module | Equivalent to pickle.dump except that the HoloViews option
tree is saved appropriately. |
(module
(function_definition
(function_name_get_grid) function_name_get_grid
(parameters
(identifier_start) identifier_start
(identifier_end) identifier_end
(default_parameter
(identifier_nsteps) identifier_nsteps
(integer_100) integer_100
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_step) identifier_step
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_end) identifier_end
(identifier_start) identifier_start
)binary_operator
)parenthesized_expression
(call
(identifier_float) identifier_float
(argument_list
(identifier_nsteps) identifier_nsteps
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(list_comprehension
(binary_operator
(identifier_start) identifier_start
(binary_operator
(identifier_i) identifier_i
(identifier_step) identifier_step
)binary_operator
)binary_operator
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_xrange) identifier_xrange
(argument_list
(binary_operator
(identifier_nsteps) identifier_nsteps
(integer_1) integer_1
)binary_operator
)argument_list
)call
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Generates a equal distanced list of float values with nsteps+1 values, begining start and ending with end.
:param start: the start value of the generated list.
:type float
:param end: the end value of the generated list.
:type float
:param nsteps: optional the number of steps (default=100), i.e. the generated list contains nstep+1 values.
:type int |
(module
(function_definition
(function_name_SpawnProcess) function_name_SpawnProcess
(parameters
(identifier_popen_args) identifier_popen_args
(default_parameter
(identifier_passwd) identifier_passwd
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_passwd) identifier_passwd
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(identifier_popen_args) identifier_popen_args
(keyword_argument
(identifier_stdin) identifier_stdin
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_PIPE) identifier_PIPE
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_communicate) identifier_communicate
)attribute
(argument_list
(keyword_argument
(identifier_input) identifier_input
(identifier_passwd) identifier_passwd
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_Popen) identifier_Popen
)attribute
(argument_list
(identifier_popen_args) identifier_popen_args
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_p) identifier_p
(identifier_returncode) identifier_returncode
)attribute
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ErrorDuringRepacking) identifier_ErrorDuringRepacking
(argument_list
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_popen_args) identifier_popen_args
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Spawns a process. |
(module
(function_definition
(function_name_register_signals) function_name_register_signals
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_index) identifier_index
(attribute
(identifier_self) identifier_self
(identifier_indexes) identifier_indexes
)attribute
(block
(if_statement
(attribute
(identifier_index) identifier_index
(identifier_object_type) identifier_object_type
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__connect_signal) identifier__connect_signal
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Register signals for all indexes. |
(module
(function_definition
(function_name_provision_system_user) function_name_provision_system_user
(parameters
(identifier_items) identifier_items
(identifier_database_name) identifier_database_name
(default_parameter
(identifier_overwrite) identifier_overwrite
(False) False
)default_parameter
(default_parameter
(identifier_clear) identifier_clear
(False) False
)default_parameter
(default_parameter
(identifier_skip_user_check) identifier_skip_user_check
(False) False
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_hfos) identifier_hfos
(identifier_provisions) identifier_provisions
(identifier_base) identifier_base
)dotted_name
(dotted_name
(identifier_provisionList) identifier_provisionList
)dotted_name
)import_from_statement
(import_from_statement
(dotted_name
(identifier_hfos) identifier_hfos
(identifier_database) identifier_database
)dotted_name
(dotted_name
(identifier_objectmodels) identifier_objectmodels
)dotted_name
)import_from_statement
(if_statement
(comparison_operator
(identifier_overwrite) identifier_overwrite
(True) True
)comparison_operator
(block
(expression_statement
(call
(identifier_hfoslog) identifier_hfoslog
(argument_list
(string_'Refusing to overwrite system user!') string_'Refusing to overwrite system user!'
(keyword_argument
(identifier_lvl) identifier_lvl
(identifier_warn) identifier_warn
)keyword_argument
(keyword_argument
(identifier_emitter) identifier_emitter
(string_'PROVISIONS') string_'PROVISIONS'
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_overwrite) identifier_overwrite
(False) False
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_system_user_count) identifier_system_user_count
(call
(attribute
(subscript
(identifier_objectmodels) identifier_objectmodels
(string_'user') string_'user'
)subscript
(identifier_count) identifier_count
)attribute
(argument_list
(dictionary
(pair
(string_'name') string_'name'
(string_'System') string_'System'
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_system_user_count) identifier_system_user_count
(integer_0) integer_0
)comparison_operator
(comparison_operator
(identifier_clear) identifier_clear
(False) False
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(identifier_provisionList) identifier_provisionList
(argument_list
(identifier_Users) identifier_Users
(string_'user') string_'user'
(identifier_overwrite) identifier_overwrite
(identifier_clear) identifier_clear
(keyword_argument
(identifier_skip_user_check) identifier_skip_user_check
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_hfoslog) identifier_hfoslog
(argument_list
(string_'Provisioning: Users: Done.') string_'Provisioning: Users: Done.'
(keyword_argument
(identifier_emitter) identifier_emitter
(string_"PROVISIONS") string_"PROVISIONS"
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_hfoslog) identifier_hfoslog
(argument_list
(string_'System user already present.') string_'System user already present.'
(keyword_argument
(identifier_lvl) identifier_lvl
(identifier_warn) identifier_warn
)keyword_argument
(keyword_argument
(identifier_emitter) identifier_emitter
(string_'PROVISIONS') string_'PROVISIONS'
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Provision a system user |
(module
(function_definition
(function_name_trigger) function_name_trigger
(parameters
(identifier_self) identifier_self
(identifier_username) identifier_username
(identifier_project) identifier_project
(identifier_branch) identifier_branch
(dictionary_splat_pattern
(identifier_build_params) identifier_build_params
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(string_'POST') string_'POST'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(parenthesized_expression
(call
(attribute
(concatenated_string
(string_'/project/{username}/{project}/tree/{branch}?') string_'/project/{username}/{project}/tree/{branch}?'
(string_'circle-token={token}') string_'circle-token={token}'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(identifier_username) identifier_username
)keyword_argument
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_branch) identifier_branch
(identifier_branch) identifier_branch
)keyword_argument
(keyword_argument
(identifier_token) identifier_token
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_api_token) identifier_api_token
)attribute
)keyword_argument
)argument_list
)call
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_build_params) identifier_build_params
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_json_data) identifier_json_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_url) identifier_url
(keyword_argument
(identifier_build_parameters) identifier_build_parameters
(identifier_build_params) identifier_build_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_json_data) identifier_json_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(identifier_method) identifier_method
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_json_data) identifier_json_data
)return_statement
)block
)function_definition
)module | Trigger new build and return a summary of the build. |
(module
(function_definition
(function_name_run) function_name_run
(parameters
(identifier_analysis) identifier_analysis
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_info) identifier_info
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'analysis') string_'analysis'
(identifier_analysis) identifier_analysis
)pair
(pair
(string_'path') string_'path'
(identifier_path) identifier_path
)pair
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'info') string_'info'
(identifier_info) identifier_info
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_main) identifier_main
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Run a single analysis.
:param Analysis analysis: Analysis class to run.
:param str path: Path of analysis. Can be `__file__`.
:param str name: Name of the analysis.
:param dict info: Optional entries are ``version``, ``title``,
``readme``, ...
:param dict static: Map[url regex, root-folder] to serve static content. |
(module
(function_definition
(function_name_compare) function_name_compare
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
(default_parameter
(identifier_t_threshold) identifier_t_threshold
(float_1e-3) float_1e-3
)default_parameter
(default_parameter
(identifier_r_threshold) identifier_r_threshold
(float_1e-3) float_1e-3
)default_parameter
)parameters
(block
(return_statement
(boolean_operator
(comparison_operator
(call
(identifier_compute_rmsd) identifier_compute_rmsd
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_t) identifier_t
)attribute
(attribute
(identifier_other) identifier_other
(identifier_t) identifier_t
)attribute
)argument_list
)call
(identifier_t_threshold) identifier_t_threshold
)comparison_operator
(comparison_operator
(call
(identifier_compute_rmsd) identifier_compute_rmsd
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_r) identifier_r
)attribute
(attribute
(identifier_other) identifier_other
(identifier_r) identifier_r
)attribute
)argument_list
)call
(identifier_r_threshold) identifier_r_threshold
)comparison_operator
)boolean_operator
)return_statement
)block
)function_definition
)module | Compare two transformations
The RMSD values of the rotation matrices and the translation vectors
are computed. The return value is True when the RMSD values are below
the thresholds, i.e. when the two transformations are almost
identical. |
(module
(function_definition
(function_name_point_on_line) function_name_point_on_line
(parameters
(identifier_point) identifier_point
(identifier_line_start) identifier_line_start
(identifier_line_end) identifier_line_end
(default_parameter
(identifier_accuracy) identifier_accuracy
(float_50.) float_50.
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_length) identifier_length
(call
(identifier_dist) identifier_dist
(argument_list
(identifier_line_start) identifier_line_start
(identifier_line_end) identifier_line_end
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ds) identifier_ds
(binary_operator
(identifier_length) identifier_length
(call
(identifier_float) identifier_float
(argument_list
(identifier_accuracy) identifier_accuracy
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(unary_operator
(identifier_ds) identifier_ds
)unary_operator
(parenthesized_expression
(binary_operator
(binary_operator
(call
(identifier_dist) identifier_dist
(argument_list
(identifier_line_start) identifier_line_start
(identifier_point) identifier_point
)argument_list
)call
(call
(identifier_dist) identifier_dist
(argument_list
(identifier_point) identifier_point
(identifier_line_end) identifier_line_end
)argument_list
)call
)binary_operator
(identifier_length) identifier_length
)binary_operator
)parenthesized_expression
(identifier_ds) identifier_ds
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Checks whether a point lies on a line
The function checks whether the point "point" (P) lies on the line defined by its starting point line_start (A) and
its end point line_end (B).
This is done by comparing the distance of [AB] with the sum of the distances [AP] and [PB]. If the difference is
smaller than [AB] / accuracy, the point P is assumed to be on the line. By increasing the value of accuracy (the
default is 50), the tolerance is decreased.
:param point: Point to be checked (tuple with x any y coordinate)
:param line_start: Starting point of the line (tuple with x any y coordinate)
:param line_end: End point of the line (tuple with x any y coordinate)
:param accuracy: The higher this value, the less distance is tolerated
:return: True if the point is one the line, False if not |
(module
(function_definition
(function_name_calc_secondary_parameters) function_name_calc_secondary_parameters
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_a) identifier_a
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_x) identifier_x
)attribute
(parenthesized_expression
(binary_operator
(float_2.) float_2.
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_d) identifier_d
)attribute
(float_.5) float_.5
)binary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_b) identifier_b
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_u) identifier_u
)attribute
(parenthesized_expression
(binary_operator
(float_2.) float_2.
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_d) identifier_d
)attribute
(float_.5) float_.5
)binary_operator
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | Determine the values of the secondary parameters `a` and `b`. |
(module
(function_definition
(function_name_catch_result) function_name_catch_result
(parameters
(identifier_task_func) identifier_task_func
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_task_func) identifier_task_func
(keyword_argument
(identifier_assigned) identifier_assigned
(call
(identifier_available_attrs) identifier_available_attrs
(argument_list
(identifier_task_func) identifier_task_func
)argument_list
)call
)keyword_argument
)argument_list
)call
)decorator
(function_definition
(function_name_dec) function_name_dec
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_orig_stdout) identifier_orig_stdout
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(assignment
(identifier_content) identifier_content
(call
(identifier_StringIO) identifier_StringIO
(argument_list
)argument_list
)call
)assignment
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_task_response) identifier_task_response
(call
(identifier_task_func) identifier_task_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_stdout) identifier_stdout
)attribute
(identifier_orig_stdout) identifier_orig_stdout
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_content) identifier_content
(identifier_seek) identifier_seek
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_task_response) identifier_task_response
(string_'stdout') string_'stdout'
)subscript
(call
(attribute
(identifier_content) identifier_content
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_task_response) identifier_task_response
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_dec) identifier_dec
)return_statement
)block
)function_definition
)module | Catch printed result from Celery Task and return it in task response |
(module
(function_definition
(function_name__warnCount) function_name__warnCount
(parameters
(identifier_self) identifier_self
(identifier_warnings) identifier_warnings
(default_parameter
(identifier_warningCount) identifier_warningCount
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_warningCount) identifier_warningCount
)not_operator
(block
(expression_statement
(assignment
(identifier_warningCount) identifier_warningCount
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_warning) identifier_warning
(identifier_warnings) identifier_warnings
(block
(expression_statement
(assignment
(identifier_wID) identifier_wID
(subscript
(identifier_warning) identifier_warning
(string_"warning_id") string_"warning_id"
)subscript
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_warningCount) identifier_warningCount
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_wID) identifier_wID
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_warningCount) identifier_warningCount
(identifier_wID) identifier_wID
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_warningCount) identifier_warningCount
(identifier_wID) identifier_wID
)subscript
(string_"count") string_"count"
)subscript
(integer_1) integer_1
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_warningCount) identifier_warningCount
(identifier_wID) identifier_wID
)subscript
(string_"message") string_"message"
)subscript
(call
(attribute
(identifier_warning) identifier_warning
(identifier_get) identifier_get
)attribute
(argument_list
(string_"warning_message") string_"warning_message"
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(subscript
(subscript
(identifier_warningCount) identifier_warningCount
(identifier_wID) identifier_wID
)subscript
(string_"count") string_"count"
)subscript
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_warningCount) identifier_warningCount
)return_statement
)block
)function_definition
)module | Calculate the count of each warning, being given a list of them.
@param warnings: L{list} of L{dict}s that come from
L{tools.parsePyLintWarnings}.
@param warningCount: A L{dict} produced by this method previously, if
you are adding to the warnings.
@return: L{dict} of L{dict}s for the warnings. |
(module
(function_definition
(function_name_workspaces) function_name_workspaces
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_index) identifier_index
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_c) identifier_c
(call
(attribute
(identifier_self) identifier_self
(identifier_centralWidget) identifier_centralWidget
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_index) identifier_index
(None) None
)comparison_operator
(block
(return_statement
(generator_expression
(call
(attribute
(identifier_c) identifier_c
(identifier_widget) identifier_widget
)attribute
(argument_list
(identifier_n) identifier_n
)argument_list
)call
(for_in_clause
(identifier_n) identifier_n
(call
(identifier_range) identifier_range
(argument_list
(call
(attribute
(identifier_c) identifier_c
(identifier_count) identifier_count
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)for_in_clause
)generator_expression
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_c) identifier_c
(identifier_widget) identifier_widget
)attribute
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | return generator for all all workspace instances |
(module
(function_definition
(function_name_delete_network_precommit) function_name_delete_network_precommit
(parameters
(identifier_self) identifier_self
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(identifier_segments) identifier_segments
(attribute
(identifier_context) identifier_context
(identifier_network_segments) identifier_network_segments
)attribute
)assignment
)expression_statement
(for_statement
(identifier_segment) identifier_segment
(identifier_segments) identifier_segments
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_check_segment) identifier_check_segment
)attribute
(argument_list
(identifier_segment) identifier_segment
)argument_list
)call
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_vlan_id) identifier_vlan_id
(call
(attribute
(identifier_segment) identifier_segment
(identifier_get) identifier_get
)attribute
(argument_list
(attribute
(identifier_api) identifier_api
(identifier_SEGMENTATION_ID) identifier_SEGMENTATION_ID
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_vlan_id) identifier_vlan_id
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ucsm_db) identifier_ucsm_db
)attribute
(identifier_delete_vlan_entry) identifier_delete_vlan_entry
)attribute
(argument_list
(identifier_vlan_id) identifier_vlan_id
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(list_comprehension
(True) True
(for_in_clause
(pattern_list
(identifier_ip) identifier_ip
(identifier_ucsm) identifier_ucsm
)pattern_list
(call
(attribute
(attribute
(attribute
(identifier_CONF) identifier_CONF
(identifier_ml2_cisco_ucsm) identifier_ml2_cisco_ucsm
)attribute
(identifier_ucsms) identifier_ucsms
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(attribute
(identifier_ucsm) identifier_ucsm
(identifier_sp_template_list) identifier_sp_template_list
)attribute
)if_clause
)list_comprehension
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ucsm_db) identifier_ucsm_db
)attribute
(identifier_delete_sp_template_for_vlan) identifier_delete_sp_template_for_vlan
)attribute
(argument_list
(identifier_vlan_id) identifier_vlan_id
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(identifier_any) identifier_any
(argument_list
(list_comprehension
(True) True
(for_in_clause
(pattern_list
(identifier_ip) identifier_ip
(identifier_ucsm) identifier_ucsm
)pattern_list
(call
(attribute
(attribute
(attribute
(identifier_CONF) identifier_CONF
(identifier_ml2_cisco_ucsm) identifier_ml2_cisco_ucsm
)attribute
(identifier_ucsms) identifier_ucsms
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(attribute
(identifier_ucsm) identifier_ucsm
(identifier_vnic_template_list) identifier_vnic_template_list
)attribute
)if_clause
)list_comprehension
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ucsm_db) identifier_ucsm_db
)attribute
(identifier_delete_vnic_template_for_vlan) identifier_delete_vnic_template_for_vlan
)attribute
(argument_list
(identifier_vlan_id) identifier_vlan_id
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Delete entry corresponding to Network's VLAN in the DB. |
(module
(function_definition
(function_name_backprop) function_name_backprop
(parameters
(identifier_self) identifier_self
(identifier_input_data) identifier_input_data
(identifier_targets) identifier_targets
(default_parameter
(identifier_cache) identifier_cache
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_cache) identifier_cache
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_activations) identifier_activations
(identifier_cache) identifier_cache
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_activations) identifier_activations
(call
(attribute
(identifier_self) identifier_self
(identifier_feed_forward) identifier_feed_forward
)attribute
(argument_list
(identifier_input_data) identifier_input_data
(keyword_argument
(identifier_prediction) identifier_prediction
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_activations) identifier_activations
(identifier_shape) identifier_shape
)attribute
(attribute
(identifier_targets) identifier_targets
(identifier_shape) identifier_shape
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Activations (shape = %s) and targets (shape = %s) are different sizes') string_'Activations (shape = %s) and targets (shape = %s) are different sizes'
(tuple
(attribute
(identifier_activations) identifier_activations
(identifier_shape) identifier_shape
)attribute
(attribute
(identifier_targets) identifier_targets
(identifier_shape) identifier_shape
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_delta) identifier_delta
(call
(identifier_substract_matrix) identifier_substract_matrix
(argument_list
(identifier_activations) identifier_activations
(identifier_targets) identifier_targets
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_nan_to_zeros) identifier_nan_to_zeros
(argument_list
(identifier_delta) identifier_delta
(identifier_delta) identifier_delta
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_df_W) identifier_df_W
(call
(attribute
(identifier_linalg) identifier_linalg
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_input_data) identifier_input_data
(identifier_delta) identifier_delta
(keyword_argument
(identifier_transa) identifier_transa
(string_'T') string_'T'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df_b) identifier_df_b
(call
(identifier_matrix_sum_out_axis) identifier_matrix_sum_out_axis
(argument_list
(identifier_delta) identifier_delta
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_df_input) identifier_df_input
(call
(attribute
(identifier_linalg) identifier_linalg
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_delta) identifier_delta
(attribute
(identifier_self) identifier_self
(identifier_W) identifier_W
)attribute
(keyword_argument
(identifier_transb) identifier_transb
(string_'T') string_'T'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_l1_penalty_weight) identifier_l1_penalty_weight
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_df_W) identifier_df_W
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_l1_penalty_weight) identifier_l1_penalty_weight
)attribute
(call
(identifier_sign) identifier_sign
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_W) identifier_W
)attribute
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_l2_penalty_weight) identifier_l2_penalty_weight
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_df_W) identifier_df_W
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_l2_penalty_weight) identifier_l2_penalty_weight
)attribute
(attribute
(identifier_self) identifier_self
(identifier_W) identifier_W
)attribute
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(tuple
(identifier_df_W) identifier_df_W
(identifier_df_b) identifier_df_b
)tuple
(identifier_df_input) identifier_df_input
)expression_list
)return_statement
)block
)function_definition
)module | Backpropagate through the logistic layer.
**Parameters:**
input_data : ``GPUArray``
Inpute data to compute activations for.
targets : ``GPUArray``
The target values of the units.
cache : list of ``GPUArray``
Cache obtained from forward pass. If the cache is
provided, then the activations are not recalculated.
**Returns:**
gradients : tuple of ``GPUArray``
Gradients with respect to the weights and biases in the
form ``(df_weights, df_biases)``.
df_input : ``GPUArray``
Gradients with respect to the input. |
(module
(function_definition
(function_name__keyboard_access) function_name__keyboard_access
(parameters
(identifier_self) identifier_self
(identifier_element) identifier_element
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_element) identifier_element
(identifier_has_attribute) identifier_has_attribute
)attribute
(argument_list
(string_'tabindex') string_'tabindex'
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_tag) identifier_tag
(call
(attribute
(identifier_element) identifier_element
(identifier_get_tag_name) identifier_get_tag_name
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'A') string_'A'
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(not_operator
(call
(attribute
(identifier_element) identifier_element
(identifier_has_attribute) identifier_has_attribute
)attribute
(argument_list
(string_'href') string_'href'
)argument_list
)call
)not_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_element) identifier_element
(identifier_set_attribute) identifier_set_attribute
)attribute
(argument_list
(string_'tabindex') string_'tabindex'
(string_'0') string_'0'
)argument_list
)call
)expression_statement
)block
(elif_clause
(parenthesized_expression
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'A') string_'A'
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'INPUT') string_'INPUT'
)comparison_operator
)parenthesized_expression
)boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'BUTTON') string_'BUTTON'
)comparison_operator
)parenthesized_expression
)boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'SELECT') string_'SELECT'
)comparison_operator
)parenthesized_expression
)boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_tag) identifier_tag
(string_'TEXTAREA') string_'TEXTAREA'
)comparison_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_element) identifier_element
(identifier_set_attribute) identifier_set_attribute
)attribute
(argument_list
(string_'tabindex') string_'tabindex'
(string_'0') string_'0'
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module | Provide keyboard access for element, if it not has.
:param element: The element.
:type element: hatemile.util.html.htmldomelement.HTMLDOMElement |
(module
(function_definition
(function_name_get_list) function_name_get_list
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(default_parameter
(identifier_pipeline) identifier_pipeline
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_pipeline) identifier_pipeline
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__pipeline) identifier__pipeline
)attribute
(identifier_lrange) identifier_lrange
)attribute
(argument_list
(identifier_key) identifier_key
(integer_0) integer_0
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__db) identifier__db
)attribute
(identifier_lrange) identifier_lrange
)attribute
(argument_list
(identifier_key) identifier_key
(integer_0) integer_0
(unary_operator
(integer_1) integer_1
)unary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get all the value in the list stored at key.
Args:
key (str): Key where the list is stored.
pipeline (bool): True, start a transaction block. Default false.
Returns:
list: values in the list ordered by list index |
(module
(function_definition
(function_name_add_stream) function_name_add_stream
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_tpld_id) identifier_tpld_id
(None) None
)default_parameter
(default_parameter
(identifier_state) identifier_state
(attribute
(identifier_XenaStreamState) identifier_XenaStreamState
(identifier_enabled) identifier_enabled
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier_XenaStream) identifier_XenaStream
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_index) identifier_index
(call
(attribute
(string_'{}/{}') string_'{}/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_index) identifier_index
)attribute
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_streams) identifier_streams
)attribute
)argument_list
)call
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier__create) identifier__create
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tpld_id) identifier_tpld_id
(conditional_expression
(identifier_tpld_id) identifier_tpld_id
(identifier_tpld_id) identifier_tpld_id
(attribute
(identifier_XenaStream) identifier_XenaStream
(identifier_next_tpld_id) identifier_next_tpld_id
)attribute
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_set_attributes) identifier_set_attributes
)attribute
(argument_list
(keyword_argument
(identifier_ps_comment) identifier_ps_comment
(call
(attribute
(string_'"{}"') string_'"{}"'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_stream) identifier_stream
(identifier_name) identifier_name
)attribute
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_ps_tpldid) identifier_ps_tpldid
(identifier_tpld_id) identifier_tpld_id
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_XenaStream) identifier_XenaStream
(identifier_next_tpld_id) identifier_next_tpld_id
)attribute
(call
(identifier_max) identifier_max
(argument_list
(binary_operator
(attribute
(identifier_XenaStream) identifier_XenaStream
(identifier_next_tpld_id) identifier_next_tpld_id
)attribute
(integer_1) integer_1
)binary_operator
(binary_operator
(identifier_tpld_id) identifier_tpld_id
(integer_1) integer_1
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_stream) identifier_stream
(identifier_set_state) identifier_set_state
)attribute
(argument_list
(identifier_state) identifier_state
)argument_list
)call
)expression_statement
(return_statement
(identifier_stream) identifier_stream
)return_statement
)block
)function_definition
)module | Add stream.
:param name: stream description.
:param tpld_id: TPLD ID. If None the a unique value will be set.
:param state: new stream state.
:type state: xenamanager.xena_stream.XenaStreamState
:return: newly created stream.
:rtype: xenamanager.xena_stream.XenaStream |
(module
(function_definition
(function_name_trk50) function_name_trk50
(parameters
(identifier_msg) identifier_msg
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_hex2bin) identifier_hex2bin
(argument_list
(call
(identifier_data) identifier_data
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_d) identifier_d
(integer_11) integer_11
)subscript
(string_'0') string_'0'
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sign) identifier_sign
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_d) identifier_d
(integer_12) integer_12
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(call
(identifier_bin2int) identifier_bin2int
(argument_list
(subscript
(identifier_d) identifier_d
(slice
(integer_13) integer_13
(colon) colon
(integer_23) integer_23
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_sign) identifier_sign
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(binary_operator
(identifier_value) identifier_value
(integer_1024) integer_1024
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_trk) identifier_trk
(binary_operator
(binary_operator
(identifier_value) identifier_value
(float_90.0) float_90.0
)binary_operator
(float_512.0) float_512.0
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_trk) identifier_trk
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_trk) identifier_trk
(binary_operator
(integer_360) integer_360
(identifier_trk) identifier_trk
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_round) identifier_round
(argument_list
(identifier_trk) identifier_trk
(integer_3) integer_3
)argument_list
)call
)return_statement
)block
)function_definition
)module | True track angle, BDS 5,0 message
Args:
msg (String): 28 bytes hexadecimal message (BDS50) string
Returns:
float: angle in degrees to true north (from 0 to 360) |
(module
(function_definition
(function_name_get_version) function_name_get_version
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_state) identifier_state
(None) None
)default_parameter
(default_parameter
(identifier_date) identifier_date
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_version_model) identifier_version_model
(attribute
(attribute
(identifier_self) identifier_self
(identifier__meta) identifier__meta
)attribute
(identifier__version_model) identifier__version_model
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_q) identifier_q
(call
(attribute
(attribute
(identifier_version_model) identifier_version_model
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_object_id) identifier_object_id
(attribute
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_state) identifier_state
(block
(expression_statement
(assignment
(identifier_q) identifier_q
(call
(attribute
(attribute
(identifier_version_model) identifier_version_model
(identifier_normal) identifier_normal
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_object_id) identifier_object_id
(attribute
(identifier_self) identifier_self
(identifier_pk) identifier_pk
)attribute
)keyword_argument
(keyword_argument
(identifier_state) identifier_state
(identifier_state) identifier_state
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_date) identifier_date
(block
(expression_statement
(assignment
(identifier_q) identifier_q
(call
(attribute
(identifier_q) identifier_q
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_date_published__lte) identifier_date_published__lte
(identifier_date) identifier_date
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_q) identifier_q
(call
(attribute
(identifier_q) identifier_q
(identifier_order_by) identifier_order_by
)attribute
(argument_list
(string_'-date_published') string_'-date_published'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(subscript
(identifier_q) identifier_q
(slice
(colon) colon
(integer_1) integer_1
)slice
)subscript
)assignment
)expression_statement
(if_statement
(identifier_results) identifier_results
(block
(return_statement
(subscript
(identifier_results) identifier_results
(integer_0) integer_0
)subscript
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get a particular version of an item
:param state: The state you want to get.
:param date: Get a version that was published before or on this date. |
(module
(function_definition
(function_name_exception) function_name_exception
(parameters
(identifier_self) identifier_self
(identifier_url) identifier_url
(identifier_exception) identifier_exception
)parameters
(block
(return_statement
(tuple
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_ttl) identifier_ttl
)attribute
)binary_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_factory) identifier_factory
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)tuple
)return_statement
)block
)function_definition
)module | What to return when there's an exception. |
(module
(function_definition
(function_name_remove_label) function_name_remove_label
(parameters
(identifier_self) identifier_self
(identifier_label) identifier_label
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Removing label "{}"') string_'Removing label "{}"'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_label) identifier_label
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(call
(attribute
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(attribute
(identifier_constants) identifier_constants
(identifier_LABEL_FIELDNAME) identifier_LABEL_FIELDNAME
)attribute
)subscript
(identifier_value_counts) identifier_value_counts
)attribute
(argument_list
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_label) identifier_label
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier__matches) identifier__matches
)attribute
(attribute
(identifier_constants) identifier_constants
(identifier_LABEL_FIELDNAME) identifier_LABEL_FIELDNAME
)attribute
)subscript
(identifier_label) identifier_label
)comparison_operator
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Removed {} labelled results') string_'Removed {} labelled results'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_count) identifier_count
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Removes all results rows associated with `label`.
:param label: label to filter results on
:type label: `str` |
(module
(function_definition
(function_name_delete) function_name_delete
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__sync) identifier__sync
)attribute
)not_operator
(block
(delete_statement
(attribute
(identifier_self) identifier_self
(identifier__buffer) identifier__buffer
)attribute
)delete_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_rmtree) identifier_rmtree
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cache_dir) identifier_cache_dir
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Delete the write buffer and cache directory. |
(module
(function_definition
(function_name__GetDatabaseAccount) function_name__GetDatabaseAccount
(parameters
(identifier_self) identifier_self
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_database_account) identifier_database_account
(call
(attribute
(identifier_self) identifier_self
(identifier__GetDatabaseAccountStub) identifier__GetDatabaseAccountStub
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_DefaultEndpoint) identifier_DefaultEndpoint
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_database_account) identifier_database_account
)return_statement
)block
(except_clause
(attribute
(identifier_errors) identifier_errors
(identifier_HTTPFailure) identifier_HTTPFailure
)attribute
(block
(for_statement
(identifier_location_name) identifier_location_name
(attribute
(identifier_self) identifier_self
(identifier_PreferredLocations) identifier_PreferredLocations
)attribute
(block
(expression_statement
(assignment
(identifier_locational_endpoint) identifier_locational_endpoint
(call
(attribute
(identifier__GlobalEndpointManager) identifier__GlobalEndpointManager
(identifier_GetLocationalEndpoint) identifier_GetLocationalEndpoint
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_DefaultEndpoint) identifier_DefaultEndpoint
)attribute
(identifier_location_name) identifier_location_name
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_database_account) identifier_database_account
(call
(attribute
(identifier_self) identifier_self
(identifier__GetDatabaseAccountStub) identifier__GetDatabaseAccountStub
)attribute
(argument_list
(identifier_locational_endpoint) identifier_locational_endpoint
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_database_account) identifier_database_account
)return_statement
)block
(except_clause
(attribute
(identifier_errors) identifier_errors
(identifier_HTTPFailure) identifier_HTTPFailure
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Gets the database account first by using the default endpoint, and if that doesn't returns
use the endpoints for the preferred locations in the order they are specified to get
the database account. |
(module
(function_definition
(function_name_get_corpus) function_name_get_corpus
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_tokenizer) identifier_tokenizer
(call
(identifier_get_tokenizer) identifier_get_tokenizer
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_tacl) identifier_tacl
(identifier_Corpus) identifier_Corpus
)attribute
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_corpus) identifier_corpus
)attribute
(identifier_tokenizer) identifier_tokenizer
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns a `tacl.Corpus`. |
(module
(function_definition
(function_name_get_all_locators) function_name_get_all_locators
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_locators) identifier_locators
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lock) identifier__lock
)attribute
(identifier_acquire) identifier_acquire
)attribute
(argument_list
)argument_list
)call
)expression_statement
(try_statement
(block
(for_statement
(identifier_reference) identifier_reference
(attribute
(identifier_self) identifier_self
(identifier__references) identifier__references
)attribute
(block
(expression_statement
(call
(attribute
(identifier_locators) identifier_locators
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_reference) identifier_reference
(identifier_get_locator) identifier_get_locator
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__lock) identifier__lock
)attribute
(identifier_release) identifier_release
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
(return_statement
(identifier_locators) identifier_locators
)return_statement
)block
)function_definition
)module | Gets locators for all registered component references in this reference map.
:return: a list with component locators. |
(module
(function_definition
(function_name_fromxlsx) function_name_fromxlsx
(parameters
(identifier_filename) identifier_filename
(default_parameter
(identifier_sheet) identifier_sheet
(None) None
)default_parameter
(default_parameter
(identifier_range_string) identifier_range_string
(None) None
)default_parameter
(default_parameter
(identifier_row_offset) identifier_row_offset
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_column_offset) identifier_column_offset
(integer_0) integer_0
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(identifier_XLSXView) identifier_XLSXView
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_sheet) identifier_sheet
(identifier_sheet) identifier_sheet
)keyword_argument
(keyword_argument
(identifier_range_string) identifier_range_string
(identifier_range_string) identifier_range_string
)keyword_argument
(keyword_argument
(identifier_row_offset) identifier_row_offset
(identifier_row_offset) identifier_row_offset
)keyword_argument
(keyword_argument
(identifier_column_offset) identifier_column_offset
(identifier_column_offset) identifier_column_offset
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extract a table from a sheet in an Excel .xlsx file.
N.B., the sheet name is case sensitive.
The `sheet` argument can be omitted, in which case the first sheet in
the workbook is used by default.
The `range_string` argument can be used to provide a range string
specifying a range of cells to extract.
The `row_offset` and `column_offset` arguments can be used to
specify offsets.
Any other keyword arguments are passed through to
:func:`openpyxl.load_workbook()`. |
(module
(function_definition
(function_name_format_raw_script) function_name_format_raw_script
(parameters
(identifier_raw_script) identifier_raw_script
)parameters
(block
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY2) identifier_PY2
)attribute
(block
(expression_statement
(assignment
(identifier_script) identifier_script
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(attribute
(identifier_arg) identifier_arg
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
(for_in_clause
(identifier_arg) identifier_arg
(identifier_raw_script) identifier_raw_script
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_script) identifier_script
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_raw_script) identifier_raw_script
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(attribute
(identifier_script) identifier_script
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates single script from a list of script parts.
:type raw_script: [basestring]
:rtype: basestring |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_self) identifier_self
(identifier_mapdict) identifier_mapdict
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_name_format) identifier_name_format
)attribute
(subscript
(identifier_mapdict) identifier_mapdict
(string_"identifier") string_"identifier"
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__fro) identifier__fro
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(call
(attribute
(identifier_k) identifier_k
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(subscript
(identifier_mapdict) identifier_mapdict
(string_"fro") string_"fro"
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__to) identifier__to
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(list_comprehension
(tuple
(call
(attribute
(identifier_k) identifier_k
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_v) identifier_v
)tuple
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(subscript
(identifier_mapdict) identifier_mapdict
(string_"to") string_"to"
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__fro) identifier__fro
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__to) identifier__to
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_ConverterError) identifier_ConverterError
(argument_list
(string_"Missing specifications") string_"Missing specifications"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__fro) identifier__fro
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__to) identifier__to
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_adjust) identifier_adjust
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Import the attribute map from a dictionary
:param mapdict: The dictionary |
(module
(function_definition
(function_name_select_tmpltbank_class) function_name_select_tmpltbank_class
(parameters
(identifier_curr_exe) identifier_curr_exe
)parameters
(block
(expression_statement
(assignment
(identifier_exe_to_class_map) identifier_exe_to_class_map
(dictionary
(pair
(string_'pycbc_geom_nonspinbank') string_'pycbc_geom_nonspinbank'
(identifier_PyCBCTmpltbankExecutable) identifier_PyCBCTmpltbankExecutable
)pair
(pair
(string_'pycbc_aligned_stoch_bank') string_'pycbc_aligned_stoch_bank'
(identifier_PyCBCTmpltbankExecutable) identifier_PyCBCTmpltbankExecutable
)pair
)dictionary
)assignment
)expression_statement
(try_statement
(block
(return_statement
(subscript
(identifier_exe_to_class_map) identifier_exe_to_class_map
(identifier_curr_exe) identifier_curr_exe
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_NotImplementedError) identifier_NotImplementedError
(argument_list
(binary_operator
(string_"No job class exists for executable %s, exiting") string_"No job class exists for executable %s, exiting"
(identifier_curr_exe) identifier_curr_exe
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | This function returns a class that is appropriate for setting up
template bank jobs within workflow.
Parameters
----------
curr_exe : string
The name of the executable to be used for generating template banks.
Returns
--------
exe_class : Sub-class of pycbc.workflow.core.Executable that holds utility
functions appropriate for the given executable. Instances of the class
('jobs') **must** have methods
* job.create_node()
and
* job.get_valid_times(ifo, ) |
(module
(function_definition
(function_name_save) function_name_save
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_r_session) identifier_r_session
)attribute
(identifier_put) identifier_put
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_document_url) identifier_document_url
)attribute
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_self) identifier_self
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Content-Type') string_'Content-Type'
(string_'application/json') string_'application/json'
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_resp) identifier_resp
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Saves changes made to the locally cached SecurityDocument object's data
structures to the remote database. |
(module
(function_definition
(function_name__generate_username) function_name__generate_username
(parameters
(identifier_self) identifier_self
)parameters
(block
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(attribute
(identifier_username) identifier_username
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(subscript
(identifier_username) identifier_username
(slice
(colon) colon
(unary_operator
(integer_2) integer_2
)unary_operator
)slice
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_User) identifier_User
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_username) identifier_username
(identifier_username) identifier_username
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_User) identifier_User
(identifier_DoesNotExist) identifier_DoesNotExist
)attribute
(block
(return_statement
(identifier_username) identifier_username
)return_statement
)block
)except_clause
)try_statement
)block
)while_statement
)block
)function_definition
)module | Generate a unique username |
(module
(function_definition
(function_name_dummy_batch) function_name_dummy_batch
(parameters
(typed_parameter
(identifier_m) identifier_m
(type
(attribute
(identifier_nn) identifier_nn
(identifier_Module) identifier_Module
)attribute
)type
)typed_parameter
(typed_default_parameter
(identifier_size) identifier_size
(type
(identifier_tuple) identifier_tuple
)type
(tuple
(integer_64) integer_64
(integer_64) integer_64
)tuple
)typed_default_parameter
)parameters
(type
(identifier_Tensor) identifier_Tensor
)type
(block
(expression_statement
(string_"Create a dummy batch to go through `m` with `size`.") string_"Create a dummy batch to go through `m` with `size`."
)expression_statement
(expression_statement
(assignment
(identifier_ch_in) identifier_ch_in
(call
(identifier_in_channels) identifier_in_channels
(argument_list
(identifier_m) identifier_m
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(call
(identifier_one_param) identifier_one_param
(argument_list
(identifier_m) identifier_m
)argument_list
)call
(identifier_new) identifier_new
)attribute
(argument_list
(integer_1) integer_1
(identifier_ch_in) identifier_ch_in
(list_splat
(identifier_size) identifier_size
)list_splat
)argument_list
)call
(identifier_requires_grad_) identifier_requires_grad_
)attribute
(argument_list
(False) False
)argument_list
)call
(identifier_uniform_) identifier_uniform_
)attribute
(argument_list
(unary_operator
(float_1.) float_1.
)unary_operator
(float_1.) float_1.
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a dummy batch to go through `m` with `size`. |
(module
(function_definition
(function_name_hcf) function_name_hcf
(parameters
(identifier_num1) identifier_num1
(identifier_num2) identifier_num2
)parameters
(block
(if_statement
(comparison_operator
(identifier_num1) identifier_num1
(identifier_num2) identifier_num2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_smaller) identifier_smaller
(identifier_num2) identifier_num2
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_smaller) identifier_smaller
(identifier_num1) identifier_num1
)assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(binary_operator
(identifier_smaller) identifier_smaller
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(if_statement
(parenthesized_expression
(boolean_operator
(parenthesized_expression
(comparison_operator
(binary_operator
(identifier_num1) identifier_num1
(identifier_i) identifier_i
)binary_operator
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(binary_operator
(identifier_num2) identifier_num2
(identifier_i) identifier_i
)binary_operator
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
)boolean_operator
)parenthesized_expression
(block
(return_statement
(identifier_i) identifier_i
)return_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Find the highest common factor of 2 numbers
:type num1: number
:param num1: The first number to find the hcf for
:type num2: number
:param num2: The second number to find the hcf for |
(module
(function_definition
(function_name_emulate_seek) function_name_emulate_seek
(parameters
(identifier_fd) identifier_fd
(identifier_offset) identifier_offset
(default_parameter
(identifier_chunk) identifier_chunk
(identifier_CHUNK) identifier_CHUNK
)default_parameter
)parameters
(block
(while_statement
(boolean_operator
(identifier_chunk) identifier_chunk
(comparison_operator
(identifier_offset) identifier_offset
(identifier_CHUNK) identifier_CHUNK
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_fd) identifier_fd
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_offset) identifier_offset
(identifier_chunk) identifier_chunk
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_fd) identifier_fd
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_offset) identifier_offset
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Emulates a seek on an object that does not support it
The seek is emulated by reading and discarding bytes until specified offset
is reached.
The ``offset`` argument is in bytes from start of file. The ``chunk``
argument can be used to adjust the size of the chunks in which read
operation is performed. Larger chunks will reach the offset in less reads
and cost less CPU but use more memory. Conversely, smaller chunks will be
more memory efficient, but cause more read operations and more CPU usage.
If chunk is set to None, then the ``offset`` amount of bytes is read at
once. This is fastest but depending on the offset size, may use a lot of
memory.
Default chunk size is controlled by the ``fsend.rangewrapper.CHUNK``
constant, which is 8KB by default.
This function has no return value. |
(module
(function_definition
(function_name_config_to_options) function_name_config_to_options
(parameters
(identifier_config) identifier_config
)parameters
(block
(class_definition
(identifier_Options) identifier_Options
(block
(expression_statement
(assignment
(identifier_host) identifier_host
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'smtp') string_'smtp'
(string_'host') string_'host'
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_port) identifier_port
(call
(attribute
(identifier_config) identifier_config
(identifier_getint) identifier_getint
)attribute
(argument_list
(string_'smtp') string_'smtp'
(string_'port') string_'port'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_to_addr) identifier_to_addr
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mail') string_'mail'
(string_'to_addr') string_'to_addr'
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_from_addr) identifier_from_addr
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mail') string_'mail'
(string_'from_addr') string_'from_addr'
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subject) identifier_subject
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mail') string_'mail'
(string_'subject') string_'subject'
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_encoding) identifier_encoding
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'mail') string_'mail'
(string_'encoding') string_'encoding'
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_username) identifier_username
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_'auth') string_'auth'
(string_'username') string_'username'
)argument_list
)call
)assignment
)expression_statement
)block
)class_definition
(expression_statement
(assignment
(identifier_opts) identifier_opts
(call
(identifier_Options) identifier_Options
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(binary_operator
(attribute
(identifier_opts) identifier_opts
(identifier_from_addr) identifier_from_addr
)attribute
(dictionary
(pair
(string_'host') string_'host'
(attribute
(identifier_opts) identifier_opts
(identifier_host) identifier_host
)attribute
)pair
(pair
(string_'prog') string_'prog'
(string_'notify') string_'notify'
)pair
)dictionary
)binary_operator
)expression_statement
(expression_statement
(binary_operator
(attribute
(identifier_opts) identifier_opts
(identifier_to_addr) identifier_to_addr
)attribute
(dictionary
(pair
(string_'host') string_'host'
(attribute
(identifier_opts) identifier_opts
(identifier_host) identifier_host
)attribute
)pair
(pair
(string_'prog') string_'prog'
(string_'notify') string_'notify'
)pair
)dictionary
)binary_operator
)expression_statement
(return_statement
(identifier_opts) identifier_opts
)return_statement
)block
)function_definition
)module | Convert ConfigParser instance to argparse.Namespace
Parameters
----------
config : object
A ConfigParser instance
Returns
-------
object
An argparse.Namespace instance |
(module
(function_definition
(function_name_print_version) function_name_print_version
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_"Versions:") string_"Versions:"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_secho) identifier_secho
)attribute
(argument_list
(binary_operator
(string_"CLI Package Version: %(version)s") string_"CLI Package Version: %(version)s"
(dictionary
(pair
(string_"version") string_"version"
(call
(attribute
(identifier_click) identifier_click
(identifier_style) identifier_style
)attribute
(argument_list
(call
(identifier_get_cli_version) identifier_get_cli_version
(argument_list
)argument_list
)call
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)pair
)dictionary
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_secho) identifier_secho
)attribute
(argument_list
(binary_operator
(string_"API Package Version: %(version)s") string_"API Package Version: %(version)s"
(dictionary
(pair
(string_"version") string_"version"
(call
(attribute
(identifier_click) identifier_click
(identifier_style) identifier_style
)attribute
(argument_list
(call
(identifier_get_api_version) identifier_get_api_version
(argument_list
)argument_list
)call
(keyword_argument
(identifier_bold) identifier_bold
(True) True
)keyword_argument
)argument_list
)call
)pair
)dictionary
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Print the environment versions. |
(module
(function_definition
(function_name_get_interface_mode) function_name_get_interface_mode
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_calculator_list) identifier_calculator_list
(list
(string_'wien2k') string_'wien2k'
(string_'abinit') string_'abinit'
(string_'qe') string_'qe'
(string_'elk') string_'elk'
(string_'siesta') string_'siesta'
(string_'cp2k') string_'cp2k'
(string_'crystal') string_'crystal'
(string_'vasp') string_'vasp'
(string_'dftbp') string_'dftbp'
(string_'turbomole') string_'turbomole'
)list
)assignment
)expression_statement
(for_statement
(identifier_calculator) identifier_calculator
(identifier_calculator_list) identifier_calculator_list
(block
(expression_statement
(assignment
(identifier_mode) identifier_mode
(binary_operator
(string_"%s_mode") string_"%s_mode"
(identifier_calculator) identifier_calculator
)binary_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_mode) identifier_mode
(identifier_args) identifier_args
)comparison_operator
(subscript
(attribute
(identifier_args) identifier_args
(identifier___dict__) identifier___dict__
)attribute
(identifier_mode) identifier_mode
)subscript
)boolean_operator
(block
(return_statement
(identifier_calculator) identifier_calculator
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Return calculator name
The calculator name is obtained from command option arguments where
argparse is used. The argument attribute name has to be
"{calculator}_mode". Then this method returns {calculator}. |
(module
(function_definition
(function_name__get_redirect_url) function_name__get_redirect_url
(parameters
(identifier_self) identifier_self
(identifier_request) identifier_request
)parameters
(block
(if_statement
(comparison_operator
(string_'next') string_'next'
(attribute
(identifier_request) identifier_request
(identifier_session) identifier_session
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(subscript
(attribute
(identifier_request) identifier_request
(identifier_session) identifier_session
)attribute
(string_'next') string_'next'
)subscript
)assignment
)expression_statement
(delete_statement
(subscript
(attribute
(identifier_request) identifier_request
(identifier_session) identifier_session
)attribute
(string_'next') string_'next'
)subscript
)delete_statement
)block
(elif_clause
(comparison_operator
(string_'next') string_'next'
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'next') string_'next'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(string_'next') string_'next'
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_POST) identifier_POST
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'next') string_'next'
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(call
(attribute
(attribute
(identifier_request) identifier_request
(identifier_user) identifier_user
)attribute
(identifier_get_absolute_url) identifier_get_absolute_url
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(not_operator
(identifier_next_url) identifier_next_url
)not_operator
(block
(expression_statement
(assignment
(identifier_next_url) identifier_next_url
(string_'/') string_'/'
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_next_url) identifier_next_url
)return_statement
)block
)function_definition
)module | Next gathered from session, then GET, then POST,
then users absolute url. |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_cls) identifier_cls
(identifier_d) identifier_d
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_d) identifier_d
)argument_list
)call
(identifier_dict) identifier_dict
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_'Expecting a <dict>, got a {0}') string_'Expecting a <dict>, got a {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(identifier_cls) identifier_cls
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier__full_data) identifier__full_data
)attribute
(identifier_d) identifier_d
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier__import_attributes) identifier__import_attributes
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_obj) identifier_obj
(identifier__a_tags) identifier__a_tags
)attribute
(call
(attribute
(identifier_obj) identifier_obj
(identifier__parse_a_tags) identifier__parse_a_tags
)attribute
(argument_list
(identifier_d) identifier_d
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_obj) identifier_obj
)return_statement
)block
)function_definition
)module | Given a dict in python-zimbra format or XML, generate
a Python object. |
(module
(function_definition
(function_name_network) function_name_network
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_borrow) identifier_borrow
(False) False
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__network) identifier__network
)attribute
(None) None
)comparison_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_network_json) identifier_network_json
)attribute
(None) None
)comparison_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_load_weights) identifier_load_weights
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(identifier_borrow) identifier_borrow
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_borrow_cached_network) identifier_borrow_cached_network
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network_json) identifier_network_json
)attribute
(attribute
(identifier_self) identifier_self
(identifier_network_weights) identifier_network_weights
)attribute
)argument_list
)call
)return_statement
)block
(else_clause
(block
(import_statement
(dotted_name
(identifier_keras) identifier_keras
(identifier_models) identifier_models
)dotted_name
)import_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__network) identifier__network
)attribute
(call
(attribute
(attribute
(identifier_keras) identifier_keras
(identifier_models) identifier_models
)attribute
(identifier_model_from_json) identifier_model_from_json
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network_json) identifier_network_json
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_network_weights) identifier_network_weights
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__network) identifier__network
)attribute
(identifier_set_weights) identifier_set_weights
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network_weights) identifier_network_weights
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_network_json) identifier_network_json
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_network_weights) identifier_network_weights
)attribute
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__network) identifier__network
)attribute
)return_statement
)block
)function_definition
)module | Return the keras model associated with this predictor.
Parameters
----------
borrow : bool
Whether to return a cached model if possible. See
borrow_cached_network for details
Returns
-------
keras.models.Model |
(module
(function_definition
(function_name__system_parameters) function_name__system_parameters
(parameters
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_key) identifier_key
(identifier_value) identifier_value
)pair
(for_in_clause
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(comparison_operator
(identifier_value) identifier_value
(dictionary
)dictionary
)comparison_operator
)boolean_operator
)parenthesized_expression
)if_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Returns system keyword arguments removing Nones.
Args:
kwargs: system keyword arguments.
Returns:
dict: system keyword arguments. |
(module
(function_definition
(function_name_compareBIM) function_name_compareBIM
(parameters
(identifier_args) identifier_args
)parameters
(block
(class_definition
(identifier_Dummy) identifier_Dummy
(argument_list
(identifier_object) identifier_object
)argument_list
(block
(pass_statement
)pass_statement
)block
)class_definition
(expression_statement
(assignment
(identifier_compareBIM_args) identifier_compareBIM_args
(call
(identifier_Dummy) identifier_Dummy
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_before) identifier_before
)attribute
(binary_operator
(attribute
(identifier_args) identifier_args
(identifier_bfile) identifier_bfile
)attribute
(string_".bim") string_".bim"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_after) identifier_after
)attribute
(binary_operator
(attribute
(identifier_args) identifier_args
(identifier_out) identifier_out
)attribute
(string_".bim") string_".bim"
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_out) identifier_out
)attribute
(binary_operator
(attribute
(identifier_args) identifier_args
(identifier_out) identifier_out
)attribute
(string_".removed_snps") string_".removed_snps"
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_CompareBIM) identifier_CompareBIM
(identifier_checkArgs) identifier_checkArgs
)attribute
(argument_list
(identifier_compareBIM_args) identifier_compareBIM_args
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_beforeBIM) identifier_beforeBIM
(call
(attribute
(identifier_CompareBIM) identifier_CompareBIM
(identifier_readBIM) identifier_readBIM
)attribute
(argument_list
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_before) identifier_before
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_afterBIM) identifier_afterBIM
(call
(attribute
(identifier_CompareBIM) identifier_CompareBIM
(identifier_readBIM) identifier_readBIM
)attribute
(argument_list
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_after) identifier_after
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_CompareBIM) identifier_CompareBIM
(identifier_compareSNPs) identifier_compareSNPs
)attribute
(argument_list
(identifier_beforeBIM) identifier_beforeBIM
(identifier_afterBIM) identifier_afterBIM
(attribute
(identifier_compareBIM_args) identifier_compareBIM_args
(identifier_out) identifier_out
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_CompareBIM) identifier_CompareBIM
(identifier_ProgramError) identifier_ProgramError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ProgramError) identifier_ProgramError
(argument_list
(binary_operator
(string_"CompareBIM: ") string_"CompareBIM: "
(attribute
(identifier_e) identifier_e
(identifier_message) identifier_message
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Compare two BIM file.
:param args: the options.
:type args: argparse.Namespace
Creates a *Dummy* object to mimic an :py:class:`argparse.Namespace` class
containing the options for the :py:mod:`pyGenClean.PlinkUtils.compare_bim`
module. |
(module
(function_definition
(function_name_hook) function_name_hook
(parameters
(identifier_self) identifier_self
(identifier_debug) identifier_debug
(identifier_pid) identifier_pid
)parameters
(block
(expression_statement
(assignment
(identifier_label) identifier_label
(binary_operator
(string_"%s!%s") string_"%s!%s"
(tuple
(attribute
(identifier_self) identifier_self
(identifier___modName) identifier___modName
)attribute
(attribute
(identifier_self) identifier_self
(identifier___procName) identifier___procName
)attribute
)tuple
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_hook) identifier_hook
(subscript
(attribute
(identifier_self) identifier_self
(identifier___hook) identifier___hook
)attribute
(identifier_pid) identifier_pid
)subscript
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_aProcess) identifier_aProcess
(call
(attribute
(attribute
(identifier_debug) identifier_debug
(identifier_system) identifier_system
)attribute
(identifier_get_process) identifier_get_process
)attribute
(argument_list
(identifier_pid) identifier_pid
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_aProcess) identifier_aProcess
(call
(identifier_Process) identifier_Process
(argument_list
(identifier_pid) identifier_pid
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_hook) identifier_hook
(call
(identifier_Hook) identifier_Hook
(argument_list
(attribute
(identifier_self) identifier_self
(identifier___preCB) identifier___preCB
)attribute
(attribute
(identifier_self) identifier_self
(identifier___postCB) identifier___postCB
)attribute
(attribute
(identifier_self) identifier_self
(identifier___paramCount) identifier___paramCount
)attribute
(attribute
(identifier_self) identifier_self
(identifier___signature) identifier___signature
)attribute
(call
(attribute
(identifier_aProcess) identifier_aProcess
(identifier_get_arch) identifier_get_arch
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___hook) identifier___hook
)attribute
(identifier_pid) identifier_pid
)subscript
(identifier_hook) identifier_hook
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(call
(attribute
(identifier_hook) identifier_hook
(identifier_hook) identifier_hook
)attribute
(argument_list
(identifier_debug) identifier_debug
(identifier_pid) identifier_pid
(identifier_label) identifier_label
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Installs the API hook on a given process and module.
@warning: Do not call from an API hook callback.
@type debug: L{Debug}
@param debug: Debug object.
@type pid: int
@param pid: Process ID. |
(module
(function_definition
(function_name_repo_exists) function_name_repo_exists
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(identifier_username) identifier_username
(identifier_repo_name) identifier_repo_name
)parameters
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(string_"/repos/{u}/{r}") string_"/repos/{u}/{r}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_u) identifier_u
(identifier_username) identifier_username
)keyword_argument
(keyword_argument
(identifier_r) identifier_r
(identifier_repo_name) identifier_repo_name
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get) identifier__get
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_auth) identifier_auth
(identifier_auth) identifier_auth
)keyword_argument
)argument_list
)call
(identifier_ok) identifier_ok
)attribute
)return_statement
)block
)function_definition
)module | Returns whether a repository with name ``repo_name`` owned by the user with username ``username`` exists.
:param auth.Authentication auth: authentication object
:param str username: username of owner of repository
:param str repo_name: name of repository
:return: whether the repository exists
:rtype: bool
:raises NetworkFailure: if there is an error communicating with the server
:raises ApiFailure: if the request cannot be serviced |
(module
(function_definition
(function_name_gamma_reset) function_name_gamma_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__fb_device) identifier__fb_device
)attribute
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_fcntl) identifier_fcntl
(identifier_ioctl) identifier_ioctl
)attribute
(argument_list
(identifier_f) identifier_f
(attribute
(identifier_self) identifier_self
(identifier_SENSE_HAT_FB_FBIORESET_GAMMA) identifier_SENSE_HAT_FB_FBIORESET_GAMMA
)attribute
(attribute
(identifier_self) identifier_self
(identifier_SENSE_HAT_FB_GAMMA_DEFAULT) identifier_SENSE_HAT_FB_GAMMA_DEFAULT
)attribute
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module | Resets the LED matrix gamma correction to default |
(module
(function_definition
(function_name_altz_to_utctz_str) function_name_altz_to_utctz_str
(parameters
(identifier_altz) identifier_altz
)parameters
(block
(expression_statement
(assignment
(identifier_utci) identifier_utci
(binary_operator
(unary_operator
(integer_1) integer_1
)unary_operator
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_altz) identifier_altz
)argument_list
)call
(integer_3600) integer_3600
)binary_operator
)parenthesized_expression
(integer_100) integer_100
)binary_operator
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utcs) identifier_utcs
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_abs) identifier_abs
(argument_list
(identifier_utci) identifier_utci
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utcs) identifier_utcs
(binary_operator
(binary_operator
(string_"0") string_"0"
(parenthesized_expression
(binary_operator
(integer_4) integer_4
(call
(identifier_len) identifier_len
(argument_list
(identifier_utcs) identifier_utcs
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
(identifier_utcs) identifier_utcs
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(boolean_operator
(parenthesized_expression
(boolean_operator
(comparison_operator
(identifier_utci) identifier_utci
(integer_0) integer_0
)comparison_operator
(string_'-') string_'-'
)boolean_operator
)parenthesized_expression
(string_'+') string_'+'
)boolean_operator
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_prefix) identifier_prefix
(identifier_utcs) identifier_utcs
)binary_operator
)return_statement
)block
)function_definition
)module | As above, but inverses the operation, returning a string that can be used
in commit objects |
(module
(function_definition
(function_name_create_job) function_name_create_job
(parameters
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_config_xml) identifier_config_xml
(None) None
)default_parameter
(default_parameter
(identifier_saltenv) identifier_saltenv
(string_'base') string_'base'
)default_parameter
)parameters
(block
(if_statement
(not_operator
(identifier_name) identifier_name
)not_operator
(block
(raise_statement
(call
(identifier_SaltInvocationError) identifier_SaltInvocationError
(argument_list
(string_'Required parameter \'name\' is missing') string_'Required parameter \'name\' is missing'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(call
(identifier_job_exists) identifier_job_exists
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_'Job \'{0}\' already exists') string_'Job \'{0}\' already exists'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_config_xml) identifier_config_xml
)not_operator
(block
(expression_statement
(assignment
(identifier_config_xml) identifier_config_xml
(attribute
(identifier_jenkins) identifier_jenkins
(identifier_EMPTY_CONFIG_XML) identifier_EMPTY_CONFIG_XML
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_config_xml_file) identifier_config_xml_file
(call
(identifier__retrieve_config_xml) identifier__retrieve_config_xml
(argument_list
(identifier_config_xml) identifier_config_xml
(identifier_saltenv) identifier_saltenv
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_files) identifier_files
)attribute
(identifier_fopen) identifier_fopen
)attribute
(argument_list
(identifier_config_xml_file) identifier_config_xml_file
)argument_list
)call
(as_pattern_target
(identifier__fp) identifier__fp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_config_xml) identifier_config_xml
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_stringutils) identifier_stringutils
)attribute
(identifier_to_unicode) identifier_to_unicode
)attribute
(argument_list
(call
(attribute
(identifier__fp) identifier__fp
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(identifier__connect) identifier__connect
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_server) identifier_server
(identifier_create_job) identifier_create_job
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_config_xml) identifier_config_xml
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_jenkins) identifier_jenkins
(identifier_JenkinsException) identifier_JenkinsException
)attribute
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_'Encountered error creating job \'{0}\': {1}') string_'Encountered error creating job \'{0}\': {1}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(identifier_err) identifier_err
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_config_xml) identifier_config_xml
)return_statement
)block
)function_definition
)module | Return the configuration file.
:param name: The name of the job is check if it exists.
:param config_xml: The configuration file to use to create the job.
:param saltenv: The environment to look for the file in.
:return: The configuration file used for the job.
CLI Example:
.. code-block:: bash
salt '*' jenkins.create_job jobname
salt '*' jenkins.create_job jobname config_xml='salt://jenkins/config.xml' |
(module
(function_definition
(function_name_connect) function_name_connect
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_is_expired) identifier_is_expired
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_disconnect) identifier_disconnect
)attribute
(argument_list
(keyword_argument
(identifier_abandon_session) identifier_abandon_session
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_login_result) identifier_login_result
(call
(attribute
(identifier_self) identifier_self
(identifier_login) identifier_login
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_username) identifier_username
)attribute
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AccountFault) identifier_AccountFault
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Login failed, invalid username or password') string_'Login failed, invalid username or password'
)argument_list
)call
)expression_statement
(raise_statement
)raise_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(attribute
(identifier_login_result) identifier_login_result
(identifier_session_id) identifier_session_id
)attribute
)assignment
)expression_statement
)block
)else_clause
)try_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_connected) identifier_connected
)attribute
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_connected) identifier_connected
)attribute
)return_statement
)block
)function_definition
)module | Connects to the Responsys soap service
Uses the credentials passed to the client init to login and setup the session id returned.
Returns True on successful connection, otherwise False. |
(module
(function_definition
(function_name_get_finished) function_name_get_finished
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_indices) identifier_indices
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_idf) identifier_idf
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_q) identifier_q
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_v) identifier_v
(identifier_poll) identifier_poll
)attribute
(argument_list
)argument_list
)call
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_indices) identifier_indices
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_idf) identifier_idf
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_i) identifier_i
(identifier_indices) identifier_indices
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_q) identifier_q
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_indices) identifier_indices
)return_statement
)block
)function_definition
)module | Clean up terminated processes and returns the list of their ids |
(module
(function_definition
(function_name_create_dep) function_name_create_dep
(parameters
(identifier_self) identifier_self
(identifier_projects) identifier_projects
)parameters
(block
(expression_statement
(assignment
(identifier_dialog) identifier_dialog
(call
(identifier_DepCreatorDialog) identifier_DepCreatorDialog
(argument_list
(keyword_argument
(identifier_projects) identifier_projects
(identifier_projects) identifier_projects
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dialog) identifier_dialog
(identifier_exec_) identifier_exec_
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_dep) identifier_dep
(attribute
(identifier_dialog) identifier_dialog
(identifier_dep) identifier_dep
)attribute
)assignment
)expression_statement
(return_statement
(identifier_dep) identifier_dep
)return_statement
)block
)function_definition
)module | Create and return a new dep
:param projects: the projects for the dep
:type projects: :class:`jukeboxcore.djadapter.models.Project`
:returns: The created dep or None
:rtype: None | :class:`jukeboxcore.djadapter.models.Dep`
:raises: None |
(module
(function_definition
(function_name_fix) function_name_fix
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_to_file) identifier_to_file
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_packer_cmd) identifier_packer_cmd
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_packer) identifier_packer
)attribute
(identifier_fix) identifier_fix
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__add_opt) identifier__add_opt
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_packerfile) identifier_packerfile
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_self) identifier_self
(identifier_packer_cmd) identifier_packer_cmd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_to_file) identifier_to_file
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_to_file) identifier_to_file
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_result) identifier_result
(identifier_stdout) identifier_stdout
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_result) identifier_result
(identifier_fixed) identifier_fixed
)attribute
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_result) identifier_result
(identifier_stdout) identifier_stdout
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Implements the `packer fix` function
:param string to_file: File to output fixed template to |
(module
(function_definition
(function_name_get_root_dir) function_name_get_root_dir
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_root_path) identifier_root_path
)attribute
)argument_list
)call
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_root_path) identifier_root_path
)attribute
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_root_path) identifier_root_path
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Retrieve the absolute path to the root directory of this data source.
Returns:
str: absolute path to the root directory of this data source. |
(module
(function_definition
(function_name_call_git_branch) function_name_call_git_branch
(parameters
)parameters
(block
(try_statement
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_devnull) identifier_devnull
(string_"w") string_"w"
)argument_list
)call
(as_pattern_target
(identifier_fnull) identifier_fnull
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_arguments) identifier_arguments
(list
(identifier_GIT_COMMAND) identifier_GIT_COMMAND
(string_'rev-parse') string_'rev-parse'
(string_'--abbrev-ref') string_'--abbrev-ref'
(string_'HEAD') string_'HEAD'
)list
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(call
(identifier_check_output) identifier_check_output
(argument_list
(identifier_arguments) identifier_arguments
(keyword_argument
(identifier_cwd) identifier_cwd
(identifier_CURRENT_DIRECTORY) identifier_CURRENT_DIRECTORY
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_fnull) identifier_fnull
)keyword_argument
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_"ascii") string_"ascii"
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)with_statement
)block
(except_clause
(tuple
(identifier_OSError) identifier_OSError
(identifier_CalledProcessError) identifier_CalledProcessError
)tuple
(block
(return_statement
(None) None
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | return the string output of git desribe |
(module
(function_definition
(function_name_calc_secondary_parameters) function_name_calc_secondary_parameters
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_c) identifier_c
)attribute
(binary_operator
(float_1.) float_1.
(parenthesized_expression
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_k) identifier_k
)attribute
(call
(attribute
(identifier_special) identifier_special
(identifier_gamma) identifier_gamma
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_n) identifier_n
)attribute
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
)block
)function_definition
)module | Determine the value of the secondary parameter `c`. |
(module
(function_definition
(function_name__change_source_state) function_name__change_source_state
(parameters
(identifier_name) identifier_name
(identifier_state) identifier_state
)parameters
(block
(expression_statement
(assignment
(identifier_choc_path) identifier_choc_path
(call
(identifier__find_chocolatey) identifier__find_chocolatey
(argument_list
(identifier___context__) identifier___context__
(identifier___salt__) identifier___salt__
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(identifier_choc_path) identifier_choc_path
(string_'source') string_'source'
(identifier_state) identifier_state
(string_'--name') string_'--name'
(identifier_name) identifier_name
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.run_all') string_'cmd.run_all'
)subscript
(argument_list
(identifier_cmd) identifier_cmd
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_result) identifier_result
(string_'retcode') string_'retcode'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(call
(attribute
(string_'Running chocolatey failed: {0}') string_'Running chocolatey failed: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(identifier_result) identifier_result
(string_'stdout') string_'stdout'
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(identifier_result) identifier_result
(string_'stdout') string_'stdout'
)subscript
)return_statement
)block
)function_definition
)module | Instructs Chocolatey to change the state of a source.
name
Name of the repository to affect.
state
State in which you want the chocolatey repository. |
(module
(function_definition
(function_name_receive) function_name_receive
(parameters
(identifier_self) identifier_self
(identifier_sock) identifier_sock
)parameters
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(string_b'') string_b''
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_recv_done) identifier_recv_done
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_recv_len) identifier_recv_len
(unary_operator
(integer_1) integer_1
)unary_operator
)assignment
)expression_statement
(while_statement
(not_operator
(identifier_recv_done) identifier_recv_done
)not_operator
(block
(expression_statement
(assignment
(identifier_buf) identifier_buf
(call
(attribute
(identifier_sock) identifier_sock
(identifier_recv) identifier_recv
)attribute
(argument_list
(identifier_BUFSIZE) identifier_BUFSIZE
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_buf) identifier_buf
(None) None
)comparison_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"socket closed") string_"socket closed"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_recv_len) identifier_recv_len
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(expression_statement
(assignment
(identifier_recv_len) identifier_recv_len
(subscript
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(string_'>I') string_'>I'
(subscript
(identifier_buf) identifier_buf
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_data) identifier_data
(subscript
(identifier_buf) identifier_buf
(slice
(integer_4) integer_4
(colon) colon
)slice
)subscript
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_recv_len) identifier_recv_len
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_data) identifier_data
(identifier_buf) identifier_buf
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_recv_len) identifier_recv_len
(call
(identifier_len) identifier_len
(argument_list
(identifier_buf) identifier_buf
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_recv_done) identifier_recv_done
(parenthesized_expression
(comparison_operator
(identifier_recv_len) identifier_recv_len
(integer_0) integer_0
)comparison_operator
)parenthesized_expression
)assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_pickle) identifier_pickle
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_msg) identifier_msg
)return_statement
)block
)function_definition
)module | Receive a message on ``sock``. |
(module
(function_definition
(function_name_edit) function_name_edit
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_tag_name) identifier_tag_name
(None) None
)default_parameter
(default_parameter
(identifier_target_commitish) identifier_target_commitish
(None) None
)default_parameter
(default_parameter
(identifier_name) identifier_name
(None) None
)default_parameter
(default_parameter
(identifier_body) identifier_body
(None) None
)default_parameter
(default_parameter
(identifier_draft) identifier_draft
(None) None
)default_parameter
(default_parameter
(identifier_prerelease) identifier_prerelease
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
(pair
(string_'tag_name') string_'tag_name'
(identifier_tag_name) identifier_tag_name
)pair
(pair
(string_'target_commitish') string_'target_commitish'
(identifier_target_commitish) identifier_target_commitish
)pair
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'body') string_'body'
(identifier_body) identifier_body
)pair
(pair
(string_'draft') string_'draft'
(identifier_draft) identifier_draft
)pair
(pair
(string_'prerelease') string_'prerelease'
(identifier_prerelease) identifier_prerelease
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__remove_none) identifier__remove_none
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__session) identifier__session
)attribute
(identifier_patch) identifier_patch
)attribute
(argument_list
(identifier_url) identifier_url
(keyword_argument
(identifier_data) identifier_data
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_Release) identifier_Release
(identifier_CUSTOM_HEADERS) identifier_CUSTOM_HEADERS
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_successful) identifier_successful
(call
(attribute
(identifier_self) identifier_self
(identifier__boolean) identifier__boolean
)attribute
(argument_list
(identifier_r) identifier_r
(integer_200) integer_200
(integer_404) integer_404
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_successful) identifier_successful
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___init__) identifier___init__
)attribute
(argument_list
(call
(attribute
(identifier_r) identifier_r
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_successful) identifier_successful
)return_statement
)block
)function_definition
)module | Users with push access to the repository can edit a release.
If the edit is successful, this object will update itself.
:param str tag_name: (optional), Name of the tag to use
:param str target_commitish: (optional), The "commitish" value that
determines where the Git tag is created from. Defaults to the
repository's default branch.
:param str name: (optional), Name of the release
:param str body: (optional), Description of the release
:param boolean draft: (optional), True => Release is a draft
:param boolean prerelease: (optional), True => Release is a prerelease
:returns: True if successful; False if not successful |
(module
(function_definition
(function_name_purgeDeletedWidgets) function_name_purgeDeletedWidgets
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_toremove) identifier_toremove
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(attribute
(identifier_AbstractEditorWidget) identifier_AbstractEditorWidget
(identifier_funit_fields) identifier_funit_fields
)attribute
(block
(if_statement
(call
(attribute
(identifier_sip) identifier_sip
(identifier_isdeleted) identifier_isdeleted
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_toremove) identifier_toremove
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_field) identifier_field
(identifier_toremove) identifier_toremove
(block
(expression_statement
(call
(attribute
(attribute
(identifier_AbstractEditorWidget) identifier_AbstractEditorWidget
(identifier_funit_fields) identifier_funit_fields
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_toremove) identifier_toremove
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_field) identifier_field
(attribute
(identifier_AbstractEditorWidget) identifier_AbstractEditorWidget
(identifier_tunit_fields) identifier_tunit_fields
)attribute
(block
(if_statement
(call
(attribute
(identifier_sip) identifier_sip
(identifier_isdeleted) identifier_isdeleted
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_toremove) identifier_toremove
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(for_statement
(identifier_field) identifier_field
(identifier_toremove) identifier_toremove
(block
(expression_statement
(call
(attribute
(attribute
(identifier_AbstractEditorWidget) identifier_AbstractEditorWidget
(identifier_tunit_fields) identifier_tunit_fields
)attribute
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_field) identifier_field
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Finds old references to stashed fields and deletes them |
(module
(function_definition
(function_name_make_csr) function_name_make_csr
(parameters
(identifier_A) identifier_A
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(call
(identifier_isspmatrix_csr) identifier_isspmatrix_csr
(argument_list
(identifier_A) identifier_A
)argument_list
)call
(call
(identifier_isspmatrix_bsr) identifier_isspmatrix_bsr
(argument_list
(identifier_A) identifier_A
)argument_list
)call
)boolean_operator
)parenthesized_expression
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_A) identifier_A
(call
(identifier_csr_matrix) identifier_csr_matrix
(argument_list
(identifier_A) identifier_A
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Implicit conversion of A to CSR in pyamg.blackbox.make_csr') string_'Implicit conversion of A to CSR in pyamg.blackbox.make_csr'
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_BaseException) identifier_BaseException
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Argument A must have type csr_matrix or\
bsr_matrix, or be convertible to csr_matrix') string_'Argument A must have type csr_matrix or\
bsr_matrix, or be convertible to csr_matrix'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_A) identifier_A
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_A) identifier_A
(identifier_shape) identifier_shape
)attribute
(integer_1) integer_1
)subscript
)comparison_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Argument A must be a square') string_'Argument A must be a square'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_A) identifier_A
(call
(attribute
(identifier_A) identifier_A
(identifier_asfptype) identifier_asfptype
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_A) identifier_A
)return_statement
)block
)function_definition
)module | Convert A to CSR, if A is not a CSR or BSR matrix already.
Parameters
----------
A : array, matrix, sparse matrix
(n x n) matrix to convert to CSR
Returns
-------
A : csr_matrix, bsr_matrix
If A is csr_matrix or bsr_matrix, then do nothing and return A.
Else, convert A to CSR if possible and return.
Examples
--------
>>> from pyamg.gallery import poisson
>>> from pyamg.blackbox import make_csr
>>> A = poisson((40,40),format='csc')
>>> Acsr = make_csr(A)
Implicit conversion of A to CSR in pyamg.blackbox.make_csr |
(module
(function_definition
(function_name_get_conservation) function_name_get_conservation
(parameters
(identifier_block) identifier_block
)parameters
(block
(expression_statement
(assignment
(identifier_consensus) identifier_consensus
(subscript
(subscript
(subscript
(identifier_block) identifier_block
(string_'sequences') string_'sequences'
)subscript
(integer_0) integer_0
)subscript
(string_'seq') string_'seq'
)subscript
)assignment
)expression_statement
(assert_statement
(call
(identifier_all) identifier_all
(generator_expression
(call
(attribute
(identifier_c) identifier_c
(identifier_isupper) identifier_isupper
)attribute
(argument_list
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(identifier_consensus) identifier_consensus
)for_in_clause
)generator_expression
)call
(string_"So-called consensus contains indels!") string_"So-called consensus contains indels!"
)assert_statement
(expression_statement
(assignment
(identifier_cleaned) identifier_cleaned
(list_comprehension
(list_comprehension
(identifier_c) identifier_c
(for_in_clause
(identifier_c) identifier_c
(subscript
(identifier_s) identifier_s
(string_'seq') string_'seq'
)subscript
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_c) identifier_c
(identifier_islower) identifier_islower
)attribute
(argument_list
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
(for_in_clause
(identifier_s) identifier_s
(subscript
(subscript
(identifier_block) identifier_block
(string_'sequences') string_'sequences'
)subscript
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_height) identifier_height
(call
(identifier_float) identifier_float
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_cleaned) identifier_cleaned
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_row) identifier_row
(identifier_cleaned) identifier_cleaned
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_consensus) identifier_consensus
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_"Aligned sequence length (%s) doesn't match ") string_"Aligned sequence length (%s) doesn't match "
(string_"consensus (%s)") string_"consensus (%s)"
)concatenated_string
(tuple
(call
(identifier_len) identifier_len
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_consensus) identifier_consensus
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_columns) identifier_columns
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_cleaned) identifier_cleaned
)list_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_dict) identifier_dict
(generator_expression
(tuple
(binary_operator
(identifier_idx) identifier_idx
(integer_1) integer_1
)binary_operator
(binary_operator
(call
(attribute
(subscript
(identifier_columns) identifier_columns
(identifier_idx) identifier_idx
)subscript
(identifier_count) identifier_count
)attribute
(argument_list
(identifier_cons_char) identifier_cons_char
)argument_list
)call
(identifier_height) identifier_height
)binary_operator
)tuple
(for_in_clause
(pattern_list
(identifier_idx) identifier_idx
(identifier_cons_char) identifier_cons_char
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_consensus) identifier_consensus
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | Calculate conservation levels at each consensus position.
Return a dict of {position: float conservation} |
(module
(function_definition
(function_name__parse_tokenize) function_name__parse_tokenize
(parameters
(identifier_self) identifier_self
(identifier_rule) identifier_rule
)parameters
(block
(for_statement
(identifier_token) identifier_token
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__TOKENIZE_RE) identifier__TOKENIZE_RE
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_rule) identifier_rule
)argument_list
)call
(block
(if_statement
(boolean_operator
(not_operator
(identifier_token) identifier_token
)not_operator
(call
(attribute
(identifier_token) identifier_token
(identifier_isspace) identifier_isspace
)attribute
(argument_list
)argument_list
)call
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_clean) identifier_clean
(call
(attribute
(identifier_token) identifier_token
(identifier_lstrip) identifier_lstrip
)attribute
(argument_list
(string_'(') string_'('
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_token) identifier_token
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_clean) identifier_clean
)argument_list
)call
)binary_operator
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(string_'(') string_'('
(string_'(') string_'('
)expression_list
)yield
)expression_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_clean) identifier_clean
)not_operator
(block
(continue_statement
)continue_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_token) identifier_token
(identifier_clean) identifier_clean
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_clean) identifier_clean
(call
(attribute
(identifier_token) identifier_token
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
(string_')') string_')'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trail) identifier_trail
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_token) identifier_token
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_clean) identifier_clean
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lowered) identifier_lowered
(call
(attribute
(identifier_clean) identifier_clean
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_lowered) identifier_lowered
(tuple
(string_'and') string_'and'
(string_'or') string_'or'
(string_'not') string_'not'
)tuple
)comparison_operator
(block
(expression_statement
(yield
(expression_list
(identifier_lowered) identifier_lowered
(identifier_clean) identifier_clean
)expression_list
)yield
)expression_statement
)block
(elif_clause
(identifier_clean) identifier_clean
(block
(if_statement
(boolean_operator
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_token) identifier_token
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(parenthesized_expression
(comparison_operator
(tuple
(subscript
(identifier_token) identifier_token
(integer_0) integer_0
)subscript
(subscript
(identifier_token) identifier_token
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)tuple
(list
(tuple
(string_'"') string_'"'
(string_'"') string_'"'
)tuple
(tuple
(string_"'") string_"'"
(string_"'") string_"'"
)tuple
)list
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(expression_statement
(yield
(expression_list
(string_'string') string_'string'
(subscript
(identifier_token) identifier_token
(slice
(integer_1) integer_1
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)expression_list
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(yield
(expression_list
(string_'check') string_'check'
(call
(attribute
(identifier_self) identifier_self
(identifier__parse_check) identifier__parse_check
)attribute
(argument_list
(identifier_clean) identifier_clean
)argument_list
)call
)expression_list
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)elif_clause
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_trail) identifier_trail
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(string_')') string_')'
(string_')') string_')'
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module | Tokenizer for the policy language. |
(module
(function_definition
(function_name_get_document) function_name_get_document
(parameters
(identifier_self) identifier_self
(identifier_doc_url) identifier_doc_url
(default_parameter
(identifier_force_download) identifier_force_download
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_doc_url) identifier_doc_url
(call
(identifier_str) identifier_str
(argument_list
(identifier_doc_url) identifier_doc_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(attribute
(identifier_self) identifier_self
(identifier_use_cache) identifier_use_cache
)attribute
(not_operator
(identifier_force_download) identifier_force_download
)not_operator
)boolean_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_has_document) identifier_has_document
)attribute
(argument_list
(identifier_doc_url) identifier_doc_url
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_doc_data) identifier_doc_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_get_document) identifier_get_document
)attribute
(argument_list
(identifier_doc_url) identifier_doc_url
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_doc_data) identifier_doc_data
(call
(attribute
(identifier_self) identifier_self
(identifier_api_request) identifier_api_request
)attribute
(argument_list
(identifier_doc_url) identifier_doc_url
(keyword_argument
(identifier_raw) identifier_raw
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_update_cache) identifier_update_cache
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_add_document) identifier_add_document
)attribute
(argument_list
(identifier_doc_url) identifier_doc_url
(identifier_doc_data) identifier_doc_data
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_doc_data) identifier_doc_data
)return_statement
)block
)function_definition
)module | Retrieve the data for the given document from the server
:type doc_url: String or Document
:param doc_url: the URL of the document, or a Document object
:type force_download: Boolean
:param force_download: True to download from the server
regardless of the cache's contents
:rtype: String
:returns: the document data
:raises: APIError if the API request is not successful |
(module
(function_definition
(function_name_density_matrix_of) function_name_density_matrix_of
(parameters
(identifier_self) identifier_self
(typed_default_parameter
(identifier_qubits) identifier_qubits
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(attribute
(identifier_ops) identifier_ops
(identifier_Qid) identifier_Qid
)attribute
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(attribute
(identifier_np) identifier_np
(identifier_ndarray) identifier_ndarray
)attribute
)type
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(return_statement
(call
(identifier_density_matrix_from_state_vector) identifier_density_matrix_from_state_vector
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_state_vector) identifier_state_vector
)attribute
(argument_list
)argument_list
)call
(conditional_expression
(list_comprehension
(subscript
(attribute
(identifier_self) identifier_self
(identifier_qubit_map) identifier_qubit_map
)attribute
(identifier_q) identifier_q
)subscript
(for_in_clause
(identifier_q) identifier_q
(identifier_qubits) identifier_qubits
)for_in_clause
)list_comprehension
(comparison_operator
(identifier_qubits) identifier_qubits
(None) None
)comparison_operator
(None) None
)conditional_expression
)argument_list
)call
)return_statement
)block
)function_definition
)module | r"""Returns the density matrix of the state.
Calculate the density matrix for the system on the list, qubits.
Any qubits not in the list that are present in self.state_vector() will
be traced out. If qubits is None the full density matrix for
self.state_vector() is returned, given self.state_vector() follows
standard Kronecker convention of numpy.kron.
For example:
self.state_vector() = np.array([1/np.sqrt(2), 1/np.sqrt(2)],
dtype=np.complex64)
qubits = None
gives us \rho = \begin{bmatrix}
0.5 & 0.5
0.5 & 0.5
\end{bmatrix}
Args:
qubits: list containing qubit IDs that you would like
to include in the density matrix (i.e.) qubits that WON'T
be traced out.
Returns:
A numpy array representing the density matrix.
Raises:
ValueError: if the size of the state represents more than 25 qubits.
IndexError: if the indices are out of range for the number of qubits
corresponding to the state. |
(module
(function_definition
(function_name_connect_to) function_name_connect_to
(parameters
(identifier_self) identifier_self
(identifier_service_name) identifier_service_name
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_service_class) identifier_service_class
(call
(attribute
(identifier_self) identifier_self
(identifier_get_connection) identifier_get_connection
)attribute
(argument_list
(identifier_service_name) identifier_service_name
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_service_class) identifier_service_class
(identifier_connect_to) identifier_connect_to
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Shortcut method to make instantiating the ``Connection`` classes
easier.
Forwards ``**kwargs`` like region, keys, etc. on to the constructor.
:param service_name: A string that specifies the name of the desired
service. Ex. ``sqs``, ``sns``, ``dynamodb``, etc.
:type service_name: string
:rtype: <kotocore.connection.Connection> instance |
(module
(function_definition
(function_name_start_async) function_name_start_async
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_run_task) identifier_run_task
)attribute
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_"A PartitionManager cannot be started multiple times.") string_"A PartitionManager cannot be started multiple times."
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_partition_count) identifier_partition_count
(await
(call
(attribute
(identifier_self) identifier_self
(identifier_initialize_stores_async) identifier_initialize_stores_async
)attribute
(argument_list
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__logger) identifier__logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"%r PartitionCount: %r") string_"%r PartitionCount: %r"
(attribute
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(identifier_guid) identifier_guid
)attribute
(identifier_partition_count) identifier_partition_count
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_run_task) identifier_run_task
)attribute
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_ensure_future) identifier_ensure_future
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_run_async) identifier_run_async
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Intializes the partition checkpoint and lease store and then calls run async. |
(module
(function_definition
(function_name_rtl_langs) function_name_rtl_langs
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_is_rtl) function_name_is_rtl
(parameters
(identifier_lang) identifier_lang
)parameters
(block
(expression_statement
(assignment
(identifier_base_rtl) identifier_base_rtl
(list
(string_'ar') string_'ar'
(string_'fa') string_'fa'
(string_'he') string_'he'
(string_'ur') string_'ur'
)list
)assignment
)expression_statement
(return_statement
(call
(identifier_any) identifier_any
(argument_list
(list_comprehension
(call
(attribute
(identifier_lang) identifier_lang
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(identifier_base_code) identifier_base_code
)argument_list
)call
(for_in_clause
(identifier_base_code) identifier_base_code
(identifier_base_rtl) identifier_base_rtl
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_set) identifier_set
(argument_list
(list_comprehension
(identifier_lang) identifier_lang
(for_in_clause
(identifier_lang) identifier_lang
(attribute
(identifier_self) identifier_self
(identifier_translated_locales) identifier_translated_locales
)attribute
)for_in_clause
(if_clause
(call
(identifier_is_rtl) identifier_is_rtl
(argument_list
(identifier_lang) identifier_lang
)argument_list
)call
)if_clause
)list_comprehension
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the set of translated RTL language codes present in self.locales.
Ignores source locale. |
(module
(function_definition
(function_name_parseBranches) function_name_parseBranches
(parameters
(identifier_self) identifier_self
(identifier_descendants) identifier_descendants
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_parsed) identifier_parsed
(identifier_parent) identifier_parent
(identifier_cond) identifier_cond
)pattern_list
(expression_list
(list
)list
(False) False
(lambda
(lambda_parameters
(identifier_b) identifier_b
)lambda_parameters
(call
(attribute
(parenthesized_expression
(boolean_operator
(attribute
(identifier_b) identifier_b
(identifier_string) identifier_string
)attribute
(string_'') string_''
)boolean_operator
)parenthesized_expression
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)lambda
)expression_list
)assignment
)expression_statement
(for_statement
(identifier_branch) identifier_branch
(call
(identifier_filter) identifier_filter
(argument_list
(identifier_cond) identifier_cond
(identifier_descendants) identifier_descendants
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_getHeadingLevel) identifier_getHeadingLevel
)attribute
(argument_list
(identifier_branch) identifier_branch
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_depth) identifier_depth
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'root') string_'root'
(attribute
(identifier_branch) identifier_branch
(identifier_string) identifier_string
)attribute
)pair
(pair
(string_'source') string_'source'
(identifier_branch) identifier_branch
)pair
)dictionary
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_parent) identifier_parent
(True) True
)assignment
)expression_statement
)block
(elif_clause
(not_operator
(identifier_parent) identifier_parent
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_parsed) identifier_parsed
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'root') string_'root'
(attribute
(identifier_branch) identifier_branch
(identifier_string) identifier_string
)attribute
)pair
(pair
(string_'source') string_'source'
(identifier_branch) identifier_branch
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(call
(attribute
(call
(attribute
(subscript
(identifier_parsed) identifier_parsed
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'descendants') string_'descendants'
(list
)list
)argument_list
)call
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_branch) identifier_branch
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(list_comprehension
(call
(identifier_TOC) identifier_TOC
(argument_list
(keyword_argument
(identifier_depth) identifier_depth
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_depth) identifier_depth
)attribute
(integer_1) integer_1
)binary_operator
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(for_in_clause
(identifier_kwargs) identifier_kwargs
(identifier_parsed) identifier_parsed
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Parse top level of markdown
:param list elements: list of source objects
:return: list of filtered TreeOfContents objects |
(module
(function_definition
(function_name__handleCallAnswered) function_name__handleCallAnswered
(parameters
(identifier_self) identifier_self
(identifier_regexMatch) identifier_regexMatch
(default_parameter
(identifier_callId) identifier_callId
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_regexMatch) identifier_regexMatch
(block
(expression_statement
(assignment
(identifier_groups) identifier_groups
(call
(attribute
(identifier_regexMatch) identifier_regexMatch
(identifier_groups) identifier_groups
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_groups) identifier_groups
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(assignment
(identifier_callId) identifier_callId
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_groups) identifier_groups
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_activeCalls) identifier_activeCalls
)attribute
(identifier_callId) identifier_callId
)subscript
(identifier_answered) identifier_answered
)attribute
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(for_statement
(identifier_call) identifier_call
(call
(identifier_dictValuesIter) identifier_dictValuesIter
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_activeCalls) identifier_activeCalls
)attribute
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_call) identifier_call
(identifier_answered) identifier_answered
)attribute
(False) False
)comparison_operator
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_call) identifier_call
)argument_list
)call
(identifier_Call) identifier_Call
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(attribute
(identifier_call) identifier_call
(identifier_answered) identifier_answered
)attribute
(True) True
)assignment
)expression_statement
(return_statement
)return_statement
)block
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_activeCalls) identifier_activeCalls
)attribute
(identifier_callId) identifier_callId
)subscript
(identifier_answered) identifier_answered
)attribute
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Handler for "outgoing call answered" event notification line |
(module
(function_definition
(function_name_as_native_str) function_name_as_native_str
(parameters
(default_parameter
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)default_parameter
)parameters
(block
(if_statement
(identifier_PY3) identifier_PY3
(block
(return_statement
(lambda
(lambda_parameters
(identifier_f) identifier_f
)lambda_parameters
(identifier_f) identifier_f
)lambda
)return_statement
)block
(else_clause
(block
(function_definition
(function_name_encoder) function_name_encoder
(parameters
(identifier_f) identifier_f
)parameters
(block
(decorated_definition
(decorator
(call
(attribute
(identifier_functools) identifier_functools
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_f) identifier_f
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(call
(identifier_f) identifier_f
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
(return_statement
(identifier_encoder) identifier_encoder
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | A decorator to turn a function or method call that returns text, i.e.
unicode, into one that returns a native platform str.
Use it as a decorator like this::
from __future__ import unicode_literals
class MyClass(object):
@as_native_str(encoding='ascii')
def __repr__(self):
return next(self._iter).upper() |
(module
(function_definition
(function_name__get_LDAP_connection) function_name__get_LDAP_connection
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_server) identifier_server
(call
(attribute
(identifier_ldap3) identifier_ldap3
(identifier_Server) identifier_Server
)attribute
(argument_list
(binary_operator
(string_'ldap://') string_'ldap://'
(call
(identifier_get_optional_env) identifier_get_optional_env
(argument_list
(string_'EPFL_LDAP_SERVER_FOR_SEARCH') string_'EPFL_LDAP_SERVER_FOR_SEARCH'
)argument_list
)call
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_connection) identifier_connection
(call
(attribute
(identifier_ldap3) identifier_ldap3
(identifier_Connection) identifier_Connection
)attribute
(argument_list
(identifier_server) identifier_server
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_connection) identifier_connection
(identifier_open) identifier_open
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(identifier_connection) identifier_connection
(call
(identifier_get_optional_env) identifier_get_optional_env
(argument_list
(string_'EPFL_LDAP_BASE_DN_FOR_SEARCH') string_'EPFL_LDAP_BASE_DN_FOR_SEARCH'
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Return a LDAP connection |
(module
(function_definition
(function_name_get_one) function_name_get_one
(parameters
(identifier_cls) identifier_cls
(identifier_enforcement_id) identifier_enforcement_id
)parameters
(block
(expression_statement
(assignment
(identifier_qry) identifier_qry
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_Enforcements) identifier_Enforcements
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(comparison_operator
(identifier_enforcement_id) identifier_enforcement_id
(attribute
(identifier_Enforcements) identifier_Enforcements
(identifier_enforcement_id) identifier_enforcement_id
)attribute
)comparison_operator
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_qry) identifier_qry
)return_statement
)block
)function_definition
)module | Return the properties of any enforcement action |
(module
(function_definition
(function_name_prime_gen) function_name_prime_gen
(parameters
)parameters
(type
(identifier_int) identifier_int
)type
(block
(expression_statement
(assignment
(identifier_D) identifier_D
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(yield
(integer_2) integer_2
)yield
)expression_statement
(for_statement
(identifier_q) identifier_q
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_islice) identifier_islice
)attribute
(argument_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_count) identifier_count
)attribute
(argument_list
(integer_3) integer_3
)argument_list
)call
(integer_0) integer_0
(None) None
(integer_2) integer_2
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(attribute
(identifier_D) identifier_D
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_q) identifier_q
(None) None
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_p) identifier_p
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_D) identifier_D
(binary_operator
(identifier_q) identifier_q
(identifier_q) identifier_q
)binary_operator
)subscript
(binary_operator
(integer_2) integer_2
(identifier_q) identifier_q
)binary_operator
)assignment
)expression_statement
(expression_statement
(yield
(identifier_q) identifier_q
)yield
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(binary_operator
(identifier_p) identifier_p
(identifier_q) identifier_q
)binary_operator
)assignment
)expression_statement
(while_statement
(comparison_operator
(identifier_x) identifier_x
(identifier_D) identifier_D
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_x) identifier_x
(identifier_p) identifier_p
)augmented_assignment
)expression_statement
)block
)while_statement
(expression_statement
(assignment
(subscript
(identifier_D) identifier_D
(identifier_x) identifier_x
)subscript
(identifier_p) identifier_p
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module | A generator for prime numbers starting from 2. |
(module
(function_definition
(function_name_table) function_name_table
(parameters
(identifier_columns) identifier_columns
(identifier_names) identifier_names
(default_parameter
(identifier_page_size) identifier_page_size
(None) None
)default_parameter
(default_parameter
(identifier_format_strings) identifier_format_strings
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_page_size) identifier_page_size
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_page) identifier_page
(string_'disable') string_'disable'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_page) identifier_page
(string_'enable') string_'enable'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_div_id) identifier_div_id
(call
(attribute
(identifier_uuid) identifier_uuid
(identifier_uuid4) identifier_uuid4
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_column_descriptions) identifier_column_descriptions
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_column) identifier_column
(identifier_name) identifier_name
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_columns) identifier_columns
(identifier_names) identifier_names
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(attribute
(identifier_column) identifier_column
(identifier_dtype) identifier_dtype
)attribute
(identifier_kind) identifier_kind
)attribute
(string_'S') string_'S'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ctype) identifier_ctype
(string_'string') string_'string'
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ctype) identifier_ctype
(string_'number') string_'number'
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_column_descriptions) identifier_column_descriptions
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_ctype) identifier_ctype
(identifier_name) identifier_name
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(identifier_zip) identifier_zip
(argument_list
(list_splat
(identifier_columns) identifier_columns
)list_splat
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_data) identifier_data
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_item) identifier_item
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_google_table_template) identifier_google_table_template
(identifier_render) identifier_render
)attribute
(argument_list
(keyword_argument
(identifier_div_id) identifier_div_id
(identifier_div_id) identifier_div_id
)keyword_argument
(keyword_argument
(identifier_page_enable) identifier_page_enable
(identifier_page) identifier_page
)keyword_argument
(keyword_argument
(identifier_column_descriptions) identifier_column_descriptions
(identifier_column_descriptions) identifier_column_descriptions
)keyword_argument
(keyword_argument
(identifier_page_size) identifier_page_size
(identifier_page_size) identifier_page_size
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(keyword_argument
(identifier_format_strings) identifier_format_strings
(identifier_format_strings) identifier_format_strings
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an html table of this data
Parameters
----------
columns : list of numpy arrays
names : list of strings
The list of columns names
page_size : {int, None}, optional
The number of items to show on each page of the table
format_strings : {lists of strings, None}, optional
The ICU format string for this column, None for no formatting. All
columns must have a format string if provided.
Returns
-------
html_table : str
A str containing the html code to display a table of this data |
(module
(function_definition
(function_name_check_boto_reqs) function_name_check_boto_reqs
(parameters
(default_parameter
(identifier_boto_ver) identifier_boto_ver
(None) None
)default_parameter
(default_parameter
(identifier_boto3_ver) identifier_boto3_ver
(None) None
)default_parameter
(default_parameter
(identifier_botocore_ver) identifier_botocore_ver
(None) None
)default_parameter
(default_parameter
(identifier_check_boto) identifier_check_boto
(True) True
)default_parameter
(default_parameter
(identifier_check_boto3) identifier_check_boto3
(True) True
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_check_boto) identifier_check_boto
(True) True
)comparison_operator
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_boto) identifier_boto
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_has_boto) identifier_has_boto
(True) True
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(expression_statement
(assignment
(identifier_has_boto) identifier_has_boto
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_boto_ver) identifier_boto_ver
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_boto_ver) identifier_boto_ver
(string_'2.0.0') string_'2.0.0'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_has_boto) identifier_has_boto
)not_operator
(comparison_operator
(call
(identifier_version_cmp) identifier_version_cmp
(argument_list
(attribute
(identifier_boto) identifier_boto
(identifier___version__) identifier___version__
)attribute
(identifier_boto_ver) identifier_boto_ver
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(False) False
(call
(attribute
(string_'A minimum version of boto {0} is required.') string_'A minimum version of boto {0} is required.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_boto_ver) identifier_boto_ver
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_check_boto3) identifier_check_boto3
(True) True
)comparison_operator
(block
(try_statement
(block
(import_statement
(dotted_name
(identifier_boto3) identifier_boto3
)dotted_name
)import_statement
(import_statement
(dotted_name
(identifier_botocore) identifier_botocore
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_has_boto3) identifier_has_boto3
(True) True
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(expression_statement
(assignment
(identifier_has_boto3) identifier_has_boto3
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_boto3_ver) identifier_boto3_ver
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_boto3_ver) identifier_boto3_ver
(string_'1.2.6') string_'1.2.6'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_botocore_ver) identifier_botocore_ver
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_botocore_ver) identifier_botocore_ver
(string_'1.3.23') string_'1.3.23'
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(identifier_has_boto3) identifier_has_boto3
)not_operator
(comparison_operator
(call
(identifier_version_cmp) identifier_version_cmp
(argument_list
(attribute
(identifier_boto3) identifier_boto3
(identifier___version__) identifier___version__
)attribute
(identifier_boto3_ver) identifier_boto3_ver
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
)boolean_operator
(block
(return_statement
(expression_list
(False) False
(call
(attribute
(string_'A minimum version of boto3 {0} is required.') string_'A minimum version of boto3 {0} is required.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_boto3_ver) identifier_boto3_ver
)argument_list
)call
)expression_list
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_version_cmp) identifier_version_cmp
(argument_list
(attribute
(identifier_botocore) identifier_botocore
(identifier___version__) identifier___version__
)attribute
(identifier_botocore_ver) identifier_botocore_ver
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)comparison_operator
(block
(return_statement
(expression_list
(False) False
(call
(attribute
(string_'A minimum version of botocore {0} is required') string_'A minimum version of botocore {0} is required'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_botocore_ver) identifier_botocore_ver
)argument_list
)call
)expression_list
)return_statement
)block
)elif_clause
)if_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Checks for the version of various required boto libs in one central location. Most
boto states and modules rely on a single version of the boto, boto3, or botocore libs.
However, some require newer versions of any of these dependencies. This function allows
the module to pass in a version to override the default minimum required version.
This function is useful in centralizing checks for ``__virtual__()`` functions in the
various, and many, boto modules and states.
boto_ver
The minimum required version of the boto library. Defaults to ``2.0.0``.
boto3_ver
The minimum required version of the boto3 library. Defaults to ``1.2.6``.
botocore_ver
The minimum required version of the botocore library. Defaults to ``1.3.23``.
check_boto
Boolean defining whether or not to check for boto deps. This defaults to ``True`` as
most boto modules/states rely on boto, but some do not.
check_boto3
Boolean defining whether or not to check for boto3 (and therefore botocore) deps.
This defaults to ``True`` as most boto modules/states rely on boto3/botocore, but
some do not. |
(module
(function_definition
(function_name_hashed) function_name_hashed
(parameters
(identifier_source_filename) identifier_source_filename
(identifier_prepared_options) identifier_prepared_options
(identifier_thumbnail_extension) identifier_thumbnail_extension
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(string_':') string_':'
(identifier_join) identifier_join
)attribute
(argument_list
(binary_operator
(list
(identifier_source_filename) identifier_source_filename
)list
(identifier_prepared_options) identifier_prepared_options
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_short_sha) identifier_short_sha
(call
(attribute
(call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_sha1) identifier_sha1
)attribute
(argument_list
(call
(attribute
(identifier_parts) identifier_parts
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
(identifier_digest) identifier_digest
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_short_hash) identifier_short_hash
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_urlsafe_b64encode) identifier_urlsafe_b64encode
)attribute
(argument_list
(subscript
(identifier_short_sha) identifier_short_sha
(slice
(colon) colon
(integer_9) integer_9
)slice
)subscript
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_short_hash) identifier_short_hash
(identifier_thumbnail_extension) identifier_thumbnail_extension
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Generate a short hashed thumbnail filename.
Creates a 12 character url-safe base64 sha1 filename (plus the extension),
for example: ``6qW1buHgLaZ9.jpg``. |
(module
(function_definition
(function_name_filter_oids) function_name_filter_oids
(parameters
(identifier_self) identifier_self
(identifier_oids) identifier_oids
)parameters
(block
(expression_statement
(assignment
(identifier_oids) identifier_oids
(call
(identifier_set) identifier_set
(argument_list
(identifier_oids) identifier_oids
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_self) identifier_self
(call
(attribute
(subscript
(identifier_self) identifier_self
(string_'_oid') string_'_oid'
)subscript
(identifier_map) identifier_map
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(identifier_oids) identifier_oids
)comparison_operator
)lambda
)argument_list
)call
)subscript
)return_statement
)block
)function_definition
)module | Leaves only objects with specified oids.
:param oids: list of oids to include |
(module
(function_definition
(function_name_on_mouse_motion) function_name_on_mouse_motion
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
(identifier_y) identifier_y
(identifier_dx) identifier_dx
(identifier_dy) identifier_dy
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_example) identifier_example
)attribute
(identifier_mouse_position_event) identifier_mouse_position_event
)attribute
(argument_list
(identifier_x) identifier_x
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_buffer_height) identifier_buffer_height
)attribute
(identifier_y) identifier_y
)binary_operator
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Pyglet specific mouse motion callback.
Forwards and traslates the event to the example |
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_uri) identifier_uri
(default_parameter
(identifier_body) identifier_body
(None) None
)default_parameter
(default_parameter
(identifier_logon_required) identifier_logon_required
(True) True
)default_parameter
(default_parameter
(identifier_wait_for_completion) identifier_wait_for_completion
(True) True
)default_parameter
(default_parameter
(identifier_operation_timeout) identifier_operation_timeout
(None) None
)default_parameter
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__urihandler) identifier__urihandler
)attribute
(identifier_post) identifier_post
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__hmc) identifier__hmc
)attribute
(identifier_uri) identifier_uri
(identifier_body) identifier_body
(identifier_logon_required) identifier_logon_required
(identifier_wait_for_completion) identifier_wait_for_completion
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(identifier_HTTPError) identifier_HTTPError
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(attribute
(identifier_zhmcclient) identifier_zhmcclient
(identifier_HTTPError) identifier_HTTPError
)attribute
(argument_list
(call
(attribute
(identifier_exc) identifier_exc
(identifier_response) identifier_response
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
(except_clause
(as_pattern
(identifier_ConnectionError) identifier_ConnectionError
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(attribute
(identifier_zhmcclient) identifier_zhmcclient
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(argument_list
(attribute
(identifier_exc) identifier_exc
(identifier_message) identifier_message
)attribute
(None) None
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Perform the HTTP POST method against the resource identified by a URI,
using a provided request body, on the faked HMC.
HMC operations using HTTP POST are either synchronous or asynchronous.
Asynchronous operations return the URI of an asynchronously executing
job that can be queried for status and result.
Examples for synchronous operations:
* With no response body: "Logon", "Update CPC Properties"
* With a response body: "Create Partition"
Examples for asynchronous operations:
* With no ``job-results`` field in the completed job status response:
"Start Partition"
* With a ``job-results`` field in the completed job status response
(under certain conditions): "Activate a Blade", or "Set CPC Power
Save"
The `wait_for_completion` parameter of this method can be used to deal
with asynchronous HMC operations in a synchronous way.
Parameters:
uri (:term:`string`):
Relative URI path of the resource, e.g. "/api/session".
This URI is relative to the base URL of the session (see the
:attr:`~zhmcclient.Session.base_url` property).
Must not be `None`.
body (:term:`json object`):
JSON object to be used as the HTTP request body (payload).
`None` means the same as an empty dictionary, namely that no HTTP
body is included in the request.
logon_required (bool):
Boolean indicating whether the operation requires that the session
is logged on to the HMC. For example, the "Logon" operation does
not require that.
Because this is a faked HMC, this does not perform a real logon,
but it is still used to update the state in the faked HMC.
wait_for_completion (bool):
Boolean controlling whether this method should wait for completion
of the requested HMC operation, as follows:
* If `True`, this method will wait for completion of the requested
operation, regardless of whether the operation is synchronous or
asynchronous.
This will cause an additional entry in the time statistics to be
created for the asynchronous operation and waiting for its
completion. This entry will have a URI that is the targeted URI,
appended with "+completion".
* If `False`, this method will immediately return the result of the
HTTP POST method, regardless of whether the operation is
synchronous or asynchronous.
operation_timeout (:term:`number`):
Timeout in seconds, when waiting for completion of an asynchronous
operation. The special value 0 means that no timeout is set. `None`
means that the default async operation timeout of the session is
used.
For `wait_for_completion=True`, a
:exc:`~zhmcclient.OperationTimeout` is raised when the timeout
expires.
For `wait_for_completion=False`, this parameter has no effect.
Returns:
:term:`json object`:
If `wait_for_completion` is `True`, returns a JSON object
representing the response body of the synchronous operation, or the
response body of the completed job that performed the asynchronous
operation. If a synchronous operation has no response body, `None`
is returned.
If `wait_for_completion` is `False`, returns a JSON object
representing the response body of the synchronous or asynchronous
operation. In case of an asynchronous operation, the JSON object
will have a member named ``job-uri``, whose value can be used with
the :meth:`~zhmcclient.Session.query_job_status` method to
determine the status of the job and the result of the original
operation, once the job has completed.
See the section in the :term:`HMC API` book about the specific HMC
operation and about the 'Query Job Status' operation, for a
description of the members of the returned JSON objects.
Raises:
:exc:`~zhmcclient.HTTPError`
:exc:`~zhmcclient.ParseError` (not implemented)
:exc:`~zhmcclient.AuthError` (not implemented)
:exc:`~zhmcclient.ConnectionError` |
(module
(function_definition
(function_name_get) function_name_get
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_pm) identifier_pm
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__libeng) identifier__libeng
)attribute
(identifier_engGetVariable) identifier_engGetVariable
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ep) identifier__ep
)attribute
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_mxarray_to_ndarray) identifier_mxarray_to_ndarray
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__libmx) identifier__libmx
)attribute
(identifier_pm) identifier_pm
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__libmx) identifier__libmx
)attribute
(identifier_mxDestroyArray) identifier_mxDestroyArray
)attribute
(argument_list
(identifier_pm) identifier_pm
)argument_list
)call
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Get variable `name` from MATLAB workspace.
Parameters
----------
name : str
Name of the variable in MATLAB workspace.
Returns
-------
array_like
Value of the variable `name`. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.