sequence
stringlengths
186
3.94k
docstring
stringlengths
11
171
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list attribute identifier id...
Remove a constraint from the problem
module function_definition identifier parameters identifier block expression_statement call attribute attribute identifier identifier identifier argument_list attribute identifier identifier expression_statement assignment identifier call identifier argument_list attribute identifier identifier for_statement identifier...
Any functions needed to cleanup the structure.
module function_definition identifier parameters identifier identifier block return_statement call attribute attribute attribute identifier identifier identifier identifier argument_list subscript call attribute identifier identifier argument_list attribute attribute identifier identifier identifier slice integer
Strip leading directory name from the given path
module function_definition identifier parameters identifier block expression_statement assignment identifier string string_start string_end with_statement with_clause with_item attribute identifier identifier block expression_statement assignment pattern_list identifier attribute identifier identifier expression_list a...
Get the content of the buffer
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call attribute identifier identifier argument_list attribute identifier identifier if_statement comparison_operator identifier none block raise_...
creates a copy of this Message.
module function_definition identifier parameters identifier identifier identifier identifier identifier identifier identifier identifier block if_statement boolean_operator boolean_operator attribute identifier identifier comparison_operator attribute identifier identifier none line_continuation call attribute attribut...
Log request HTTP information including url, headers, etc.
module function_definition identifier parameters identifier block with_statement with_clause with_item attribute identifier identifier block if_statement not_operator attribute identifier identifier block expression_statement assignment attribute identifier identifier dictionary for_statement identifier attribute ident...
Member components if this component is composite.
module function_definition identifier parameters identifier identifier identifier identifier block function_definition identifier parameters identifier block return_statement not_operator parenthesized_expression boolean_operator boolean_operator boolean_operator boolean_operator boolean_operator attribute identifier i...
Create a new profile when the unique identity does not have any.
module function_definition identifier parameters identifier identifier identifier block with_statement with_clause with_item call identifier argument_list identifier lambda lambda_parameters identifier call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end ...
Handler for response `SymbolInfo`.
module function_definition identifier parameters identifier type identifier block expression_statement assignment identifier subscript attribute identifier identifier attribute identifier identifier expression_statement augmented_assignment attribute identifier identifier integer return_statement identifier
Returns the current line from the file while incrementing the index.
module function_definition identifier parameters identifier identifier block expression_statement call identifier argument_list string string_start string_content string_end expression_statement assignment identifier call attribute identifier identifier argument_list integer expression_statement call identifier argumen...
Run the training step, given a dataset object.
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier identifier block return_statement none expression_statement assignment identifier call identifier argument_list attribute identifier identifier expression_statement assignment identifier ...
Checks if a given req is the latest version available.
module function_definition identifier parameters identifier default_parameter identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list if_statement comparison_operator identifier none block return_statement generator_expression call attribute identifier identif...
return generator for all all workspace instances
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier integer if_statement call identifier argument_list identifier identifier block expression_statement assignment pattern_list identifier identifier expression_list identifier integer elif_clause call id...
Convert the given value to a rational, if necessary.
module function_definition identifier parameters identifier identifier identifier block expression_statement call identifier argument_list string string_start string_content string_end identifier identifier return_statement call identifier argument_list identifier identifier identifier
Run flake8, cached by stamp_file_name.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list attribute call identifier argument_list identifier identifier keyword_argument identifier true expression_statement call attribute identifier identifier argumen...
View the answer to a problem.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list keyword_argument identifier identifier keyword_argument identifier string string_start string_content string_end return_statement list_comprehension ...
Returns list of matching hardware IDs for a given hostname.
module function_definition identifier parameters identifier identifier default_parameter identifier attribute identifier identifier block for_statement pattern_list identifier identifier call attribute identifier identifier argument_list block expression_statement call identifier argument_list identifier identifier ide...
Serialize this section and write it to a binary stream
module function_definition identifier parameters block expression_statement assignment identifier call identifier argument_list expression_statement assignment identifier call identifier argument_list identifier expression_statement call identifier argument_list call attribute string string_start string_content escape_...
List all known color names.
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block function_definition identifier parameters identifier block return_statement call identifier argument_list attribute identifier identifier attribute identifier identifier call identifier argument_list att...
Generates a method from a `GrpcMethod` definition.
module function_definition identifier parameters identifier block expression_statement assignment identifier attribute call identifier argument_list identifier identifier if_statement not_operator identifier block return_statement call attribute identifier identifier argument_list string string_start string_content str...
remove escape character `|` from `url`
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier identifier block raise_statement call identifier argument_list integer identifier if_statement parenthesized_expression boolean_operator not_operator call identifier argument_list identifier subscrip...
Validates the individual parameter key and value.
module function_definition identifier parameters identifier block with_statement with_clause with_item attribute identifier identifier block if_statement not_operator attribute identifier identifier block expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list ...
The configuration dictionary of the manager.
module function_definition identifier parameters identifier block return_statement parenthesized_expression binary_operator binary_operator binary_operator call attribute identifier identifier argument_list call attribute identifier identifier argument_list call attribute identifier identifier argument_list call attrib...
letter combinations one typo away from word
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call identifier argument_list identifier identifier expression_statement assignment identifier call attribute identifier identifier argument_lis...
Removes all cache data from a site.
module function_definition identifier parameters identifier block global_statement identifier expression_statement assignment identifier call identifier argument_list if_statement not_operator identifier block if_statement identifier block expression_statement call attribute identifier identifier argument_list string s...
Run the release filtering plugins
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment pattern_list identifier identifier call attribute call attribute attribute attribute identifier identifier identifier identifier argument_list keyword_argument identifier attribute identifier identifi...
updated avatar by userid
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement not_operator identifier block return_statement if_statement not_operator call attribute identifier identifier argument_list s...
Enqueue instance delete if it's no longer in the db
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list attribute identifier identifier identifier block return_statement none return_statement call attribute attribute identifier identifier identifier argument_list string string_start string_content str...
return a failure message, if one exists
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary for_statement identifier call identifier argument_list lambda lambda_parameters identifier not_operator call attribute identifier identifier argument_list string string_start string_content string_end...
A dictionary with mappings from plot method to their summary
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier none block expression_statement assignment attribute identifier identifier call identifier argument_list list_comprehension identifier for_in_clause identifier attribute identifier identifi...
Get the length of the sequence if N's are disregarded.
module function_definition identifier parameters identifier typed_parameter identifier type generic_type identifier type_parameter type identifier type generic_type identifier type_parameter type identifier block expression_statement assignment identifier call identifier argument_list comparison_operator attribute iden...
Get all edges annotated to the documents identified by the given PubMed identifiers.
module function_definition identifier parameters identifier typed_parameter identifier type identifier typed_parameter identifier type identifier line_continuation type generic_type identifier type_parameter type identifier block try_statement block expression_statement assignment identifier call attribute identifier i...
Analyzes a signed token and generates the matching message
module function_definition identifier parameters identifier block expression_statement assignment identifier call call attribute identifier identifier argument_list string string_start string_content string_end keyword_argument identifier string string_start string_content string_end keyword_argument identifier call at...
Shared options, used by all bartender commands
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute attribute identifier identifier identifier identifier argument_list while_statement integer block expression_statement assignment identifier string string_start string_end try_statement ...
Run in a thread to move output from a pipe to a queue.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment identifier call attribute identi...
Prints detailed information about the file passed in.
module function_definition identifier parameters identifier block for_statement identifier attribute identifier identifier block if_statement parenthesized_expression boolean_operator boolean_operator call identifier argument_list identifier string string_start string_content string_end call identifier argument_list at...
generator on all declaration of functions
module function_definition identifier parameters identifier block expression_statement assignment identifier string string_start string_content string_end expression_statement assignment identifier string string_start string_content string_end if_statement call identifier argument_list attribute identifier identifier b...
function to get params dict for HTTP request
module function_definition identifier parameters identifier block if_statement not_operator attribute identifier identifier block expression_statement assignment attribute identifier identifier subscript attribute identifier identifier string string_start string_content string_end return_statement attribute identifier ...
List of stencil sets.
module function_definition identifier parameters identifier identifier identifier block return_statement call attribute call attribute attribute identifier identifier identifier argument_list keyword_argument identifier identifier keyword_argument identifier identifier identifier argument_list
Get an instance matching the parent and url_id
module function_definition identifier parameters identifier identifier identifier block if_statement identifier block expression_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list
Notify the controller of a new mode setting.
module function_definition identifier parameters typed_parameter identifier type subscript attribute identifier identifier ellipsis subscript attribute identifier identifier string string_start string_content string_end attribute identifier identifier type subscript attribute identifier identifier ellipsis attribute id...
Await result if coroutine was returned.
module function_definition identifier parameters identifier identifier identifier default_parameter identifier none block expression_statement assignment identifier call attribute attribute attribute identifier identifier identifier identifier argument_list return_statement call attribute identifier identifier argument...
Create a new writable DOM document object.
module function_definition identifier parameters identifier typed_parameter identifier type identifier type none block if_statement comparison_operator unary_operator integer identifier integer block expression_statement assignment attribute identifier identifier call attribute string string_start string_content string...
Initialize from an int terminal code.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list expression_statement assignment identifier set identifier while_statement identifier block expression_statement assignment identifier identifier expression_statement assi...
modified NX fast BFS node generator
module function_definition identifier parameters identifier identifier block expression_statement augmented_assignment subscript attribute identifier identifier string string_start string_content string_end call attribute identifier identifier argument_list string string_start string_content string_end false if_stateme...
Update the pool configuration with a worker configuration.
module function_definition identifier parameters identifier identifier identifier block function_definition identifier parameters default_parameter identifier integer default_parameter identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list keyword_argument id...
return function for response
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier none block raise_statement call identifier argument_list call attribute concatenated_string string string_start string_content string_end string string_start string_end identifier argument_...
The real dtype corresponding to this space's `out_dtype`.
module function_definition identifier parameters identifier identifier block return_statement list_comprehension binary_operator binary_operator binary_operator subscript identifier identifier parenthesized_expression binary_operator integer subscript identifier integer binary_operator subscript identifier identifier s...
Alpha blends two colors, using the alpha given by c2
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier attribute attribute attribute identifier identifier identifier identifier expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier ...
Chart dialog event handler
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier false expression_statement assignment identifier list string string_start string_content string_end string string_start string_content string_end string string_start string_content string_end string s...
Remove the noun, adjective, adverb word endings
module function_definition identifier parameters identifier identifier identifier identifier block class_definition identifier argument_list identifier block class_definition identifier block expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier binary_ope...
Create nested fields for forward and reverse relationships.
module function_definition identifier parameters identifier block expression_statement assignment identifier lambda boolean_operator call identifier argument_list identifier expression_statement assignment identifier lambda boolean_operator call attribute attribute identifier identifier identifier argument_list identif...
Create a password prompt function.
module function_definition identifier parameters identifier identifier block with_statement with_clause with_item as_pattern call attribute identifier identifier argument_list identifier string string_start string_content string_end as_pattern_target identifier block expression_statement call attribute identifier ident...
add a file to the archive
module function_definition identifier parameters identifier identifier default_parameter identifier string string_start string_end default_parameter identifier true default_parameter identifier true block if_statement comparison_operator identifier string string_start string_end block expression_statement assignment id...
List posts that recent edited, partially.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier call identifier argument_list attribute identifier identifier false false function_definition identifier parameters identifie...
Returns a sizer for a map field.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier expression_statement assignment identifier dictionary pair string string_start string_content string_end attribute id...
Write out the lockfile.
module function_definition identifier parameters identifier block if_statement boolean_operator comparison_operator attribute identifier identifier list string string_start string_content string_end string string_start string_content string_end call attribute attribute identifier identifier identifier argument_list ide...
Delete build directory and all its contents.
module function_definition identifier parameters identifier identifier list_splat_pattern identifier default_parameter identifier none block expression_statement assignment identifier subscript attribute identifier identifier identifier expression_statement assignment identifier call attribute identifier identifier arg...
Only apply tags and default for top-level key, effectively scoping the tags.
module function_definition identifier parameters identifier block function_definition identifier parameters list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement assignment identifier call identifier argument_list if_statement comparison_operator string string_start string_content...
A decorator that adds the authentication header to requests arguments
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list attribute identifier identifier expression_statement assignment attribute identifier...
Inverse of posterior covariance
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier tuple identifier identifier block import_from_statement dotted_name identifier dotted_name identifier expression_statement call attribute identifier identifier argument_list string string...
CONVERT PROPERTY VALUE TO QUOTED NAME OF SAME
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary pair string string_start string_content string_end call attribute identifier identifier argument_list if_statement attribute identifier identifier block expression_statement assignment subscript ident...
Determine pieces of metadata from the readers loaded.
module function_definition identifier parameters identifier block expression_statement assignment identifier call subscript identifier call attribute identifier identifier argument_list call attribute identifier identifier argument_list identifier argument_list identifier expression_statement augmented_assignment ident...
Return a random normalized vector orthogonal to the given vector
module function_definition identifier parameters identifier block for_statement identifier attribute identifier identifier block expression_statement call call identifier argument_list identifier identifier argument_list attribute identifier identifier
Calls any registered hooks providing the current state.
module function_definition identifier parameters identifier block expression_statement assignment pattern_list identifier identifier identifier call identifier argument_list identifier try_statement block expression_statement assignment identifier call attribute call identifier argument_list identifier identifier ident...
Get the docker id from a public or private registry
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier attribute identifier identifier block raise_statement call identifier argument_list call attribute string string_start string_content string_end identifier argument_list call identifier a...
Ensure the provided edge direction is either "in" or "out".
module function_definition identifier parameters identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier binary_operator list integer call identifier argument_list call identifier argument_list identifier call identifier argument_list ide...
take diff run on separated words and convert the deltas to character offsets
module function_definition identifier parameters identifier identifier identifier identifier block if_statement comparison_operator attribute identifier identifier tuple attribute identifier identifier attribute identifier identifier attribute identifier identifier block raise_statement call attribute attribute identif...
Process the given http response.
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block expression_statement assignment attribute identifier identifier binary_operator attribute identifier identifier attribute identifier identifier
Update boost strength using given strength factor during training
module function_definition identifier parameters identifier identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier call attribute id...
Serializes fastas into .dat files
module function_definition identifier parameters block expression_statement assignment identifier subscript identifier string string_start string_content string_end if_statement comparison_operator identifier none block expression_statement assignment attribute identifier identifier list expression_statement assignment...
Clears the current context figure of all marks axes and grid lines.
module function_definition identifier parameters default_parameter identifier none list_splat_pattern identifier dictionary_splat_pattern identifier block function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier string string_start string_content stri...
Decorator to register the function as a hook
module function_definition identifier parameters identifier identifier identifier identifier identifier default_parameter identifier none default_parameter identifier none default_parameter identifier none default_parameter identifier integer default_parameter identifier none default_parameter identifier false default_...
Draw a general cubic Bezier curve from p1 to p4 using control points p2 and p3.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list return_statement call attribute identifier identifier argument_list identifier string string_start string_content string_end keyword_argument identif...
Send a message to Slack
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement call attribute identifier identifier argument_list identifier for_statement identifier call identifier argument_list call attrib...
Report errors and warnings found in an SBML document.
module function_definition identifier parameters default_parameter identifier false block expression_statement assignment identifier call identifier argument_list identifier if_statement identifier block expression_statement assignment identifier call identifier argument_list identifier if_statement not_operator identi...
Write a changelog based on the git changelog.
module function_definition identifier parameters identifier block expression_statement assignment identifier attribute call attribute identifier identifier argument_list identifier identifier if_statement comparison_operator identifier none block expression_statement call attribute identifier identifier argument_list s...
Start the application, initializing your components.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list if_statement comparison_operator subscript attribute identifier identifier string string_start string_content string_end attribute identifier identifier block t...
Software version of the current repository
module function_definition identifier parameters identifier block return_statement call identifier argument_list generator_expression tuple identifier attribute identifier identifier for_in_clause pattern_list identifier identifier call attribute attribute identifier identifier identifier argument_list if_clause boolea...
Return the dictionary with which to write values
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier list for_statement identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement assignment identifier call attribute i...
Split the segments in the list is subsegments at least as long as dt
module function_definition identifier parameters identifier block expression_statement assignment identifier integer if_statement not_operator call attribute attribute identifier identifier identifier argument_list string string_start string_content string_end block return_statement identifier while_statement true bloc...
Search a free display port
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator identifier none block raise_statement call identifier argument_list string string_start string_content string_end elif_clause comparison_operator subscript identifier slice integer integer string str...
Verify the experiment id.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list identifier if_statement comparison_operator call identifier argument_list identifier integer block raise_statement call identifier argument_list binary_operator string string_start ...
Parse marc field and return default indicators if not filled in.
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier dictionary pair string string_start string_content string_end string string_start string_content string_end expression_statement assignment iden...
Delete this folder and return a deleted JFSFolder
module function_definition identifier parameters identifier identifier block for_statement identifier call identifier argument_list call identifier argument_list identifier block expression_statement assignment identifier subscript identifier identifier expression_statement assignment attribute identifier identifier id...
generate complete MAVLink C implemenation
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier list while_statement comparison_operator call identifier argument_list identifier integer block expression_statement assignment pattern_list identifier identifier call attribute identifier identifier ...
Parse record_data into multiple error checking rpcs.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier dictionary for_statement identifier binary_operator identifier identifier block expression_statement assignment subscript identifier call identifier argument_list identifier identifier return_statemen...
Handle merging list fields that may include some overlap.
module function_definition identifier parameters identifier block with_statement with_clause with_item as_pattern call identifier argument_list attribute identifier identifier string string_start string_content string_end as_pattern_target identifier block expression_statement call attribute identifier identifier argum...
Save current state of config dictionary.
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary pair string string_start string_content string_end identifier pair string string_start string_content string_end string string_start string_content string_end pair string string_start string_content s...
Upload a picture of a kitten. We don't ship one, so get creative!
module function_definition identifier parameters identifier default_parameter identifier false default_parameter identifier string string_start string_content string_end block expression_statement assignment identifier binary_operator binary_operator attribute identifier identifier attribute identifier identifier strin...
Convert a key into something that is accessible as an attribute
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier tuple identifier identifier try_statement block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier except_clause i...
Add a reference and returns the identifier.
module function_definition identifier parameters identifier block return_statement call identifier argument_list list list string string_start string_content string_end call attribute identifier identifier argument_list integer keyword_argument identifier integer list string string_start string_content string_end strin...
Compute keygrip for Ed25519 public keys.
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list attribute identifier identifier expression_statement assignment attribute attribute identifier identifier identifier true try_statement block expression_statement call attribute attr...
Main background thread running the event loop.
module function_definition identifier parameters identifier identifier list_splat_pattern identifier block expression_statement assignment identifier binary_operator tuple identifier identifier if_statement not_operator call identifier generator_expression call identifier argument_list identifier identifier for_in_clau...
Assign new hash slots to receiving node.
module function_definition identifier parameters identifier default_parameter identifier false default_parameter identifier integer default_parameter identifier false default_parameter identifier string string_start string_end default_parameter identifier string string_start string_end default_parameter identifier stri...
Applys smart_round and format_hyperlink to values in a cell if desired.
module function_definition identifier parameters block expression_statement assignment identifier subscript identifier string string_start string_content string_end expression_statement assignment identifier call attribute call attribute attribute identifier identifier identifier argument_list identifier argument_list ...
Checks for deferred email, that otherwise fill up the queue.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier identifier block expression_statement assignment identifier call identifier argument_list identifier identifier return_statement call identifier argument_list
Helper method to avoid calling getattr
module function_definition identifier parameters identifier default_parameter identifier none default_parameter identifier none default_parameter identifier false block expression_statement assignment attribute attribute identifier identifier identifier string string_start string_content string_end expression_statement...
Start the rsync download
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute attribute identifier identifier identifier identifier argument_list identifier expression_statement assignment identifier call attribute identifier identifier argument_list re...
List all Auto Scaling Groups.