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/banesullivan/gendocs/_DocPackageFromTop
LDU_FT
[ "<BEGIN>\n## `GetModuleText`", "Returns the needed text to automatically document a module in RSF/sphinx\n<END>", "<BEGIN>\n## `GetClassText`", "Returns the needed text to automatically document a class in RSF/sphinx\n<END>", "<BEGIN>\n## `GetFunctionText`", "Returns the needed text to automatically docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _DocPackageFromTop 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 _DocPackageFromTop 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...
Generates all of the documentation for given packages and appends new tocrees to the index. All documentation pages will be under the set relative path. Args: packages (list(module)): A package or list of packages that contain submodules to document showprivate (bool): A...
"Generates all of the documentation for given packages and\n appends new tocrees to the index. All documentation pages will be under the\n set relative path.\n\n Args:\n packages (list(module)): A package or list of packages that contain submodules to document\n showprivate (b...
27
false
banesullivan/gendocs
_DocPackageFromTop
6,373
LDU_FT/contains-io/typet/_get_args
LDU_FT
[ "<BEGIN>\n## `_get_bases`", "Get the base and meta classes to use in creating a subclass.", " Args:\n type_: The type to subclass.", " Returns:\n A tuple containing two values: a base class, and a metaclass.\n<END>", "<BEGIN>\n## `_instantiate`", "Instantiate the object...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_args 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 _get_args 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...
Return the parameters necessary to check type boundaries. Args: args: A tuple with one or two parameters: A type to cast the value passed, and a predicate function to use for bounds checking. Returns: A tuple with three parameters: a type, a slic...
"Return the parameters necessary to check type boundaries.\n\n Args:\n args: A tuple with one or two parameters: A type to cast the\n value passed, and a predicate function to use for bounds\n checking.\n\n Returns:\n A tuple with three parameters: a typ...
78
false
contains-io/typet
_get_args
6,374
LDU_FT/nagius/snmp_passpersist/add_gau
LDU_FT
[ "<BEGIN>\n## `encode`", "Encode the given string as an OID.", "\t\t>>> import snmp_passpersist as snmp\n\t\t>>> snmp.PassPersist.encode(\"hello\")\n\t\t'5.104.101.108.108.111'\n\t\t>>>\n<END>", "<BEGIN>\n## `cut_oid`", "Remove the base OID from the given string.", "\t\t>>> import snmp_passpersist as snmp\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_gau 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 add_gau 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...
Short helper to add a gauge value to the MIB subtree.
"Short helper to add a gauge value to the MIB subtree."
38
false
nagius/snmp_passpersist
add_gau
6,375
LDU_FT/edwards-lab/libGWAS/load_covarfile
LDU_FT
[ "<BEGIN>\n## `load_genotypes`", "This really just intializes the file by opening it up.\n<END>", "<BEGIN>\n## `process_genotypes`", "Parse pedigree line and remove excluded individuals from geno", " Translates alleles into numerical genotypes (0, 1, 2) counting\n number of minor alleles.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_covarfile 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 load_covarfile 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...
Load covariate data from file. Unlike phenofiles, if we already have data, we keep it (that would be the sex covariate)
"Load covariate data from file.\n\n Unlike phenofiles, if we already have data, we keep it (that would be the sex covariate)"
142
false
edwards-lab/libGWAS
load_covarfile
6,376
LDU_FT/theislab/scvelo/prod_sum_var
LDU_FT
[ "<BEGIN>\n## `strings_to_categoricals`", "Transform string annotations to categoricals.\n<END>", "<BEGIN>\n## `velocity_graph`", "\\\n Plot of the velocity graph.", " Arguments\n ---------\n adata: :class:`~anndata.AnnData`\n Annotated data matrix.\n vkey: `str` or `None` (default: `No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prod_sum_var 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 prod_sum_var 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...
dot product and sum over axis 1 (var) equivalent to np.sum(A * B, 1)
"dot product and sum over axis 1 (var) equivalent to np.sum(A * B, 1)"
200
false
theislab/scvelo
prod_sum_var
6,377
LDU_FT/WhyNotHugo/django-afip/first_currency
LDU_FT
[ "<BEGIN>\n## `catch_errors`", "Catches specific errors in admin actions and shows a friendly error.\n<END>", "<BEGIN>\n## `numbers`", "Returns the barcode's number without the verification digit.", " :return: list(int)\n<END>", "<BEGIN>\n## `verification_digit`", "Returns the verification digit f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_currency 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 first_currency 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...
Returns the id for the first currency The `default` parameter of a foreign key *MUST* be a primary key (and not an instance), else migrations break. This helper method exists solely for that purpose.
"Returns the id for the first currency\n\n The `default` parameter of a foreign key *MUST* be a primary key (and not\n an instance), else migrations break. This helper method exists solely for\n that purpose."
96
false
WhyNotHugo/django-afip
first_currency
6,378
LDU_FT/Galarzaa90/tibia.py/from_content
LDU_FT
[ "<BEGIN>\n## `ranks`", ":class:`list` of :class:`str`: Ranks in their hierarchical order.\n<END>", "<BEGIN>\n## `from_content`", "Creates an instance of the class from the HTML content of the guild's page.", " Parameters\n -----------\n content: :class:`str`\n The HTML conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_content 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 from_content 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...
Creates an instance of the class from the HTML content of the guild's page. Parameters ----------- content: :class:`str` The HTML content of the page. Returns ---------- :class:`Guild` The guild contained in the page or None if it doesn't exist. ...
"Creates an instance of the class from the HTML content of the guild's page.\n\n Parameters\n -----------\n content: :class:`str`\n The HTML content of the page.\n\n Returns\n ----------\n :class:`Guild`\n The guild contained in the page or None if it does...
254
false
Galarzaa90/tibia.py
from_content
6,379
LDU_FT/deep-compute/funcserver/on_message
LDU_FT
[ "<BEGIN>\n## `tag`", "Constructs a decorator that tags a function with specified\n strings (@tags). The tags on the decorated function are\n available via fn.tags\n<END>", "<BEGIN>\n## `raw`", "Constructs a decorator that marks the fn\n as raw response format\n<END>", "<BEGIN>\n## `open`", "Calle...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_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 extrac...
Called when client sends a message. Supports a python debugging console. This forms the "eval" part of a standard read-eval-print loop. Currently the only implementation of the python console is in the WebUI but the implementation of a terminal based console is planned.
"Called when client sends a message.\n\n Supports a python debugging console. This forms\n the \"eval\" part of a standard read-eval-print loop.\n\n Currently the only implementation of the python\n console is in the WebUI but the implementation\n of a terminal based console is planne...
21
false
deep-compute/funcserver
on_message
6,380
LDU_FT/westurner/pyrpo/full_report
LDU_FT
[ "<BEGIN>\n## `itersplit`", "Split a string by ``sep`` and yield chunks", " Args:\n s (str-type): string to split\n sep (str-type): delimiter to split by", " Yields:\n generator of strings: chunks of string s\n<END>", "<BEGIN>\n## `itersplit_to_fields`", "Itersplit a string into ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_report 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 full_report 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...
Show origin, last_commit, status, and parsed complete log history for this repository Yields: str: report lines
"Show origin, last_commit, status, and parsed complete log history\n for this repository\n\n Yields:\n str: report lines"
149
false
westurner/pyrpo
full_report
6,381
LDU_FT/jstitch/MambuPy/iriToUri
LDU_FT
[ "<BEGIN>\n## `convertDict2Attrs`", "The trick for iterable Mambu Objects comes here:", " You iterate over each element of the responded List from Mambu,\n and create a Mambu Activity object for each one, initializing\n them one at a time, and changing the attrs attribute (which just\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iriToUri 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 iriToUri 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...
Change an IRI (internationalized R) to an URI. Used at MambuStruct.connect() method for any requests done to Mambu. Perfect example of unicode getting in the way. Illustrative (I hope) example: I have Mambu usernames with special chars in them. When retrieving them and then trying to build a Mamb...
"Change an IRI (internationalized R) to an URI.\n\n Used at MambuStruct.connect() method for any requests done to Mambu.\n\n Perfect example of unicode getting in the way.\n\n Illustrative (I hope) example: I have Mambu usernames with special\n chars in them. When retrieving them and then trying to build a\...
357
false
jstitch/MambuPy
iriToUri
6,382
LDU_FT/scailer/django-social-publisher/get_api_publisher
LDU_FT
[ "<BEGIN>\n## `get_api_publisher`", "message: <str>\n image: <file> as object_attachment\n owner_id: <str>\n<END>", "<BEGIN>\n## `get_api_publisher`", "owner_id - VK user or group\n from_group - 1 by group, 0 by user\n message - text\n attachments - comma ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_api_publisher 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_api_publisher 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...
files: {'file0':<file>} message: 'mess'
"files: {'file0':<file>}\n message: 'mess'"
12
false
scailer/django-social-publisher
get_api_publisher
6,383
LDU_FT/yunojuno/elasticsearch-django/execute
LDU_FT
[ "<BEGIN>\n## `execute_search`", "Create a new SearchQuery instance and execute a search against ES.", " Args:\n search: elasticsearch.search.Search object, that internally contains\n the connection and query; this is the query that is executed. All\n we are doing is logging the i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute 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 execute 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 SearchQuery instance and execute a search against ES.
"Create a new SearchQuery instance and execute a search against ES."
124
false
yunojuno/elasticsearch-django
execute
6,384
LDU_FT/vimalloc/flask-jwt-extended/set_access_cookies
LDU_FT
[ "<BEGIN>\n## `decode_token`", "Returns the decoded token (python dict) from an encoded JWT. This does all\n the checks to insure that the decoded token is valid before returning it.", " :param encoded_token: The encoded JWT to decode into a python dict.\n :param csrf_value: Expected CSRF double submit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_access_cookies 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 set_access_cookies 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...
Takes a flask response object, and an encoded access token, and configures the response to set in the access token in a cookie. If `JWT_CSRF_IN_COOKIES` is `True` (see :ref:`Configuration Options`), this will also set the CSRF double submit values in a separate cookie. :param response: The Flask respon...
"Takes a flask response object, and an encoded access token, and configures\n the response to set in the access token in a cookie. If `JWT_CSRF_IN_COOKIES`\n is `True` (see :ref:`Configuration Options`), this will also set the CSRF\n double submit values in a separate cookie.\n\n :param response: The Flask ...
71
false
vimalloc/flask-jwt-extended
set_access_cookies
6,385
LDU_FT/bjodah/chempy/rsys2graph
LDU_FT
[ "<BEGIN>\n## `main`", "This example demonstrates how to generate pretty equations from the analytic\n expressions found in ``chempy.kinetics.integrated``.\n<END>", "<BEGIN>\n## `_cell_label_html`", "Reaction formatting callback. (reaction index -> string)\n<END>", "<BEGIN>\n## `roots`", "Parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rsys2graph 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 rsys2graph 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...
Convenience function to call `rsys2dot` and write output to file and render the graph Parameters ---------- rsys : ReactionSystem fname : str filename output_dir : str (optional) path to directory (default: temporary directory) prog : str (optional) default: 'dot' ...
"Convenience function to call `rsys2dot` and write output to file\n and render the graph\n\n Parameters\n ----------\n rsys : ReactionSystem\n fname : str\n filename\n output_dir : str (optional)\n path to directory (default: temporary directory)\n prog : str (optional)\n defau...
42
false
bjodah/chempy
rsys2graph
6,386
LDU_FT/jeffrimko/Auxly/verbose
LDU_FT
[ "<BEGIN>\n## `silent`", "Calls the given shell command. Output will not be displayed. Returns the\n status code.", " **Examples**:\n ::\n auxly.shell.silent(\"ls\")\n<END>", "<BEGIN>\n## `has`", "Returns true if the give shell command is available.", " **Examples**:\n ::\n aux...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verbose 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 verbose 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 normal print function if enable, otherwise a dummy print function is returned which will suppress output.
"Returns normal print function if enable, otherwise a dummy print\n function is returned which will suppress output."
65
false
jeffrimko/Auxly
verbose
6,387
LDU_FT/fhamborg/news-please/extract
LDU_FT
[ "<BEGIN>\n## `rss_parse`", "Extracts all article links and initiates crawling them.", " :param obj response: The scrapy response\n<END>", "<BEGIN>\n## `article_parse`", "Checks any given response on being an article and if positiv,\n passes the response to the pipeline.", " :param obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract 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 extract 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...
Compares the extracted top images. :param item: The corresponding NewscrawlerItem :param list_article_candidate: A list, the list of ArticleCandidate-Objects which have been extracted :return: A string (url), the most likely top image
"Compares the extracted top images.\n\n :param item: The corresponding NewscrawlerItem\n :param list_article_candidate: A list, the list of ArticleCandidate-Objects which have been extracted\n :return: A string (url), the most likely top image"
277
false
fhamborg/news-please
extract
6,388
LDU_FT/mardiros/pyshop/search
LDU_FT
[ "<BEGIN>\n## `update_model`", "trivial implementation for simple data in the form,\n using the model prefix.\n<END>", "<BEGIN>\n## `locale_negotiator`", "Locale negotiator base on the `Accept-Language` header\n<END>", "<BEGIN>\n## `main`", "Get a PyShop WSGI application configured with settings.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search 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 search 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 ...
Search the package database using the indicated search spec. The spec may include any of the keywords described in the above list (except 'stable_version' and 'classifiers'), for example: {'description': 'spam'} will search description fields. Within the spec, a field's value can be a string or a list ...
"Search the package database using the indicated search spec.\n\n The spec may include any of the keywords described in the above list\n (except 'stable_version' and 'classifiers'),\n for example: {'description': 'spam'} will search description fields.\n Within the spec, a field's value can be a string or a...
135
false
mardiros/pyshop
search
6,389
LDU_FT/Shapeways/coyote_framework/get_static_directory
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_static_directory 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_static_directory API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Retrieves the full path of the static directory @return: Full path of the static directory
"Retrieves the full path of the static directory\n\n @return: Full path of the static directory"
370
false
Shapeways/coyote_framework
get_static_directory
6,390
LDU_FT/bitlabstudio/python-server-metrics/get_disk_usage
LDU_FT
[ "<BEGIN>\n## `get_memcached_usage`", "Returns memcached statistics.", " :param socket: Path to memcached's socket file.\n<END>", "<BEGIN>\n## `get_database_size`", "Returns the total size for the given database role and name.", " :param db_user: String representing the database role.\n :param db_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_disk_usage 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 get_disk_usage 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...
Returns the allocated disk space for the given path in bytes. :param path: String representing the path as it would be given to the `du` command. Best to give an absolute path here.
"Returns the allocated disk space for the given path in bytes.\n\n :param path: String representing the path as it would be given to the `du`\n command. Best to give an absolute path here."
17
false
bitlabstudio/python-server-metrics
get_disk_usage
6,391
LDU_FT/henzk/featuremonkey/_create_refinement_wrapper
LDU_FT
[ "<BEGIN>\n## `_serialize_function`", "Still needing this much try-except stuff. We should find a way to get rid of this.\n :param obj:\n :return:\n<END>", "<BEGIN>\n## `_serialize_module`", "Tries to serialize a module by its __dict__ attr.\n Remove the builtins attr as this one is not relevant and e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_refinement_wrapper 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 _create_refinement_wrapper API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
applies refinement ``transformation`` to ``baseattr`` attribute of ``base``. ``baseattr`` can be any type of callable (function, method, functor) this method handles the differences. docstrings are also rescued from the original if the refinement has no docstring set.
"applies refinement ``transformation`` to ``baseattr`` attribute of ``base``.\n ``baseattr`` can be any type of callable (function, method, functor)\n this method handles the differences.\n docstrings are also rescued from the original if the refinement\n has no docstring set."
32
false
henzk/featuremonkey
_create_refinement_wrapper
6,392
LDU_FT/storax/jinjaapidoc/write_file
LDU_FT
[ "<BEGIN>\n## `prepare_dir`", "Create apidoc dir, delete contents if delete is True.", " :param app: the sphinx app\n :type app: :class:`sphinx.application.Sphinx`\n :param directory: the apidoc directory. you can use relative paths here\n :type directory: str\n :param delete: if True, deletes the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extrac...
Write the output file for module/package <name>. :param app: the sphinx app :type app: :class:`sphinx.application.Sphinx` :param name: the file name without file extension :type name: :class:`str` :param text: the content of the file :type text: :class:`str` :param dest: the output director...
"Write the output file for module/package <name>.\n\n :param app: the sphinx app\n :type app: :class:`sphinx.application.Sphinx`\n :param name: the file name without file extension\n :type name: :class:`str`\n :param text: the content of the file\n :type text: :class:`str`\n :param dest: the output...
58
false
storax/jinjaapidoc
write_file
6,393
LDU_FT/astropy/astropy-healpix/nside_to_level
LDU_FT
[ "<BEGIN>\n## `healpix_to_lonlat`", "Convert HEALPix indices (optionally with offsets) to longitudes/latitudes", " Parameters\n ----------\n healpix_index : `~numpy.ndarray`\n 1-D array of HEALPix indices\n dx, dy : `~numpy.ndarray`, optional\n 1-D arrays of offs...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nside_to_level 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 nside_to_level 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...
Find the HEALPix level for a given nside. This is given by ``level = log2(nside)``. This function is the inverse of `level_to_nside`. Parameters ---------- nside : int The number of pixels on the side of one of the 12 'top-level' HEALPix tiles. Must be a power of two. Returns...
"Find the HEALPix level for a given nside.\n\n This is given by ``level = log2(nside)``.\n\n This function is the inverse of `level_to_nside`.\n\n Parameters\n ----------\n nside : int\n The number of pixels on the side of one of the 12 'top-level' HEALPix tiles.\n Must be a power of two.\n...
177
false
astropy/astropy-healpix
nside_to_level
6,394
LDU_FT/ciena/afkak/_retry_fetch
LDU_FT
[ "<BEGIN>\n## `_coerce_topic`", "Ensure that the topic name is text string of a valid length.", " :param topic: Kafka topic name. Valid characters are in the set ``[a-zA-Z0-9._-]``.\n :raises ValueError: when the topic name exceeds 249 bytes\n :raises TypeError: when the topic is not :class:`unicode` or...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retry_fetch 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 _retry_fetch 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...
Schedule a delayed :meth:`_do_fetch` call after a failure :param float after: The delay in seconds after which to do the retried fetch. If `None`, our internal :attr:`retry_delay` is used, and adjusted by :const:`REQUEST_RETRY_FACTOR`.
"Schedule a delayed :meth:`_do_fetch` call after a failure\n\n :param float after:\n The delay in seconds after which to do the retried fetch. If\n `None`, our internal :attr:`retry_delay` is used, and adjusted by\n :const:`REQUEST_RETRY_FACTOR`."
326
false
ciena/afkak
_retry_fetch
6,395
LDU_FT/nschloe/matplotlib2tikz/draw_pathcollection
LDU_FT
[ "<BEGIN>\n## `_get_ticks`", "Gets a {'x','y'}, a number of ticks and ticks labels, and returns the\n necessary axis options for the given configuration.\n<END>", "<BEGIN>\n## `_is_colorbar_heuristic`", "Find out if the object is in fact a color bar.\n<END>", "<BEGIN>\n## `_mpl_cmap2pgf_cmap`", "Convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_pathcollection 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 draw_pathcollection 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...
Returns PGFPlots code for a number of patch objects.
"Returns PGFPlots code for a number of patch objects."
81
false
nschloe/matplotlib2tikz
draw_pathcollection
6,396
LDU_FT/hadrianl/huobi/get_orders_info
LDU_FT
[ "<BEGIN>\n## `async_request`", "异步并发请求\n :param reqs: 请求列表\n :return:\n<END>", "<BEGIN>\n## `get_kline`", "获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orders_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_orders_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 e...
查询当前委托、历史委托 :param symbol: :param states: 可选值 {pre-submitted 准备提交, submitted 已提交, partial-filled 部分成交, partial-canceled 部分成交撤销, filled 完全成交, canceled 已撤销} :param types: 可选值 买卖类型 :param start_date: :param end_date: :param _from: :param direct: 可选值{prev 向前,next 向后} ...
"查询当前委托、历史委托\n :param symbol:\n :param states: 可选值 {pre-submitted 准备提交, submitted 已提交, partial-filled 部分成交, partial-canceled 部分成交撤销, filled 完全成交, canceled 已撤销}\n :param types: 可选值 买卖类型\n :param start_date:\n :param end_date:\n :param _from:\n :param direct: 可选值{prev 向前,n...
108
false
hadrianl/huobi
get_orders_info
6,397
LDU_FT/holgern/pyedflib/setTransducer
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setTransducer 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 setTransducer 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...
Sets the transducer of signal edfsignal :param edfsignal: int :param transducer: str Notes ----- This function is optional for every signal and can be called only after opening a file in writemode and before the first sample write action.
"Sets the transducer of signal edfsignal\n\n :param edfsignal: int\n :param transducer: str\n\n Notes\n -----\n This function is optional for every signal and can be called only after opening a file in writemode and before the first sample write action."
135
false
holgern/pyedflib
setTransducer
6,398
LDU_FT/aio-libs/aiomysql/begin_twophase
LDU_FT
[ "<BEGIN>\n## `terminate`", "Terminate pool.", " Close pool with instantly closing all acquired connections also.\n<END>", "<BEGIN>\n## `release`", "Release free connection back to the connection pool.", " This is **NOT** a coroutine.\n<END>", "<BEGIN>\n## `close`", "Closing a cursor just...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the begin_twophase 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 begin_twophase 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...
Begin a two-phase or XA transaction and return a transaction handle. The returned object is an instance of TwoPhaseTransaction, which in addition to the methods provided by Transaction, also provides a TwoPhaseTransaction.prepare() method. xid - the two phase transactio...
"Begin a two-phase or XA transaction and return a transaction\n handle.\n\n The returned object is an instance of\n TwoPhaseTransaction, which in addition to the\n methods provided by Transaction, also provides a\n TwoPhaseTransaction.prepare() method.\n\n xid - the two phase t...
114
false
aio-libs/aiomysql
begin_twophase
6,399
LDU_FT/imbolc/aiohttp-login/update_sql
LDU_FT
[ "<BEGIN>\n## `find_one_sql`", ">>> find_one_sql('tbl', {'foo': 10, 'bar': 'baz'})\n ('SELECT * FROM tbl WHERE bar=$1 AND foo=$2', ['baz', 10])\n >>> find_one_sql('tbl', {'id': 10}, fields=['foo', 'bar'])\n ('SELECT foo, bar FROM tbl WHERE id=$1', [10])\n<END>", "<BEGIN>\n## `insert_sql`", ">>> insert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_sql 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 update_sql 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...
>>> update_sql('tbl', {'foo': 'a', 'bar': 1}, {'bar': 2, 'baz': 'b'}) ('UPDATE tbl SET bar=$1, baz=$2 WHERE bar=$3 AND foo=$4', [2, 'b', 1, 'a'])
">>> update_sql('tbl', {'foo': 'a', 'bar': 1}, {'bar': 2, 'baz': 'b'})\n ('UPDATE tbl SET bar=$1, baz=$2 WHERE bar=$3 AND foo=$4', [2, 'b', 1, 'a'])"
15
false
imbolc/aiohttp-login
update_sql
6,400
LDU_FT/saltzm/yadi/check_negated_goals
LDU_FT
[ "<BEGIN>\n## `get_safe_variables`", "Create a list of safe variables: variables bounded to constants or\n that occur in a positive goal\n<END>", "<BEGIN>\n## `get_from_relations`", "Returns list of the names of all positive relations in the query\n<END>", "<BEGIN>\n## `get_implicit_constraints`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_negated_goals 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 check_negated_goals 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 a list of variables which occur in negated goals.
"Create a list of variables which occur in negated goals."
12
false
saltzm/yadi
check_negated_goals
6,401
LDU_FT/wheerd/multiset/discard
LDU_FT
[ "<BEGIN>\n## `isdisjoint`", "r\"\"\"Return True if the set has no elements in common with other.", " Sets are disjoint iff their intersection is the empty set.", " >>> ms = Multiset('aab')\n >>> ms.isdisjoint('bc')\n False\n >>> ms.isdisjoint(Multiset('ccd'))\n True",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discard 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 discard 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...
Removes the `element` from the multiset. If multiplicity is ``None``, all occurrences of the element are removed: >>> ms = Multiset('aab') >>> ms.discard('a') 2 >>> sorted(ms) ['b'] Otherwise, the multiplicity is subtracted from the one in the multiset and the ...
"Removes the `element` from the multiset.\n\n If multiplicity is ``None``, all occurrences of the element are removed:\n\n >>> ms = Multiset('aab')\n >>> ms.discard('a')\n 2\n >>> sorted(ms)\n ['b']\n\n Otherwise, the multiplicity is subtracted from the one in the multis...
117
false
wheerd/multiset
discard
6,402
LDU_FT/blazelibs/blazeutils/set_dotted
LDU_FT
[ "<BEGIN>\n## `workbook_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>", "<BEGIN>\n## `xlsx_to_strio`", "convert xlwt Workbook instance to a BytesIO instance\n<END>", "<BEGIN>\n## `xlsx_to_reader`", "convert xlwt Workbook instance to an xlrd instance for reading\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dotted 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 set_dotted 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...
qs.set_dotted('foo.bar', 'baz') is equivelent to: qs.foo.bar = baz
"qs.set_dotted('foo.bar', 'baz')\n\n is equivelent to:\n\n qs.foo.bar = baz"
135
false
blazelibs/blazeutils
set_dotted
6,403
LDU_FT/totalgood/twip/generate_lines
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_lines 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 generate_lines 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...
Generate (yield) lines in a gzipped file (*.txt.gz) one line at a time
"Generate (yield) lines in a gzipped file (*.txt.gz) one line at a time"
144
false
totalgood/twip
generate_lines
6,404
LDU_FT/openego/ding0/graph_path_length
LDU_FT
[ "<BEGIN>\n## `print_upper_triangular_matrix`", "Prints a CVRP data dict matrix", " Arguments\n ---------\n matrix : dict\n Description", " Notes\n -----\n It is assummed that the first row of matrix contains all needed headers.\n<END>", "<BEGIN>\n## `print_upper_triangular_matrix_as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_path_length 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 graph_path_length 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...
Calculates the absolute distance between `node_source` and `node_target` in meters using find_path() and branches' length attribute. Args ---- node_source: GridDing0 source node, member of _graph node_target: GridDing0 target node, member of _graph Retur...
"Calculates the absolute distance between `node_source` and `node_target` in meters using find_path() and branches' length attribute.\n\n Args\n ----\n node_source: GridDing0\n source node, member of _graph\n node_target: GridDing0\n target node, member of _graph\n\n ...
932
false
openego/ding0
graph_path_length
6,405
LDU_FT/davedoesdev/dxf/authenticate
LDU_FT
[ "<BEGIN>\n## `hash_bytes`", "Hash bytes using the same method the registry uses (currently SHA-256).", " :param buf: Bytes to hash\n :type buf: binary str", " :rtype: str\n :returns: Hex-encoded hash of file's content (prefixed by ``sha256:``)\n<END>", "<BEGIN>\n## `hash_file`", "Hash a file u...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate 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 authenticate 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...
Authenticate to the registry using a username and password, an authorization header or otherwise as the anonymous user. :param username: User name to authenticate as. :type username: str :param password: User's password. :type password: str :param actions: If you know ...
"Authenticate to the registry using a username and password,\n an authorization header or otherwise as the anonymous user.\n\n :param username: User name to authenticate as.\n :type username: str\n\n :param password: User's password.\n :type password: str\n\n :param actions: If...
84
false
davedoesdev/dxf
authenticate
6,406
LDU_FT/materialsproject/pymatgen-db/alphadump
LDU_FT
[ "<BEGIN>\n## `contains_vasp_input`", "Checks if a directory contains valid VASP input.", " Args:\n dir_name:\n Directory name to check.", " Returns:\n True if directory contains all four VASP input files (INCAR, POSCAR,\n KPOINTS and POTCAR).\n<END>", "<BEGIN>\n## `get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alphadump 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 alphadump 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...
Dump a dict to a str, with keys in alphabetical order.
"Dump a dict to a str,\n with keys in alphabetical order."
262
false
materialsproject/pymatgen-db
alphadump
6,407
LDU_FT/skylander86/uriutils/put_content
LDU_FT
[ "<BEGIN>\n## `join`", "Similar to :func:`os.path.join` but returns a storage object instead.", " :param str path: path to join on to this object's URI\n :returns: a storage object\n :rtype: BaseURI\n<END>", "<BEGIN>\n## `list_dir`", "Non-recursive file listing.", " :returns: A ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_content 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 put_content 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...
Makes a ``PUT`` request with the content in the body. :raise: An :exc:`requests.RequestException` if it is not 2xx.
"Makes a ``PUT`` request with the content in the body.\n\n :raise: An :exc:`requests.RequestException` if it is not 2xx."
37
false
skylander86/uriutils
put_content
6,408
LDU_FT/ouroboroscoding/format-oc-python/valid
LDU_FT
[ "<BEGIN>\n## `default`", "Default", "\t\tCalled when the regular Encoder can't figure out what to do with the type", "\t\tArgs:\n\t\t\tself (CEncoder): A pointer to the current instance\n\t\t\tobj (mixed): An unknown object that needs to be encoded", "\t\tReturns:\n\t\t\tstr: A valid JSON string representin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid 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 valid 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...
Valid Checks if a value is valid based on the instance's values Arguments: value {mixed} -- The value to validate Returns: bool
"Valid\n\n\t\tChecks if a value is valid based on the instance's values\n\n\t\tArguments:\n\t\t\tvalue {mixed} -- The value to validate\n\n\t\tReturns:\n\t\t\tbool"
155
false
ouroboroscoding/format-oc-python
valid
6,409
LDU_FT/batiste/django-page-cms/choose_language
LDU_FT
[ "<BEGIN>\n## `register_widget`", "Register the given widget as a candidate to use in placeholder.\n<END>", "<BEGIN>\n## `get_widget`", "Give back a widget class according to his name.\n<END>", "<BEGIN>\n## `save_model`", "Move the page in the tree if necessary and save every\n placeholder :class:`C...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose_language 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 choose_language 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...
Deal with the multiple corner case of choosing the language.
"Deal with the multiple corner case of choosing the language."
218
false
batiste/django-page-cms
choose_language
6,410
LDU_FT/clld/pycdstar/c_metadata
LDU_FT
[ "<BEGIN>\n## `c_metadata`", "Set or get metadata associated with an object::", " usage: cdstar metadata <URL> [<JSON>]", " <JSON> Path to metadata in JSON, or JSON literal.\n<END>", "<BEGIN>\n## `c_delete`", "Delete an object::", " usage: cdstar delete <URL>\n<END>", "<BEGIN>\n## `c_ls`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the c_metadata 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 c_metadata 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...
Set or get metadata associated with an object:: usage: cdstar metadata <URL> [<JSON>] <JSON> Path to metadata in JSON, or JSON literal.
"Set or get metadata associated with an object::\n\n usage: cdstar metadata <URL> [<JSON>]\n\n <JSON> Path to metadata in JSON, or JSON literal."
27
false
clld/pycdstar
c_metadata
6,411
LDU_FT/cldf/segments/tokenize
LDU_FT
[ "<BEGIN>\n## `tokenize`", "Tokenize a string (passed as argument or read from stdin)", " segments [--profile=PATH/TO/PROFILE] tokenize [STRING]\n<END>", "<BEGIN>\n## `from_file`", "Read an orthography profile from a metadata file or a default tab-separated profile file.\n<END>", "<BEGIN>\n## `from_text...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize 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 tokenize 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...
Tokenize a string (passed as argument or read from stdin) segments [--profile=PATH/TO/PROFILE] tokenize [STRING]
"Tokenize a string (passed as argument or read from stdin)\n\n segments [--profile=PATH/TO/PROFILE] tokenize [STRING]"
25
false
cldf/segments
tokenize
6,412
LDU_FT/linkedin/pyexchange/remove_resources
LDU_FT
[ "<BEGIN>\n## `add_attendees`", "Adds new attendees to the event.", " *attendees* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.\n<END>", "<BEGIN>\n## `remove_attendees`", "Removes attendees from the event.", " *attendees* can be a list of email addresses or :class:`Excha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_resources 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 remove_resources 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 ...
Removes resources from the event. *resources* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.
"Removes resources from the event.\n\n *resources* can be a list of email addresses or :class:`ExchangeEventAttendee` objects."
102
false
linkedin/pyexchange
remove_resources
6,413
LDU_FT/Clarify/clarify_python/create_bundle
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bundle 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 create_bundle 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...
Create a new bundle. 'metadata' may be None, or an object that can be converted to a JSON string. See API documentation for restrictions. The conversion will take place before the API call. All other parameters are also optional. For information about these see https://api.cl...
"Create a new bundle.\n\n 'metadata' may be None, or an object that can be converted to a JSON\n string. See API documentation for restrictions. The conversion\n will take place before the API call.\n\n All other parameters are also optional. For information about these\n see https:...
137
false
Clarify/clarify_python
create_bundle
6,414
LDU_FT/dossier/dossier.fc/truncate_most_common
LDU_FT
[ "<BEGIN>\n## `uni`", "as a crutch, we allow str-type keys, but they really should be\n unicode.\n<END>", "<BEGIN>\n## `loads`", "Create a feature collection from a CBOR byte string.\n<END>", "<BEGIN>\n## `dumps`", "Create a CBOR byte string from a feature collection.\n<END>", "<BEGIN>\n## `from_dict`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_most_common 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 truncate_most_common API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Sorts the counter and keeps only the most common items up to ``truncation_length`` in place. :type truncation_length: int
"Sorts the counter and keeps only the most common items up to\n ``truncation_length`` in place.\n\n :type truncation_length: int"
44
false
dossier/dossier.fc
truncate_most_common
6,415
LDU_FT/mortada/fredapi/get_series
LDU_FT
[ "<BEGIN>\n## `__fetch_data`", "helper function for fetching data given a request URL\n<END>", "<BEGIN>\n## `_parse`", "helper function for parsing FRED date string into datetime\n<END>", "<BEGIN>\n## `get_series_info`", "Get information about a series such as its title, frequency, observation start/end da...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_series 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_series 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...
Get data for a Fred series id. This fetches the latest known data, and is equivalent to get_series_latest_release() Parameters ---------- series_id : str Fred series id such as 'CPIAUCSL' observation_start : datetime or datetime-like str such as '7/1/2014', optional ...
"Get data for a Fred series id. This fetches the latest known data, and is equivalent to get_series_latest_release()\n\n Parameters\n ----------\n series_id : str\n Fred series id such as 'CPIAUCSL'\n observation_start : datetime or datetime-like str such as '7/1/2014', optional\n...
44
false
mortada/fredapi
get_series
6,416
LDU_FT/OCHA-DAP/hdx-python-api/create_remoteckan
LDU_FT
[ "<BEGIN>\n## `validlocations`", "Read valid locations from HDX", " Args:\n configuration (Optional[Configuration]): HDX configuration. Defaults to global configuration.", " Returns:\n List[Dict]: A list of valid locations\n<END>", "<BEGIN>\n## `get_location_from_HDX_code`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_remoteckan 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 create_remoteckan 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...
Create remote CKAN instance from configuration Args: site_url (str): Site url. user_agent (Optional[str]): User agent string. HDXPythonLibrary/X.X.X- is prefixed. user_agent_config_yaml (Optional[str]): Path to YAML user agent configuration. Ignored if user_agent supplied. D...
"Create remote CKAN instance from configuration\n\n Args:\n site_url (str): Site url.\n user_agent (Optional[str]): User agent string. HDXPythonLibrary/X.X.X- is prefixed.\n user_agent_config_yaml (Optional[str]): Path to YAML user agent configuration. Ignored if user_agent suppl...
513
false
OCHA-DAP/hdx-python-api
create_remoteckan
6,417
LDU_FT/pivotal-energy-solutions/django-datatable-view/make_boolean_checkmark
LDU_FT
[ "<BEGIN>\n## `resolve_orm_path`", "Follows the queryset-style query path of ``orm_path`` starting from ``model`` class. If the\n path ends up referring to a bad field name, ``django.db.models.fields.FieldDoesNotExist`` will\n be raised.\n<END>", "<BEGIN>\n## `get_model_at_related_field`", "Looks up ``a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_boolean_checkmark 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 make_boolean_checkmark 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 a unicode ✔ or ✘, configurable by pre-calling the helper with ``true_value`` and/or ``false_value`` arguments, based on the incoming value. The value at ``kwargs['default_value']`` is checked to see if it casts to a boolean ``True`` or ``False``, and returns the appropriate representation. Exa...
"Returns a unicode ✔ or ✘, configurable by pre-calling the helper with ``true_value`` and/or\n ``false_value`` arguments, based on the incoming value.\n\n The value at ``kwargs['default_value']`` is checked to see if it casts to a boolean ``True`` or\n ``False``, and returns the appropriate representation.\n\n...
128
false
pivotal-energy-solutions/django-datatable-view
make_boolean_checkmark
6,418
LDU_FT/CamilleMo/SuperSight/__create_template_vars
LDU_FT
[ "<BEGIN>\n## `__make_skeleton`", "This method creates the folder tree which will contain the website.\n<END>", "<BEGIN>\n## `__copy_static`", "This method takes the files in css and js folders of the template and copy to final folders\n<END>", "<BEGIN>\n## `__create_lists_for_nav_bar`", "This method is ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __create_template_vars 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 __create_template_vars API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
This method will create the dictionnary to be passed in the template in order to generate each page
"This method will create the dictionnary to be passed\n in the template in order to generate each page"
14
false
CamilleMo/SuperSight
__create_template_vars
6,419
LDU_FT/collectiveacuity/labPack/update_member_profile
LDU_FT
[ "<BEGIN>\n## `_delete`", "a helper method for non-blocking deletion of files\r", " :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_member_profile 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 update_member_profile API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
a method to update user profile details on meetup :param brief_details: dictionary with member brief details with updated values :param profile_details: dictionary with member profile details with updated values :return: dictionary with partial profile details inside [json] key
"a method to update user profile details on meetup\r\n\r\n :param brief_details: dictionary with member brief details with updated values\r\n :param profile_details: dictionary with member profile details with updated values\r\n :return: dictionary with partial profile details inside [json] key"
886
false
collectiveacuity/labPack
update_member_profile
6,420
LDU_FT/gaqzi/django-emoji/names
LDU_FT
[ "<BEGIN>\n## `names`", "A list of all emoji names without file extension.\n<END>", "<BEGIN>\n## `replace`", "Add in valid emojis in a string where a valid emoji is between ::\n<END>", "<BEGIN>\n## `replace_unicode`", "This method will iterate over every character in\n ``replacement_string`` and see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the names 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 names 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...
A list of all emoji names without file extension.
"A list of all emoji names without file extension."
12
false
gaqzi/django-emoji
names
6,421
LDU_FT/unfoldingWord-dev/python-gogs-client/get_user
LDU_FT
[ "<BEGIN>\n## `json_get`", "Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>", "<BEGIN>\n## `append_url`", "Append path to base_url in a sensible way.\n<END>", "<BEGIN>\n## `authenticated_user`", "Returns the user authenticated by ``auth``", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user 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_user 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...
Returns a representing the user with username ``username``. :param auth.Authentication auth: authentication object, can be ``None`` :param str username: username of user to get :return: the retrieved user :rtype: GogsUser :raises NetworkFailure: if there is an error communicatin...
"Returns a representing the user with username ``username``.\n\n :param auth.Authentication auth: authentication object, can be ``None``\n :param str username: username of user to get\n :return: the retrieved user\n :rtype: GogsUser\n :raises NetworkFailure: if there is an error commu...
123
false
unfoldingWord-dev/python-gogs-client
get_user
6,422
LDU_FT/MoseleyBioinformaticsLab/filehandles/gzip_opener
LDU_FT
[ "<BEGIN>\n## `filehandles`", "Main function that iterates over list of openers and decides which opener to use.", " :param str path: Path.\n :param list openers_list: List of openers.\n :param str pattern: Regular expression pattern.\n :param verbose: Print additional information.\n :type verbose...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gzip_opener 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 gzip_opener 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...
Opener that opens single gzip compressed file. :param str path: Path. :param str pattern: Regular expression pattern. :return: Filehandle(s).
"Opener that opens single gzip compressed file.\n\n :param str path: Path. \n :param str pattern: Regular expression pattern. \n :return: Filehandle(s)."
21
false
MoseleyBioinformaticsLab/filehandles
gzip_opener
6,423
LDU_FT/knipknap/Gelatin/generate
LDU_FT
[ "<BEGIN>\n## `get_child`", "Returns the first child that matches the given name and\n attributes.\n<END>", "<BEGIN>\n## `create`", "Creates the given node, regardless of whether or not it already\n exists.\n Returns the new node.\n<END>", "<BEGIN>\n## `add`", "Creates the given node i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate 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 generate 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...
Given a converter (as returned by compile()), this function reads the given input file and converts it to the requested output format. Supported output formats are 'xml', 'yaml', 'json', or 'none'. :type converter: compiler.Context :param converter: The compiled converter. :type input_file: str ...
"Given a converter (as returned by compile()), this function reads\n the given input file and converts it to the requested output format.\n\n Supported output formats are 'xml', 'yaml', 'json', or 'none'.\n\n :type converter: compiler.Context\n :param converter: The compiled converter.\n :type input_fi...
25
false
knipknap/Gelatin
generate
6,424
LDU_FT/webadmin87/midnight/mark_current_menus
LDU_FT
[ "<BEGIN>\n## `show_menu`", "Тег для подключения меню", " Пример использования::", " {% show_menu 'menu_slug' 2 class='menu-class' %}", " :param context: контекст шаблона\n :param slug: символьный код родительского пункта меню\n :param level: максимальный уровень вложенности\n :param kw...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mark_current_menus 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 mark_current_menus 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...
Отмечает активные модели меню (У которых ссылка соответствует текущему path info) :param menus: список моделей меню :param path_info: path info :return:
"Отмечает активные модели меню (У которых ссылка соответствует текущему path info)\n :param menus: список моделей меню\n :param path_info: path info\n :return:"
84
false
webadmin87/midnight
mark_current_menus
6,425
LDU_FT/tonybaloney/wily/handle_no_cache
LDU_FT
[ "<BEGIN>\n## `revisions`", "Get the list of revisions.", " :param path: the path to target.\n :type path: ``str``", " :param max_revisions: the maximum number of revisions.\n :type max_revisions: ``int``", " :return: A list of revisions.\n :rtype: ``list`` of :cla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_no_cache 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 handle_no_cache 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...
Handle lack-of-cache error, prompt user for index process.
"Handle lack-of-cache error, prompt user for index process."
174
false
tonybaloney/wily
handle_no_cache
6,426
LDU_FT/raff/dynash/do_get
LDU_FT
[ "<BEGIN>\n## `do_schema`", "schema", " schema --clear", " schema filed_name field_type\n<END>", "<BEGIN>\n## `do_create`", "create {tablename} [-c rc,wc] {hkey}[:{type} {rkey}:{type}]\n<END>", "<BEGIN>\n## `do_capacity`", "capacity {tablename} {read_units} {write_units}\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_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 ...
get [:tablename] {haskkey} [rangekey] or get [:tablename] ((hkey,rkey), (hkey,rkey)...)
"get [:tablename] {haskkey} [rangekey]\n or\n get [:tablename] ((hkey,rkey), (hkey,rkey)...)"
32
false
raff/dynash
do_get
6,427
LDU_FT/shawnsilva/steamwebapi/get_recently_played_games
LDU_FT
[ "<BEGIN>\n## `create_request_url`", "Create the URL to submit to the Steam Web API", " interface: Steam Web API interface containing methods.\n method: The method to call.\n version: The version of the method.\n paramters: Parameters to supply to the method.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recently_played_games API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_recently_played_games API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Request a list of recently played games by a given steam id. steamID: The users ID count: Number of games to return. (0 is all recent games.) format: Return format. None defaults to json. (json, xml, vdf)
"Request a list of recently played games by a given steam id.\n\n steamID: The users ID\n count: Number of games to return. (0 is all recent games.)\n format: Return format. None defaults to json. (json, xml, vdf)"
64
false
shawnsilva/steamwebapi
get_recently_played_games
6,428
LDU_FT/ga4gh/ga4gh-server/convertLocationHgvsP
LDU_FT
[ "<BEGIN>\n## `VerifierMiddleware`", "Common wrapper for the authentication modules.\n * Parses the request before passing it on to the authentication module.\n * Sets 'pyoidc' cookie if authentication succeeds.\n * Redirects the user to complete the authentication.\n * Allows the user ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertLocationHgvsP 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 convertLocationHgvsP API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Accepts an annotation in HGVS notation and returns an AlleleLocation with populated fields. :param hgvsp: :return: protocol.AlleleLocation
"Accepts an annotation in HGVS notation and returns\n an AlleleLocation with populated fields.\n :param hgvsp:\n :return: protocol.AlleleLocation"
768
false
ga4gh/ga4gh-server
convertLocationHgvsP
6,429
LDU_FT/fedora-infra/fedmsg/load_certificates
LDU_FT
[ "<BEGIN>\n## `set_high_water_mark`", "Set a high water mark on the zmq socket. Do so in a way that is\n cross-compatible with zeromq2 and zeromq3.\n<END>", "<BEGIN>\n## `set_tcp_keepalive`", "Set a series of TCP keepalive options on the socket if\n and only if\n 1) they are specified explicitly in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_certificates 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 load_certificates 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...
Load the CA certificate and CRL, caching it for future use. .. note:: Providing the location of the CA and CRL as an HTTPS URL is deprecated and will be removed in a future release. Args: ca_location (str): The location of the Certificate Authority certificate. This should ...
"Load the CA certificate and CRL, caching it for future use.\n\n .. note::\n Providing the location of the CA and CRL as an HTTPS URL is deprecated\n and will be removed in a future release.\n\n Args:\n ca_location (str): The location of the Certificate Authority certificate. This should\n ...
248
false
fedora-infra/fedmsg
load_certificates
6,430
LDU_FT/impact27/registrator/ccs_normalize
LDU_FT
[ "<BEGIN>\n## `channel_width`", "Get an estimation of the channel width.", " Parameters:\n -----------\n im: 2d array\n The channel image\n chanangle: number, optional\n The angle of the channel (None if unknown)\n chanapproxangle: number, optional\n If chanangle is None, the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ccs_normalize 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 ccs_normalize 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...
normalize the ccs representation Parameters ---------- compIM: 2d array The CCS image in CCS representation ccsnorm: 2d array The normalization matrix in ccs representation Returns ------- compIM: 2d array The normalized CCS image Notes ----- (basically...
"normalize the ccs representation\n\n Parameters\n ----------\n compIM: 2d array\n The CCS image in CCS representation\n ccsnorm: 2d array\n The normalization matrix in ccs representation\n\n Returns\n -------\n compIM: 2d array\n The normalized CCS image\n\n Notes\n ----...
129
false
impact27/registrator
ccs_normalize
6,431
LDU_FT/bwesterb/tkbd/prepare_schedule
LDU_FT
[ "<BEGIN>\n## `fetch_room_ids`", "Fetches the ids of the rooms with the given names\n<END>", "<BEGIN>\n## `fetch_todays_schedule`", "Fetch the schedules for the given rooms.\n<END>", "<BEGIN>\n## `prepare_roomMap`", "Prepares the roomMap to be JSONified. That is: convert the non\n JSON serializable ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_schedule 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 prepare_schedule 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 ...
Prepares the schedule to be JSONified. That is: convert the non JSON serializable objects such as the datetime.time's
"Prepares the schedule to be JSONified. That is: convert the non\n JSON serializable objects such as the datetime.time's"
26
false
bwesterb/tkbd
prepare_schedule
6,432
LDU_FT/timothydmorton/orbitutils/random_spherepos
LDU_FT
[ "<BEGIN>\n## `RV_1`", "Instantaneous RV of star 1 with respect to system center-of-mass\n<END>", "<BEGIN>\n## `RV_2`", "Instantaneous RV of star 2 with respect to system center-of-mass\n<END>", "<BEGIN>\n## `RV_3`", "Instantaneous RV of star 3 with respect to system center-of-mass\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_spherepos 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 random_spherepos 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 ...
returns SkyCoord object with n positions randomly oriented on the unit sphere Parameters ---------- n : int number of positions desired Returns ------- c : ``SkyCoord`` object with random positions
"returns SkyCoord object with n positions randomly oriented on the unit sphere\n\n Parameters\n ----------\n n : int\n number of positions desired\n\n Returns\n -------\n c : ``SkyCoord`` object with random positions"
38
false
timothydmorton/orbitutils
random_spherepos
6,433
LDU_FT/Josef-Friedrich/tmep/compile_func
LDU_FT
[ "<BEGIN>\n## `ex_literal`", "An int, float, long, bool, string, or None literal with the given\n value.\n<END>", "<BEGIN>\n## `ex_varassign`", "Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>", "<BEGIN>\n## `ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_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 extr...
Compile a list of statements as the body of a function and return the resulting Python function. If `debug`, then print out the bytecode of the compiled function.
"Compile a list of statements as the body of a function and return\n the resulting Python function. If `debug`, then print out the\n bytecode of the compiled function."
72
false
Josef-Friedrich/tmep
compile_func
6,434
LDU_FT/chakki-works/seqeval/accuracy_score
LDU_FT
[ "<BEGIN>\n## `find_pad_index`", "Find padding index.", " Args:\n array (list): integer list.", " Returns:\n idx: padding index.", " Examples:\n >>> array = [1, 2, 0]\n >>> self.find_pad_index(array)\n 2\n<END>", "<BEGIN>\n## `g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accuracy_score 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 accuracy_score 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...
Accuracy classification score. In multilabel classification, this function computes subset accuracy: the set of labels predicted for a sample must *exactly* match the corresponding set of labels in y_true. Args: y_true : 2d array. Ground truth (correct) target values. y_pred : 2d array...
"Accuracy classification score.\n\n In multilabel classification, this function computes subset accuracy:\n the set of labels predicted for a sample must *exactly* match the\n corresponding set of labels in y_true.\n\n Args:\n y_true : 2d array. Ground truth (correct) target values.\n y_pred :...
73
false
chakki-works/seqeval
accuracy_score
6,435
LDU_FT/cebel/pyuniprot/query_tissue_specificity
LDU_FT
[ "<BEGIN>\n## `get_args`", "Check allowed argument names and return is as dictionary\n<END>", "<BEGIN>\n## `query_disease`", "Returns list of diseases by query parameters\n ---", " tags:", " - Query functions", " parameters:", " - name: identifier\n in: query\n type: st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tissue_specificity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tissue_specificity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Returns list of tissue specificity by query parameters --- tags: - Query functions parameters: - name: comment in: query type: string required: false description: Comment to tissue specificity default: '%APP695%' - name: entry_name in: q...
"Returns list of tissue specificity by query parameters\n ---\n\n tags:\n\n - Query functions\n\n parameters:\n\n - name: comment\n in: query\n type: string\n required: false\n description: Comment to tissue specificity\n default: '%APP695%'\n\n - name: entry_n...
416
false
cebel/pyuniprot
query_tissue_specificity
6,436
LDU_FT/rm-hull/luma.core/effective_FPS
LDU_FT
[ "<BEGIN>\n## `animate`", "Returns a generator which \"executes\" an animation sequence for the given\n ``seq_name``, inasmuch as the next frame for the given animation is\n yielded when requested.", " :param seq_name: The name of a previously defined animation sequence.\n :type seq_n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the effective_FPS 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 effective_FPS 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...
Calculates the effective frames-per-second - this should largely correlate to the desired FPS supplied in the constructor, but no guarantees are given. :returns: The effective frame rate. :rtype: float
"Calculates the effective frames-per-second - this should largely\n correlate to the desired FPS supplied in the constructor, but no\n guarantees are given.\n\n :returns: The effective frame rate.\n :rtype: float"
126
false
rm-hull/luma.core
effective_FPS
6,437
LDU_FT/Stranger6667/pyoffers/init_all_objects
LDU_FT
[ "<BEGIN>\n## `prepare_query_params`", "Prepares given parameters to be used in querystring.\n<END>", "<BEGIN>\n## `prepend_model`", "Prepends model name if it is not already prepended.\n For example model is \"Offer\":", " key -> Offer.key\n -key -> -Offer.key\n Offer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_all_objects 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 init_all_objects 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 ...
Initializes model instances from given data. Returns single instance if single_result=True.
"Initializes model instances from given data.\n Returns single instance if single_result=True."
19
false
Stranger6667/pyoffers
init_all_objects
6,438
LDU_FT/zimeon/iiif/_parse_w_comma_h
LDU_FT
[ "<BEGIN>\n## `do_first`", "Load generator, set size.", " We take the generator module name from self.srcfile so that\n this manipulator will work with different generators in a\n similar way to how the ordinary generators work with\n different images\n<END>", "<BEGIN>\n## `main`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_w_comma_h 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 _parse_w_comma_h 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 ...
Utility to parse "w,h" "w," or ",h" values. Returns (w,h) where w,h are either None or ineteger. Will throw a ValueError if there is a problem with one or both.
"Utility to parse \"w,h\" \"w,\" or \",h\" values.\n\n Returns (w,h) where w,h are either None or ineteger. Will\n throw a ValueError if there is a problem with one or both."
333
false
zimeon/iiif
_parse_w_comma_h
6,439
LDU_FT/SeattleTestbed/seash/getkeypress
LDU_FT
[ "<BEGIN>\n## `_bind_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_bind_exit_key`", "u\"\"\"setup the mapping from key to call the function.\n<END>", "<BEGIN>\n## `_get_completions`", "Return a list of possible completions for the string ending at the point.\r\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getkeypress 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 getkeypress 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...
u'''Return next key press event from the queue, ignoring others.
"u'''Return next key press event from the queue, ignoring others."
281
false
SeattleTestbed/seash
getkeypress
6,440
LDU_FT/miniconfig/python-openevse-wifi/getAutoStartEnabled
LDU_FT
[ "<BEGIN>\n## `sendCommand`", "Sends a command through the web interface of the charger and parses the response\n<END>", "<BEGIN>\n## `getStatus`", "Returns the charger's charge status, as a string\n<END>", "<BEGIN>\n## `getChargeTimeElapsed`", "Returns the charge time elapsed (in seconds), or 0 if is not ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAutoStartEnabled 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 getAutoStartEnabled 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...
Returns True if enabled, False if disabled
"Returns True if enabled, False if disabled"
32
false
miniconfig/python-openevse-wifi
getAutoStartEnabled
6,441
LDU_FT/disqus/nydus/flush_down_connections
LDU_FT
[ "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `_route`", "The first argument is assumed to be the ``key`` for routing.\n<END>", "<BEGIN>\n## `promise_method`", "A decorator which ensures that once a method has been marked as resolved\n (via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush_down_connections 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 flush_down_connections API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Marks all connections which were previously listed as unavailable as being up.
"Marks all connections which were previously listed as unavailable as being up."
45
false
disqus/nydus
flush_down_connections
6,442
LDU_FT/ArangoDB-Community/pyArango/_create
LDU_FT
[ "<BEGIN>\n## `_create`", "Creates an index of any type according to postData\n<END>", "<BEGIN>\n## `createVertex`", "adds a vertex to the graph and returns it\n<END>", "<BEGIN>\n## `deleteVertex`", "deletes a vertex from the graph as well as al linked edges\n<END>", "<BEGIN>\n## `link`", "A shorthand ...
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...
Creates an index of any type according to postData
"Creates an index of any type according to postData"
105
false
ArangoDB-Community/pyArango
_create
6,443
LDU_FT/edeposit/edeposit.amqp.harvester/has_param
LDU_FT
[ "<BEGIN>\n## `save_cache`", "Save cahce to the disk.", " Args:\n cache (set): Set with cached data.\n<END>", "<BEGIN>\n## `load_cache`", "Load cache from the disk.", " Return:\n set: Deserialized data from disk.\n<END>", "<BEGIN>\n## `filter_publication`", "Deduplication function, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_param 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 has_param 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...
Generate function, which will check `param` is in html element. This function can be used as parameter for .find() method in HTMLElement.
"Generate function, which will check `param` is in html element.\n\n This function can be used as parameter for .find() method in HTMLElement."
303
false
edeposit/edeposit.amqp.harvester
has_param
6,444
LDU_FT/defunkt/pystache/strip_html_comments
LDU_FT
[ "<BEGIN>\n## `render`", "Return the given template string rendered using the given context.\n<END>", "<BEGIN>\n## `_get_value`", "Retrieve a key's value from a context item.", " Returns _NOT_FOUND if the key does not exist.", " The ContextStack.get() docstring documents this function's intended beha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_html_comments 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 strip_html_comments 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...
Strip HTML comments from a unicode string.
"Strip HTML comments from a unicode string."
177
false
defunkt/pystache
strip_html_comments
6,445
LDU_FT/hMatoba/Piexif/read_exif_from_file
LDU_FT
[ "<BEGIN>\n## `dump`", "py:function:: piexif.load(data)", " Return exif as bytes.", " :param dict exif: Exif data({\"0th\":dict, \"Exif\":dict, \"GPS\":dict, \"Interop\":dict, \"1st\":dict, \"thumbnail\":bytes})\n :return: Exif\n :rtype: bytes\n<END>", "<BEGIN>\n## `insert`", "py:function:: pie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_exif_from_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_exif_from_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. T...
Slices JPEG meta data into a list from JPEG binary data.
"Slices JPEG meta data into a list from JPEG binary data."
32
false
hMatoba/Piexif
read_exif_from_file
6,446
LDU_FT/rochacbruno/dynaconf/_dotted_get
LDU_FT
[ "<BEGIN>\n## `init_app`", "kwargs holds initial dynaconf configuration\n<END>", "<BEGIN>\n## `get`", "Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>", "<BEGIN>\n## `object_merge`", "Recursivel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dotted_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dotted_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 extra...
Perform dotted key lookups and keep track of where we are.
"Perform dotted key lookups and keep track of where we are."
172
false
rochacbruno/dynaconf
_dotted_get
6,447
LDU_FT/coursera/courseraoauth2client/display_auth_cache
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_auth_cache 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 display_auth_cache 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...
Writes to the screen the state of the authentication cache. (For debugging authentication issues.) BEWARE: DO NOT email the output of this command!!! You must keep the tokens secure. Treat them as passwords.
"Writes to the screen the state of the authentication cache. (For debugging\n authentication issues.) BEWARE: DO NOT email the output of this command!!!\n You must keep the tokens secure. Treat them as passwords."
31
false
coursera/courseraoauth2client
display_auth_cache
6,448
LDU_FT/rene-aguirre/pywinusb/set_raw_data
LDU_FT
[ "<BEGIN>\n## `hid_device_path_exists`", "Test if required device_path is still valid\r\n (HID device connected to host)\n<END>", "<BEGIN>\n## `find_all_hid_devices`", "Finds all HID devices connected to the system\n<END>", "<BEGIN>\n## `show_hids`", "Check all HID devices conected to PC hosts.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_raw_data 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 set_raw_data 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...
Set usage values based on given raw data, item[0] is report_id, length should match 'raw_data_length' value, best performance if raw_data is c_ubyte ctypes array object type
"Set usage values based on given raw data, item[0] is report_id,\r\n length should match 'raw_data_length' value, best performance if\r\n raw_data is c_ubyte ctypes array object type"
61
false
rene-aguirre/pywinusb
set_raw_data
6,449
LDU_FT/floydhub/floyd-cli/get_unignored_file_paths
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unignored_file_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unignored_file_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Given an ignore_list and a whitelist of glob patterns, returns the list of unignored file paths in the current directory and its subdirectories
"Given an ignore_list and a whitelist of glob patterns, returns the list of\n unignored file paths in the current directory and its subdirectories"
84
false
floydhub/floyd-cli
get_unignored_file_paths
6,450
LDU_FT/gamechanger/confluent_schema_registry_client/get_schema
LDU_FT
[ "<BEGIN>\n## `get_schema`", "Retrieves the schema with the given schema_id from the registry\n and returns it as a `dict`.\n<END>", "<BEGIN>\n## `get_subjects`", "Returns the list of subject names present in the schema registry.\n<END>", "<BEGIN>\n## `get_subject_version_ids`", "Return the list of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema 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_schema 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...
Retrieves the schema with the given schema_id from the registry and returns it as a `dict`.
"Retrieves the schema with the given schema_id from the registry\n and returns it as a `dict`."
16
false
gamechanger/confluent_schema_registry_client
get_schema
6,451
LDU_FT/benoitkugler/abstractDataLibrary/in_date
LDU_FT
[ "<BEGIN>\n## `recherche`", "abstractSearch in fields of collection and reset rendering.\n Returns number of results.\n If in_all is True, call get_all before doing the search.\n<END>", "<BEGIN>\n## `launch_background_job`", "Launch the callable job in background thread.\n Succes or failur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_date 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 in_date 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...
abstractSearch dans une date datetime.date
"abstractSearch dans une date datetime.date"
131
false
benoitkugler/abstractDataLibrary
in_date
6,452
LDU_FT/luqasz/librouteros/encodeLength
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect and login to routeros device.\n Upon success return a Api class.", " :param host: Hostname to connecto to. May be ipv4,ipv6,FQDN.\n :param username: Username to login with.\n :param password: Password to login with. Only ASCII characters allowed.\n :param timeout...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encodeLength 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 encodeLength 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...
Encode given length in mikrotik format. :param length: Integer < 268435456. :returns: Encoded length.
"Encode given length in mikrotik format.\n\n :param length: Integer < 268435456.\n :returns: Encoded length."
40
false
luqasz/librouteros
encodeLength
6,453
LDU_FT/pandeylab/pythomics/get_alt_length
LDU_FT
[ "<BEGIN>\n## `add_header`", "Parses the VCF Header field and returns the number of samples in the VCF file\n<END>", "<BEGIN>\n## `parse_entry`", "Parse an individual VCF entry and return a VCFEntry which contains information about\n the call (such as alternative allele, zygosity, etc.)\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_alt_length 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 get_alt_length 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...
Returns the number of basepairs of each alternative allele
"Returns the number of basepairs of each alternative allele"
49
false
pandeylab/pythomics
get_alt_length
6,454
LDU_FT/kajala/django-jutil/process_exception
LDU_FT
[ "<BEGIN>\n## `se_iban_load_map`", "Loads Swedish monetary institution codes in CSV format.\n :param filename: CSV file name of the BIC definitions.\n Columns: Institution Name, Range Begin-Range End (inclusive), Account digits count\n :return: List of (bank name, clearing code begin, clearing code end, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_exception 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_exception 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...
Logs exception error message and sends email to ADMINS if hostname is not testserver and DEBUG=False. :param request: HttpRequest :param e: Exception
"Logs exception error message and sends email to ADMINS if hostname is not testserver and DEBUG=False.\n :param request: HttpRequest\n :param e: Exception"
110
false
kajala/django-jutil
process_exception
6,455
LDU_FT/intelsdi-x/snap-plugin-lib-py/add_item
LDU_FT
[ "<BEGIN>\n## `publish`", "Publishes metrics to a file in JSON format.", " This method is called by the Snap deamon during the collection phase\n of the execution of a Snap workflow.", " In this example we are writing the metrics to a file in json format.\n We obtain the path to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte...
Add single command line flag Arguments: name (:obj:`str`): Name of flag used in command line flag_type (:py:class:`snap_plugin.v1.plugin.FlagType`): Indication if flag should store value or is simple bool flag description (:obj:`str`): Flag description used i...
"Add single command line flag\n\n Arguments:\n name (:obj:`str`): Name of flag used in command line\n flag_type (:py:class:`snap_plugin.v1.plugin.FlagType`):\n Indication if flag should store value or is simple bool flag\n description (:obj:`str`): Flag description...
69
false
intelsdi-x/snap-plugin-lib-py
add_item
6,456
LDU_FT/dmgass/baseline/_atexit_callback
LDU_FT
[ "<BEGIN>\n## `main`", "Command line interface.", " :param list args: command line options (defaults to sys.argv)\n :returns: exit code\n :rtype: int\n<END>", "<BEGIN>\n## `showpath`", "Return path in form most convenient for user to read.", " Return relative path when input path is within ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _atexit_callback 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 _atexit_callback 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 ...
Create Python script copies with updated baselines. For any baseline that had a miscompare, make a copy of the source file which contained the baseline and update the baseline with the new string value. :returns: record of every Python file update (key=path, val...
"Create Python script copies with updated baselines.\n\n For any baseline that had a miscompare, make a copy of the\n source file which contained the baseline and update the\n baseline with the new string value.\n\n :returns:\n record of every Python file update (key=path,\n ...
29
false
dmgass/baseline
_atexit_callback
6,457
LDU_FT/EelcoHoogendoorn/Numpy_arraysetops_EP/indices
LDU_FT
[ "<BEGIN>\n## `group_by`", "construct a grouping object on the given keys, optionally performing the given reduction on the given values", " Parameters\n ----------\n keys : indexable object\n keys to group by\n values : array_like, optional\n sequence of values, of the same length as k...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indices 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 indices 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...
Find indices such that this[indices] == that If multiple indices satisfy this condition, the first index found is returned Parameters ---------- this : indexable object items to search in that : indexable object items to search for axis : int, optional axis to operate on...
"Find indices such that this[indices] == that\n If multiple indices satisfy this condition, the first index found is returned\n\n Parameters\n ----------\n this : indexable object\n items to search in\n that : indexable object\n items to search for\n axis : int, optional\n axis to...
198
false
EelcoHoogendoorn/Numpy_arraysetops_EP
indices
6,458
LDU_FT/gvanderheide/discreteMarkovChain/checkInitialState
LDU_FT
[ "<BEGIN>\n## `uniqueStates`", "Returns unique states and sums up the corresponding rates.\n States should be a 2d numpy array with on each row a state, and rates a 1d numpy array with length equal to the number of rows in states. ", " This may be helpful in the transition function for summing up the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkInitialState 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 checkInitialState 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...
Check whether the initial state is of the correct type. The state should be either an int, list, tuple or np.array and all its elements must be integer. Returns an int if the state is an integer, otherwise a tuple.
"Check whether the initial state is of the correct type.\n The state should be either an int, list, tuple or np.array and all its elements must be integer.\n Returns an int if the state is an integer, otherwise a tuple."
68
false
gvanderheide/discreteMarkovChain
checkInitialState
6,459
LDU_FT/bwohlberg/sporco/ustep
LDU_FT
[ "<BEGIN>\n## `pyfftw_byte_aligned`", "Construct a byte-aligned array for efficient use by :mod:`pyfftw`.\n This function is a wrapper for :func:`pyfftw.byte_align`", " Parameters\n ----------\n array : ndarray\n Input array\n dtype : dtype, optional (default None)\n Output array dtype\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ustep 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 ustep 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...
The parent class ystep method is overridden to allow also performing the ystep for the additional variables introduced in the modification to the baseline algorithm.
"The parent class ystep method is overridden to allow also\n performing the ystep for the additional variables introduced in\n the modification to the baseline algorithm."
1,237
true
bwohlberg/sporco
ustep
6,460
LDU_FT/mila/pyoo/open_spreadsheet
LDU_FT
[ "<BEGIN>\n## `str_repr`", "Implements string conversion methods for the given class.", " The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>", "<BEGIN>\n## `_clean_slice`", "Validates and normalizes a cell range slice.", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_spreadsheet 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 open_spreadsheet 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 ...
Opens an exiting spreadsheet document on the local file system.
"Opens an exiting spreadsheet document on the local file system."
70
false
mila/pyoo
open_spreadsheet
6,461
LDU_FT/hid-io/layouts-python/compose
LDU_FT
[ "<BEGIN>\n## `main`", "Main entry-point for calling layouts directly as a program.\n<END>", "<BEGIN>\n## `retrieve_github_cache`", "Retrieves a cache of the layouts git repo from GitHub", " @param github_path: Location of the git repo on GitHub (e.g. hid-io/layouts)\n @param version: git refer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compose 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 compose 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 sequence of combinations necessary to compose given text. If the text expression is not possible with the given layout an ComposeException is thrown. Iterate over the string, converting each character into a key sequence. Between each character, an empty combo is inserted to handle...
"Returns the sequence of combinations necessary to compose given text.\n\n If the text expression is not possible with the given layout an ComposeException is thrown.\n\n Iterate over the string, converting each character into a key sequence.\n Between each character, an empty combo is inserted to ...
35
false
hid-io/layouts-python
compose
6,462
LDU_FT/StagPython/StagPy/_extract_rsnap_isteps
LDU_FT
[ "<BEGIN>\n## `out_name`", "Return StagPy out file name.", " Args:\n stem (str): short description of file content.\n timestep (int): timestep if relevant.", " Returns:\n str: the output file name.", " Other Parameters:\n conf.core.outname (str): the generic name stem, de...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_rsnap_isteps 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 _extract_rsnap_isteps API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Extract istep and compute list of rows to delete
"Extract istep and compute list of rows to delete"
299
false
StagPython/StagPy
_extract_rsnap_isteps
6,463
LDU_FT/l04m33/pyx/write_headers
LDU_FT
[ "<BEGIN>\n## `parse_http_header`", "Parse an HTTP header from a string, and return an ``HttpHeader``.", " ``header_line`` should only contain one line.\n ``BadHttpHeaderError`` is raised if the string is an invalid header line.\n<END>", "<BEGIN>\n## `methods`", "A decorator to mark HTTP methods a reso...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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. The ext...
Construct headers in string form, and return a list containing each line of header strings.
"Construct headers in string form, and return a list containing each\n line of header strings."
31
false
l04m33/pyx
write_headers
6,464
LDU_FT/polysquare/cmake-ast/_replace_token_range
LDU_FT
[ "<BEGIN>\n## `run`", "Set up language runtimes and pass control to python project script.\n<END>", "<BEGIN>\n## `_node`", "Return an _AbstractSyntaxTreeNode with some elements defaulted.\n<END>", "<BEGIN>\n## `_recurse`", "Recursive print worker - recurses the AST and prints each node.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _replace_token_range 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 _replace_token_range API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
For a range indicated from start to end, replace with replacement.
"For a range indicated from start to end, replace with replacement."
66
false
polysquare/cmake-ast
_replace_token_range
6,465
LDU_FT/hammerlab/cohorts/count_effects_function_builder
LDU_FT
[ "<BEGIN>\n## `download_to_path`", "This method is analogous to \"gsutil cp gsuri localpath\", but in a\n programatically accesible way. The only difference is that we\n have to make a guess about the encoding of the file to not upset\n downstream file operations. If you are downloading a VCF,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_effects_function_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_effects_function_builder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Create a function that counts effects that are filtered by the provided filterable_effect_function. The filterable_effect_function is a function that takes a filterable_effect and returns True or False. Users of this builder need not worry about applying e.g. the Cohort's default `filter_fn`. That will be appl...
"Create a function that counts effects that are filtered by the provided filterable_effect_function.\n The filterable_effect_function is a function that takes a filterable_effect and returns True or False.\n\n Users of this builder need not worry about applying e.g. the Cohort's default `filter_fn`. That will be ...
230
false
hammerlab/cohorts
count_effects_function_builder
6,466
LDU_FT/cloudendpoints/endpoints-management-python/_extract_auth_config
LDU_FT
[ "<BEGIN>\n## `convert_response`", "Computes a http status code and message `CheckResponse`", " The return value a tuple (code, message, api_key_is_bad) where", " code: is the http status code\n message: is the message to return\n api_key_is_bad: indicates that a given api_key is bad", " Args:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_auth_config 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 _extract_auth_config API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Obtains the authentication configurations.
"Obtains the authentication configurations."
308
false
cloudendpoints/endpoints-management-python
_extract_auth_config
6,467
LDU_FT/konstantint/PassportEye/process_file
LDU_FT
[ "<BEGIN>\n## `_guess_type`", "Guesses the type of the MRZ from given lines. Returns 'TD1', 'TD2', 'TD3', 'MRVA', 'MRVB' or None.\n The algorithm is basically just counting lines, looking at their length and checking whether the first character is a 'V'", " >>> MRZ._guess_type([]) is None\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 extr...
Processes a file and returns the parsed MRZ (or None if no candidate regions were even found). The input argument is a list (filename, save_roi, extra_params). (Because we need to use this function within imap_unordered)
"Processes a file and returns the parsed MRZ (or None if no candidate regions were even found).\n\n The input argument is a list (filename, save_roi, extra_params).\n (Because we need to use this function within imap_unordered)"
67
false
konstantint/PassportEye
process_file
6,468
LDU_FT/astropy/astropy-helpers/register_commands
LDU_FT
[ "<BEGIN>\n## `get_dummy_distribution`", "Returns a distutils Distribution object used to instrument the setup\n environment before calling the actual setup() function.\n<END>", "<BEGIN>\n## `get_distutils_option`", "Returns the value of the given distutils option.", " Parameters\n ----------\n o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_commands 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 register_commands 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...
This function generates a dictionary containing customized commands that can then be passed to the ``cmdclass`` argument in ``setup()``.
"This function generates a dictionary containing customized commands that\n can then be passed to the ``cmdclass`` argument in ``setup()``."
135
false
astropy/astropy-helpers
register_commands
6,469
LDU_FT/warrenspe/hconf/parse
LDU_FT
[ "<BEGIN>\n## `registerParser`", "Registers a parser to parse configuration inputs.\n<END>", "<BEGIN>\n## `addConfig`", "Adds the given configuration option to the ConfigManager.", " Inputs: name - The configuration name to accept.\n required - A boolean indicating whether or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse 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 parse 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...
Return our initialized dictionary arguments.
"Return our initialized dictionary arguments."
39
false
warrenspe/hconf
parse
6,470
LDU_FT/port-zero/mite/create_service
LDU_FT
[ "<BEGIN>\n## `request`", "Low-level request interface to mite. Takes a HTTP request scheme (lower\n case!), a URL to request (relative), and optionally data to add to the\n request. Either returns the JSON body of the request or raises a \n HttpException.\n<END>", "<BEGIN>\n## `get`", "Lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_service 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 create_service 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...
Creates a service with a name. All other parameters are optional. They are: `note`, `hourly_rate`, `billable`, and `archived`.
"Creates a service with a name. All other parameters are optional. They\n are: `note`, `hourly_rate`, `billable`, and `archived`."
32
false
port-zero/mite
create_service
6,471
LDU_FT/celery/django-celery/python_2_unicode_compatible
LDU_FT
[ "<BEGIN>\n## `transaction_retry`", "Decorator for methods doing database operations.", " If the database operation fails, it will retry the operation\n at most ``max_retries`` times.\n<END>", "<BEGIN>\n## `get_task`", "Get task meta for task by ``task_id``.", " :keyword exception_retry_count:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the python_2_unicode_compatible 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 python_2_unicode_compatible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Taken from Django project (django/utils/encoding.py) & modified a bit to always have __unicode__ method available.
"Taken from Django project (django/utils/encoding.py) & modified a bit to\n always have __unicode__ method available."
65
false
celery/django-celery
python_2_unicode_compatible
6,472