sequence
stringlengths
186
3.94k
docstring
stringlengths
11
171
module function_definition identifier parameters identifier identifier identifier default_parameter identifier none block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list if_statement identifier block if_statement not_operator comparison_operator attribu...
where 'fetchcommand' is either 'fetchone' or 'fetchall'
module function_definition identifier parameters block with_statement with_clause with_item call identifier argument_list keyword_argument identifier true block expression_statement call identifier argument_list call identifier argument_list string string_start string_content escape_sequence string_end expression_state...
Update virtual env with requirements packages.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call parenthesized_expression boolean_operator attribute identifier identifier call identifier argument_list attribute identifier identifier argument_list return_statement call attribute identifier id...
Render a form to create a new object.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end identifier identifier try_statement block expression_statement call attribute identifier identifier argument_list ...
Helper function to fetch a file from a URL.
module function_definition identifier parameters identifier block expression_statement assignment identifier list_comprehension call identifier argument_list keyword_argument identifier subscript attribute identifier identifier identifier keyword_argument identifier subscript attribute identifier identifier identifier ...
Builds a model of a coiled coil protein using input parameters.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier dictionary expression_statement assignment identifier dictionary for_statement pattern_list identifier identifier call attribute identifier identifier argument_list identifier block for_statement patt...
Return an optimized mapping of available providers
module function_definition identifier parameters block expression_statement assignment identifier attribute identifier identifier expression_statement call attribute identifier identifier argument_list comparison_operator call identifier argument_list attribute identifier identifier integer string string_start string_c...
Uploads an artifact referenced by a run.
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 expression_statement assignment identifier call attribute identifier identifier argument_list string st...
Process vip create event.
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 expression_statement assignment identifier subscript identifier slice binary_operator identifier intege...
Import class by module dot split string
module function_definition identifier parameters identifier default_parameter identifier integer block expression_statement assignment identifier call attribute identifier identifier argument_list attribute call attribute identifier identifier argument_list float identifier none keyword_argument identifier attribute id...
created netcon to record spikes
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier ...
Cartesian to Spherical coordinate conversion.
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end return_statement conditional_expression call identifier argument_list call attribute identifier identifier argument_list comparison_operator attribute attribute identifier identifier iden...
Get key iterator from dictionary for Python 2 and 3
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment attribute identifier identifier call identifier argument_list lambda lambda_parameters identifier comparison_operator call attribute identifier identifier argument_list identifier identifier attribute...
Inverts delete_row and returns the rows where key = value
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list try_statement block expression_statement call attribute identifier identifier argument_list identifier expression_statement yield finally_clause block expressio...
Context-manager that temporarily changes to a new working directory.
module function_definition identifier parameters default_parameter identifier string string_start string_content string_end 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 expression_statement...
Count how many high overlaps each word has, and print it out
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement not_operator identifier block raise_statement call identifier argument_list string string_start string_content string_end expression_sta...
Parse an ISO 8601 date string
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end keyword_argument identifier attribute attribute identifier identifier identifier expression_s...
Returns an management service client
module function_definition identifier parameters block expression_statement call identifier argument_list string string_start string_content string_end expression_statement assignment identifier call identifier argument_list float float unary_operator float expression_statement call identifier argument_list identifier ...
This function shows a simple conversion of an Lab color to an XYZ color.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list identifier if_statement comparison_operator string string_start string_content string_end identifier block try_statement block return_statement subscript subscript call identifier a...
Convert an object path reference to a reference.
module function_definition identifier parameters identifier block import_from_statement relative_import import_prefix dotted_name identifier dotted_name identifier expression_statement assignment identifier attribute identifier identifier import_statement dotted_name identifier if_statement comparison_operator identifi...
Check that the predictionsa are either probabilities of prob-vectors.
module function_definition identifier parameters identifier block expression_statement assignment identifier string string_start string_content string_end expression_statement assignment identifier list for_statement pattern_list identifier identifier list tuple string string_start string_content string_end string stri...
Retrieve default neural network files from GitHub to pass to Mosaik.
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator subscript identifier string string_start string_content string_end string string_start string_content string_end block expression_statement assignment identifier dictionary pair string string_start s...
Internal method that will be called when receiving ping message.
module function_definition identifier parameters typed_parameter identifier type identifier typed_parameter identifier type identifier typed_default_parameter identifier type identifier string string_start string_content string_end block expression_statement string string_start string_content string_end return_statemen...
Fixed `mode` `padding` and random crop of `size`
module function_definition identifier parameters identifier identifier identifier identifier identifier identifier block if_statement call identifier argument_list block expression_statement call identifier argument_list identifier identifier identifier expression_statement call attribute identifier identifier argument...
Upload file hdfsName from hdfs to s3
module function_definition identifier parameters identifier block expression_statement assignment identifier attribute identifier identifier return_statement call identifier argument_list call attribute identifier identifier argument_list call attribute identifier identifier argument_list call attribute identifier iden...
Get an ObjectProxy instanec for the underlying object.
module function_definition identifier parameters identifier typed_parameter identifier type identifier block expression_statement call attribute subscript attribute identifier identifier attribute identifier identifier identifier argument_list identifier
Append an item to the internal dictionary.
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator attribute identifier identifier attribute identifier identifier block return_statement call attribute string string_start string_content string_end identifier argument_list identifier identifier retu...
Returns the thumbnail dimensions depending on the images format.
module function_definition identifier parameters identifier block expression_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list tuple unary_operator float unary_operator attribute identifier identifier float binary_operator float attribut...
Creates the center pointer in the middle of the screen.
module function_definition identifier parameters identifier identifier identifier identifier identifier identifier identifier identifier identifier identifier identifier identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier subscript identif...
Matrix-matrix product for real symmetric matrix.
module function_definition identifier parameters identifier block if_statement not_operator attribute identifier identifier block expression_statement assignment attribute identifier identifier call identifier argument_list identifier keyword_argument identifier call identifier argument_list string string_start string_...
Add the cog menu button to the toolbar.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier call identifier argument_list identifier identifier expression_statement assignment subscript a...
Parse a single file.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier parenthesized_expression binary_operator attribute identifier identifier attribute identifier identifier block expression_statement assignment identifier subscript attribute identifier identifier sli...
return n umis from the random_umis atr.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute identifier identifier argument_list call attribute string string_start string_content string_end identifier argument_list identifier return_statement subscript call attribute identifier identifier...
Check if schema exists
module function_definition identifier parameters block global_statement identifier expression_statement assignment identifier call attribute call attribute identifier identifier argument_list identifier argument_list integer expression_statement assignment identifier attribute call attribute identifier identifier argum...
Generate unique nonce with counter, uuid and rng.
module function_definition identifier parameters identifier identifier identifier block if_statement call identifier argument_list identifier identifier block expression_statement assignment identifier list for_statement identifier call identifier argument_list call identifier argument_list identifier block expression_...
Load data into sliced arrays.
module function_definition identifier parameters identifier identifier default_parameter identifier none block expression_statement assignment identifier call identifier argument_list call attribute identifier identifier argument_list identifier expression_statement call attribute identifier identifier argument_list st...
Organize the filenames into file types and create file handlers.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement assignment identifier list for_statement identifier identifier block expression_statement assignment pattern_list identifier identifier cal...
Convert projection units from kilometers to meters.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call attribute attribute identifier identifier identifier argument_list identifier argument_list string string_start string_content string_end string string_start string_content string_end return_...
Redefine sphinx class to point to prop class
module function_definition identifier parameters identifier block if_statement parenthesized_expression boolean_operator comparison_operator string string_start string_content string_end attribute identifier identifier not_operator subscript attribute identifier identifier string string_start string_content string_end ...
Gets the first section for this Taken's Assessment.
module function_definition identifier parameters identifier block expression_statement assignment attribute identifier identifier list for_statement identifier attribute identifier identifier block expression_statement assignment identifier list for_statement identifier attribute identifier identifier block expression_...
Eigenvectors are projected along Cartesian direction
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list call attribute attribute identifier identifier identifier argument_list identifier identifier if_statement not_operator call attribute attr...
Asserts that a given target directory is a git repository
module function_definition identifier parameters identifier list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement assignment subscript identifier string string_start string_content string_end identifier return_statement call attribute identifier identifier argument_list list_splat...
Register a phonon task.
module function_definition identifier parameters identifier block function_definition identifier parameters identifier identifier identifier block return_statement call attribute identifier identifier argument_list identifier tuple none none function_definition identifier parameters identifier identifier identifier blo...
Commonly used command options.
module function_definition identifier parameters identifier typed_parameter identifier type identifier typed_parameter identifier type identifier block if_statement comparison_operator identifier string string_start string_content string_end block expression_statement call attribute attribute identifier identifier iden...
registers the hook with this Laser VM
module function_definition identifier parameters block import_statement dotted_name identifier import_from_statement dotted_name identifier identifier dotted_name identifier expression_statement assignment identifier list call identifier argument_list string string_start string_content string_end list string string_sta...
Returns list of `cython` extensions for `lazy_cythonize`.
module function_definition identifier parameters identifier default_parameter identifier none block expression_statement assignment identifier boolean_operator boolean_operator identifier attribute identifier identifier dictionary expression_statement assignment identifier list for_statement pattern_list identifier ide...
Transform the YAML into a dict with normalized keys
module function_definition identifier parameters identifier list_splat_pattern identifier block if_statement not_operator call identifier argument_list identifier block return_statement call identifier argument_list identifier string string_start string_end else_clause block for_statement identifier identifier block ex...
Return a string about help with the tasks, or lists tasks available
module function_definition identifier parameters identifier default_parameter identifier string string_start string_content string_end block for_statement tuple_pattern identifier identifier call attribute attribute identifier identifier identifier argument_list block for_statement identifier identifier block expressio...
Flash all form error messages
module function_definition identifier parameters identifier block expression_statement assignment pattern_list identifier identifier attribute attribute identifier identifier identifier expression_statement assignment identifier call identifier argument_list keyword_argument identifier binary_operator identifier attrib...
Compute the radius from the center to the furthest edge of the WCS.
module function_definition identifier parameters identifier block return_statement call attribute identifier identifier argument_list attribute identifier identifier attribute identifier identifier attribute identifier identifier keyword_argument identifier attribute identifier identifier
Return a new or existing SSH client for given ip.
module function_definition identifier parameters identifier identifier identifier identifier list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement call attribute attribute identifier identifier identifier argument_list expression_statement assignment identifier list for_statement ...
Measure time cost of running a function
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier call identifier argument_list expression_statement assignment attribute identifier identifier identifier expression_statement assignment attribute identifier identifier list iden...
Return the specified instruction.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier false expression_statement assignment pattern_list identifier identifier call attribute identifier identifier argument_list identifier if_statement identifier block expression_statement ass...
Parse a section of an ISA-Tab, assigning information to a supplied record.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list keyword_argument identifier identifier if_statement not_operator call attribute identifier identifier argument_list b...
Check that collection exists and user has `add` permission.
module function_definition identifier parameters identifier identifier block if_statement boolean_operator not_operator call identifier argument_list identifier identifier not_operator call identifier argument_list identifier identifier block raise_statement call identifier argument_list string string_start string_cont...
Multiply all edges in this ``Tree`` by ``multiplier``
module function_definition identifier parameters identifier block expression_statement assignment identifier list for_statement identifier identifier block expression_statement assignment identifier identifier if_statement call identifier argument_list identifier identifier block expression_statement assignment identif...
Lower CoerceType blocks into Filter blocks with a type-check predicate.
module function_definition identifier parameters typed_parameter identifier type identifier typed_parameter identifier type identifier block expression_statement string string_start string_content string_end expression_statement call attribute identifier identifier argument_list list call attribute identifier identifie...
Outline bounding box onto image `Patch`.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier string string_start string_end expression_statement assignment identifier string string_start string_end if_statement subscript attribute identifier identifier string string_star...
Construct command line strings for a mongos process.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator subscript attribute identifier identifier integer subscript attribute identifier identifier integer block raise_statement string string_start string_content string_end import_statement aliased_import dotted_nam...
Extracts a matrix of scores for a model, given a probes_used row vector of boolean
module function_definition identifier parameters identifier identifier block if_statement attribute identifier identifier block return_statement attribute identifier identifier if_statement call identifier argument_list identifier identifier block expression_statement assignment identifier call attribute call attribute...
If query is Select object, this function will try to get count of select
module function_definition identifier parameters identifier identifier identifier default_parameter identifier string string_start string_content string_end default_parameter identifier list block expression_statement call attribute identifier identifier argument_list identifier if_statement not_operator call identifie...
Helper function to create a SMS payload with little effort
module function_definition identifier parameters block expression_statement string string_start string_content string_end expression_statement assignment pattern_list identifier identifier identifier identifier identifier line_continuation identifier identifier identifier identifier call identifier argument_list expres...
Command line interface to hiwenet.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute attribute subscript attribute identifier identifier unary_operator integer identifier identifier argument_list call identifier argument_list identifier identifier
Memorizes a function argument
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier attribute identifier identifier if_statement comparison_operator identifier none block import_from_statement dotted_name identifier identifier identifier dotted_name identifier expression_s...
Detect a workflow path if it is not passed.
module function_definition identifier parameters identifier block if_statement parenthesized_expression comparison_operator identifier integer block expression_statement assignment identifier subscript subscript subscript attribute identifier identifier string string_start string_content string_end string string_start ...
Returns a list of visually separable colors according to total communities
module function_definition identifier parameters identifier identifier identifier identifier identifier identifier block expression_statement assignment pattern_list identifier identifier identifier call identifier argument_list identifier identifier identifier identifier identifier identifier expression_statement assi...
Internal compressed OP_MSG message helper.
module function_definition identifier parameters identifier identifier default_parameter identifier string string_start string_content string_end block expression_statement call identifier argument_list string string_start string_content string_end expression_statement call identifier argument_list identifier for_state...
Copy existing javaclasses from build dir to current dist dir.
module function_definition identifier parameters identifier identifier identifier identifier identifier identifier block expression_statement assignment identifier list identifier string string_start string_content string_end identifier if_statement comparison_operator identifier integer block expression_statement call...
Extract a CAB archive.
module function_definition identifier parameters identifier block expression_statement assignment identifier false for_statement identifier attribute subscript identifier string string_start string_content string_end identifier block expression_statement assignment identifier call attribute attribute identifier identif...
Name table entries should not contain line-breaks.
module function_definition identifier parameters identifier identifier block if_statement boolean_operator attribute identifier identifier not_operator attribute identifier identifier block try_statement block expression_statement assignment identifier subscript identifier attribute identifier identifier if_statement a...
Authenticate the client if necessary.
module function_definition identifier parameters identifier identifier identifier block expression_statement call identifier argument_list string string_start string_content string_end if_statement comparison_operator identifier attribute identifier identifier block expression_statement assignment attribute identifier ...
Handle process INT signal.
module function_definition identifier parameters identifier block for_statement identifier call identifier argument_list call identifier argument_list attribute identifier identifier block expression_statement call attribute identifier identifier argument_list identifier
Write all the messages to files and open them in the browser
module function_definition identifier parameters identifier default_parameter identifier string string_start string_content string_end default_parameter identifier none default_parameter identifier attribute attribute identifier identifier identifier block if_statement call identifier argument_list identifier attribute...
Input validation for YHSM_GeneratedAEAD or string.
module function_definition identifier parameters identifier default_parameter identifier false default_parameter identifier false default_parameter identifier false default_parameter identifier none default_parameter identifier none default_parameter identifier none block if_statement identifier block expression_statem...
Build the project's Sphinx docs.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list attribute identifier identifier identifier list expression_statement call attribute identifier identifier argument_list binary_o...
Assign an id_ a root object in the hierarchy
module function_definition identifier parameters identifier block if_statement comparison_operator identifier none block return_statement string string_start string_content string_end if_statement comparison_operator call identifier argument_list identifier tuple attribute identifier identifier attribute identifier ide...
transform a python variable to the appropriate representation in SQL
module function_definition identifier parameters identifier identifier block if_statement comparison_operator string string_start string_content string_end identifier block expression_statement assignment identifier binary_operator call attribute attribute identifier identifier identifier argument_list identifier attri...
Create directory if fmt has a prefix
module function_definition identifier parameters identifier list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement assignment identifier call attribute identifier identifier argument_list list_splat identifier dictionary_splat identifier return_statement identifier
Create a walker instance.
module function_definition identifier parameters identifier typed_default_parameter identifier type identifier none typed_default_parameter identifier type attribute identifier identifier none typed_default_parameter identifier type identifier tuple integer integer typed_default_parameter identifier type generic_type i...
Show the `ImageBBox` on `ax`.
module function_definition identifier parameters identifier default_parameter identifier false block expression_statement assignment identifier subscript identifier string string_start string_content string_end expression_statement assignment identifier string string_start string_end if_statement call attribute identif...
Returns the description as meta or open graph tag.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call identifier argument_list attribute identifier identifier integer block raise_statement call identifier argument_list string string_start string_content string_end expression_statement assignment attribute ...
helper function to construct graph from current state of object
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end list if_statement call identifier argument_list identifier tuple identifier identifier identi...
Returns a list of all the tags applied to this view
module function_definition identifier parameters identifier identifier block for_statement identifier identifier block expression_statement assignment identifier subscript identifier string string_start string_content string_end expression_statement assignment identifier subscript identifier string string_start string_...
Populate the user's reminders from a JSON encoded list.
module function_definition identifier parameters identifier block expression_statement assignment identifier string string_start string_content string_end if_statement comparison_operator call identifier argument_list identifier integer block expression_statement assignment identifier string string_start string_content...
Build a string eliciting for a possible time slot among at least two availabilities.
module function_definition identifier parameters identifier dictionary_splat_pattern identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list expression_statement call attribute identifier identifier argument_list dictionary_splat identifier exp...
return the file name for Galprop input gasmaps
module function_definition identifier parameters block if_statement comparison_operator call identifier argument_list identifier integer block print_statement binary_operator string string_start string_content string_end subscript identifier integer return_statement expression_statement assignment identifier call ident...
Testing function for Flex Regular Expressions to FST DFA
module function_definition identifier parameters identifier identifier identifier block if_statement call identifier argument_list identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement call attribute identifier identifier argument_...
Still process session data when specially Exception
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute call attribute identifier identifier argument_list keyword_argument identifier identifier identifier argument_list comparison_operator attribute identifier identifier identifier try_sta...
Update the time when user reset passwd.
module function_definition identifier parameters identifier default_parameter identifier string string_start string_end block if_statement comparison_operator identifier string string_start string_end block expression_statement call attribute attribute identifier identifier identifier argument_list else_clause block ex...
Save the current case
module function_definition identifier parameters identifier block expression_statement assignment identifier attribute call attribute identifier identifier argument_list list attribute attribute identifier identifier identifier attribute attribute identifier identifier identifier identifier expression_statement assignm...
Assemble a set of unique magnitude tuples for the ROI
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier tuple identifier identifier identifier function_definition identifier parameters identifier block for_statement identifier call attribute identifier identifier argument_list block if_statem...
Returns a matcher that returns the setting with the given interface.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement boolean_operator identifier comparison_operator attribute identifier identifier attribute attribute identifier identifier ide...
Return the open tag of the previous sibling
module function_definition identifier parameters identifier identifier block try_statement block return_statement subscript attribute identifier identifier identifier except_clause as_pattern identifier as_pattern_target identifier block raise_statement identifier identifier
Returns the unique text-based ID for a todo item.
module function_definition identifier parameters identifier block if_statement call attribute attribute identifier identifier identifier argument_list subscript attribute identifier identifier string string_start string_content string_end block expression_statement call attribute identifier identifier argument_list sub...
Erase the existing smother report.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call attribute attribute attribute identifier identifier identifier identifier argument_list string string_start string_content string_end string string_start string_end identifier block expression_statement ca...
Raises a 400 if request content type is not as specified.
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 identifier return_statement call attribute identifier identifier argument_list identifier
Shows the sales tax that should be collected for a given order.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end false if_statement comparison_operator identifier true block return_statement true...
Return bool if requesting user is allowed to set custom expire
module function_definition identifier parameters identifier typed_parameter identifier type identifier type identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement comparison_operator identifier attribute identifier identifier block expressi...
Process a response that is starting.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call identifier argument_list identifier identifier argument_list return_statement call attribute string string_start string_content string_end identifier argument_list identifier attribute identi...
Returns the redis key to access this object's values
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list identifier expression_statement call identifier argument_list keyword_argument identifier subscript subscript identifier string string_start string_content string_end str...
Convert a namespace file to an annotation file.