sequence
stringlengths
186
3.94k
docstring
stringlengths
11
171
module function_definition identifier parameters identifier block if_statement not_operator identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end return_statement false expression_statement assignment identifier string string_start string_...
establish a connection to the Instrument
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list identifier expression_statement augmented_assignment attribute identifier identifier list call attribute identifier identifier argument_list call identifier argument_list...
Initialize the menu items.
module function_definition identifier parameters identifier default_parameter identifier string string_start string_content string_end block expression_statement call attribute identifier identifier argument_list identifier attribute identifier identifier attribute identifier identifier
Write y and x transforms used in this run to a space-delimited txt file.
module function_definition identifier parameters identifier identifier block if_statement identifier block if_statement comparison_operator identifier subscript identifier string string_start string_content string_end block expression_statement call attribute identifier identifier argument_list binary_operator string s...
Get the pool with id 'id'.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list keyword_argument identifier true return_statement call attribute identifier identifier argument_list identifier call attribute call attribute identifier identif...
Returns the directory where to cache the module.
module function_definition identifier parameters dictionary_splat_pattern identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement assignment subscript identifier string string_start string_content string_end string string_start string_content s...
Create an in-memory HDF5 file.
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list attribute subscript attribute identifier identifier unary_operator integer identifier expression_statement call attribute attribute identifier identifier identifier argument_list
Remove the current task from the stack.
module function_definition identifier parameters identifier identifier identifier block expression_statement string string_start string_content string_end if_statement comparison_operator identifier integer block raise_statement call identifier argument_list binary_operator string string_start string_content string_end...
Raise base to exponent, reducing by modulus
module function_definition identifier parameters identifier identifier identifier block if_statement comparison_operator identifier attribute identifier identifier block expression_statement call attribute identifier identifier argument_list call attribute string string_start string_content string_end identifier argume...
Convert message to JSON and send it to the client with token
module function_definition identifier parameters identifier default_parameter identifier string string_start string_content string_end default_parameter identifier integer default_parameter identifier identifier block return_statement call attribute string string_start string_content string_end identifier argument_list...
Concatenate a select with offset and limit statement.
module function_definition identifier parameters identifier identifier identifier identifier dictionary_splat_pattern identifier block expression_statement string string_start string_content string_end if_statement boolean_operator not_operator call identifier argument_list identifier string string_start string_content...
Put the various losses in the recorder and show a sample image.
module function_definition identifier parameters identifier block if_statement boolean_operator attribute identifier identifier call attribute identifier identifier argument_list block try_statement block expression_statement call attribute attribute identifier identifier identifier argument_list except_clause identifi...
Return a filehandle to the file being tailed
module function_definition identifier parameters identifier identifier block if_statement not_operator subscript subscript attribute identifier identifier identifier integer block expression_statement call attribute attribute identifier identifier identifier argument_list subscript subscript attribute identifier identi...
Logs a deprecation notice at most once per AgentCheck instance, for the pre-defined `deprecation_key`
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier identifier expression_statement assignment identifier call identifier argument_list identifier binary_operator string string_start string_content string_end identifier none if_statement identifier blo...
get real model field to order by
module function_definition identifier parameters identifier identifier block return_statement call identifier argument_list generator_expression call attribute identifier identifier argument_list identifier for_in_clause identifier attribute identifier identifier list
Return type may come from any boolop operand.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list none expression_statement assignment attribute identifier identifier subscript attribute identifier identifier slice expression_statement assignment attribute identifier identifier ...
Returns a copy of the version.
module function_definition identifier parameters identifier identifier block expression_statement call attribute identifier identifier argument_list call attribute string string_start string_content string_end identifier argument_list identifier expression_statement assignment identifier dictionary pair string string_s...
Return properties of the item with the given handle.
module function_definition identifier parameters identifier default_parameter identifier none block if_statement call identifier generator_expression comparison_operator call identifier argument_list identifier call identifier argument_list subscript identifier integer for_in_clause identifier identifier block raise_st...
Permute multiple numpy arrays with the same order.
module function_definition identifier parameters identifier list_splat_pattern identifier dictionary_splat_pattern identifier block function_definition identifier parameters identifier block decorated_definition decorator call identifier argument_list identifier function_definition identifier parameters list_splat_patt...
flatten the return values of the mite api.
module function_definition identifier parameters block if_statement comparison_operator attribute identifier identifier string string_start string_content string_end block return_statement dictionary expression_statement assignment identifier call attribute call attribute attribute identifier identifier identifier argu...
Run ontology mapping on a list of INDRA Statements.
module function_definition identifier parameters identifier block expression_statement call attribute call attribute identifier identifier argument_list string string_start string_content string_end identifier argument_list call identifier argument_list call attribute identifier identifier argument_list string string_s...
Setup logging module based on known modules in the config file
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 attribute identifier identifier call attribute call attribute identifier identifier argument_list strin...
Returns the recipe name which is its class name without package.
module function_definition identifier parameters identifier block return_statement call identifier argument_list call attribute attribute identifier identifier identifier argument_list attribute identifier identifier attribute identifier identifier attribute identifier identifier
Return a copy of the polynomial.
module function_definition identifier parameters identifier identifier identifier identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier identifier identifier expression_statement call attribute identifier identifier argument_list call attrib...
StringIO "templates" to build a command line for 'loaddata'
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute string string_start string_content string_end identifier argument_list call identifier argument_list attribute identifier identifier call attribute identifier identifier argument_list expression_s...
Compile rxp with all keys concatenated.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier list for_statement identifier call identifier argument_list attribute identifier identifier keyword_argument identifier lambda lambda_parameters identifier call identifier argument_list identifier ide...
Return the list of items in a certain order
module function_definition identifier parameters identifier block import_statement dotted_name identifier expression_statement assignment identifier call identifier argument_list dictionary pair string string_start string_content string_end integer pair string string_start string_content string_end list list integer no...
Load the complete configuration of a previously stored network.
module function_definition identifier parameters identifier identifier default_parameter identifier none dictionary_splat_pattern identifier block return_statement call attribute attribute call identifier argument_list identifier string string_start string_content string_end identifier identifier argument_list identifi...
Add or update a custom property of an image.
module function_definition identifier parameters identifier identifier default_parameter identifier true block expression_statement assignment identifier call identifier argument_list identifier if_statement not_operator identifier block return_statement call call identifier argument_list identifier argument_list attri...
wider previous conv layer.
module function_definition identifier parameters identifier block if_statement not_operator attribute attribute attribute identifier identifier identifier identifier block return_statement list return_statement list_comprehension call identifier argument_list identifier for_in_clause identifier attribute attribute attr...
Known symlinks of the block device.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier binary_opera...
Renders HTTP response to a given HTTP request.
module function_definition identifier parameters identifier identifier default_parameter identifier integer default_parameter identifier true default_parameter identifier false block expression_statement assignment identifier binary_operator attribute identifier identifier string string_start string_content string_end ...
data = list of ids
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list expression_statement assignment identifier call attribute identifier identifier argument_list expression_statement assignment identifier call attribute identifier identifier argument...
Read a RGBA color
module function_definition identifier parameters identifier identifier default_parameter identifier none block expression_statement assignment identifier call attribute call attribute identifier identifier argument_list identifier identifier argument_list expression_statement assignment identifier call attribute identi...
Parse an open XML file, returning a usage id.
module function_definition identifier parameters identifier block if_statement attribute identifier identifier block return_statement none expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier attribute identifier identifier expression_statement assignment...
Move current position forward until the next line.
module function_definition identifier parameters identifier identifier identifier identifier identifier block if_statement comparison_operator identifier identifier block raise_statement call identifier argument_list string string_start string_content string_end if_statement comparison_operator identifier identifier bl...
Ensuring the parameters are in valid ranges.
module function_definition identifier parameters identifier block expression_statement call attribute call identifier argument_list identifier identifier identifier argument_list expression_statement assignment attribute identifier identifier call attribute attribute identifier identifier identifier argument_list attri...
Flush the data to the index.
module function_definition identifier parameters identifier dictionary_splat_pattern identifier block import_from_statement dotted_name identifier aliased_import dotted_name identifier identifier return_statement call identifier argument_list call attribute identifier identifier argument_list dictionary_splat identifie...
Render the graph, and return a pyquery wrapped tree
module function_definition identifier parameters block expression_statement assignment identifier call identifier argument_list expression_statement assignment attribute identifier identifier string string_start string_content string_end expression_statement assignment attribute identifier identifier string string_star...
HParams for training languagemodel_wikitext103_l4k.
module function_definition identifier parameters identifier block expression_statement assignment attribute identifier identifier identifier for_statement identifier call attribute identifier identifier argument_list block try_statement block expression_statement call attribute identifier identifier argument_list excep...
Pass through to provider LogEntryLookupSession.use_isolated_log_view
module function_definition identifier parameters identifier block expression_statement string string_start string_content string_end assert_statement call attribute identifier identifier argument_list attribute identifier identifier string string_start string_content string_end print_statement binary_operator string st...
Watch directory for changes and auto pack sources
module function_definition identifier parameters block return_statement call identifier generator_expression tuple call identifier argument_list identifier call identifier argument_list identifier for_in_clause pattern_list identifier identifier call attribute identifier identifier argument_list
return a dictionary with default option values and description
module function_definition identifier parameters identifier block expression_statement assignment subscript attribute identifier identifier string string_start string_content string_end identifier for_statement identifier call attribute identifier identifier argument_list block try_statement block expression_statement ...
Pass through to provider AssessmentTakenLookupSession.use_comparative_assessment_taken_view
module function_definition identifier parameters identifier default_parameter identifier none default_parameter identifier none block expression_statement assignment identifier binary_operator binary_operator string string_start string_content string_end attribute identifier identifier string string_start string_conten...
Send a login request with paramerters.
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute attribute identifier identifier identifier identifier argument_list attribute attribute identifier identifier identifier while_statement not_operator call attribute attribute identifier ...
Cycle to preview the next theme from the internal list of themes.
module function_definition identifier parameters identifier block try_statement block expression_statement assignment identifier call identifier argument_list list string string_start string_content string_end string string_start string_content string_end except_clause as_pattern tuple identifier identifier as_pattern_...
Return ``True`` if `convert` can be run and reports supporting image format `fmt`.
module function_definition identifier parameters identifier identifier identifier block if_statement boolean_operator comparison_operator identifier identifier subscript identifier identifier block return_statement dictionary pair string string_start string_content string_end subscript identifier identifier
Populate the ``980`` MARC field.
module function_definition identifier parameters identifier identifier identifier block if_statement identifier block return_statement call attribute identifier identifier argument_list identifier else_clause block return_statement call attribute identifier identifier argument_list
Get one user or all users
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list attribute identifier identifier expression_statement assignment identifier dictionary pair string string_start string_content string_end id...
Returns a dict with SOAP headers in the right format for zeep.
module function_definition identifier parameters identifier identifier block for_statement identifier identifier block for_statement identifier identifier block if_statement comparison_operator string string_start string_content string_end identifier block continue_statement if_statement not_operator call attribute att...
Extract the preferred IP address from the ipv4 grain
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 binary_operator string string_start string_content string_end attribute identifier identifier...
Delete this email report
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement call attribute identifier identifier argument_list identifier expression_statement call attribute identifier identifi...
Clean up the JSB config.
module function_definition identifier parameters identifier default_parameter identifier none default_parameter identifier none default_parameter identifier none block if_statement not_operator identifier block raise_statement call identifier argument_list string string_start string_content string_end if_statement not_...
Create a new approval for the current user to access this hunt.
module function_definition identifier parameters identifier block expression_statement call attribute identifier identifier argument_list for_statement tuple_pattern identifier identifier identifier identifier identifier identifier call attribute identifier identifier argument_list string string_start string_content st...
Yield the entire contents of the graph_val table.
module function_definition identifier parameters default_parameter identifier none default_parameter identifier none block expression_statement assignment identifier false expression_statement assignment identifier integer for_statement identifier call attribute identifier identifier argument_list block if_statement co...
remove the specified configuration
module function_definition identifier parameters identifier identifier identifier identifier block import_statement dotted_name identifier import_from_statement dotted_name identifier identifier identifier dotted_name identifier expression_statement assignment identifier list for_statement pattern_list identifier ident...
Concatenates datasets along one dimension
module function_definition identifier parameters identifier identifier identifier identifier block if_statement boolean_operator comparison_operator identifier identifier comparison_operator identifier integer block return_statement expression_list integer integer return_statement expression_list call identifier argume...
Translate limit to valid bounds.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier list for_statement identifier call attribute identifier identifier argument_list keyword_argument identifier identifier block expression_statement call attribute identifier identifier argument_list id...
lists files in a given directory
module function_definition identifier parameters identifier identifier block return_statement call identifier argument_list keyword_argument identifier attribute identifier identifier keyword_argument identifier call attribute attribute identifier identifier identifier argument_list identifier
Returns a "filtered" version of this graph.
module function_definition identifier parameters identifier block import_from_statement dotted_name identifier identifier dotted_name identifier dotted_name identifier if_statement call identifier argument_list identifier identifier block return_statement attribute identifier identifier elif_clause call identifier argu...
Convert all Frame instances within the given value to Ids
module function_definition identifier parameters identifier identifier identifier block for_statement identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list tuple identifier identifier if_statement identifier block return_statement true return_statement...
check if param token is wrapped by any token in tokens
module function_definition identifier parameters identifier identifier identifier block try_statement block expression_statement assignment attribute identifier identifier subscript attribute identifier identifier identifier except_clause as_pattern identifier as_pattern_target identifier block expression_statement cal...
Callback to set Y-axis column.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list call attribute identifier identifier argument_list expression_statement call attribute attribute attribute identifier identifier identifier identifier argument_list strin...
Changes the value of history_size in dconf
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 list_splat identifier dictionary_splat identifier if_statement comp...
Decode base64 encoded responses from Consul storage
module function_definition identifier parameters identifier identifier block expression_statement assignment subscript attribute identifier identifier string string_start string_content string_end identifier expression_statement assignment identifier call identifier argument_list expression_statement assignment identif...
Analyzes queries from the tail of a given log file
module function_definition identifier parameters identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement not_operator identifier block expression_statement assignment identifier call identifier argument_list identifier return_statement ident...
Convert a PDG ID to a string with root markup.
module function_definition identifier parameters identifier block expression_statement assignment identifier call identifier argument_list dictionary pair string string_start string_content string_end call attribute identifier identifier argument_list lambda lambda_parameters identifier call attribute identifier identi...
Return start & end availability for each column in a DataFrame.
module function_definition identifier parameters identifier identifier block if_statement call identifier argument_list attribute identifier identifier block expression_statement assignment attribute identifier identifier call attribute identifier identifier argument_list identifier
Evaluate if we should be visible for this request
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier call identifier argument_list identifier keyword_argument identifier identifier return_statement call identifier argument_list keyword_argument identifier identifier keyword_argument identi...
Get's the catalog id corresponding to the root of all implementation catalogs.
module function_definition identifier parameters identifier identifier block expression_statement string string_start string_content string_end expression_statement assignment identifier dictionary expression_statement assignment identifier call attribute identifier identifier argument_list call identifier argument_lis...
For the VQE simulation without sampling.
module function_definition identifier parameters identifier identifier block expression_statement string string_start string_content string_end return_statement call identifier argument_list attribute identifier identifier call identifier argument_list attribute identifier identifier identifier
Returns the properly-typed value for the given row at this column.
module function_definition identifier parameters identifier identifier dictionary_splat_pattern identifier block expression_statement string string_start string_content string_end return_statement call identifier argument_list identifier list_comprehension attribute identifier identifier for_in_clause pattern_list iden...
Put the various losses in the recorder.
module function_definition identifier parameters identifier block function_definition identifier parameters identifier identifier list_splat_pattern identifier dictionary_splat_pattern identifier block if_statement not_operator parenthesized_expression boolean_operator attribute identifier identifier call identifier ar...
Allows the first input to be a numpy array and get result in numpy form
module function_definition identifier parameters identifier identifier identifier identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier expression_statement assignment identifier call attribute identifier identifier argument_list if_statemen...
Does a single operation and records latency.
module function_definition identifier parameters identifier identifier identifier block expression_statement assignment identifier call attribute attribute attribute attribute identifier identifier identifier identifier identifier argument_list attribute identifier identifier expression_statement assignment subscript i...
Send mine data to the master
module function_definition identifier parameters identifier identifier default_parameter identifier none default_parameter identifier none default_parameter identifier none block assert_statement boolean_operator comparison_operator identifier none call identifier argument_list identifier attribute identifier identifie...
Perform the query and calculate the time range based on the relative values.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_list identifier return_statement call identifier argument_list identifier
wrapper around a sparql query
module function_definition identifier parameters identifier identifier default_parameter identifier none dictionary_splat_pattern identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement identifier block expression_statement assignment identi...
Concatenate and compress JS files
module function_definition identifier parameters identifier block for_statement identifier identifier block expression_statement assignment attribute identifier identifier string string_start string_content string_end expression_statement assignment attribute identifier identifier string string_start string_content str...
Adjust details specific to GCP.
module function_definition identifier parameters identifier identifier identifier identifier block expression_statement assignment identifier attribute identifier identifier expression_statement assignment identifier call attribute string string_start string_content string_end identifier argument_list tuple identifier ...
Create a ``desc`` node summarizing a method docstring.
module function_definition identifier parameters identifier default_parameter identifier unary_operator integer default_parameter identifier string string_start string_content string_end default_parameter identifier string string_start string_content string_end block expression_statement assignment identifier call attr...
Export an output from the datastore.
module function_definition identifier parameters identifier identifier identifier block expression_statement call attribute attribute identifier identifier identifier argument_list list identifier identifier expression_statement call attribute identifier identifier argument_list string string_start string_content strin...
Register as callback for when a matching device sensor changes.
module function_definition identifier parameters 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 string_start ...
Saves a new command
module function_definition identifier parameters identifier block expression_statement assignment identifier none try_statement block if_statement call identifier argument_list identifier identifier block expression_statement assignment identifier identifier if_statement call identifier argument_list identifier identif...
parse a partial datetime object to a complete datetime object
module function_definition identifier parameters identifier identifier type identifier block expression_statement assignment identifier dictionary pair string string_start string_content string_end identifier expression_statement assignment identifier call attribute attribute identifier identifier identifier argument_l...
Method to get users by ID, do not need authorization
module function_definition identifier parameters default_parameter identifier integer block expression_statement assignment identifier call attribute string string_start string_end identifier generator_expression call attribute identifier identifier argument_list attribute identifier identifier for_in_clause identifier...
Prompts the user for a random string.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier list_comprehension identifier for_in_clause identifier identifier if_clause comparison_operator attribute identifier identifier identifier if_statement comparison_operator call identifier argument_lis...
Return a size from a list of sizes.
module function_definition identifier parameters typed_parameter identifier type identifier type identifier block expression_statement call attribute identifier identifier argument_list string string_start string_content string_end string string_start string_content string_end keyword_argument identifier string string_...
Populates the sub parser with the shell arguments
module function_definition identifier parameters identifier identifier block for_statement identifier attribute identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement call identifier argument_list identifier identifier block retu...
Visitor for `FunctionBody` AST node.
module function_definition identifier parameters identifier block if_statement boolean_operator identifier call identifier argument_list identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list string string_start string_content string_end return_statemen...
Simple method to always have the same kind of value
module function_definition identifier parameters typed_parameter identifier type generic_type identifier type_parameter type identifier type identifier block return_statement call attribute string string_start string_content string_end identifier argument_list generator_expression call identifier argument_list identifi...
Function for pytest to produce uniform names for fixtures.
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 identifier subscript subscript attribute identifier identifier string stri...
Get an immutable version of this collection.
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement comparison_operator attribute identifier identifier none block expression_statement assignment identifier call attribute iden...
Process a given response
module function_definition identifier parameters identifier identifier block expression_statement assignment identifier call identifier argument_list expression_statement call attribute identifier identifier argument_list identifier keyword_argument identifier string string_start string_content string_end keyword_argum...
Create a copy of a PIL.Image from this Pix
module function_definition identifier parameters identifier identifier identifier identifier default_parameter identifier true default_parameter identifier none block while_statement true block expression_statement assignment identifier call attribute identifier identifier argument_list identifier if_statement not_oper...
Return generator through chunked result set.
module function_definition identifier parameters identifier identifier block if_statement boolean_operator not_operator identifier comparison_operator identifier call attribute identifier identifier argument_list block expression_statement call attribute attribute identifier identifier identifier argument_list identifi...
Patched to show help for arparse commands
module function_definition identifier parameters identifier dictionary_splat_pattern identifier block expression_statement assignment identifier call attribute call attribute call attribute attribute identifier identifier identifier argument_list identifier argument_list dictionary_splat identifier identifier argument_...
Fetch tasks specified criteria
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 call attribute identifier identifier argument_list for_statement pattern_list...
Returns details about the current process
module function_definition identifier parameters identifier identifier default_parameter identifier none default_parameter identifier false default_parameter identifier none default_parameter identifier true default_parameter identifier false default_parameter identifier string string_start string_content string_end de...
Common logic for nspawn.run functions
module function_definition identifier parameters identifier block if_statement attribute attribute identifier identifier identifier block return_statement expression_statement assignment identifier call attribute string string_start string_end identifier argument_list attribute identifier identifier if_statement not_op...
Compresses and writes data in the cache to file.