id
stringlengths
17
116
task
stringclasses
1 value
context_length
stringclasses
1 value
documents
listlengths
10
1.02k
question
stringlengths
332
403
question_with_choices
stringlengths
332
403
answer
stringlengths
40
43.3k
answer_raw
stringlengths
42
43.8k
n_chunks_full
int64
10
61.9k
truncated
bool
2 classes
repo
stringlengths
7
54
target_name
stringlengths
1
72
document_id
int64
2.87k
144k
LDU_FT/howl-anderson/MicroTokenizer/normalize_string_keys
LDU_FT
[ "<BEGIN>\n## `create_tokenizer`", "Create a pipeline component from a factory.", " name (unicode): Factory name to look up in `Language.factories`.\n config (dict): Configuration parameters to initialise component.\n RETURNS (callable): Pipeline component.\n<END>", "<BEGIN>\n## `add_codes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_string_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_string_keys API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Given a dictionary, make sure keys are unicode strings, not bytes.
"Given a dictionary, make sure keys are unicode strings, not bytes."
43
false
howl-anderson/MicroTokenizer
normalize_string_keys
31,273
LDU_FT/tariqdaouda/pyGeno/translateDNA_6Frames
LDU_FT
[ "<BEGIN>\n## `getGenomeList`", "Return the names of all imported genomes\n<END>", "<BEGIN>\n## `removeDuplicates`", "removes duplicated lines from a 'inFileName' CSV file, the results are witten in 'outFileName\n<END>", "<BEGIN>\n## `catCSVs`", "Concatenates all csv in 'folder' and wites the results in 'o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translateDNA_6Frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translateDNA_6Frames API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns 6 translation of sequence. One for each reading frame
"returns 6 translation of sequence. One for each reading frame"
167
false
tariqdaouda/pyGeno
translateDNA_6Frames
31,274
LDU_FT/emilydolson/avida-spatial-tools/rank_clusters
LDU_FT
[ "<BEGIN>\n## `gen_gradient`", "Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)\n<END>", "<BEGIN>\n## `gen_res`", "Returns a line of text to add to an environment file, init...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_clusters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_clusters API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Helper function for clustering that takes a dictionary mapping cluster ids to lists of the binary strings that are part of that cluster and returns a dictionary mapping cluster ids to integers representing their "rank". Ranks provide an ordering for the clusters such that each cluster has its own rank, ...
"Helper function for clustering that takes a dictionary mapping cluster\n ids to lists of the binary strings that are part of that cluster and\n returns a dictionary mapping cluster ids to integers representing their\n \"rank\". Ranks provide an ordering for the clusters such that each\n cluster has its own...
189
false
emilydolson/avida-spatial-tools
rank_clusters
31,275
LDU_FT/proycon/flat/pub_poll
LDU_FT
[ "<BEGIN>\n## `pub_view`", "The initial view, does not provide the document content yet\n<END>", "<BEGIN>\n## `checkversion`", "Checks foliadocserve version, returns 1 if the document is newer than the library, -1 if it is older, 0 if it is equal\n<END>", "<BEGIN>\n## `view`", "The initial view, does not p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub_poll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub_poll API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
The initial viewer, does not provide the document content yet
"The initial viewer, does not provide the document content yet"
12
false
proycon/flat
pub_poll
31,276
LDU_FT/amoffat/sh/wait
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
waits for the running command to finish. this is called on all running commands, eventually, except for ones that run in the background
"waits for the running command to finish. this is called on all\n running commands, eventually, except for ones that run in the background"
83
false
amoffat/sh
wait
31,277
LDU_FT/pmacosta/ptrie/get_node_parent
LDU_FT
[ "<BEGIN>\n## `_create_intermediate_nodes`", "Create intermediate nodes if hierarchy does not exist.\n<END>", "<BEGIN>\n## `_delete_subtree`", "Delete subtree private method.", " No argument validation and usage of getter/setter private methods is\n used for speed\n<END>", "<BEGIN>\n## `_prt`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
r""" Get the parent structure of a node. See :py:meth:`ptrie.Trie.get_node` for details about the structure :param name: Child node name :type name: :ref:`NodeName` :rtype: dictionary :raises: * RuntimeError (Argument \`name\` is not valid) * Runti...
"r\"\"\"\n Get the parent structure of a node.\n\n See :py:meth:`ptrie.Trie.get_node` for details about the structure\n\n :param name: Child node name\n :type name: :ref:`NodeName`\n\n :rtype: dictionary\n\n :raises:\n * RuntimeError (Argument \\`name\\` is not valid)\...
166
false
pmacosta/ptrie
get_node_parent
31,278
LDU_FT/bioasp/caspo/to_json
LDU_FT
[ "<BEGIN>\n## `from_str`", "Creates a literal from a string", " Parameters\n ----------\n string : str\n If the string starts with '!', it's interpreted as a negated variable", " Returns\n -------\n caspo.core.literal.Literal\n Created object inst...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Writes the experimental setup to a JSON file Parameters ---------- filename : str Absolute path where to write the JSON file
"Writes the experimental setup to a JSON file\n\n Parameters\n ----------\n filename : str\n Absolute path where to write the JSON file"
366
false
bioasp/caspo
to_json
31,279
LDU_FT/Metatab/metapack/get_lib_module_dict
LDU_FT
[ "<BEGIN>\n## `_load_resource`", "The CSV package has no reseources, so we just need to resolve the URLs to them. Usually, the\n CSV package is built from a file system ackage on a publically acessible server.\n<END>", "<BEGIN>\n## `set_s3_profile`", "Load the credentials for an s3 profile into envi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lib_module_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lib_module_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Load the 'lib' directory as a python module, so it can be used to provide functions for rowpipe transforms. This only works filesystem packages
"Load the 'lib' directory as a python module, so it can be used to provide functions\n for rowpipe transforms. This only works filesystem packages"
261
false
Metatab/metapack
get_lib_module_dict
31,280
LDU_FT/dead-beef/markovchain/main
LDU_FT
[ "<BEGIN>\n## `create_arg_parser`", "Create command subparsers.", " Parameters\n ----------\n parent : `argparse.ArgumentParser`\n Command parser.\n<END>", "<BEGIN>\n## `read`", "Read data files and update a generator.", " Parameters\n ----------\n fnames : `list` of `str`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
CLI main function. Parameters ---------- args : `list` of `str`, optional CLI arguments (default: `sys.argv`).
"CLI main function.\n\n Parameters\n ----------\n args : `list` of `str`, optional\n CLI arguments (default: `sys.argv`)."
323
false
dead-beef/markovchain
main
31,281
LDU_FT/maxpumperla/elephas/_transform
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Private transform method of a Transformer. This serves as batch-prediction method for our purposes.
"Private transform method of a Transformer. This serves as batch-prediction method for our purposes."
87
false
maxpumperla/elephas
_transform
31,282
LDU_FT/rtfd/sphinx-autoapi/summary
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summary API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
The summary line of the docstring. The summary line is the first non-empty line, as-per :pep:`257`. This will be the empty string if the object does not have a docstring. :type: str
"The summary line of the docstring.\n\n The summary line is the first non-empty line, as-per :pep:`257`.\n This will be the empty string if the object does not have a docstring.\n\n :type: str"
169
false
rtfd/sphinx-autoapi
summary
31,283
LDU_FT/lsst-sqre/documenteer/_parse_skip_option
LDU_FT
[ "<BEGIN>\n## `run`", "Main entrypoint method.", " Returns\n -------\n new_nodes : `list`\n Nodes to add to the doctree.\n<END>", "<BEGIN>\n## `main`", "stack-docs is a CLI for building LSST Stack documentation, such as\n pipelines.lsst.io.", " This command should be r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_skip_option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_skip_option API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Parse the ``skip`` option of skipped module names.
"Parse the ``skip`` option of skipped module names."
430
false
lsst-sqre/documenteer
_parse_skip_option
31,284
LDU_FT/SheffieldML/GPyOpt/_eval_func
LDU_FT
[ "<BEGIN>\n## `constant_cost_withGradients`", "Constant cost function used by default: cost = 1, d_cost = 0.\n<END>", "<BEGIN>\n## `_cost_gp`", "Predicts the time cost of evaluating the function at x.\n<END>", "<BEGIN>\n## `_cost_gp_withGradients`", "Predicts the time cost and its gradient of evaluating th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eval_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _eval_func API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Performs sequential evaluations of the function at x (single location or batch). The computing time of each evaluation is also provided.
"Performs sequential evaluations of the function at x (single location or batch). The computing time of each\n evaluation is also provided."
259
false
SheffieldML/GPyOpt
_eval_func
31,285
LDU_FT/camsci/meteor-pi/get_file
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to a host on a given port.\n If the hostname ends with a colon (`:') followed by a number, and\n there is no port specified, that suffix will be stripped off and the\n number interpreted as the port number to use.\n<END>", "<BEGIN>\n## `waiting`", "Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Retrieve an existing :class:`meteorpi_model.FileRecord` by its ID :param string repository_fname: The file ID :return: A :class:`meteorpi_model.FileRecord` instance, or None if not found
"Retrieve an existing :class:`meteorpi_model.FileRecord` by its ID\n\n :param string repository_fname:\n The file ID\n :return:\n A :class:`meteorpi_model.FileRecord` instance, or None if not found"
210
false
camsci/meteor-pi
get_file
31,286
LDU_FT/miedzinski/google-oauth/make_access_request
LDU_FT
[ "<BEGIN>\n## `from_json`", "Alternate constructor intended for using JSON format of private key.", " Args:\n key (dict) - Parsed JSON with service account credentials.\n scopes (Union[str, collections.Iterable[str]]) -\n List of permissions that the application reques...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_access_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_access_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Makes an OAuth2 access token request with crafted JWT and signature. The core of this module. Based on arguments it creates proper JWT for you and signs it with supplied private key. Regardless of present valid token, it always clears ``issued_at`` property, which in turn results in req...
"Makes an OAuth2 access token request with crafted JWT and signature.\n\n The core of this module. Based on arguments it creates proper JWT\n for you and signs it with supplied private key.\n Regardless of present valid token, it always clears\n ``issued_at`` property, which in turn results ...
27
false
miedzinski/google-oauth
make_access_request
31,287
LDU_FT/bapakode/OmMongo/nin
LDU_FT
[ "<BEGIN>\n## `setdefault`", "if the ``name`` is set, return its value. Otherwse set ``name`` to\n ``value`` and return ``value``\n<END>", "<BEGIN>\n## `ascending`", "Add a descending index for ``name`` to this index.", " :param name: Name to be used in the index\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
A query to check if this query field is not one of the values in ``values``. Produces a MongoDB ``$nin`` expression.
"A query to check if this query field is not one of the values\n in ``values``. Produces a MongoDB ``$nin`` expression."
248
false
bapakode/OmMongo
nin
31,288
LDU_FT/projectshift/shift-boiler/history
LDU_FT
[ "<BEGIN>\n## `asset`", "Asset helper\n Generates path to a static asset based on configuration base path and\n support for versioning. Will easily allow you to move your assets away to\n a CDN without changing templates. Versioning allows you to cache your asset\n changes forever by the webserver.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
List revision changesets chronologically
"List revision changesets chronologically"
166
false
projectshift/shift-boiler
history
31,289
LDU_FT/mitodl/mit-moira/list_members
LDU_FT
[ "<BEGIN>\n## `user_lists`", "Look up all the lists that the user is a member of.", " Args:\n username (str): The MIT username of the user\n member_type(str): The type of user, \"USER\" or \"STRING\"", " Returns:\n list of strings: names of the lists that this use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_members API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_members API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Look up all the members of a list. Args: name (str): The name of the list type (str): The type of results to return. "USER" to get users, "LIST" to get lists. recurse (bool): Presumably, whether to recurse into member lists when retrieving use...
"Look up all the members of a list.\n\n Args:\n name (str): The name of the list\n type (str): The type of results to return. \"USER\" to get users,\n \"LIST\" to get lists.\n recurse (bool): Presumably, whether to recurse into member lists\n when re...
29
false
mitodl/mit-moira
list_members
31,290
LDU_FT/NORDUnet/python-norduniclient/get_relationships
LDU_FT
[ "<BEGIN>\n## `get_db_driver`", ":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relationships API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_relationships API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Takes a start and an end node with an optional relationship type. Returns the relationships between the nodes or an empty list.
"Takes a start and an end node with an optional relationship\n type.\n Returns the relationships between the nodes or an empty list."
71
false
NORDUnet/python-norduniclient
get_relationships
31,291
LDU_FT/Frzk/Ellis/replace_tags
LDU_FT
[ "<BEGIN>\n## `_prepare`", "Updates the function arguments and creates a :class:`asyncio.Task`\n from the Action.", " *kwargs* is an optional dictionnary of additional arguments to pass to\n the Action function.", " .. warning::\n *kwargs* will overwrite existing keys in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_tags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Searches for known tags in the given string and replaces them with the corresponding regular expression. *raw_filter* is an (optionnaly tagged) regular expression. Returns the regular expression with known tags replaces by the corresponding regular expression.
"Searches for known tags in the given string and replaces them with the\n corresponding regular expression.\n\n *raw_filter* is an (optionnaly tagged) regular expression.\n\n Returns the regular expression with known tags replaces by the\n corresponding regular expression."
106
false
Frzk/Ellis
replace_tags
31,292
LDU_FT/marvin-ai/marvin-python-toolbox/_get_version
LDU_FT
[ "<BEGIN>\n## `get_logger`", "Build a logger that outputs to a file and to the console,\n<END>", "<BEGIN>\n## `get`", "Retrieves a config value from dict.\n If not found twrows an InvalidScanbooconfigException.\n<END>", "<BEGIN>\n## `_get_version`", "Return the project version from VERSION file.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Return the project version from VERSION file.
"Return the project version from VERSION file."
37
false
marvin-ai/marvin-python-toolbox
_get_version
31,293
LDU_FT/KrishnaswamyLab/graphtools/K
LDU_FT
[ "<BEGIN>\n## `set_params`", "Set parameters on this object", " Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the K API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the K API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Kernel matrix Returns ------- K : array-like, shape=[n_samples, n_samples] kernel matrix defined as the adjacency matrix with ones down the diagonal
"Kernel matrix\n\n Returns\n -------\n K : array-like, shape=[n_samples, n_samples]\n kernel matrix defined as the adjacency matrix with\n ones down the diagonal"
207
false
KrishnaswamyLab/graphtools
K
31,294
LDU_FT/ace0/pyrelic/protoFast
LDU_FT
[ "<BEGIN>\n## `assertSameType`", "Raises an exception if @b is not an instance of type(@a)\n<END>", "<BEGIN>\n## `assertType`", "Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>", "<BEGIN>\n## `dp`", "Debugging print. Prints a list of labels and va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protoFast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protoFast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Runs the protocol but omits proof generation and verification.
"Runs the protocol but omits proof generation and verification."
109
false
ace0/pyrelic
protoFast
31,295
LDU_FT/Kozea/cairocffi/get_extents
LDU_FT
[ "<BEGIN>\n## `set_size`", "Informs cairo of the new size of the X Drawable underlying the surface.\n For a surface created for a Window (rather than a Pixmap), this\n function must be called each time the size of the window changes (for\n a subwindow, you are normally resizing the window your...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_extents API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Return the extents of the recording-surface. :returns: A ``(x, y, width, height)`` tuple of floats, or :obj:`None` if the surface is unbounded. *New in cairo 1.12*
"Return the extents of the recording-surface.\n\n :returns:\n A ``(x, y, width, height)`` tuple of floats,\n or :obj:`None` if the surface is unbounded.\n\n *New in cairo 1.12*"
669
false
Kozea/cairocffi
get_extents
31,296
LDU_FT/scott-maddox/openbandparams/_get_x
LDU_FT
[ "<BEGIN>\n## `GaP_Eg_Gamma`", "Returns the Gamma-valley bandgap, Eg_Gamma, in electron Volts at a\n given temperature, T, in Kelvin (default: 300 K).", " GaP has a unique Gamma-gap temperature dependence.\n<END>", "<BEGIN>\n## `_has_x`", "Returns True if x is explicitly defined in kwargs\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_x API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns x if it is explicitly defined in kwargs. Otherwise, raises TypeError.
"Returns x if it is explicitly defined in kwargs.\n Otherwise, raises TypeError."
68
false
scott-maddox/openbandparams
_get_x
31,297
LDU_FT/ethereum/pyethereum/_canonical_type
LDU_FT
[ "<BEGIN>\n## `_canonical_type`", "Replace aliases to the corresponding type to compute the ids.\n<END>", "<BEGIN>\n## `method_id`", "Return the unique method id.", " The signature is defined as the canonical expression of the basic\n prototype, i.e. the function name with the parenthesised list of par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _canonical_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _canonical_type API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Replace aliases to the corresponding type to compute the ids.
"Replace aliases to the corresponding type to compute the ids."
138
false
ethereum/pyethereum
_canonical_type
31,298
LDU_FT/myusuf3/delorean/truncate
LDU_FT
[ "<BEGIN>\n## `parse`", "Parses a datetime string and returns a `Delorean` object.", " :param datetime_str: The string to be interpreted into a `Delorean` object.\n :param timezone: Pass this parameter and the returned Delorean object will be normalized to this timezone. Any\n offsets passed as part...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Truncate the delorian object to the nearest s (second, minute, hour, day, month, year) This is a destructive method, modifies the internal datetime object associated with the Delorean object. .. testsetup:: from datetime import datetime from delorean import Del...
"Truncate the delorian object to the nearest s\n (second, minute, hour, day, month, year)\n\n This is a destructive method, modifies the internal datetime\n object associated with the Delorean object.\n\n .. testsetup::\n\n from datetime import datetime\n from delorean ...
85
false
myusuf3/delorean
truncate
31,299
LDU_FT/mfitzp/padua/build_index_from_design
LDU_FT
[ "<BEGIN>\n## `remove_rows_matching`", "Return a ``DataFrame`` with rows where `column` values match `match` are removed.", " The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.", " :param df:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_index_from_design API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_index_from_design API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Build a MultiIndex from a design table. Supply with a table with column headings for the new multiindex and a index containing the labels to search for in the data. :param df: :param design: :param remove: :param types: :param axis: :param auto_convert_numeric: :return:
"Build a MultiIndex from a design table.\n\n Supply with a table with column headings for the new multiindex\n and a index containing the labels to search for in the data.\n\n :param df:\n :param design:\n :param remove:\n :param types:\n :param axis:\n :param auto_convert_numeric:\n :return:...
266
false
mfitzp/padua
build_index_from_design
31,300
LDU_FT/shmir/PyIxNetwork/add
LDU_FT
[ "<BEGIN>\n## `reserve`", "Reserve port and optionally wait for port to come up.", " :param location: port location as 'ip/module/port'. If None, the location will be taken from the configuration.\n :param force: whether to revoke existing reservation (True) or not (False).\n :param wait_for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
IXN API add command @param parent: object parent - object will be created under this parent. @param object_type: object type. @param attributes: additional attributes. @return: STC object reference.
"IXN API add command\n\n @param parent: object parent - object will be created under this parent.\n @param object_type: object type.\n @param attributes: additional attributes.\n @return: STC object reference."
64
false
shmir/PyIxNetwork
add
31,301
LDU_FT/andrewda/frc-livescore/_process
LDU_FT
[ "<BEGIN>\n## `guess_segments_lines`", "given segments, outputs a array of line numbers, or -1 if it\n doesn't belong to any\n<END>", "<BEGIN>\n## `contained_segments_matrix`", "givens a n*n matrix m, n=len(segments), in which m[i,j] means\n segments[i] is contained inside segments[j]\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
sort segments in read order - left to right, up to down
"sort segments in read order - left to right, up to down"
18
false
andrewda/frc-livescore
_process
31,302
LDU_FT/monim67/django-bootstrap-datepicker-plus/format_js2py
LDU_FT
[ "<BEGIN>\n## `format_value`", "Return a value as it should appear when rendered in a template.", " Missing method of django.forms.widgets.Widget class\n<END>", "<BEGIN>\n## `get_context`", "Missing method of django.forms.widgets.Widget class.\n<END>", "<BEGIN>\n## `render`", "Render the widget as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_js2py API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_js2py API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Convert moment datetime format to python datetime format.
"Convert moment datetime format to python datetime format."
24
false
monim67/django-bootstrap-datepicker-plus
format_js2py
31,303
LDU_FT/sdispater/backpack/transform
LDU_FT
[ "<BEGIN>\n## `avg`", "Get the average value of a given key.", " :param key: The key to get the average for\n :type key: mixed", " :rtype: float or int\n<END>", "<BEGIN>\n## `chunk`", "Chunk the underlying collection.", " :param size: The chunk size\n :type size: int", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Transform each item in the collection using a callback. :param callback: The callback :type callback: callable :rtype: Collection
"Transform each item in the collection using a callback.\n\n :param callback: The callback\n :type callback: callable\n\n :rtype: Collection"
137
false
sdispater/backpack
transform
31,304
LDU_FT/rkargon/pixelsorter/sort_image
LDU_FT
[ "<BEGIN>\n## `hue`", "Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>", "<BEGIN>\n## `saturation`", "Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Applies pixel sorting to an image. This is done by first creating a sort mask that describes the sorting intervals, and then calling apply_sort_mask to the image using the generated mask. :param discretize: Amount by which to "discretize" pixel values. This is done by dividing each pixel's value (after appl...
"Applies pixel sorting to an image. This is done by first creating a sort mask that describes the sorting intervals,\n and then calling apply_sort_mask to the image using the generated mask.\n :param discretize: Amount by which to \"discretize\" pixel values. This is done by dividing each pixel's value\n (afte...
79
false
rkargon/pixelsorter
sort_image
31,305
LDU_FT/blockstack-packages/jsontokens-py/_decode_token_json
LDU_FT
[ "<BEGIN>\n## `_unpack_token_compact`", "Unpack a compact-form serialized JWT.\n Returns (header, payload, signature, signing_input) on success\n Raises DecodeError on bad input\n<END>", "<BEGIN>\n## `_unpack_token_json`", "Unpack a JSON-serialized JWT\n Returns (headers, payload, signatures) on succe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_token_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_token_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Decode a JSON-serialized JWT Returns {'header': ..., 'payload': ..., 'signature': ...}
"Decode a JSON-serialized JWT\n Returns {'header': ..., 'payload': ..., 'signature': ...}"
32
false
blockstack-packages/jsontokens-py
_decode_token_json
31,306
LDU_FT/andrenarchy/krypy/_get_xk
LDU_FT
[ "<BEGIN>\n## `find_common_dtype`", "Returns common dtype of numpy and scipy objects.", " Recognizes ndarray, spmatrix and LinearOperator. All other objects are\n ignored (most notably None).\n<END>", "<BEGIN>\n## `shape_vecs`", "Reshape all ndarrays with ``shape==(n,)`` to ``shape==(n,1)``.", " R...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_xk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_xk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Compute approximate solution from initial guess and approximate solution of the preconditioned linear system.
"Compute approximate solution from initial guess and approximate\n solution of the preconditioned linear system."
194
false
andrenarchy/krypy
_get_xk
31,307
LDU_FT/woolfson-group/isambard/find_ss_regions_polymer
LDU_FT
[ "<BEGIN>\n## `covalent_bonds`", "Returns all the covalent bonds in a list of `Atom` pairs.", " Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.", " Parameters\n ----------\n atoms : [(`At...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ss_regions_polymer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ss_regions_polymer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Returns an `Assembly` of regions tagged as secondary structure. Parameters ---------- polymer : Polypeptide `Polymer` object to be searched secondary structure regions. ss : list List of secondary structure tags to be separate i.e. ['H'] would return helices, ['H', 'E'] would re...
"Returns an `Assembly` of regions tagged as secondary structure.\n\n Parameters\n ----------\n polymer : Polypeptide\n `Polymer` object to be searched secondary structure regions.\n ss : list\n List of secondary structure tags to be separate i.e. ['H']\n would return helices, ['H', 'E']...
880
false
woolfson-group/isambard
find_ss_regions_polymer
31,308
LDU_FT/etscrivner/nose-perfdump/get_cursor
LDU_FT
[ "<BEGIN>\n## `precmd`", "Parse the command on the given line.", " :param line: The raw input line\n :type line: str\n<END>", "<BEGIN>\n## `connect`", "Create a new connection to the SQLite3 database.", " :param dbname: The database name\n :type dbname: str\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cursor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return a message list cursor that returns sqlite3.Row objects
"Return a message list cursor that returns sqlite3.Row objects"
28
false
etscrivner/nose-perfdump
get_cursor
31,309
LDU_FT/locationlabs/gusset/configure_output
LDU_FT
[ "<BEGIN>\n## `separator`", "Generate a separator row using current column widths.\n<END>", "<BEGIN>\n## `with_output`", "Decorator that configures output verbosity.\n<END>", "<BEGIN>\n## `_puts`", "Generate fabric-style output if and only if status output\n has been selected.\n<END>", "<BEGIN>\n## `c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Configure verbosity level through Fabric's output managers. Provides a default mapping from verbosity levels to output types. :param verbosity: an integral verbosity level :param output_levels: an optional mapping from Fabric output types to verbosity :param quiet: specifies that all output should be ...
"Configure verbosity level through Fabric's output managers.\n\n Provides a default mapping from verbosity levels to output types.\n\n :param verbosity: an integral verbosity level\n :param output_levels: an optional mapping from Fabric output types to verbosity\n :param quiet: specifies that all output sho...
18
false
locationlabs/gusset
configure_output
31,310
LDU_FT/bimbar/pykwb/_decode_ctrl_packet
LDU_FT
[ "<BEGIN>\n## `_close_connection`", "Close the connection to the easyfire unit.\n<END>", "<BEGIN>\n## `_sense_packet_to_data`", "Remove the escape pad bytes from a sense packet (\\2\\0 -> \\2).\n<END>", "<BEGIN>\n## `_decode_temp`", "Decode a signed short temperature as two bytes to a single number.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_ctrl_packet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _decode_ctrl_packet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Decode a control packet into the list of sensors.
"Decode a control packet into the list of sensors."
12
false
bimbar/pykwb
_decode_ctrl_packet
31,311
LDU_FT/diging/tethne/list_topics
LDU_FT
[ "<BEGIN>\n## `to_dxgmml`", "Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.", " Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_topics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_topics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
List the top ``Nwords`` words for each topic.
"List the top ``Nwords`` words for each topic."
497
false
diging/tethne
list_topics
31,312
LDU_FT/zblz/naima/_spectrum
LDU_FT
[ "<BEGIN>\n## `memoize`", "Cache decorator for functions inside model classes\n<END>", "<BEGIN>\n## `lnprior`", "Return probability of parameter values according to prior knowledge.\n Parameter limits should be done here through uniform prior ditributions\n<END>", "<BEGIN>\n## `get_sampler`", "Generate ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spectrum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _spectrum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Compute differential spectrum from pp interactions using Eq.71 and Eq.58 of Kelner, S.R., Aharonian, F.A., and Bugayov, V.V., 2006 PhysRevD 74, 034018 (`arXiv:astro-ph/0606058 <http://www.arxiv.org/abs/astro-ph/0606058>`_). Parameters ---------- photon_energy : :class:`~...
"Compute differential spectrum from pp interactions using Eq.71 and\n Eq.58 of Kelner, S.R., Aharonian, F.A., and Bugayov, V.V., 2006\n PhysRevD 74, 034018 (`arXiv:astro-ph/0606058\n <http://www.arxiv.org/abs/astro-ph/0606058>`_).\n\n Parameters\n ----------\n photon_energy : :...
279
false
zblz/naima
_spectrum
31,313
LDU_FT/django-admin-tools/django-admin-tools/autodiscover
LDU_FT
[ "<BEGIN>\n## `set_preferences`", "This view serves and validates a preferences form.\n<END>", "<BEGIN>\n## `admin_tools_render_menu`", "Template tag that renders the menu, it takes an optional ``Menu`` instance\n as unique argument, if not given, the menu will be retrieved with the\n ``get_admin_menu`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autodiscover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autodiscover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Automagically discover custom dashboards and menus for installed apps. Optionally you can pass a ``blacklist`` of apps that you don't want to provide their own app index dashboard.
"Automagically discover custom dashboards and menus for installed apps.\n Optionally you can pass a ``blacklist`` of apps that you don't want to\n provide their own app index dashboard."
60
false
django-admin-tools/django-admin-tools
autodiscover
31,314
LDU_FT/voidpp/PCA9685-driver/get_led_register_from_name
LDU_FT
[ "<BEGIN>\n## `get_i2c_bus_numbers`", "Search all the available I2C devices in the system\n<END>", "<BEGIN>\n## `get_led_register_from_name`", "Parse the name for led number", " :param name: attribute name, like: led_1\n<END>", "<BEGIN>\n## `set_pwm`", "Set PWM value for the specified LED", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_led_register_from_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_led_register_from_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Parse the name for led number :param name: attribute name, like: led_1
"Parse the name for led number\n\n :param name: attribute name, like: led_1"
14
false
voidpp/PCA9685-driver
get_led_register_from_name
31,315
LDU_FT/raiden-network/raiden-contracts/deploy_raiden_contracts
LDU_FT
[ "<BEGIN>\n## `check_permission_safety`", "Check if the file at the given path is safe to use as a state file.", " This checks that group and others have no permissions on the file and that the current user is\n the owner.\n<END>", "<BEGIN>\n## `get_private_key`", "Open a JSON-encoded private key and r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy_raiden_contracts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy_raiden_contracts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Deploy all required raiden contracts and return a dict of contract_name:address Args: max_num_of_token_networks (Optional[int]): The max number of tokens that can be registered to the TokenNetworkRegistry. If None, the argument is omitted from the call to the constructor of ...
"Deploy all required raiden contracts and return a dict of contract_name:address\n\n Args:\n max_num_of_token_networks (Optional[int]): The max number of tokens that can be\n registered to the TokenNetworkRegistry. If None, the argument is omitted from\n the call to the construct...
76
false
raiden-network/raiden-contracts
deploy_raiden_contracts
31,316
LDU_FT/Zsailer/phylopandas/_write
LDU_FT
[ "<BEGIN>\n## `_dendropy_to_dataframe`", "Convert Dendropy tree to Pandas dataframe.\n<END>", "<BEGIN>\n## `_read`", "Read a phylogenetic tree into a phylopandas.DataFrame.", " The resulting DataFrame has the following columns:\n - name: label for each taxa or node.\n - id: unique id (create...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Write a phylopandas tree DataFrame to various formats. Parameters ---------- df : DataFrame DataFrame containing tree data. filename : str filepath to write out tree. If None, will return string. schema : str tree format to write out. taxon_col : str (optional) ...
"Write a phylopandas tree DataFrame to various formats.\n\n Parameters\n ----------\n df : DataFrame\n DataFrame containing tree data.\n\n filename : str\n filepath to write out tree. If None, will return string.\n\n schema : str\n tree format to write out.\n\n taxon_col : str (op...
65
false
Zsailer/phylopandas
_write
31,317
LDU_FT/Gandi/gandi.cli/get
LDU_FT
[ "<BEGIN>\n## `mkpassword`", "Generates a random ascii string - useful to generate authinfos", " :param length: string wanted length\n :type length: ``int``", " :param chars: character population,\n defaults to alphabet (lower & upper) + numbers\n :type chars: ``str``, ``list``, ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Retrieve a key value from loaded configuration. Order of search if global_=False: 1/ environnment variables 2/ local configuration 3/ global configuration
"Retrieve a key value from loaded configuration.\n\n Order of search if global_=False:\n 1/ environnment variables\n 2/ local configuration\n 3/ global configuration"
357
false
Gandi/gandi.cli
get
31,318
LDU_FT/MinchinWeb/minchin.releaser/copytree
LDU_FT
[ "<BEGIN>\n## `copytree`", "Copy a tree of files over.", " Ignores a file if it already exists at the destination.\n<END>", "<BEGIN>\n## `read_requirements`", "Given a requirements.txt (or similar style file), returns a list of requirements.", " Assumes anything after a single '#' on a line is a comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copytree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copytree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Copy a tree of files over. Ignores a file if it already exists at the destination.
"Copy a tree of files over.\n\n Ignores a file if it already exists at the destination."
21
false
MinchinWeb/minchin.releaser
copytree
31,319
LDU_FT/mixcloud/django-experiments/set_alternative
LDU_FT
[ "<BEGIN>\n## `points_with_surrounding_gaps`", "This function makes sure that any gaps in the sequence provided have stopper points at their beginning\n and end so a graph will be drawn with correct 0 ranges. This is more efficient than filling in all points\n up to the maximum value. For example:", " i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_alternative API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_alternative API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Explicitly set the alternative the user is enrolled in for the specified experiment. This allows you to change a user between alternatives. The user and goal counts for the new alternative will be increment, but those for the old one will not be decremented. The user will be enrolled in the exp...
"Explicitly set the alternative the user is enrolled in for the specified experiment.\n\n This allows you to change a user between alternatives. The user and goal counts for the new\n alternative will be increment, but those for the old one will not be decremented. The user will\n be enrolled in th...
40
false
mixcloud/django-experiments
set_alternative
31,320
LDU_FT/jssimporter/python-jss/add_package
LDU_FT
[ "<BEGIN>\n## `get`", "GET a url, handle errors, and return an etree.", " In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.", " Args:\n url_path: String API endpoint path to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Add a Package object to the policy with action=install. Args: pkg: A Package object to add. action_type (str, optional): One of "Install", "Cache", or "Install Cached". Defaults to "Install".
"Add a Package object to the policy with action=install.\n\n Args:\n pkg: A Package object to add.\n action_type (str, optional): One of \"Install\", \"Cache\", or\n \"Install Cached\". Defaults to \"Install\"."
331
false
jssimporter/python-jss
add_package
31,321
LDU_FT/BreakingBytes/simkit/id_maker
LDU_FT
[ "<BEGIN>\n## `register`", "Register outputs and metadata.", " * ``initial_value`` - used in dynamic calculations\n * ``size`` - number of elements per timestep\n * ``uncertainty`` - in percent of nominal value\n * ``variance`` - dictionary of covariances, diagonal is square of\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the id_maker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the id_maker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Makes an ID from the object's class name and the datetime now in ISO format. :param obj: the class from which to make the ID :return: ID
"Makes an ID from the object's class name and the datetime now in ISO format.\n\n :param obj: the class from which to make the ID\n :return: ID"
227
false
BreakingBytes/simkit
id_maker
31,322
LDU_FT/grundprinzip/pyxplorer/distribution
LDU_FT
[ "<BEGIN>\n## `tables`", ":return: all tables stored in this database\n<END>", "<BEGIN>\n## `tcounts`", ":return: a data frame containing the names and sizes for all tables\n<END>", "<BEGIN>\n## `dcounts`", ":return: a data frame with names and distinct counts and fractions for all columns in the database\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distribution API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distribution API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Build the distribution of distinct values
"Build the distribution of distinct values"
20
false
grundprinzip/pyxplorer
distribution
31,323
LDU_FT/open-homeautomation/pknx/unregister_listener
LDU_FT
[ "<BEGIN>\n## `ip_to_array`", "Convert a string representing an IPv4 address to 4 bytes.\n<END>", "<BEGIN>\n## `int_to_array`", "Convert an length byte integer to an array of bytes.\n<END>", "<BEGIN>\n## `parse_group_address`", "Parse KNX group addresses and return the address as an integer.", " This ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unregister_listener API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Removes a listener function for a given address Remove the listener for the given address. Returns true if the listener was found and removed, false otherwise
"Removes a listener function for a given address\n\n Remove the listener for the given address. Returns true if the listener\n was found and removed, false otherwise"
80
false
open-homeautomation/pknx
unregister_listener
31,324
LDU_FT/concordusapps/alchemist/save
LDU_FT
[ "<BEGIN>\n## `shell`", "Runs the command-line client for the specified database.\n<END>", "<BEGIN>\n## `make_module_class`", "Takes the module referenced by name and make it a full class.\n<END>", "<BEGIN>\n## `_component_of`", "Get the root package or module of the passed module.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Save the changes to the model. If the model has not been persisted then it adds the model to the declared session. Then it flushes the object session and optionally commits it.
"Save the changes to the model.\n\n If the model has not been persisted\n then it adds the model to the declared session. Then it flushes the\n object session and optionally commits it."
27
false
concordusapps/alchemist
save
31,325
LDU_FT/CitrineInformatics/dftparse/_parse_forces
LDU_FT
[ "<BEGIN>\n## `_parse_refraction`", "Parse Energy [eV] ref_ind_xx ref_ind_zz extinct_xx extinct_zz\n<END>", "<BEGIN>\n## `_is_kpoint`", "Is this line the start of a new k-point block\n<END>", "<BEGIN>\n## `_parse_kpoint`", "Parse the k-point and then continue to iterate over the band energies and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_forces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_forces API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Parse the forces block, including individual terms (e.g. Hubbard)
"Parse the forces block, including individual terms (e.g. Hubbard)"
25
false
CitrineInformatics/dftparse
_parse_forces
31,326
LDU_FT/dmort27/panphon/fts_match_all
LDU_FT
[ "<BEGIN>\n## `fts`", "Return features corresponding to segment as list of (value,\n feature) tuples", " Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string", " Returns:\n list: None if `segment` c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fts_match_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fts_match_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return `True` if all segments in `inv` matches the features in fts Args: fts (list): a collection of (value, feature) tuples inv (list): a collection of IPA segments represented as Unicode strings Returns: bool: `True` if all segments in `inv...
"Return `True` if all segments in `inv` matches the features in fts\n\n Args:\n fts (list): a collection of (value, feature) tuples\n inv (list): a collection of IPA segments represented as Unicode\n strings\n\n Returns:\n bool: `True` if all segment...
112
false
dmort27/panphon
fts_match_all
31,327
LDU_FT/jeffbuttars/upkg/_clean_path
LDU_FT
[ "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `exec`", "todo: Docstring for exec", " :param args: arg description\n :type args: type description\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
todo: Docstring for _clen_path :param p: arg description :type p: type description :return: :rtype:
"todo: Docstring for _clen_path\n\n :param p: arg description\n :type p: type description\n :return:\n :rtype:"
76
false
jeffbuttars/upkg
_clean_path
31,328
LDU_FT/bfontaine/p7magma/parsebool
LDU_FT
[ "<BEGIN>\n## `_populate`", "Populate the list, assuming ``soup`` is a ``BeautifulSoup`` object.\n<END>", "<BEGIN>\n## `_populate_small_table`", "Populate the list, given that ``trs`` is a ``BeautifulSoup`` elements\n list from a large table (5 columns).\n<END>", "<BEGIN>\n## `_populate_large_table`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsebool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsebool API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Parse a ``BeautifulSoup`` element as a bool
"Parse a ``BeautifulSoup`` element as a bool"
26
false
bfontaine/p7magma
parsebool
31,329
LDU_FT/dr-leo/pandaSDMX/obs
LDU_FT
[ "<BEGIN>\n## `namedtuple`", "Returns a new subclass of tuple with named fields.\n This is a patched version of collections.namedtuple from the stdlib.\n Unlike the latter, it accepts non-identifier strings as field names.\n All values are accessible through dict syntax. Fields whose names are\n identi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
return an iterator over observations in a series. An observation is represented as a namedtuple with 3 fields ('key', 'value', 'attrib'). obs.key is a namedtuple of dimensions, obs.value is a string value and obs.attrib is a namedtuple of attributes. If with_values or with_attributes ...
"return an iterator over observations in a series.\r\n An observation is represented as a namedtuple with 3 fields ('key', 'value', 'attrib').\r\n obs.key is a namedtuple of dimensions, obs.value is a string value and\r\n obs.attrib is a namedtuple of attributes. If with_values or with_attributes\r...
86
false
dr-leo/pandaSDMX
obs
31,330
LDU_FT/softlayer/softlayer-python/reset_service_group
LDU_FT
[ "<BEGIN>\n## `cli`", "List package items used for ordering.", " The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.", " .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_service_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_service_group API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Resets all the connections on the service group. :param int loadbal_id: The id of the loadbal :param int group_id: The id of the service group to reset
"Resets all the connections on the service group.\n\n :param int loadbal_id: The id of the loadbal\n :param int group_id: The id of the service group to reset"
1,375
true
softlayer/softlayer-python
reset_service_group
31,331
LDU_FT/DistrictDataLabs/yellowbrick/draw
LDU_FT
[ "<BEGIN>\n## `download`", "Download the dataset from the hosted Yellowbrick data store and save\n it to the location specified by ``get_data_home``. The downloader\n verifies the download completed successfully and safely by comparing\n the expected signature with the SHA 256 signature of the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Called from the fit method, this method creates a scatter plot that draws each instance as a class or target colored point, whose location is determined by the feature data set. If y is not None, then it draws a scatter plot where each class is in a different color.
"Called from the fit method, this method creates a scatter plot that\n draws each instance as a class or target colored point, whose location\n is determined by the feature data set.\n\n If y is not None, then it draws a scatter plot where each class is in a\n different color."
1,283
true
DistrictDataLabs/yellowbrick
draw
31,332
LDU_FT/InfoAgeTech/django-core/get_model_from_settings
LDU_FT
[ "<BEGIN>\n## `build_link`", "Builds an html link.", " :param href: link for the anchor element\n :param text: text for the anchor element\n :param attrs: other attribute kwargs", " >>> build_link('xyz.com', 'hello', 'big')\n u'<a href=\"xyz.com\" class=\"big\">hello</a>'\n >>> build_link('xy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_from_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_from_settings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Return the django model from a settings key. This is the same pattern user for django's "get_user_model()" method. To allow you to set the model instance to a different model subclass. :param settings_key: the key defined in settings to the value for
"Return the django model from a settings key.\n\n This is the same pattern user for django's \"get_user_model()\" method. To\n allow you to set the model instance to a different model subclass.\n\n :param settings_key: the key defined in settings to the value for"
206
false
InfoAgeTech/django-core
get_model_from_settings
31,333
LDU_FT/steven-lang/bottr/_process_comment
LDU_FT
[ "<BEGIN>\n## `stop`", "Stops this bot.", " Returns as soon as all running threads have finished processing.\n<END>", "<BEGIN>\n## `_listen_comments`", "Start listening to comments, using a separate thread.\n<END>", "<BEGIN>\n## `start`", "Starts this bot in a separate thread. Therefore, this call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_comment API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Process a reddit comment. Calls `func_comment(*func_comment_args)`. :param comment: Comment to process
"Process a reddit comment. Calls `func_comment(*func_comment_args)`.\n\n :param comment: Comment to process"
45
false
steven-lang/bottr
_process_comment
31,334
LDU_FT/BrianHicks/emit/route
LDU_FT
[ "<BEGIN>\n## `parse_querystring`", "parse a querystring into keys and values\n<END>", "<BEGIN>\n## `node`", "\\\n Decorate a function to make it a node.", " .. note::\n decorating as a node changes the function signature. Nodes should\n accept a single argument, which will ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the route API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
\ Using the routing dictionary, dispatch a message to all subscribers :param origin: name of the origin node :type origin: :py:class:`str` :param message: message to dispatch :type message: :py:class:`emit.message.Message` or subclass
"\\\n Using the routing dictionary, dispatch a message to all subscribers\n\n :param origin: name of the origin node\n :type origin: :py:class:`str`\n :param message: message to dispatch\n :type message: :py:class:`emit.message.Message` or subclass"
50
false
BrianHicks/emit
route
31,335
LDU_FT/riga/tfdeploy/add
LDU_FT
[ "<BEGIN>\n## `setup`", "Sets up global variables (currently only the tensorflow version) to adapt to peculiarities of\n different tensorflow versions. This function should only be called before :py:class:`Model`\n creation, not for evaluation. Therefore, the tensorflow module *tf* must be passed:", " ....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Adds a new root *tensor* for a *key* which, if *None*, defaults to a consecutive number. When *tensor* is not an instance of :py:class:`Tensor` but an instance of ``tensorflow.Tensor``, it is converted first. In that case, *tf_sess* should be a valid tensorflow session and *kwargs* are forwarded...
"Adds a new root *tensor* for a *key* which, if *None*, defaults to a consecutive number.\n When *tensor* is not an instance of :py:class:`Tensor` but an instance of\n ``tensorflow.Tensor``, it is converted first. In that case, *tf_sess* should be a valid\n tensorflow session and *kwargs* are forwa...
43
false
riga/tfdeploy
add
31,336
LDU_FT/bkg/django-spillway/extent
LDU_FT
[ "<BEGIN>\n## `make_dbsource`", "Returns a mapnik PostGIS or SQLite Datasource.\n<END>", "<BEGIN>\n## `layer`", "Returns a map Layer.", " Arguments:\n queryset -- QuerySet for Layer\n Keyword args:\n stylename -- str name of style to apply\n<END>", "<BEGIN>\n## `zoom_bbox`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns the GeoQuerySet extent as a 4-tuple. Keyword args: srid -- EPSG id for for transforming the output geometry.
"Returns the GeoQuerySet extent as a 4-tuple.\n\n Keyword args:\n srid -- EPSG id for for transforming the output geometry."
57
false
bkg/django-spillway
extent
31,337
LDU_FT/cwacek/python-jsonschema-objects/extendMarkdown
LDU_FT
[ "<BEGIN>\n## `validate_items`", "Validates the items in the backing array, including\n performing type validation.", " Sets the _typed property and clears the dirty flag as a side effect", " Returns:\n The typed array\n<END>", "<BEGIN>\n## `create`", "Create an array valida...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extendMarkdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extendMarkdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Add FencedBlockPreprocessor to the Markdown instance.
"Add FencedBlockPreprocessor to the Markdown instance."
41
false
cwacek/python-jsonschema-objects
extendMarkdown
31,338
LDU_FT/nephila/python-taiga/create
LDU_FT
[ "<BEGIN>\n## `list`", "Retrieves a list of objects.", " By default uses local cache and remote pagination", " If pagination is used and no page is requested (the default), all the\n remote objects are retrieved and appended in a single list.", " If pagination is disabled, all the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create a new :class:`Task`. :param project: :class:`Project` id :param subject: subject of the :class:`Issue` :param priority: priority of the :class:`Issue` :param status: status of the :class:`Issue` :param issue_type: Issue type of the :class:`Issue` :param severity: ...
"Create a new :class:`Task`.\n\n :param project: :class:`Project` id\n :param subject: subject of the :class:`Issue`\n :param priority: priority of the :class:`Issue`\n :param status: status of the :class:`Issue`\n :param issue_type: Issue type of the :class:`Issue`\n :param se...
162
false
nephila/python-taiga
create
31,339
LDU_FT/capless/warrant/new_password_challenge
LDU_FT
[ "<BEGIN>\n## `dict_to_cognito`", ":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>", "<BEGIN>\n## `snake_to_camel`", ":param snake_str: string\n :return: string converted from a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_password_challenge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_password_challenge API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Respond to the new password challenge using the SRP protocol :param password: The user's current passsword :param password: The user's new passsword
"Respond to the new password challenge using the SRP protocol\n :param password: The user's current passsword\n :param password: The user's new passsword"
61
false
capless/warrant
new_password_challenge
31,340
LDU_FT/theislab/anndata/transpose
LDU_FT
[ "<BEGIN>\n## `read_csv`", "Read ``.csv`` file.", " Same as :func:`~anndata.read_text` but with default delimiter ``','``.", " Parameters\n ----------\n filename\n Data file.\n delimiter\n Delimiter that separates data within text file. If ``None``, will split at\n arbitrary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Transpose whole object. Data matrix is transposed, observations and variables are interchanged.
"Transpose whole object.\n\n Data matrix is transposed, observations and variables are interchanged."
143
false
theislab/anndata
transpose
31,341
LDU_FT/viswa-swami/python-foscam/set_h264_frm_ref_mode
LDU_FT
[ "<BEGIN>\n## `execute_command`", "Execute a command and return a parsed response.\n<END>", "<BEGIN>\n## `set_ip_info`", "isDHCP: 0(False), 1(True)\n System will reboot automatically to take effect after call this CGI command.\n<END>", "<BEGIN>\n## `get_wifi_list`", "Get the aps around after refresh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_h264_frm_ref_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_h264_frm_ref_mode API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Set frame shipping reference mode of H264 encode stream. params: `mode`: see docstr of meth::get_h264_frm_ref_mode
"Set frame shipping reference mode of H264 encode stream.\n params:\n `mode`: see docstr of meth::get_h264_frm_ref_mode"
34
false
viswa-swami/python-foscam
set_h264_frm_ref_mode
31,342
LDU_FT/ddorn/GUI/delete_one_word
LDU_FT
[ "<BEGIN>\n## `select`", "Select an arbitrary item, by possition or by reference.\n<END>", "<BEGIN>\n## `on_select`", "Add an action to make when an object is selected.\n Only one action can be stored this way.\n<END>", "<BEGIN>\n## `on_unselect`", "Add an action to make when an object is unfocused....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_one_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_one_word API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Delete one word the right or the the left of the cursor.
"Delete one word the right or the the left of the cursor."
84
false
ddorn/GUI
delete_one_word
31,343
LDU_FT/JarryShaw/PyPCAPKit/_read_http_headers
LDU_FT
[ "<BEGIN>\n## `_missing_`", "Lookup function used when value is not found.\n<END>", "<BEGIN>\n## `count`", "S.count(value) -> integer -- return number of occurrences of value\n<END>", "<BEGIN>\n## `index`", "S.index(value, [start, [stop]]) -> integer -- return first index of value.\n Raises Value...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_http_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_http_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Read HTTP/2 HEADERS frames. Structure of HTTP/2 HEADERS frame [RFC 7540]: +-----------------------------------------------+ | Length (24) | +---------------+---------------+---------------+ | Type (8) | Flags (8) | ...
"Read HTTP/2 HEADERS frames.\n\n Structure of HTTP/2 HEADERS frame [RFC 7540]:\n +-----------------------------------------------+\n | Length (24) |\n +---------------+---------------+---------------+\n | Type (8) | Flags (8) ...
733
false
JarryShaw/PyPCAPKit
_read_http_headers
31,344
LDU_FT/llimllib/limbo/post_message
LDU_FT
[ "<BEGIN>\n## `loop`", "Run the main loop", " server is a limbo Server object\n test_loop, if present, is a number of times to run the loop\n<END>", "<BEGIN>\n## `weather`", "Get the weather for a place given by searchterm", " Returns a title and a list of forecasts.", " The title describes t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Send a message using the slack Event API. Event messages should be used for more complex messages. See https://api.slack.com/methods/chat.postMessage for details on arguments can be included with your message. When using the post_message API, to have your message look like it's sent fr...
"Send a message using the slack Event API.\n\n Event messages should be used for more complex messages. See\n https://api.slack.com/methods/chat.postMessage for details on arguments can be included\n with your message.\n\n When using the post_message API, to have your message look like it's ...
35
false
llimllib/limbo
post_message
31,345
LDU_FT/101Loop/drf-addons/is_owner
LDU_FT
[ "<BEGIN>\n## `get_fieldsets`", "Add ownership info fields in fieldset with proper separation.", " Author: Himanshu Shankar (https://himanshus.com)\n<END>", "<BEGIN>\n## `get_readonly_fields`", "Makes `created_by`, `create_date` & `update_date` readonly when\n editing.", " Author: Hima...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_owner API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_owner API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Checks if user is the owner of object Parameters ---------- user: get_user_model() instance Returns ------- bool Author ------ Himanshu Shankar (https://himanshus.com)
"Checks if user is the owner of object\n\n Parameters\n ----------\n user: get_user_model() instance\n\n Returns\n -------\n bool\n\n Author\n ------\n Himanshu Shankar (https://himanshus.com)"
35
false
101Loop/drf-addons
is_owner
31,346
LDU_FT/pywbem/pywbem/_return_assoc_tuple
LDU_FT
[ "<BEGIN>\n## `_hash_item`", "Hash an item (CIM value, CIM object), by delegating to its hash function.", " The item may be `None`.\n<END>", "<BEGIN>\n## `_stacklevel_above_module`", "Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _return_assoc_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _return_assoc_tuple API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Create the property tuple for _imethod return of references, referencenames, associators, and associatornames methods. This is different than the get/enum imethod return tuples. It creates an OBJECTPATH for each object in the return list. _imethod call returns None when there are zero ...
"Create the property tuple for _imethod return of references,\n referencenames, associators, and associatornames methods.\n\n This is different than the get/enum imethod return tuples. It creates an\n OBJECTPATH for each object in the return list.\n\n _imethod call returns None when there ar...
3,983
true
pywbem/pywbem
_return_assoc_tuple
31,347
LDU_FT/jedie/DragonPy/fix_lib64
LDU_FT
[ "<BEGIN>\n## `create_environment`", "Creates a new environment in ``home_dir``.", " If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.", " If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>", "<BEGIN>\n## `path...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_lib64 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_lib64 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Some platforms (particularly Gentoo on x64) put things in lib64/pythonX.Y instead of lib/pythonX.Y. If this is such a platform we'll just create a symlink so lib64 points to lib
"Some platforms (particularly Gentoo on x64) put things in lib64/pythonX.Y\n instead of lib/pythonX.Y. If this is such a platform we'll just create a\n symlink so lib64 points to lib"
223
false
jedie/DragonPy
fix_lib64
31,348
LDU_FT/millar/provstore-api/views
LDU_FT
[ "<BEGIN>\n## `create`", "Create a document on ProvStore.", " :param prov_document: The document to be stored\n :param prov_format: The format of the document provided\n :param bool refresh: Whether or not to load back the document after saving\n :param dict props: Properties for this...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the views API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the views API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Number of views this document has received on ProvStore
"Number of views this document has received on ProvStore"
34
false
millar/provstore-api
views
31,349
LDU_FT/deep-compute/basescript/_add_base_info
LDU_FT
[ "<BEGIN>\n## `define_log_renderer`", "the final log processor that structlog requires to render.\n<END>", "<BEGIN>\n## `define_log_processors`", "log processors that structlog executes before final rendering\n<END>", "<BEGIN>\n## `_configure_logger`", "configures a logger when required write to stderr or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_base_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_base_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Instead of using a processor, adding basic information like caller, filename etc here.
"Instead of using a processor, adding basic information like caller, filename etc\n here."
25
false
deep-compute/basescript
_add_base_info
31,350
LDU_FT/jason-weirather/pythologist/scored_to_phenotype
LDU_FT
[ "<BEGIN>\n## `get_valid_cell_indecies`", "Return a dataframe of images present with 'valid' being a list of cell indecies that can be included\n<END>", "<BEGIN>\n## `prune_neighbors`", "If the CellDataFrame has been subsetted, some of the cell-cell contacts may no longer be part of the the dataset. This prun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scored_to_phenotype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scored_to_phenotype API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Convert binary pehnotypes to mutually exclusive phenotypes. If none of the phenotypes are set, then phenotype_label becomes nan If any of the phenotypes are multiply set then it throws a fatal error. Args: phenotypes (list): a list of scored_names to convert to phenotypes ...
"Convert binary pehnotypes to mutually exclusive phenotypes. \n If none of the phenotypes are set, then phenotype_label becomes nan\n If any of the phenotypes are multiply set then it throws a fatal error.\n\n Args:\n phenotypes (list): a list of scored_names to convert to phenotypes\n\n...
98
false
jason-weirather/pythologist
scored_to_phenotype
31,351
LDU_FT/bartTC/django-wakawaka/edit
LDU_FT
[ "<BEGIN>\n## `index`", "Redirects to the default wiki index name.\n<END>", "<BEGIN>\n## `page`", "Displays a wiki page. Redirects to the edit view if the page doesn't exist.\n<END>", "<BEGIN>\n## `edit`", "Displays the form for editing and deleting a page.\n<END>", "<BEGIN>\n## `revisions`", "Displays...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Displays the form for editing and deleting a page.
"Displays the form for editing and deleting a page."
15
false
bartTC/django-wakawaka
edit
31,352
LDU_FT/insomnia-lab/libreant/denormalize_volume
LDU_FT
[ "<BEGIN>\n## `get_def_conf`", "return default configurations as simple dict\n<END>", "<BEGIN>\n## `_load_paths`", "Goes recursevly through the given list of paths\n in order to find and pass all preset files to ```_load_preset()```\n<END>", "<BEGIN>\n## `_load_preset`", "load, validate and store a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the denormalize_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the denormalize_volume API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
convert volume metadata from archivant to es format
"convert volume metadata from archivant to es format"
150
false
insomnia-lab/libreant
denormalize_volume
31,353
LDU_FT/ianmiell/shutit/determine_interactive
LDU_FT
[ "<BEGIN>\n## `parse_shutitfile_args`", "Parse shutitfile args (eg in the line 'RUN some args', the passed-in args_str would be 'some args').\n\tIf the string is bounded by square brackets, then it's treated in the form: ['arg1','arg2'], and the returned list looks the same.\n\tIf the string composed entirely of n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_interactive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_interactive API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Determine whether we're in an interactive shell. Sets interactivity off if appropriate. cf http://stackoverflow.com/questions/24861351/how-to-detect-if-python-script-is-being-run-as-a-background-process
"Determine whether we're in an interactive shell.\n\t\tSets interactivity off if appropriate.\n\t\tcf http://stackoverflow.com/questions/24861351/how-to-detect-if-python-script-is-being-run-as-a-background-process"
498
false
ianmiell/shutit
determine_interactive
31,354
LDU_FT/yakupadakli/python-unsplash/all
LDU_FT
[ "<BEGIN>\n## `all`", "Get a single page from the list of all photos.", " :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :param order_by [string]: How to sort the photos. Optional.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get a single page from the list of all photos. :param page [integer]: Page number to retrieve. (Optional; default: 1) :param per_page [integer]: Number of items per page. (Optional; default: 10) :param order_by [string]: How to sort the photos. Optional. (Valid values: latest, oldest, p...
"Get a single page from the list of all photos.\n\n :param page [integer]: Page number to retrieve. (Optional; default: 1)\n :param per_page [integer]: Number of items per page. (Optional; default: 10)\n :param order_by [string]: How to sort the photos. Optional.\n (Valid values: latest, old...
107
false
yakupadakli/python-unsplash
all
31,355
LDU_FT/robhowley/nhlscrapi/filter_players
LDU_FT
[ "<BEGIN>\n## `totals`", "Computes and returns dictionary containing home/away by player, shots and face-off totals", " :returns: dict of the form ``{ 'home/away': { 'all_keys': w_numeric_data } }``\n<END>", "<BEGIN>\n## `filter_players`", "Return the subset home and away players that satisfy the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_players API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_players API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the subset home and away players that satisfy the provided filter function. :param pl_filter: function that takes a by player dictionary and returns bool :returns: dict of the form ``{ 'home/away': { by_player_dict } }``. See :py:func:`home_players` and :py:func:`away_players`
"Return the subset home and away players that satisfy the provided filter function.\n \n :param pl_filter: function that takes a by player dictionary and returns bool\n :returns: dict of the form ``{ 'home/away': { by_player_dict } }``. See :py:func:`home_players` and :py:func:`away_players`"
126
false
robhowley/nhlscrapi
filter_players
31,356
LDU_FT/hardbyte/python-can/shutdown
LDU_FT
[ "<BEGIN>\n## `open`", "Opens a CAN connection using `CanalOpen()`.", " :param str configuration: the configuration: \"device_id; baudrate\"\n :param int flags: the flags to be set", " :raises can.CanError: if any error occurred\n :returns: Valid handle for CANAL API functions on su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shutdown API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Stops all active periodic tasks and closes the socket.
"Stops all active periodic tasks and closes the socket."
417
false
hardbyte/python-can
shutdown
31,357
LDU_FT/codeforamerica/three/request
LDU_FT
[ "<BEGIN>\n## `city`", "Store the city that will be queried against.", " >>> three.city('sf')\n<END>", "<BEGIN>\n## `dev`", "Use an endpoint and any additional keyword arguments rather than one\n of the pre-defined cities. Similar to the `city` function, but useful for\n development.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Retrieve a specific request using its service code ID. >>> Three('api.city.gov').request('12345') {'request': {'service_code': {'12345': 'data'}}}
"Retrieve a specific request using its service code ID.\n\n >>> Three('api.city.gov').request('12345')\n {'request': {'service_code': {'12345': 'data'}}}"
35
false
codeforamerica/three
request
31,358
LDU_FT/renzon/gaepagseguro/validate_address_cmd
LDU_FT
[ "<BEGIN>\n## `handle_previous`", "Method to generate item from a ItemForm. The form must be exposed on form attribute\n @param command: a command tha expose data through form attributte\n<END>", "<BEGIN>\n## `generate_payment`", "Function used to generate a payment on pagseguro\n See facade_tests to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_address_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_address_cmd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Build an address form to be used with payment function
"Build an address form to be used with payment function"
12
false
renzon/gaepagseguro
validate_address_cmd
31,359
LDU_FT/CodyKochmann/graphdb/_where
LDU_FT
[ "<BEGIN>\n## `graph_hash`", "this hashes all types to a hash without colissions. python's hashing algorithms are not cross type compatable but hashing tuples with the type as the first element seems to do the trick\n<END>", "<BEGIN>\n## `store_item`", "use this function to store a python object in the databas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _where API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _where API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
use this to filter VLists, simply provide a filter function to filter the current found objects
"use this to filter VLists, simply provide a filter function to filter the current found objects"
44
false
CodyKochmann/graphdb
_where
31,360
LDU_FT/swimlane/swimlane-python/validate_value
LDU_FT
[ "<BEGIN>\n## `add_record_references`", "Bulk operation to directly add record references without making any additional requests", " Warnings:\n Does not perform any app, record, or target app/record validation", " Args:\n app_id (str): Full App ID string\n record...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Validate provided record is a part of the appropriate target app for the field
"Validate provided record is a part of the appropriate target app for the field"
273
false
swimlane/swimlane-python
validate_value
31,361
LDU_FT/Opentrons/opentrons/apply_reverse
LDU_FT
[ "<BEGIN>\n## `get_attached_instruments`", "Find the instruments attached to our mounts.", " :param expected: A dict that may contain a mapping from mount to\n strings that should prefix instrument model names.\n When instruments are scanned, they are matche...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_reverse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_reverse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Like apply_transform but inverts the transform first
"Like apply_transform but inverts the transform first"
1,359
true
Opentrons/opentrons
apply_reverse
31,362
LDU_FT/kamikaze/webdav/parse_get_property_response
LDU_FT
[ "<BEGIN>\n## `listdir`", "Returns list of nested files and directories for local directory by path", " :param directory: absolute or relative path to local directory\n :return: list nested of file or directory names\n<END>", "<BEGIN>\n## `get_options`", "Extract options for specified option type from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_get_property_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_get_property_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Parses of response content XML from WebDAV server for getting metadata property value for some resource. :param content: the XML content of response as string. :param name: the name of property for finding a value in response :return: the value of property if it has been found or None otherwise...
"Parses of response content XML from WebDAV server for getting metadata property value for some resource.\n\n :param content: the XML content of response as string.\n :param name: the name of property for finding a value in response\n :return: the value of property if it has been found or None othe...
120
false
kamikaze/webdav
parse_get_property_response
31,363
LDU_FT/rackerlabs/simpl/normalized_path
LDU_FT
[ "<BEGIN>\n## `scrub`", "Verify and clean data. Raise error if input fails.\n<END>", "<BEGIN>\n## `build_text_search`", "Build mongodb query that performs text search for string(s).", " This is the backend implementation of the front-end search box on a list.\n It performs text search on a text index a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalized_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Normalize and expand a shorthand or relative path.
"Normalize and expand a shorthand or relative path."
313
false
rackerlabs/simpl
normalized_path
31,364
LDU_FT/opencobra/memote/stdout_notifications
LDU_FT
[ "<BEGIN>\n## `validate`", "Use a defined schema to validate the medium table format.\n<END>", "<BEGIN>\n## `apply`", "Set the defined medium on the given model.\n<END>", "<BEGIN>\n## `find_transported_elements`", "Return a dictionary showing the amount of transported elements of a rxn.", " Collects t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdout_notifications API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdout_notifications API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Print each entry of errors and warnings to stdout. Parameters ---------- notifications: dict A simple dictionary structure containing a list of errors and warnings.
"Print each entry of errors and warnings to stdout.\n\n Parameters\n ----------\n notifications: dict\n A simple dictionary structure containing a list of errors and warnings."
508
false
opencobra/memote
stdout_notifications
31,365
LDU_FT/panzarino/mlbgame/get_standings
LDU_FT
[ "<BEGIN>\n## `setobjattr`", "Sets an object attribute with the correct data type.\n<END>", "<BEGIN>\n## `get_scoreboard`", "Return the game file for a certain day matching certain criteria.\n<END>", "<BEGIN>\n## `get_box_score`", "Return the box score file of a game with matching id.\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_standings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_standings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the standings file for current standings (given current date).
"Return the standings file for current standings (given current date)."
66
false
panzarino/mlbgame
get_standings
31,366
LDU_FT/tgbugs/pyontutils/pull_int_tail
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull_int_tail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull_int_tail API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Useful for IDs that have giberish in the front of the real ID
"Useful for IDs that have giberish in the front of the real ID"
301
false
tgbugs/pyontutils
pull_int_tail
31,367
LDU_FT/alfredodeza/notario/data_item
LDU_FT
[ "<BEGIN>\n## `create_store`", "A helper for setting the _proxy and slapping the store\n object for us.", " :return: A thread-local storage as a dictionary\n<END>", "<BEGIN>\n## `string`", "Validates a given input is of type string.", " Example usage::", " data = {'a' : 21}\n schem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
When trying to return a meaningful error about an unexpected data item we cannot just `repr(data)` as that could show a gigantic data struture. This utility should try to get the key of the first item or the single item in the data structure.
"When trying to return a meaningful error about an unexpected data item\n we cannot just `repr(data)` as that could show a gigantic data struture.\n\n This utility should try to get the key of the first item or the single item\n in the data structure."
86
false
alfredodeza/notario
data_item
31,368
LDU_FT/Nic30/hwtGraph/getPortSideView
LDU_FT
[ "<BEGIN>\n## `extractSplits`", "convert group of indexed assignments witch are splitting signal to Split node", " a = sig[0]\n b = sig[1]\n to\n a, b = sig", " :param toL: dictionary {hdl object: layout object}\n<END>", "<BEGIN>\n## `getPortSideView`", "Returns a sublist view for all ports ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPortSideView API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getPortSideView API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Returns a sublist view for all ports of given side. :attention: Use this only after port sides are fixed! This is currently the case after running the {@link org.eclipse.elk.alg.layered.intermediate.PortListSorter}. Non-structural changes to this list are reflected in the original list. A stru...
"Returns a sublist view for all ports of given side.\n\n :attention: Use this only after port sides are fixed!\n\n This is currently the case after running the {@link org.eclipse.elk.alg.layered.intermediate.PortListSorter}.\n Non-structural changes to this list are reflected in the original list. ...
65
false
Nic30/hwtGraph
getPortSideView
31,369
LDU_FT/tchellomello/python-arlo/publish_and_get_event
LDU_FT
[ "<BEGIN>\n## `query`", "Return a JSON object or raw session.", " :param url: Arlo API URL\n :param method: Specify the method GET, POST or PUT. Default is GET.\n :param extra_params: Dictionary to be appended on request.body\n :param extra_headers: Dictionary to be apppended on requ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish_and_get_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publish_and_get_event API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Publish and get the event from base station.
"Publish and get the event from base station."
69
false
tchellomello/python-arlo
publish_and_get_event
31,370
LDU_FT/wonambi-python/wonambi/remove_bookmark
LDU_FT
[ "<BEGIN>\n## `write_mnefiff`", "Export data to MNE using FIFF format.", " Parameters\n ----------\n data : instance of ChanTime\n data with only one trial\n filename : path to file\n file to export to (include '.mat')", " Notes\n -----\n It cannot store data larger than 2 GB...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_bookmark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_bookmark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
User removes bookmark. Parameters ---------- time : tuple of float start and end of the new bookmark, in s
"User removes bookmark.\n\n Parameters\n ----------\n time : tuple of float\n start and end of the new bookmark, in s"
1,345
true
wonambi-python/wonambi
remove_bookmark
31,371
LDU_FT/frascoweb/frasco/load_file
LDU_FT
[ "<BEGIN>\n## `load_actions`", "Each item can be an action name as a string or a dict. When using a dict,\n one key/item pair must be the action name and its options and the rest action\n decorator names and their options.\n Example:\n load_actions([\"login_required\", {\"flash\": {\"message\": \"h...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Loads a file and creates a View from it. Files are split between a YAML front-matter and the content (unless it is a .yml file).
"Loads a file and creates a View from it. Files are split\n between a YAML front-matter and the content (unless it is a .yml file)."
80
false
frascoweb/frasco
load_file
31,372