sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_ellipse_to_cov) function_name_ellipse_to_cov
(parameters
(identifier_sigma_maj) identifier_sigma_maj
(identifier_sigma_min) identifier_sigma_min
(identifier_theta) identifier_theta
)parameters
(block
(expression_statement
(assignment
(identifier_cth) identifier_cth
(call
(attribute
(identifier_np) identifier_np
(identifier_cos) identifier_cos
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sth) identifier_sth
(call
(attribute
(identifier_np) identifier_np
(identifier_sin) identifier_sin
)attribute
(argument_list
(identifier_theta) identifier_theta
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_covxx) identifier_covxx
(binary_operator
(binary_operator
(binary_operator
(identifier_cth) identifier_cth
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_sigma_maj) identifier_sigma_maj
(integer_2) integer_2
)binary_operator
)binary_operator
(binary_operator
(binary_operator
(identifier_sth) identifier_sth
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_sigma_min) identifier_sigma_min
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_covyy) identifier_covyy
(binary_operator
(binary_operator
(binary_operator
(identifier_sth) identifier_sth
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_sigma_maj) identifier_sigma_maj
(integer_2) integer_2
)binary_operator
)binary_operator
(binary_operator
(binary_operator
(identifier_cth) identifier_cth
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_sigma_min) identifier_sigma_min
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_covxy) identifier_covxy
(binary_operator
(binary_operator
(binary_operator
(identifier_cth) identifier_cth
(identifier_sth) identifier_sth
)binary_operator
(binary_operator
(identifier_sigma_maj) identifier_sigma_maj
(integer_2) integer_2
)binary_operator
)binary_operator
(binary_operator
(binary_operator
(identifier_cth) identifier_cth
(identifier_sth) identifier_sth
)binary_operator
(binary_operator
(identifier_sigma_min) identifier_sigma_min
(integer_2) integer_2
)binary_operator
)binary_operator
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(list
(list
(identifier_covxx) identifier_covxx
(identifier_covxy) identifier_covxy
)list
(list
(identifier_covxy) identifier_covxy
(identifier_covyy) identifier_covyy
)list
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Compute the covariance matrix in two variables x and y given
the std. deviation along the semi-major and semi-minor axes and
the rotation angle of the error ellipse.
Parameters
----------
sigma_maj : float
Std. deviation along major axis of error ellipse.
sigma_min : float
Std. deviation along minor axis of error ellipse.
theta : float
Rotation angle in radians from x-axis to ellipse major axis. |
(module
(function_definition
(function_name_DeleteUser) function_name_DeleteUser
(parameters
(identifier_username) identifier_username
)parameters
(block
(expression_statement
(assignment
(identifier_grr_api) identifier_grr_api
(call
(attribute
(identifier_maintenance_utils) identifier_maintenance_utils
(identifier_InitGRRRootAPI) identifier_InitGRRRootAPI
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_grr_api) identifier_grr_api
(identifier_GrrUser) identifier_GrrUser
)attribute
(argument_list
(identifier_username) identifier_username
)argument_list
)call
(identifier_Get) identifier_Get
)attribute
(argument_list
)argument_list
)call
(identifier_Delete) identifier_Delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_api_errors) identifier_api_errors
(identifier_ResourceNotFoundError) identifier_ResourceNotFoundError
)attribute
(block
(raise_statement
(call
(identifier_UserNotFoundError) identifier_UserNotFoundError
(argument_list
(identifier_username) identifier_username
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Deletes a GRR user from the datastore. |
(module
(function_definition
(function_name_insert_metric_changes) function_name_insert_metric_changes
(parameters
(identifier_db) identifier_db
(identifier_metrics) identifier_metrics
(identifier_metric_mapping) identifier_metric_mapping
(identifier_commit) identifier_commit
)parameters
(block
(expression_statement
(assignment
(identifier_values) identifier_values
(list_comprehension
(list
(attribute
(identifier_commit) identifier_commit
(identifier_sha) identifier_sha
)attribute
(subscript
(identifier_metric_mapping) identifier_metric_mapping
(attribute
(identifier_metric) identifier_metric
(identifier_name) identifier_name
)attribute
)subscript
(attribute
(identifier_metric) identifier_metric
(identifier_value) identifier_value
)attribute
)list
(for_in_clause
(identifier_metric) identifier_metric
(identifier_metrics) identifier_metrics
)for_in_clause
(if_clause
(comparison_operator
(attribute
(identifier_metric) identifier_metric
(identifier_value) identifier_value
)attribute
(integer_0) integer_0
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_db) identifier_db
(identifier_executemany) identifier_executemany
)attribute
(argument_list
(string_'INSERT INTO metric_changes (sha, metric_id, value) VALUES (?, ?, ?)') string_'INSERT INTO metric_changes (sha, metric_id, value) VALUES (?, ?, ?)'
(identifier_values) identifier_values
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Insert into the metric_changes tables.
:param metrics: `list` of `Metric` objects
:param dict metric_mapping: Maps metric names to ids
:param Commit commit: |
(module
(function_definition
(function_name_get_datetime) function_name_get_datetime
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_tz) identifier_tz
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(attribute
(identifier_self) identifier_self
(identifier_datetime) identifier_datetime
)attribute
)assignment
)expression_statement
(assert_statement
(comparison_operator
(attribute
(identifier_dt) identifier_dt
(identifier_tzinfo) identifier_tzinfo
)attribute
(attribute
(identifier_pytz) identifier_pytz
(identifier_utc) identifier_utc
)attribute
)comparison_operator
(string_"Algorithm should have a utc datetime") string_"Algorithm should have a utc datetime"
)assert_statement
(if_statement
(comparison_operator
(identifier_tz) identifier_tz
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_dt) identifier_dt
(call
(attribute
(identifier_dt) identifier_dt
(identifier_astimezone) identifier_astimezone
)attribute
(argument_list
(identifier_tz) identifier_tz
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_dt) identifier_dt
)return_statement
)block
)function_definition
)module | Returns the current simulation datetime.
Parameters
----------
tz : tzinfo or str, optional
The timezone to return the datetime in. This defaults to utc.
Returns
-------
dt : datetime
The current simulation datetime converted to ``tz``. |
(module
(function_definition
(function_name_getAnalogID) function_name_getAnalogID
(parameters
(identifier_self) identifier_self
(identifier_num) identifier_num
)parameters
(block
(expression_statement
(assignment
(identifier_listidx) identifier_listidx
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_An) identifier_An
)attribute
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_num) identifier_num
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_Ach_id) identifier_Ach_id
)attribute
(identifier_listidx) identifier_listidx
)subscript
)return_statement
)block
)function_definition
)module | Returns the COMTRADE ID of a given channel number.
The number to be given is the same of the COMTRADE header. |
(module
(function_definition
(function_name_from_dict) function_name_from_dict
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_d) identifier_d
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Any) identifier_Any
)type
)type_parameter
)generic_type
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_d) identifier_d
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_key) identifier_key
(identifier_isupper) identifier_isupper
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__setattr) identifier__setattr
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Config is loaded from dict: %r") string_"Config is loaded from dict: %r"
(identifier_d) identifier_d
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Load values from a dict. |
(module
(function_definition
(function_name_Is64bit) function_name_Is64bit
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(string_"64") string_"64"
(call
(attribute
(identifier_platform) identifier_platform
(identifier_machine) identifier_machine
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_iswow64) identifier_iswow64
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_bool) identifier_c_bool
)attribute
(argument_list
(False) False
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_IsWow64Process) identifier_IsWow64Process
(None) None
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_IsWow64Process) identifier_IsWow64Process
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_h_process) identifier_h_process
)attribute
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_iswow64) identifier_iswow64
)argument_list
)call
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(attribute
(identifier_process_error) identifier_process_error
(identifier_ProcessError) identifier_ProcessError
)attribute
(argument_list
(string_"Error while calling IsWow64Process.") string_"Error while calling IsWow64Process."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(not_operator
(attribute
(identifier_iswow64) identifier_iswow64
(identifier_value) identifier_value
)attribute
)not_operator
)return_statement
)block
)function_definition
)module | Returns true if this is a 64 bit process. |
(module
(function_definition
(function_name_GuinierPorod) function_name_GuinierPorod
(parameters
(identifier_q) identifier_q
(identifier_G) identifier_G
(identifier_Rg) identifier_Rg
(identifier_alpha) identifier_alpha
)parameters
(block
(return_statement
(call
(identifier_GuinierPorodMulti) identifier_GuinierPorodMulti
(argument_list
(identifier_q) identifier_q
(identifier_G) identifier_G
(identifier_Rg) identifier_Rg
(identifier_alpha) identifier_alpha
)argument_list
)call
)return_statement
)block
)function_definition
)module | Empirical Guinier-Porod scattering
Inputs:
-------
``q``: independent variable
``G``: factor of the Guinier-branch
``Rg``: radius of gyration
``alpha``: power-law exponent
Formula:
--------
``G * exp(-q^2*Rg^2/3)`` if ``q<q_sep`` and ``a*q^alpha`` otherwise.
``q_sep`` and ``a`` are determined from conditions of smoothness at
the cross-over.
Literature:
-----------
B. Hammouda: A new Guinier-Porod model. J. Appl. Crystallogr. (2010) 43,
716-719. |
(module
(function_definition
(function_name_to_creator) function_name_to_creator
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_for_modify) identifier_for_modify
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_signature) identifier_signature
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_for_modify) identifier_for_modify
(block
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_signature) identifier_signature
(string_'id') string_'id'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_id) identifier_id
)attribute
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(string_'a modify request should specify an ID') string_'a modify request should specify an ID'
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_'name') string_'name'
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_signature) identifier_signature
(string_'name') string_'name'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_signature) identifier_signature
(string_'name') string_'name'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_has_content) identifier_has_content
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__contenttype) identifier__contenttype
)attribute
(string_'text/plain') string_'text/plain'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_plain_text) identifier_plain_text
(attribute
(identifier_self) identifier_self
(identifier__content) identifier__content
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_html_text) identifier_html_text
(string_'') string_''
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_html_text) identifier_html_text
(attribute
(identifier_self) identifier_self
(identifier__content) identifier__content
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_plain_text) identifier_plain_text
(string_'') string_''
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_content_plain) identifier_content_plain
(dictionary
(pair
(string_'type') string_'type'
(string_'text/plain') string_'text/plain'
)pair
(pair
(string_'_content') string_'_content'
(identifier_plain_text) identifier_plain_text
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content_html) identifier_content_html
(dictionary
(pair
(string_'type') string_'type'
(string_'text/html') string_'text/html'
)pair
(pair
(string_'_content') string_'_content'
(identifier_html_text) identifier_html_text
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_signature) identifier_signature
(string_'content') string_'content'
)subscript
(list
(identifier_content_plain) identifier_content_plain
(identifier_content_html) identifier_content_html
)list
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(not_operator
(identifier_for_modify) identifier_for_modify
)not_operator
(block
(raise_statement
(call
(identifier_AttributeError) identifier_AttributeError
(argument_list
(concatenated_string
(string_'too little information on signature, ') string_'too little information on signature, '
(string_'run setContent before') string_'run setContent before'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_signature) identifier_signature
)return_statement
)block
)function_definition
)module | Returns a dict object suitable for a 'CreateSignature'.
A signature object for creation is like :
<signature name="unittest">
<content type="text/plain">My signature content</content>
</signature>
which is :
{
'name' : 'unittest',
'content': {
'type': 'text/plain',
'_content': 'My signature content'
}
}
Note that if the contenttype is text/plain, the content with text/html
will be cleared by the request (for consistency). |
(module
(function_definition
(function_name_init1) function_name_init1
(parameters
(identifier_self) identifier_self
(identifier_dae) identifier_dae
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_v0) identifier_v0
)attribute
(call
(identifier_matrix) identifier_matrix
(argument_list
(subscript
(attribute
(identifier_dae) identifier_dae
(identifier_y) identifier_y
)attribute
(attribute
(identifier_self) identifier_self
(identifier_v) identifier_v
)attribute
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Set initial voltage for time domain simulation |
(module
(function_definition
(function_name_delete_speaker) function_name_delete_speaker
(parameters
(identifier_self) identifier_self
(identifier_speaker_uri) identifier_speaker_uri
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_api_request) identifier_api_request
)attribute
(argument_list
(identifier_speaker_uri) identifier_speaker_uri
(keyword_argument
(identifier_method) identifier_method
(string_'DELETE') string_'DELETE'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___check_success) identifier___check_success
)attribute
(argument_list
(identifier_response) identifier_response
)argument_list
)call
)return_statement
)block
)function_definition
)module | Delete an speaker from a collection
:param speaker_uri: the URI that references the speaker
:type speaker_uri: String
:rtype: Boolean
:returns: True if the speaker was deleted
:raises: APIError if the request was not successful |
(module
(function_definition
(function_name_wells_by_index) function_name_wells_by_index
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_Well) identifier_Well
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(dictionary_comprehension
(pair
(identifier_well) identifier_well
(identifier_wellObj) identifier_wellObj
)pair
(for_in_clause
(pattern_list
(identifier_well) identifier_well
(identifier_wellObj) identifier_wellObj
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__ordering) identifier__ordering
)attribute
(attribute
(identifier_self) identifier_self
(identifier__wells) identifier__wells
)attribute
)argument_list
)call
)for_in_clause
)dictionary_comprehension
)return_statement
)block
)function_definition
)module | Accessor function used to create a look-up table of Wells by name.
With indexing one can treat it as a typical python
dictionary whose keys are well names. To access well A1, for example,
simply write: labware.wells_by_index()['A1']
:return: Dictionary of well objects keyed by well name |
(module
(function_definition
(function_name_delete_channel) function_name_delete_channel
(parameters
(identifier_current) identifier_current
)parameters
(block
(expression_statement
(assignment
(identifier_ch_key) identifier_ch_key
(subscript
(attribute
(identifier_current) identifier_current
(identifier_input) identifier_input
)attribute
(string_'channel_key') string_'channel_key'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ch) identifier_ch
(call
(attribute
(attribute
(call
(identifier_Channel) identifier_Channel
(argument_list
(identifier_current) identifier_current
)argument_list
)call
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_owner_id) identifier_owner_id
(attribute
(identifier_current) identifier_current
(identifier_user_id) identifier_user_id
)attribute
)keyword_argument
(keyword_argument
(identifier_key) identifier_key
(identifier_ch_key) identifier_ch_key
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ch) identifier_ch
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_Subscriber) identifier_Subscriber
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_channel_id) identifier_channel_id
(identifier_ch_key) identifier_ch_key
)keyword_argument
)argument_list
)call
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(attribute
(identifier_Message) identifier_Message
(identifier_objects) identifier_objects
)attribute
(identifier_filter) identifier_filter
)attribute
(argument_list
(keyword_argument
(identifier_channel_id) identifier_channel_id
(identifier_ch_key) identifier_ch_key
)keyword_argument
)argument_list
)call
(identifier_delete) identifier_delete
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_current) identifier_current
(identifier_output) identifier_output
)attribute
(dictionary
(pair
(string_'status') string_'status'
(string_'Deleted') string_'Deleted'
)pair
(pair
(string_'code') string_'code'
(integer_200) integer_200
)pair
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Delete a channel
.. code-block:: python
# request:
{
'view':'_zops_delete_channel,
'channel_key': key,
}
# response:
{
'status': 'OK',
'code': 200
} |
(module
(function_definition
(function_name_attach_file) function_name_attach_file
(parameters
(identifier_self) identifier_self
(identifier_filename) identifier_filename
(default_parameter
(identifier_resource_id) identifier_resource_id
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_resource_id) identifier_resource_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_resource_id) identifier_resource_id
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_upload_url) identifier_upload_url
(binary_operator
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_links) identifier_links
)attribute
(identifier_REF_MODEL_RUN_ATTACHMENTS) identifier_REF_MODEL_RUN_ATTACHMENTS
)subscript
(string_'/') string_'/'
)binary_operator
(identifier_resource_id) identifier_resource_id
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_post) identifier_post
)attribute
(argument_list
(identifier_upload_url) identifier_upload_url
(keyword_argument
(identifier_files) identifier_files
(dictionary
(pair
(string_'file') string_'file'
(call
(identifier_open) identifier_open
(argument_list
(identifier_filename) identifier_filename
(string_'rb') string_'rb'
)argument_list
)call
)pair
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(try_statement
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(subscript
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)argument_list
)call
(string_'message') string_'message'
)subscript
)argument_list
)call
)raise_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'invalid state change: ') string_'invalid state change: '
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_refresh) identifier_refresh
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Upload an attachment for the model run.
Paramerers
----------
filename : string
Path to uploaded file
resource_id : string
Identifier of the attachment. If None, the filename will be used as
resource identifier.
Returns
-------
ModelRunHandle
Refreshed run handle. |
(module
(function_definition
(function_name_color) function_name_color
(parameters
(identifier_self) identifier_self
(identifier_color) identifier_color
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__data) identifier__data
)attribute
(string_'color') string_'color'
)subscript
(identifier_color) identifier_color
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(attribute
(identifier_self) identifier_self
(identifier__base_request) identifier__base_request
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_request) identifier_request
(string_'color') string_'color'
)subscript
(identifier_color) identifier_color
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tc_requests) identifier__tc_requests
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_owner) identifier_owner
(attribute
(identifier_self) identifier_self
(identifier_owner) identifier_owner
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Updates the security labels color.
Args:
color: |
(module
(function_definition
(function_name_get_disabled) function_name_get_disabled
(parameters
(default_parameter
(identifier_jail) identifier_jail
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_en_) identifier_en_
(call
(identifier_get_enabled) identifier_get_enabled
(argument_list
(identifier_jail) identifier_jail
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_all_) identifier_all_
(call
(identifier_get_all) identifier_get_all
(argument_list
(identifier_jail) identifier_jail
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_sorted) identifier_sorted
(argument_list
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(identifier_all_) identifier_all_
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(identifier_en_) identifier_en_
)argument_list
)call
)binary_operator
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return what services are available but not enabled to start at boot
.. versionchanged:: 2016.3.4
Support for jail (representing jid or jail name) keyword argument in kwargs
CLI Example:
.. code-block:: bash
salt '*' service.get_disabled |
(module
(function_definition
(function_name_getBirthdate) function_name_getBirthdate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_string) identifier_string
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_string) identifier_string
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__convert_string) identifier__convert_string
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_birthdate) identifier_birthdate
)attribute
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__convert_string) identifier__convert_string
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_birthdate) identifier_birthdate
)attribute
(identifier_rstrip) identifier_rstrip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(string_"%d %b %Y") string_"%d %b %Y"
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Returns the birthdate as string object
Parameters
----------
None
Examples
--------
>>> import pyedflib
>>> f = pyedflib.data.test_generator()
>>> f.getBirthdate()=='30 jun 1969'
True
>>> f._close()
>>> del f |
(module
(function_definition
(function_name_remove_output) function_name_remove_output
(parameters
(default_parameter
(identifier_clean) identifier_clean
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(identifier_clean) identifier_clean
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_found) identifier_found
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cwd) identifier_cwd
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_file) identifier_file
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_cwd) identifier_cwd
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(call
(attribute
(identifier_file) identifier_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'_eig.txt') string_'_eig.txt'
)argument_list
)call
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_file) identifier_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'_out.txt') string_'_out.txt'
)argument_list
)call
)boolean_operator
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_file) identifier_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'_out.lst') string_'_out.lst'
)argument_list
)call
)boolean_operator
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_file) identifier_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'_out.dat') string_'_out.dat'
)argument_list
)call
)boolean_operator
(line_continuation_\) line_continuation_\
(call
(attribute
(identifier_file) identifier_file
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'_prof.txt') string_'_prof.txt'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_found) identifier_found
(True) True
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'<{:s}> removed.') string_'<{:s}> removed.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_IOError) identifier_IOError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_'Error removing file <{:s}>.') string_'Error removing file <{:s}>.'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_found) identifier_found
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'no output found in the working directory.') string_'no output found in the working directory.'
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Remove the outputs generated by Andes, including power flow reports
``_out.txt``, time-domain list ``_out.lst`` and data ``_out.dat``,
eigenvalue analysis report ``_eig.txt``.
Parameters
----------
clean : bool
If ``True``, execute the function body. Returns otherwise.
kwargs : dict
Other keyword arguments
Returns
-------
bool
``True`` is the function body executes with success. ``False``
otherwise. |
(module
(function_definition
(function_name_is_locked) function_name_is_locked
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_request) identifier_request
(type
(identifier_AxesHttpRequest) identifier_AxesHttpRequest
)type
)typed_parameter
(typed_default_parameter
(identifier_credentials) identifier_credentials
(type
(identifier_dict) identifier_dict
)type
(None) None
)typed_default_parameter
)parameters
(type
(identifier_bool) identifier_bool
)type
(block
(if_statement
(attribute
(identifier_settings) identifier_settings
(identifier_AXES_LOCK_OUT_AT_FAILURE) identifier_AXES_LOCK_OUT_AT_FAILURE
)attribute
(block
(return_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get_failures) identifier_get_failures
)attribute
(argument_list
(identifier_request) identifier_request
(identifier_credentials) identifier_credentials
)argument_list
)call
(attribute
(identifier_settings) identifier_settings
(identifier_AXES_FAILURE_LIMIT) identifier_AXES_FAILURE_LIMIT
)attribute
)comparison_operator
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Checks if the request or given credentials are locked. |
(module
(function_definition
(function_name_get_action) function_name_get_action
(parameters
(identifier_self) identifier_self
(identifier_action) identifier_action
)parameters
(block
(expression_statement
(assignment
(identifier_func_name) identifier_func_name
(call
(attribute
(identifier_action) identifier_action
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'-') string_'-'
(string_'_') string_'_'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_func_name) identifier_func_name
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_DaemonError) identifier_DaemonError
(argument_list
(call
(attribute
(string_'Invalid action "{action}"') string_'Invalid action "{action}"'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_action) identifier_action
(identifier_action) identifier_action
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_func_name) identifier_func_name
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(boolean_operator
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_func) identifier_func
(string_'__call__') string_'__call__'
)argument_list
)call
)not_operator
(comparison_operator
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_func) identifier_func
(string_'__daemonocle_exposed__') string_'__daemonocle_exposed__'
(False) False
)argument_list
)call
(True) True
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(raise_statement
(call
(identifier_DaemonError) identifier_DaemonError
(argument_list
(call
(attribute
(string_'Invalid action "{action}"') string_'Invalid action "{action}"'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_action) identifier_action
(identifier_action) identifier_action
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_func) identifier_func
)return_statement
)block
)function_definition
)module | Get a callable action. |
(module
(function_definition
(function_name_send_file_from_directory) function_name_send_file_from_directory
(parameters
(identifier_filename) identifier_filename
(identifier_directory) identifier_directory
(default_parameter
(identifier_app) identifier_app
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_app) identifier_app
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_app) identifier_app
(identifier_current_app) identifier_current_app
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_cache_timeout) identifier_cache_timeout
(call
(attribute
(identifier_app) identifier_app
(identifier_get_send_file_max_age) identifier_get_send_file_max_age
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_send_from_directory) identifier_send_from_directory
(argument_list
(identifier_directory) identifier_directory
(identifier_filename) identifier_filename
(keyword_argument
(identifier_cache_timeout) identifier_cache_timeout
(identifier_cache_timeout) identifier_cache_timeout
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Helper to add static rules, like in `abilian.app`.app.
Example use::
app.add_url_rule(
app.static_url_path + '/abilian/<path:filename>',
endpoint='abilian_static',
view_func=partial(send_file_from_directory,
directory='/path/to/static/files/dir')) |
(module
(function_definition
(function_name_add_attribute_label) function_name_add_attribute_label
(parameters
(identifier_self) identifier_self
(identifier_attribute_id) identifier_attribute_id
(identifier_label) identifier_label
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_can_update) identifier_can_update
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__tcex) identifier__tcex
)attribute
(identifier_handle_error) identifier_handle_error
)attribute
(argument_list
(integer_910) integer_910
(list
(attribute
(identifier_self) identifier_self
(identifier_type) identifier_type
)attribute
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tc_requests) identifier_tc_requests
)attribute
(identifier_add_attribute_label) identifier_add_attribute_label
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_api_type) identifier_api_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_api_sub_type) identifier_api_sub_type
)attribute
(attribute
(identifier_self) identifier_self
(identifier_unique_id) identifier_unique_id
)attribute
(identifier_attribute_id) identifier_attribute_id
(identifier_label) identifier_label
(keyword_argument
(identifier_owner) identifier_owner
(attribute
(identifier_self) identifier_self
(identifier_owner) identifier_owner
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Adds a security labels to a attribute
Args:
attribute_id:
label:
Returns: A response json |
(module
(function_definition
(function_name_load_graph_xml) function_name_load_graph_xml
(parameters
(identifier_xml) identifier_xml
(identifier_filename) identifier_filename
(default_parameter
(identifier_load_all) identifier_load_all
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(list
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_root) identifier_root
(call
(attribute
(identifier_objectify) identifier_objectify
(identifier_fromstring) identifier_fromstring
)attribute
(argument_list
(identifier_xml) identifier_xml
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(return_statement
(list
)list
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(attribute
(identifier_root) identifier_root
(identifier_tag) identifier_tag
)attribute
(string_'graphs') string_'graphs'
)comparison_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_root) identifier_root
(string_'graph') string_'graph'
)argument_list
)call
)not_operator
(block
(return_statement
(list
)list
)return_statement
)block
)if_statement
(for_statement
(identifier_g) identifier_g
(attribute
(identifier_root) identifier_root
(identifier_graph) identifier_graph
)attribute
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(attribute
(identifier_g) identifier_g
(identifier_attrib) identifier_attrib
)attribute
(string_'name') string_'name'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_expressions) identifier_expressions
(list_comprehension
(attribute
(identifier_e) identifier_e
(identifier_text) identifier_text
)attribute
(for_in_clause
(identifier_e) identifier_e
(attribute
(identifier_g) identifier_g
(identifier_expression) identifier_expression
)attribute
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(identifier_load_all) identifier_load_all
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_GraphDefinition) identifier_GraphDefinition
(argument_list
(identifier_name) identifier_name
(identifier_e) identifier_e
(attribute
(attribute
(identifier_g) identifier_g
(identifier_description) identifier_description
)attribute
(identifier_text) identifier_text
)attribute
(identifier_expressions) identifier_expressions
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(call
(identifier_have_graph) identifier_have_graph
(argument_list
(identifier_name) identifier_name
)argument_list
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
(for_statement
(identifier_e) identifier_e
(identifier_expressions) identifier_expressions
(block
(if_statement
(call
(identifier_expression_ok) identifier_expression_ok
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_GraphDefinition) identifier_GraphDefinition
(argument_list
(identifier_name) identifier_name
(identifier_e) identifier_e
(attribute
(attribute
(identifier_g) identifier_g
(identifier_description) identifier_description
)attribute
(identifier_text) identifier_text
)attribute
(identifier_expressions) identifier_expressions
(identifier_filename) identifier_filename
)argument_list
)call
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | load a graph from one xml string |
(module
(function_definition
(function_name_mapstr_to_list) function_name_mapstr_to_list
(parameters
(identifier_mapstr) identifier_mapstr
)parameters
(block
(expression_statement
(assignment
(identifier_maplist) identifier_maplist
(list
)list
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_StringIO) identifier_StringIO
(argument_list
(identifier_mapstr) identifier_mapstr
)argument_list
)call
(as_pattern_target
(identifier_infile) identifier_infile
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_row) identifier_row
(identifier_infile) identifier_infile
(block
(expression_statement
(call
(attribute
(identifier_maplist) identifier_maplist
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_row) identifier_row
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(return_statement
(identifier_maplist) identifier_maplist
)return_statement
)block
)function_definition
)module | Convert an ASCII map string with rows to a list of strings, 1 string per row. |
(module
(function_definition
(function_name_patch_ligotimegps) function_name_patch_ligotimegps
(parameters
(default_parameter
(identifier_module) identifier_module
(string_"ligo.lw.lsctables") string_"ligo.lw.lsctables"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_module) identifier_module
(call
(identifier_import_module) identifier_import_module
(argument_list
(identifier_module) identifier_module
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_orig) identifier_orig
(attribute
(identifier_module) identifier_module
(identifier_LIGOTimeGPS) identifier_LIGOTimeGPS
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_module) identifier_module
(identifier_LIGOTimeGPS) identifier_LIGOTimeGPS
)attribute
(identifier__ligotimegps) identifier__ligotimegps
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(yield
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(assignment
(attribute
(identifier_module) identifier_module
(identifier_LIGOTimeGPS) identifier_LIGOTimeGPS
)attribute
(identifier_orig) identifier_orig
)assignment
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Context manager to on-the-fly patch LIGOTimeGPS to accept all int types |
(module
(function_definition
(function_name_circleconvert) function_name_circleconvert
(parameters
(identifier_amount) identifier_amount
(identifier_currentformat) identifier_currentformat
(identifier_newformat) identifier_newformat
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_currentformat) identifier_currentformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
(identifier_amount) identifier_amount
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(identifier_currentformat) identifier_currentformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'radius') string_'radius'
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'diameter') string_'diameter'
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_amount) identifier_amount
(integer_2) integer_2
)binary_operator
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'circumference') string_'circumference'
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(identifier_amount) identifier_amount
(integer_2) integer_2
)binary_operator
(attribute
(identifier_math) identifier_math
(identifier_pi) identifier_pi
)attribute
)binary_operator
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid new format provided.") string_"Invalid new format provided."
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_currentformat) identifier_currentformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'diameter') string_'diameter'
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'radius') string_'radius'
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_amount) identifier_amount
(integer_2) integer_2
)binary_operator
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'circumference') string_'circumference'
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_amount) identifier_amount
(attribute
(identifier_math) identifier_math
(identifier_pi) identifier_pi
)attribute
)binary_operator
)return_statement
)block
)elif_clause
)if_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Invalid new format provided.") string_"Invalid new format provided."
)argument_list
)call
)raise_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(call
(attribute
(identifier_currentformat) identifier_currentformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'circumference') string_'circumference'
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'radius') string_'radius'
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(identifier_amount) identifier_amount
(attribute
(identifier_math) identifier_math
(identifier_pi) identifier_pi
)attribute
)binary_operator
(integer_2) integer_2
)binary_operator
)return_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(identifier_newformat) identifier_newformat
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'diameter') string_'diameter'
)comparison_operator
(block
(return_statement
(binary_operator
(identifier_amount) identifier_amount
(attribute
(identifier_math) identifier_math
(identifier_pi) identifier_pi
)attribute
)binary_operator
)return_statement
)block
)elif_clause
)if_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Convert a circle measurement.
:type amount: number
:param amount: The number to convert.
:type currentformat: string
:param currentformat: The format of the provided value.
:type newformat: string
:param newformat: The intended format of the value.
>>> circleconvert(45, "radius", "diameter")
90 |
(module
(function_definition
(function_name_license_id) function_name_license_id
(parameters
(identifier_filename) identifier_filename
)parameters
(block
(import_statement
(dotted_name
(identifier_editdistance) identifier_editdistance
)dotted_name
)import_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'UTF-8') string_'UTF-8'
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(attribute
(identifier_f) identifier_f
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_norm) identifier_norm
(call
(identifier__norm_license) identifier__norm_license
(argument_list
(identifier_contents) identifier_contents
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_edit_dist) identifier_min_edit_dist
(attribute
(identifier_sys) identifier_sys
(identifier_maxsize) identifier_maxsize
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_edit_dist_spdx) identifier_min_edit_dist_spdx
(string_'') string_''
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_spdx) identifier_spdx
(identifier_text) identifier_text
)pattern_list
(attribute
(identifier_licenses) identifier_licenses
(identifier_LICENSES) identifier_LICENSES
)attribute
(block
(expression_statement
(assignment
(identifier_norm_license) identifier_norm_license
(call
(identifier__norm_license) identifier__norm_license
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_norm) identifier_norm
(identifier_norm_license) identifier_norm_license
)comparison_operator
(block
(return_statement
(identifier_spdx) identifier_spdx
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_norm) identifier_norm
(comparison_operator
(binary_operator
(call
(identifier_abs) identifier_abs
(argument_list
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_norm) identifier_norm
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_norm_license) identifier_norm_license
)argument_list
)call
)binary_operator
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_norm) identifier_norm
)argument_list
)call
)binary_operator
(float_.05) float_.05
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_edit_dist) identifier_edit_dist
(call
(attribute
(identifier_editdistance) identifier_editdistance
(identifier_eval) identifier_eval
)attribute
(argument_list
(identifier_norm) identifier_norm
(identifier_norm_license) identifier_norm_license
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_edit_dist) identifier_edit_dist
(identifier_min_edit_dist) identifier_min_edit_dist
)comparison_operator
(block
(expression_statement
(assignment
(identifier_min_edit_dist) identifier_min_edit_dist
(identifier_edit_dist) identifier_edit_dist
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_min_edit_dist_spdx) identifier_min_edit_dist_spdx
(identifier_spdx) identifier_spdx
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(identifier_norm) identifier_norm
(comparison_operator
(binary_operator
(identifier_min_edit_dist) identifier_min_edit_dist
(call
(identifier_len) identifier_len
(argument_list
(identifier_norm) identifier_norm
)argument_list
)call
)binary_operator
(float_.05) float_.05
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_min_edit_dist_spdx) identifier_min_edit_dist_spdx
)return_statement
)block
(else_clause
(block
(return_statement
(None) None
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the spdx id for the license contained in `filename`. If no
license is detected, returns `None`.
spdx: https://spdx.org/licenses/
licenses from choosealicense.com: https://github.com/choosealicense.com
Approximate algorithm:
1. strip copyright line
2. normalize whitespace (replace all whitespace with a single space)
3. check exact text match with existing licenses
4. failing that use edit distance |
(module
(function_definition
(function_name_get_recent_tracks) function_name_get_recent_tracks
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_limit) identifier_limit
(integer_10) integer_10
)default_parameter
(default_parameter
(identifier_cacheable) identifier_cacheable
(True) True
)default_parameter
(default_parameter
(identifier_time_from) identifier_time_from
(None) None
)default_parameter
(default_parameter
(identifier_time_to) identifier_time_to
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier__get_params) identifier__get_params
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_limit) identifier_limit
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"limit") string_"limit"
)subscript
(identifier_limit) identifier_limit
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_time_from) identifier_time_from
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"from") string_"from"
)subscript
(identifier_time_from) identifier_time_from
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_time_to) identifier_time_to
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_"to") string_"to"
)subscript
(identifier_time_to) identifier_time_to
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_seq) identifier_seq
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_track) identifier_track
(call
(identifier__collect_nodes) identifier__collect_nodes
(argument_list
(identifier_limit) identifier_limit
(identifier_self) identifier_self
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_ws_prefix) identifier_ws_prefix
)attribute
(string_".getRecentTracks") string_".getRecentTracks"
)binary_operator
(identifier_cacheable) identifier_cacheable
(identifier_params) identifier_params
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_track) identifier_track
(identifier_hasAttribute) identifier_hasAttribute
)attribute
(argument_list
(string_"nowplaying") string_"nowplaying"
)argument_list
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_title) identifier_title
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_track) identifier_track
(string_"name") string_"name"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_artist) identifier_artist
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_track) identifier_track
(string_"artist") string_"artist"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_date) identifier_date
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_track) identifier_track
(string_"date") string_"date"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_album) identifier_album
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_track) identifier_track
(string_"album") string_"album"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_timestamp) identifier_timestamp
(call
(attribute
(subscript
(call
(attribute
(identifier_track) identifier_track
(identifier_getElementsByTagName) identifier_getElementsByTagName
)attribute
(argument_list
(string_"date") string_"date"
)argument_list
)call
(integer_0) integer_0
)subscript
(identifier_getAttribute) identifier_getAttribute
)attribute
(argument_list
(string_"uts") string_"uts"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_seq) identifier_seq
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_PlayedTrack) identifier_PlayedTrack
(argument_list
(call
(identifier_Track) identifier_Track
(argument_list
(identifier_artist) identifier_artist
(identifier_title) identifier_title
(attribute
(identifier_self) identifier_self
(identifier_network) identifier_network
)attribute
)argument_list
)call
(identifier_album) identifier_album
(identifier_date) identifier_date
(identifier_timestamp) identifier_timestamp
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_seq) identifier_seq
)return_statement
)block
)function_definition
)module | Returns this user's played track as a sequence of PlayedTrack objects
in reverse order of playtime, all the way back to the first track.
Parameters:
limit : If None, it will try to pull all the available data.
from (Optional) : Beginning timestamp of a range - only display
scrobbles after this time, in UNIX timestamp format (integer
number of seconds since 00:00:00, January 1st 1970 UTC). This
must be in the UTC time zone.
to (Optional) : End timestamp of a range - only display scrobbles
before this time, in UNIX timestamp format (integer number of
seconds since 00:00:00, January 1st 1970 UTC). This must be in
the UTC time zone.
This method uses caching. Enable caching only if you're pulling a
large amount of data. |
(module
(function_definition
(function_name_runtime) function_name_runtime
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"admm.ADMM.runtime attribute has been replaced by ") string_"admm.ADMM.runtime attribute has been replaced by "
(string_"an upgraded timer class: please see the documentation ") string_"an upgraded timer class: please see the documentation "
(string_"for admm.ADMM.solve method and util.Timer class") string_"for admm.ADMM.solve method and util.Timer class"
)concatenated_string
(identifier_PendingDeprecationWarning) identifier_PendingDeprecationWarning
)argument_list
)call
)expression_statement
(return_statement
(binary_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_timer) identifier_timer
)attribute
(identifier_elapsed) identifier_elapsed
)attribute
(argument_list
(string_'init') string_'init'
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_timer) identifier_timer
)attribute
(identifier_elapsed) identifier_elapsed
)attribute
(argument_list
(string_'solve') string_'solve'
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Transitional property providing access to the new timer
mechanism. This will be removed in the future. |
(module
(function_definition
(function_name_close_transport) function_name_close_transport
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__release_media_transport) identifier__release_media_transport
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(attribute
(identifier_self) identifier_self
(identifier_access_type) identifier_access_type
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Forcibly close previously acquired media transport.
.. note:: The user should first make sure any transport
event handlers are unregistered first. |
(module
(function_definition
(function_name_runItemCmdr) function_name_runItemCmdr
(parameters
(identifier_item) identifier_item
(default_parameter
(identifier_outp) identifier_outp
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_opts) identifier_opts
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_cmdr) identifier_cmdr
(await
(call
(identifier_getItemCmdr) identifier_getItemCmdr
(argument_list
(identifier_item) identifier_item
(keyword_argument
(identifier_outp) identifier_outp
(identifier_outp) identifier_outp
)keyword_argument
(dictionary_splat
(identifier_opts) identifier_opts
)dictionary_splat
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_cmdr) identifier_cmdr
(identifier_runCmdLoop) identifier_runCmdLoop
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
)block
)function_definition
)module | Create a cmdr for the given item and run the cmd loop.
Example:
runItemCmdr(foo) |
(module
(function_definition
(function_name__start_scan) function_name__start_scan
(parameters
(identifier_self) identifier_self
(identifier_active) identifier_active
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_success) identifier_success
(identifier_retval) identifier_retval
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__set_scan_parameters) identifier__set_scan_parameters
)attribute
(argument_list
(keyword_argument
(identifier_active) identifier_active
(identifier_active) identifier_active
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_success) identifier_success
)not_operator
(block
(return_statement
(expression_list
(identifier_success) identifier_success
(identifier_retval) identifier_retval
)expression_list
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__send_command) identifier__send_command
)attribute
(argument_list
(integer_6) integer_6
(integer_2) integer_2
(list
(integer_2) integer_2
)list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_response) identifier_response
(identifier_payload) identifier_payload
)attribute
(integer_0) integer_0
)subscript
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__logger) identifier__logger
)attribute
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Error starting scan for devices, error=%d') string_'Error starting scan for devices, error=%d'
(subscript
(attribute
(identifier_response) identifier_response
(identifier_payload) identifier_payload
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
)expression_statement
(return_statement
(expression_list
(False) False
(dictionary
(pair
(string_'reason') string_'reason'
(binary_operator
(string_"Could not initiate scan for ble devices, error_code=%d, response=%s") string_"Could not initiate scan for ble devices, error_code=%d, response=%s"
(tuple
(subscript
(attribute
(identifier_response) identifier_response
(identifier_payload) identifier_payload
)attribute
(integer_0) integer_0
)subscript
(identifier_response) identifier_response
)tuple
)binary_operator
)pair
)dictionary
)expression_list
)return_statement
)block
)if_statement
)block
(except_clause
(identifier_InternalTimeoutError) identifier_InternalTimeoutError
(block
(return_statement
(expression_list
(False) False
(dictionary
(pair
(string_'reason') string_'reason'
(string_"Timeout waiting for response") string_"Timeout waiting for response"
)pair
)dictionary
)expression_list
)return_statement
)block
)except_clause
)try_statement
(return_statement
(expression_list
(True) True
(None) None
)expression_list
)return_statement
)block
)function_definition
)module | Begin scanning forever |
(module
(function_definition
(function_name_create_signature) function_name_create_signature
(parameters
(identifier_self) identifier_self
(identifier_base_url) identifier_base_url
(default_parameter
(identifier_payload) identifier_payload
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_base_url) identifier_base_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url_to_sign) identifier_url_to_sign
(call
(attribute
(string_"{path}?{query}") string_"{path}?{query}"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(attribute
(identifier_url) identifier_url
(identifier_path) identifier_path
)attribute
)keyword_argument
(keyword_argument
(identifier_query) identifier_query
(attribute
(identifier_url) identifier_url
(identifier_query) identifier_query
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_converted_payload) identifier_converted_payload
(call
(attribute
(identifier_self) identifier_self
(identifier__convert) identifier__convert
)attribute
(argument_list
(identifier_payload) identifier_payload
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_decoded_key) identifier_decoded_key
(call
(attribute
(identifier_base64) identifier_base64
(identifier_urlsafe_b64decode) identifier_urlsafe_b64decode
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_private_key) identifier_private_key
)attribute
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_signature) identifier_signature
(call
(attribute
(identifier_hmac) identifier_hmac
(identifier_new) identifier_new
)attribute
(argument_list
(identifier_decoded_key) identifier_decoded_key
(call
(attribute
(identifier_str) identifier_str
(identifier_encode) identifier_encode
)attribute
(argument_list
(binary_operator
(identifier_url_to_sign) identifier_url_to_sign
(identifier_converted_payload) identifier_converted_payload
)binary_operator
)argument_list
)call
(attribute
(identifier_hashlib) identifier_hashlib
(identifier_sha256) identifier_sha256
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_bytes) identifier_bytes
(identifier_decode) identifier_decode
)attribute
(argument_list
(call
(attribute
(identifier_base64) identifier_base64
(identifier_urlsafe_b64encode) identifier_urlsafe_b64encode
)attribute
(argument_list
(call
(attribute
(identifier_signature) identifier_signature
(identifier_digest) identifier_digest
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Creates unique signature for request.
Make sure ALL 'GET' and 'POST' data is already included before
creating the signature or receiver won't be able to re-create it.
:param base_url:
The url you'll using for your request.
:param payload:
The POST data that you'll be sending. |
(module
(function_definition
(function_name_format_string) function_name_format_string
(parameters
(identifier_format) identifier_format
(list_splat_pattern
(identifier_cols) identifier_cols
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_sc) identifier_sc
(attribute
(identifier_SparkContext) identifier_SparkContext
(identifier__active_spark_context) identifier__active_spark_context
)attribute
)assignment
)expression_statement
(return_statement
(call
(identifier_Column) identifier_Column
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_sc) identifier_sc
(identifier__jvm) identifier__jvm
)attribute
(identifier_functions) identifier_functions
)attribute
(identifier_format_string) identifier_format_string
)attribute
(argument_list
(identifier_format) identifier_format
(call
(identifier__to_seq) identifier__to_seq
(argument_list
(identifier_sc) identifier_sc
(identifier_cols) identifier_cols
(identifier__to_java_column) identifier__to_java_column
)argument_list
)call
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Formats the arguments in printf-style and returns the result as a string column.
:param col: the column name of the numeric value to be formatted
:param d: the N decimal places
>>> df = spark.createDataFrame([(5, "hello")], ['a', 'b'])
>>> df.select(format_string('%d %s', df.a, df.b).alias('v')).collect()
[Row(v=u'5 hello')] |
(module
(function_definition
(function_name_enable_asynchronous) function_name_enable_asynchronous
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_is_monkey_patched) function_name_is_monkey_patched
(parameters
)parameters
(block
(try_statement
(block
(import_from_statement
(dotted_name
(identifier_gevent) identifier_gevent
)dotted_name
(dotted_name
(identifier_monkey) identifier_monkey
)dotted_name
(dotted_name
(identifier_socket) identifier_socket
)dotted_name
)import_from_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_monkey) identifier_monkey
(string_"saved") string_"saved"
)argument_list
)call
(block
(return_statement
(comparison_operator
(string_"socket") string_"socket"
(attribute
(identifier_monkey) identifier_monkey
(identifier_saved) identifier_saved
)attribute
)comparison_operator
)return_statement
)block
)if_statement
(return_statement
(comparison_operator
(attribute
(attribute
(identifier_gevent) identifier_gevent
(identifier_socket) identifier_socket
)attribute
(identifier_socket) identifier_socket
)attribute
(attribute
(identifier_socket) identifier_socket
(identifier_socket) identifier_socket
)attribute
)comparison_operator
)return_statement
)block
)function_definition
(if_statement
(not_operator
(call
(identifier_is_monkey_patched) identifier_is_monkey_patched
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(concatenated_string
(string_"To activate asynchonoucity, please monkey patch") string_"To activate asynchonoucity, please monkey patch"
(string_" the socket module with gevent") string_" the socket module with gevent"
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Check if socket have been monkey patched by gevent |
(module
(function_definition
(function_name_set_debug_listener) function_name_set_debug_listener
(parameters
(identifier_stream) identifier_stream
)parameters
(block
(function_definition
(function_name_debugger) function_name_debugger
(parameters
(identifier_sig) identifier_sig
(identifier_frame) identifier_frame
)parameters
(block
(expression_statement
(call
(identifier_launch_debugger) identifier_launch_debugger
(argument_list
(identifier_frame) identifier_frame
(identifier_stream) identifier_stream
)argument_list
)call
)expression_statement
)block
)function_definition
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_signal) identifier_signal
(string_'SIGUSR1') string_'SIGUSR1'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_signal) identifier_signal
(identifier_signal) identifier_signal
)attribute
(argument_list
(attribute
(identifier_signal) identifier_signal
(identifier_SIGUSR1) identifier_SIGUSR1
)attribute
(identifier_debugger) identifier_debugger
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warn) identifier_warn
)attribute
(argument_list
(string_"Cannot set SIGUSR1 signal for debug mode.") string_"Cannot set SIGUSR1 signal for debug mode."
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Break into a debugger if receives the SIGUSR1 signal |
(module
(function_definition
(function_name_eat_config) function_name_eat_config
(parameters
(identifier_self) identifier_self
(identifier_conf_file) identifier_conf_file
)parameters
(block
(expression_statement
(assignment
(identifier_cfg) identifier_cfg
(call
(attribute
(identifier_ConfigParser) identifier_ConfigParser
(identifier_RawConfigParser) identifier_RawConfigParser
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_readfp) identifier_readfp
)attribute
(argument_list
(identifier_conf_file) identifier_conf_file
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_sec) identifier_sec
(string_'channels') string_'channels'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mess) identifier_mess
(string_'missmatch of channel keys') string_'missmatch of channel keys'
)assignment
)expression_statement
(assert_statement
(parenthesized_expression
(comparison_operator
(call
(identifier_set) identifier_set
(argument_list
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier_D) identifier_D
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(list_comprehension
(call
(identifier_int) identifier_int
(argument_list
(identifier_i) identifier_i
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_options) identifier_options
)attribute
(argument_list
(identifier_sec) identifier_sec
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)comparison_operator
)parenthesized_expression
(identifier_mess) identifier_mess
)assert_statement
(if_statement
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier_chnames) identifier_chnames
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier_chnames) identifier_chnames
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier_chnames_0) identifier_chnames_0
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(for_statement
(identifier_i) identifier_i
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_options) identifier_options
)attribute
(argument_list
(identifier_sec) identifier_sec
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier_chnames) identifier_chnames
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_pack) identifier_pack
)attribute
(identifier__key) identifier__key
)attribute
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)argument_list
)call
)subscript
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_sec) identifier_sec
(identifier_i) identifier_i
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_sec) identifier_sec
(string_'conditions') string_'conditions'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conops) identifier_conops
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_options) identifier_options
)attribute
(argument_list
(identifier_sec) identifier_sec
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_reset) identifier_reset
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_con) identifier_con
(identifier_conops) identifier_conops
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_condition) identifier_set_condition
)attribute
(argument_list
(identifier_con) identifier_con
(call
(attribute
(identifier_cfg) identifier_cfg
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_sec) identifier_sec
(identifier_con) identifier_con
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | conf_file a file opened for reading.
Update the packs channel names and the conditions, accordingly. |
(module
(function_definition
(function_name_has_dtypes) function_name_has_dtypes
(parameters
(identifier_df) identifier_df
(identifier_items) identifier_items
)parameters
(block
(expression_statement
(assignment
(identifier_dtypes) identifier_dtypes
(attribute
(identifier_df) identifier_df
(identifier_dtypes) identifier_dtypes
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_items) identifier_items
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(not_operator
(comparison_operator
(subscript
(identifier_dtypes) identifier_dtypes
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_AssertionError) identifier_AssertionError
(argument_list
(call
(attribute
(string_"{} has the wrong dtype. Should be ({}), is ({})") string_"{} has the wrong dtype. Should be ({}), is ({})"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_k) identifier_k
(identifier_v) identifier_v
(subscript
(identifier_dtypes) identifier_dtypes
(identifier_k) identifier_k
)subscript
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_df) identifier_df
)return_statement
)block
)function_definition
)module | Assert that a DataFrame has ``dtypes``
Parameters
==========
df: DataFrame
items: dict
mapping of columns to dtype.
Returns
=======
df : DataFrame |
(module
(function_definition
(function_name_request_search) function_name_request_search
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_txt) identifier_txt
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_checkBoxRegex) identifier_checkBoxRegex
)attribute
(identifier_isChecked) identifier_isChecked
)attribute
(argument_list
)argument_list
)call
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_lineEditSearch) identifier_lineEditSearch
)attribute
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_re) identifier_re
(identifier_DOTALL) identifier_DOTALL
)attribute
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_sre_constants) identifier_sre_constants
(identifier_error) identifier_error
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__show_error) identifier__show_error
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__show_error) identifier__show_error
)attribute
(argument_list
(None) None
)argument_list
)call
)expression_statement
)block
)else_clause
)try_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_txt) identifier_txt
(None) None
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_txt) identifier_txt
(identifier_int) identifier_int
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_txt) identifier_txt
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_lineEditSearch) identifier_lineEditSearch
)attribute
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_txt) identifier_txt
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_job_runner) identifier_job_runner
)attribute
(identifier_request_job) identifier_request_job
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__exec_search) identifier__exec_search
)attribute
(identifier_txt) identifier_txt
(call
(attribute
(identifier_self) identifier_self
(identifier__search_flags) identifier__search_flags
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_job_runner) identifier_job_runner
)attribute
(identifier_cancel_requests) identifier_cancel_requests
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__clear_occurrences) identifier__clear_occurrences
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__on_search_finished) identifier__on_search_finished
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Requests a search operation.
:param txt: The text to replace. If None, the content of lineEditSearch
is used instead. |
(module
(function_definition
(function_name__pre_tune) function_name__pre_tune
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__running) identifier__running
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__running) identifier__running
)attribute
(True) True
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__running) identifier__running
)attribute
(False) False
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'This %s was scheduled to stop. Not running %s.tune_in()') string_'This %s was scheduled to stop. Not running %s.tune_in()'
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__running) identifier__running
)attribute
(True) True
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(string_'This %s is already running. Not running %s.tune_in()') string_'This %s is already running. Not running %s.tune_in()'
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)elif_clause
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(string_'%s is starting as user \'%s\'') string_'%s is starting as user \'%s\''
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_user) identifier_user
)attribute
(identifier_get_user) identifier_get_user
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_err) identifier_err
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_log) identifier_log
)attribute
(argument_list
(boolean_operator
(boolean_operator
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_platform) identifier_platform
)attribute
(identifier_is_windows) identifier_is_windows
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_logging) identifier_logging
(identifier_DEBUG) identifier_DEBUG
)attribute
)boolean_operator
(attribute
(identifier_logging) identifier_logging
(identifier_ERROR) identifier_ERROR
)attribute
)boolean_operator
(string_'Failed to get the user who is starting %s') string_'Failed to get the user who is starting %s'
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
(keyword_argument
(identifier_exc_info) identifier_exc_info
(identifier_err) identifier_err
)keyword_argument
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Set the minion running flag and issue the appropriate warnings if
the minion cannot be started or is already running |
(module
(function_definition
(function_name_MICECache) function_name_MICECache
(parameters
(identifier_subsystem) identifier_subsystem
(default_parameter
(identifier_parent_cache) identifier_parent_cache
(None) None
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_config) identifier_config
(identifier_REDIS_CACHE) identifier_REDIS_CACHE
)attribute
(block
(expression_statement
(assignment
(identifier_cls) identifier_cls
(identifier_RedisMICECache) identifier_RedisMICECache
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_cls) identifier_cls
(identifier_DictMICECache) identifier_DictMICECache
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_subsystem) identifier_subsystem
(keyword_argument
(identifier_parent_cache) identifier_parent_cache
(identifier_parent_cache) identifier_parent_cache
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Construct a |MICE| cache.
Uses either a Redis-backed cache or a local dict cache on the object.
Args:
subsystem (Subsystem): The subsystem that this is a cache for.
Kwargs:
parent_cache (MICECache): The cache generated by the uncut
version of ``subsystem``. Any cached |MICE| which are
unaffected by the cut are reused in this cache. If None,
the cache is initialized empty. |
(module
(function_definition
(function_name_is_member) function_name_is_member
(parameters
(identifier_self) identifier_self
(identifier_ldap_user) identifier_ldap_user
(identifier_group_dn) identifier_group_dn
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_user_uid) identifier_user_uid
(subscript
(subscript
(attribute
(identifier_ldap_user) identifier_ldap_user
(identifier_attrs) identifier_attrs
)attribute
(string_"uid") string_"uid"
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_is_member) identifier_is_member
(call
(attribute
(attribute
(identifier_ldap_user) identifier_ldap_user
(identifier_connection) identifier_connection
)attribute
(identifier_compare_s) identifier_compare_s
)attribute
(argument_list
(identifier_group_dn) identifier_group_dn
(string_"memberUid") string_"memberUid"
(call
(attribute
(identifier_user_uid) identifier_user_uid
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(attribute
(identifier_ldap) identifier_ldap
(identifier_UNDEFINED_TYPE) identifier_UNDEFINED_TYPE
)attribute
(attribute
(identifier_ldap) identifier_ldap
(identifier_NO_SUCH_ATTRIBUTE) identifier_NO_SUCH_ATTRIBUTE
)attribute
)tuple
(block
(expression_statement
(assignment
(identifier_is_member) identifier_is_member
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_is_member) identifier_is_member
)not_operator
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_user_gid) identifier_user_gid
(subscript
(subscript
(attribute
(identifier_ldap_user) identifier_ldap_user
(identifier_attrs) identifier_attrs
)attribute
(string_"gidNumber") string_"gidNumber"
)subscript
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_member) identifier_is_member
(call
(attribute
(attribute
(identifier_ldap_user) identifier_ldap_user
(identifier_connection) identifier_connection
)attribute
(identifier_compare_s) identifier_compare_s
)attribute
(argument_list
(identifier_group_dn) identifier_group_dn
(string_"gidNumber") string_"gidNumber"
(call
(attribute
(identifier_user_gid) identifier_user_gid
(identifier_encode) identifier_encode
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(tuple
(attribute
(identifier_ldap) identifier_ldap
(identifier_UNDEFINED_TYPE) identifier_UNDEFINED_TYPE
)attribute
(attribute
(identifier_ldap) identifier_ldap
(identifier_NO_SUCH_ATTRIBUTE) identifier_NO_SUCH_ATTRIBUTE
)attribute
)tuple
(block
(expression_statement
(assignment
(identifier_is_member) identifier_is_member
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)if_statement
)block
(except_clause
(tuple
(identifier_KeyError) identifier_KeyError
(identifier_IndexError) identifier_IndexError
)tuple
(block
(expression_statement
(assignment
(identifier_is_member) identifier_is_member
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(return_statement
(identifier_is_member) identifier_is_member
)return_statement
)block
)function_definition
)module | Returns True if the group is the user's primary group or if the user is
listed in the group's memberUid attribute. |
(module
(function_definition
(function_name_get_compute_credentials) function_name_get_compute_credentials
(parameters
(identifier_key) identifier_key
)parameters
(block
(expression_statement
(assignment
(identifier_scopes) identifier_scopes
(list
(string_'https://www.googleapis.com/auth/compute') string_'https://www.googleapis.com/auth/compute'
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_credentials) identifier_credentials
(call
(attribute
(identifier_ServiceAccountCredentials) identifier_ServiceAccountCredentials
(identifier_from_json_keyfile_dict) identifier_from_json_keyfile_dict
)attribute
(argument_list
(identifier_key) identifier_key
(keyword_argument
(identifier_scopes) identifier_scopes
(identifier_scopes) identifier_scopes
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_credentials) identifier_credentials
)return_statement
)block
)function_definition
)module | Authenticates a service account for the compute engine.
This uses the `oauth2client.service_account` module. Since the `google`
Python package does not support the compute engine (yet?), we need to make
direct HTTP requests. For that we need authentication tokens. Obtaining
these based on the credentials provided by the `google.auth2` module is
much more cumbersome than using the `oauth2client` module.
See:
- https://cloud.google.com/iap/docs/authentication-howto
- https://developers.google.com/identity/protocols/OAuth2ServiceAccount
TODO: docstring |
(module
(function_definition
(function_name__scp) function_name__scp
(parameters
(identifier_self) identifier_self
(identifier_source) identifier_source
(identifier_destination) identifier_destination
(identifier_scp_opts) identifier_scp_opts
)parameters
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(list
(string_'scp') string_'scp'
(string_'-i') string_'-i'
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_expanduser) identifier_expanduser
)attribute
(argument_list
(string_'~/.local/share/juju/ssh/juju_id_rsa') string_'~/.local/share/juju/ssh/juju_id_rsa'
)argument_list
)call
(string_'-o') string_'-o'
(string_'StrictHostKeyChecking=no') string_'StrictHostKeyChecking=no'
(string_'-q') string_'-q'
(string_'-B') string_'-B'
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_extend) identifier_extend
)attribute
(argument_list
(conditional_expression
(call
(attribute
(identifier_scp_opts) identifier_scp_opts
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_scp_opts) identifier_scp_opts
(identifier_str) identifier_str
)argument_list
)call
(identifier_scp_opts) identifier_scp_opts
)conditional_expression
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(identifier_source) identifier_source
(identifier_destination) identifier_destination
)list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_loop) identifier_loop
(attribute
(attribute
(identifier_self) identifier_self
(identifier_model) identifier_model
)attribute
(identifier_loop) identifier_loop
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_process) identifier_process
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_create_subprocess_exec) identifier_create_subprocess_exec
)attribute
(argument_list
(list_splat
(identifier_cmd) identifier_cmd
)list_splat
(keyword_argument
(identifier_loop) identifier_loop
(identifier_loop) identifier_loop
)keyword_argument
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(await
(call
(attribute
(identifier_process) identifier_process
(identifier_wait) identifier_wait
)attribute
(argument_list
)argument_list
)call
)await
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_process) identifier_process
(identifier_returncode) identifier_returncode
)attribute
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_JujuError) identifier_JujuError
(argument_list
(binary_operator
(string_"command failed: %s") string_"command failed: %s"
(identifier_cmd) identifier_cmd
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)function_definition
)module | Execute an scp command. Requires a fully qualified source and
destination. |
(module
(function_definition
(function_name_setAutoRangeOff) function_name_setAutoRangeOff
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_getRefreshBlocked) identifier_getRefreshBlocked
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_debug) identifier_debug
)attribute
(argument_list
(call
(attribute
(string_"setAutoRangeOff blocked for {}") string_"setAutoRangeOff blocked for {}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_nodeName) identifier_nodeName
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_autoRangeCti) identifier_autoRangeCti
)attribute
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_autoRangeCti) identifier_autoRangeCti
)attribute
(identifier_data) identifier_data
)attribute
(False) False
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__forceRefreshAutoRange) identifier__forceRefreshAutoRange
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Turns off the auto range checkbox.
Calls _refreshNodeFromTarget, not _updateTargetFromNode, because setting auto range off
does not require a redraw of the target. |
(module
(function_definition
(function_name_data_complete) function_name_data_complete
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(attribute
(identifier_task) identifier_task
(identifier_data_complete) identifier_data_complete
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_datadir) identifier_datadir
)attribute
(attribute
(identifier_self) identifier_self
(identifier_sitedir) identifier_sitedir
)attribute
(attribute
(identifier_self) identifier_self
(identifier__get_container_name) identifier__get_container_name
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return True if all the expected datadir files are present |
(module
(function_definition
(function_name_main) function_name_main
(parameters
(identifier_self) identifier_self
(identifier_x) identifier_x
)parameters
(block
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_taps_fix_reversed) identifier_taps_fix_reversed
)attribute
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_next) identifier_next
)attribute
(identifier_mul) identifier_mul
)attribute
(identifier_i) identifier_i
)subscript
(binary_operator
(identifier_x) identifier_x
(subscript
(attribute
(identifier_self) identifier_self
(identifier_taps_fix_reversed) identifier_taps_fix_reversed
)attribute
(identifier_i) identifier_i
)subscript
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_i) identifier_i
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_next) identifier_next
)attribute
(identifier_acc) identifier_acc
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_mul) identifier_mul
)attribute
(identifier_i) identifier_i
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_next) identifier_next
)attribute
(identifier_acc) identifier_acc
)attribute
(identifier_i) identifier_i
)subscript
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_acc) identifier_acc
)attribute
(binary_operator
(identifier_i) identifier_i
(integer_1) integer_1
)binary_operator
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_mul) identifier_mul
)attribute
(identifier_i) identifier_i
)subscript
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_next) identifier_next
)attribute
(identifier_out) identifier_out
)attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_acc) identifier_acc
)attribute
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_out) identifier_out
)attribute
)return_statement
)block
)function_definition
)module | Transposed form FIR implementation, uses full precision |
(module
(function_definition
(function_name_validate_process_steps) function_name_validate_process_steps
(parameters
(identifier_prop) identifier_prop
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(None) None
)comparison_operator
(block
(expression_statement
(call
(identifier_validate_type) identifier_validate_type
(argument_list
(identifier_prop) identifier_prop
(identifier_value) identifier_value
(tuple
(identifier_dict) identifier_dict
(identifier_list) identifier_list
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_procstep_keys) identifier_procstep_keys
(call
(identifier_set) identifier_set
(argument_list
(subscript
(identifier__complex_definitions) identifier__complex_definitions
(identifier_prop) identifier_prop
)subscript
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_idx) identifier_idx
(identifier_procstep) identifier_procstep
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(identifier_wrap_value) identifier_wrap_value
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ps_idx) identifier_ps_idx
(binary_operator
(binary_operator
(binary_operator
(identifier_prop) identifier_prop
(string_'[') string_'['
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_idx) identifier_idx
)argument_list
)call
)binary_operator
(string_']') string_']'
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_validate_type) identifier_validate_type
(argument_list
(identifier_ps_idx) identifier_ps_idx
(identifier_procstep) identifier_procstep
(identifier_dict) identifier_dict
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_ps_prop) identifier_ps_prop
(identifier_ps_val) identifier_ps_val
)pattern_list
(call
(identifier_iteritems) identifier_iteritems
(argument_list
(identifier_procstep) identifier_procstep
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ps_key) identifier_ps_key
(call
(attribute
(string_'.') string_'.'
(identifier_join) identifier_join
)attribute
(argument_list
(tuple
(identifier_ps_idx) identifier_ps_idx
(identifier_ps_prop) identifier_ps_prop
)tuple
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_ps_prop) identifier_ps_prop
(identifier_procstep_keys) identifier_procstep_keys
)comparison_operator
(block
(expression_statement
(call
(identifier__validation_error) identifier__validation_error
(argument_list
(identifier_prop) identifier_prop
(None) None
(identifier_value) identifier_value
(parenthesized_expression
(call
(attribute
(string_'keys: {0}') string_'keys: {0}'
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_',') string_','
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_procstep_keys) identifier_procstep_keys
)argument_list
)call
)argument_list
)call
)parenthesized_expression
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_ps_prop) identifier_ps_prop
(string_'sources') string_'sources'
)comparison_operator
(block
(expression_statement
(call
(identifier_validate_type) identifier_validate_type
(argument_list
(identifier_ps_key) identifier_ps_key
(identifier_ps_val) identifier_ps_val
(identifier_string_types) identifier_string_types
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_validate_type) identifier_validate_type
(argument_list
(identifier_ps_key) identifier_ps_key
(identifier_ps_val) identifier_ps_val
(tuple
(identifier_string_types) identifier_string_types
(identifier_list) identifier_list
)tuple
)argument_list
)call
)expression_statement
(for_statement
(pattern_list
(identifier_src_idx) identifier_src_idx
(identifier_src_val) identifier_src_val
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(identifier_wrap_value) identifier_wrap_value
(argument_list
(identifier_ps_val) identifier_ps_val
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_src_key) identifier_src_key
(binary_operator
(binary_operator
(binary_operator
(identifier_ps_key) identifier_ps_key
(string_'[') string_'['
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_src_idx) identifier_src_idx
)argument_list
)call
)binary_operator
(string_']') string_']'
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(identifier_validate_type) identifier_validate_type
(argument_list
(identifier_src_key) identifier_src_key
(identifier_src_val) identifier_src_val
(identifier_string_types) identifier_string_types
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)for_statement
)block
)if_statement
)block
)function_definition
)module | Default validation for Process Steps data structure |
(module
(function_definition
(function_name_load_data) function_name_load_data
(parameters
(identifier_path) identifier_path
(default_parameter
(identifier_dense) identifier_dense
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_catalog) identifier_catalog
(dictionary
(pair
(string_'.csv') string_'.csv'
(identifier_load_csv) identifier_load_csv
)pair
(pair
(string_'.sps') string_'.sps'
(identifier_load_svmlight_file) identifier_load_svmlight_file
)pair
(pair
(string_'.h5') string_'.h5'
(identifier_load_hdf5) identifier_load_hdf5
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ext) identifier_ext
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_func) identifier_func
(subscript
(identifier_catalog) identifier_catalog
(identifier_ext) identifier_ext
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_X) identifier_X
(identifier_y) identifier_y
)pattern_list
(call
(identifier_func) identifier_func
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_dense) identifier_dense
(call
(attribute
(identifier_sparse) identifier_sparse
(identifier_issparse) identifier_issparse
)attribute
(argument_list
(identifier_X) identifier_X
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_X) identifier_X
(call
(attribute
(identifier_X) identifier_X
(identifier_todense) identifier_todense
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_X) identifier_X
(identifier_y) identifier_y
)expression_list
)return_statement
)block
)function_definition
)module | Load data from a CSV, LibSVM or HDF5 file based on the file extension.
Args:
path (str): A path to the CSV, LibSVM or HDF5 format file containing data.
dense (boolean): An optional variable indicating if the return matrix
should be dense. By default, it is false.
Returns:
Data matrix X and target vector y |
(module
(function_definition
(function_name_get_advanced_settings) function_name_get_advanced_settings
(parameters
(typed_parameter
(identifier_request) identifier_request
(type
(attribute
(identifier_web) identifier_web
(identifier_Request) identifier_Request
)attribute
)type
)typed_parameter
)parameters
(type
(attribute
(identifier_web) identifier_web
(identifier_Response) identifier_Response
)attribute
)type
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier__get_adv_settings) identifier__get_adv_settings
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_web) identifier_web
(identifier_json_response) identifier_json_response
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)return_statement
)block
)function_definition
)module | Handles a GET request and returns a json body with the key "settings" and a
value that is a list of objects where each object has keys "id", "title",
"description", and "value" |
(module
(function_definition
(function_name_check_config) function_name_check_config
(parameters
(identifier_conf) identifier_conf
)parameters
(block
(if_statement
(boolean_operator
(comparison_operator
(string_'fmode') string_'fmode'
(identifier_conf) identifier_conf
)comparison_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_conf) identifier_conf
(string_'fmode') string_'fmode'
)subscript
(identifier_string_types) identifier_string_types
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `fmode` must be a string") string_": `fmode` must be a string"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'dmode') string_'dmode'
(identifier_conf) identifier_conf
)comparison_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_conf) identifier_conf
(string_'dmode') string_'dmode'
)subscript
(identifier_string_types) identifier_string_types
)argument_list
)call
)not_operator
)boolean_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `dmode` must be a string") string_": `dmode` must be a string"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'depth') string_'depth'
(identifier_conf) identifier_conf
)comparison_operator
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_conf) identifier_conf
(string_'depth') string_'depth'
)subscript
(identifier_int) identifier_int
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `depth` must be an int") string_": `depth` must be an int"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_conf) identifier_conf
(string_'depth') string_'depth'
)subscript
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `depth` must be a positive number") string_": `depth` must be a positive number"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'hash_alg') string_'hash_alg'
(identifier_conf) identifier_conf
)comparison_operator
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_conf) identifier_conf
(string_'hash_alg') string_'hash_alg'
)subscript
(identifier_string_types) identifier_string_types
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `hash_alg` must be a string") string_": `hash_alg` must be a string"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(subscript
(identifier_conf) identifier_conf
(string_'hash_alg') string_'hash_alg'
)subscript
(identifier_ACCEPTED_HASH_ALG) identifier_ACCEPTED_HASH_ALG
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(binary_operator
(identifier_TAG) identifier_TAG
(string_": `hash_alg` must be one of ") string_": `hash_alg` must be one of "
)binary_operator
(call
(identifier_str) identifier_str
(argument_list
(identifier_ACCEPTED_HASH_ALG) identifier_ACCEPTED_HASH_ALG
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Type and boundary check |
(module
(function_definition
(function_name_OneResult) function_name_OneResult
(parameters
(identifier_parser) identifier_parser
)parameters
(block
(expression_statement
(string_"Parse like parser, but return exactly one result, not a tuple.") string_"Parse like parser, but return exactly one result, not a tuple."
)expression_statement
(function_definition
(function_name_parse) function_name_parse
(parameters
(identifier_text) identifier_text
)parameters
(block
(expression_statement
(assignment
(identifier_results) identifier_results
(call
(identifier_parser) identifier_parser
(argument_list
(identifier_text) identifier_text
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_results) identifier_results
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(binary_operator
(string_"Expected one result but got %r") string_"Expected one result but got %r"
(tuple
(identifier_results) identifier_results
)tuple
)binary_operator
)assert_statement
(return_statement
(subscript
(identifier_results) identifier_results
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
(return_statement
(identifier_parse) identifier_parse
)return_statement
)block
)function_definition
)module | Parse like parser, but return exactly one result, not a tuple. |
(module
(function_definition
(function_name_updateData) function_name_updateData
(parameters
(identifier_self) identifier_self
(identifier_signal) identifier_signal
(identifier_fs) identifier_fs
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(identifier_threading) identifier_threading
(identifier_Thread) identifier_Thread
)attribute
(argument_list
(keyword_argument
(identifier_target) identifier_target
(identifier__doSpectrogram) identifier__doSpectrogram
)keyword_argument
(keyword_argument
(identifier_args) identifier_args
(tuple
(attribute
(identifier_self) identifier_self
(identifier_spec_done) identifier_spec_done
)attribute
(tuple
(identifier_fs) identifier_fs
(identifier_signal) identifier_signal
)tuple
)tuple
)keyword_argument
(keyword_argument
(identifier_kwargs) identifier_kwargs
(attribute
(identifier_self) identifier_self
(identifier_specgramArgs) identifier_specgramArgs
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_t) identifier_t
(identifier_start) identifier_start
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Displays a spectrogram of the provided signal
:param signal: 1-D signal of audio
:type signal: numpy.ndarray
:param fs: samplerate of signal
:type fs: int |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(identifier_items) identifier_items
)parameters
(block
(expression_statement
(assignment
(identifier_post_data) identifier_post_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_items_json) identifier_items_json
(call
(attribute
(identifier_json) identifier_json
(identifier_dumps) identifier_dumps
)attribute
(argument_list
(identifier_items) identifier_items
(keyword_argument
(identifier_default) identifier_default
(identifier_dthandler) identifier_dthandler
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_post_data) identifier_post_data
(string_'data') string_'data'
)subscript
(identifier_items_json) identifier_items_json
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_post_attribute) identifier_post_attribute
)attribute
(argument_list
(string_"update") string_"update"
(keyword_argument
(identifier_data) identifier_data
(identifier_post_data) identifier_post_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(subscript
(identifier_response) identifier_response
(string_'ticket') string_'ticket'
)subscript
)return_statement
)block
)function_definition
)module | Update a catalog object
Args:
items (list): A list of dicts describing update data and action codes (see api docs)
Kwargs:
Returns:
A ticket id
Example:
>>> c = catalog.Catalog('my_songs', type='song')
>>> items
[{'action': 'update',
'item': {'artist_name': 'dAn ThE aUtOmAtOr',
'disc_number': 1,
'genre': 'Instrumental',
'item_id': '38937DDF04BC7FC4',
'play_count': 5,
'release': 'Bombay the Hard Way: Guns, Cars & Sitars',
'song_name': 'Inspector Jay From Dehli',
'track_number': 9,
'url': 'file://localhost/Users/tylerw/Music/iTunes/iTunes%20Media/Music/Dan%20the%20Automator/Bombay%20the%20Hard%20Way_%20Guns,%20Cars%20&%20Sitars/09%20Inspector%20Jay%20From%20Dehli.m4a'}}]
>>> ticket = c.update(items)
>>> ticket
u'7dcad583f2a38e6689d48a792b2e4c96'
>>> c.status(ticket)
{u'ticket_status': u'complete', u'update_info': []}
>>> |
(module
(function_definition
(function_name_find_boost) function_name_find_boost
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_short_version) identifier_short_version
(call
(attribute
(string_"{}{}") string_"{}{}"
(identifier_format) identifier_format
)attribute
(argument_list
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_boostlibnames) identifier_boostlibnames
(list
(binary_operator
(string_'boost_python-py') string_'boost_python-py'
(identifier_short_version) identifier_short_version
)binary_operator
(binary_operator
(string_'boost_python') string_'boost_python'
(identifier_short_version) identifier_short_version
)binary_operator
(string_'boost_python') string_'boost_python'
)list
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(attribute
(identifier_sys) identifier_sys
(identifier_version_info) identifier_version_info
)attribute
(integer_0) integer_0
)subscript
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(augmented_assignment
(identifier_boostlibnames) identifier_boostlibnames
(list
(string_"boost_python-mt") string_"boost_python-mt"
)list
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_boostlibnames) identifier_boostlibnames
(list
(string_"boost_python3-mt") string_"boost_python3-mt"
)list
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(for_statement
(identifier_libboostname) identifier_libboostname
(identifier_boostlibnames) identifier_boostlibnames
(block
(if_statement
(call
(identifier_find_library_file) identifier_find_library_file
(argument_list
(identifier_libboostname) identifier_libboostname
)argument_list
)call
(block
(return_statement
(identifier_libboostname) identifier_libboostname
)return_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(identifier_no_boost_error) identifier_no_boost_error
)argument_list
)call
)expression_statement
(return_statement
(subscript
(identifier_boostlibnames) identifier_boostlibnames
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module | Find the name of the boost-python library. Returns None if none is found. |
(module
(function_definition
(function_name__pfp__show) function_name__pfp__show
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_level) identifier_level
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_include_offset) identifier_include_offset
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"{}{} {{") string_"{}{} {{"
(identifier_format) identifier_format
)attribute
(argument_list
(conditional_expression
(call
(attribute
(string_"{:04x} ") string_"{:04x} "
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__pfp__offset) identifier__pfp__offset
)attribute
)argument_list
)call
(identifier_include_offset) identifier_include_offset
(string_"") string_""
)conditional_expression
(attribute
(identifier_self) identifier_self
(identifier__pfp__show_name) identifier__pfp__show_name
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
(for_statement
(identifier_child) identifier_child
(attribute
(identifier_self) identifier_self
(identifier__pfp__children) identifier__pfp__children
)attribute
(block
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"{}{}{:10s} = {}") string_"{}{}{:10s} = {}"
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(string_" ") string_" "
(parenthesized_expression
(binary_operator
(identifier_level) identifier_level
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
(conditional_expression
(call
(attribute
(string_"{:04x} ") string_"{:04x} "
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_child) identifier_child
(identifier__pfp__offset) identifier__pfp__offset
)attribute
)argument_list
)call
(identifier_include_offset) identifier_include_offset
(string_"") string_""
)conditional_expression
(attribute
(identifier_child) identifier_child
(identifier__pfp__name) identifier__pfp__name
)attribute
(call
(attribute
(identifier_child) identifier_child
(identifier__pfp__show) identifier__pfp__show
)attribute
(argument_list
(binary_operator
(identifier_level) identifier_level
(integer_1) integer_1
)binary_operator
(identifier_include_offset) identifier_include_offset
)argument_list
)call
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(string_"{}}}") string_"{}}}"
(identifier_format) identifier_format
)attribute
(argument_list
(binary_operator
(string_" ") string_" "
(identifier_level) identifier_level
)binary_operator
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(string_"\n") string_"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)return_statement
)block
)function_definition
)module | Show the contents of the struct |
(module
(function_definition
(function_name__exposure_to_weights) function_name__exposure_to_weights
(parameters
(identifier_self) identifier_self
(identifier_y) identifier_y
(default_parameter
(identifier_exposure) identifier_exposure
(None) None
)default_parameter
(default_parameter
(identifier_weights) identifier_weights
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier_y) identifier_y
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_exposure) identifier_exposure
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_exposure) identifier_exposure
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_exposure) identifier_exposure
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'f') string_'f'
)argument_list
)call
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exposure) identifier_exposure
(call
(identifier_check_array) identifier_check_array
(argument_list
(identifier_exposure) identifier_exposure
(keyword_argument
(identifier_name) identifier_name
(string_'sample exposure') string_'sample exposure'
)keyword_argument
(keyword_argument
(identifier_ndim) identifier_ndim
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_exposure) identifier_exposure
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_ones_like) identifier_ones_like
)attribute
(argument_list
(call
(attribute
(identifier_y) identifier_y
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'float64') string_'float64'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_exposure) identifier_exposure
(call
(attribute
(identifier_exposure) identifier_exposure
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_check_lengths) identifier_check_lengths
(argument_list
(identifier_y) identifier_y
(identifier_exposure) identifier_exposure
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_y) identifier_y
(binary_operator
(identifier_y) identifier_y
(identifier_exposure) identifier_exposure
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_weights) identifier_weights
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(attribute
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_weights) identifier_weights
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'f') string_'f'
)argument_list
)call
(identifier_ravel) identifier_ravel
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(identifier_check_array) identifier_check_array
(argument_list
(identifier_weights) identifier_weights
(keyword_argument
(identifier_name) identifier_name
(string_'sample weights') string_'sample weights'
)keyword_argument
(keyword_argument
(identifier_ndim) identifier_ndim
(integer_1) integer_1
)keyword_argument
(keyword_argument
(identifier_verbose) identifier_verbose
(attribute
(identifier_self) identifier_self
(identifier_verbose) identifier_verbose
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_weights) identifier_weights
(call
(attribute
(call
(attribute
(identifier_np) identifier_np
(identifier_ones_like) identifier_ones_like
)attribute
(argument_list
(identifier_y) identifier_y
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(string_'float64') string_'float64'
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_check_lengths) identifier_check_lengths
(argument_list
(identifier_weights) identifier_weights
(identifier_exposure) identifier_exposure
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_weights) identifier_weights
(binary_operator
(identifier_weights) identifier_weights
(identifier_exposure) identifier_exposure
)binary_operator
)assignment
)expression_statement
(return_statement
(expression_list
(identifier_y) identifier_y
(identifier_weights) identifier_weights
)expression_list
)return_statement
)block
)function_definition
)module | simple tool to create a common API
Parameters
----------
y : array-like, shape (n_samples,)
Target values (integers in classification, real numbers in
regression)
For classification, labels must correspond to classes.
exposure : array-like shape (n_samples,) or None, default: None
containing exposures
if None, defaults to array of ones
weights : array-like shape (n_samples,) or None, default: None
containing sample weights
if None, defaults to array of ones
Returns
-------
y : y normalized by exposure
weights : array-like shape (n_samples,) |
(module
(function_definition
(function_name_area) function_name_area
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_edges) identifier_edges
(call
(identifier_tuple) identifier_tuple
(generator_expression
(attribute
(identifier_edge) identifier_edge
(identifier__nodes) identifier__nodes
)attribute
(for_in_clause
(identifier_edge) identifier_edge
(attribute
(identifier_self) identifier_self
(identifier__edges) identifier__edges
)attribute
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier__surface_helpers) identifier__surface_helpers
(identifier_compute_area) identifier_compute_area
)attribute
(argument_list
(identifier_edges) identifier_edges
)argument_list
)call
)return_statement
)block
)function_definition
)module | r"""The area of the current curved polygon.
This assumes, but does not check, that the current curved polygon
is valid (i.e. it is bounded by the edges).
This computes the area via Green's theorem. Using the vector field
:math:`\mathbf{F} = \left[-y, x\right]^T`, since
:math:`\partial_x(x) - \partial_y(-y) = 2` Green's theorem says
.. math::
\int_{\mathcal{P}} 2 \, d\textbf{x} =
\int_{\partial \mathcal{P}} -y \, dx + x \, dy
(where :math:`\mathcal{P}` is the current curved polygon).
Note that for a given edge :math:`C(r)` with control points
:math:`x_j, y_j`, the integral can be simplified:
.. math::
\int_C -y \, dx + x \, dy = \int_0^1 (x y' - y x') \, dr
= \sum_{i < j} (x_i y_j - y_i x_j) \int_0^1 b_{i, d}
b'_{j, d} \, dr
where :math:`b_{i, d}, b_{j, d}` are Bernstein basis polynomials.
Returns:
float: The area of the current curved polygon. |
(module
(function_definition
(function_name_copy_table) function_name_copy_table
(parameters
(identifier_self) identifier_self
(identifier_sources) identifier_sources
(identifier_destination) identifier_destination
(default_parameter
(identifier_job_id) identifier_job_id
(None) None
)default_parameter
(default_parameter
(identifier_job_id_prefix) identifier_job_id_prefix
(None) None
)default_parameter
(default_parameter
(identifier_location) identifier_location
(None) None
)default_parameter
(default_parameter
(identifier_project) identifier_project
(None) None
)default_parameter
(default_parameter
(identifier_job_config) identifier_job_config
(None) None
)default_parameter
(default_parameter
(identifier_retry) identifier_retry
(identifier_DEFAULT_RETRY) identifier_DEFAULT_RETRY
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_job_id) identifier_job_id
(call
(identifier__make_job_id) identifier__make_job_id
(argument_list
(identifier_job_id) identifier_job_id
(identifier_job_id_prefix) identifier_job_id_prefix
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_project) identifier_project
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_project) identifier_project
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_location) identifier_location
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_location) identifier_location
(attribute
(identifier_self) identifier_self
(identifier_location) identifier_location
)attribute
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_job_ref) identifier_job_ref
(call
(attribute
(identifier_job) identifier_job
(identifier__JobReference) identifier__JobReference
)attribute
(argument_list
(identifier_job_id) identifier_job_id
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(keyword_argument
(identifier_location) identifier_location
(identifier_location) identifier_location
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sources) identifier_sources
(call
(identifier__table_arg_to_table_ref) identifier__table_arg_to_table_ref
(argument_list
(identifier_sources) identifier_sources
(keyword_argument
(identifier_default_project) identifier_default_project
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_sources) identifier_sources
(attribute
(identifier_collections_abc) identifier_collections_abc
(identifier_Sequence) identifier_Sequence
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_sources) identifier_sources
(list
(identifier_sources) identifier_sources
)list
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sources) identifier_sources
(list_comprehension
(call
(identifier__table_arg_to_table_ref) identifier__table_arg_to_table_ref
(argument_list
(identifier_source) identifier_source
(keyword_argument
(identifier_default_project) identifier_default_project
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_source) identifier_source
(identifier_sources) identifier_sources
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_destination) identifier_destination
(call
(identifier__table_arg_to_table_ref) identifier__table_arg_to_table_ref
(argument_list
(identifier_destination) identifier_destination
(keyword_argument
(identifier_default_project) identifier_default_project
(attribute
(identifier_self) identifier_self
(identifier_project) identifier_project
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_copy_job) identifier_copy_job
(call
(attribute
(identifier_job) identifier_job
(identifier_CopyJob) identifier_CopyJob
)attribute
(argument_list
(identifier_job_ref) identifier_job_ref
(identifier_sources) identifier_sources
(identifier_destination) identifier_destination
(keyword_argument
(identifier_client) identifier_client
(identifier_self) identifier_self
)keyword_argument
(keyword_argument
(identifier_job_config) identifier_job_config
(identifier_job_config) identifier_job_config
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_copy_job) identifier_copy_job
(identifier__begin) identifier__begin
)attribute
(argument_list
(keyword_argument
(identifier_retry) identifier_retry
(identifier_retry) identifier_retry
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_copy_job) identifier_copy_job
)return_statement
)block
)function_definition
)module | Copy one or more tables to another table.
See
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs#configuration.copy
Arguments:
sources (Union[ \
:class:`~google.cloud.bigquery.table.Table`, \
:class:`~google.cloud.bigquery.table.TableReference`, \
str, \
Sequence[ \
Union[ \
:class:`~google.cloud.bigquery.table.Table`, \
:class:`~google.cloud.bigquery.table.TableReference`, \
str, \
] \
], \
]):
Table or tables to be copied.
destination (Union[
:class:`~google.cloud.bigquery.table.Table`, \
:class:`~google.cloud.bigquery.table.TableReference`, \
str, \
]):
Table into which data is to be copied.
Keyword Arguments:
job_id (str): (Optional) The ID of the job.
job_id_prefix (str)
(Optional) the user-provided prefix for a randomly generated
job ID. This parameter will be ignored if a ``job_id`` is
also given.
location (str):
Location where to run the job. Must match the location of any
source table as well as the destination table.
project (str):
Project ID of the project of where to run the job. Defaults
to the client's project.
job_config (google.cloud.bigquery.job.CopyJobConfig):
(Optional) Extra configuration options for the job.
retry (google.api_core.retry.Retry):
(Optional) How to retry the RPC.
Returns:
google.cloud.bigquery.job.CopyJob: A new copy job instance. |
(module
(function_definition
(function_name_reboot) function_name_reboot
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_reboot_msg) identifier_reboot_msg
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_message_factory) identifier_message_factory
)attribute
(identifier_command_long_encode) identifier_command_long_encode
)attribute
(argument_list
(integer_0) integer_0
(integer_0) integer_0
(attribute
(attribute
(identifier_mavutil) identifier_mavutil
(identifier_mavlink) identifier_mavlink
)attribute
(identifier_MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN) identifier_MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN
)attribute
(integer_0) integer_0
(integer_1) integer_1
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_send_mavlink) identifier_send_mavlink
)attribute
(argument_list
(identifier_reboot_msg) identifier_reboot_msg
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Requests an autopilot reboot by sending a ``MAV_CMD_PREFLIGHT_REBOOT_SHUTDOWN`` command. |
(module
(function_definition
(function_name_validate_range_value) function_name_validate_range_value
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(comparison_operator
(identifier_value) identifier_value
(tuple
(None) None
(None) None
)tuple
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_value) identifier_value
(string_'__iter__') string_'__iter__'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'Range value must be an iterable, got "%s".') string_'Range value must be an iterable, got "%s".'
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(integer_2) integer_2
(call
(identifier_len) identifier_len
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'Range value must consist of two elements, got %d.') string_'Range value must consist of two elements, got %d.'
(call
(identifier_len) identifier_len
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(tuple
(identifier_int) identifier_int
(identifier_float) identifier_float
)tuple
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_value) identifier_value
)for_in_clause
)generator_expression
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(concatenated_string
(string_'Range value must consist of two numbers, got "%s" ') string_'Range value must consist of two numbers, got "%s" '
(string_'and "%s" instead.') string_'and "%s" instead.'
)concatenated_string
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(comparison_operator
(subscript
(identifier_value) identifier_value
(integer_0) integer_0
)subscript
(subscript
(identifier_value) identifier_value
(integer_1) integer_1
)subscript
)comparison_operator
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(concatenated_string
(string_'Range must consist of min and max values (min <= ') string_'Range must consist of min and max values (min <= '
(string_'max) but got "%s" and "%s" instead.') string_'max) but got "%s" and "%s" instead.'
)concatenated_string
(identifier_value) identifier_value
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
)return_statement
)block
)function_definition
)module | Validates given value against `Schema.TYPE_RANGE` data type. Raises
TypeError or ValueError if something is wrong. Returns None if everything
is OK. |
(module
(function_definition
(function_name_is_valid) function_name_is_valid
(parameters
(identifier_number) identifier_number
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_str) identifier_str
(argument_list
(identifier_number) identifier_number
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(identifier_n) identifier_n
(identifier_isdigit) identifier_isdigit
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(comparison_operator
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_n) identifier_n
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)argument_list
)call
(call
(identifier_get_check_digit) identifier_get_check_digit
(argument_list
(subscript
(identifier_n) identifier_n
(slice
(colon) colon
(unary_operator
(integer_1) integer_1
)unary_operator
)slice
)subscript
)argument_list
)call
)comparison_operator
)return_statement
)block
)function_definition
)module | determines whether the card number is valid. |
(module
(function_definition
(function_name_unaccent) function_name_unaccent
(parameters
(identifier_string) identifier_string
(default_parameter
(identifier_encoding) identifier_encoding
(string_"utf-8") string_"utf-8"
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(identifier_to_unicode) identifier_to_unicode
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_has_unidecode) identifier_has_unidecode
(block
(return_statement
(call
(attribute
(identifier_unidecode) identifier_unidecode
(identifier_unidecode) identifier_unidecode
)attribute
(argument_list
(identifier_string) identifier_string
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_PYTHON_VERSION) identifier_PYTHON_VERSION
(integer_3) integer_3
)comparison_operator
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_string) identifier_string
)argument_list
)call
(identifier_str) identifier_str
)comparison_operator
(block
(expression_statement
(assignment
(identifier_string) identifier_string
(call
(identifier_unicode) identifier_unicode
(argument_list
(identifier_string) identifier_string
(identifier_encoding) identifier_encoding
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_nfkd_form) identifier_nfkd_form
(call
(attribute
(identifier_unicodedata) identifier_unicodedata
(identifier_normalize) identifier_normalize
)attribute
(argument_list
(string_'NFKD') string_'NFKD'
(identifier_string) identifier_string
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(string_u"") string_u""
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(identifier_c) identifier_c
(for_in_clause
(identifier_c) identifier_c
(identifier_nfkd_form) identifier_nfkd_form
)for_in_clause
(if_clause
(not_operator
(call
(attribute
(identifier_unicodedata) identifier_unicodedata
(identifier_combining) identifier_combining
)attribute
(argument_list
(identifier_c) identifier_c
)argument_list
)call
)not_operator
)if_clause
)list_comprehension
)argument_list
)call
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"ascii") string_"ascii"
(string_"ignore") string_"ignore"
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_string) identifier_string
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | not just unaccent, but full to-ascii transliteration |
(module
(function_definition
(function_name_get_global_vars) function_name_get_global_vars
(parameters
(identifier_func) identifier_func
)parameters
(block
(expression_statement
(assignment
(identifier_closure) identifier_closure
(call
(identifier_getclosurevars) identifier_getclosurevars
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assignment
)expression_statement
(if_statement
(subscript
(identifier_closure) identifier_closure
(string_'nonlocal') string_'nonlocal'
)subscript
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_"Can't launch a job with closure variables: %s") string_"Can't launch a job with closure variables: %s"
(call
(attribute
(subscript
(identifier_closure) identifier_closure
(string_'nonlocals') string_'nonlocals'
)subscript
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_globalvars) identifier_globalvars
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_modules) identifier_modules
(dictionary
)dictionary
)keyword_argument
(keyword_argument
(identifier_functions) identifier_functions
(dictionary
)dictionary
)keyword_argument
(keyword_argument
(identifier_vars) identifier_vars
(dictionary
)dictionary
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(subscript
(identifier_closure) identifier_closure
(string_'global') string_'global'
)subscript
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_ismodule) identifier_ismodule
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_globalvars) identifier_globalvars
(string_'modules') string_'modules'
)subscript
(identifier_name) identifier_name
)subscript
(attribute
(identifier_value) identifier_value
(identifier___name__) identifier___name__
)attribute
)assignment
)expression_statement
)block
(elif_clause
(boolean_operator
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_isfunction) identifier_isfunction
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(call
(attribute
(identifier_inspect) identifier_inspect
(identifier_ismethod) identifier_ismethod
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_globalvars) identifier_globalvars
(string_'functions') string_'functions'
)subscript
(identifier_name) identifier_name
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(subscript
(identifier_globalvars) identifier_globalvars
(string_'vars') string_'vars'
)subscript
(identifier_name) identifier_name
)subscript
(identifier_value) identifier_value
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_globalvars) identifier_globalvars
)return_statement
)block
)function_definition
)module | Store any methods or variables bound from the function's closure
Args:
func (function): function to inspect
Returns:
dict: mapping of variable names to globally bound VARIABLES |
(module
(function_definition
(function_name_by_type) function_name_by_type
(parameters
(identifier_self) identifier_self
(identifier_type_name) identifier_type_name
)parameters
(block
(if_statement
(call
(attribute
(identifier_IRestorator) identifier_IRestorator
(identifier_providedBy) identifier_providedBy
)attribute
(argument_list
(identifier_type_name) identifier_type_name
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_type_name) identifier_type_name
(attribute
(identifier_type_name) identifier_type_name
(identifier_type_name) identifier_type_name
)attribute
)assignment
)expression_statement
)block
)if_statement
(return_statement
(generator_expression
(subscript
(identifier_x) identifier_x
(integer_1) integer_1
)subscript
(for_in_clause
(identifier_x) identifier_x
(attribute
(identifier_self) identifier_self
(identifier__links) identifier__links
)attribute
)for_in_clause
(if_clause
(comparison_operator
(subscript
(identifier_x) identifier_x
(integer_0) integer_0
)subscript
(identifier_type_name) identifier_type_name
)comparison_operator
)if_clause
)generator_expression
)return_statement
)block
)function_definition
)module | Return an iterator of doc_ids of the documents of the
specified type. |
(module
(function_definition
(function_name_remove_all_static_host_mappings) function_name_remove_all_static_host_mappings
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"remove_host_mapping() called") string_"remove_host_mapping() called"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_session) identifier_session
(call
(attribute
(identifier_bc) identifier_bc
(identifier_get_writer_session) identifier_get_writer_session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_mapping) identifier_mapping
(call
(identifier__lookup_all_host_mappings) identifier__lookup_all_host_mappings
(argument_list
(keyword_argument
(identifier_session) identifier_session
(identifier_session) identifier_session
)keyword_argument
(keyword_argument
(identifier_is_static) identifier_is_static
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_host) identifier_host
(identifier_mapping) identifier_mapping
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_host) identifier_host
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_flush) identifier_flush
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_c_exc) identifier_c_exc
(identifier_NexusHostMappingNotFound) identifier_NexusHostMappingNotFound
)attribute
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Remove all entries defined in config file from mapping data base. |
(module
(function_definition
(function_name__exit_handling) function_name__exit_handling
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_close_asyncio_loop) function_name_close_asyncio_loop
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(None) None
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_loop) identifier_loop
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_get_event_loop) identifier_get_event_loop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_loop) identifier_loop
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_loop) identifier_loop
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_atexit) identifier_atexit
(identifier_register) identifier_register
)attribute
(argument_list
(identifier_close_asyncio_loop) identifier_close_asyncio_loop
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Makes sure the asyncio loop is closed. |
(module
(function_definition
(function_name___add_paths) function_name___add_paths
(parameters
(identifier_self) identifier_self
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(assignment
(identifier_bin_path) identifier_bin_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_directory) identifier_directory
)attribute
(identifier_install_directory) identifier_install_directory
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_feature_name) identifier_feature_name
)attribute
)argument_list
)call
(string_'bin') string_'bin'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_whitelist_executables) identifier_whitelist_executables
(call
(attribute
(identifier_self) identifier_self
(identifier__get_whitelisted_executables) identifier__get_whitelisted_executables
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_f) identifier_f
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_bin_path) identifier_bin_path
)argument_list
)call
(block
(for_statement
(identifier_pattern) identifier_pattern
(identifier_BLACKLISTED_EXECUTABLES) identifier_BLACKLISTED_EXECUTABLES
(block
(if_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_pattern) identifier_pattern
(identifier_f) identifier_f
)argument_list
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(identifier_whitelist_executables) identifier_whitelist_executables
(comparison_operator
(identifier_f) identifier_f
(identifier_whitelist_executables) identifier_whitelist_executables
)comparison_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_directory) identifier_directory
)attribute
(identifier_symlink_to_bin) identifier_symlink_to_bin
)attribute
(argument_list
(identifier_f) identifier_f
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_bin_path) identifier_bin_path
(identifier_f) identifier_f
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | add the proper resources into the environment |
(module
(function_definition
(function_name_stop_processing) function_name_stop_processing
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_warning) identifier_warning
(True) True
)default_parameter
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier___is_processing) identifier___is_processing
)attribute
)not_operator
(block
(expression_statement
(boolean_operator
(identifier_warning) identifier_warning
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_warning) identifier_warning
)attribute
(argument_list
(call
(attribute
(string_"!> {0} | Engine is not processing, 'stop_processing' request has been ignored!") string_"!> {0} | Engine is not processing, 'stop_processing' request has been ignored!"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)argument_list
)call
)boolean_operator
)expression_statement
(return_statement
(False) False
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"> Stopping processing operation!") string_"> Stopping processing operation!"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier___is_processing) identifier___is_processing
)attribute
(False) False
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Application_Progress_Status_processing) identifier_Application_Progress_Status_processing
)attribute
(identifier_Processing_label) identifier_Processing_label
)attribute
(identifier_setText) identifier_setText
)attribute
(argument_list
(call
(identifier_QString) identifier_QString
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Application_Progress_Status_processing) identifier_Application_Progress_Status_processing
)attribute
(identifier_Processing_progressBar) identifier_Processing_progressBar
)attribute
(identifier_setRange) identifier_setRange
)attribute
(argument_list
(integer_0) integer_0
(integer_100) integer_100
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Application_Progress_Status_processing) identifier_Application_Progress_Status_processing
)attribute
(identifier_Processing_progressBar) identifier_Processing_progressBar
)attribute
(identifier_setValue) identifier_setValue
)attribute
(argument_list
(integer_0) integer_0
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_Application_Progress_Status_processing) identifier_Application_Progress_Status_processing
)attribute
(identifier_hide) identifier_hide
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Registers the end of a processing operation.
:param warning: Emit warning message.
:type warning: int
:return: Method success.
:rtype: bool |
(module
(function_definition
(function_name__plot_thermo) function_name__plot_thermo
(parameters
(identifier_self) identifier_self
(identifier_func) identifier_func
(identifier_temperatures) identifier_temperatures
(default_parameter
(identifier_factor) identifier_factor
(integer_1) integer_1
)default_parameter
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
(default_parameter
(identifier_ylabel) identifier_ylabel
(None) None
)default_parameter
(default_parameter
(identifier_label) identifier_label
(None) None
)default_parameter
(default_parameter
(identifier_ylim) identifier_ylim
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_ax) identifier_ax
(identifier_fig) identifier_fig
(identifier_plt) identifier_plt
)pattern_list
(call
(identifier_get_ax_fig_plt) identifier_get_ax_fig_plt
(argument_list
(identifier_ax) identifier_ax
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_values) identifier_values
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_t) identifier_t
(identifier_temperatures) identifier_temperatures
(block
(expression_statement
(call
(attribute
(identifier_values) identifier_values
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(call
(identifier_func) identifier_func
(argument_list
(identifier_t) identifier_t
(keyword_argument
(identifier_structure) identifier_structure
(attribute
(identifier_self) identifier_self
(identifier_structure) identifier_structure
)attribute
)keyword_argument
)argument_list
)call
(identifier_factor) identifier_factor
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_plot) identifier_plot
)attribute
(argument_list
(identifier_temperatures) identifier_temperatures
(identifier_values) identifier_values
(keyword_argument
(identifier_label) identifier_label
(identifier_label) identifier_label
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)expression_statement
(if_statement
(identifier_ylim) identifier_ylim
(block
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_set_ylim) identifier_set_ylim
)attribute
(argument_list
(identifier_ylim) identifier_ylim
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_set_xlim) identifier_set_xlim
)attribute
(argument_list
(tuple
(call
(attribute
(identifier_np) identifier_np
(identifier_min) identifier_min
)attribute
(argument_list
(identifier_temperatures) identifier_temperatures
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_max) identifier_max
)attribute
(argument_list
(identifier_temperatures) identifier_temperatures
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ylim) identifier_ylim
(call
(attribute
(identifier_plt) identifier_plt
(identifier_ylim) identifier_ylim
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(subscript
(identifier_ylim) identifier_ylim
(integer_0) integer_0
)subscript
(integer_0) integer_0
(subscript
(identifier_ylim) identifier_ylim
(integer_1) integer_1
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_plt) identifier_plt
(identifier_plot) identifier_plot
)attribute
(argument_list
(call
(attribute
(identifier_plt) identifier_plt
(identifier_xlim) identifier_xlim
)attribute
(argument_list
)argument_list
)call
(list
(integer_0) integer_0
(integer_0) integer_0
)list
(string_'k-') string_'k-'
(keyword_argument
(identifier_linewidth) identifier_linewidth
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_set_xlabel) identifier_set_xlabel
)attribute
(argument_list
(string_r"$T$ (K)") string_r"$T$ (K)"
)argument_list
)call
)expression_statement
(if_statement
(identifier_ylabel) identifier_ylabel
(block
(expression_statement
(call
(attribute
(identifier_ax) identifier_ax
(identifier_set_ylabel) identifier_set_ylabel
)attribute
(argument_list
(identifier_ylabel) identifier_ylabel
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_fig) identifier_fig
)return_statement
)block
)function_definition
)module | Plots a thermodynamic property for a generic function from a PhononDos instance.
Args:
func: the thermodynamic function to be used to calculate the property
temperatures: a list of temperatures
factor: a multiplicative factor applied to the thermodynamic property calculated. Used to change
the units.
ax: matplotlib :class:`Axes` or None if a new figure should be created.
ylabel: label for the y axis
label: label of the plot
ylim: tuple specifying the y-axis limits.
kwargs: kwargs passed to the matplotlib function 'plot'.
Returns:
matplotlib figure |
(module
(function_definition
(function_name_parse_info) function_name_parse_info
(parameters
(identifier_response) identifier_response
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_response) identifier_response
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_get_value) function_name_get_value
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(boolean_operator
(string_',') string_','
(comparison_operator
(string_'=') string_'='
(identifier_value) identifier_value
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_sub_dict) identifier_sub_dict
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_item) identifier_item
(call
(attribute
(identifier_value) identifier_value
(identifier_split) identifier_split
)attribute
(argument_list
(string_',') string_','
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_item) identifier_item
(identifier_split) identifier_split
)attribute
(argument_list
(string_'=') string_'='
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_sub_dict) identifier_sub_dict
(identifier_k) identifier_k
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(subscript
(identifier_sub_dict) identifier_sub_dict
(identifier_k) identifier_k
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_sub_dict) identifier_sub_dict
)return_statement
)block
)function_definition
(expression_statement
(assignment
(identifier_data) identifier_data
(identifier_info) identifier_info
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(call
(attribute
(identifier_response) identifier_response
(identifier_splitlines) identifier_splitlines
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_keyvalue) identifier_keyvalue
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_':') string_':'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_keyvalue) identifier_keyvalue
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(identifier_keyvalue) identifier_keyvalue
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(call
(identifier_int) identifier_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_key) identifier_key
)subscript
(call
(identifier_get_value) identifier_get_value
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_info) identifier_info
(subscript
(identifier_line) identifier_line
(slice
(integer_2) integer_2
(colon) colon
)slice
)subscript
)subscript
(identifier_data) identifier_data
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module | Parse the response of Redis's INFO command into a Python dict.
In doing so, convert byte data into unicode. |
(module
(function_definition
(function_name__updateWordSet) function_name__updateWordSet
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__wordSet) identifier__wordSet
)attribute
(binary_operator
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__keywords) identifier__keywords
)attribute
)argument_list
)call
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__customCompletions) identifier__customCompletions
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start) identifier_start
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_line) identifier_line
(attribute
(attribute
(identifier_self) identifier_self
(identifier__qpart) identifier__qpart
)attribute
(identifier_lines) identifier_lines
)attribute
(block
(for_statement
(identifier_match) identifier_match
(call
(attribute
(identifier__wordRegExp) identifier__wordRegExp
(identifier_findall) identifier_findall
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__wordSet) identifier__wordSet
)attribute
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_match) identifier_match
)argument_list
)call
)expression_statement
)block
)for_statement
(if_statement
(comparison_operator
(binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
(identifier_start) identifier_start
)binary_operator
(attribute
(identifier_self) identifier_self
(identifier__WORD_SET_UPDATE_MAX_TIME_SEC) identifier__WORD_SET_UPDATE_MAX_TIME_SEC
)attribute
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Make a set of words, which shall be completed, from text |
(module
(function_definition
(function_name_get_inputs) function_name_get_inputs
(parameters
(identifier_node) identifier_node
(identifier_kwargs) identifier_kwargs
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(subscript
(identifier_node) identifier_node
(string_"name") string_"name"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_proc_nodes) identifier_proc_nodes
(subscript
(identifier_kwargs) identifier_kwargs
(string_"proc_nodes") string_"proc_nodes"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index_lookup) identifier_index_lookup
(subscript
(identifier_kwargs) identifier_kwargs
(string_"index_lookup") string_"index_lookup"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_inputs) identifier_inputs
(subscript
(identifier_node) identifier_node
(string_"inputs") string_"inputs"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_attrs) identifier_attrs
(call
(attribute
(identifier_node) identifier_node
(identifier_get) identifier_get
)attribute
(argument_list
(string_"attrs") string_"attrs"
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_input_nodes) identifier_input_nodes
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_ip) identifier_ip
(identifier_inputs) identifier_inputs
(block
(expression_statement
(assignment
(identifier_input_node_id) identifier_input_node_id
(subscript
(identifier_index_lookup) identifier_index_lookup
(subscript
(identifier_ip) identifier_ip
(integer_0) integer_0
)subscript
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_input_nodes) identifier_input_nodes
(identifier_append) identifier_append
)attribute
(argument_list
(attribute
(subscript
(identifier_proc_nodes) identifier_proc_nodes
(identifier_input_node_id) identifier_input_node_id
)subscript
(identifier_name) identifier_name
)attribute
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_name) identifier_name
(identifier_input_nodes) identifier_input_nodes
(identifier_attrs) identifier_attrs
)expression_list
)return_statement
)block
)function_definition
)module | Helper function to get inputs |
(module
(function_definition
(function_name__update_records) function_name__update_records
(parameters
(identifier_self) identifier_self
(identifier_records) identifier_records
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(dictionary_comprehension
(pair
(identifier_k) identifier_k
(identifier_v) identifier_v
)pair
(for_in_clause
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(identifier_v) identifier_v
)if_clause
)dictionary_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_records) identifier_records
(list_comprehension
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_record) identifier_record
(dictionary_splat
(identifier_data) identifier_data
)dictionary_splat
)argument_list
)call
(for_in_clause
(identifier_record) identifier_record
(identifier_records) identifier_records
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(call
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__apicall) identifier__apicall
)attribute
(argument_list
(string_'updateDnsRecords') string_'updateDnsRecords'
(keyword_argument
(identifier_domainname) identifier_domainname
(attribute
(identifier_self) identifier_self
(identifier_domain) identifier_domain
)attribute
)keyword_argument
(keyword_argument
(identifier_dnsrecordset) identifier_dnsrecordset
(dictionary
(pair
(string_'dnsrecords') string_'dnsrecords'
(identifier_records) identifier_records
)pair
)dictionary
)keyword_argument
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(string_'dnsrecords') string_'dnsrecords'
(list
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Insert or update a list of DNS records, specified in the netcup API
convention.
The fields ``hostname``, ``type``, and ``destination`` are mandatory
and must be provided either in the record dict or through ``data``! |
(module
(function_definition
(function_name_modpath_pkg_resources) function_name_modpath_pkg_resources
(parameters
(identifier_module) identifier_module
(identifier_entry_point) identifier_entry_point
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(list
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(identifier_resource_filename_mod_entry_point) identifier_resource_filename_mod_entry_point
(argument_list
(attribute
(identifier_module) identifier_module
(identifier___name__) identifier___name__
)attribute
(identifier_entry_point) identifier_entry_point
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ImportError) identifier_ImportError
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"module '%s' could not be imported") string_"module '%s' could not be imported"
(attribute
(identifier_module) identifier_module
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
)block
)except_clause
(except_clause
(identifier_Exception) identifier_Exception
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"%r does not appear to be a valid module") string_"%r does not appear to be a valid module"
(identifier_module) identifier_module
)argument_list
)call
)expression_statement
)block
)except_clause
(else_clause
(block
(if_statement
(identifier_path) identifier_path
(block
(expression_statement
(call
(attribute
(identifier_result) identifier_result
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)else_clause
)try_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Goes through pkg_resources for compliance with various PEPs.
This one accepts a module as argument. |
(module
(function_definition
(function_name_prep_for_intensity_plot) function_name_prep_for_intensity_plot
(parameters
(identifier_data) identifier_data
(identifier_meth_code) identifier_meth_code
(default_parameter
(identifier_dropna) identifier_dropna
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_reqd_cols) identifier_reqd_cols
(tuple
)tuple
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dropna) identifier_dropna
(call
(identifier_list) identifier_list
(argument_list
(identifier_dropna) identifier_dropna
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reqd_cols) identifier_reqd_cols
(call
(identifier_list) identifier_list
(argument_list
(identifier_reqd_cols) identifier_reqd_cols
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_magn_col) identifier_magn_col
(call
(identifier_get_intensity_col) identifier_get_intensity_col
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(return_statement
(expression_list
(False) False
(string_"Could not get intensity method from data") string_"Could not get intensity method from data"
)expression_list
)return_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(identifier_magn_col) identifier_magn_col
(identifier_dropna) identifier_dropna
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_dropna) identifier_dropna
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_magn_col) identifier_magn_col
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_data) identifier_data
(identifier_dropna) identifier_dropna
)attribute
(argument_list
(keyword_argument
(identifier_axis) identifier_axis
(integer_0) integer_0
)keyword_argument
(keyword_argument
(identifier_subset) identifier_subset
(identifier_dropna) identifier_dropna
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'method_codes') string_'method_codes'
(identifier_reqd_cols) identifier_reqd_cols
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_reqd_cols) identifier_reqd_cols
(identifier_append) identifier_append
)attribute
(argument_list
(string_'method_codes') string_'method_codes'
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_magn_col) identifier_magn_col
(identifier_reqd_cols) identifier_reqd_cols
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_reqd_cols) identifier_reqd_cols
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_magn_col) identifier_magn_col
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_data) identifier_data
(identifier_reqd_cols) identifier_reqd_cols
)subscript
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_ex) identifier_ex
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_missing) identifier_missing
(call
(attribute
(call
(identifier_set) identifier_set
(argument_list
(identifier_reqd_cols) identifier_reqd_cols
)argument_list
)call
(identifier_difference) identifier_difference
)attribute
(argument_list
(attribute
(identifier_data) identifier_data
(identifier_columns) identifier_columns
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(False) False
(call
(attribute
(string_"missing these required columns: {}") string_"missing these required columns: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_missing) identifier_missing
)argument_list
)call
)argument_list
)call
)expression_list
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(subscript
(identifier_data) identifier_data
(call
(attribute
(call
(attribute
(attribute
(subscript
(identifier_data) identifier_data
(string_'method_codes') string_'method_codes'
)subscript
(identifier_str) identifier_str
)attribute
(identifier_contains) identifier_contains
)attribute
(argument_list
(identifier_meth_code) identifier_meth_code
)argument_list
)call
(identifier_astype) identifier_astype
)attribute
(argument_list
(identifier_bool) identifier_bool
)argument_list
)call
)subscript
)assignment
)expression_statement
(return_statement
(expression_list
(True) True
(identifier_data) identifier_data
)expression_list
)return_statement
)block
)function_definition
)module | Strip down measurement data to what is needed for an intensity plot.
Find the column with intensity data.
Drop empty columns, and make sure required columns are present.
Keep only records with the specified method code.
Parameters
----------
data : pandas DataFrame
measurement dataframe
meth_code : str
MagIC method code to include, i.e. 'LT-AF-Z'
dropna : list
columns that must not be empty
reqd_cols : list
columns that must be present
Returns
----------
status : bool
True if successful, else False
data : pandas DataFrame
measurement data with required columns |
(module
(function_definition
(function_name_overtime) function_name_overtime
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__overtime) identifier__overtime
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'ot') string_'ot'
)comparison_operator
(block
(return_statement
(integer_1) integer_1
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__overtime) identifier__overtime
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'so') string_'so'
)comparison_operator
(block
(return_statement
(identifier_SHOOTOUT) identifier_SHOOTOUT
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__overtime) identifier__overtime
)attribute
(string_'') string_''
)comparison_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_num) identifier_num
(call
(attribute
(identifier_re) identifier_re
(identifier_findall) identifier_findall
)attribute
(argument_list
(string_r'\d+') string_r'\d+'
(attribute
(identifier_self) identifier_self
(identifier__overtime) identifier__overtime
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_num) identifier_num
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(subscript
(identifier_num) identifier_num
(integer_0) integer_0
)subscript
)return_statement
)block
)if_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)function_definition
)module | Returns an ``int`` of the number of overtimes that were played during
the game, or an int constant if the game went to a shootout. |
(module
(function_definition
(function_name__maybe_purge_cache) function_name__maybe_purge_cache
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier__last_reload_check) identifier__last_reload_check
)attribute
(identifier_MIN_CHECK_INTERVAL) identifier_MIN_CHECK_INTERVAL
)binary_operator
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_name) identifier_name
(identifier_tmpl) identifier_tmpl
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(not_operator
(call
(attribute
(identifier_os) identifier_os
(identifier_stat) identifier_stat
)attribute
(argument_list
(attribute
(identifier_tmpl) identifier_tmpl
(identifier_path) identifier_path
)attribute
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(continue_statement
)continue_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(call
(attribute
(identifier_os) identifier_os
(identifier_stat) identifier_stat
)attribute
(argument_list
(attribute
(identifier_tmpl) identifier_tmpl
(identifier_path) identifier_path
)attribute
)argument_list
)call
(identifier_st_mtime) identifier_st_mtime
)attribute
(attribute
(identifier_tmpl) identifier_tmpl
(identifier_mtime) identifier_mtime
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cache) identifier_cache
)attribute
(identifier_clear) identifier_clear
)attribute
(argument_list
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__last_reload_check) identifier__last_reload_check
)attribute
(call
(attribute
(identifier_time) identifier_time
(identifier_time) identifier_time
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | If enough time since last check has elapsed, check if any
of the cached templates has changed. If any of the template
files were deleted, remove that file only. If any were
changed, then purge the entire cache. |
(module
(function_definition
(function_name_get_subwords) function_name_get_subwords
(parameters
(identifier_self) identifier_self
(identifier_word) identifier_word
(default_parameter
(identifier_on_unicode_error) identifier_on_unicode_error
(string_'strict') string_'strict'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pair) identifier_pair
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_f) identifier_f
)attribute
(identifier_getSubwords) identifier_getSubwords
)attribute
(argument_list
(identifier_word) identifier_word
(identifier_on_unicode_error) identifier_on_unicode_error
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(subscript
(identifier_pair) identifier_pair
(integer_0) integer_0
)subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(subscript
(identifier_pair) identifier_pair
(integer_1) integer_1
)subscript
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Given a word, get the subwords and their indicies. |
(module
(function_definition
(function_name_toggle_rich_text) function_name_toggle_rich_text
(parameters
(identifier_self) identifier_self
(identifier_checked) identifier_checked
)parameters
(block
(if_statement
(identifier_checked) identifier_checked
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_docstring) identifier_docstring
)attribute
(not_operator
(identifier_checked) identifier_checked
)not_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_switch_to_rich_text) identifier_switch_to_rich_text
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_set_option) identifier_set_option
)attribute
(argument_list
(string_'rich_mode') string_'rich_mode'
(identifier_checked) identifier_checked
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Toggle between sphinxified docstrings or plain ones |
(module
(function_definition
(function_name_get_entities_tsv) function_name_get_entities_tsv
(parameters
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
(identifier_etype) identifier_etype
)parameters
(block
(expression_statement
(assignment
(identifier_uri) identifier_uri
(call
(attribute
(string_"workspaces/{0}/{1}/entities/{2}/tsv") string_"workspaces/{0}/{1}/entities/{2}/tsv"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_namespace) identifier_namespace
(identifier_workspace) identifier_workspace
(identifier_etype) identifier_etype
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier___get) identifier___get
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)return_statement
)block
)function_definition
)module | List entities of given type in a workspace as a TSV.
Identical to get_entities(), but the response is a TSV.
Args:
namespace (str): project to which workspace belongs
workspace (str): Workspace name
etype (str): Entity type
Swagger:
https://api.firecloud.org/#!/Entities/browserDownloadEntitiesTSV |
(module
(function_definition
(function_name__find_cont_gaussian_smooth) function_name__find_cont_gaussian_smooth
(parameters
(identifier_wl) identifier_wl
(identifier_fluxes) identifier_fluxes
(identifier_ivars) identifier_ivars
(identifier_w) identifier_w
)parameters
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"Finding the continuum") string_"Finding the continuum"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_bot) identifier_bot
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(identifier_ivars) identifier_ivars
(attribute
(identifier_w) identifier_w
(identifier_T) identifier_T
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_top) identifier_top
(call
(attribute
(identifier_np) identifier_np
(identifier_dot) identifier_dot
)attribute
(argument_list
(binary_operator
(identifier_fluxes) identifier_fluxes
(identifier_ivars) identifier_ivars
)binary_operator
(attribute
(identifier_w) identifier_w
(identifier_T) identifier_T
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bad) identifier_bad
(comparison_operator
(identifier_bot) identifier_bot
(integer_0) integer_0
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cont) identifier_cont
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(attribute
(identifier_top) identifier_top
(identifier_shape) identifier_shape
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_cont) identifier_cont
(unary_operator
(identifier_bad) identifier_bad
)unary_operator
)subscript
(binary_operator
(subscript
(identifier_top) identifier_top
(unary_operator
(identifier_bad) identifier_bad
)unary_operator
)subscript
(subscript
(identifier_bot) identifier_bot
(unary_operator
(identifier_bad) identifier_bad
)unary_operator
)subscript
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_cont) identifier_cont
)return_statement
)block
)function_definition
)module | Returns the weighted mean block of spectra
Parameters
----------
wl: numpy ndarray
wavelength vector
flux: numpy ndarray
block of flux values
ivar: numpy ndarray
block of ivar values
L: float
width of Gaussian used to assign weights
Returns
-------
smoothed_fluxes: numpy ndarray
block of smoothed flux values, mean spectra |
(module
(function_definition
(function_name_togglePopup) function_name_togglePopup
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__popupWidget) identifier__popupWidget
)attribute
(identifier_isVisible) identifier_isVisible
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_showPopup) identifier_showPopup
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__popupWidget) identifier__popupWidget
)attribute
(identifier_currentMode) identifier_currentMode
)attribute
(argument_list
)argument_list
)call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__popupWidget) identifier__popupWidget
)attribute
(identifier_Mode) identifier_Mode
)attribute
(identifier_Dialog) identifier_Dialog
)attribute
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__popupWidget) identifier__popupWidget
)attribute
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Toggles whether or not the popup is visible. |
(module
(function_definition
(function_name_createLrrBafPlot) function_name_createLrrBafPlot
(parameters
(identifier_raw_dir) identifier_raw_dir
(identifier_problematic_samples) identifier_problematic_samples
(identifier_format) identifier_format
(identifier_dpi) identifier_dpi
(identifier_out_prefix) identifier_out_prefix
)parameters
(block
(expression_statement
(assignment
(identifier_dir_name) identifier_dir_name
(binary_operator
(identifier_out_prefix) identifier_out_prefix
(string_".LRR_BAF") string_".LRR_BAF"
)binary_operator
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_dir_name) identifier_dir_name
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_mkdir) identifier_mkdir
)attribute
(argument_list
(identifier_dir_name) identifier_dir_name
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_baf_lrr_plot_options) identifier_baf_lrr_plot_options
(list
(string_"--problematic-samples") string_"--problematic-samples"
(identifier_problematic_samples) identifier_problematic_samples
(string_"--raw-dir") string_"--raw-dir"
(identifier_raw_dir) identifier_raw_dir
(string_"--format") string_"--format"
(identifier_format) identifier_format
(string_"--dpi") string_"--dpi"
(call
(identifier_str) identifier_str
(argument_list
(identifier_dpi) identifier_dpi
)argument_list
)call
(string_"--out") string_"--out"
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_dir_name) identifier_dir_name
(string_"baf_lrr") string_"baf_lrr"
)argument_list
)call
)list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_baf_lrr_plot) identifier_baf_lrr_plot
(identifier_main) identifier_main
)attribute
(argument_list
(identifier_baf_lrr_plot_options) identifier_baf_lrr_plot_options
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_baf_lrr_plot) identifier_baf_lrr_plot
(identifier_ProgramError) identifier_ProgramError
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(string_"BAF LRR plot: {}") string_"BAF LRR plot: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_ProgramError) identifier_ProgramError
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Creates the LRR and BAF plot.
:param raw_dir: the directory containing the intensities.
:param problematic_samples: the file containing the problematic samples.
:param format: the format of the plot.
:param dpi: the DPI of the resulting images.
:param out_prefix: the prefix of the output file.
:type raw_dir: str
:type problematic_samples: str
:type format: str
:type out_prefix: str
Creates the LRR (Log R Ratio) and BAF (B Allele Frequency) of the
problematic samples using the :py:mod:`pyGenClean.SexCheck.baf_lrr_plot`
module. |
(module
(function_definition
(function_name_format_jid_instance_ext) function_name_format_jid_instance_ext
(parameters
(identifier_jid) identifier_jid
(identifier_job) identifier_job
)parameters
(block
(expression_statement
(assignment
(identifier_ret) identifier_ret
(call
(identifier_format_job_instance) identifier_format_job_instance
(argument_list
(identifier_job) identifier_job
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_ret) identifier_ret
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'JID') string_'JID'
(identifier_jid) identifier_jid
)pair
(pair
(string_'StartTime') string_'StartTime'
(call
(identifier_jid_to_time) identifier_jid_to_time
(argument_list
(identifier_jid) identifier_jid
)argument_list
)call
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(identifier_ret) identifier_ret
)return_statement
)block
)function_definition
)module | Format the jid correctly with jid included |
(module
(function_definition
(function_name_setStartSegment) function_name_setStartSegment
(parameters
(identifier_self) identifier_self
(identifier_segment) identifier_segment
)parameters
(block
(expression_statement
(assignment
(identifier_segments) identifier_segments
(attribute
(identifier_self) identifier_self
(identifier_segments) identifier_segments
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_segment) identifier_segment
(identifier_int) identifier_int
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_segmentIndex) identifier_segmentIndex
(call
(attribute
(identifier_segments) identifier_segments
(identifier_index) identifier_index
)attribute
(argument_list
(identifier_segment) identifier_segment
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_segmentIndex) identifier_segmentIndex
(identifier_segment) identifier_segment
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_segments) identifier_segments
)attribute
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_segmentIndex) identifier_segmentIndex
(integer_0) integer_0
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_segmentIndex) identifier_segmentIndex
(call
(identifier_len) identifier_len
(argument_list
(identifier_segments) identifier_segments
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(parenthesized_expression
(binary_operator
(concatenated_string
(string_"The contour does not contain a segment ") string_"The contour does not contain a segment "
(string_"at index %d") string_"at index %d"
)concatenated_string
(identifier_segmentIndex) identifier_segmentIndex
)binary_operator
)parenthesized_expression
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__setStartSegment) identifier__setStartSegment
)attribute
(argument_list
(identifier_segmentIndex) identifier_segmentIndex
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Set the first segment on the contour.
segment can be a segment object or an index. |
(module
(function_definition
(function_name_iterate) function_name_iterate
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_max_iter) identifier_max_iter
(None) None
)default_parameter
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(identifier_self) identifier_self
(as_pattern_target
(identifier_active_streamer) identifier_active_streamer
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(pattern_list
(identifier_n) identifier_n
(identifier_obj) identifier_obj
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(attribute
(identifier_active_streamer) identifier_active_streamer
(identifier_stream_) identifier_stream_
)attribute
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_max_iter) identifier_max_iter
(None) None
)comparison_operator
(comparison_operator
(identifier_n) identifier_n
(identifier_max_iter) identifier_max_iter
)comparison_operator
)boolean_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(yield
(identifier_obj) identifier_obj
)yield
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)function_definition
)module | Instantiate an iterator.
Parameters
----------
max_iter : None or int > 0
Maximum number of iterations to yield.
If ``None``, exhaust the stream.
Yields
------
obj : Objects yielded by the streamer provided on init.
See Also
--------
cycle : force an infinite stream. |
(module
(function_definition
(function_name_resume) function_name_resume
(parameters
(identifier_env) identifier_env
(identifier_identifier) identifier_identifier
)parameters
(block
(expression_statement
(assignment
(identifier_vsi) identifier_vsi
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_VSManager) identifier_VSManager
)attribute
(argument_list
(attribute
(identifier_env) identifier_env
(identifier_client) identifier_client
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vs_id) identifier_vs_id
(call
(attribute
(identifier_helpers) identifier_helpers
(identifier_resolve_id) identifier_resolve_id
)attribute
(argument_list
(attribute
(identifier_vsi) identifier_vsi
(identifier_resolve_ids) identifier_resolve_ids
)attribute
(identifier_identifier) identifier_identifier
(string_'VS') string_'VS'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_env) identifier_env
(identifier_client) identifier_client
)attribute
(string_'Virtual_Guest') string_'Virtual_Guest'
)subscript
(identifier_resume) identifier_resume
)attribute
(argument_list
(keyword_argument
(identifier_id) identifier_id
(identifier_vs_id) identifier_vs_id
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Resumes a paused virtual server. |
(module
(function_definition
(function_name_check_length_of_shape_or_intercept_names) function_name_check_length_of_shape_or_intercept_names
(parameters
(identifier_name_list) identifier_name_list
(identifier_num_alts) identifier_num_alts
(identifier_constrained_param) identifier_constrained_param
(identifier_list_title) identifier_list_title
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_name_list) identifier_name_list
)argument_list
)call
(parenthesized_expression
(binary_operator
(identifier_num_alts) identifier_num_alts
(identifier_constrained_param) identifier_constrained_param
)binary_operator
)parenthesized_expression
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg_1) identifier_msg_1
(call
(attribute
(string_"{} is of the wrong length:") string_"{} is of the wrong length:"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_list_title) identifier_list_title
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg_2) identifier_msg_2
(call
(attribute
(string_"len({}) == {}") string_"len({}) == {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_list_title) identifier_list_title
(call
(identifier_len) identifier_len
(argument_list
(identifier_name_list) identifier_name_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_correct_length) identifier_correct_length
(binary_operator
(identifier_num_alts) identifier_num_alts
(identifier_constrained_param) identifier_constrained_param
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg_3) identifier_msg_3
(call
(attribute
(string_"The correct length is: {}") string_"The correct length is: {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_correct_length) identifier_correct_length
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_msg) identifier_total_msg
(call
(attribute
(string_"\n") string_"\n"
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_msg_1) identifier_msg_1
(identifier_msg_2) identifier_msg_2
(identifier_msg_3) identifier_msg_3
)list
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(identifier_total_msg) identifier_total_msg
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Ensures that the length of the parameter names matches the number of
parameters that will be estimated. Will raise a ValueError otherwise.
Parameters
----------
name_list : list of strings.
Each element should be the name of a parameter that is to be estimated.
num_alts : int.
Should be the total number of alternatives in the universal choice set
for this dataset.
constrainted_param : {0, 1, True, False}
Indicates whether (1 or True) or not (0 or False) one of the type of
parameters being estimated will be constrained. For instance,
constraining one of the intercepts.
list_title : str.
Should specify the type of parameters whose names are being checked.
Examples include 'intercept_params' or 'shape_params'.
Returns
-------
None. |
(module
(function_definition
(function_name_choice) function_name_choice
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_board) identifier_board
(type
(generic_type
(identifier_Union) identifier_Union
(type_parameter
(type
(attribute
(identifier_chess) identifier_chess
(identifier_Board) identifier_Board
)attribute
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)typed_parameter
(keyword_separator
)keyword_separator
(typed_default_parameter
(identifier_minimum_weight) identifier_minimum_weight
(type
(identifier_int) identifier_int
)type
(integer_1) integer_1
)typed_default_parameter
(typed_default_parameter
(identifier_exclude_moves) identifier_exclude_moves
(type
(generic_type
(identifier_Container) identifier_Container
(type_parameter
(type
(attribute
(identifier_chess) identifier_chess
(identifier_Move) identifier_Move
)attribute
)type
)type_parameter
)generic_type
)type
(tuple
)tuple
)typed_default_parameter
(default_parameter
(identifier_random) identifier_random
(identifier_random) identifier_random
)default_parameter
)parameters
(type
(identifier_Entry) identifier_Entry
)type
(block
(expression_statement
(assignment
(identifier_chosen_entry) identifier_chosen_entry
(None) None
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_entry) identifier_entry
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_find_all) identifier_find_all
)attribute
(argument_list
(identifier_board) identifier_board
(keyword_argument
(identifier_minimum_weight) identifier_minimum_weight
(identifier_minimum_weight) identifier_minimum_weight
)keyword_argument
(keyword_argument
(identifier_exclude_moves) identifier_exclude_moves
(identifier_exclude_moves) identifier_exclude_moves
)keyword_argument
)argument_list
)call
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_chosen_entry) identifier_chosen_entry
(None) None
)comparison_operator
(comparison_operator
(call
(attribute
(identifier_random) identifier_random
(identifier_randint) identifier_randint
)attribute
(argument_list
(integer_0) integer_0
(identifier_i) identifier_i
)argument_list
)call
(identifier_i) identifier_i
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_chosen_entry) identifier_chosen_entry
(identifier_entry) identifier_entry
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(comparison_operator
(identifier_chosen_entry) identifier_chosen_entry
(None) None
)comparison_operator
(block
(raise_statement
(call
(identifier_IndexError) identifier_IndexError
(argument_list
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_chosen_entry) identifier_chosen_entry
)return_statement
)block
)function_definition
)module | Uniformly selects a random entry for the given position.
:raises: :exc:`IndexError` if no entries are found. |
(module
(function_definition
(function_name_start_child) function_name_start_child
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Started to watch for code changes') string_'Started to watch for code changes'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_loop) identifier_loop
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_get_event_loop) identifier_get_event_loop
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_watcher) identifier_watcher
(call
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Watcher) identifier_Watcher
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_flags) identifier_flags
(parenthesized_expression
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_MODIFY) identifier_MODIFY
)attribute
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_DELETE) identifier_DELETE
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_ATTRIB) identifier_ATTRIB
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_MOVED_TO) identifier_MOVED_TO
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_MOVED_FROM) identifier_MOVED_FROM
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_CREATE) identifier_CREATE
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_DELETE_SELF) identifier_DELETE_SELF
)attribute
)binary_operator
(attribute
(attribute
(identifier_aionotify) identifier_aionotify
(identifier_Flags) identifier_Flags
)attribute
(identifier_MOVE_SELF) identifier_MOVE_SELF
)attribute
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_watched_dirs) identifier_watched_dirs
(call
(identifier_list_dirs) identifier_list_dirs
(argument_list
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_dir_name) identifier_dir_name
(identifier_watched_dirs) identifier_watched_dirs
(block
(expression_statement
(call
(attribute
(identifier_watcher) identifier_watcher
(identifier_watch) identifier_watch
)attribute
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_dir_name) identifier_dir_name
)keyword_argument
(keyword_argument
(identifier_flags) identifier_flags
(identifier_flags) identifier_flags
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(await
(call
(attribute
(identifier_watcher) identifier_watcher
(identifier_setup) identifier_setup
)attribute
(argument_list
(identifier_loop) identifier_loop
)argument_list
)call
)await
)expression_statement
(while_statement
(True) True
(block
(expression_statement
(assignment
(identifier_evt) identifier_evt
(await
(call
(attribute
(identifier_watcher) identifier_watcher
(identifier_get_event) identifier_get_event
)attribute
(argument_list
)argument_list
)call
)await
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_file_path) identifier_file_path
(call
(attribute
(identifier_path) identifier_path
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_evt) identifier_evt
(identifier_alias) identifier_alias
)attribute
(attribute
(identifier_evt) identifier_evt
(identifier_name) identifier_name
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_file_path) identifier_file_path
(identifier_watched_dirs) identifier_watched_dirs
)comparison_operator
(call
(attribute
(identifier_file_path) identifier_file_path
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'.py') string_'.py'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(await
(call
(attribute
(identifier_asyncio) identifier_asyncio
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_CODE_RELOAD_DEBOUNCE) identifier_CODE_RELOAD_DEBOUNCE
)attribute
)argument_list
)call
)await
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)while_statement
(expression_statement
(call
(attribute
(identifier_watcher) identifier_watcher
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_exit_for_reload) identifier_exit_for_reload
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start the child process that will look for changes in modules. |
(module
(function_definition
(function_name_to_array) function_name_to_array
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_array) identifier_array
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_SuccessfulPayment) identifier_SuccessfulPayment
(identifier_self) identifier_self
)argument_list
)call
(identifier_to_array) identifier_to_array
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'currency') string_'currency'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_currency) identifier_currency
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'total_amount') string_'total_amount'
)subscript
(call
(identifier_int) identifier_int
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_total_amount) identifier_total_amount
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'invoice_payload') string_'invoice_payload'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_invoice_payload) identifier_invoice_payload
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'telegram_payment_charge_id') string_'telegram_payment_charge_id'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_telegram_payment_charge_id) identifier_telegram_payment_charge_id
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'provider_payment_charge_id') string_'provider_payment_charge_id'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_provider_payment_charge_id) identifier_provider_payment_charge_id
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_shipping_option_id) identifier_shipping_option_id
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'shipping_option_id') string_'shipping_option_id'
)subscript
(call
(identifier_u) identifier_u
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_shipping_option_id) identifier_shipping_option_id
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_order_info) identifier_order_info
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(string_'order_info') string_'order_info'
)subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_order_info) identifier_order_info
)attribute
(identifier_to_array) identifier_to_array
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_array) identifier_array
)return_statement
)block
)function_definition
)module | Serializes this SuccessfulPayment to a dictionary.
:return: dictionary representation of this object.
:rtype: dict |
(module
(function_definition
(function_name_find_step_impl) function_name_find_step_impl
(parameters
(identifier_self) identifier_self
(identifier_step) identifier_step
)parameters
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(None) None
)assignment
)expression_statement
(for_statement
(identifier_si) identifier_si
(subscript
(attribute
(identifier_self) identifier_self
(identifier_steps) identifier_steps
)attribute
(attribute
(identifier_step) identifier_step
(identifier_step_type) identifier_step_type
)attribute
)subscript
(block
(expression_statement
(assignment
(identifier_matches) identifier_matches
(call
(attribute
(identifier_si) identifier_si
(identifier_match) identifier_match
)attribute
(argument_list
(attribute
(identifier_step) identifier_step
(identifier_match) identifier_match
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_matches) identifier_matches
(block
(if_statement
(identifier_result) identifier_result
(block
(raise_statement
(call
(identifier_AmbiguousStepImpl) identifier_AmbiguousStepImpl
(argument_list
(identifier_step) identifier_step
(subscript
(identifier_result) identifier_result
(integer_0) integer_0
)subscript
(identifier_si) identifier_si
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__apply_transforms) identifier__apply_transforms
)attribute
(argument_list
(identifier_arg) identifier_arg
(identifier_si) identifier_si
)argument_list
)call
(for_in_clause
(identifier_arg) identifier_arg
(call
(attribute
(identifier_matches) identifier_matches
(identifier_groups) identifier_groups
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(expression_list
(identifier_si) identifier_si
(identifier_args) identifier_args
)expression_list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(not_operator
(identifier_result) identifier_result
)not_operator
(block
(raise_statement
(call
(identifier_UndefinedStepImpl) identifier_UndefinedStepImpl
(argument_list
(identifier_step) identifier_step
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Find the implementation of the step for the given match string. Returns the StepImpl object
corresponding to the implementation, and the arguments to the step implementation. If no
implementation is found, raises UndefinedStepImpl. If more than one implementation is
found, raises AmbiguousStepImpl.
Each of the arguments returned will have been transformed by the first matching transform
implementation. |
(module
(function_definition
(function_name_do_up) function_name_do_up
(parameters
(identifier_self) identifier_self
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_CommandArgumentParser) identifier_CommandArgumentParser
(argument_list
(string_"up") string_"up"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(call
(identifier_vars) identifier_vars
(argument_list
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(None) None
(attribute
(identifier_self) identifier_self
(identifier_parent) identifier_parent
)attribute
)comparison_operator
(block
(print_statement
(string_"You're at the root. Try 'quit' to quit") string_"You're at the root. Try 'quit' to quit"
)print_statement
)block
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Navigate up by one level.
For example, if you are in `(aws)/stack:.../asg:.../`, executing `up` will place you in `(aws)/stack:.../`.
up -h for more details |
(module
(function_definition
(function_name_is_iterable_of_int) function_name_is_iterable_of_int
(parameters
(identifier_l) identifier_l
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(if_statement
(not_operator
(call
(identifier_is_iterable) identifier_is_iterable
(argument_list
(identifier_l) identifier_l
)argument_list
)call
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_all) identifier_all
(generator_expression
(call
(identifier_is_int) identifier_is_int
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(for_in_clause
(identifier_value) identifier_value
(identifier_l) identifier_l
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module | r""" Checks if l is iterable and contains only integral types |
(module
(function_definition
(function_name_run_iqtree) function_name_run_iqtree
(parameters
(identifier_phy) identifier_phy
(identifier_model) identifier_model
(identifier_threads) identifier_threads
(identifier_cluster) identifier_cluster
(identifier_node) identifier_node
)parameters
(block
(if_statement
(comparison_operator
(identifier_threads) identifier_threads
(integer_24) integer_24
)comparison_operator
(block
(expression_statement
(assignment
(identifier_ppn) identifier_ppn
(integer_24) integer_24
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_ppn) identifier_ppn
(identifier_threads) identifier_threads
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_tree) identifier_tree
(binary_operator
(string_'%s.treefile') string_'%s.treefile'
(parenthesized_expression
(identifier_phy) identifier_phy
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_check) identifier_check
(argument_list
(identifier_tree) identifier_tree
)argument_list
)call
(False) False
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_model) identifier_model
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(string_'TEST') string_'TEST'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dir) identifier_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(binary_operator
(string_'iqtree-omp -s %s -m %s -nt %s -quiet') string_'iqtree-omp -s %s -m %s -nt %s -quiet'
(line_continuation_\) line_continuation_\
(tuple
(identifier_phy) identifier_phy
(identifier_model) identifier_model
(identifier_threads) identifier_threads
)tuple
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_cluster) identifier_cluster
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_Popen) identifier_Popen
(argument_list
(identifier_command) identifier_command
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_node) identifier_node
(False) False
)comparison_operator
(block
(expression_statement
(assignment
(identifier_node) identifier_node
(string_'1') string_'1'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_qsub) identifier_qsub
(binary_operator
(string_'qsub -l nodes=%s:ppn=%s -m e -N iqtree') string_'qsub -l nodes=%s:ppn=%s -m e -N iqtree'
(tuple
(identifier_node) identifier_node
(identifier_ppn) identifier_ppn
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(binary_operator
(string_'cd /tmp; mkdir iqtree; cd iqtree; cp %s/%s .; %s; mv * %s/; rm -r ../iqtree') string_'cd /tmp; mkdir iqtree; cd iqtree; cp %s/%s .; %s; mv * %s/; rm -r ../iqtree'
(line_continuation_\) line_continuation_\
(tuple
(identifier_dir) identifier_dir
(identifier_phy) identifier_phy
(identifier_command) identifier_command
(identifier_dir) identifier_dir
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_re_call) identifier_re_call
(binary_operator
(string_'cd %s; %s --no-fast --iq') string_'cd %s; %s --no-fast --iq'
(tuple
(subscript
(call
(attribute
(identifier_dir) identifier_dir
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
(integer_0) integer_0
)subscript
(call
(attribute
(string_' ') string_' '
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_sys) identifier_sys
(identifier_argv) identifier_argv
)attribute
)argument_list
)call
)tuple
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_Popen) identifier_Popen
(argument_list
(binary_operator
(string_'echo "%s;%s" | %s') string_'echo "%s;%s" | %s'
(tuple
(identifier_command) identifier_command
(identifier_re_call) identifier_re_call
(identifier_qsub) identifier_qsub
)tuple
)binary_operator
(keyword_argument
(identifier_shell) identifier_shell
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_p) identifier_p
(identifier_communicate) identifier_communicate
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_tree) identifier_tree
)return_statement
)block
)function_definition
)module | run IQ-Tree |
(module
(function_definition
(function_name_clone) function_name_clone
(parameters
(identifier_cls) identifier_cls
(identifier_repo_location) identifier_repo_location
(default_parameter
(identifier_repo_dir) identifier_repo_dir
(None) None
)default_parameter
(default_parameter
(identifier_branch_or_tag) identifier_branch_or_tag
(None) None
)default_parameter
(default_parameter
(identifier_temp) identifier_temp
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_temp) identifier_temp
(block
(expression_statement
(assignment
(identifier_reponame) identifier_reponame
(subscript
(call
(attribute
(identifier_repo_location) identifier_repo_location
(identifier_rsplit) identifier_rsplit
)attribute
(argument_list
(string_'/') string_'/'
(integer_1) integer_1
)argument_list
)call
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_suffix) identifier_suffix
(binary_operator
(string_'%s.temp_simpl_GitRepo') string_'%s.temp_simpl_GitRepo'
(call
(attribute
(string_'_') string_'_'
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_str) identifier_str
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(tuple
(identifier_reponame) identifier_reponame
(identifier_branch_or_tag) identifier_branch_or_tag
)tuple
)for_in_clause
(if_clause
(identifier_x) identifier_x
)if_clause
)list_comprehension
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_repo_dir) identifier_repo_dir
(call
(identifier_create_tempdir) identifier_create_tempdir
(argument_list
(keyword_argument
(identifier_suffix) identifier_suffix
(identifier_suffix) identifier_suffix
)keyword_argument
(keyword_argument
(identifier_delete) identifier_delete
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_repo_dir) identifier_repo_dir
(boolean_operator
(identifier_repo_dir) identifier_repo_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(identifier_git_clone) identifier_git_clone
(argument_list
(identifier_repo_dir) identifier_repo_dir
(identifier_repo_location) identifier_repo_location
(keyword_argument
(identifier_branch_or_tag) identifier_branch_or_tag
(identifier_branch_or_tag) identifier_branch_or_tag
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_repo_dir) identifier_repo_dir
)argument_list
)call
)return_statement
)block
)function_definition
)module | Clone repo at repo_location into repo_dir and checkout branch_or_tag.
Defaults into current working directory if repo_dir is not supplied.
If 'temp' is True, a temporary directory will be created for you
and the repository will be cloned into it. The tempdir is scheduled
for deletion (when the process exits) through an exit function
registered with the atexit module. If 'temp' is True, repo_dir
is ignored.
If branch_or_tag is not specified, the HEAD of the primary
branch of the cloned repo is checked out. |
(module
(function_definition
(function_name_init_celery) function_name_init_celery
(parameters
(identifier_project_name) identifier_project_name
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(identifier_setdefault) identifier_setdefault
)attribute
(argument_list
(string_'DJANGO_SETTINGS_MODULE') string_'DJANGO_SETTINGS_MODULE'
(binary_operator
(string_'%s.settings') string_'%s.settings'
(identifier_project_name) identifier_project_name
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_app) identifier_app
(call
(identifier_Celery) identifier_Celery
(argument_list
(identifier_project_name) identifier_project_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_config_from_object) identifier_config_from_object
)attribute
(argument_list
(string_'django.conf:settings') string_'django.conf:settings'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_app) identifier_app
(identifier_autodiscover_tasks) identifier_autodiscover_tasks
)attribute
(argument_list
(attribute
(identifier_settings) identifier_settings
(identifier_INSTALLED_APPS) identifier_INSTALLED_APPS
)attribute
(keyword_argument
(identifier_related_name) identifier_related_name
(string_'tasks') string_'tasks'
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_app) identifier_app
)return_statement
)block
)function_definition
)module | init celery app without the need of redundant code |
(module
(function_definition
(function_name_encode_packet) function_name_encode_packet
(parameters
(typed_parameter
(identifier_packet) identifier_packet
(type
(identifier_dict) identifier_dict
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(if_statement
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'protocol') string_'protocol'
)subscript
(string_'rfdebug') string_'rfdebug'
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(string_'10;RFDEBUG=') string_'10;RFDEBUG='
(subscript
(identifier_packet) identifier_packet
(string_'command') string_'command'
)subscript
)binary_operator
(string_';') string_';'
)binary_operator
)return_statement
)block
(elif_clause
(comparison_operator
(subscript
(identifier_packet) identifier_packet
(string_'protocol') string_'protocol'
)subscript
(string_'rfudebug') string_'rfudebug'
)comparison_operator
(block
(return_statement
(binary_operator
(binary_operator
(string_'10;RFDEBUG=') string_'10;RFDEBUG='
(subscript
(identifier_packet) identifier_packet
(string_'command') string_'command'
)subscript
)binary_operator
(string_';') string_';'
)binary_operator
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(call
(attribute
(identifier_SWITCH_COMMAND_TEMPLATE) identifier_SWITCH_COMMAND_TEMPLATE
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_node) identifier_node
(attribute
(attribute
(identifier_PacketHeader) identifier_PacketHeader
(identifier_master) identifier_master
)attribute
(identifier_value) identifier_value
)attribute
)keyword_argument
(dictionary_splat
(identifier_packet) identifier_packet
)dictionary_splat
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Construct packet string from packet dictionary.
>>> encode_packet({
... 'protocol': 'newkaku',
... 'id': '000001',
... 'switch': '01',
... 'command': 'on',
... })
'10;newkaku;000001;01;on;' |
(module
(function_definition
(function_name__get_adjustment) function_name__get_adjustment
(parameters
(identifier_mag) identifier_mag
(identifier_year) identifier_year
(identifier_mmin) identifier_mmin
(identifier_completeness_year) identifier_completeness_year
(identifier_t_f) identifier_t_f
(default_parameter
(identifier_mag_inc) identifier_mag_inc
(float_0.1) float_0.1
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_completeness_year) identifier_completeness_year
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_mag) identifier_mag
(identifier_mmin) identifier_mmin
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_year) identifier_year
(subscript
(identifier_completeness_year) identifier_completeness_year
(integer_0) integer_0
)subscript
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(return_statement
(float_1.0) float_1.0
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_kval) identifier_kval
(binary_operator
(call
(identifier_int) identifier_int
(argument_list
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_mag) identifier_mag
(identifier_mmin) identifier_mmin
)binary_operator
)parenthesized_expression
(identifier_mag_inc) identifier_mag_inc
)binary_operator
)parenthesized_expression
)argument_list
)call
(integer_1) integer_1
)binary_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(parenthesized_expression
(comparison_operator
(identifier_kval) identifier_kval
(integer_1) integer_1
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(identifier_year) identifier_year
(subscript
(identifier_completeness_year) identifier_completeness_year
(binary_operator
(identifier_kval) identifier_kval
(integer_1) integer_1
)binary_operator
)subscript
)comparison_operator
)parenthesized_expression
)boolean_operator
(block
(return_statement
(identifier_t_f) identifier_t_f
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | If the magnitude is greater than the minimum in the completeness table
and the year is greater than the corresponding completeness year then
return the Weichert factor
:param float mag:
Magnitude of an earthquake
:param float year:
Year of earthquake
:param np.ndarray completeness_table:
Completeness table
:param float mag_inc:
Magnitude increment
:param float t_f:
Weichert adjustment factor
:returns:
Weichert adjustment factor is event is in complete part of catalogue
(0.0 otherwise) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.