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/horejsek/python-webdriverwrapper/get_elms
LDU_FT
[ "<BEGIN>\n## `expected_error_page`", "Decorator expecting defined error page at the end of test method. As param\n use what :py:meth:`~.WebdriverWrapperErrorMixin.get_error_page`\n returns.", " .. versionadded:: 2.0\n Before this decorator was called ``ShouldBeErrorPage``.\n<END>", "<BEGIN>\n#...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_elms API. 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_elms API. 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...
Shortcut for :py:meth:`find_element* <selenium.webdriver.remote.webelement.WebElement.find_element>` methods. It's shorter and you can quickly find element in element. .. code-block:: python elm = driver.find_element_by_id('someid') elm.find_elements_by_class_name('someclasss')...
"Shortcut for :py:meth:`find_element* <selenium.webdriver.remote.webelement.WebElement.find_element>`\n methods. It's shorter and you can quickly find element in element.\n\n .. code-block:: python\n\n elm = driver.find_element_by_id('someid')\n elm.find_elements_by_class_name('somec...
120
false
horejsek/python-webdriverwrapper
get_elms
18,073
LDU_FT/daboth/pagan/init_weapon_list
LDU_FT
[ "<BEGIN>\n## `init_weapon_list`", "Initialize the possible weapon\n combinations.\n<END>", "<BEGIN>\n## `grind_hash_for_colors`", "Extracts information from the hashcode\n to generate different colors. Returns a\n list of colors in (r,g,b) tupels.\n<END>", "<BEGIN>\n## `split_sequence`", "Generat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_weapon_list API. 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_weapon_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Initialize the possible weapon combinations.
"Initialize the possible weapon\n combinations."
46
false
daboth/pagan
init_weapon_list
18,074
LDU_FT/mozilla/socorrolib/get_local_filepath
LDU_FT
[ "<BEGIN>\n## `klass_to_pypath`", "when a class is defined within the module that is being executed as\n main, the module name will be specified as '__main__' even though the\n module actually had its own real name. This ends up being very confusing\n to Configman as it tries to refer to a class by its p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_filepath 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 get_local_filepath 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...
Helper for finding our raw SQL files locally. Expects files to be in: $SOCORRO_PATH/socorrolib/external/postgresql/raw_sql/procs/
"Helper for finding our raw SQL files locally.\n\n Expects files to be in:\n $SOCORRO_PATH/socorrolib/external/postgresql/raw_sql/procs/"
155
false
mozilla/socorrolib
get_local_filepath
18,075
LDU_FT/BD2KOnFHIR/fhirtordf/add
LDU_FT
[ "<BEGIN>\n## `namespace_for`", "Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>", "<BEGIN>\n## `known_formats`", "Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Shortcut to rdflib add function :param subj: :param pred: :param obj: :return: self for chaining
"Shortcut to rdflib add function\n :param subj:\n :param pred:\n :param obj:\n :return: self for chaining"
75
false
BD2KOnFHIR/fhirtordf
add
18,076
LDU_FT/ml4ai/delphi/_
LDU_FT
[ "<BEGIN>\n## `all_subs`", "given a list of tuples specifying the bounds of an array, all_subs()\n returns a list of all the tuples of subscripts for that array.\n<END>", "<BEGIN>\n## `idx2subs`", "Given a list idx_list of index values for each dimension of an array, \n idx2subs() returns a list of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted docum...
Check if a concept has a high grounding score.
"Check if a concept has a high grounding score."
336
false
ml4ai/delphi
_
18,077
LDU_FT/google/fleetspeak/ListClients
LDU_FT
[ "<BEGIN>\n## `_EnvOpen`", "Open a file descriptor identified by an environment variable.\n<END>", "<BEGIN>\n## `Send`", "Send a message through Fleetspeak.", " Args:\n message: A message protocol buffer.\n Returns:\n Size of the message in bytes.\n Raises:\n ValueError: If message is...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ListClients API. 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 ListClients API. 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...
Provides basic information about Fleetspeak clients. Args: request: fleetspeak.admin.ListClientsRequest timeout: How many seconds to try for. Returns: fleetspeak.admin.ListClientsResponse
"Provides basic information about Fleetspeak clients.\n\n Args:\n request: fleetspeak.admin.ListClientsRequest\n\n timeout: How many seconds to try for.\n\n Returns: fleetspeak.admin.ListClientsResponse"
35
false
google/fleetspeak
ListClients
18,078
LDU_FT/ronaldguillen/wave/authenticate_credentials
LDU_FT
[ "<BEGIN>\n## `template_render`", "Passing Context or RequestContext to Template.render is deprecated in 1.9+,\n see https://github.com/django/django/pull/3883 and\n https://github.com/django/django/blob/1.9rc1/django/template/backends/django.py#L82-L84", " :param template: Template instance\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_credentials 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 authenticate_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Authenticate the userid and password against username and password.
"Authenticate the userid and password against username and password."
296
false
ronaldguillen/wave
authenticate_credentials
18,079
LDU_FT/maxpumperla/elephas/lp_to_simple_rdd
LDU_FT
[ "<BEGIN>\n## `add_params`", "Add two lists of parameters one by one", " :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>", "<BEGIN>\n## `subtract_params`", "Subtract two lists of parameters", " :param param_list...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lp_to_simple_rdd API. 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 lp_to_simple_rdd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert a LabeledPoint RDD into an RDD of feature-label pairs :param lp_rdd: LabeledPoint RDD of features and labels :param categorical: boolean, if labels should be one-hot encode when returned :param nb_classes: int, number of total classes :return: Spark RDD with feature-label pairs
"Convert a LabeledPoint RDD into an RDD of feature-label pairs\n\n :param lp_rdd: LabeledPoint RDD of features and labels\n :param categorical: boolean, if labels should be one-hot encode when returned\n :param nb_classes: int, number of total classes\n :return: Spark RDD with feature-label pairs"
87
false
maxpumperla/elephas
lp_to_simple_rdd
18,080
LDU_FT/ojake/django-tracked-model/save
LDU_FT
[ "<BEGIN>\n## `create_track_token`", "Returns ``TrackToken``.\n ``TrackToken' contains request and user making changes.", " It can be passed to ``TrackedModel.save`` instead of ``request``.\n It is intended to be used when passing ``request`` is not possible\n e.g. when ``TrackedModel.save`` will be ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Saves changes made on model instance if ``request`` or ``track_token`` keyword are provided.
"Saves changes made on model instance if ``request`` or\n ``track_token`` keyword are provided."
23
false
ojake/django-tracked-model
save
18,081
LDU_FT/ANCIR/granoloader/schema
LDU_FT
[ "<BEGIN>\n## `get_value`", "Returns the value or a dict with a 'value' entry plus extra fields.\n<END>", "<BEGIN>\n## `get_source`", "Sources can be specified as plain strings or as a reference to a column.\n<END>", "<BEGIN>\n## `load`", "Load a single row of data and convert it into entities and\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted ...
Load schema definitions from a YAML file.
"Load schema definitions from a YAML file."
12
false
ANCIR/granoloader
schema
18,082
LDU_FT/manrajgrover/halo/spinner
LDU_FT
[ "<BEGIN>\n## `spinner`", "Setter for spinner property.\n Parameters\n ----------\n spinner : dict, str\n Defines the spinner value with frame and interval\n<END>", "<BEGIN>\n## `placement`", "Setter for placement property.\n Parameters\n ----------\n placem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spinner API. 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 spinner API. 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...
Setter for spinner property. Parameters ---------- spinner : dict, str Defines the spinner value with frame and interval
"Setter for spinner property.\n Parameters\n ----------\n spinner : dict, str\n Defines the spinner value with frame and interval"
45
false
manrajgrover/halo
spinner
18,083
LDU_FT/bioidiap/bob.ip.facedetect/parallel_part
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a new strong classifier with the given threshold to the cascade.", " **Parameters:**", " classifier : :py:class:`bob.learn.boosting.BoostedMachine`\n A strong classifier to add", " ``threshold`` : float\n The classification threshold for this cascade step", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parallel_part API. 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 parallel_part API. 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...
parallel_part(data, parallel) -> part Splits off samples from the the given data list and the given number of parallel jobs based on the ``SGE_TASK_ID`` environment variable. **Parameters:** ``data`` : [object] A list of data that should be split up into ``parallel`` parts ``parallel`` : int or ``None``...
"parallel_part(data, parallel) -> part\n\n Splits off samples from the the given data list and the given number of parallel jobs based on the ``SGE_TASK_ID`` environment variable.\n\n **Parameters:**\n\n ``data`` : [object]\n A list of data that should be split up into ``parallel`` parts\n\n ``parallel`` : int o...
246
false
bioidiap/bob.ip.facedetect
parallel_part
18,084
LDU_FT/Robpol86/sphinxcontrib-imgur/event_doctree_resolved
LDU_FT
[ "<BEGIN>\n## `query_api`", "Query the Imgur API.", " :raise APIError: When Imgur responds with errors or unexpected data.", " :param sphinx.application.Sphinx app: Sphinx application object.\n :param str client_id: Imgur API client ID to use. https://api.imgur.com/oauth2\n :param str imgur_id: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_doctree_resolved 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 event_doctree_resolved API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Called by Sphinx after phase 3 (resolving). * Replace Imgur text nodes with data from the Sphinx cache. * Call finalizer for ImgurImageNode nodes. :param sphinx.application.Sphinx app: Sphinx application object. :param docutils.nodes.document doctree: Tree of docutils nodes. :param _: Not used.
"Called by Sphinx after phase 3 (resolving).\n\n * Replace Imgur text nodes with data from the Sphinx cache.\n * Call finalizer for ImgurImageNode nodes.\n\n :param sphinx.application.Sphinx app: Sphinx application object.\n :param docutils.nodes.document doctree: Tree of docutils nodes.\n :param _: Not ...
90
false
Robpol86/sphinxcontrib-imgur
event_doctree_resolved
18,085
LDU_FT/genomoncology/related/init_default
LDU_FT
[ "<BEGIN>\n## `init_default`", "Returns optional default if field is not required and\n default was not provided.", " :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_default API. 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 init_default API. 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...
Returns optional default if field is not required and default was not provided. :param bool required: whether the field is required in a given model. :param default: default provided by creator of field. :param optional_default: default for the data type if none provided. :return: default or option...
"Returns optional default if field is not required and\n default was not provided.\n\n :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if none provided.\n :return: default or...
95
false
genomoncology/related
init_default
18,086
LDU_FT/SecurityInnovation/PGPy/hashdata
LDU_FT
[ "<BEGIN>\n## `decrypt_sk`", "The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hashdata API. 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 hashdata API. 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...
All signatures are formed by producing a hash over the signature data, and then using the resulting hash in the signature algorithm.
"All signatures are formed by producing a hash over the signature\n data, and then using the resulting hash in the signature algorithm."
197
false
SecurityInnovation/PGPy
hashdata
18,087
LDU_FT/vmlaker/mpipe/assemble
LDU_FT
[ "<BEGIN>\n## `init2`", "Create *num_workers* worker objects with *input_tube* and \n an iterable of *output_tubes*. The worker reads a task from *input_tube* \n and writes the result to *output_tubes*.\n<END>", "<BEGIN>\n## `assemble`", "Create, assemble and start workers.\n Workers are c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assemble API. 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 assemble API. 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...
Create, assemble and start workers. Workers are created of class *cls*, initialized with *args*, and given task/result communication channels *input_tube* and *output_tubes*. The number of workers created is according to *size* parameter. *do_stop_task* indicates whether doTask() will be...
"Create, assemble and start workers.\n Workers are created of class *cls*, initialized with *args*, and given\n task/result communication channels *input_tube* and *output_tubes*.\n The number of workers created is according to *size* parameter.\n *do_stop_task* indicates whether doTask() wi...
28
false
vmlaker/mpipe
assemble
18,088
LDU_FT/vimalloc/flask-jwt-extended/add_token_to_database
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 add_token_to_database 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 add_token_to_database API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Adds a new token to the database. It is not revoked when it is added. :param identity_claim:
"Adds a new token to the database. It is not revoked when it is added.\n :param identity_claim:"
71
false
vimalloc/flask-jwt-extended
add_token_to_database
18,089
LDU_FT/vicalloy/lbutils/get_setting
LDU_FT
[ "<BEGIN>\n## `get_sum`", "get sum for queryset.", " ``qs``: queryset\n ``field``: The field name to sum.\n<END>", "<BEGIN>\n## `get_max`", "get max for queryset.", " qs: queryset\n field: The field name to max.\n<END>", "<BEGIN>\n## `do_filter`", "auto filter queryset by dict.", " qs:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_setting API. 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...
get val form settings and set to context {% load lbutils %} {% get_setting "key" default_val "as_key" %} {{ as_key }} if as_key is None, this tag will return val
"get val form settings and set to context\n {% load lbutils %}\n {% get_setting \"key\" default_val \"as_key\" %}\n {{ as_key }}\n if as_key is None, this tag will return val"
30
false
vicalloy/lbutils
get_setting
18,090
LDU_FT/JukeboxPipeline/jukeboxmaya/set_parent
LDU_FT
[ "<BEGIN>\n## `main_func`", "Main funcion when executing this module as script", " :param args: commandline arguments\n :type args: list\n :returns: None\n :rtype: None\n :raises: None\n<END>", "<BEGIN>\n## `setup_launch_parser`", "Setup the given parser for the launch command", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_parent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Set the parent of the child reftrack node :param child: the child reftrack node :type child: str :param parent: the parent reftrack node :type parent: str :returns: None :rtype: None :raises: None
"Set the parent of the child reftrack node\n\n :param child: the child reftrack node\n :type child: str\n :param parent: the parent reftrack node\n :type parent: str\n :returns: None\n :rtype: None\n :raises: None"
241
false
JukeboxPipeline/jukeboxmaya
set_parent
18,091
LDU_FT/TadLeonard/tfatool/_write_file_safely
LDU_FT
[ "<BEGIN>\n## `up_down_by_arrival`", "Monitors a local directory and a remote FlashAir directory and\n generates sets of new files to be uploaded or downloaded.\n Sets to upload are generated in a tuple\n like (Direction.up, {...}), while download sets to download\n are generated in a tuple like (Direc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_file_safely 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 _write_file_safely 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...
attempts to stream a remote file into a local file object, removes the local file if it's interrupted by any error
"attempts to stream a remote file into a local file object,\n removes the local file if it's interrupted by any error"
34
false
TadLeonard/tfatool
_write_file_safely
18,092
LDU_FT/Atomistica/atomistica/get_delta_plus_epsilon
LDU_FT
[ "<BEGIN>\n## `read`", "Convenience function: Detect file extension and read via Atomistica or ASE.\n If reading a NetCDF files, frame numbers can be appended via '@'.\n e.g., a = read('traj.nc@5')\n<END>", "<BEGIN>\n## `write`", "Convenience function: Detect file extension and write via Atomistica or AS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_delta_plus_epsilon 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_delta_plus_epsilon API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Calculate delta_ij+epsilon_ij, i.e. the deformation gradient matrix
"Calculate delta_ij+epsilon_ij, i.e. the deformation gradient matrix"
40
false
Atomistica/atomistica
get_delta_plus_epsilon
18,093
LDU_FT/MacHu-GWU/crawlib-project/unfinished
LDU_FT
[ "<BEGIN>\n## `create_cache`", "Create a html cache. Html string will be automatically compressed.", " :param directory: path for the cache directory.\n :param compress_level: 0 ~ 9, 9 is slowest and smallest.\n :param kwargs: other arguments.\n :return: a `diskcache.Cache()`\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unfinished API. 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 unfinished API. 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...
Create text sql statement query for sqlalchemy that getting all unfinished task. :param finished_status: int, status code that less than this will be considered as unfinished. :param update_interval: int, the record will be updated every x seconds. :return: sqlalchemy text sql statement. **中...
"Create text sql statement query for sqlalchemy that getting all unfinished task.\n\n :param finished_status: int, status code that less than this\n will be considered as unfinished.\n :param update_interval: int, the record will be updated every x seconds.\n\n :return: sqlalchemy text sql statement.\n\...
77
false
MacHu-GWU/crawlib-project
unfinished
18,094
LDU_FT/geographika/mappyfile/format
LDU_FT
[ "<BEGIN>\n## `standardise_quotes`", "Change the quotes used to wrap a value to the pprint default\n E.g. \"val\" to 'val' or 'val' to \"val\"\n<END>", "<BEGIN>\n## `process_key_dict`", "Process key value dicts e.g. METADATA \"key\" \"value\"\n<END>", "<BEGIN>\n## `process_repeated_list`", "Process ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. 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 format API. 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 ...
Format a the input-mapfile and save as output-mapfile. Note output-mapfile will be overwritten if it already exists. Example of formatting a single Mapfile: mappyfile format C:/Temp/valid.map C:/Temp/valid_formatted.map Example of formatting a single Mapfile with single quotes and tabs for indent...
"Format a the input-mapfile and save as output-mapfile. Note output-mapfile will be\n overwritten if it already exists.\n\n Example of formatting a single Mapfile:\n\n mappyfile format C:/Temp/valid.map C:/Temp/valid_formatted.map\n\n Example of formatting a single Mapfile with single quotes and tabs fo...
184
false
geographika/mappyfile
format
18,095
LDU_FT/jmcgeheeiv/pyfakefs/open
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Open the file pointed by this path and return a fake file object. Raises: IOError: if the target object is a directory, the path is invalid or permission is denied.
"Open the file pointed by this path and return a fake file object.\n\n Raises:\n IOError: if the target object is a directory, the path is invalid\n or permission is denied."
534
false
jmcgeheeiv/pyfakefs
open
18,096
LDU_FT/UCSBarchlab/PyRTL/signed_le
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Sets the wire, register, and memory values to default or as specified.", " :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signed_le API. 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 signed_le API. 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 a single bit result of signed less than or equal comparison.
"Return a single bit result of signed less than or equal comparison."
416
false
UCSBarchlab/PyRTL
signed_le
18,097
LDU_FT/svenkreiss/pysparkling/load
LDU_FT
[ "<BEGIN>\n## `get_fs`", "Find the file system implementation for this path.\n<END>", "<BEGIN>\n## `awaitTermination`", "Wait for context to stop.", " :param float timeout: in seconds\n<END>", "<BEGIN>\n## `binaryRecordsStream`", "Monitor a directory and process all binary files.", " File...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load the data from a file. :param str encoding: The character encoding of the file. :param str encoding_errors: How to handle encoding errors. :rtype: io.StringIO
"Load the data from a file.\n\n :param str encoding: The character encoding of the file.\n :param str encoding_errors: How to handle encoding errors.\n :rtype: io.StringIO"
109
false
svenkreiss/pysparkling
load
18,098
LDU_FT/pjanis/funtool/_combined_grouping_values
LDU_FT
[ "<BEGIN>\n## `_wrap_measure`", "Creates a function on a state_collection, which creates analysis_collections for each state in the collection.", " Optionally sorts the collection if the state_measure has a sort_by parameter (see funtool.lib.general.sort_states for details)\n<END>", "<BEGIN>\n## `analysis_c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combined_grouping_values 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 _combined_grouping_values API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
returns a dict with values from both collections for a given grouping name Warning: collection2 overrides collection1 if there is a group_key conflict
"returns a dict with values from both collections for a given grouping name\n\n Warning: collection2 overrides collection1 if there is a group_key conflict"
40
false
pjanis/funtool
_combined_grouping_values
18,099
LDU_FT/quantmind/pulsar/cookiejar_from_dict
LDU_FT
[ "<BEGIN>\n## `slugify`", "Normalizes string, removes non-alpha characters,\n and converts spaces to ``separator`` character\n<END>", "<BEGIN>\n## `multi_bulk`", "Multi bulk encoding for list/tuple ``args``\n<END>", "<BEGIN>\n## `is_mainthread`", "Check if thread is the main thread.", " If ``thread...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookiejar_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cookiejar_from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Returns a CookieJar from a key/value dictionary. :param cookie_dict: Dict of key/values to insert into CookieJar.
"Returns a CookieJar from a key/value dictionary.\n\n :param cookie_dict: Dict of key/values to insert into CookieJar."
643
false
quantmind/pulsar
cookiejar_from_dict
18,100
LDU_FT/Yelp/detect-secrets/initialize
LDU_FT
[ "<BEGIN>\n## `determine_file_type`", ":param filename: str", " :rtype: FileType\n<END>", "<BEGIN>\n## `write_baseline_to_file`", ":type filename: str\n :type data: dict\n :rtype: None\n<END>", "<BEGIN>\n## `load_baseline_from_string`", "Initializes a SecretsCollection object from string.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API. 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 initialize API. 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...
Scans the entire codebase for secrets, and returns a SecretsCollection object. :type plugins: tuple of detect_secrets.plugins.base.BasePlugin :param plugins: rules to initialize the SecretsCollection with. :type exclude_files_regex: str|None :type exclude_lines_regex: str|None :type path: str ...
"Scans the entire codebase for secrets, and returns a\n SecretsCollection object.\n\n :type plugins: tuple of detect_secrets.plugins.base.BasePlugin\n :param plugins: rules to initialize the SecretsCollection with.\n\n :type exclude_files_regex: str|None\n :type exclude_lines_regex: str|None\n :type p...
194
false
Yelp/detect-secrets
initialize
18,101
LDU_FT/shi-cong/PYSTUDY/to_str
LDU_FT
[ "<BEGIN>\n## `add_view`", "增加handler\n :param view_name: 路由\n :param handler: 处理类\n :return:\n<END>", "<BEGIN>\n## `start`", "启动服务器\n :param port: 端口号\n :return:\n<END>", "<BEGIN>\n## `create_process`", "创建进程\n :param daemon: True主进程关闭而关闭, False主进程必须等待子进程结束\n :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_str API. 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 ...
将字节数组转成成字符串 :param s: 字节数组 :return: 字符串
"将字节数组转成成字符串\n :param s: 字节数组\n :return: 字符串"
91
false
shi-cong/PYSTUDY
to_str
18,102
LDU_FT/rsalmaso/django-fluo/_get_all_permissions
LDU_FT
[ "<BEGIN>\n## `dumps`", "Serialize ``obj`` to a JSON formatted ``str``.", " If ``skipkeys`` is false then ``dict`` keys that are not basic types\n (``str``, ``unicode``, ``int``, ``long``, ``float``, ``bool``, ``None``)\n will be skipped instead of raising a ``TypeError``.", " If ``ensure_ascii`` i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_all_permissions 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_all_permissions 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 (codename, name) for all permissions in the given opts.
"Returns (codename, name) for all permissions in the given opts."
36
false
rsalmaso/django-fluo
_get_all_permissions
18,103
LDU_FT/twisted/mantissa/_makeDefaultLiveForm
LDU_FT
[ "<BEGIN>\n## `createUser`", "Create a new, blank user account with the given name and domain and, if\n specified, with the given password.", " @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _makeDefaultLiveForm 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 _makeDefaultLiveForm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Make a liveform suitable for editing the set of default values C{defaults}. @type defaults: C{dict} @param defaults: Mapping of parameter names to values. @rtype: L{repeatedLiveFormWrapper}
"Make a liveform suitable for editing the set of default values C{defaults}.\n\n @type defaults: C{dict}\n @param defaults: Mapping of parameter names to values.\n\n @rtype: L{repeatedLiveFormWrapper}"
1,120
true
twisted/mantissa
_makeDefaultLiveForm
18,104
LDU_FT/aiidateam/aiida-nwchem/_get_output_nodes
LDU_FT
[ "<BEGIN>\n## `parse_with_retrieved`", "Receives in input a dictionary of retrieved nodes.\n Does all the logic here.\n<END>", "<BEGIN>\n## `_fetch_output_files`", "Checks the output folder for standard output and standard error\n files, returns their absolute paths on success.", " :para...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_output_nodes API. 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_output_nodes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Extracts output nodes from the standard output and standard error files.
"Extracts output nodes from the standard output and standard error\n files."
15
false
aiidateam/aiida-nwchem
_get_output_nodes
18,105
LDU_FT/uchicago-cs/deepdish/pad
LDU_FT
[ "<BEGIN>\n## `load`", "Loads an instance of the class from a file.", " Parameters\n ----------\n path : str\n Path to an HDF5 file.", " Examples\n --------\n This is an abstract data type, but let us say that ``Foo`` inherits\n from ``Saveable``. To ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Pad an array with a specific value. Parameters ---------- data : ndarray Numpy array of any dimension and type. padwidth : int or tuple If int, it will pad using this amount at the beginning and end of all dimensions. If it is a tuple (of same length as `ndim`), then the ...
"Pad an array with a specific value.\n\n Parameters\n ----------\n data : ndarray\n Numpy array of any dimension and type.\n padwidth : int or tuple\n If int, it will pad using this amount at the beginning and end of all\n dimensions. If it is a tuple (of same length as `ndim`), then th...
138
false
uchicago-cs/deepdish
pad
18,106
LDU_FT/frictionlessdata/tableschema-bigquery-py/iter
LDU_FT
[ "<BEGIN>\n## `buckets`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>", "<BEGIN>\n## `create`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>", "<BEGIN>\n## `delete`", "https://github.com/frictionlessdata/tableschema-bigquery-py#storage\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
https://github.com/frictionlessdata/tableschema-bigquery-py#storage
"https://github.com/frictionlessdata/tableschema-bigquery-py#storage"
12
false
frictionlessdata/tableschema-bigquery-py
iter
18,107
LDU_FT/trevisanj/a99/add_log
LDU_FT
[ "<BEGIN>\n## `make_code_readable`", "Add newlines at strategic places in code string for printing.\r", " Args:\r\n s: str, piece of code. If not str, will attempt to convert to str.\r", " Returns:\r\n str\n<END>", "<BEGIN>\n## `chunk_string`", "Splits a string into fixed-length chunks....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_log API. 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_log API. 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...
Logs to 4 different outputs: conditionally to 3, and certainly to get_python_logger()
"Logs to 4 different outputs: conditionally to 3, and certainly to get_python_logger()"
301
false
trevisanj/a99
add_log
18,108
LDU_FT/go-macaroon-bakery/py-macaroon-bakery/info
LDU_FT
[ "<BEGIN>\n## `encode_caveat`", "Encrypt a third-party caveat.", " The third_party_info key holds information about the\n third party we're encrypting the caveat for; the key is the\n public/private key pair of the party that's adding the caveat.", " The caveat will be encoded according to the vers...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Returns information on all the registered checkers. Sorted by namespace and then name :returns a list of CheckerInfo
"Returns information on all the registered checkers.\n\n Sorted by namespace and then name\n :returns a list of CheckerInfo"
223
false
go-macaroon-bakery/py-macaroon-bakery
info
18,109
LDU_FT/aparsons/threadfix_api/create_application
LDU_FT
[ "<BEGIN>\n## `create_application`", "Creates an application under a given team.\n :param team_id: Team identifier.\n :param name: The name of the new application being created.\n :param url: The url of where the application is located.\n<END>", "<BEGIN>\n## `get_application_by_name`", "Re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_application 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 create_application 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...
Creates an application under a given team. :param team_id: Team identifier. :param name: The name of the new application being created. :param url: The url of where the application is located.
"Creates an application under a given team.\n :param team_id: Team identifier.\n :param name: The name of the new application being created.\n :param url: The url of where the application is located."
25
false
aparsons/threadfix_api
create_application
18,110
LDU_FT/cjdrake/pyeda/inv_sub_bytes
LDU_FT
[ "<BEGIN>\n## `ripple_carry_add`", "Return symbolic logic for an N-bit ripple carry adder.\n<END>", "<BEGIN>\n## `kogge_stone_add`", "Return symbolic logic for an N-bit Kogge-Stone adder.\n<END>", "<BEGIN>\n## `brent_kung_add`", "Return symbolic logic for an N-bit Brent-Kung adder.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inv_sub_bytes API. 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 inv_sub_bytes API. 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...
Transformation in the Inverse Cipher that is the inverse of SubBytes().
"Transformation in the Inverse Cipher that is the inverse of SubBytes()."
410
false
cjdrake/pyeda
inv_sub_bytes
18,111
LDU_FT/BerkeleyAutomation/visualization/mesh_stable_pose
LDU_FT
[ "<BEGIN>\n## `figure`", "Create a blank figure.", " Parameters\n ----------\n bgcolor : (3,) float\n Color of the background with values in [0,1].\n size : (2,) int\n Width and height of the figure in pixels.\n<END>", "<BEGIN>\n## `show`", "Display the current...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mesh_stable_pose API. 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 mesh_stable_pose API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Visualize a mesh in a stable pose. Parameters ---------- mesh : trimesh.Trimesh The mesh to visualize. T_obj_table : autolab_core.RigidTransform Pose of object relative to table. T_table_world : autolab_core.RigidTransform Pose of table relati...
"Visualize a mesh in a stable pose.\n\n Parameters\n ----------\n mesh : trimesh.Trimesh\n The mesh to visualize.\n T_obj_table : autolab_core.RigidTransform\n Pose of object relative to table.\n T_table_world : autolab_core.RigidTransform\n Pose of ta...
54
false
BerkeleyAutomation/visualization
mesh_stable_pose
18,112
LDU_FT/alecthomas/voluptuous/_compile_sequence
LDU_FT
[ "<BEGIN>\n## `truth`", "Convenience decorator to convert truth functions into validators.", " >>> @truth\n ... def isdir(v):\n ... return os.path.isdir(v)\n >>> validate = Schema(isdir)\n >>> validate('/')\n '/'\n >>> with raises(MultipleInvalid, 'not a valid v...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile_sequence API. 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 _compile_sequence API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Validate a sequence type. This is a sequence of valid values or validators tried in order. >>> validator = Schema(['one', 'two', int]) >>> validator(['one']) ['one'] >>> with raises(er.MultipleInvalid, 'expected int @ data[0]'): ... validator([3.5]) >>> valida...
"Validate a sequence type.\n\n This is a sequence of valid values or validators tried in order.\n\n >>> validator = Schema(['one', 'two', int])\n >>> validator(['one'])\n ['one']\n >>> with raises(er.MultipleInvalid, 'expected int @ data[0]'):\n ... validator([3.5])\n ...
98
false
alecthomas/voluptuous
_compile_sequence
18,113
LDU_FT/lappis-unb/salic-ml/get_providers_info
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_providers_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_providers_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. Th...
Return all info about providers of a project with the given pronac.
"Return all info about providers of a\n project with the given pronac."
102
false
lappis-unb/salic-ml
get_providers_info
18,114
LDU_FT/shichao-an/115wangpan/upload
LDU_FT
[ "<BEGIN>\n## `send`", "Send a formatted API request", " :param request: a formatted request object\n :type request: :class:`.Request`\n :param bool expect_json: if True, raise :class:`.InvalidAPIAccess` if\n response is not in JSON format\n :param bool ignore_content: whet...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API. 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 upload API. 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 ...
Upload a file ``filename`` to ``directory`` :param str filename: path to the file to upload :param directory: destionation :class:`.Directory`, defaults to :attribute:`.API.downloads_directory` if None :return: the uploaded file :rtype: :class:`.File`
"Upload a file ``filename`` to ``directory``\n\n :param str filename: path to the file to upload\n :param directory: destionation :class:`.Directory`, defaults to\n :attribute:`.API.downloads_directory` if None\n :return: the uploaded file\n :rtype: :class:`.File`"
100
false
shichao-an/115wangpan
upload
18,115
LDU_FT/MKLab-ITI/reveal-user-annotation/store_snow_tweets_from_disk_to_mongodb
LDU_FT
[ "<BEGIN>\n## `safe_twitter_request_handler`", "This is a safe function handler for any twitter request.", " Inputs: - twitter_api_func: The twython function object to be safely called.\n - call_rate_limit: THe call rate limit for this specific Twitter API function.\n - call_counter: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_snow_tweets_from_disk_to_mongodb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_snow_tweets_from_disk_to_mongodb API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Store all SNOW tweets in a mongodb collection.
"Store all SNOW tweets in a mongodb collection."
192
false
MKLab-ITI/reveal-user-annotation
store_snow_tweets_from_disk_to_mongodb
18,116
LDU_FT/fudge-py/fudge/clear_calls
LDU_FT
[ "<BEGIN>\n## `fmt_val`", "Format a value for inclusion in an \n informative text string.\n<END>", "<BEGIN>\n## `fmt_dict_vals`", "Returns list of key=val pairs formatted\n for inclusion in an informative text string.\n<END>", "<BEGIN>\n## `with_patched_object`", "Decorator that patches an object bef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_calls API. 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 clear_calls API. 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...
Clears out any calls that were made on previously registered fake objects and resets all call stacks. You do not need to use this directly. Use fudge.clear_calls()
"Clears out any calls that were made on previously\n registered fake objects and resets all call stacks.\n\n You do not need to use this directly. Use fudge.clear_calls()"
155
false
fudge-py/fudge
clear_calls
18,117
LDU_FT/metacloud/gilt/_has_tag
LDU_FT
[ "<BEGIN>\n## `config`", "Construct `Config` object and return a list.", " :parse filename: A string containing the path to YAML file.\n :return: list\n<END>", "<BEGIN>\n## `_get_files_config`", "Construct `FileConfig` object and return a list.", " :param src_dir: A string containing the source di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _has_tag API. 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 _has_tag API. 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...
Determine a version is a local git tag name or not. :param version: A string containing the branch/tag/sha to be determined. :param debug: An optional bool to toggle debug output. :return: bool
"Determine a version is a local git tag name or not.\n\n :param version: A string containing the branch/tag/sha to be determined.\n :param debug: An optional bool to toggle debug output.\n :return: bool"
50
false
metacloud/gilt
_has_tag
18,118
LDU_FT/ikalnytskyi/dooku/get
LDU_FT
[ "<BEGIN>\n## `to_iso8601`", "Returns an ISO-8601 representation of a given datetime instance.", " >>> to_iso8601(datetime.datetime.now())\n '2014-10-01T23:21:33.718508Z'", " :param dt: a :class:`~datetime.datetime` instance\n :param tz: a :class:`~datetime.tzinfo` to use; if None - use a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Returns an extension instance with a given name. In case there are few extensions with a given name, the first one will be returned. If no extensions with a given name are exist, the `default` value will be returned. :param name: (str) an extension name :param default: (object)...
"Returns an extension instance with a given name.\n\n In case there are few extensions with a given name, the first one\n will be returned. If no extensions with a given name are exist,\n the `default` value will be returned.\n\n :param name: (str) an extension name\n :param default: ...
36
false
ikalnytskyi/dooku
get
18,119
LDU_FT/tsnaomi/finnsyll/wsp
LDU_FT
[ "<BEGIN>\n## `syllabify`", "Syllabify the given word, whether simplex or complex.\n<END>", "<BEGIN>\n## `apply_T2`", "There is a syllable boundary within a VV sequence of two nonidentical\n vowels that are not a genuine diphthong, e.g., [ta.e], [ko.et.taa].\n<END>", "<BEGIN>\n## `apply_T5`", "If a (V)V...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wsp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wsp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the number of unstressed heavy syllables.
"Return the number of unstressed heavy syllables."
108
false
tsnaomi/finnsyll
wsp
18,120
LDU_FT/amueller/word_cloud/process_tokens
LDU_FT
[ "<BEGIN>\n## `process_tokens`", "Normalize cases and remove plurals.", " Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (exc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_tokens API. 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 process_tokens API. 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...
Normalize cases and remove plurals. Each word is represented by the most common case. If a word appears with an "s" on the end and without an "s" on the end, the version with "s" is assumed to be a plural and merged with the version without "s" (except if the word ends with "ss"). Parameters -...
"Normalize cases and remove plurals.\n\n Each word is represented by the most common case.\n If a word appears with an \"s\" on the end and without an \"s\" on the end,\n the version with \"s\" is assumed to be a plural and merged with the\n version without \"s\" (except if the word ends with \"ss\").\n\n ...
45
false
amueller/word_cloud
process_tokens
18,121
LDU_FT/ecordell/pymacaroons/serialize
LDU_FT
[ "<BEGIN>\n## `equals`", "Returns True if the two strings are equal, False otherwise.", " The time taken is independent of the number of characters that match.", " For the sake of simplicity, this function executes in constant time only\n when the two strings have the same length. It short-circuits wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. 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 serialize API. 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...
Serialize the macaroon in JSON format indicated by the version field. @param macaroon the macaroon to serialize. @return JSON macaroon.
"Serialize the macaroon in JSON format indicated by the version field.\n\n @param macaroon the macaroon to serialize.\n @return JSON macaroon."
46
false
ecordell/pymacaroons
serialize
18,122
LDU_FT/glue-viz/glue-vispy-viewers/glBufferData
LDU_FT
[ "<BEGIN>\n## `iso_mesh_line`", "Generate an isocurve from vertex data in a surface mesh.", " Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the glBufferData API. 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 glBufferData API. 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...
Data can be numpy array or the size of data to allocate.
"Data can be numpy array or the size of data to allocate."
1,752
true
glue-viz/glue-vispy-viewers
glBufferData
18,123
LDU_FT/PetrochukM/PyTorch-NLP/batch_encode
LDU_FT
[ "<BEGIN>\n## `imdb_dataset`", "Load the IMDB dataset (Large Movie Review Dataset v1.0).", " This is a dataset for binary sentiment classification containing substantially more data than\n previous benchmark datasets. Provided a set of 25,000 highly polar movie reviews for\n training, and 25,000 for tes...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_encode API. 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 batch_encode API. 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...
Args: iterator (iterator): Batch of labels to encode. *args: Arguments passed to ``Encoder.batch_encode``. dim (int, optional): Dimension along which to concatenate tensors. **kwargs: Keyword arguments passed to ``Encoder.batch_encode``. Returns: torc...
"Args:\n iterator (iterator): Batch of labels to encode.\n *args: Arguments passed to ``Encoder.batch_encode``.\n dim (int, optional): Dimension along which to concatenate tensors.\n **kwargs: Keyword arguments passed to ``Encoder.batch_encode``.\n\n Returns:\n ...
261
false
PetrochukM/PyTorch-NLP
batch_encode
18,124
LDU_FT/seatgeek/businesstime/businesstimedelta
LDU_FT
[ "<BEGIN>\n## `iterdays`", "Date iterator returning dates in d1 <= x < d2\n<END>", "<BEGIN>\n## `iterweekdays`", "Date iterator returning dates in d1 <= x < d2, excluding weekends\n<END>", "<BEGIN>\n## `iterbusinessdays`", "Date iterator returning dates in d1 <= x < d2, excluding weekends and holidays\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the businesstimedelta API. 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 businesstimedelta API. 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 a datetime.timedelta with the number of full business days and business time between d1 and d2
"Returns a datetime.timedelta with the number of full business days\n and business time between d1 and d2"
12
false
seatgeek/businesstime
businesstimedelta
18,125
LDU_FT/jwass/mplleaflet/display
LDU_FT
[ "<BEGIN>\n## `iterencode`", "Encode the given object and yield each string\n representation as available.\n For example::\n for chunk in JSONEncoder().iterencode(bigobject):\n mysocket.write(chunk)\n<END>", "<BEGIN>\n## `fig_to_html`", "Convert a Matplotlib Figure to a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display API. 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 display API. 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...
Convert a Matplotlib Figure to a Leaflet map. Embed in IPython notebook. Parameters ---------- fig : figure, default gcf() Figure used to convert to map closefig : boolean, default True Close the current Figure
"Convert a Matplotlib Figure to a Leaflet map. Embed in IPython notebook.\n\n Parameters\n ----------\n fig : figure, default gcf()\n Figure used to convert to map\n closefig : boolean, default True\n Close the current Figure"
23
false
jwass/mplleaflet
display
18,126
LDU_FT/PureStorage-OpenConnect/rest-client/disable_directory_service
LDU_FT
[ "<BEGIN>\n## `_check_rest_version`", "Validate a REST API version is supported by the library and target array.\n<END>", "<BEGIN>\n## `_choose_rest_version`", "Return the newest REST API version supported by target array.\n<END>", "<BEGIN>\n## `_list_available_rest_versions`", "Return a list of the REST A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_directory_service 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 disable_directory_service API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Disable the directory service. :param check_peer: If True, disables server authenticity enforcement. If False, disables directory service integration. :type check_peer: bool, optional :returns: A dictionary describing the status of the dire...
"Disable the directory service.\n\n :param check_peer: If True, disables server authenticity\n enforcement. If False, disables directory\n service integration.\n :type check_peer: bool, optional\n\n :returns: A dictionary describing the status of ...
166
false
PureStorage-OpenConnect/rest-client
disable_directory_service
18,127
LDU_FT/Yelp/threat_intel/domain_tag
LDU_FT
[ "<BEGIN>\n## `init_poolmanager`", "Called to initialize the HTTPAdapter when no proxy is used.\n<END>", "<BEGIN>\n## `proxy_manager_for`", "Called to initialize the HTTPAdapter when a proxy is used.\n<END>", "<BEGIN>\n## `make_calls`", "Adds appropriate sleep to avoid making too many calls.", " A...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the domain_tag API. 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 domain_tag API. 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 the data range when a domain is part of OpenDNS block list. Args: domains: an enumerable of strings domain names Returns: An enumerable of string with period, category, and url
"Get the data range when a domain is part of OpenDNS block list.\n\n Args:\n domains: an enumerable of strings domain names\n Returns:\n An enumerable of string with period, category, and url"
149
false
Yelp/threat_intel
domain_tag
18,128
LDU_FT/singularityhub/singularity-cli/_setup
LDU_FT
[ "<BEGIN>\n## `run`", "run is a wrapper to create, start, attach, and delete a container.", " Equivalent command line example: \n singularity oci run -b ~/bundle mycontainer", " Parameters\n ==========\n bundle: the full path to the bundle folder\n container_id:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup API. 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 _setup API. 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 ...
setup required adding content from the host to the rootfs, so we try to capture with with ADD.
"setup required adding content from the host to the rootfs,\n so we try to capture with with ADD."
336
false
singularityhub/singularity-cli
_setup
18,129
LDU_FT/jazzband/django-simple-menu/match_url
LDU_FT
[ "<BEGIN>\n## `add_item`", "add_item adds MenuItems to the menu identified by 'name'\n<END>", "<BEGIN>\n## `load_menus`", "load_menus loops through INSTALLED_APPS and loads the menu.py\n files from them.\n<END>", "<BEGIN>\n## `sort_menus`", "sort_menus goes through the items and sorts them based on\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_url API. 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 match_url API. 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...
match url determines if this is selected
"match url determines if this is selected"
14
false
jazzband/django-simple-menu
match_url
18,130
LDU_FT/collectiveacuity/labPack/positional_filter
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 positional_filter API. 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 positional_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
a method to construct a conditional filter function to test positional arguments :param positional_filters: dictionary or list of dictionaries with query criteria :param title: string with name of function to use instead :return: callable for filter_function NOTE: query criteria architecture ...
"a method to construct a conditional filter function to test positional arguments\n\n :param positional_filters: dictionary or list of dictionaries with query criteria\n :param title: string with name of function to use instead\n :return: callable for filter_function \n\n NOTE: query criteria architecture...
886
false
collectiveacuity/labPack
positional_filter
18,131
LDU_FT/dask/dask-ml/_slice_mostly_sorted
LDU_FT
[ "<BEGIN>\n## `normalize_params`", "Take a list of dictionaries, and tokenize/normalize.\n<END>", "<BEGIN>\n## `check_cv`", "Dask aware version of ``sklearn.model_selection.check_cv``", " Same as the scikit-learn version, but works if ``y`` is a dask object.\n<END>", "<BEGIN>\n## `compute_n_splits`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _slice_mostly_sorted 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 _slice_mostly_sorted API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Slice dask array `array` that is almost entirely sorted already. We perform approximately `2 * len(keep)` slices on `array`. This is OK, since `keep` is small. Individually, each of these slices is entirely sorted. Parameters ---------- array : dask.array.Array keep : ndarray[Int] ...
"Slice dask array `array` that is almost entirely sorted already.\n\n We perform approximately `2 * len(keep)` slices on `array`.\n This is OK, since `keep` is small. Individually, each of these slices\n is entirely sorted.\n\n Parameters\n ----------\n array : dask.array.Array\n keep : ndarray[Int...
361
false
dask/dask-ml
_slice_mostly_sorted
18,132
LDU_FT/ikumen/flask-cfg/_merge_values
LDU_FT
[ "<BEGIN>\n## `process_loaded_configs`", "Takes the loaded config values (from YAML files) and performs the\n following clean up steps:", " 1. remove all value keys that are not uppercase\n 2. resolve any keys with missing values", " Note: resolving missing values does not fail fast...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_values API. 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 _merge_values API. 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...
Merges two dictionaries of values recursively. This is a very naive implementation that expects the two dictionaries to be fairly similar in structure. @param to_values destination dictionary @param from_values dictionary with values to copy
"Merges two dictionaries of values recursively. This is a very naive\n implementation that expects the two dictionaries to be fairly similar \n in structure.\n\n @param to_values destination dictionary\n @param from_values dictionary with values to copy"
21
false
ikumen/flask-cfg
_merge_values
18,133
LDU_FT/odlgroup/odl/astra_conebeam_3d_geom_to_vec
LDU_FT
[ "<BEGIN>\n## `is_valid_input_array`", "Test if ``x`` is a correctly shaped point array in R^d.\n<END>", "<BEGIN>\n## `is_valid_input_meshgrid`", "Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>", "<BEGIN>\n## `out_shape_from_meshgrid`", "Get the broadcast output shape from a `meshgrid`.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the astra_conebeam_3d_geom_to_vec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the astra_conebeam_3d_geom_to_vec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Create vectors for ASTRA projection geometries from ODL geometry. The 3D vectors are used to create an ASTRA projection geometry for cone beam geometries, see ``'cone_vec'`` in the `ASTRA projection geometry documentation`_. Each row of the returned vectors corresponds to a single projection and c...
"Create vectors for ASTRA projection geometries from ODL geometry.\n\n The 3D vectors are used to create an ASTRA projection geometry for\n cone beam geometries, see ``'cone_vec'`` in the\n `ASTRA projection geometry documentation`_.\n\n Each row of the returned vectors corresponds to a single projection\n ...
4,047
true
odlgroup/odl
astra_conebeam_3d_geom_to_vec
18,134
LDU_FT/instana/python-sensor/record_span
LDU_FT
[ "<BEGIN>\n## `run`", "Span a background thread to periodically report queued spans\n<END>", "<BEGIN>\n## `record_span`", "Convert the passed BasicSpan into an JsonSpan and\n add it to the span queue\n<END>", "<BEGIN>\n## `build_registered_span`", "Takes a BasicSpan and converts it into a registered...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the record_span API. 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 record_span API. 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...
Convert the passed BasicSpan into an JsonSpan and add it to the span queue
"Convert the passed BasicSpan into an JsonSpan and\n add it to the span queue"
76
false
instana/python-sensor
record_span
18,135
LDU_FT/neuropsychology/NeuroKit.py/ecg_find_peaks
LDU_FT
[ "<BEGIN>\n## `complexity`", "Computes several chaos/complexity indices of a signal (including entropy, fractal dimensions, Hurst and Lyapunov exponent etc.).", " Parameters\n ----------\n signal : list or array\n List or array of values.\n sampling_rate : int\n Sampling rate (samples/s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecg_find_peaks API. 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 ecg_find_peaks API. 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 R peaks indices on the ECG channel. Parameters ---------- signal : list or ndarray ECG signal (preferably filtered). sampling_rate : int Sampling rate (samples/second). Returns ---------- rpeaks : list List of R-peaks location indices. Example -------...
"Find R peaks indices on the ECG channel.\n\n Parameters\n ----------\n signal : list or ndarray\n ECG signal (preferably filtered).\n sampling_rate : int\n Sampling rate (samples/second).\n\n\n Returns\n ----------\n rpeaks : list\n List of R-peaks location indices.\n\n Exa...
778
false
neuropsychology/NeuroKit.py
ecg_find_peaks
18,136
LDU_FT/frictionlessdata/tableschema-py/validate
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API. 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 validate API. 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...
Validate that a supposed schema is in fact a Table Schema.
"Validate that a supposed schema is in fact a Table Schema."
38
false
frictionlessdata/tableschema-py
validate
18,137
LDU_FT/minhhoit/yacms/ifinstalled
LDU_FT
[ "<BEGIN>\n## `formfield`", "Apply the widget class defined by the\n ``RICHTEXT_WIDGET_CLASS`` setting.\n<END>", "<BEGIN>\n## `as_tag`", "Creates a tag expecting the format:\n ``{% tag_name as var_name %}``\n The decorated func returns the value that is given to\n ``var_name`` in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ifinstalled API. 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 ifinstalled API. 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...
Old-style ``if`` tag that renders contents if the given app is installed. The main use case is: {% ifinstalled app_name %} {% include "app_name/template.html" %} {% endifinstalled %} so we need to manually pull out all tokens if the app isn't installed, since if we used a normal ``if`` tag wit...
"Old-style ``if`` tag that renders contents if the given app is\n installed. The main use case is:\n\n {% ifinstalled app_name %}\n {% include \"app_name/template.html\" %}\n {% endifinstalled %}\n\n so we need to manually pull out all tokens if the app isn't\n installed, since if we used a normal ``i...
502
false
minhhoit/yacms
ifinstalled
18,138
LDU_FT/PyAr/fades/_parse_requirement
LDU_FT
[ "<BEGIN>\n## `consolidate_dependencies`", "Parse files, get deps and merge them. Deps read later overwrite those read earlier.\n<END>", "<BEGIN>\n## `decide_child_program`", "Decide which the child program really is (if any).\n<END>", "<BEGIN>\n## `detect_inside_virtualenv`", "Tell if fades is running ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_requirement API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_requirement 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...
Actually parse the requirements, from file or manually specified.
"Actually parse the requirements, from file or manually specified."
85
false
PyAr/fades
_parse_requirement
18,139
LDU_FT/heikomuller/sco-engine/from_dict
LDU_FT
[ "<BEGIN>\n## `handle_request`", "Convert a model run request from the buffer into a message in a RabbitMQ\n queue.", " Parameters\n ----------\n request : dict\n Buffer entry containing 'connector' and 'request' field\n<END>", "<BEGIN>\n## `from_dict`", "Create a model output file object ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create a model output file object from a dictionary.
"Create a model output file object from a dictionary."
66
false
heikomuller/sco-engine
from_dict
18,140
LDU_FT/crdoconnor/strictyaml/flatten
LDU_FT
[ "<BEGIN>\n## `set_up`", "Set up your applications and the test environment.\n<END>", "<BEGIN>\n## `fork`", "Return a chunk referring to the same location in a duplicated document.", " Used when modifying a YAML chunk so that the modification can be validated\n before changing it.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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...
Yield items from any nested iterable. >>> list(flatten([[1, 2, 3], [[4, 5], 6, 7]])) [1, 2, 3, 4, 5, 6, 7]
"Yield items from any nested iterable.\n\n >>> list(flatten([[1, 2, 3], [[4, 5], 6, 7]]))\n [1, 2, 3, 4, 5, 6, 7]"
54
false
crdoconnor/strictyaml
flatten
18,141
LDU_FT/cnt-dev/cnt.rulebase/result
LDU_FT
[ "<BEGIN>\n## `result`", "Generate intervals indicating the valid sentences.\n<END>", "<BEGIN>\n## `build_re_pattern_from_intervals`", "Convert intervals to regular expression pattern.", " :param intervals: Unicode codepoint intervals.\n<END>", "<BEGIN>\n## `result`", "Execute the workflow.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. 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 result API. 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 ...
Generate intervals indicating the valid sentences.
"Generate intervals indicating the valid sentences."
12
false
cnt-dev/cnt.rulebase
result
18,142
LDU_FT/swift-nav/libsbp/read_spec
LDU_FT
[ "<BEGIN>\n## `read`", "Read wrapper.", " Parameters\n ----------\n size : int\n Number of bytes to read.\n<END>", "<BEGIN>\n## `handle_fields`", "Helper for handling naming and sizing of fields. It's terrible.\n<END>", "<BEGIN>\n## `convert`", "Converts to a C language appr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_spec API. 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 read_spec API. 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...
Read an SBP specification. Parameters ---------- filename : str Local filename for specification. verbose : bool Print out some debugging info Returns ---------- Raises ---------- Exception On empty file. yaml.YAMLError On Yaml parsing error voluptuous.Invalid On invalid SBP...
"Read an SBP specification.\n\n Parameters\n ----------\n filename : str\n Local filename for specification.\n verbose : bool\n Print out some debugging info\n\n Returns\n ----------\n\n Raises\n ----------\n Exception\n On empty file.\n yaml.YAMLError\n On Yaml parsing error\n voluptuous.Invalid...
114
false
swift-nav/libsbp
read_spec
18,143
LDU_FT/ebu/PlugIt/update_session
LDU_FT
[ "<BEGIN>\n## `doQuery`", "Send a request to the server and return the result\n<END>", "<BEGIN>\n## `ping`", "Return true if the server successfully pinged\n<END>", "<BEGIN>\n## `checkVersion`", "Check if the server use the same version of our protocol\n<END>", "<BEGIN>\n## `getMedia`", "Return a tuple...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_session API. 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 update_session API. 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...
Update the session with users-realted values
"Update the session with users-realted values"
75
false
ebu/PlugIt
update_session
18,144
LDU_FT/stephantul/somber/_propagate
LDU_FT
[ "<BEGIN>\n## `_calculate_influence`", "Pre-calculate the influence for a given value of sigma.", " The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).", " Parameters\n ----------\n neighborhood : float\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _propagate API. 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 _propagate API. 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...
Propagate a single batch of examples through the network.
"Propagate a single batch of examples through the network."
123
false
stephantul/somber
_propagate
18,145
LDU_FT/projectatomic/osbs-client/wait
LDU_FT
[ "<BEGIN>\n## `get_openshift_base_uri`", "https://<host>[:<port>]/", " :return: str\n<END>", "<BEGIN>\n## `get_builder_openshift_url`", "url of OpenShift where builder will connect\n<END>", "<BEGIN>\n## `generate_nodeselector_dict`", "helper method for generating nodeselector dict\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
:param build_id: wait for build to finish :return:
":param build_id: wait for build to finish\n\n :return:"
268
false
projectatomic/osbs-client
wait
18,146
LDU_FT/Richienb/quilt/mailto
LDU_FT
[ "<BEGIN>\n## `userinput`", "Get the input of the user via a universally secure method.", " :type prompttext: string\n :param prompttext: The text to display while receiving the data.", " :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mailto API. 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 mailto API. 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 ...
Generate and run mailto. :type to: string :param to: The recipient email address. :type cc: string :param cc: The recipient to copy to. :type bcc: string :param bcc: The recipient to blind copy to. :type subject: string :param subject: The subject to use. :type body: string ...
"Generate and run mailto.\n\n :type to: string\n :param to: The recipient email address.\n\n :type cc: string\n :param cc: The recipient to copy to.\n\n :type bcc: string\n :param bcc: The recipient to blind copy to.\n\n :type subject: string\n :param subject: The subject to use.\n\n :type bo...
210
false
Richienb/quilt
mailto
18,147
LDU_FT/DMSC-Instrument-Data/lewis/start_server
LDU_FT
[ "<BEGIN>\n## `get_submodules`", "This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.", " :param module: Module object from wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_server API. 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 start_server API. 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 a pcaspy-server. .. note:: The server does not process requests unless :meth:`handle` is called regularly.
"Creates a pcaspy-server.\n\n .. note::\n\n The server does not process requests unless :meth:`handle` is called regularly."
198
false
DMSC-Instrument-Data/lewis
start_server
18,148
LDU_FT/ly0/baidupcsapi/ruokuai_captcha_handler
LDU_FT
[ "<BEGIN>\n## `__err_handler`", "百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典", " 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ruokuai_captcha_handler 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 ruokuai_captcha_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
若快自动识别验证码, 文档见: http://wiki.ruokuai.com/
"若快自动识别验证码, 文档见: http://wiki.ruokuai.com/"
222
false
ly0/baidupcsapi
ruokuai_captcha_handler
18,149
LDU_FT/nameko/nameko/bind
LDU_FT
[ "<BEGIN>\n## `run_services`", "Serves a number of services for a contextual block.\n The caller can specify a number of service classes then serve them either\n stopping (default) or killing them on exiting the contextual block.", " Example::", " with run_services(config, Foobar, Spam) as runn...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Get an instance of this Extension to bind to `container`.
"Get an instance of this Extension to bind to `container`."
155
false
nameko/nameko
bind
18,150
LDU_FT/cameronbwhite/Flask-CAS/create_cas_validate_url
LDU_FT
[ "<BEGIN>\n## `login`", "This route has two purposes. First, it is used by the user\n to login. Second, it is used by the CAS to respond with the\n `ticket` after the user logs in successfully.", " When the user accesses this url, they are redirected to the CAS\n to login. If the login was successful...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_cas_validate_url 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_cas_validate_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create a CAS validate URL. Keyword arguments: cas_url -- The url to the CAS (ex. http://sso.pdx.edu) cas_route -- The route where the CAS lives on server (ex. /cas/serviceValidate) service -- (ex. http://localhost:5000/login) ticket -- (ex. 'ST-58274-x839euFek492ou832Eena7ee-cas') renew -- "tr...
"Create a CAS validate URL.\n\n Keyword arguments:\n cas_url -- The url to the CAS (ex. http://sso.pdx.edu)\n cas_route -- The route where the CAS lives on server (ex. /cas/serviceValidate)\n service -- (ex. http://localhost:5000/login)\n ticket -- (ex. 'ST-58274-x839euFek492ou832Eena7ee-cas')\n rene...
20
false
cameronbwhite/Flask-CAS
create_cas_validate_url
18,151
LDU_FT/Metatab/metatab/get
LDU_FT
[ "<BEGIN>\n## `split_term`", "Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>", "<BEGIN>\n## `split_term_lower`", "Like split_term, but also lowercases both parent and record term\n :param term: combin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Return the first term, returning the default if no term is found
"Return the first term, returning the default if no term is found"
102
false
Metatab/metatab
get
18,152
LDU_FT/Trax-air/swagger-parser/_example_from_array_spec
LDU_FT
[ "<BEGIN>\n## `_validate_post_body`", "returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>", "<BEGIN>\n## `build_definitions_example`", "Parse all definitions in the swagger specification.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _example_from_array_spec 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 _example_from_array_spec API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Get an example from a property specification of an array. Args: prop_spec: property specification you want an example of. Returns: An example array.
"Get an example from a property specification of an array.\n\n Args:\n prop_spec: property specification you want an example of.\n\n Returns:\n An example array."
100
false
Trax-air/swagger-parser
_example_from_array_spec
18,153
LDU_FT/msfrank/cifparser/iter_fields
LDU_FT
[ "<BEGIN>\n## `make_path`", ":param path_or_str_or_segments:\n :return:\n :rtype: cifparser.path.Path\n<END>", "<BEGIN>\n## `print_ast`", ":param f:\n :type f: file\n :return:\n<END>", "<BEGIN>\n## `pop_frame`", "Remove and return the frame at the top of the stack.", " :returns: The to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_fields API. 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 iter_fields API. 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...
Iterate all fields as a sequence of (path,name,value) tuples. :return:
"Iterate all fields as a sequence of (path,name,value) tuples.\n\n :return:"
67
false
msfrank/cifparser
iter_fields
18,154
LDU_FT/thespacedoctor/polyglot/_print_original_webpage
LDU_FT
[ "<BEGIN>\n## `create`", "*create the webarchive object*", " **Key Arguments:**\n - ``url`` -- the url of the webpage to generate the webarchive for\n - ``pathToWebarchive`` -- tthe path to output the the webarchive file to ", " **Return:**\n - ``webarchive`` -- t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_original_webpage 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 _print_original_webpage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
*print the original webpage* **Return:** - ``pdfPath`` -- the path to the generated PDF
"*print the original webpage*\n\n **Return:**\n - ``pdfPath`` -- the path to the generated PDF"
170
false
thespacedoctor/polyglot
_print_original_webpage
18,155
LDU_FT/spencerahill/aospy/_maybe_cast_to_float64
LDU_FT
[ "<BEGIN>\n## `_preprocess_and_rename_grid_attrs`", "Call a custom preprocessing method first then rename grid attrs.", " This wrapper is needed to generate a single function to pass to the\n ``preprocesss`` of xr.open_mfdataset. It makes sure that the\n user-specified preprocess function is called on ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maybe_cast_to_float64 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 _maybe_cast_to_float64 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Cast DataArrays to np.float64 if they are of type np.float32. Parameters ---------- da : xr.DataArray Input DataArray Returns ------- DataArray
"Cast DataArrays to np.float64 if they are of type np.float32.\n\n Parameters\n ----------\n da : xr.DataArray\n Input DataArray\n\n Returns\n -------\n DataArray"
323
false
spencerahill/aospy
_maybe_cast_to_float64
18,156
LDU_FT/faucamp/python-gsmmodem/connect
LDU_FT
[ "<BEGIN>\n## `status`", "Status of this SMS. Can be ENROUTE, DELIVERED or FAILED", " The actual status report object may be accessed via the 'report' attribute\n if status is 'DELIVERED' or 'FAILED'\n<END>", "<BEGIN>\n## `connect`", "Opens the port and initializes the modem and SIM card", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. 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 connect API. 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...
Connects to the device and starts the read thread
"Connects to the device and starts the read thread"
214
false
faucamp/python-gsmmodem
connect
18,157
LDU_FT/b-ryan/powerline-shell/rgb2short
LDU_FT
[ "<BEGIN>\n## `rgb2short`", "Find the closest xterm-256 approximation to the given RGB value.\n @param r,g,b: each is a number between 0-255 for the Red, Green, and Blue values\n @returns: integer between 0 and 255, compatible with xterm.\n >>> rgb2short(18, 52, 86)\n 23\n >>> rgb2short(255, 255, 25...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rgb2short API. 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 rgb2short API. 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...
Find the closest xterm-256 approximation to the given RGB value. @param r,g,b: each is a number between 0-255 for the Red, Green, and Blue values @returns: integer between 0 and 255, compatible with xterm. >>> rgb2short(18, 52, 86) 23 >>> rgb2short(255, 255, 255) 231 >>> rgb2short(13, 173, 2...
"Find the closest xterm-256 approximation to the given RGB value.\n @param r,g,b: each is a number between 0-255 for the Red, Green, and Blue values\n @returns: integer between 0 and 255, compatible with xterm.\n >>> rgb2short(18, 52, 86)\n 23\n >>> rgb2short(255, 255, 255)\n 231\n >>> rgb2short(13...
13
false
b-ryan/powerline-shell
rgb2short
18,158
LDU_FT/neoinsanity/cognate/_configure_logging
LDU_FT
[ "<BEGIN>\n## `copy_attribute_values`", "Function to copy attributes from a source to a target object.", "This method copies the property values in a given list from a given\nsource object to a target source object.", ":param source: The source object that is to be inspected for property\n values.\n:type so...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _configure_logging 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 _configure_logging 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...
This method configures the self.log entity for log handling. :return: None The method will cognate_configure the logging facilities for the derive service instance. This includes setting up logging to files and console. The configured log will be available to the service instan...
"This method configures the self.log entity for log handling.\n\n :return: None\n\n The method will cognate_configure the logging facilities for the\n derive service instance. This includes setting up logging to files\n and console. The configured log will be available to the service\n ...
36
false
neoinsanity/cognate
_configure_logging
18,159
LDU_FT/ladybug-tools/uwg/hvac_autosize
LDU_FT
[ "<BEGIN>\n## `solarcalcs`", "Solar Calculation\n Mutates RSM, BEM, and UCM objects based on following parameters:\n UCM # Urban Canopy - Building Energy Model object\n BEM # Building Energy Model object\n simTime # Simulation time bbject\n RSM...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hvac_autosize API. 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 hvac_autosize API. 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...
Section 6 - HVAC Autosizing (unlimited cooling & heating)
"Section 6 - HVAC Autosizing (unlimited cooling & heating)"
53
false
ladybug-tools/uwg
hvac_autosize
18,160
LDU_FT/5monkeys/djedi-cms/post
LDU_FT
[ "<BEGIN>\n## `_encode_content`", "Join node uri and content as string and convert to bytes to ensure no pickling in memcached.\n<END>", "<BEGIN>\n## `_decode_content`", "Split node string to uri and content and convert back to unicode.\n<END>", "<BEGIN>\n## `render_node`", "Render node as html for templat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Render data for plugin and return text response.
"Render data for plugin and return text response."
37
false
5monkeys/djedi-cms
post
18,161
LDU_FT/dddomodossola/remi/select_by_value
LDU_FT
[ "<BEGIN>\n## `add_coord`", "Adds a coord to the polyline and creates another circle\n<END>", "<BEGIN>\n## `set_stroke`", "Sets the stroke properties.\r", " Args:\r\n width (int): stroke width\r\n color (str): stroke color\n<END>", "<BEGIN>\n## `add_arrow_coord`", "Determine ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_by_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Selects an item by the text content of the child. Args: value (str): Text content of the item that have to be selected.
"Selects an item by the text content of the child.\n\n Args:\n value (str): Text content of the item that have to be selected."
195
false
dddomodossola/remi
select_by_value
18,162
LDU_FT/openstack/python-monascaclient/do_notification_type_list
LDU_FT
[ "<BEGIN>\n## `format_parameters`", "Reformat parameters into dict of format expected by the API.\n<END>", "<BEGIN>\n## `do_metric_statistics`", "List measurement statistics for the specified metric.\n<END>", "<BEGIN>\n## `do_notification_type_list`", "List notification types supported by monasca.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_notification_type_list 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 do_notification_type_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
List notification types supported by monasca.
"List notification types supported by monasca."
17
false
openstack/python-monascaclient
do_notification_type_list
18,163
LDU_FT/dailymuse/oz/_sqlalchemy_on_connection_close
LDU_FT
[ "<BEGIN>\n## `db`", "Gets the SQLALchemy session for this request\n<END>", "<BEGIN>\n## `_sqlalchemy_on_finish`", "Closes the sqlalchemy transaction. Rolls back if an error occurred.\n<END>", "<BEGIN>\n## `_sqlalchemy_on_connection_close`", "Rollsback and closes the active session, since the client discon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sqlalchemy_on_connection_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sqlalchemy_on_connection_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Rollsback and closes the active session, since the client disconnected before the request could be completed.
"Rollsback and closes the active session, since the client disconnected before the request\n could be completed."
58
false
dailymuse/oz
_sqlalchemy_on_connection_close
18,164
LDU_FT/linkedin/Zopkio/soft_bounce
LDU_FT
[ "<BEGIN>\n## `make_machine_mapping`", "Convert the machine list argument from a list of names into a mapping of logical names to\n physical hosts. This is similar to the _parse_configs function but separated to provide the\n opportunity for extension and additional checking of machine access\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the soft_bounce API. 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 soft_bounce API. 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...
Performs a soft bounce (stop and start) for the specified process :Parameter unique_id: the name of the process
"Performs a soft bounce (stop and start) for the specified process\n\n :Parameter unique_id: the name of the process"
85
false
linkedin/Zopkio
soft_bounce
18,165
LDU_FT/supercoderz/pyflightdata/decode_metar
LDU_FT
[ "<BEGIN>\n## `get_history_by_flight_number`", "Fetch the history of a flight by its number.", " This method can be used to get the history of a flight route by the number.\n It checks the user authentication and returns the data accordingly.", " Args:\n flight_number (str): The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_metar API. 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 decode_metar API. 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...
Simple method that decodes a given metar string. Args: metar (str): The metar data Returns: The metar data in readable format Example:: from pyflightdata import FlightData f=FlightData() f.decode_metar('WSSS 181030Z 04009KT 010V080 ...
"Simple method that decodes a given metar string.\n\n Args:\n metar (str): The metar data\n\n Returns:\n The metar data in readable format\n\n Example::\n\n from pyflightdata import FlightData\n f=FlightData()\n f.decode_metar('WSSS 181030Z 040...
99
false
supercoderz/pyflightdata
decode_metar
18,166
LDU_FT/astooke/gtimer/wrap
LDU_FT
[ "<BEGIN>\n## `start`", "Mark the start of timing, overwriting the automatic start data written on\n import, or the automatic start at the beginning of a subdivision.", " Notes:\n Backdating: For subdivisions only. Backdate time must be in the past\n but more recent than the latest stamp in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Decorator function which can automatically induce a subdivision on entering a subfunction or method. Can be used (as @gtimer.wrap) with or without any arguments. Notes: If subdivide is False, then the wrapper does nothing but return the provided function. If a name is not provided...
"Decorator function which can automatically induce a subdivision on\n entering a subfunction or method. Can be used (as @gtimer.wrap) with or\n without any arguments.\n\n Notes:\n If subdivide is False, then the wrapper does nothing but return the\n provided function.\n\n If a name is not...
137
false
astooke/gtimer
wrap
18,167
LDU_FT/manolomartinez/greg/parse_feed_info
LDU_FT
[ "<BEGIN>\n## `retrieve_data_directory`", "Retrieve the data directory\n Look first into config_filename_global\n then into config_filename_user. The latter takes preeminence.\n<END>", "<BEGIN>\n## `retrieve_config`", "Retrieves a value (with a certain fallback) from the config files\n (lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_feed_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 parse_feed_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...
Take a feed file in .local/share/greg/data and return a list of links and of dates
"Take a feed file in .local/share/greg/data and return a list of links and\n of dates"
26
false
manolomartinez/greg
parse_feed_info
18,168
LDU_FT/pytest-dev/pluggy/get_result
LDU_FT
[ "<BEGIN>\n## `create_branch`", "Create a fresh branch from upstream/master\n<END>", "<BEGIN>\n## `get_upstream`", "Find upstream repository for pluggy on the remotes\n<END>", "<BEGIN>\n## `pre_release`", "Generates new docs, release announcements and creates a local tag.\n<END>", "<BEGIN>\n## `_wrapped_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_result API. 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_result API. 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 the result(s) for this hook call. If the hook was marked as a ``firstresult`` only a single value will be returned otherwise a list of results.
"Get the result(s) for this hook call.\n\n If the hook was marked as a ``firstresult`` only a single value\n will be returned otherwise a list of results."
52
false
pytest-dev/pluggy
get_result
18,169
LDU_FT/LIVVkit/LIVVkit/nested_insert
LDU_FT
[ "<BEGIN>\n## `run_suite`", "Run the full suite of verification tests\n<END>", "<BEGIN>\n## `_analyze_case`", "Runs all of the verification checks on a particular case\n<END>", "<BEGIN>\n## `_summarize_result`", "Trim out some data to return for the index page\n<END>", "<BEGIN>\n## `bit_for_bit`", "Che...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nested_insert API. 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 nested_insert API. 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 series of nested LIVVDicts given a list
"Create a series of nested LIVVDicts given a list"
107
false
LIVVkit/LIVVkit
nested_insert
18,170
LDU_FT/mrcagney/gtfstk/geometrize_shapes
LDU_FT
[ "<BEGIN>\n## `get_stop_times`", "Return a subset of ``feed.stop_times``.", " Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date", " Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the geometrize_shapes API. 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 geometrize_shapes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Given a GTFS shapes DataFrame, convert it to a GeoPandas GeoDataFrame and return the result. The result has a ``'geometry'`` column of WGS84 LineStrings instead of the columns ``'shape_pt_sequence'``, ``'shape_pt_lon'``, ``'shape_pt_lat'``, and ``'shape_dist_traveled'``. If ``use_utm``, then use loc...
"Given a GTFS shapes DataFrame, convert it to a GeoPandas\n GeoDataFrame and return the result.\n The result has a ``'geometry'`` column of WGS84 LineStrings\n instead of the columns ``'shape_pt_sequence'``, ``'shape_pt_lon'``,\n ``'shape_pt_lat'``, and ``'shape_dist_traveled'``.\n If ``use_utm``, then u...
474
false
mrcagney/gtfstk
geometrize_shapes
18,171
LDU_FT/bronto/javasphinx/_process_table_cells
LDU_FT
[ "<BEGIN>\n## `find_source_files`", "Get a list of filenames for all Java source files within the given\n directory.\n<END>", "<BEGIN>\n## `__default_filter`", "Excludes private members and those tagged \"@hide\" / \"@exclude\" in their\n docblocks.\n<END>", "<BEGIN>\n## `__output_see`", "Convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_table_cells 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 _process_table_cells API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Compile all the table cells. Returns a list of rows. The rows may have different lengths because of column spans.
"Compile all the table cells.\n\n Returns a list of rows. The rows may have different lengths because of\n column spans."
13
false
bronto/javasphinx
_process_table_cells
18,172