sequence
stringlengths
186
3.94k
docstring
stringlengths
11
171
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list for_statement pattern_list identifier identifier call attribute attribute identifier identifier identifier argument_list block for_statement identifier identifier block expression_s...
Edges of this graph, in canonical order.
module function_definition identifier parameters block expression_statement assignment identifier 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 strin...
will construct kwargs for cmd
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block raise_statement attribute identifier identifier expression_statement assignment identifier attribute identifier identifier return_statement comparison_operator call identifier generator_expression call a...
Run all queues that have data queued
module function_definition identifier parameters identifier dictionary_splat_pattern identifier block expression_statement call identifier argument_list identifier if_statement comparison_operator string string_start string_content string_end identifier block expression_statement assignment subscript identifier string ...
Safely update this async job's configuration options.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier attribute identifier identifier assert_statement call identifier generator_expression call attribute identifier identifier argument_list identifier for_in_clause identifier attribute attribute identif...
Check that the new file introduced is a python source file
module function_definition identifier parameters identifier block try_statement block expression_statement assignment identifier call identifier argument_list call attribute string string_start string_end identifier argument_list attribute identifier identifier string string_start string_end string string_start string_...
Build the file's AST and run all AST checks.
module function_definition identifier parameters identifier block decorated_definition decorator call identifier argument_list identifier function_definition identifier parameters identifier identifier list_splat_pattern identifier dictionary_splat_pattern identifier block if_statement not_operator call identifier argu...
Converts an checkID passed as the check to a CloudMonitorCheck object.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call attribute identifier identifier argument_list identifier integer block raise_statement call identifier argument_list string string_start string_content string_end if_statement call identifier argument_list...
Apply format of ``p`` to data in 1-d array ``buf``.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list while_statement true block expression_statement assignment identifier call attribute identifier identifier argument_list integer if_statement not_operator ident...
Return the md5 hash of the given file-object
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier dictionary for_statement identifier call identifier argument_list identifier block if_statement comparison_operator identifier identifier block ...
Extracts the configuration of the underlying ConfigParser from obj
module function_definition identifier parameters identifier identifier identifier identifier dictionary_splat_pattern identifier block if_statement comparison_operator identifier attribute identifier identifier block raise_statement call identifier argument_list binary_operator string string_start string_content string...
Add a new cache for the named object type and cache implementation
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end float float keyword_argument identifier attribute identifier identifier expression_statement call attribute identifier identifier argume...
Range of hyperparameters for vizier.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier string string_start string_content string_end expression_statement call attribute attribute identifier identifier identifier argument_list identifier call attribute identifier identifier ar...
Inserts an unsigned short in a certain position in the packet
module function_definition identifier parameters identifier block return_statement call attribute call attribute call attribute call attribute call attribute call attribute call attribute call attribute call attribute call attribute call attribute call attribute identifier identifier argument_list string string_start s...
Format a human-readable error message from a regex
module function_definition identifier parameters identifier default_parameter identifier none default_parameter identifier none default_parameter identifier none block try_statement block expression_statement assignment identifier call attribute identifier identifier argument_list attribute identifier identifier attrib...
Get a Seaborn bar chart
module function_definition identifier parameters identifier default_parameter identifier none block expression_statement assignment identifier binary_operator string string_start string_content escape_sequence string_end call identifier argument_list identifier identifier for_statement identifier identifier block expre...
Create the automodule directive and add the options.
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier string string_start string_content string_end block expression_statement assignment identifier dictionary for_statement identifier subscript attribute identifier identifier string string_...
Returns known clusters by exposing as a read-only property.
module function_definition identifier parameters identifier identifier block return_statement call attribute call attribute attribute identifier identifier identifier argument_list keyword_argument identifier attribute identifier identifier keyword_argument identifier identifier keyword_argument identifier attribute at...
Retrieve the relation between this node and a child PID.
module function_definition identifier parameters identifier identifier default_parameter identifier string string_start string_content string_end block expression_statement assignment tuple_pattern identifier identifier identifier call identifier argument_list identifier identifier identifier expression_statement assig...
Download, convert and save a caffe model
module function_definition identifier parameters identifier default_parameter identifier none default_parameter identifier dictionary block expression_statement assignment identifier conditional_expression call identifier argument_list call attribute identifier identifier argument_list comparison_operator identifier no...
Export the archive, directory or file.
module function_definition identifier parameters identifier identifier block if_statement not_operator call attribute attribute identifier identifier identifier argument_list attribute identifier identifier block expression_statement call attribute identifier identifier argument_list attribute identifier identifier exp...
Create a new empty migration.
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary for_statement identifier attribute identifier identifier block expression_statement assignment subscript identifier identifier call attribute attribute identifier identifier identifier argument_list i...
Destroy the consumer group.
module function_definition identifier parameters identifier identifier block if_statement call attribute attribute identifier identifier identifier argument_list identifier block if_statement identifier block expression_statement call attribute identifier identifier argument_list identifier else_clause block expression...
Creates a new template HFOS plugin module
module function_definition identifier parameters identifier identifier block return_statement call identifier generator_expression boolean_operator call identifier argument_list identifier identifier comparison_operator string string_start string_content string_end identifier for_in_clause identifier identifier
Determines if the fact is not well formed.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call attribute identifier identifier argument_list identifier argument_list comparison_operator attribute identifier identifier identifier expression_statement call attribute identifier identifier...
Delete the records of certain tag.
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block return_statement if_statement boolean_operator boolean_operator not_operator attribute identifier identifier comparison_operator call identifier argument_list attribute identifier identifier integer comp...
Periodic cleanup tasks to maintain this adapter, should be called every second
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list dictionary pair string string_start string_content string_end string string_start string_content string_end pair string string_start string_content string_end t...
Return the registered methods as DisplayList
module function_definition identifier parameters identifier identifier identifier block if_statement identifier block expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list ide...
Handle a msgpack-rpc request.
module function_definition identifier parameters identifier identifier block import_statement dotted_name identifier expression_statement call attribute identifier identifier argument_list concatenated_string string string_start string_content string_end string string_start string_content string_end return_statement bo...
Whether previously archived data should be loaded.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator call identifier argument_list call attribute identifier identifier argument_list float block expression_statement assignment identifier call attribute call identifier argument_list string string_start string_co...
Asserts pys file version
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier integer block return_statement expression_statement assignment identifier attribute attribute identifier identifier identifier expression_statement assignment identifier call identifier argument_list...
kill a fraction of cells from the network
module function_definition identifier parameters identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call identifier argument_list identifier expression_statement assignment pattern_list identifier identifier call attribute attribute ...
Solve the generalized eigensystem Hc = ESc
module function_definition identifier parameters identifier identifier block if_statement not_operator call identifier argument_list attribute identifier identifier identifier block return_statement attribute call identifier argument_list attribute identifier identifier identifier else_clause block return_statement att...
Dump the text name of the relation.
module function_definition identifier parameters identifier identifier identifier identifier block return_statement call attribute attribute attribute identifier identifier identifier identifier argument_list string string_start string_content string_end keyword_argument identifier identifier keyword_argument identifie...
Return a fully-qualified annotated_dataset string.
module function_definition identifier parameters identifier identifier block if_statement boolean_operator identifier call identifier argument_list subscript identifier integer attribute identifier identifier block expression_statement call attribute identifier identifier argument_list attribute call attribute identifi...
Write a series of tokens to the current stack at once.
module function_definition identifier parameters identifier identifier default_parameter identifier none block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement boolean_operator not_operator call attribute identifier identifier argument_list identifier...
Remove an item by value, consulting the keyfunc for the key.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier identifier if_statement comparison_operator call identifier argument_list identifier integer block return...
Create record if doesnt already exist with same content
module function_definition identifier parameters identifier identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier call identifier argument_list call attribute identifier identifier argument_list identifier identifier return_statement ca...
Helper to create a basic integer value generator
module function_definition identifier parameters identifier typed_parameter identifier type identifier block expression_statement assignment identifier await call attribute attribute identifier identifier identifier argument_list keyword_argument identifier identifier return_statement call identifier argument_list iden...
Get `BootResource` by `id`.
module function_definition identifier parameters identifier identifier identifier identifier block if_statement comparison_operator identifier none block raise_statement call identifier argument_list string string_start string_content string_end expression_statement assignment identifier call attribute identifier ident...
Match a query with a document
module function_definition identifier parameters identifier identifier block if_statement boolean_operator attribute identifier identifier not_operator attribute identifier identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end with_stateme...
SNEAK value TO FRONT OF THE QUEUE
module function_definition identifier parameters identifier block expression_statement assignment identifier binary_operator attribute identifier identifier binary_operator binary_operator attribute identifier identifier call attribute identifier identifier argument_list integer return_statement call attribute identifi...
Returns the midpoint of the arc as a 1x2 numpy array.
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier none block expression_statement call attribute identifier identifier argument_list expression_statement assignment attribute identifier identifier list for_statement identifier attribute id...
returns a list of reports on the server
module function_definition identifier parameters identifier block expression_statement assignment identifier list string string_start string_content string_end identifier try_statement block expression_statement call attribute identifier identifier argument_list identifier except_clause as_pattern attribute identifier ...
Mount filesystem using fstab
module function_definition identifier parameters identifier block expression_statement assignment identifier list for_statement identifier attribute identifier identifier block try_statement block expression_statement call attribute identifier identifier argument_list identifier expression_statement call attribute iden...
Cleans existing weight files.
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier identifier block return_statement expression_list identifier integer dictionary try_statement block expression_statement assignment pattern_list identifier identifier identifier identifie...
Return a three tuple of data, code, and headers
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end if_statement not_operator identifier block return_statement false expression_statement assignment pattern_list identifier identifier identifier call attribute identifier identifier argume...
Check for a config file with old schema
module function_definition identifier parameters identifier identifier dictionary_splat_pattern 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 identifie...
tells the host agent running in this agency to restart the agent.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier false while_statement true block expression_statement assignment identifier call attribute identifier identifier argument_list identifier attribute identifier identifier binary_operator att...
Substitute a new timestep value using regex.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute call attribute call attribute attribute identifier identifier identifier argument_list attribute identifier identifier identifier argument_list attribute identifier identifier identifier argument_...
Refresh the document from the database.
module function_definition identifier parameters identifier identifier default_parameter identifier string string_start string_content string_end block expression_statement assignment identifier list for_statement identifier identifier block if_statement call identifier argument_list identifier identifier block express...
function to convert the geomtries to strings
module function_definition identifier parameters identifier identifier default_parameter identifier integer block expression_statement assignment identifier list with_statement with_clause with_item as_pattern call identifier argument_list identifier as_pattern_target identifier with_item as_pattern call identifier arg...
Size is the maximum horizontal size.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier subscript identifier slice binary_operator call attribute identifier identifier argument_list binary_operator identifier string string_start string_content string_end call identifier argume...
Function to initialize the slightly more complicated data for file info
module function_definition identifier parameters identifier block expression_statement 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 string string_start string_content...
Add arguments and needed monkeypatches.
module function_definition identifier parameters identifier typed_parameter identifier type attribute identifier identifier type identifier block if_statement not_operator call identifier argument_list attribute identifier identifier attribute identifier identifier block raise_statement call identifier argument_list ca...
Load the variable by looking it up in the variable look-up and in the built-ins.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list identifier return_statement call attribute call identifier argument_list binary_operator binary_operator binary_operator binary_operator binary_operator call identifier argument_lis...
Create the function expressions for selection
module function_definition identifier parameters identifier block try_statement block return_statement call attribute identifier identifier argument_list call attribute identifier identifier argument_list identifier except_clause identifier block return_statement call attribute identifier identifier argument_list ident...
Use pickle to do deep_copy
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier binary_operator string string_start string_content string_end attribute attribute identifier identifier identifier expression_statement assignme...
Deletes without possibility to restore
module function_definition identifier parameters identifier block assert_statement comparison_operator call identifier argument_list attribute identifier identifier integer call attribute string string_start string_content string_end identifier argument_list attribute identifier identifier expression_statement assignme...
Get the param as a array of unicode strings.
module function_definition identifier parameters identifier identifier default_parameter identifier none dictionary_splat_pattern identifier block if_statement not_operator identifier block expression_statement assignment identifier attribute identifier identifier expression_statement call attribute identifier identifi...
find datafile and load them from codec
module function_definition identifier parameters identifier block expression_statement assignment identifier dictionary pair string string_start string_content string_end attribute attribute identifier identifier identifier pair string string_start string_content string_end attribute attribute identifier identifier ide...
Run the CifSelectCalculation on the CifData output node of the CifFilterCalculation.
module function_definition identifier parameters identifier block if_statement not_operator attribute identifier identifier block return_statement for_statement identifier attribute identifier identifier block expression_statement assignment identifier conditional_expression call identifier argument_list generator_expr...
compute and set the column width for all colls in the table
module function_definition identifier parameters identifier block expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier attribute identifier identifier if_statement comparison_operator attribute identifier identifier none block if_statement not_operator ca...
The worker thread routines.
module function_definition identifier parameters identifier identifier block for_statement identifier attribute identifier identifier block if_statement comparison_operator attribute identifier identifier identifier block return_statement identifier return_statement none
Find and return if a datastream exists, by name.
module function_definition identifier parameters identifier identifier identifier identifier identifier block expression_statement call attribute identifier identifier argument_list binary_operator string string_start string_content string_end tuple identifier identifier expression_statement assignment identifier call ...
Handler function for phaseshift_threaded
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment pattern_list identifier identifier call attribute identifier identifier argument_list string string_start string_content string_end string string_start string_content string_end expression_statement a...
Return the message to log when a job is requeued
module function_definition identifier parameters identifier typed_parameter identifier type identifier block expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list string string_start string_content interpolation attribute identifier identifier string_content ...
Runs whenever a new instance is initialized or `sep` is set.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list string string_start string_content string_end keyword_argument identifier string string_start string_content string_end return_statement call identifier argumen...
Returns a list of dictionaries containing each master's state.
module function_definition identifier parameters identifier identifier list_splat_pattern identifier block expression_statement assignment identifier call attribute identifier identifier argument_list string string_start string_content string_end call attribute identifier identifier argument_list expression_statement a...
Call a helper in this module.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list with_statement with_clause with...
Test if `index` is cached.
module function_definition identifier parameters identifier block import_statement dotted_name identifier expression_statement assignment identifier binary_operator string string_start string_content string_end call attribute identifier identifier argument_list identifier string string_start string_content string_end s...
Look up the name of a source using a resolver
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list keyword_argument identifier list attribute identifier identifier expression_statement assignment identifier call attribute call identifier argument_list identifier argument_list ide...
Returns an encrypted json serialized from self.
module function_definition identifier parameters identifier identifier block expression_statement assignment pattern_list identifier identifier call attribute identifier identifier argument_list expression_statement assignment identifier conditional_expression call attribute string string_start string_content string_en...
Updates the label from the full name of the InspectorRegItem
module function_definition identifier parameters identifier block return_statement call attribute identifier identifier argument_list dictionary pair string string_start string_content string_end subscript attribute subscript attribute identifier identifier string string_start string_content string_end identifier integ...
Given a ProtoFeed, return a DataFrame representing ``agency.txt``
module function_definition identifier parameters identifier identifier block function_definition identifier parameters identifier identifier identifier block return_statement call identifier argument_list keyword_argument identifier call identifier argument_list identifier keyword_argument identifier call identifier ar...
Apply Bayesian Optimization to Random Forest parameters.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list if_statement comparison_operator identifier call attribute identifier identifier argument_list block return_statement true return_statement false
Returns true if any shebang line is present in the first line of the file.
module function_definition identifier parameters identifier identifier block if_statement attribute identifier identifier block return_statement call attribute attribute identifier identifier identifier argument_list attribute identifier identifier call identifier argument_list binary_operator string string_start strin...
A list_display column containing a checkbox widget.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list call identifier argument_list integer call identifier argument_list binary_operator attribute identifier identifier integer binary_operator attribute identifier identifier integer f...
Lower the elevation near the border of the map
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 identifier return_statement identifier
Load cluster from file descriptor fp
module function_definition identifier parameters identifier identifier block if_statement comparison_operator attribute identifier identifier none block raise_statement call identifier argument_list string string_start string_content string_end if_statement attribute identifier identifier block raise_statement call ide...
Setter method for the payoff property.
module function_definition identifier parameters identifier identifier default_parameter identifier integer block expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier expression_statement call attribute identifier identifier argument_list identifier
Notify about an AddChange at a caertain index and length.
module function_definition identifier parameters identifier block if_statement call attribute subscript identifier string string_start string_content string_end identifier argument_list subscript identifier string string_start string_content string_end block return_statement subscript identifier string string_start str...
Append a domain to the existing id if it doesn't already exist
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier string string_start string_content string_end block for_statement identifier call attribute identifier identifier argument_list block expression_statement call attribute identifier identifi...
Converts the coreference layer to NAF
module function_definition identifier parameters identifier list_splat_pattern identifier dictionary_splat_pattern identifier block expression_statement assignment pattern_list identifier identifier identifier call attribute identifier identifier argument_list raise_statement expression_list call identifier argument_li...
Raise a new exception using the preserved traceback of the last one.
module function_definition identifier parameters identifier identifier identifier block if_statement not_operator comparison_operator string string_start string_content string_end identifier block return_statement identifier expression_statement assignment identifier call identifier argument_list dictionary pair string...
Move _id to the front if it's there.
module function_definition identifier parameters block with_statement with_clause with_item as_pattern call identifier argument_list subscript attribute identifier identifier string string_start string_content string_end string string_start string_content string_end as_pattern_target identifier block return_statement l...
Return a host list in a SGE environment
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 identifier return_statement call attribute identifier identifier argument_list string string_...
Decide whether to override ignore_outcomes.
module function_definition identifier parameters block if_statement comparison_operator string string_start string_content string_end attribute identifier identifier block raise_statement call identifier argument_list concatenated_string string string_start string_content string_end string string_start string_content s...
Loads the GitHub repository from the users config.
module function_definition identifier parameters identifier block expression_statement assignment identifier binary_operator string string_start string_content string_end call attribute identifier identifier argument_list expression_statement assignment identifier call attribute attribute identifier identifier identifi...
Returns the number of rows after aggregation.
module function_definition identifier parameters identifier identifier block if_statement call identifier argument_list identifier identifier block expression_statement assignment attribute identifier identifier attribute identifier identifier expression_statement assignment attribute identifier identifier identifier r...
Create a model from a set of attributes.
module function_definition identifier parameters identifier identifier block if_statement comparison_operator identifier string string_start string_content string_end block for_statement pattern_list identifier identifier call identifier argument_list identifier block if_statement boolean_operator comparison_operator s...
rewrite elife funding awards
module function_definition identifier parameters identifier block if_statement comparison_operator attribute identifier identifier none block return_statement expression_statement call attribute identifier identifier argument_list expression_statement call attribute attribute attribute identifier identifier identifier ...
Close connection to remote host.
module function_definition identifier parameters identifier block expression_statement assignment attribute identifier identifier string string_start string_end expression_statement assignment attribute identifier identifier string string_start string_end expression_statement assignment attribute identifier identifier ...
Used during update operations and when initialized.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list identifier return_statement call attribute attribute identifier identifier identifier argument_list call attribute identifier identifier argument_list
Splits text and returns a list of the resulting sentences.
module function_definition identifier parameters identifier identifier block if_statement identifier block expression_statement assignment identifier binary_operator identifier call attribute call identifier argument_list integer integer integer identifier argument_list keyword_argument identifier attribute identifier ...
Convert a offset-aware datetime to POSIX time.
module function_definition identifier parameters identifier identifier identifier default_parameter identifier none default_parameter identifier none block expression_statement call attribute attribute identifier identifier identifier argument_list identifier identifier keyword_argument identifier identifier keyword_ar...
Function to update srvc_node address of partition.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list attribute identifier identifier for_statement identifier call attribute attribute identifier identifier identifier argument_list attribute identifier identifier...
Replace substitutions in hyperlinks with their contents
module function_definition identifier parameters identifier block for_statement identifier call identifier argument_list attribute identifier identifier block expression_statement call attribute attribute identifier identifier identifier argument_list identifier identifier expression_statement call identifier argument_...
Remove a node, replacing it with its children.
module function_definition identifier parameters identifier block if_statement not_operator call identifier argument_list identifier string string_start string_content string_end block raise_statement call attribute identifier identifier argument_list string string_start string_content string_end if_statement not_opera...
Raise an error if the not keyword is used where it is not allowed.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end expression_statement call attribute identifier identifier argument_list with_statement with_clause with_item as_pa...
Clone this tarfile and add in another filename before closing the new tar and returning