sequence
stringlengths
186
3.94k
docstring
stringlengths
11
171
module function_definition identifier parameters block expression_statement assignment identifier call attribute identifier identifier argument_list keyword_argument identifier call identifier argument_list keyword_argument identifier integer keyword_argument identifier integer expression_statement assignment identifie...
Create public and private ssh-keys.
module function_definition identifier parameters identifier block if_statement not_operator identifier block expression_statement assignment subscript attribute identifier identifier string string_start string_content string_end call identifier argument_list identifier keyword_argument identifier true keyword_argument ...
Populate the event_list variable to be used in jinja templates
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call attribute identifier identifier argument_list string string_start string_content string_end block if_statement boolean_operator comparison_operator call identifier argument_list attribute identifier identi...
get time from mavlink ATTITUDE
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block return_statement expression_statement call identifier argument_list list string string_start string_content string_end string string_start string_content string_end binary_operator binary_operator binary...
Read `dataset_meta` field from bucket
module function_definition identifier parameters identifier dictionary_splat_pattern identifier type identifier block return_statement call attribute identifier identifier argument_list identifier keyword_argument identifier identifier dictionary_splat identifier
Serialize a BioC ``obj`` to a JSON formatted ``str``.
module function_definition identifier parameters identifier identifier block for_statement identifier identifier block if_statement comparison_operator call attribute subscript identifier string string_start string_content string_end identifier argument_list call attribute identifier identifier argument_list block retu...
searches the roles by name and returns the role's ID
module function_definition identifier parameters identifier identifier block expression_statement identifier expression_statement assignment identifier call attribute string string_start string_content string_end identifier argument_list list_comprehension binary_operator binary_operator identifier string string_start ...
u"""Sets the style attribute of a node to the dictionary ``styleMap``.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call attribute call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end string string_start string_end identifier argument_list string ...
Return domain from the url
module function_definition identifier parameters identifier identifier block expression_statement assignment subscript attribute identifier identifier attribute identifier identifier identifier expression_statement assignment subscript attribute identifier identifier attribute identifier identifier tuple identifier att...
Update the shared map with my in-construction node
module function_definition identifier parameters identifier identifier default_parameter identifier dictionary block expression_statement call attribute identifier identifier argument_list identifier identifier if_statement comparison_operator attribute identifier identifier none block return_statement none return_stat...
wraps response_from for timeseries calls, returns the resulting dict
module function_definition identifier parameters identifier identifier block return_statement call identifier argument_list lambda lambda_parameters identifier boolean_operator parenthesized_expression comparison_operator identifier identifier identifier call identifier argument_list identifier identifier
Greater than or equal to y and less than z.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment identifier call attribute identifier identifier argument_list identifier return_statement identifier
Convert a zeep object to a dictionary.
module function_definition identifier parameters block expression_statement assignment identifier false if_statement comparison_operator string string_start string_content string_end attribute identifier identifier block expression_statement assignment identifier call identifier argument_list list string string_start s...
Check if apio can be installed through apt-get
module function_definition identifier parameters identifier identifier block expression_statement call attribute attribute identifier identifier identifier argument_list call attribute string string_start string_content string_end identifier argument_list identifier expression_statement call attribute attribute attribu...
Run AJAX Spider against a URL.
module function_definition identifier parameters identifier identifier block for_statement identifier call attribute identifier identifier argument_list block try_statement block expression_statement assignment identifier call attribute identifier identifier argument_list identifier except_clause as_pattern identifier ...
Copy all records from source_datastore to dest_datastore
module function_definition identifier parameters identifier identifier dictionary_splat_pattern identifier block return_statement call attribute identifier identifier argument_list binary_operator attribute identifier identifier parenthesized_expression identifier keyword_argument identifier identifier
Fetches information of a certain port.
module function_definition identifier parameters identifier identifier block with_statement with_clause with_item as_pattern call identifier argument_list identifier as_pattern_target identifier block expression_statement call identifier argument_list call attribute identifier identifier argument_list identifier
Query the Riemann server
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier parenthesized_expression boolean_operator comparison_operator attribute identifier identifier attribute identifier identifier parenthesized_expression boolean_operator comparison_operator attribute id...
Add `dist` to the distribution map
module function_definition identifier parameters identifier identifier block expression_statement call attribute identifier identifier argument_list list identifier string string_start string_content string_end string string_start string_content string_end list identifier string string_start string_content string_end s...
Return the critical local water depth.
module function_definition identifier parameters list_splat_pattern identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list list_splat identifier expression_statement assignment identifier call attribute attribute identifier identifier identifi...
Retrieve volume usage info for the given path.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list call identifier argument_list identifier binary_operator string string_start string_content string_end identifier string string_start string_content ...
Get users from LDAP
module function_definition identifier parameters identifier block expression_statement assignment identifier list expression_statement assignment identifier integer for_statement pattern_list identifier identifier call attribute identifier identifier argument_list block expression_statement call attribute identifier id...
Build a map message.
module function_definition identifier parameters identifier block if_statement boolean_operator comparison_operator attribute identifier identifier integer comparison_operator attribute identifier identifier none block return_statement expression_statement call attribute attribute identifier identifier identifier argum...
Flushes the event file to disk.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier call attribute identifier identifier argument_list return_statement call attribute call attribute identifi...
Computes the md5 digest of a byte buffer in base64 encoding.
module function_definition identifier parameters identifier default_parameter identifier identifier default_parameter identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier call attribute identifier identi...
Load a COOrdinate formatted binary quadratic model from a file.
module function_definition identifier parameters identifier block if_statement parenthesized_expression comparison_operator attribute identifier identifier none block expression_statement call attribute attribute identifier identifier identifier argument_list if_statement parenthesized_expression comparison_operator at...
Closes Serial port, or TCP-Socket connection
module function_definition identifier parameters identifier block return_statement dictionary pair string string_start string_content string_end attribute identifier identifier pair string string_start string_content string_end attribute identifier identifier pair string string_start string_content string_end call attr...
Return the options as a dictionary to be used as JSON in a query job.
module function_definition identifier parameters identifier block expression_statement assignment identifier conditional_expression attribute attribute identifier identifier identifier attribute identifier identifier none return_statement call attribute attribute identifier identifier identifier argument_list identifie...
the executable application's path
module function_definition identifier parameters identifier identifier identifier block expression_statement string string_start string_content string_end expression_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list identifier identifier...
Set the canvas size in pixels
module function_definition identifier parameters identifier block if_statement boolean_operator not_operator attribute identifier identifier comparison_operator subscript attribute identifier identifier string string_start string_content string_end true block return_statement expression_statement call attribute identif...
Custom system base conversion function
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call attribute attribute attribute identifier identifier identifier identifier argument_list identifier argument_list keyword_argument identifier true expression_statement assignment identifier ca...
Returns the list of courses this user is tutor or owner for.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier attribute identifier identifier block expression_statement assignment identifier parenthesized_expression comparison_operator call attribute identifier identifier argument_list identifier string stri...
Determine whether to allow unparsed flag access or not.
module function_definition identifier parameters list_splat_pattern identifier block function_definition identifier parameters identifier block for_statement identifier identifier block expression_statement assignment identifier call identifier argument_list identifier if_statement identifier block return_statement ide...
Validation only succeeds if all passed in validators return no errors
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier tuple call identifier argument_list identifier identifier identifier expression_statement call attribute identifier identifier argument_list identifier
Internal method to submit a tuple
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end for_statement identifier call attribute identifier identifier argument_list identifier block if_statement call identifier argument_list identifier block expression_statement assignment id...
print out the tempo for each audio file in the given directory
module function_definition identifier parameters identifier block expression_statement assignment identifier none expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment identifier call identifier argument_list identifier if_statement comparison_operator call ...
take preferred names from authors json and format them into an author line
module function_definition identifier parameters identifier identifier block assert_statement call identifier argument_list identifier identifier expression_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list string string_start string_con...
Send text to the client.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier subscript attribute attribute identifier identifier identifier string string_start string_content string_end try_statement block expression_statement assignment identifier call identifier argument_lis...
function to determine if each select field needs a create button or not
module function_definition identifier parameters identifier default_parameter identifier false block return_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list string string_start string_content string_end string string_start string_conten...
Determines the location of the UE4Editor binary
module function_definition identifier parameters identifier identifier block return_statement call attribute string string_start string_content string_end identifier argument_list call attribute call identifier argument_list call attribute call attribute string string_start string_content string_end identifier argument...
Encode basic auth credentials.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute attribute identifier identifier identifier argument_list identifier identifier expression_statement call attribute identifier identifier argument_list identifier
Update the resource usage of the hunt.
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list return_statement call attribute attribute identifier identifier identifier argument_list attribute identifier identifier attribute identifier identifier
Store this Async's result in persistent storage.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment attribute identifier identifier parenthesized_expression binary_operator parenthesized_expression binary_operator binary_operator attribute identifier identifier attribute identifier identifier identi...
Update the means without recalculating for the deletion of one observation.
module function_definition identifier parameters list_splat_pattern identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list list_splat identifier if_statement not_operator call attribute attribute identifier identifier identifier argument_list ...
Creates a directory unless it exists already.
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary expression_statement assignment identifier call attribute identifier identifier argument_list try_statement block expression_statement assignment identifier attribute identifier identifier expression_...
Return the string given by param formatted with the callers locals.
module function_definition identifier parameters identifier block expression_statement assignment identifier binary_operator attribute identifier identifier string string_start string_content string_end expression_statement assignment identifier binary_operator attribute identifier identifier string string_start string...
Check for availability of the specified dictionary.
module function_definition identifier parameters identifier identifier block return_statement call attribute identifier identifier argument_list attribute identifier identifier call attribute identifier identifier argument_list identifier
Create a new child element with the given tag.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier tuple string string_start string_content string_end string string_start string_content string_end block expression_statement call identifier argument_list call attribute string string_start string_co...
build an RPM package
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list call attribute call attribute identifier identifier argument_list identifier identifier argument_list return_statement subscript identifier call attr...
Returns all the pixels neighbours of ``ipix``
module function_definition identifier parameters identifier identifier block expression_statement call attribute attribute identifier identifier identifier argument_list call identifier argument_list attribute identifier identifier identifier none expression_statement call attribute attribute identifier identifier iden...
Removes an environment variable using the prepended app_name convention with `key`.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier attribute identifier identifier return_statement call attribute identifier identifier argument_list identifier attribute identifier identi...
Returns the aproximate date of the next station.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier return_statement call attribute identifier identifier argument_list identifier identifier list ...
Given an evalable string, eval it and return a Handle for its result.
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator identifier attribute identifier identifier block if_statement comparison_operator subscript attribute identifier identifier identifier identifier block return_statement raise_statement call identifie...
Add a code dependency so it gets inserted into globals
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier lambda none expression_statement assignment identifier call attribute identifier identifier argument_list identifier ...
Provides appropriate parameters to the on_playback functions.
module function_definition identifier parameters identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call attribute identifier identifier argument_list binary_operator string string_start string_content string_end identifier try_state...
Get JSON-type content
module function_definition identifier parameters default_parameter identifier none block if_statement comparison_operator string string_start string_content string_end attribute identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list...
Clear all sessions for all sandboxes or for production.
module function_definition identifier parameters default_parameter identifier none block expression_statement assignment identifier boolean_operator identifier binary_operator call identifier argument_list attribute identifier identifier integer expression_statement assignment identifier call identifier argument_list i...
Returns a palette that maps unit types to rgb colors.
module function_definition identifier parameters identifier identifier identifier list_splat_pattern identifier block expression_statement call attribute attribute attribute identifier identifier identifier identifier argument_list identifier identifier identifier list_splat identifier
Dispatch an event to all listening plugins.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list attribute attribute identifier identifier identifier attribute attribute identifier identifier identifier expression_statement call attribute identifier identif...
Send the On command to an X10 device.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier subscript identifier string string_start string_content string_end expression_statement assignment identifier call attribute subscript subscript identifier string string_start string_content string_en...
This is the function that actually creates the track object
module function_definition identifier parameters identifier identifier identifier identifier block if_statement not_operator call attribute attribute identifier identifier identifier argument_list identifier block expression_statement call attribute identifier identifier argument_list identifier with_statement with_cla...
Function to print model fixtures into generated file
module function_definition identifier parameters identifier identifier identifier typed_parameter identifier type identifier typed_parameter identifier type identifier block with_statement with_clause with_item as_pattern call identifier argument_list identifier string string_start string_content string_end as_pattern_...
Builds GrFN object from Python file.
module function_definition identifier parameters identifier block if_statement boolean_operator boolean_operator not_operator attribute identifier identifier attribute identifier identifier not_operator attribute attribute identifier identifier identifier block raise_statement call identifier argument_list call identif...
ensure new nodes are allowed for this layer
module function_definition identifier parameters identifier identifier identifier block for_statement identifier identifier block if_statement call identifier argument_list list comparison_operator call attribute identifier identifier argument_list identifier string string_start string_content string_end string string_...
Returns the price id matching.
module function_definition identifier parameters identifier block expression_statement assignment identifier subscript identifier comparison_operator identifier integer expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier bin...
Computes some terms needed for the Chao-Shen KL correction.
module function_definition identifier parameters identifier identifier block expression_statement assignment attribute identifier identifier true expression_statement call attribute identifier identifier argument_list expression_statement assignment attribute identifier identifier identifier
Perform the shutdown of this server and save the exception.
module function_definition identifier parameters identifier identifier block return_statement call identifier argument_list call identifier argument_list attribute identifier identifier call attribute identifier identifier argument_list identifier
Return an OrderedDict dict preserving order of keys in fieldnames
module function_definition identifier parameters identifier identifier block if_statement boolean_operator comparison_operator attribute identifier identifier attribute identifier identifier comparison_operator attribute identifier identifier attribute identifier identifier block return_statement true return_statement ...
Determine whether this range overlaps with another.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier string string_start string_content string_end block expression_statement assignment identifier call attribute identifier identifier argument_list keyword_argument identifier false elif_clause compari...
List the current schedule items
module function_definition identifier parameters identifier identifier block return_statement call attribute call attribute call attribute attribute identifier identifier identifier argument_list attribute identifier identifier identifier argument_list keyword_argument identifier identifier identifier argument_list
Count sessions with user_id
module function_definition identifier parameters identifier block expression_statement assignment pattern_list identifier identifier identifier identifier attribute identifier identifier return_statement binary_operator identifier identifier
Index of row following last row of range
module function_definition identifier parameters identifier identifier identifier block if_statement call attribute identifier identifier argument_list block return_statement identifier expression_statement assignment identifier binary_operator attribute identifier identifier integer if_statement boolean_operator compa...
calculate the square root modulus p
module function_definition identifier parameters identifier identifier block expression_statement call identifier argument_list identifier expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier if_statement not_operator identifier block return_statement expre...
Add a 'Rectangle' annotation.
module function_definition identifier parameters identifier default_parameter identifier dictionary block expression_statement string string_start string_content string_end expression_statement assignment identifier call identifier argument_list for_statement pattern_list identifier identifier call attribute identifier...
Translate raw data into a model instance.
module function_definition identifier parameters identifier identifier identifier identifier block if_statement comparison_operator identifier string string_start string_content string_end block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end identif...
Run a limited number of magics from scripts, without IPython
module function_definition identifier parameters identifier dictionary_splat_pattern identifier block try_statement block return_statement call subscript dictionary pair string string_start string_content string_end identifier pair string string_start string_content string_end identifier call attribute identifier ident...
Factory function for DB Provider Concrete Classes
module function_definition identifier parameters identifier identifier list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list expression_statement assignment identifier call attribute iden...
Updates the type of the considered topic and retirects the user to the success URL.
module function_definition identifier parameters identifier default_parameter identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list integer expression_statement assignment identifier none for_statement identifier call attribute attribute identifier identifie...
Return most recent client from list of clients.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier call identifier argument_list identifier binary_operator string string_start string_content string_end attribute identifier identifier none if_statement not_operator identifier b...
Returns True if the file should be copied.
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator identifier attribute identifier identifier block if_statement comparison_operator identifier integer block return_statement integer return_statement attribute attribute call attribute identifier iden...
Converts a Windows Registry value to the corresponding Python data type.
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator identifier attribute identifier identifier block return_statement expression_statement assignment identifier list for_statement pattern_list identifier identifier call attribute identifier identifier...
Register a client disconnect from a namespace.
module function_definition identifier parameters identifier identifier block with_statement with_clause with_item as_pattern call identifier argument_list identifier string string_start string_content string_end as_pattern_target identifier block return_statement call identifier argument_list dictionary_splat call attr...
Read the configuration parameters from a Yaml file.
module function_definition identifier parameters identifier default_parameter identifier none block expression_statement assignment identifier conditional_expression call attribute identifier identifier argument_list identifier list expression_statement call identifier argument_list binary_operator list string string_s...
Run manage.py using this component's specific Django settings
module function_definition identifier parameters identifier block try_statement block expression_statement call attribute attribute identifier identifier identifier argument_list keyword_argument identifier attribute identifier identifier return_statement true except_clause as_pattern identifier as_pattern_target ident...
Check if the bucket exists.
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list expression_statement assignment identifier call identifier argument_list attribute identifier identifier expression_statement call attribute identifier identifier argument_list retur...
Returns the physical volume mda count.
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier string string_start string_content string_end block expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list attribute identifier i...
Open a new connection socket to the CPS.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list string string_start string_content string_end none expression_statement assignment identifier false if_statement boolean_operator identifier comparis...
Render the admin table of pages.
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier list string string_start string_content string_end string string_start string_content string_end block if_statement comparison_operator attribute identifier identifier integer block express...
Reset the status and tell the database to finalize the traces.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier dictionary_comprehension pair identifier identifier for_in_clause pattern_list identifier identifier identifier identifier expression_statement assignment identifier call attribute string string_start...
Prints a row queue as its conceptual square array.
module function_definition identifier parameters identifier identifier block for_statement identifier identifier block if_statement subscript identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list none subscript subscript identifier identifier integer t...
Sets the mouse's location to the specified coordinates.
module function_definition identifier parameters identifier identifier block import_statement dotted_name identifier expression_statement assignment identifier call identifier argument_list identifier if_statement not_operator call attribute attribute identifier identifier identifier argument_list identifier block impo...
Check if file is present otherwise download.
module function_definition identifier parameters identifier identifier block expression_statement call attribute identifier identifier argument_list integer expression_statement call identifier argument_list call attribute string string_start string_content string_end identifier argument_list identifier subscript attri...
Print error message if build failed
module function_definition identifier parameters identifier identifier default_parameter identifier false block expression_statement string string_start string_content string_end expression_statement assignment identifier subscript identifier call attribute attribute identifier identifier identifier argument_list lambd...
Filter certain entries with given name.
module function_definition identifier parameters identifier typed_parameter identifier type attribute identifier identifier type attribute identifier identifier block return_statement call attribute attribute identifier identifier identifier argument_list attribute identifier identifier dictionary pair attribute identi...
Run on multiple inputs
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list try_statement block expression_statement assignment identifier subscript identifier identifier expression_statement call attribute identifier identifier argument_list attribute iden...
forget about a previously defined Ladder setting by deleting its disk file
module function_definition identifier parameters identifier block expression_statement assignment pattern_list identifier identifier call attribute identifier identifier argument_list string string_start string_content string_end subscript identifier slice integer expression_statement assignment identifier subscript id...
Create a chunk from data including header and length bytes.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list subscript identifier string string_start string_content string_end expression_statement assignment identifier call identifier argument_list subscript identifier string string_start ...
Running on shell via multiprocessing.
module function_definition identifier parameters identifier identifier block return_statement call attribute identifier identifier argument_list keyword_argument identifier identifier keyword_argument identifier string string_start string_content string_end keyword_argument identifier identifier
Returns the path to a newly created temporary file.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier binary_operator attribute identifier identifier attribute identifier identifier if_statement comparison_operator identifier attribute identifier identifier block expression_statement call attribute id...
Decreasing the weight of a proxy by multiplying dec_ratio
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call identifier argument_list identifier call identifier argument_list integer block expression_statement assignment identifier tuple identifier expression_statement assignment identifier binary_operator call a...
Returns an array initialized to random values between -max and max.