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/spookylukey/django-paypal/validate_confirm_form | LDU_FT | [
"<BEGIN>\n## `render_payment_form`",
"Display the DirectPayment for entering payment information.\n<END>",
"<BEGIN>\n## `validate_payment_form`",
"Try to validate and then process the DirectPayment form.\n<END>",
"<BEGIN>\n## `redirect_to_express`",
"First step of ExpressCheckout. Redirect the request to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_confirm_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_confirm_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Third and final step of ExpressCheckout. Request has pressed the confirmation but
and we can send the final confirmation to PayPal using the data from the POST'ed form. | "Third and final step of ExpressCheckout. Request has pressed the confirmation but\n and we can send the final confirmation to PayPal using the data from the POST'ed form." | 65 | false | spookylukey/django-paypal | validate_confirm_form | 22,773 | |
LDU_FT/xapple/plumbing/path | LDU_FT | [
"<BEGIN>\n## `plot_and_save`",
"Used when the plot method defined does not create a figure nor calls save_plot\n Then the plot method has to use self.fig\n<END>",
"<BEGIN>\n## `plot`",
"An example plot function. You have to subclass this method.\n<END>",
"<BEGIN>\n## `count_processors`",
"How many ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Iterate over all parent nodes and one-self. | "Iterate over all parent nodes and one-self." | 150 | false | xapple/plumbing | path | 22,774 | |
LDU_FT/creare-com/pydem/_central_slopes_directions | LDU_FT | [
"<BEGIN>\n## `_get_flat_ids`",
"This is a helper function to recover the coordinates of regions that have\n been labeled within an image. This function efficiently computes the\n coordinate of all regions and returns the information in a memory-efficient\n manner.",
" Parameters\n -----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _central_slopes_directions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _central_slopes_directions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Calculates magnitude/direction of slopes using central difference | "Calculates magnitude/direction of slopes using central difference" | 201 | false | creare-com/pydem | _central_slopes_directions | 22,775 | |
LDU_FT/mongolab/mongoctl/needs_to_auth | LDU_FT | [
"<BEGIN>\n## `ensure_dir`",
"If DIR_PATH does not exist, makes it. Failing that, raises Exception.\n Returns True if dir already existed; False if it had to be made.\n<END>",
"<BEGIN>\n## `is_same_host`",
"Returns true if host1 == host2 OR map to the same host (using DNS)\n<END>",
"<BEGIN>\n## `is_same_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the needs_to_auth API.
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 needs_to_auth API.
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... | Determines if the server needs to authenticate to the database.
NOTE: we stopped depending on is_auth() since its only a configuration
and may not be accurate | "Determines if the server needs to authenticate to the database.\n NOTE: we stopped depending on is_auth() since its only a configuration\n and may not be accurate" | 46 | false | mongolab/mongoctl | needs_to_auth | 22,776 | |
LDU_FT/numba/llvmlite/_find_module_ptr | LDU_FT | [
"<BEGIN>\n## `create_mcjit_compiler`",
"Create a MCJIT ExecutionEngine from the given *module* and\n *target_machine*.\n<END>",
"<BEGIN>\n## `add_module`",
"Ownership of module is transferred to the execution engine\n<END>",
"<BEGIN>\n## `target_data`",
"The TargetData for this execution engine.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_module_ptr API.
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 _find_module_ptr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Find the ModuleRef corresponding to the given pointer. | "Find the ModuleRef corresponding to the given pointer." | 226 | false | numba/llvmlite | _find_module_ptr | 22,777 | |
LDU_FT/vstconsulting/vstutils/run | LDU_FT | [
"<BEGIN>\n## `load_yaml`",
"Load OpenAPI specification from yaml file. Path to file taking from command\n `vst_openapi`.\n :return:\n<END>",
"<BEGIN>\n## `write`",
"Add lines to ViewList, for further rendering.\n :param value: --line that would be added to render list\n :type value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
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 run API.
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... | Main function for prepare and render OpenAPI specification
:return: | "Main function for prepare and render OpenAPI specification\n :return:" | 68 | false | vstconsulting/vstutils | run | 22,778 | |
LDU_FT/holgern/pyedflib/get_all_dict | LDU_FT | [
"<BEGIN>\n## `short_path`",
"Return relative or absolute path name, whichever is shortest.\n<END>",
"<BEGIN>\n## `get_all_dict`",
"Return a copy of the __all__ dict with irrelevant items removed.\n<END>",
"<BEGIN>\n## `compare`",
"Return sets of objects only in __all__, refguide, or completely missing.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_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 extr... | Return a copy of the __all__ dict with irrelevant items removed. | "Return a copy of the __all__ dict with irrelevant items removed." | 135 | false | holgern/pyedflib | get_all_dict | 22,779 | |
LDU_FT/PyMLGame/pymlgame/update | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the screens contents in every loop.\n<END>",
"<BEGIN>\n## `render`",
"Send the current screen content to Mate Light.\n<END>",
"<BEGIN>\n## `gameloop`",
"A game loop that circles through the methods.\n<END>",
"<BEGIN>\n## `init`",
"Initialize PyMLGame. This creates a con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
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 update API.
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 ... | Sends the current screen contents to Mate Light | "Sends the current screen contents to Mate Light" | 63 | false | PyMLGame/pymlgame | update | 22,780 | |
LDU_FT/bitlabstudio/django-review/user_has_reviewed | LDU_FT | [
"<BEGIN>\n## `get_reviews`",
"Simply returns the reviews for an object.\n<END>",
"<BEGIN>\n## `get_review_average`",
"Returns the review average for an object.\n<END>",
"<BEGIN>\n## `render_category_averages`",
"Renders all the sub-averages for each category.\n<END>",
"<BEGIN>\n## `total_review_average`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_has_reviewed API.
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 user_has_reviewed API.
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 True if the user has already reviewed the object. | "Returns True if the user has already reviewed the object." | 10 | false | bitlabstudio/django-review | user_has_reviewed | 22,781 | |
LDU_FT/cons3rt/pycons3rt/find_bucket_keys | LDU_FT | [
"<BEGIN>\n## `getdict`",
"Returns a standard python Dict with computed values\n from the DynDict\n :param source: (DynDict) input\n :return: (dict) Containing computed values\n<END>",
"<BEGIN>\n## `get_ec2_client`",
"Gets an EC2 client",
" :return: boto3.client object\n :raises: AWSAPIError\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_bucket_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_bucket_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Finds a list of S3 keys matching the passed regex
Given a regular expression, this method searches the S3 bucket
for matching keys, and returns an array of strings for matched
keys, an empty array if non are found.
:param regex: (str) Regular expression to use is the key search
:param bucket_name:... | "Finds a list of S3 keys matching the passed regex\n\n Given a regular expression, this method searches the S3 bucket\n for matching keys, and returns an array of strings for matched\n keys, an empty array if non are found.\n\n :param regex: (str) Regular expression to use is the key search\n :param buck... | 386 | false | cons3rt/pycons3rt | find_bucket_keys | 22,782 | |
LDU_FT/visualfabriq/bquery/clean_tmp_rootdir | LDU_FT | [
"<BEGIN>\n## `rm_file_or_dir`",
"Helper function to clean a certain filepath",
" Parameters\n ----------\n path",
" Returns\n -------\n<END>",
"<BEGIN>\n## `cache_valid`",
"Checks whether the column has a factorization that exists and is not older than the source",
" :param col:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_tmp_rootdir API.
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 clean_tmp_rootdir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | clean up all used temporary rootdirs
Returns
------- | "clean up all used temporary rootdirs\n\n Returns\n -------" | 60 | false | visualfabriq/bquery | clean_tmp_rootdir | 22,783 | |
LDU_FT/jilljenn/tryalgo/fast_exponentiation | LDU_FT | [
"<BEGIN>\n## `three_partition`",
"partition a set of integers in 3 parts of same total value",
" :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>",
"<BEGIN>\n## `freivalds`",
"Tests matrix product... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_exponentiation 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 fast_exponentiation 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... | Compute (a pow b) % q, alternative shorter implementation
:param int a b: non negative
:param int q: positive
:complexity: O(log b) | "Compute (a pow b) % q, alternative shorter implementation\n\n :param int a b: non negative\n :param int q: positive\n :complexity: O(log b)" | 423 | false | jilljenn/tryalgo | fast_exponentiation | 22,784 | |
LDU_FT/fracpete/python-weka-wrapper/next | LDU_FT | [
"<BEGIN>\n## `next`",
"Reads the next dataset row.",
" :return: the next row\n :rtype: Instance\n<END>",
"<BEGIN>\n## `main`",
"Runs a associator from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>",
"<BEGIN>\n## `next`",
"Returns the next rule... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
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 next API.
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... | Reads the next dataset row.
:return: the next row
:rtype: Instance | "Reads the next dataset row.\n\n :return: the next row\n :rtype: Instance" | 68 | false | fracpete/python-weka-wrapper | next | 22,785 | |
LDU_FT/campbellr/smashrun-client/to_timestamp | LDU_FT | [
"<BEGIN>\n## `to_timestamp`",
"Convert a datetime object to a unix timestamp.",
" Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.",
" If the passed in object is already a timestamp, then that value is\n simply returned unmodified.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_timestamp API.
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 to_timestamp API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Convert a datetime object to a unix timestamp.
Note that unlike a typical unix timestamp, this is seconds since 1970
*local time*, not UTC.
If the passed in object is already a timestamp, then that value is
simply returned unmodified. | "Convert a datetime object to a unix timestamp.\n\n Note that unlike a typical unix timestamp, this is seconds since 1970\n *local time*, not UTC.\n\n If the passed in object is already a timestamp, then that value is\n simply returned unmodified." | 41 | false | campbellr/smashrun-client | to_timestamp | 22,786 | |
LDU_FT/ask/redish/pop | LDU_FT | [
"<BEGIN>\n## `save`",
"Save this entry.",
" If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.",
" Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.",
" Add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API.
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 pop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get and remove key from database (atomic). | "Get and remove key from database (atomic)." | 88 | false | ask/redish | pop | 22,787 | |
LDU_FT/spotify/luigi/finite_datetimes | LDU_FT | [
"<BEGIN>\n## `_fetch_json`",
"Returns the json representation of the dep graph\n<END>",
"<BEGIN>\n## `prefix_search`",
"Searches for jobs matching the given ``job_name_prefix``.\n<END>",
"<BEGIN>\n## `status_search`",
"Searches for jobs matching the given ``status``.\n<END>",
"<BEGIN>\n## `move`",
"Mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finite_datetimes API.
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 finite_datetimes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Simply returns the points in time that correspond to a whole number of minutes intervals. | "Simply returns the points in time that correspond to a whole number of minutes intervals." | 765 | false | spotify/luigi | finite_datetimes | 22,788 | |
LDU_FT/cthoyt/onto2nx/getClassAllSupers | LDU_FT | [
"<BEGIN>\n## `parse_owl_rdf`",
"Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph",
" :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>",
"<BEGIN>\n## `get_or_create_home_repo`",
"Check to make... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getClassAllSupers API.
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 getClassAllSupers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | note: requires SPARQL 1.1
2015-06-04: currenlty not used, inferred from above | "note: requires SPARQL 1.1\n 2015-06-04: currenlty not used, inferred from above" | 102 | false | cthoyt/onto2nx | getClassAllSupers | 22,789 | |
LDU_FT/theosysbio/means/get | LDU_FT | [
"<BEGIN>\n## `simulate_system`",
"Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.",
" :param parameters: list of the init... | 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... | r"""
Provides the terms needed for equation 11 (see Ale et al. 2013).
This gives the expressions for :math:`\frac{d\beta}{dt}` in equation 9, these are the
time dependencies of the mixed moments
:param k_vec: :math:`k` in eq. 11
:param e_counter: :math:`e` in eq. 11
:ret... | "r\"\"\"\n Provides the terms needed for equation 11 (see Ale et al. 2013).\n This gives the expressions for :math:`\\frac{d\\beta}{dt}` in equation 9, these are the\n time dependencies of the mixed moments\n\n :param k_vec: :math:`k` in eq. 11\n :param e_counter: :math:`e` in eq. 11\... | 244 | false | theosysbio/means | get | 22,790 | |
LDU_FT/thomasbiddle/Kippt-for-Python/relationship | LDU_FT | [
"<BEGIN>\n## `mark_read`",
"Mark notifications as read.",
" CURRENT UNSUPPORTED:\n https://github.com/kippt/api-documentation/blob/master/endpoints/notifications/POST_notifications.md\n<END>",
"<BEGIN>\n## `update`",
"Updates a Clip.",
" Parameters:\n - args Dictionary of other... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relationship API.
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 relationship API.
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... | Retrieve what the relationship between the user and
then authenticated user is. | "Retrieve what the relationship between the user and\n then authenticated user is." | 16 | false | thomasbiddle/Kippt-for-Python | relationship | 22,791 | |
LDU_FT/chrisjsewell/jsonextended/class_to_str | LDU_FT | [
"<BEGIN>\n## `apply_unitschema`",
"apply the unit schema to the data",
" Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the class_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the class_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 extr... | get class string from object
Examples
--------
>>> class_to_str(list).split('.')[1]
'list' | "get class string from object\n\n Examples\n --------\n\n >>> class_to_str(list).split('.')[1]\n 'list'" | 347 | false | chrisjsewell/jsonextended | class_to_str | 22,792 | |
LDU_FT/taspinar/twitterscraper/query_tweets_once_generator | LDU_FT | [
"<BEGIN>\n## `get_user_info`",
"An example of using the query_user_info method\n :param twitter_user: the twitter user to capture user data\n :return: twitter_user_data: returns a dictionary of twitter user data\n<END>",
"<BEGIN>\n## `query_single_page`",
"Returns tweets from the given URL.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tweets_once_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_tweets_once_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Queries twitter for all the tweets you want! It will load all pages it gets
from twitter. However, twitter might out of a sudden stop serving new pages,
in that case, use the `query_tweets` method.
Note that this function catches the KeyboardInterrupt so it can return
tweets on incomplete queries if th... | "Queries twitter for all the tweets you want! It will load all pages it gets\n from twitter. However, twitter might out of a sudden stop serving new pages,\n in that case, use the `query_tweets` method.\n\n Note that this function catches the KeyboardInterrupt so it can return\n tweets on incomplete queries... | 18 | false | taspinar/twitterscraper | query_tweets_once_generator | 22,793 | |
LDU_FT/workforce-data-initiative/skills-utils/dates_in_range | LDU_FT | [
"<BEGIN>\n## `quarter_boundaries`",
"Returns first and last day of a quarter",
" Args:\n quarter (str) quarter, in format '2015Q1'",
" Returns: (tuple) datetime.dates for the first and last days of the quarter\n<END>",
"<BEGIN>\n## `metta_config`",
"Returns metta metadata for a quarter's SOC ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dates_in_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dates_in_range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns all dates between two dates.
Inclusive of the start date but not the end date.
Args:
start_date (datetime.date)
end_date (datetime.date)
Returns:
(list) of datetime.date objects | "Returns all dates between two dates.\n\n Inclusive of the start date but not the end date.\n\n Args:\n start_date (datetime.date)\n end_date (datetime.date)\n\n Returns:\n (list) of datetime.date objects" | 63 | false | workforce-data-initiative/skills-utils | dates_in_range | 22,794 | |
LDU_FT/asascience-open/paegan-transport/compute_probability | LDU_FT | [
"<BEGIN>\n## `export`",
"Export particle data to CF trajectory convention\n netcdf file\n<END>",
"<BEGIN>\n## `export`",
"Export particle and datetime data to Pickled objects.\n This can be used to debug or to generate different output\n in the future.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_probability 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 compute_probability 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... | This function creates a probability (stochastic) grid
for trajectory model data using 'overall' method (based
on normalization by nsteps * nparticles) or 'run' method
(based on normalization by run).
probability_grid = compute_probability([myfile1.nc, myfile2.nc],
... | "This function creates a probability (stochastic) grid \n for trajectory model data using 'overall' method (based\n on normalization by nsteps * nparticles) or 'run' method\n (based on normalization by run).\n \n probability_grid = compute_probability([myfile1.nc, myfile2.nc],\n ... | 98 | false | asascience-open/paegan-transport | compute_probability | 22,795 | |
LDU_FT/praekelt/django-object-tools/_view | LDU_FT | [
"<BEGIN>\n## `_create_permissions`",
"Almost exactly the same as django.contrib.auth.management.__init__.py\n<END>",
"<BEGIN>\n## `validate`",
"Does basic ObjectTool option validation.\n<END>",
"<BEGIN>\n## `register`",
"Registers the given model(s) with the given object tool class.",
" The model... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | View wrapper taking care of houskeeping for painless form rendering. | "View wrapper taking care of houskeeping for painless form rendering." | 20 | false | praekelt/django-object-tools | _view | 22,796 | |
LDU_FT/crs4/pydoop/get_java_home | LDU_FT | [
"<BEGIN>\n## `align_after`",
"Search for a sync point after offset and align just after that.\n<END>",
"<BEGIN>\n## `get_progress`",
"Give a rough estimate of the progress done.\n<END>",
"<BEGIN>\n## `is_local`",
"\\\n Is Hadoop configured to run in local mode?",
" By default, it is. [pseu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_java_home API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_java_home API.
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... | \
Try getting JAVA_HOME from system properties.
We are interested in the JDK home, containing include/jni.h, while the
java.home property points to the JRE home. If a JDK is installed, however,
the two are (usually) related: the JDK home is either the same directory
as the JRE home (recent java ver... | "\\\n Try getting JAVA_HOME from system properties.\n\n We are interested in the JDK home, containing include/jni.h, while the\n java.home property points to the JRE home. If a JDK is installed, however,\n the two are (usually) related: the JDK home is either the same directory\n as the JRE home (recent ... | 256 | false | crs4/pydoop | get_java_home | 22,797 | |
LDU_FT/pixelogik/NearPy/get_config | LDU_FT | [
"<BEGIN>\n## `store_vector`",
"Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `store_many_vectors`",
"Store a batch of vectors.\n Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `delete_vector`",
"Deletes vec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns pickle-serializable configuration struct for storage. | "Returns pickle-serializable configuration struct for storage." | 103 | false | pixelogik/NearPy | get_config | 22,798 | |
LDU_FT/coleifer/huey/crontab | LDU_FT | [
"<BEGIN>\n## `crontab`",
"Convert a \"crontab\"-style set of parameters into a test function that will\n return True when the given datetime matches the parameters set forth in\n the crontab.",
" For day-of-week, 0=Sunday and 6=Saturday.",
" Acceptable inputs:\n * = every distinct value\n */... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crontab API.
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 crontab API.
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 "crontab"-style set of parameters into a test function that will
return True when the given datetime matches the parameters set forth in
the crontab.
For day-of-week, 0=Sunday and 6=Saturday.
Acceptable inputs:
* = every distinct value
*/n = run every "n" times, i.e. hours='*/4' == 0... | "Convert a \"crontab\"-style set of parameters into a test function that will\n return True when the given datetime matches the parameters set forth in\n the crontab.\n\n For day-of-week, 0=Sunday and 6=Saturday.\n\n Acceptable inputs:\n * = every distinct value\n */n = run every \"n\" times, i.e. hou... | 26 | false | coleifer/huey | crontab | 22,799 | |
LDU_FT/wdbm/shijian/ensure_size | LDU_FT | [
"<BEGIN>\n## `tail`",
"Return a specified number of last lines of a specified file. If there is an\n error or the file does not exist, return False.\n<END>",
"<BEGIN>\n## `convert_type_list_elements`",
"Recursively convert all elements and all elements of all sublists of a list\n to a specified type and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_size API.
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 ensure_size API.
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... | This function removes the least frequent elements until the size
constraint is met. | "This function removes the least frequent elements until the size\n constraint is met." | 37 | false | wdbm/shijian | ensure_size | 22,800 | |
LDU_FT/CiscoUcs/UcsPythonSDK/Refresh | LDU_FT | [
"<BEGIN>\n## `get_boot_device`",
"Get the current boot device for the node.\r",
" Provides the current boot device of the node. Be aware that not\r\n all drivers support this.\r",
" :raises: InvalidParameterValue if any connection parameters are\r\n incorrect.\r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Refresh API.
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 Refresh API.
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... | Sends the aaaRefresh query to the UCS to refresh the connection (to prevent session expiration). | "Sends the aaaRefresh query to the UCS to refresh the connection (to prevent session expiration)." | 179 | false | CiscoUcs/UcsPythonSDK | Refresh | 22,801 | |
LDU_FT/PythonOptimizers/cygenja/register_filters | LDU_FT | [
"<BEGIN>\n## `set_parent`",
"Attach node to its parent.",
" Args:\n node: Parent node.",
" Note:\n ``node`` can be ``None``. In that case, the node is detached from its previous parent.\n<END>",
"<BEGIN>\n## `set_child_node`",
"Add one child node to this node.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Add/register filters.
Args:
filters (dict): Dictionary of Python functions to use as :program:`Jinja2` filters.
force (bool): If set to ``True``, forces the registration of a filter no matter if it already exists or not. | "Add/register filters.\n\n Args:\n filters (dict): Dictionary of Python functions to use as :program:`Jinja2` filters.\n force (bool): If set to ``True``, forces the registration of a filter no matter if it already exists or not." | 132 | false | PythonOptimizers/cygenja | register_filters | 22,802 | |
LDU_FT/IntelPython/mkl_fft/fft2 | LDU_FT | [
"<BEGIN>\n## `fft`",
"Compute the one-dimensional discrete Fourier Transform.",
" This function computes the one-dimensional *n*-point discrete Fourier\n Transform (DFT) with the efficient Fast Fourier Transform (FFT)\n algorithm [CT].",
" Parameters\n ----------\n a : array_like\n In... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fft2 API.
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 fft2 API.
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... | Compute the 2-dimensional discrete Fourier Transform
This function computes the *n*-dimensional discrete Fourier Transform
over any axes in an *M*-dimensional array by means of the
Fast Fourier Transform (FFT). By default, the transform is computed over
the last two axes of the input array, i.e., a 2-... | "Compute the 2-dimensional discrete Fourier Transform\n\n This function computes the *n*-dimensional discrete Fourier Transform\n over any axes in an *M*-dimensional array by means of the\n Fast Fourier Transform (FFT). By default, the transform is computed over\n the last two axes of the input array, i.e.... | 156 | false | IntelPython/mkl_fft | fft2 | 22,803 | |
LDU_FT/tommyod/streprogen/to_tex | LDU_FT | [
"<BEGIN>\n## `_set_scalers`",
"Set the variables self._scalers as given by self.scalers,\n if self.scalers is None, then a default value is used.\n<END>",
"<BEGIN>\n## `_validate`",
"The purpose of this method is to verify that the user has set sensible\n values for the training program before r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_tex API.
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_tex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Write the program information to a .tex file, which can be
rendered to .pdf running pdflatex. The program can then be
printed and brought to the gym.
Parameters
----------
text_size
The tex text size, e.g. '\small', 'normalsize', 'large', 'Large'
or 'LARG... | "Write the program information to a .tex file, which can be\n rendered to .pdf running pdflatex. The program can then be\n printed and brought to the gym.\n\n Parameters\n ----------\n text_size\n The tex text size, e.g. '\\small', 'normalsize', 'large', 'Large'\n ... | 129 | false | tommyod/streprogen | to_tex | 22,804 | |
LDU_FT/sepandhaghighi/pycm/lambda_B_calc | LDU_FT | [
"<BEGIN>\n## `print_report`",
"Print Compare report.",
" :return: None\n<END>",
"<BEGIN>\n## `save_report`",
"Save Compare report in .comp (flat file format).",
" :param name: filename\n :type name : str\n :param address: flag for address return\n :type address : bool\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lambda_B_calc API.
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 lambda_B_calc API.
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... | Calculate Goodman and Kruskal's lambda B.
:param classes: confusion matrix classes
:type classes : list
:param table: confusion matrix table
:type table : dict
:param TOP: test outcome positive
:type TOP : dict
:param POP: population
:type POP : int
:return: Goodman and Kruskal's la... | "Calculate Goodman and Kruskal's lambda B.\n\n :param classes: confusion matrix classes\n :type classes : list\n :param table: confusion matrix table\n :type table : dict\n :param TOP: test outcome positive\n :type TOP : dict\n :param POP: population\n :type POP : int\n :return: Goodman and K... | 259 | false | sepandhaghighi/pycm | lambda_B_calc | 22,805 | |
LDU_FT/CI-WATER/gsshapy/datasetScalarTimeStepChunk | LDU_FT | [
"<BEGIN>\n## `_read`",
"Generic Time Series Read from File Method\n<END>",
"<BEGIN>\n## `_write`",
"Generic Time Series Write to File Method\n<END>",
"<BEGIN>\n## `_createTimeSeriesObjects`",
"Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>",
"<BEGIN>\n## `_read`",
"Generic Output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datasetScalarTimeStepChunk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datasetScalarTimeStepChunk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Process the time step chunks for scalar datasets | "Process the time step chunks for scalar datasets" | 537 | false | CI-WATER/gsshapy | datasetScalarTimeStepChunk | 22,806 | |
LDU_FT/idmillington/layout/_compile_dimension_size | LDU_FT | [
"<BEGIN>\n## `_do_layout`",
"Lays the text out into separate lines and calculates their\n total height.\n<END>",
"<BEGIN>\n## `_calculate_ms_from_base`",
"Calculates the rotated minimum size from the given base minimum\n size.\n<END>",
"<BEGIN>\n## `render`",
"Draws the signature mark.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compile_dimension_size 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 _compile_dimension_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Build one set of col widths or row heights. | "Build one set of col widths or row heights." | 91 | false | idmillington/layout | _compile_dimension_size | 22,807 | |
LDU_FT/F5Networks/f5-common-python/_check_tagmode_and_tmos_version | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the object, removing device group if inherited",
" If inheritedDevicegroup is the string \"true\" we need to remove\n deviceGroup from the args before we update or we get the\n following error:",
" The floating traffic-group: /Common/traffic-group-1 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_tagmode_and_tmos_version 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 _check_tagmode_and_tmos_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Raise an exception if tagMode in kwargs and tmos version < 11.6.0
:param kwargs: dict -- keyword arguments for request
:raises: TagModeDisallowedForTMOSVersion | "Raise an exception if tagMode in kwargs and tmos version < 11.6.0\n\n :param kwargs: dict -- keyword arguments for request\n :raises: TagModeDisallowedForTMOSVersion" | 559 | false | F5Networks/f5-common-python | _check_tagmode_and_tmos_version | 22,808 | |
LDU_FT/ManiacalLabs/PixelWeb/build | LDU_FT | [
"<BEGIN>\n## `_re_flatten`",
"Turn all capturing groups in a regular expression pattern into\n non-capturing groups.\n<END>",
"<BEGIN>\n## `redirect`",
"Aborts execution and causes a 303 or 302 redirect, depending on\n the HTTP protocol version.\n<END>",
"<BEGIN>\n## `_file_iter_range`",
"Yi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Build an URL by filling the wildcards in a rule. | "Build an URL by filling the wildcards in a rule." | 100 | false | ManiacalLabs/PixelWeb | build | 22,809 | |
LDU_FT/tyiannak/pyAudioAnalysis/stMFCC | LDU_FT | [
"<BEGIN>\n## `recordAnalyzeAudio`",
"recordAnalyzeAudio(duration, outputWavFile, midTermBufferSizeSec, modelName, modelType)",
"\tThis function is used to record and analyze audio segments, in a fix window basis.",
"\tARGUMENTS: \n\t- duration\t\t\ttotal recording duration\n\t- outputWavFile\t\t\tpath of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stMFCC API.
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 stMFCC API.
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 ... | Computes the MFCCs of a frame, given the fft mag
ARGUMENTS:
X: fft magnitude abs(FFT)
fbank: filter bank (see mfccInitFilterBanks)
RETURN
ceps: MFCCs (13 element vector)
Note: MFCC calculation is, in general, taken from the
scikits.talkbox library (MI... | "Computes the MFCCs of a frame, given the fft mag\n\n ARGUMENTS:\n X: fft magnitude abs(FFT)\n fbank: filter bank (see mfccInitFilterBanks)\n RETURN\n ceps: MFCCs (13 element vector)\n\n Note: MFCC calculation is, in general, taken from the \n scikits.talkbox l... | 99 | false | tyiannak/pyAudioAnalysis | stMFCC | 22,810 | |
LDU_FT/hozn/keepassdb/_rebuild_groups | LDU_FT | [
"<BEGIN>\n## `to_struct`",
"Initialize properties of the appropriate struct class from this model class.\n<END>",
"<BEGIN>\n## `move`",
"Move this group to a new parent.",
" :param parent: The new parent group; if None will be root group.\n :type parent: :class:`keepassdb.model.Group`\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rebuild_groups API.
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 _rebuild_groups API.
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... | Recreates the groups master list based on the groups hierarchy (order matters here,
since the parser uses order to determine lineage). | "Recreates the groups master list based on the groups hierarchy (order matters here,\n since the parser uses order to determine lineage)." | 89 | false | hozn/keepassdb | _rebuild_groups | 22,811 | |
LDU_FT/polysquare/jobstamps/_run_cmd | LDU_FT | [
"<BEGIN>\n## `_run_cmd`",
"Run command specified by :cmd: and return stdout, stderr and code.\n<END>",
"<BEGIN>\n## `main`",
"Entry point for jobstamp command.",
" This will parse arguments and run the specified command in a subprocess. If\n the command has already been run, then the last captured std... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_cmd API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Run command specified by :cmd: and return stdout, stderr and code. | "Run command specified by :cmd: and return stdout, stderr and code." | 17 | false | polysquare/jobstamps | _run_cmd | 22,812 | |
LDU_FT/JoelBender/bacpypes/is_valid | LDU_FT | [
"<BEGIN>\n## `decode_packet`",
"decode the data, return some kind of PDU.\n<END>",
"<BEGIN>\n## `decode_file`",
"Given the name of a pcap file, open it, decode the contents and yield each packet.\n<END>",
"<BEGIN>\n## `stop`",
"Call to stop running, may be called with a signum and frame\n parameter if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return True if arg is valid value for the class. | "Return True if arg is valid value for the class." | 376 | false | JoelBender/bacpypes | is_valid | 22,813 | |
LDU_FT/vmware/pyvmomi/DiffAnyArrays | LDU_FT | [
"<BEGIN>\n## `_AddType`",
"Note: Must be holding the _lazyLock, or in main init path\n<END>",
"<BEGIN>\n## `GetServiceVersions`",
"Get all the versions for the service with specified namespace (partially) ordered\n by compatibility (i.e. any version in the list that is compatible with some version\n v in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DiffAnyArrays API.
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 DiffAnyArrays API.
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... | Diff two arrays which contain Any objects | "Diff two arrays which contain Any objects" | 128 | false | vmware/pyvmomi | DiffAnyArrays | 22,814 | |
LDU_FT/deep-compute/logagg/_is_ready | LDU_FT | [
"<BEGIN>\n## `start_daemon_thread`",
"starts a deamon thread for a given target function and arguments.\n<END>",
"<BEGIN>\n## `serialize_dict_keys`",
"returns all the keys in a dictionary.",
" >>> serialize_dict_keys({\"a\": {\"b\": {\"c\": 1, \"b\": 2} } })\n ['a', 'a.b', 'a.b.c', 'a.b.b']\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_ready API.
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 _is_ready API.
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... | Is NSQ running and have space to receive messages? | "Is NSQ running and have space to receive messages?" | 59 | false | deep-compute/logagg | _is_ready | 22,815 | |
LDU_FT/eight04/pyAPNG/from_chunks | LDU_FT | [
"<BEGIN>\n## `parse_chunks`",
"Parse PNG bytes into multiple chunks. ",
"\t:arg bytes b: The raw bytes of the PNG file.\n\t:return: A generator yielding :class:`Chunk`.\n\t:rtype: Iterator[Chunk]\n<END>",
"<BEGIN>\n## `make_chunk`",
"Create a raw chunk by composing chunk type and data. It\n\tcalculates chun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_chunks API.
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 from_chunks API.
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... | Construct PNG from raw chunks.
:arg chunks: A list of ``(chunk_type, chunk_raw_data)``. Also see
:func:`chunks`.
:type chunks: list[tuple(str, bytes)] | "Construct PNG from raw chunks.\n\t\t\n\t\t:arg chunks: A list of ``(chunk_type, chunk_raw_data)``. Also see\n\t\t\t:func:`chunks`.\n\t\t:type chunks: list[tuple(str, bytes)]" | 58 | false | eight04/pyAPNG | from_chunks | 22,816 | |
LDU_FT/fooelisa/pyiosxr/compare_config | LDU_FT | [
"<BEGIN>\n## `make_rpc_call`",
"Allow a user to query a device directly using XML-requests.",
" :param rpc_command: (str) rpc command such as:\n <Get><Operational><LLDP><NodeTable></NodeTable></LLDP></Operational></Get>\n<END>",
"<BEGIN>\n## `open`",
"Open a connectio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Compare configuration to be merged with the one on the device.
Compare executed candidate config with the running config and
return a diff, assuming the loaded config will be merged with the
existing one.
:return: Config diff. | "Compare configuration to be merged with the one on the device.\n\n Compare executed candidate config with the running config and\n return a diff, assuming the loaded config will be merged with the\n existing one.\n\n :return: Config diff." | 38 | false | fooelisa/pyiosxr | compare_config | 22,817 | |
LDU_FT/johnwmillr/LyricsGenius/get_artist_songs | LDU_FT | [
"<BEGIN>\n## `get_artist_songs`",
"Documents (songs) for the artist specified.\n<END>",
"<BEGIN>\n## `_scrape_song_lyrics_from_url`",
"Use BeautifulSoup to scrape song info off of a Genius song URL\n :param url: URL for the web page to scrape lyrics from\n<END>",
"<BEGIN>\n## `_clean_str`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_artist_songs API.
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_artist_songs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Documents (songs) for the artist specified. | "Documents (songs) for the artist specified." | 25 | false | johnwmillr/LyricsGenius | get_artist_songs | 22,818 | |
LDU_FT/holgern/pyedflib/setDigitalMinimum | LDU_FT | [
"<BEGIN>\n## `short_path`",
"Return relative or absolute path name, whichever is shortest.\n<END>",
"<BEGIN>\n## `get_all_dict`",
"Return a copy of the __all__ dict with irrelevant items removed.\n<END>",
"<BEGIN>\n## `compare`",
"Return sets of objects only in __all__, refguide, or completely missing.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setDigitalMinimum API.
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 setDigitalMinimum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Sets the minimum digital value of signal edfsignal.
Usually, the value -32768 is used for EDF+ and -8388608 for BDF+. Usually this will be (-(digital_maximum + 1)).
Parameters
----------
edfsignal : int
signal number
digital_minimum : int
Sets the minimum... | "Sets the minimum digital value of signal edfsignal.\n Usually, the value -32768 is used for EDF+ and -8388608 for BDF+. Usually this will be (-(digital_maximum + 1)).\n\n Parameters\n ----------\n edfsignal : int\n signal number\n digital_minimum : int\n Sets th... | 135 | false | holgern/pyedflib | setDigitalMinimum | 22,819 | |
LDU_FT/cocagne/txdbus/validateObjectPath | LDU_FT | [
"<BEGIN>\n## `isSignatureValid`",
"Verifies that the received signature matches the expected value\n<END>",
"<BEGIN>\n## `notifyOnDisconnect`",
"Registers a callback that will be called when the DBus connection\n underlying the remote object is lost",
" @type callback: Callable object acceptin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validateObjectPath 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 validateObjectPath 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... | Ensures that the provided object path conforms to the DBus standard.
Throws a L{error.MarshallingError} if non-conformant
@type p: C{string}
@param p: A DBus object path | "Ensures that the provided object path conforms to the DBus standard.\n Throws a L{error.MarshallingError} if non-conformant\n\n @type p: C{string}\n @param p: A DBus object path" | 160 | false | cocagne/txdbus | validateObjectPath | 22,820 | |
LDU_FT/paramiko/paramiko/set_event | LDU_FT | [
"<BEGIN>\n## `make_tarball`",
"Create a tar file from all the files under 'base_dir'.\n This file may be compressed.",
" :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Set an event on this buffer. When data is ready to be read (or the
buffer has been closed), the event will be set. When no data is
ready, the event will be cleared.
:param threading.Event event: the event to set/clear | "Set an event on this buffer. When data is ready to be read (or the\n buffer has been closed), the event will be set. When no data is\n ready, the event will be cleared.\n\n :param threading.Event event: the event to set/clear" | 608 | false | paramiko/paramiko | set_event | 22,821 | |
LDU_FT/webrecorder/pywb/linearsearch | LDU_FT | [
"<BEGIN>\n## `read_last_line`",
"Read last line from a seekable file. Start reading\n from buff before end of file, and double backwards seek\n until line break is found. If reached beginning of file\n (no lines), just return whole file\n<END>",
"<BEGIN>\n## `load`",
"Load a file-like reader from the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linearsearch API.
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 linearsearch API.
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... | Perform a linear search over iterator until
current_line >= key
optionally also tracking upto N previous lines, which are
returned before the first matched line.
if end of stream is reached before a match is found,
nothing is returned (prev lines discarded also) | "Perform a linear search over iterator until\n current_line >= key\n\n optionally also tracking upto N previous lines, which are\n returned before the first matched line.\n\n if end of stream is reached before a match is found,\n nothing is returned (prev lines discarded also)" | 227 | false | webrecorder/pywb | linearsearch | 22,822 | |
LDU_FT/EpistasisLab/scikit-rebate/fit | LDU_FT | [
"<BEGIN>\n## `fit`",
"Scikit-learn required: Computes the feature importance scores from the training data.",
" Parameters\n ----------\n X: array-like {n_samples, n_features}\n Training instances to compute the feature importance scores from\n y: array-like {n_samples}\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
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 fit API.
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... | Generates `num_feature_subset` sets of features each of size `size_feature_subset`.
Thereafter, uses the input `core_algorithm` to determine feature importance scores
for each subset. The global feature score is determined by the max score for that feature
from all its occurences in the subsets ... | "Generates `num_feature_subset` sets of features each of size `size_feature_subset`.\n Thereafter, uses the input `core_algorithm` to determine feature importance scores\n for each subset. The global feature score is determined by the max score for that feature\n from all its occurences in the subs... | 46 | false | EpistasisLab/scikit-rebate | fit | 22,823 | |
LDU_FT/blaklites/fb/delete | LDU_FT | [
"<BEGIN>\n## `publish_cat1`",
"Constructs a \"POST\" and \"DELETE\" URL. The function is used by the publish and delete method\n First category of \"POST\" and \"DELETE\" url construction. Caling it first category because for \n publishing photos or more complex stuffs, newer fucntions might be add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
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 delete API.
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 ... | Used for deleting objects from the facebook graph. Just pass the id of the object to be
deleted. But in case of like, have to pass the cat ("likes") and object id as a like has no id
itself in the facebook graph | "Used for deleting objects from the facebook graph. Just pass the id of the object to be \n deleted. But in case of like, have to pass the cat (\"likes\") and object id as a like has no id\n itself in the facebook graph" | 12 | false | blaklites/fb | delete | 22,824 | |
LDU_FT/aloetesting/aloe_webdriver/element_id_by_label | LDU_FT | [
"<BEGIN>\n## `string_literal`",
"Choose a string literal that can wrap our string.",
" If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.",
" Cannot currently handle strings which contain both ``\\\"`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the element_id_by_label 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 element_id_by_label 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... | The ID of an element referenced by a `label`s ``for`` attribute. The label
must be visible.
:param browser: ``world.browser``
:param label: label text to return the referenced element for
Returns: ``for`` attribute value | "The ID of an element referenced by a `label`s ``for`` attribute. The label\n must be visible.\n\n :param browser: ``world.browser``\n :param label: label text to return the referenced element for\n\n Returns: ``for`` attribute value" | 158 | false | aloetesting/aloe_webdriver | element_id_by_label | 22,825 | |
LDU_FT/vtkiorg/vtki/get_range_info | LDU_FT | [
"<BEGIN>\n## `extract_geometry`",
"Combines the geomertry of all blocks into a single ``PolyData``\n object. Place this filter at the end of a pipeline before a polydata\n consumer such as a polydata mapper to extract geometry from all blocks\n and append them to one polydata object.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_range_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_range_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the data range of the array's component | "Get the data range of the array's component" | 1,121 | true | vtkiorg/vtki | get_range_info | 22,826 | |
LDU_FT/alvinwan/TexSoup/text | LDU_FT | [
"<BEGIN>\n## `all`",
"r\"\"\"Returns all content in this node, regardless of whitespace or\n not. This includes all LaTeX needed to reconstruct the original source.",
" >>> from TexSoup import TexSoup\n >>> soup = TexSoup(r'''\n ... \\newcommand{reverseconcat}[3]{#3#2#1}\n ...... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text API.
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 text API.
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... | r"""All text in descendant nodes.
This is equivalent to contents, keeping text elements and excluding
Tex expressions.
>>> from TexSoup import TexSoup
>>> soup = TexSoup(r'''
... \begin{itemize}
... \begin{itemize}
... \item Nested
... \e... | "r\"\"\"All text in descendant nodes.\n\n This is equivalent to contents, keeping text elements and excluding\n Tex expressions.\n\n >>> from TexSoup import TexSoup\n >>> soup = TexSoup(r'''\n ... \\begin{itemize}\n ... \\begin{itemize}\n ... \\item Nested\n ... | 166 | false | alvinwan/TexSoup | text | 22,827 | |
LDU_FT/jupyterhub/nbgitpuller/find_upstream_changed | LDU_FT | [
"<BEGIN>\n## `execute_cmd`",
"Call given command, yielding output line by line\n<END>",
"<BEGIN>\n## `main`",
"Synchronizes a github repository with a local repository.\n<END>",
"<BEGIN>\n## `pull`",
"Pull selected repo from a remote git repository,\n while preserving user changes\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_upstream_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_upstream_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return list of files that have been changed upstream belonging to a particular kind of change | "Return list of files that have been changed upstream belonging to a particular kind of change" | 15 | false | jupyterhub/nbgitpuller | find_upstream_changed | 22,828 | |
LDU_FT/toastdriven/alligator/drop_all | LDU_FT | [
"<BEGIN>\n## `run_forever`",
"Causes the worker to run either forever or until the\n ``Worker.max_tasks`` are reached.\n<END>",
"<BEGIN>\n## `to_call`",
"Sets the function & its arguments to be called when the task is\n processed.",
" Ex::",
" task.to_call(my_function, 1, '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Drops all the task in the queue.
:param queue_name: The name of the queue. Usually handled by the
``Gator`` instance.
:type queue_name: string | "Drops all the task in the queue.\n\n :param queue_name: The name of the queue. Usually handled by the\n ``Gator`` instance.\n :type queue_name: string" | 181 | false | toastdriven/alligator | drop_all | 22,829 | |
LDU_FT/ployground/bsdploy/bootstrap | LDU_FT | [
"<BEGIN>\n## `rsync`",
"wrapper around the rsync command.",
" the ssh connection arguments are set automatically.",
" any args are just passed directly to rsync.\n you can use {host_string} in place of the server.",
" the kwargs are passed on the 'local' fabric command.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bootstrap API.
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 bootstrap API.
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... | Bootstrap an EC2 instance that has been booted into an AMI from http://www.daemonology.net/freebsd-on-ec2/
Note: deprecated, current AMI images are basically pre-bootstrapped, they just need to be configured. | "Bootstrap an EC2 instance that has been booted into an AMI from http://www.daemonology.net/freebsd-on-ec2/\n Note: deprecated, current AMI images are basically pre-bootstrapped, they just need to be configured." | 20 | false | ployground/bsdploy | bootstrap | 22,830 | |
LDU_FT/peterdemin/pip-compile-multi/concatenated | LDU_FT | [
"<BEGIN>\n## `create_lockfile`",
"Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>",
"<BEGIN>\n## `parse_references`",
"Read filename line by line searching for pattern:",
" -r file.in\n or\n --requirement file.in",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concatenated API.
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 concatenated API.
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... | Read lines from fp concatenating on backslash (\\) | "Read lines from fp concatenating on backslash (\\\\)" | 61 | false | peterdemin/pip-compile-multi | concatenated | 22,831 | |
LDU_FT/abingham/spor/status_handler | LDU_FT | [
"<BEGIN>\n## `_open_repo`",
"Open and return the repository containing the specified file.",
" The file is specified by looking up `path_key` in `args`. This value or\n `None` is passed to `open_repository`.",
" Returns: A `Repository` instance.",
" Raises:\n ExitError: If there is a prob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_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.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_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.
The ex... | usage: {program} status [<path>]
Validate the anchors in the current repository. | "usage: {program} status [<path>]\n\n Validate the anchors in the current repository." | 85 | false | abingham/spor | status_handler | 22,832 | |
LDU_FT/DataDog/integrations-core/drop_indexes | LDU_FT | [
"<BEGIN>\n## `check_election_status`",
"Retrieves the leader-election annotation from a given object, and\n submits metrics and a service check.",
" An integration warning is sent if the object is not retrievable,\n or no record is found. Monitors on the service-check should have\n n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_indexes API.
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 drop_indexes API.
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... | Drops all indexes on this collection.
Can be used on non-existant collections or collections with no indexes.
Raises OperationFailure on an error.
.. note:: The :attr:`~pymongo.collection.Collection.write_concern` of
this collection is automatically applied to this operation when us... | "Drops all indexes on this collection.\n\n Can be used on non-existant collections or collections with no indexes.\n Raises OperationFailure on an error.\n\n .. note:: The :attr:`~pymongo.collection.Collection.write_concern` of\n this collection is automatically applied to this operation ... | 2,189 | true | DataDog/integrations-core | drop_indexes | 22,833 | |
LDU_FT/SpikeInterface/spiketoolkit/run_sorter | LDU_FT | [
"<BEGIN>\n## `compute_agreement_score`",
"Agreement score is used as a criteria to match unit1 and unit2.\n<END>",
"<BEGIN>\n## `do_matching`",
"This compute the matching between 2 sorters.",
" Parameters\n ----------\n sorting1: SortingExtractor instance",
" sorting2: SortingExtractor instanc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_sorter API.
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 run_sorter API.
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... | Generic function to run a sorter via function approach.
2 Usage with name or class:
by name:
>>> sorting = run_sorter('tridesclous', recording)
by class:
>>> sorting = run_sorter(TridesclousSorter, recording) | "Generic function to run a sorter via function approach.\n\n 2 Usage with name or class:\n\n by name:\n >>> sorting = run_sorter('tridesclous', recording)\n\n by class:\n >>> sorting = run_sorter(TridesclousSorter, recording)" | 83 | false | SpikeInterface/spiketoolkit | run_sorter | 22,834 | |
LDU_FT/mayhewj/greenstalk/put | LDU_FT | [
"<BEGIN>\n## `put`",
"Inserts a job into the currently used tube and returns the job ID.",
" :param body: The data representing the job.\n :param priority: An integer between 0 and 4,294,967,295 where 0 is the\n most urgent.\n :param delay: The number of seconds to d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API.
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 put API.
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... | Inserts a job into the currently used tube and returns the job ID.
:param body: The data representing the job.
:param priority: An integer between 0 and 4,294,967,295 where 0 is the
most urgent.
:param delay: The number of seconds to delay the job for.
:param tt... | "Inserts a job into the currently used tube and returns the job ID.\n\n :param body: The data representing the job.\n :param priority: An integer between 0 and 4,294,967,295 where 0 is the\n most urgent.\n :param delay: The number of seconds to delay the job for.\n :p... | 45 | false | mayhewj/greenstalk | put | 22,835 | |
LDU_FT/skoczen/will/respond_to_contact_info | LDU_FT | [
"<BEGIN>\n## `talk_back`",
"that's what she said: Tells you some things she actually said. :)\n<END>",
"<BEGIN>\n## `auto_key`",
"This method attempts to auto-generate a unique cryptographic key based on the hardware ID.\n It should *NOT* be used in production, or to replace a proper key, but it can help g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond_to_contact_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond_to_contact_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... | contact info: Show everyone's emergency contact info. | "contact info: Show everyone's emergency contact info." | 40 | false | skoczen/will | respond_to_contact_info | 22,836 | |
LDU_FT/payu-org/payu/parse | LDU_FT | [
"<BEGIN>\n## `set_model_pathnames`",
"Define the paths associated with this model.\n<END>",
"<BEGIN>\n## `archive`",
"Store model output to laboratory archive.\n<END>",
"<BEGIN>\n## `parse`",
"Parse the command line inputs and execute the subcommand.\n<END>",
"<BEGIN>\n## `get_model_type`",
"Determine... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse the command line inputs and execute the subcommand. | "Parse the command line inputs and execute the subcommand." | 78 | false | payu-org/payu | parse | 22,837 | |
LDU_FT/rosshamish/hexgrid/hex_digit | LDU_FT | [
"<BEGIN>\n## `location`",
"Returns a formatted string representing the coordinate. The format depends on the\n coordinate type.",
" Tiles look like: 1, 12\n Nodes look like: (1 NW), (12 S)\n Edges look like: (1 NW), (12 SE)",
" :param hexgrid_type: hexgrid.TILE, hexgrid.NODE, hexgrid.EDGE\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex_digit API.
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 hex_digit API.
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... | Returns either the first or second digit of the hexadecimal representation of the given coordinate.
:param coord: hexadecimal coordinate, int
:param digit: 1 or 2, meaning either the first or second digit of the hexadecimal
:return: int, either the first or second digit | "Returns either the first or second digit of the hexadecimal representation of the given coordinate.\n :param coord: hexadecimal coordinate, int\n :param digit: 1 or 2, meaning either the first or second digit of the hexadecimal\n :return: int, either the first or second digit" | 49 | false | rosshamish/hexgrid | hex_digit | 22,838 | |
LDU_FT/asascience-open/paegan-transport/get_remote_data | LDU_FT | [
"<BEGIN>\n## `export`",
"Export particle data to CF trajectory convention\n netcdf file\n<END>",
"<BEGIN>\n## `export`",
"Export particle and datetime data to Pickled objects.\n This can be used to debug or to generate different output\n in the future.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Method that does the updating of local netcdf cache
with remote data | "Method that does the updating of local netcdf cache\n with remote data" | 98 | false | asascience-open/paegan-transport | get_remote_data | 22,839 | |
LDU_FT/maceoutliner/django-fiction-outlines/render_to_response | LDU_FT | [
"<BEGIN>\n## `mk_dropdown_tree`",
"Override of ``treebeard`` method to enforce the same root.\n<END>",
"<BEGIN>\n## `length_estimate`",
"Calculates and estimated word count based on number of characters, locations,\n and arcs. For reference see:\n http://www.writingexcuses.com/2017/07/02/12-27-c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_to_response 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 render_to_response 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... | Compares requested format to supported formats and routes the response.
:attribute switcher: A dictionary of format types and their respective response methods. | "Compares requested format to supported formats and routes the response.\n\n :attribute switcher: A dictionary of format types and their respective response methods." | 61 | false | maceoutliner/django-fiction-outlines | render_to_response | 22,840 | |
LDU_FT/aichaos/rivescript-python/word_count | LDU_FT | [
"<BEGIN>\n## `format_message`",
"Format a user's message for safe processing.",
" This runs substitutions on the message and strips out any remaining\n symbols (depending on UTF-8 mode).",
" :param str msg: The user's message.\n :param bool botreply: Whether this formatting is bein... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the word_count API.
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 word_count API.
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... | Count the words that aren't wildcards or options in a trigger.
:param str trigger: The trigger to count words for.
:param bool all: Count purely based on whitespace separators, or
consider wildcards not to be their own words.
:return int: The word count. | "Count the words that aren't wildcards or options in a trigger.\n\n :param str trigger: The trigger to count words for.\n :param bool all: Count purely based on whitespace separators, or\n consider wildcards not to be their own words.\n\n :return int: The word count." | 218 | false | aichaos/rivescript-python | word_count | 22,841 | |
LDU_FT/charettes/django-mutant/_model_class_from_pk | LDU_FT | [
"<BEGIN>\n## `nonraw_instance`",
"A signal receiver decorator that fetch the complete instance from db when\n it's passed as raw\n<END>",
"<BEGIN>\n## `base_definition_pre_delete`",
"This is used to pass data required for deletion to the post_delete\n signal that is no more available thereafter.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _model_class_from_pk 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 _model_class_from_pk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Helper used to unpickle MutableModel model class from their definition
pk. | "Helper used to unpickle MutableModel model class from their definition\n pk." | 22 | false | charettes/django-mutant | _model_class_from_pk | 22,842 | |
LDU_FT/mazi76erX2/mention-python/url | LDU_FT | [
"<BEGIN>\n## `params`",
"Parameters used in the url of the API call and for authentication.",
" :return: parameters used in the url.\n :rtype: dict\n<END>",
"<BEGIN>\n## `data`",
"Parameters passed to the API containing the details to create a new\n alert.",
" :return: paramet... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc... | The concatenation of the `base_url` and `end_url` that make up the
resultant url.
:return: the `base_url` and the `end_url`.
:rtype: str | "The concatenation of the `base_url` and `end_url` that make up the\n resultant url.\n\n :return: the `base_url` and the `end_url`.\n :rtype: str" | 18 | false | mazi76erX2/mention-python | url | 22,843 | |
LDU_FT/eweast/BencodePy/__wrap_with_tuple | LDU_FT | [
"<BEGIN>\n## `decode_from_file`",
"Convenience function. Reads file and calls decode().\n<END>",
"<BEGIN>\n## `__read`",
"Returns a set number (i) of bytes from self.data.\n<END>",
"<BEGIN>\n## `__read_to`",
"Returns bytes from self.data starting at index (self.idx) until terminator character.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __wrap_with_tuple API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __wrap_with_tuple API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Returns a tuple of all nested bencode elements. | "Returns a tuple of all nested bencode elements." | 16 | false | eweast/BencodePy | __wrap_with_tuple | 22,844 | |
LDU_FT/adamziel/python_translate/get_messages | LDU_FT | [
"<BEGIN>\n## `load_messages`",
"Loads translation found in a directory.",
" @type directory: string\n @param directory: The directory to search",
" @type catalogue: MessageCatalogue\n @param catalogue: The message catalogue to dump",
" @raises: ValueError\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_messages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_messages API.
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 all valid messages after operation.
@type domain: str
@rtype: dict | "Returns all valid messages after operation.\n @type domain: str\n @rtype: dict" | 136 | false | adamziel/python_translate | get_messages | 22,845 | |
LDU_FT/llazzaro/django-scheduler/get_calendars_for_object | LDU_FT | [
"<BEGIN>\n## `daily_table`",
"Display a nice table with occurrences and action buttons.\n Arguments:\n start - hour at which the day starts\n end - hour at which the day ends\n increment - size of a time slot (in minutes)\n<END>",
"<BEGIN>\n## `_cook_slots`",
"Prepare slots to be displayed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_calendars_for_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_calendars_for_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | This function allows you to get calendars for a specific object
If distinction is set it will filter out any relation that doesnt have
that distinction. | "This function allows you to get calendars for a specific object\n\n If distinction is set it will filter out any relation that doesnt have\n that distinction." | 38 | false | llazzaro/django-scheduler | get_calendars_for_object | 22,846 | |
LDU_FT/brianhie/scanorama/correct_scanpy | LDU_FT | [
"<BEGIN>\n## `silhouette_score`",
"Compute the mean Silhouette Coefficient of all samples.",
" The Silhouette Coefficient is calculated using the mean intra-cluster\n distance (``a``) and the mean nearest-cluster distance (``b``) for each\n sample. The Silhouette Coefficient for a sample is ``(b - a) ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the correct_scanpy API.
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 correct_scanpy API.
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... | Batch correct a list of `scanpy.api.AnnData`.
Parameters
----------
adatas : `list` of `scanpy.api.AnnData`
Data sets to integrate and/or correct.
kwargs : `dict`
See documentation for the `correct()` method for a full list of
parameters to use for batch correction.
Returns... | "Batch correct a list of `scanpy.api.AnnData`.\n\n Parameters\n ----------\n adatas : `list` of `scanpy.api.AnnData`\n Data sets to integrate and/or correct.\n kwargs : `dict`\n See documentation for the `correct()` method for a full list of\n parameters to use for batch correction.\n\n... | 137 | false | brianhie/scanorama | correct_scanpy | 22,847 | |
LDU_FT/edx/XBlock/lex | LDU_FT | [
"<BEGIN>\n## `default_select`",
"Raise an exception when we have ambiguous entry points.\n<END>",
"<BEGIN>\n## `_load_class_entry_point`",
"Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>",
"<BEGIN>\n## `load_class`",
"Load a single cl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lex API.
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 lex API.
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... | Iterator that tokenizes `text` and yields up tokens as they are found | "Iterator that tokenizes `text` and yields up tokens as they are found" | 295 | false | edx/XBlock | lex | 22,848 | |
LDU_FT/aksas/pypo4sel/child_element | LDU_FT | [
"<BEGIN>\n## `wait`",
"Wait ``timeout`` seconds until ``method(**kwargs)`` returns a ``value`` that *bool(value)==True*.\n Returns last ``value``.\n If time expired and ``fail_on_timeout`` specified, then raise TimeoutException.",
" :param method:\n :param timeout:\n :param fail_on_timeout:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the child_element API.
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 child_element API.
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... | Doesn't rise NoSuchElementException in case if there are no element with the selector.
In this case ``exists()`` and ``is_displayed()`` methods of the element will return *False*.
Attempt to call any other method supposed to interact with browser will raise NoSuchElementException.
usages with `... | "Doesn't rise NoSuchElementException in case if there are no element with the selector.\n In this case ``exists()`` and ``is_displayed()`` methods of the element will return *False*.\n Attempt to call any other method supposed to interact with browser will raise NoSuchElementException.\n\n usages w... | 42 | false | aksas/pypo4sel | child_element | 22,849 | |
LDU_FT/coinkite/connectrum/_got_response | LDU_FT | [
"<BEGIN>\n## `send_data`",
"Given an object, encode as JSON and transmit to the server.\n<END>",
"<BEGIN>\n## `got_who_reply`",
"Server replied to one of our WHO requests, with details.\n<END>",
"<BEGIN>\n## `connect`",
"Start connection process.\n Destination must be specified in a ServerInfo(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _got_response API.
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 _got_response API.
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... | Decode and dispatch responses from the server.
Has already been unframed and deserialized into an object. | "Decode and dispatch responses from the server.\n\n Has already been unframed and deserialized into an object." | 30 | false | coinkite/connectrum | _got_response | 22,850 | |
LDU_FT/limpyd/redis-limpyd-jobs/must_stop | LDU_FT | [
"<BEGIN>\n## `_parse_queues`",
"Parse the given parameter and return a list of queues.\n The parameter must be a list/tuple of strings, or a string with queues\n separated by a comma.\n<END>",
"<BEGIN>\n## `_assert_correct_model`",
"Helper that asserts the model_to_check is the model_reference o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the must_stop API.
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 must_stop API.
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 True if the worker must stop when the current loop is over. | "Return True if the worker must stop when the current loop is over." | 122 | false | limpyd/redis-limpyd-jobs | must_stop | 22,851 | |
LDU_FT/google/apitools/describe_enum_value | LDU_FT | [
"<BEGIN>\n## `_urljoin`",
"Custom urljoin replacement supporting : before / in url.\n<END>",
"<BEGIN>\n## `_SetCredentials`",
"Fetch credentials, and set them for this client.",
" Note that we can't simply return credentials, since creating them\n may involve side-effecting self.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_enum_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe_enum_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.
T... | Build descriptor for Enum instance.
Args:
enum_value: Enum value to provide descriptor for.
Returns:
Initialized EnumValueDescriptor instance describing the Enum instance. | "Build descriptor for Enum instance.\n\n Args:\n enum_value: Enum value to provide descriptor for.\n\n Returns:\n Initialized EnumValueDescriptor instance describing the Enum instance." | 629 | false | google/apitools | describe_enum_value | 22,852 | |
LDU_FT/bmcfee/pumpp/transform_annotation | LDU_FT | [
"<BEGIN>\n## `sample`",
"Sample a patch from the data object",
" Parameters\n ----------\n data : dict\n A data dict as produced by pumpp.Pump.transform",
" interval : slice\n The time interval to sample",
" Returns\n -------\n data_slic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_annotation 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 transform_annotation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Transform an annotation to the beat-position encoding
Parameters
----------
ann : jams.Annotation
The annotation to convert
duration : number > 0
The duration of the track
Returns
-------
data : dict
data['position'] : np.nda... | "Transform an annotation to the beat-position encoding\n\n Parameters\n ----------\n ann : jams.Annotation\n The annotation to convert\n\n duration : number > 0\n The duration of the track\n\n Returns\n -------\n data : dict\n data['posit... | 291 | false | bmcfee/pumpp | transform_annotation | 22,853 | |
LDU_FT/hyperledger-archives/indy-anoncreds/presentProof | LDU_FT | [
"<BEGIN>\n## `get_hash_as_int`",
"Enumerate over the input tuple and generate a hash using the tuple values",
" :param args: sequence of either group or integer elements\n :param group: pairing group if an element is a group element\n :return:\n<END>",
"<BEGIN>\n## `randomString`",
"Generate a rand... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the presentProof API.
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 presentProof API.
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... | Presents a proof to the verifier.
:param proofRequest: description of a proof to be presented (revealed
attributes, predicates, timestamps for non-revocation)
:return: a proof (both primary and non-revocation) and revealed attributes (initial non-encoded values) | "Presents a proof to the verifier.\n\n :param proofRequest: description of a proof to be presented (revealed\n attributes, predicates, timestamps for non-revocation)\n :return: a proof (both primary and non-revocation) and revealed attributes (initial non-encoded values)" | 48 | false | hyperledger-archives/indy-anoncreds | presentProof | 22,854 | |
LDU_FT/google/openhtf/close_stream_transport | LDU_FT | [
"<BEGIN>\n## `short_repr`",
"Returns a short, term-friendly string representation of the object.",
" Args:\n obj: An object for which to return a string representation.\n max_len: Maximum length of the returned string. Longer reprs will be turned\n into a brief descriptive string giving the type a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close_stream_transport 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 close_stream_transport API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Remove the given stream transport's id from our map of id's.
If the stream id is actually removed, we send a CLSE message to let the
remote end know (this happens when we are ack'ing a CLSE message we
received). The ADB protocol doesn't say this is a requirement, but ADB
does it, so we do too.
Ar... | "Remove the given stream transport's id from our map of id's.\n\n If the stream id is actually removed, we send a CLSE message to let the\n remote end know (this happens when we are ack'ing a CLSE message we\n received). The ADB protocol doesn't say this is a requirement, but ADB\n does it, so we do too.\n... | 700 | false | google/openhtf | close_stream_transport | 22,855 | |
LDU_FT/Fuyukai/ConfigMaster/GenerateConfigFile | LDU_FT | [
"<BEGIN>\n## `initial_populate`",
"Populate a newly created config object with data.",
" If it was populated, this returns True. If it wasn't, this returns False.",
" It is recommended to run a .dump() and .reload() after running this.\n<END>",
"<BEGIN>\n## `apply_defaults`",
"Applies defaul... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GenerateConfigFile 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 GenerateConfigFile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Generates a ConfigFile object using the specified hooks.
These hooks should be functions, and have one argument.
When a hook is called, the ConfigFile object is passed to it. Use this to load your data from the fd object, or request, or whatever.
This returns a ConfigFile object. | "Generates a ConfigFile object using the specified hooks.\n\n These hooks should be functions, and have one argument.\n When a hook is called, the ConfigFile object is passed to it. Use this to load your data from the fd object, or request, or whatever.\n\n This returns a ConfigFile object." | 32 | false | Fuyukai/ConfigMaster | GenerateConfigFile | 22,856 | |
LDU_FT/evandempsey/porter2-stemmer/replace_ys | LDU_FT | [
"<BEGIN>\n## `stem`",
"Stem the word if it has more than two characters,\n otherwise return it as is.\n<END>",
"<BEGIN>\n## `set_ys`",
"Identify Ys that are to be treated\n as consonants and make them uppercase.\n<END>",
"<BEGIN>\n## `is_short`",
"Determine if the word is short. Short words\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_ys API.
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 replace_ys API.
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... | Replace y or Y with i if preceded by a non-vowel
which is not the first letter of the word
. | "Replace y or Y with i if preceded by a non-vowel\n which is not the first letter of the word\n ." | 20 | false | evandempsey/porter2-stemmer | replace_ys | 22,857 | |
LDU_FT/wdbm/shijian/histogram_hour_counts | LDU_FT | [
"<BEGIN>\n## `tail`",
"Return a specified number of last lines of a specified file. If there is an\n error or the file does not exist, return False.\n<END>",
"<BEGIN>\n## `convert_type_list_elements`",
"Recursively convert all elements and all elements of all sublists of a list\n to a specified type and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the histogram_hour_counts 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 histogram_hour_counts 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 day-long histogram of counts of the variable for each hour. It is
assumed that the DataFrame index is datetime and that the variable
`hour` exists. | "Create a day-long histogram of counts of the variable for each hour. It is\n assumed that the DataFrame index is datetime and that the variable\n `hour` exists." | 37 | false | wdbm/shijian | histogram_hour_counts | 22,858 | |
LDU_FT/inveniosoftware-attic/invenio-comments/get_user_collapsed_comments_for_record | LDU_FT | [
"<BEGIN>\n## `perform_request_display_comments_or_remarks`",
"Returns all the comments (reviews) of a specific internal record or external basket record.\n :param recID: record id where (internal record IDs > 0) or (external basket record IDs < -100)\n :param display_order: hh = highest helpful score... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_collapsed_comments_for_record 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 get_user_collapsed_comments_for_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Get the comments collapsed for given user on given recid page | "Get the comments collapsed for given user on given recid page" | 123 | false | inveniosoftware-attic/invenio-comments | get_user_collapsed_comments_for_record | 22,859 | |
LDU_FT/MichaelAquilina/hashedindex/add_term_occurrence | LDU_FT | [
"<BEGIN>\n## `normalize_unicode`",
"Normalize any unicode characters to ascii equivalent\n https://docs.python.org/2/library/unicodedata.html#unicodedata.normalize\n<END>",
"<BEGIN>\n## `word_tokenize`",
"Parses the given text and yields tokens which represent words within\n the given text. Tokens are a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_term_occurrence 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 add_term_occurrence 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... | Adds an occurrence of the term in the specified document. | "Adds an occurrence of the term in the specified document." | 27 | false | MichaelAquilina/hashedindex | add_term_occurrence | 22,860 | |
LDU_FT/sorend/sshconf/_remap_key | LDU_FT | [
"<BEGIN>\n## `read_ssh_config`",
"Read ssh config file and return parsed SshConfig\n<END>",
"<BEGIN>\n## `_remap_key`",
"Change key into correct casing if we know the parameter\n<END>",
"<BEGIN>\n## `host`",
"Return the configuration of a specific host as a dictionary.",
" Dictionary always conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remap_key API.
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 _remap_key API.
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... | Change key into correct casing if we know the parameter | "Change key into correct casing if we know the parameter" | 27 | false | sorend/sshconf | _remap_key | 22,861 | |
LDU_FT/salimm/pylods/resolve | LDU_FT | [
"<BEGIN>\n## `copy`",
"makes a clone copy of the mapper. It won't clone the serializers or deserializers and it won't copy the events\n<END>",
"<BEGIN>\n## `copy_all`",
"copies all values into the current context from given context\n :param ctxt:\n<END>",
"<BEGIN>\n## `resolve`",
"resolve type of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API.
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 resolve API.
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... | resolve type of the class property for the class. If objcls is not set then
assume that cls argument (class that the function is called from) is the class
we are trying to resolve the type for
:param cls:
:param objcls:
:param propname: | "resolve type of the class property for the class. If objcls is not set then \n assume that cls argument (class that the function is called from) is the class \n we are trying to resolve the type for \n :param cls:\n :param objcls:\n :param propname:" | 13 | false | salimm/pylods | resolve | 22,862 | |
LDU_FT/hammerlab/cohorts/load_kallisto | LDU_FT | [
"<BEGIN>\n## `download_to_path`",
"This method is analogous to \"gsutil cp gsuri localpath\", but in a\n programatically accesible way. The only difference is that we\n have to make a guess about the encoding of the file to not upset\n downstream file operations. If you are downloading a VCF,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_kallisto API.
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 load_kallisto API.
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... | Load Kallisto transcript quantification data for a cohort
Parameters
----------
Returns
-------
kallisto_data : Pandas dataframe
Pandas dataframe with Kallisto data for all patients
columns include patient_id, gene_name, est_counts | "Load Kallisto transcript quantification data for a cohort\n\n Parameters\n ----------\n\n Returns\n -------\n kallisto_data : Pandas dataframe\n Pandas dataframe with Kallisto data for all patients\n columns include patient_id, gene_name, est_counts" | 230 | false | hammerlab/cohorts | load_kallisto | 22,863 | |
LDU_FT/ranaroussi/pywallet/public_copy | LDU_FT | [
"<BEGIN>\n## `create_new_address_for_user`",
"Create a new bitcoin address to accept payments for a User.",
" This is a convenience wrapper around `get_child` that helps you do\n the right thing. This method always creates a public, non-prime\n address that can be generated from a BIP32 pub... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the public_copy API.
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 public_copy API.
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... | Clone this wallet and strip it of its private information. | "Clone this wallet and strip it of its private information." | 186 | false | ranaroussi/pywallet | public_copy | 22,864 | |
LDU_FT/spotify/gordon/send | LDU_FT | [
"<BEGIN>\n## `run`",
"Entrypoint to route messages between plugins.\n<END>",
"<BEGIN>\n## `shutdown`",
"Gracefully cancel current tasks when app receives a shutdown signal.\n<END>",
"<BEGIN>\n## `_deep_merge_dict`",
"Additively merge right side dict into left side dict.\n<END>",
"<BEGIN>\n## `load_plugi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
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... | Transform metric to JSON bytestring and send to server.
Args:
metric (dict): Complete metric to send as JSON. | "Transform metric to JSON bytestring and send to server.\n\n Args:\n metric (dict): Complete metric to send as JSON." | 28 | false | spotify/gordon | send | 22,865 | |
LDU_FT/ev3dev/ev3dev-lang-python/speed_p | LDU_FT | [
"<BEGIN>\n## `list_motors`",
"This is a generator function that enumerates all tacho motors that match\n the provided arguments.",
" Parameters:\n name_pattern: pattern that device name should match.\n For example, 'motor*'. Default value: '*'.\n keyword arguments: used for matchi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the speed_p API.
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 speed_p API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | The proportional constant for the speed regulation PID. | "The proportional constant for the speed regulation PID." | 452 | false | ev3dev/ev3dev-lang-python | speed_p | 22,866 | |
LDU_FT/ambitioninc/newrelic-api/show | LDU_FT | [
"<BEGIN>\n## `update`",
"Updates any of the optional parameters of the alert condition nrql",
" :type alert_condition_nrql_id: int\n :param alert_condition_nrql_id: Alerts condition NRQL id to update",
" :type policy_id: int\n :param policy_id: Alert policy id where target alert co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show API.
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 show API.
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... | This API endpoint returns a single Key transaction, identified its ID.
:type id: int
:param id: Key transaction ID
:rtype: dict
:return: The JSON response of the API
::
{
"key_transaction": {
"id": "integer",
... | "This API endpoint returns a single Key transaction, identified its ID.\n\n :type id: int\n :param id: Key transaction ID\n\n :rtype: dict\n :return: The JSON response of the API\n\n ::\n\n {\n \"key_transaction\": {\n \"id\": \"integer\",\... | 299 | false | ambitioninc/newrelic-api | show | 22,867 | |
LDU_FT/tripzero/python-photons/setColor | LDU_FT | [
"<BEGIN>\n## `wavelengthToRGB`",
"Taken from Earl F. Glynn's web page:\n\t* <a href=\"http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm\">Spectra Lab Report</a>\n<END>",
"<BEGIN>\n## `writeHeader`",
"write header:\n\t\t[8bit][16bit]\n\t\t[protocol_version][msg_length]\n<END>",
"<BEGIN>\n## `setColor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setColor API.
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 setColor API.
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... | Command 0x01
sets the color of a specific light
Data:
[Command][Number_Lights_to_set][id_1][r][g][b][id_n][r][g][b]... | "Command 0x01\n\t\tsets the color of a specific light\n\n\t\tData:\n\n\t\t[Command][Number_Lights_to_set][id_1][r][g][b][id_n][r][g][b]..." | 19 | false | tripzero/python-photons | setColor | 22,868 | |
LDU_FT/awacha/sastool/nlsq_fit | LDU_FT | [
"<BEGIN>\n## `readB1logfile`",
"Read B1 logfile (*.log)",
" Inputs:\n filename: the file name",
" Output: A dictionary.\n<END>",
"<BEGIN>\n## `writeB1logfile`",
"Write a header structure into a B1 logfile.",
" Inputs:\n filename: name of the file.\n data: header dictionary"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nlsq_fit API.
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 nlsq_fit API.
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... | Perform a non-linear least squares fit
Inputs:
x: one-dimensional numpy array of the independent variable
y: one-dimensional numpy array of the dependent variable
dy: absolute error (square root of the variance) of the dependent
variable. Either a one-dimensional numpy array or ... | "Perform a non-linear least squares fit\n\n Inputs:\n x: one-dimensional numpy array of the independent variable\n y: one-dimensional numpy array of the dependent variable\n dy: absolute error (square root of the variance) of the dependent\n variable. Either a one-dimensional numpy ar... | 426 | false | awacha/sastool | nlsq_fit | 22,869 | |
LDU_FT/aiogram/aiogram/attach_video | LDU_FT | [
"<BEGIN>\n## `execute_filter`",
"Helper for executing filter",
" :param filter_:\n :param args:\n :return:\n<END>",
"<BEGIN>\n## `check_filters`",
"Check list of filters",
" :param filters:\n :param args:\n :return:\n<END>",
"<BEGIN>\n## `validate`",
"Validate and parse config.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attach_video API.
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 attach_video API.
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... | Attach video
:param video:
:param caption:
:param width:
:param height:
:param duration:
:return: self | "Attach video\n\n :param video:\n :param caption:\n :param width:\n :param height:\n :param duration:\n :return: self" | 1,040 | true | aiogram/aiogram | attach_video | 22,870 | |
LDU_FT/doconix/django-mako-plus/get_mako_template | LDU_FT | [
"<BEGIN>\n## `run_command`",
"Runs a command, piping all output to the DMP log.\n The args should be separate arguments so paths and subcommands can have spaces in them:",
" ret = run_command('ls', '-l', '/Users/me/My Documents')\n print(ret.code)\n print(ret.stdout)\n print(ret.s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mako_template API.
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_mako_template API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Retrieve the real *Mako* template object for the given template name without any wrapper,
using the app_path and template_subdir settings in this object.
This method is an alternative to get_template(). Use it when you need the actual Mako template object.
This method raises a Mako ex... | "Retrieve the real *Mako* template object for the given template name without any wrapper,\n using the app_path and template_subdir settings in this object.\n\n This method is an alternative to get_template(). Use it when you need the actual Mako template object.\n This method raises a Ma... | 207 | false | doconix/django-mako-plus | get_mako_template | 22,871 | |
LDU_FT/dicaso/leopard/sectionFromFunction | LDU_FT | [
"<BEGIN>\n## `makeFigFromFile`",
"Renders an image in a matplotlib figure, so it can be added to reports \n args and kwargs are passed to plt.subplots\n<END>",
"<BEGIN>\n## `append`",
"Append a new section\n If toSection is None, section is appended to the main section/subs list.\n Else if to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sectionFromFunction 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 sectionFromFunction 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... | This staticmethod executes the function that is passed with the provided args and kwargs.
The first line of the function docstring is used as the section title, the comments
within the function body are parsed and added as the section text.
The function should return an ordered dict of figures a... | "This staticmethod executes the function that is passed with the provided args and kwargs.\n The first line of the function docstring is used as the section title, the comments\n within the function body are parsed and added as the section text.\n The function should return an ordered dict of figur... | 26 | false | dicaso/leopard | sectionFromFunction | 22,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.