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/IAMconsortium/pyam/read_ix | LDU_FT | [
"<BEGIN>\n## `read_ix`",
"Read timeseries data from an ixmp object",
" Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()\n<END>",
"<BEGIN>\n## `requires_package`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_ix API.
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 read_ix API.
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... | Read timeseries data from an ixmp object
Parameters
----------
ix: ixmp.TimeSeries or ixmp.Scenario
this option requires the ixmp package as a dependency
kwargs: arguments passed to ixmp.TimeSeries.timeseries() | "Read timeseries data from an ixmp object\n\n Parameters\n ----------\n ix: ixmp.TimeSeries or ixmp.Scenario\n this option requires the ixmp package as a dependency\n kwargs: arguments passed to ixmp.TimeSeries.timeseries()" | 256 | false | IAMconsortium/pyam | read_ix | 23,273 | |
LDU_FT/azavea/django-tinsel/render_template | LDU_FT | [
"<BEGIN>\n## `route`",
"Route a request to different views based on http verb.",
" Kwargs should be 'GET', 'POST', 'PUT', 'DELETE' or 'ELSE',\n where the first four map to a view to route to for that type of\n request method/verb, and 'ELSE' maps to a view to pass the request\n to if the given reque... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_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 e... | takes a template to render to and returns a function that
takes an object to render the data for this template.
If callable_or_dict is callable, it will be called with
the request and any additional arguments to produce the
template paramaters. This is useful for a view-like function
that returns a... | "takes a template to render to and returns a function that\n takes an object to render the data for this template.\n\n If callable_or_dict is callable, it will be called with\n the request and any additional arguments to produce the\n template paramaters. This is useful for a view-like function\n that re... | 21 | false | azavea/django-tinsel | render_template | 23,274 | |
LDU_FT/Robpol86/libnl/eta_letters | LDU_FT | [
"<BEGIN>\n## `nla_ok`",
"Check if the attribute header and payload can be accessed safely.",
" https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L148",
" Verifies that the header and payload do not exceed the number of bytes left in the attribute stream. This function\n must be called befo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eta_letters API.
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 eta_letters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convert seconds remaining into human readable strings.
From https://github.com/Robpol86/etaprogress/blob/ad934d4/etaprogress/components/eta_conversions.py.
Positional arguments:
seconds -- integer/float indicating seconds remaining. | "Convert seconds remaining into human readable strings.\n\n From https://github.com/Robpol86/etaprogress/blob/ad934d4/etaprogress/components/eta_conversions.py.\n\n Positional arguments:\n seconds -- integer/float indicating seconds remaining." | 702 | false | Robpol86/libnl | eta_letters | 23,275 | |
LDU_FT/rlabbe/filterpy/to_array | LDU_FT | [
"<BEGIN>\n## `reset`",
"reset filter back to state at time of construction\n<END>",
"<BEGIN>\n## `update`",
"Update filter with new measurement `z`",
" Returns\n -------",
" x : np.array\n estimate for this time step (same as self.x)\n<END>",
"<BEGIN>\n## `errors`",
"Co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API.
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 to_array API.
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... | Convert all saved attributes from a list to np.array.
This may or may not work - every saved attribute must have the
same shape for every instance. i.e., if `K` changes shape due to `z`
changing shape then the call will raise an exception.
This can also happen if the default initializa... | "Convert all saved attributes from a list to np.array.\n\n This may or may not work - every saved attribute must have the\n same shape for every instance. i.e., if `K` changes shape due to `z`\n changing shape then the call will raise an exception.\n\n This can also happen if the default ini... | 665 | false | rlabbe/filterpy | to_array | 23,276 | |
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 | 23,277 | |
LDU_FT/mbrenig/SheetSync/data | LDU_FT | [
"<BEGIN>\n## `ia_credentials_helper`",
"Helper function to manage a credentials cache during testing.\r",
" This function attempts to load and refresh a credentials object from a\r\n json cache file, using the cache_key and client_id as a lookup.\r",
" If this isn't found then it starts an OAuth2 aut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Reads the worksheet and returns an indexed dictionary of the
row objects.
For example:
>>>print sheet.data()
{'Miss Piggy': {'Color': 'Pink', 'Performer': 'Frank Oz'}, 'Kermit': {'Color': 'Green', 'Performer': 'Jim Henson'}} | "Reads the worksheet and returns an indexed dictionary of the\r\n row objects.\r\n \r\n For example:\r\n\r\n >>>print sheet.data()\r\n\r\n {'Miss Piggy': {'Color': 'Pink', 'Performer': 'Frank Oz'}, 'Kermit': {'Color': 'Green', 'Performer': 'Jim Henson'}}" | 26 | false | mbrenig/SheetSync | data | 23,278 | |
LDU_FT/JukeboxPipeline/jukebox-core/dep_add_prj | LDU_FT | [
"<BEGIN>\n## `restrictable`",
"Decorator for :class:`Reftrack` methods.\n A decorated method will check if its restriction with :meth:`Reftrack.is_restricted`\n and raises a :class:`RestrictionError` if it is restricted.",
" :param m: The :class:`Reftrack` method to wrap\n :type m: :class:`Reftrack`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dep_add_prj API.
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 dep_add_prj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Add projects to the current department
:returns: None
:rtype: None
:raises: None | "Add projects to the current department\n\n :returns: None\n :rtype: None\n :raises: None" | 1,529 | true | JukeboxPipeline/jukebox-core | dep_add_prj | 23,279 | |
LDU_FT/lobocv/crashreporter/store_report | LDU_FT | [
"<BEGIN>\n## `setup_smtp`",
"Set up the crash reporter to send reports via email using SMTP",
" :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_report API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_report API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Save the crash report to a file. Keeping the last `offline_report_limit` files in a cyclical FIFO buffer.
The newest crash report always named is 01 | "Save the crash report to a file. Keeping the last `offline_report_limit` files in a cyclical FIFO buffer.\n The newest crash report always named is 01" | 59 | false | lobocv/crashreporter | store_report | 23,280 | |
LDU_FT/westurner/pyrpo/find_unique_repos | LDU_FT | [
"<BEGIN>\n## `itersplit`",
"Split a string by ``sep`` and yield chunks",
" Args:\n s (str-type): string to split\n sep (str-type): delimiter to split by",
" Yields:\n generator of strings: chunks of string s\n<END>",
"<BEGIN>\n## `itersplit_to_fields`",
"Itersplit a string into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_unique_repos API.
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_unique_repos API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Search for repositories and deduplicate based on ``repo.fpath``
Args:
where (str): path to search from
Yields:
Repository subclass | "Search for repositories and deduplicate based on ``repo.fpath``\n\n Args:\n where (str): path to search from\n\n Yields:\n Repository subclass" | 149 | false | westurner/pyrpo | find_unique_repos | 23,281 | |
LDU_FT/yougov/pmxbot/ticker | LDU_FT | [
"<BEGIN>\n## `attach`",
"Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>",
"<BEGIN>\n## `init_config`",
"Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ticker API.
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 ticker API.
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 ... | Look up a ticker symbol's current trading value | "Look up a ticker symbol's current trading value" | 128 | false | yougov/pmxbot | ticker | 23,282 | |
LDU_FT/ajk8/microcache/has | LDU_FT | [
"<BEGIN>\n## `init_logging`",
"Setup logging for the microcache module, but only do it once!",
" :param stream: stream to log to (defaults to sys.stderr)\n :param filepath: path to a file to log to as well (defaults to None)\n :param format: override the default format with whatever you like\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API.
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 has API.
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... | See if a key is in the cache
Returns CACHE_DISABLED if the cache is disabled
:param key: key to search for | "See if a key is in the cache\n\n Returns CACHE_DISABLED if the cache is disabled\n\n :param key: key to search for" | 35 | false | ajk8/microcache | has | 23,283 | |
LDU_FT/mkoura/dump2polarion/_get_results | LDU_FT | [
"<BEGIN>\n## `only_passed_and_wait`",
"Returns PASS and WAIT results only, skips everything else.\n<END>",
"<BEGIN>\n## `insert_source_info`",
"Adds info about source of test result if available.\n<END>",
"<BEGIN>\n## `setup_parametrization`",
"Modifies result's data according to the parametrization setti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_results API.
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_results API.
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... | Maps data to fieldnames.
The reader needs to be at position after fieldnames, before the results data. | "Maps data to fieldnames.\n\n The reader needs to be at position after fieldnames, before the results data." | 107 | false | mkoura/dump2polarion | _get_results | 23,284 | |
LDU_FT/aconrad/pycobertura/branch_rate | LDU_FT | [
"<BEGIN>\n## `line_rate`",
"Return the global line rate of the coverage report. If the\n `filename` file is given, return the line rate of the file.\n<END>",
"<BEGIN>\n## `branch_rate`",
"Return the global branch rate of the coverage report. If the\n `filename` file is given, return the branch r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the branch_rate API.
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 branch_rate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the global branch rate of the coverage report. If the
`filename` file is given, return the branch rate of the file. | "Return the global branch rate of the coverage report. If the\n `filename` file is given, return the branch rate of the file." | 53 | false | aconrad/pycobertura | branch_rate | 23,285 | |
LDU_FT/IdentityPython/oidcendpoint/lv_unpack | LDU_FT | [
"<BEGIN>\n## `client_authentication`",
"Deal with client authentication",
" :param request: The refresh access token request\n :param auth: Client authentication information\n :param kwargs: Extra keyword arguments\n :return: dictionary containing client id, client authentication met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lv_unpack API.
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 lv_unpack API.
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... | Deserializes a string of the length:value format
:param txt: The input string
:return: a list og values | "Deserializes a string of the length:value format\n\n :param txt: The input string\n :return: a list og values" | 180 | false | IdentityPython/oidcendpoint | lv_unpack | 23,286 | |
LDU_FT/PyMySQL/mysqlclient-python/set_character_set | LDU_FT | [
"<BEGIN>\n## `numeric_part`",
"Returns the leading numeric part of a string.",
" >>> numeric_part(\"20-alpha\")\n 20\n >>> numeric_part(\"foo\")\n >>> numeric_part(\"16b\")\n 16\n<END>",
"<BEGIN>\n## `literal`",
"If o is a single object, returns an SQL literal as a string.\n If o is a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_character_set API.
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 set_character_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Set the connection character set to charset. The character
set can only be changed in MySQL-4.1 and newer. If you try
to change the character set from the current value in an
older version, NotSupportedError will be raised. | "Set the connection character set to charset. The character\n set can only be changed in MySQL-4.1 and newer. If you try\n to change the character set from the current value in an\n older version, NotSupportedError will be raised." | 30 | false | PyMySQL/mysqlclient-python | set_character_set | 23,287 | |
LDU_FT/honzamach/pydgets/_wrap_content | LDU_FT | [
"<BEGIN>\n## `terminal_size`",
"Detect the current size of terminal window as a numer of rows and columns.\n<END>",
"<BEGIN>\n## `list_settings`",
"Get list of all appropriate settings and their default values.",
" The returned list is then used in setup() and get_setup() methods to setup\n th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _wrap_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Wrap given content into lines of given width. | "Wrap given content into lines of given width." | 71 | false | honzamach/pydgets | _wrap_content | 23,288 | |
LDU_FT/astrocatalogs/astrocats/get_hash | LDU_FT | [
"<BEGIN>\n## `main`",
"Primary entry point for all AstroCats catalogs.",
" From this entry point, all internal catalogs can be accessed and their\n public methods executed (for example: import scripts).\n<END>",
"<BEGIN>\n## `setup_user_config`",
"Setup a configuration file in the user's home director... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hash API.
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 a unique hash associated with the listed keys. | "Return a unique hash associated with the listed keys." | 243 | false | astrocatalogs/astrocats | get_hash | 23,289 | |
LDU_FT/psss/did/subscribed | LDU_FT | [
"<BEGIN>\n## `search`",
"Perform issue search for given stats instance\n<END>",
"<BEGIN>\n## `updated`",
"True if the issue was commented by given user\n<END>",
"<BEGIN>\n## `issues`",
"Filter unique issues for given activity type and email\n<END>",
"<BEGIN>\n## `_fetch_activities`",
"Get organization... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribed API.
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 subscribed API.
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... | True if CC was added in given time frame | "True if CC was added in given time frame" | 118 | false | psss/did | subscribed | 23,290 | |
LDU_FT/facebook/pyre-check/acquire_lock | LDU_FT | [
"<BEGIN>\n## `log_time`",
"Log the time it takes to run a function. It's sort of like timeit, but\n prettier.\n<END>",
"<BEGIN>\n## `daemonize`",
"We double-fork here to detach the daemon process from the parent.\n If we were to just fork the child as a daemon, we'd have to worry about the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire_lock API.
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 acquire_lock API.
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... | Raises an OSError if the lock can't be acquired | "Raises an OSError if the lock can't be acquired" | 150 | false | facebook/pyre-check | acquire_lock | 23,291 | |
LDU_FT/theislab/scvelo/velocity_embedding | LDU_FT | [
"<BEGIN>\n## `strings_to_categoricals`",
"Transform string annotations to categoricals.\n<END>",
"<BEGIN>\n## `velocity_graph`",
"\\\n Plot of the velocity graph.",
" Arguments\n ---------\n adata: :class:`~anndata.AnnData`\n Annotated data matrix.\n vkey: `str` or `None` (default: `No... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the velocity_embedding 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 velocity_embedding 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... | Computes the single cell velocities in the embedding
Arguments
---------
data: :class:`~anndata.AnnData`
Annotated data matrix.
basis: `str` (default: `'tsne'`)
Which embedding to use.
vkey: `str` (default: `'velocity'`)
Name of velocity estimates to be used.
scale: `int... | "Computes the single cell velocities in the embedding\n\n Arguments\n ---------\n data: :class:`~anndata.AnnData`\n Annotated data matrix.\n basis: `str` (default: `'tsne'`)\n Which embedding to use.\n vkey: `str` (default: `'velocity'`)\n Name of velocity estimates to be used.\n ... | 200 | false | theislab/scvelo | velocity_embedding | 23,292 | |
LDU_FT/reincubate/ricloud/_retrieve_result | LDU_FT | [
"<BEGIN>\n## `error_message_and_exit`",
"Prints error messages in blue, the failed task result and quits.\n<END>",
"<BEGIN>\n## `print_prompt_values`",
"Prints prompt title and choices with a bit of formatting.\n<END>",
"<BEGIN>\n## `prompt_for_input`",
"Prints prompt instruction and does basic input pars... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _retrieve_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Prepare the request list and execute them concurrently. | "Prepare the request list and execute them concurrently." | 50 | false | reincubate/ricloud | _retrieve_result | 23,293 | |
LDU_FT/Esri/ArcREST/getAppInfo | LDU_FT | [
"<BEGIN>\n## `trace`",
"trace finds the line, the filename\n and error message and returns it\n to the user\n<END>",
"<BEGIN>\n## `merge_dicts`",
"Merge a list of dictionaries.",
" Args:\n dicts (list): a list of dictionary objects\n op (operator): an operator item used to mer... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getAppInfo API.
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 getAppInfo API.
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... | Every application registered with Portal for ArcGIS has a unique
client ID and a list of redirect URIs that are used for OAuth. This
operation returns these OAuth-specific properties of an application.
You can use this information to update the redirect URIs by using
the Update App Info ... | "Every application registered with Portal for ArcGIS has a unique\n client ID and a list of redirect URIs that are used for OAuth. This\n operation returns these OAuth-specific properties of an application.\n You can use this information to update the redirect URIs by using\n the Update App ... | 1,240 | true | Esri/ArcREST | getAppInfo | 23,294 | |
LDU_FT/portfoliome/postpy/delete_joined_table_sql | LDU_FT | [
"<BEGIN>\n## `check_extension`",
"Check to see if an extension is installed.\n<END>",
"<BEGIN>\n## `generate_numeric_range`",
"Generate postgresql numeric range and label for insertion.",
" Parameters\n ----------\n items: iterable labels for ranges.\n lower_bound: numeric lower bound\n upper... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_joined_table_sql API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_joined_table_sql API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | SQL statement for a joined delete from.
Generate SQL statement for deleting the intersection of rows between
both tables from table referenced by tablename. | "SQL statement for a joined delete from.\n Generate SQL statement for deleting the intersection of rows between\n both tables from table referenced by tablename." | 50 | false | portfoliome/postpy | delete_joined_table_sql | 23,295 | |
LDU_FT/caspervg/pylex/rate | LDU_FT | [
"<BEGIN>\n## `lot`",
"Retrieve the lot with given identifier",
" :param id: Identifier of the lot to retrieve\n :param user: Should user (authenticated) information be returned (e.g. last_downloaded)\n :param dependencies: Should a dependency list be returned\n :param comments: Shoul... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rate API.
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 rate API.
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... | Add a rating (vote and/or comment) to the lot with given identifier
:param id: Identifier to add the rating to
:param comment: String with the comment to add. It should have len > 0 when entered.
:param vote: int with the vote to add. It should be greater than 0 and smaller than 4 when entered.
... | "Add a rating (vote and/or comment) to the lot with given identifier\n :param id: Identifier to add the rating to\n :param comment: String with the comment to add. It should have len > 0 when entered.\n :param vote: int with the vote to add. It should be greater than 0 and smaller than 4 when enter... | 18 | false | caspervg/pylex | rate | 23,296 | |
LDU_FT/rstoneback/pysatMagVect/add_mag_drift_unit_vectors | LDU_FT | [
"<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`",
"Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.",
" Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_mag_drift_unit_vectors 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 add_mag_drift_unit_vectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Add unit vectors expressing the ion drift coordinate system
organized by the geomagnetic field. Unit vectors are expressed
in S/C coordinates.
Interally, routine calls add_mag_drift_unit_vectors_ecef.
See function for input parameter description.
Requires the orientation of the S/C basis vecto... | "Add unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in S/C coordinates.\n \n Interally, routine calls add_mag_drift_unit_vectors_ecef. \n See function for input parameter description.\n Requires the orientation of the S/C basi... | 108 | false | rstoneback/pysatMagVect | add_mag_drift_unit_vectors | 23,297 | |
LDU_FT/merll/docker-fabric/extract_tar | LDU_FT | [
"<BEGIN>\n## `reset_socat`",
"Finds and closes all processes of `socat`.",
" :param use_sudo: Use `sudo` command. As Docker-Fabric does not run `socat` with `sudo`, this is by default set to\n ``False``. Setting it to ``True`` could unintentionally remove instances from other users.\n :type use_sudo:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_tar API.
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 extract_tar API.
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... | Extracts a TAR archive. All element names starting with ``/`` (indicating an absolute path) or that contain ``..``
as references to a parent directory are not extracted.
:param filename: Path to the tar file.
:type filename: unicode
:param dest_path: Destination path to extract the contents to.
:ty... | "Extracts a TAR archive. All element names starting with ``/`` (indicating an absolute path) or that contain ``..``\n as references to a parent directory are not extracted.\n\n :param filename: Path to the tar file.\n :type filename: unicode\n :param dest_path: Destination path to extract the contents to.\n... | 157 | false | merll/docker-fabric | extract_tar | 23,298 | |
LDU_FT/fhcrc/taxtastic/_node | LDU_FT | [
"<BEGIN>\n## `action`",
"Roll back commands on a refpkg.",
" *args* should be an argparse object with fields refpkg (giving the\n path to the refpkg to operate on) and n (giving the number of\n operations to roll back).\n<END>",
"<BEGIN>\n## `taxtable_to_tree`",
"Read a CSV taxonomy from *handle* i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _node API.
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 _node API.
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... | Returns parent_id, rank
FIXME: expand return rank to include custom 'below' ranks built when
get_lineage is caled | "Returns parent_id, rank\n\n FIXME: expand return rank to include custom 'below' ranks built when\n get_lineage is caled" | 197 | false | fhcrc/taxtastic | _node | 23,299 | |
LDU_FT/OCA/openupgradelib/load_data | LDU_FT | [
"<BEGIN>\n## `_adjust_merged_values_orm`",
"This method deals with the values on the records to be merged +\n the target record, performing operations that makes sense on the meaning\n of the model.",
" :param field_spec: Dictionary with field names as keys and forced operation\n to perform as val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract... | Load an xml, csv or yml data file from your post script. The usual case for
this is the
occurrence of newly added essential or useful data in the module that is
marked with "noupdate='1'" and without "forcecreate='1'" so that it will
not be loaded by the usual upgrade mechanism. Leaving the 'mode' argum... | "Load an xml, csv or yml data file from your post script. The usual case for\n this is the\n occurrence of newly added essential or useful data in the module that is\n marked with \"noupdate='1'\" and without \"forcecreate='1'\" so that it will\n not be loaded by the usual upgrade mechanism. Leaving the 'mo... | 190 | false | OCA/openupgradelib | load_data | 23,300 | |
LDU_FT/CartoDB/carto-python/create_and_wait_for_completion | LDU_FT | [
"<BEGIN>\n## `run`",
"Actually creates the import job on the CARTO server",
" :param import_params: To be send to the Import API, see CARTO's docs\n on Import API for an updated list of accepted\n params\n :type import_params: kwargs",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_and_wait_for_completion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_and_wait_for_completion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Creates a new batch SQL query and waits for its completion or failure
Batch SQL jobs are asynchronous, once created this method
automatically queries the job status until it's one of 'done',
'failed', 'canceled', 'unknown'
:param sql_query: The SQL query to be used
:type sql_qu... | "Creates a new batch SQL query and waits for its completion or failure\n\n Batch SQL jobs are asynchronous, once created this method\n automatically queries the job status until it's one of 'done',\n 'failed', 'canceled', 'unknown'\n\n :param sql_query: The SQL query to be used\n :typ... | 154 | false | CartoDB/carto-python | create_and_wait_for_completion | 23,301 | |
LDU_FT/rs/domcheck/search_meta_tag | LDU_FT | [
"<BEGIN>\n## `check`",
"Check the ownership of a domain by going thru a serie of strategies.\n If at least one strategy succeed, the domain is considered verified,\n and this methods returns true.",
" The prefix is a fixed DNS safe string like \"yourservice-domain-verification\"\n and the code is a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_meta_tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_meta_tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Checks whether the html_doc contains a meta matching the prefix & code | "Checks whether the html_doc contains a meta matching the prefix & code" | 15 | false | rs/domcheck | search_meta_tag | 23,302 | |
LDU_FT/mlouielu/twstock/bias_ratio | LDU_FT | [
"<BEGIN>\n## `cal_continue`",
"計算持續天數",
" :rtype: int\n :returns: 向量數值:正數向上、負數向下。\n<END>",
"<BEGIN>\n## `ma_bias_ratio`",
"計算乖離率(均價)\n date1 - date2",
" :param int data1: n 日\n :param int data2: m 日\n :rtype: 序列 舊→新\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bias_ratio API.
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 bias_ratio API.
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... | 判斷乖離
:param bool positive_or_negative: 正乖離 為 True,負乖離 為 False | "判斷乖離\n\n :param bool positive_or_negative: 正乖離 為 True,負乖離 為 False" | 17 | false | mlouielu/twstock | bias_ratio | 23,303 | |
LDU_FT/mozilla-services/amo2kinto/version_dict | LDU_FT | [
"<BEGIN>\n## `is_related_to`",
"Return True if the item relates to the given app_id (and app_ver, if passed).\n<END>",
"<BEGIN>\n## `get_related_targetApplication`",
"Return the first matching target application in this version range.\n Returns None if there are no target applications or no matching ones.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_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 version_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... | Turn a version string into a dict with major/minor/... info. | "Turn a version string into a dict with major/minor/... info." | 24 | false | mozilla-services/amo2kinto | version_dict | 23,304 | |
LDU_FT/tansey/gfl/decompose_graph | LDU_FT | [
"<BEGIN>\n## `solve_gfl`",
"A very easy-to-use version of GFL solver that just requires the data and\n the edges.\n<END>",
"<BEGIN>\n## `sample_gtf`",
"Generate samples from the generalized graph trend filtering distribution via a modified Swendsen-Wang slice sampling algorithm.\n Options for likelihood... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decompose_graph API.
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 decompose_graph API.
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... | Decompose a graph into a set of non-overlapping trails. | "Decompose a graph into a set of non-overlapping trails." | 50 | false | tansey/gfl | decompose_graph | 23,305 | |
LDU_FT/seperman/s3utils/rm | LDU_FT | [
"<BEGIN>\n## `connect`",
"Establish the connection. This is done automatically for you.",
" If you lose the connection, you can manually run this to be re-connected.\n<END>",
"<BEGIN>\n## `connect_cloudfront`",
"Connect to Cloud Front. This is done automatically for you when needed.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm API.
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 docu... | Delete the path and anything under the path.
Example
-------
>>> s3utils.rm("path/to/file_or_folder") | "Delete the path and anything under the path.\n\n Example\n -------\n >>> s3utils.rm(\"path/to/file_or_folder\")" | 74 | false | seperman/s3utils | rm | 23,306 | |
LDU_FT/array-split/array_split/check_consistent_parameter_grouping | LDU_FT | [
"<BEGIN>\n## `read_readme`",
"Reads part of the README.rst for use as long_description in setup().\n<END>",
"<BEGIN>\n## `pad_with_object`",
"Returns :samp:`sequence` :obj:`list` end-padded with :samp:`{obj}`\n elements so that the length of the returned list equals :samp:`{new_length}`.",
" :type seq... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_consistent_parameter_grouping API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_consistent_parameter_grouping API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Ensures this object does not have conflicting groups of parameters.
:raises ValueError: For conflicting or absent parameters. | "Ensures this object does not have conflicting groups of parameters.\n\n :raises ValueError: For conflicting or absent parameters." | 67 | false | array-split/array_split | check_consistent_parameter_grouping | 23,307 | |
LDU_FT/msoulier/tftpy/encode | LDU_FT | [
"<BEGIN>\n## `parse`",
"This method is used to parse an existing datagram into its\n corresponding TftpPacket object. The buffer is the raw bytes off of\n the network.\n<END>",
"<BEGIN>\n## `__create`",
"This method returns the appropriate class object corresponding to\n the passed opcode... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Encode the DAT packet. This method populates self.buffer, and
returns self for easy method chaining. | "Encode the DAT packet. This method populates self.buffer, and\n returns self for easy method chaining." | 70 | false | msoulier/tftpy | encode | 23,308 | |
LDU_FT/darothen/xbpch/prof_altitude | LDU_FT | [
"<BEGIN>\n## `from_model`",
"Define a grid using the specifications of a given model.",
" Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prof_altitude API.
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 prof_altitude API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return altitude for given pressure.
This function evaluates a polynomial at log10(pressure) values.
Parameters
----------
pressure : array-like
pressure values [hPa].
p_coef : array-like
coefficients of the polynomial (default values are for the US
Standard Atmosphere).
... | "Return altitude for given pressure.\n\n This function evaluates a polynomial at log10(pressure) values.\n\n Parameters\n ----------\n pressure : array-like\n pressure values [hPa].\n p_coef : array-like\n coefficients of the polynomial (default values are for the US\n Standard Atmos... | 122 | false | darothen/xbpch | prof_altitude | 23,309 | |
LDU_FT/python-bonobo/bonobo/_resolve_transformations | LDU_FT | [
"<BEGIN>\n## `run`",
"Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.",
" The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.",
" By default, this graph will be executed using the \"threadp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_transformations 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 _resolve_transformations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Resolve a collection of strings into the matching python objects, defaulting to bonobo namespace if no package is provided.
Syntax for each string is path.to.package:attribute
:param transformations: tuple(str)
:return: tuple(object) | "Resolve a collection of strings into the matching python objects, defaulting to bonobo namespace if no package is provided.\n\n Syntax for each string is path.to.package:attribute\n\n :param transformations: tuple(str)\n :return: tuple(object)" | 140 | false | python-bonobo/bonobo | _resolve_transformations | 23,310 | |
LDU_FT/CalebBell/fpi/Geldart_Ling | LDU_FT | [
"<BEGIN>\n## `Rizk`",
"r'''Calculates saltation velocity of the gas for pneumatic conveying,\n according to [1]_ as described in [2]_ and many others.",
" .. math::\n \\mu=\\left(\\frac{1}{10^{1440d_p+1.96}}\\right)\\left(Fr_s\\right)^{1100d_p+2.5}",
" Fr_s = \\frac{V_{salt}}{\\sqrt{gD}}",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Geldart_Ling API.
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 Geldart_Ling API.
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... | r'''Calculates saltation velocity of the gas for pneumatic conveying,
according to [1]_ as described in [2]_ and [3]_.
if Gs/D < 47000, use equation 1, otherwise use equation 2.
.. math::
V_{salt} = 1.5G_s^{0.465}D^{-0.01} \mu^{0.055}\rho_f^{-0.42}
V_{salt} = 8.7G_s^{0.302}D^{0.153} \mu^{... | "r'''Calculates saltation velocity of the gas for pneumatic conveying,\n according to [1]_ as described in [2]_ and [3]_.\n\n if Gs/D < 47000, use equation 1, otherwise use equation 2.\n\n .. math::\n V_{salt} = 1.5G_s^{0.465}D^{-0.01} \\mu^{0.055}\\rho_f^{-0.42}\n\n V_{salt} = 8.7G_s^{0.302}D^{0... | 121 | false | CalebBell/fpi | Geldart_Ling | 23,311 | |
LDU_FT/Loudr/pale/_validate_required | LDU_FT | [
"<BEGIN>\n## `py_doc_trim`",
"Trim a python doc string.",
" This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.",
" It has been modified to replace single newlines with a space, but leave\n multiple consecutive ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_required 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 _validate_required 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... | Validate that the item is present if it's required. | "Validate that the item is present if it's required." | 107 | false | Loudr/pale | _validate_required | 23,312 | |
LDU_FT/RetailMeNotSandbox/acky/create | LDU_FT | [
"<BEGIN>\n## `destroy`",
"Release an EIP. If the EIP was allocated for a VPC instance, an\n AllocationId(aid) must be provided instead of a PublicIp. Setting\n disassociate to True will attempt to disassociate the IP before\n releasing it (required for associated nondefault VPC instances).\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create an EBS Volume using an availability-zone and size_or_snap
parameter, encrypted by default.
If the volume is crated from a snapshot, (str)size_or_snap denotes
the snapshot id. Otherwise, (int)size_or_snap denotes the amount of
GiB's to allocate. iops must be set if the volume type ... | "Create an EBS Volume using an availability-zone and size_or_snap\n parameter, encrypted by default.\n If the volume is crated from a snapshot, (str)size_or_snap denotes\n the snapshot id. Otherwise, (int)size_or_snap denotes the amount of\n GiB's to allocate. iops must be set if the volume ... | 32 | false | RetailMeNotSandbox/acky | create | 23,313 | |
LDU_FT/splitkeycoffee/pyhottop/_valid_config | LDU_FT | [
"<BEGIN>\n## `_generate_config`",
"Generate a configuration that can be sent to the Hottop roaster.",
" Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_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 ext... | Scan through the returned settings to ensure they appear sane.
There are time when the returned buffer has the proper information, but
the reading is inaccurate. When this happens, temperatures will swing
or system values will be set to improper values.
:param settings: Configuration d... | "Scan through the returned settings to ensure they appear sane.\n\n There are time when the returned buffer has the proper information, but\n the reading is inaccurate. When this happens, temperatures will swing\n or system values will be set to improper values.\n\n :param settings: Configur... | 89 | false | splitkeycoffee/pyhottop | _valid_config | 23,314 | |
LDU_FT/VisTrails/tej/setup | LDU_FT | [
"<BEGIN>\n## `escape_queue`",
"Escapes the path to a queue, e.g. preserves ~ at the begining.\n<END>",
"<BEGIN>\n## `get_client`",
"Gets the SSH client.",
" This will check that the connection is still alive first, and reconnect\n if necessary.\n<END>",
"<BEGIN>\n## `_call`",
"Calls a comm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Installs the runtime at the target location.
This will not replace an existing installation, unless `force` is True.
After installation, creates links to this installation at the specified
locations. | "Installs the runtime at the target location.\n\n This will not replace an existing installation, unless `force` is True.\n\n After installation, creates links to this installation at the specified\n locations." | 26 | false | VisTrails/tej | setup | 23,315 | |
LDU_FT/samjabrahams/anchorhub/normalize | LDU_FT | [
"<BEGIN>\n## `get`",
"Extract the specified AnchorHub tag, as well as the portion of the\n line that should be converted from the ATX style Markdown header.",
" :param file_lines: List of strings corresponding to lines in a text file\n :param index: index of file_lines corresponding to the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Performs various normalization functions on opts, the provided namespace. It
is assumed that opts has already been validated with
anchorhub.validation_opts.validate().
:param opts: a namespace containing options for AnchorHub
:return: a namespace with the attributes modified | "Performs various normalization functions on opts, the provided namespace. It\n is assumed that opts has already been validated with\n anchorhub.validation_opts.validate().\n\n :param opts: a namespace containing options for AnchorHub\n :return: a namespace with the attributes modified" | 148 | false | samjabrahams/anchorhub | normalize | 23,316 | |
LDU_FT/mkorpela/pabot/get_parallel_value_for_key | LDU_FT | [
"<BEGIN>\n## `run_only_once`",
"Runs a keyword only once in one of the parallel processes.\n As the keyword will be called\n only in one process and the return value could basically be anything.\n The \"Run Only Once\" can't return the actual return value.\n If the keyword fails, \"Run... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parallel_value_for_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_parallel_value_for_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Get the value for a key. If there is no value for the key then empty
string is returned. | "Get the value for a key. If there is no value for the key then empty\n string is returned." | 17 | false | mkorpela/pabot | get_parallel_value_for_key | 23,317 | |
LDU_FT/StackStorm/pybind/_set_fcoe | LDU_FT | [
"<BEGIN>\n## `_set_virtual_mac`",
"Setter method for virtual_mac, mapped from YANG variable /rbridge_id/interface/ve/ipv6/vrrpv3e/virtual_mac (container)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_virtual_mac is considered as a private\n method. Backends looking ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_fcoe API.
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_fcoe API.
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... | Setter method for fcoe, mapped from YANG variable /fcoe (container)
If this variable is read-only (config: false) in the
source YANG file, then _set_fcoe is considered as a private
method. Backends looking to populate this variable should
do so via calling thisObj._set_fcoe() directly.
YANG Descrip... | "Setter method for fcoe, mapped from YANG variable /fcoe (container)\n If this variable is read-only (config: false) in the\n source YANG file, then _set_fcoe is considered as a private\n method. Backends looking to populate this variable should\n do so via calling thisObj._set_fcoe() directly.\n\n YANG ... | 3,057 | true | StackStorm/pybind | _set_fcoe | 23,318 | |
LDU_FT/bitprophet/releases/scan_for_spec | LDU_FT | [
"<BEGIN>\n## `add_family`",
"Expand to a new release line with given ``major_number``.",
" This will flesh out mandatory buckets like ``unreleased_bugfix`` and do\n other necessary bookkeeping.\n<END>",
"<BEGIN>\n## `has_stable_releases`",
"Returns whether stable (post-0.x) releases seem to ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_for_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_for_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Attempt to return some sort of Spec from given keyword value.
Returns None if one could not be derived. | "Attempt to return some sort of Spec from given keyword value.\n\n Returns None if one could not be derived." | 76 | false | bitprophet/releases | scan_for_spec | 23,319 | |
LDU_FT/python/core-workflow/cleanup_branch | LDU_FT | [
"<BEGIN>\n## `f`",
"Basic support for 3.6's f-strings, in 3.5!",
" Formats \"s\" using appropriate globals and locals\n dictionaries. This f-string:\n f\"hello a is {a}\"\n simply becomes\n f(\"hello a is {a}\")\n In other words, just throw parentheses around the\n string, and you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_branch API.
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 cleanup_branch API.
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... | Remove the temporary backport branch.
Switch to the default branch before that. | "Remove the temporary backport branch.\n\n Switch to the default branch before that." | 71 | false | python/core-workflow | cleanup_branch | 23,320 | |
LDU_FT/opentok/Opentok-Python-SDK/get_stream | LDU_FT | [
"<BEGIN>\n## `get_stream_url`",
"this method returns the url to get streams information\n<END>",
"<BEGIN>\n## `force_disconnect_url`",
"this method returns the force disconnect url endpoint\n<END>",
"<BEGIN>\n## `set_archive_layout_url`",
"this method returns the url to set the archive layout\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_stream API.
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_stream API.
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 an Stream object that contains information of an OpenTok stream:
-id: The stream ID
-videoType: "camera" or "screen"
-name: The stream name (if one was set when the client published the stream)
-layoutClassList: It's an array of the layout classes for the stream | "Returns an Stream object that contains information of an OpenTok stream:\n\n -id: The stream ID\n -videoType: \"camera\" or \"screen\"\n -name: The stream name (if one was set when the client published the stream)\n -layoutClassList: It's an array of the layout classes for the stream" | 128 | false | opentok/Opentok-Python-SDK | get_stream | 23,321 | |
LDU_FT/kislyuk/ensure/contains_one_of | LDU_FT | [
"<BEGIN>\n## `ensure_annotations`",
"Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises\n :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises\n :class:`EnsureError` if the return value of *f* is not o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_one_of API.
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 contains_one_of API.
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... | Ensures :attr:`subject` contains exactly one of *elements*, which must be an iterable. | "Ensures :attr:`subject` contains exactly one of *elements*, which must be an iterable." | 81 | false | kislyuk/ensure | contains_one_of | 23,322 | |
LDU_FT/arve0/leicascanningtemplate/well_fields | LDU_FT | [
"<BEGIN>\n## `well_fields`",
"All ScanFieldData elements of given well.",
" Parameters\n ----------\n well_x : int\n well_y : int",
" Returns\n -------\n list of lxml.objectify.ObjectifiedElement\n All ScanFieldData elements of given well.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the well_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the well_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | All ScanFieldData elements of given well.
Parameters
----------
well_x : int
well_y : int
Returns
-------
list of lxml.objectify.ObjectifiedElement
All ScanFieldData elements of given well. | "All ScanFieldData elements of given well.\n\n Parameters\n ----------\n well_x : int\n well_y : int\n\n Returns\n -------\n list of lxml.objectify.ObjectifiedElement\n All ScanFieldData elements of given well." | 36 | false | arve0/leicascanningtemplate | well_fields | 23,323 | |
LDU_FT/peterbrittain/asciimatics/_draw_polygons | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset the scene ready for playing.",
" :param old_scene: The previous version of this Scene that was running before the\n application reset - e.g. due to a screen resize.\n :param screen: New screen to use if old_scene is not None.\n<END>",
"<BEGIN>\n## `add_ef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _draw_polygons API.
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 _draw_polygons API.
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... | Draw a set of polygons from a vector tile. | "Draw a set of polygons from a vector tile." | 355 | false | peterbrittain/asciimatics | _draw_polygons | 23,324 | |
LDU_FT/GGiecold/Concurrent_AP/compute_responsibilities | LDU_FT | [
"<BEGIN>\n## `chunk_generator`",
"Returns a generator of slice objects.",
" Parameters\n ----------\n N : int\n The size of one of the dimensions of a two-dimensional array. ",
" n : int\n The number of arrays of shape ('N', 'get_chunk_size(N, n)') that fit into\n memory.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_responsibilities 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 compute_responsibilities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Organize the computation and update of the responsibility matrix
for Affinity Propagation clustering with 'damping' as the eponymous
damping parameter. Each of the processes concurrently involved in this task
is an instance of the class 'Responsibilities_worker' defined above. | "Organize the computation and update of the responsibility matrix\n for Affinity Propagation clustering with 'damping' as the eponymous \n damping parameter. Each of the processes concurrently involved in this task \n is an instance of the class 'Responsibilities_worker' defined above." | 61 | false | GGiecold/Concurrent_AP | compute_responsibilities | 23,325 | |
LDU_FT/Kaggle/kaggle-api/print_table | LDU_FT | [
"<BEGIN>\n## `language`",
"Sets the language of this KernelPushRequest.",
" The language that the kernel is written in # noqa: E501",
" :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `kernel_type`",
"Sets the kernel_type of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_table API.
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 print_table API.
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... | print a table of items, for a set of fields defined
Parameters
==========
items: a list of items to print
fields: a list of fields to select from items | "print a table of items, for a set of fields defined\n\n Parameters\n ==========\n items: a list of items to print\n fields: a list of fields to select from items" | 304 | false | Kaggle/kaggle-api | print_table | 23,326 | |
LDU_FT/kashifrazzaqui/json-streamer/consume | LDU_FT | [
"<BEGIN>\n## `parse`",
"parse a JSON stream.\n :type f: file\n :param f: stream to parse JSON from\n :type context: ctypes.POINTER\n :raises YajlError: When invalid JSON in input stream found\n<END>",
"<BEGIN>\n## `on_number`",
"Since this is defined both integer and double callbac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consume API.
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 consume API.
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... | Takes input that must be parsed
Note:
Attach all your listeners before calling this method
Args:
data (str): input json string | "Takes input that must be parsed\n\n Note:\n Attach all your listeners before calling this method\n\n Args:\n data (str): input json string" | 16 | false | kashifrazzaqui/json-streamer | consume | 23,327 | |
LDU_FT/elifesciences/elife-article/pretty | LDU_FT | [
"<BEGIN>\n## `build_contributors`",
"Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>",
"<BEGIN>\n## `build_datasets`",
"Given datasets in JSON format, build and return a list of dataset objects\n<END>",
"<BEGIN>\n## `build_data_availability`",
"Given da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty API.
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 pretty API.
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 ... | sort values and format output for viewing and comparing in test scenarios | "sort values and format output for viewing and comparing in test scenarios" | 44 | false | elifesciences/elife-article | pretty | 23,328 | |
LDU_FT/ManiacalLabs/PixelWeb/headerlist | 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 headerlist API.
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 headerlist API.
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... | WSGI conform list of (header, value) tuples. | "WSGI conform list of (header, value) tuples." | 100 | false | ManiacalLabs/PixelWeb | headerlist | 23,329 | |
LDU_FT/pydsigner/taskit/get_tasks | LDU_FT | [
"<BEGIN>\n## `_wait`",
"Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API.
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... | Gets a string of the tasks running on `backend`. This string will
either be an integer if the backend is up, or else 'down'.Raises
ValueError if `backend` is not registered with the client.
Example:
>>> frontend = FrontEnd(['localhost', '****'])
>>> frontend.g... | "Gets a string of the tasks running on `backend`. This string will \n either be an integer if the backend is up, or else 'down'.Raises \n ValueError if `backend` is not registered with the client.\n \n Example:\n \n >>> frontend = FrontEnd(['localhost', '****'])\n >>> fr... | 59 | false | pydsigner/taskit | get_tasks | 23,330 | |
LDU_FT/Cog-Creators/Red-Lavalink/connect | LDU_FT | [
"<BEGIN>\n## `wait_until_ready`",
"Waits for the underlying node to become ready.",
" If no_raise is set, returns false when a timeout occurs instead of propogating TimeoutError.\n A timeout of None means to wait indefinitely.\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the voice channel as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Connects to the Lavalink player event websocket.
Parameters
----------
timeout : int
Time after which to timeout on attempting to connect to the Lavalink websocket,
``None`` is considered never, but the underlying code may stop trying past a
certain point.
... | "Connects to the Lavalink player event websocket.\n\n Parameters\n ----------\n timeout : int\n Time after which to timeout on attempting to connect to the Lavalink websocket,\n ``None`` is considered never, but the underlying code may stop trying past a\n certain p... | 103 | false | Cog-Creators/Red-Lavalink | connect | 23,331 | |
LDU_FT/euske/pdfminer/nextline | LDU_FT | [
"<BEGIN>\n## `nextline`",
"Fetches a next line that ends either with \\\\r or \\\\n.\n<END>",
"<BEGIN>\n## `revreadlines`",
"Fetches a next line backward.",
" This is used to locate the trailers at the end of a file.\n<END>",
"<BEGIN>\n## `nextobject`",
"Yields a list of objects.",
" Ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nextline API.
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 nextline API.
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... | Fetches a next line that ends either with \\r or \\n. | "Fetches a next line that ends either with \\\\r or \\\\n." | 45 | false | euske/pdfminer | nextline | 23,332 | |
LDU_FT/bpsmith/tia/get_mkt_val | LDU_FT | [
"<BEGIN>\n## `sma`",
"If n is 0 then return the ltd mean; else return the n day mean\n<END>",
"<BEGIN>\n## `true_range`",
"http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mkt_val API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_mkt_val API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | return the market value series for the specified Series of pxs | "return the market value series for the specified Series of pxs" | 226 | false | bpsmith/tia | get_mkt_val | 23,333 | |
LDU_FT/SCIP-Interfaces/PySCIPOpt/convex_comb_agg | LDU_FT | [
"<BEGIN>\n## `gpp`",
"gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>",
"<BEGIN>\n## `gpp_soco`",
"gpp -- model for the graph partitioning problem in soco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convex_comb_agg API.
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 convex_comb_agg API.
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... | convex_comb_agg -- add piecewise relation convex combination formulation -- non-disaggregated.
Parameters:
- model: a model where to include the piecewise linear relation
- a[k]: x-coordinate of the k-th point in the piecewise linear relation
- b[k]: y-coordinate of the k-th point in the pie... | "convex_comb_agg -- add piecewise relation convex combination formulation -- non-disaggregated.\n Parameters:\n - model: a model where to include the piecewise linear relation\n - a[k]: x-coordinate of the k-th point in the piecewise linear relation\n - b[k]: y-coordinate of the k-th point in th... | 220 | false | SCIP-Interfaces/PySCIPOpt | convex_comb_agg | 23,334 | |
LDU_FT/hwmrocker/smtplibaio/help | LDU_FT | [
"<BEGIN>\n## `read_reply`",
"Reads a reply from the server.",
" Raises:\n ConnectionResetError: If the connection with the server is lost\n (we can't read any response anymore). Or if the server\n replies without a proper return code.",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help API.
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 help API.
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... | Sends a SMTP 'HELP' command.
For further details please check out `RFC 5321 § 4.1.1.8`_.
Args:
command_name (str or None, optional): Name of a command for which
you want help. For example, if you want to get help about the
'*RSET*' command, you'd call ``help... | "Sends a SMTP 'HELP' command.\n\n For further details please check out `RFC 5321 § 4.1.1.8`_.\n\n Args:\n command_name (str or None, optional): Name of a command for which\n you want help. For example, if you want to get help about the\n '*RSET*' command, you'd cal... | 140 | false | hwmrocker/smtplibaio | help | 23,335 | |
LDU_FT/kejbaly2/metrique/batch_gen | LDU_FT | [
"<BEGIN>\n## `filtered`",
"Decorator function that wraps functions returning pandas\n dataframes, such that the dataframe is filtered\n according to left and right bounds set.\n<END>",
"<BEGIN>\n## `to_datetime`",
"This function converts epoch timestamps to datetimes.",
" :param column: column ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_gen API.
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 batch_gen API.
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... | Usage::
for batch in batch_gen(iter, 100):
do_something(batch) | "Usage::\n for batch in batch_gen(iter, 100):\n do_something(batch)" | 224 | false | kejbaly2/metrique | batch_gen | 23,336 | |
LDU_FT/abarker/pdfCropMargins/samefile | LDU_FT | [
"<BEGIN>\n## `get_bounding_box_list`",
"Calculate a bounding box for each page in the document. The first\n argument is the filename of the document's original PDF file, the second is\n the PdfFileReader for the document. The argument full_page_box_list is a list\n of the full-page-size boxes (which is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the samefile API.
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 samefile API.
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... | Test if paths refer to the same file or directory. | "Test if paths refer to the same file or directory." | 71 | false | abarker/pdfCropMargins | samefile | 23,337 | |
LDU_FT/intelligenia/modeltranslation/_load_translations | LDU_FT | [
"<BEGIN>\n## `_get_fieldtranslations`",
"Get all the translations for this object.\n<END>",
"<BEGIN>\n## `_load_translations`",
"Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy\n<END>",
"<BEGIN>\n## `_set_dict_translations`",
"Establece los atributos ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_translations 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 _load_translations 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... | Loads all translations as dynamic attributes:
<attr>_<lang_code>
<attr>_<lang_code>_is_fuzzy | "Loads all translations as dynamic attributes:\n\t\t<attr>_<lang_code>\n\t\t<attr>_<lang_code>_is_fuzzy" | 36 | false | intelligenia/modeltranslation | _load_translations | 23,338 | |
LDU_FT/SolutionsCloud/apidoc/create_from_dictionary | LDU_FT | [
"<BEGIN>\n## `_init_config`",
"return command's configuration from call's arguments\n<END>",
"<BEGIN>\n## `_merge_files`",
"Combine the input files to a big output file\n<END>",
"<BEGIN>\n## `create_from_name_and_dictionary`",
"Return a populated object Object from dictionary datas\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_dictionary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_from_dictionary 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 a populated object ResponseCode from dictionary datas | "Return a populated object ResponseCode from dictionary datas" | 42 | false | SolutionsCloud/apidoc | create_from_dictionary | 23,339 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/fetch_commits | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_commits API.
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 fetch_commits API.
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... | Fetch from origin.
:raise CalledProcessError: Unhandled git command failure.
:param str local_root: Local path to git root directory.
:param iter remotes: Output of list_remote(). | "Fetch from origin.\n\n :raise CalledProcessError: Unhandled git command failure.\n\n :param str local_root: Local path to git root directory.\n :param iter remotes: Output of list_remote()." | 172 | false | Robpol86/sphinxcontrib-versioning | fetch_commits | 23,340 | |
LDU_FT/glue-viz/echo/notify | LDU_FT | [
"<BEGIN>\n## `add_callback`",
"Attach a callback function to a property in an instance",
" Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API.
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 notify API.
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 ... | Call all callback functions with the current value
Each callback will either be called using
callback(new) or callback(old, new) depending
on whether ``echo_old`` was set to `True` when calling
:func:`~echo.add_callback`
Parameters
----------
instance
... | "Call all callback functions with the current value\n\n Each callback will either be called using\n callback(new) or callback(old, new) depending\n on whether ``echo_old`` was set to `True` when calling\n :func:`~echo.add_callback`\n\n Parameters\n ----------\n instance\... | 88 | false | glue-viz/echo | notify | 23,341 | |
LDU_FT/gtsystem/parallelpipe/processes | LDU_FT | [
"<BEGIN>\n## `iterqueue`",
"Iterate all value from the queue until the ``expected`` number of EXIT elements is\n received\n<END>",
"<BEGIN>\n## `set_in`",
"Set the queue in input and the number of parallel tasks that send inputs\n<END>",
"<BEGIN>\n## `set_out`",
"Set the queue in output and the number ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the processes API.
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 processes API.
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... | Initialise and return the list of processes associated with this pool | "Initialise and return the list of processes associated with this pool" | 18 | false | gtsystem/parallelpipe | processes | 23,342 | |
LDU_FT/elapouya/python-textops/add_textop_iter | LDU_FT | [
"<BEGIN>\n## `activate_debug`",
"Activate debug logging on console",
" This function is useful when playing with python-textops through a python console.\n It is not recommended to use this function in a real application : use standard logging\n functions instead.\n<END>",
"<BEGIN>\n## `add_textop`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_textop_iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_textop_iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Decorator to declare custom *ITER* function as a new textops op
An *ITER* function is a function that will receive the input text as a *LIST* of lines.
One have to iterate over this list and generate a result (it can be a list, a generator,
a dict, a string, an int ...)
Examples:
>>> @add_tex... | "Decorator to declare custom *ITER* function as a new textops op\n\n An *ITER* function is a function that will receive the input text as a *LIST* of lines.\n One have to iterate over this list and generate a result (it can be a list, a generator,\n a dict, a string, an int ...)\n\n Examples:\n\n >>>... | 34 | false | elapouya/python-textops | add_textop_iter | 23,343 | |
LDU_FT/bwesterb/tkbd/fetch_todays_schedule | LDU_FT | [
"<BEGIN>\n## `fetch_room_ids`",
"Fetches the ids of the rooms with the given names\n<END>",
"<BEGIN>\n## `fetch_todays_schedule`",
"Fetch the schedules for the given rooms.\n<END>",
"<BEGIN>\n## `prepare_roomMap`",
"Prepares the roomMap to be JSONified. That is: convert the non\n JSON serializable ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_todays_schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_todays_schedule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Fetch the schedules for the given rooms. | "Fetch the schedules for the given rooms." | 26 | false | bwesterb/tkbd | fetch_todays_schedule | 23,344 | |
LDU_FT/Kortemme-Lab/klab/parse_singular_alphabetic_character | LDU_FT | [
"<BEGIN>\n## `retrieve`",
"Creates a PDBML object by using a cached copy of the files if they exists or by retrieving the files from the RCSB.\n<END>",
"<BEGIN>\n## `parse_deprecation`",
"Checks to see if the PDB file has been deprecated and, if so, what the new ID is.\n<END>",
"<BEGIN>\n## `parse_atoms`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_singular_alphabetic_character API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_singular_alphabetic_character API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Parses the sole alphabetic character value with name tag_name in tag t. Heavy-handed with the asserts. | "Parses the sole alphabetic character value with name tag_name in tag t. Heavy-handed with the asserts." | 725 | false | Kortemme-Lab/klab | parse_singular_alphabetic_character | 23,345 | |
LDU_FT/zestyping/star-destroyer/find_module | LDU_FT | [
"<BEGIN>\n## `for_each_child`",
"Calls the callback for each AST node that's a child of the given node.\n<END>",
"<BEGIN>\n## `resolve_frompath`",
"Resolves the path of the module referred to by 'from ..x import y'.\n<END>",
"<BEGIN>\n## `find_module`",
"Determines whether a module exists with the given m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_module API.
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 find_module API.
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... | Determines whether a module exists with the given modpath. | "Determines whether a module exists with the given modpath." | 24 | false | zestyping/star-destroyer | find_module | 23,346 | |
LDU_FT/amanusk/s-tui/output_to_json | LDU_FT | [
"<BEGIN>\n## `get_label_scale`",
"Dynamically change the scale of the graph (y lable)\n<END>",
"<BEGIN>\n## `calculate_bar_widths`",
"Return a list of bar widths, one for each bar in data.",
" If self.bar_width is None this implementation will stretch\n the bars across the available space spec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Print statistics to the terminal in Json format | "Print statistics to the terminal in Json format" | 70 | false | amanusk/s-tui | output_to_json | 23,347 | |
LDU_FT/guyskk/flask-restaction/export | LDU_FT | [
"<BEGIN>\n## `resp_json`",
"Get JSON from response if success, raise requests.HTTPError otherwise.",
" Args:\n resp: requests.Response or flask.Response\n Retuens:\n JSON value\n<END>",
"<BEGIN>\n## `res_to_url`",
"Convert resource.action to (url, HTTP_METHOD)\n<END>",
"<BEGIN>\n## `_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export API.
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 export API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a suitable response
Args:
rv: return value of action
code: status code
headers: response headers
Returns:
flask.Response | "Create a suitable response\n\n Args:\n rv: return value of action\n code: status code\n headers: response headers\n Returns:\n flask.Response" | 58 | false | guyskk/flask-restaction | export | 23,348 | |
LDU_FT/OpenTreeOfLife/peyotl/collection_to_included_trees | LDU_FT | [
"<BEGIN>\n## `write_taxon_info`",
"Writes out data from `taxon` to the `output` stream to demonstrate\n the attributes of a taxon object.\n (currently some lines are commented out until the web-services call returns more info. See:\n https://github.com/OpenTreeOfLife/taxomachine/issues/85\n ).\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collection_to_included_trees API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collection_to_included_trees API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Takes a collection object (or a filepath to collection object), returns
each element of the `decisions` list that has the decision set to included. | "Takes a collection object (or a filepath to collection object), returns\n each element of the `decisions` list that has the decision set to included." | 456 | false | OpenTreeOfLife/peyotl | collection_to_included_trees | 23,349 | |
LDU_FT/noirbizarre/django.js/django_js_init | LDU_FT | [
"<BEGIN>\n## `run_from_argv`",
"Set up any environment changes requested (e.g., Python path\n and Django settings), then run this command. If the\n command raises a ``CommandError``, intercept it and print it sensibly\n to stderr.\n<END>",
"<BEGIN>\n## `create_parser`",
"Create and return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the django_js_init API.
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 django_js_init API.
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... | Include Django.js javascript library initialization in the page | "Include Django.js javascript library initialization in the page" | 32 | false | noirbizarre/django.js | django_js_init | 23,350 | |
LDU_FT/flo-compbio/goparser/parse_ontology | LDU_FT | [
"<BEGIN>\n## `get_gaf_format`",
"Return a GAF 2.0-compatible string representation of the annotation.",
" Parameters\n ----------",
" Returns\n -------\n str\n The formatted string.\n<END>",
"<BEGIN>\n## `get_term_by_name`",
"Get the GO term with the given GO ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ontology API.
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 parse_ontology API.
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... | Parse an OBO file and store GO term information.
This function needs to be called before `parse_annotations`, in order
to read in the Gene Ontology terms and structure.
Parameters
----------
fn: str
Path of the OBO file.
flatten: bool, optional
I... | "Parse an OBO file and store GO term information.\n\n This function needs to be called before `parse_annotations`, in order\n to read in the Gene Ontology terms and structure.\n\n Parameters\n ----------\n fn: str\n Path of the OBO file.\n flatten: bool, optional\n ... | 48 | false | flo-compbio/goparser | parse_ontology | 23,351 | |
LDU_FT/alfred82santa/dirty-models/flat_data | LDU_FT | [
"<BEGIN>\n## `recover_model_from_data`",
"Function to reconstruct a model from DirtyModel basic information: original data, the modified and deleted\n fields.\n Necessary for pickle an object\n<END>",
"<BEGIN>\n## `recover_dynamic_model_from_data`",
"Function to reconstruct a model from DirtyModel basic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flat_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flat_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 extract... | Function to pass our modified values to the original ones | "Function to pass our modified values to the original ones" | 86 | false | alfred82santa/dirty-models | flat_data | 23,352 | |
LDU_FT/pmacosta/ptrie/_create_intermediate_nodes | LDU_FT | [
"<BEGIN>\n## `_create_intermediate_nodes`",
"Create intermediate nodes if hierarchy does not exist.\n<END>",
"<BEGIN>\n## `_delete_subtree`",
"Delete subtree private method.",
" No argument validation and usage of getter/setter private methods is\n used for speed\n<END>",
"<BEGIN>\n## `_prt`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_intermediate_nodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_intermediate_nodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Create intermediate nodes if hierarchy does not exist. | "Create intermediate nodes if hierarchy does not exist." | 166 | false | pmacosta/ptrie | _create_intermediate_nodes | 23,353 | |
LDU_FT/ironfroggy/django-better-cache/get_header_dict | LDU_FT | [
"<BEGIN>\n## `process_request`",
"Checks whether the page is already cached and returns the cached\n version if available.\n<END>",
"<BEGIN>\n## `process_response`",
"Sets the cache and deals with caching headers if needed\n<END>",
"<BEGIN>\n## `keys`",
"Create an ordered dict of the names and valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_header_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 e... | returns a dictionary of the cache control headers
the same as is used by django.utils.cache.patch_cache_control
if there are no Cache-Control headers returns and empty dict | "returns a dictionary of the cache control headers\n the same as is used by django.utils.cache.patch_cache_control\n if there are no Cache-Control headers returns and empty dict" | 51 | false | ironfroggy/django-better-cache | get_header_dict | 23,354 | |
LDU_FT/clement-alexandre/TotemBionet/_transform_list_of_states_to_state | LDU_FT | [
"<BEGIN>\n## `pick_a_model_randomly`",
"Naive picking function, return one of the models chosen randomly.\n<END>",
"<BEGIN>\n## `as_data_frame`",
"Create a panda DataFrame representation of the resource table.\n<END>",
"<BEGIN>\n## `is_active`",
"Return True if the multiplex is active in the given state, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform_list_of_states_to_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _transform_list_of_states_to_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its... | Private method which transform a list which contains the state of the gene
in the models to a State object.
Examples
--------
The model contains 2 genes: operon = {0, 1, 2}
mucuB = {0, 1}
>>> graph._transform_list_of_states_to_dict_of_states(... | "Private method which transform a list which contains the state of the gene\n in the models to a State object.\n\n Examples\n --------\n\n The model contains 2 genes: operon = {0, 1, 2}\n mucuB = {0, 1}\n >>> graph._transform_list_of_states_to_dict_o... | 49 | false | clement-alexandre/TotemBionet | _transform_list_of_states_to_state | 23,355 | |
LDU_FT/Miserlou/SoundScrape/scrape_musicbed_url | LDU_FT | [
"<BEGIN>\n## `main`",
"Main function.",
" Converts arguments to Python and processes accordingly.\n<END>",
"<BEGIN>\n## `download_tracks`",
"Given a list of tracks, iteratively download all of them.\n<END>",
"<BEGIN>\n## `get_soundcloud_data`",
"Scrapes a SoundCloud page for a track's important infor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrape_musicbed_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scrape_musicbed_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.
T... | Scrapes provided MusicBed url.
Uses requests' Session object in order to store cookies.
Requires login and password information.
If provided url is of pattern 'https://www.musicbed.com/artists/<string>/<number>' - a number of albums will be downloaded.
If provided url is of pattern 'https://www.musicbed... | "Scrapes provided MusicBed url.\n Uses requests' Session object in order to store cookies.\n Requires login and password information.\n If provided url is of pattern 'https://www.musicbed.com/artists/<string>/<number>' - a number of albums will be downloaded.\n If provided url is of pattern 'https://www.mus... | 39 | false | Miserlou/SoundScrape | scrape_musicbed_url | 23,356 | |
LDU_FT/IS-ENES-Data/esgf-pid/__start_waiting_for_events | LDU_FT | [
"<BEGIN>\n## `logtrace`",
"If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>",
"<BEGIN>\n## `logdebug`",
"Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __start_waiting_for_events 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 __start_waiting_for_events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | This waits until the whole chain of callback methods triggered by
"trigger_connection_to_rabbit_etc()" has finished, and then starts
waiting for publications.
This is done by starting the ioloop.
Note: In the pika usage example, these things are both called inside the run()
met... | "This waits until the whole chain of callback methods triggered by\n \"trigger_connection_to_rabbit_etc()\" has finished, and then starts \n waiting for publications.\n This is done by starting the ioloop.\n\n Note: In the pika usage example, these things are both called inside the run()\n ... | 67 | false | IS-ENES-Data/esgf-pid | __start_waiting_for_events | 23,357 | |
LDU_FT/googlefonts/ufo2ft/setupTable_VORG | LDU_FT | [
"<BEGIN>\n## `isValidFeatureWriter`",
"Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setupTable_VORG API.
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 setupTable_VORG API.
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... | Make the VORG table.
**This should not be called externally.** Subclasses
may override or supplement this method to handle the
table creation in a different way if desired. | "Make the VORG table.\n\n **This should not be called externally.** Subclasses\n may override or supplement this method to handle the\n table creation in a different way if desired." | 224 | false | googlefonts/ufo2ft | setupTable_VORG | 23,358 | |
LDU_FT/Kunstmord/datalib/return_features_numpy_base | LDU_FT | [
"<BEGIN>\n## `extract_feature_base`",
"Generic function which extracts a feature and stores it in the database",
" Parameters\n ----------\n dbpath : string, path to SQLite database file\n folder_path : string, path to folder where the files are stored\n set_object : object (either TestSet or Tra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_features_numpy_base 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 return_features_numpy_base API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Generic function which returns a 2d numpy array of extracted features
Parameters
----------
dbpath : string, path to SQLite database file
set_object : object (either TestSet or TrainSet) which is stored in the database
points_amt : int, number of data points in the database
names : list of stri... | "Generic function which returns a 2d numpy array of extracted features\n\n Parameters\n ----------\n dbpath : string, path to SQLite database file\n set_object : object (either TestSet or TrainSet) which is stored in the database\n points_amt : int, number of data points in the database\n names : list... | 117 | false | Kunstmord/datalib | return_features_numpy_base | 23,359 | |
LDU_FT/eonpatapon/contrail-api-cli/expand_paths | LDU_FT | [
"<BEGIN>\n## `expand_paths`",
"Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.",
" >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_paths API.
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 expand_paths API.
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 an unique list of resources or collections from a list of paths.
Supports fq_name and wilcards resolution.
>>> expand_paths(['virtual-network',
'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])
[Collection('virtual-network'),
Resource('floating-ip', uuid='2a0a54b4-a420-... | "Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.\n\n >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n Resource('floating-ip', uuid='2a0a54b... | 138 | false | eonpatapon/contrail-api-cli | expand_paths | 23,360 | |
LDU_FT/cfusting/fastgp/initialize_parameters | LDU_FT | [
"<BEGIN>\n## `find_pareto_front`",
"Finds a subset of nondominated individuals in a given list",
" :param population: a list of individuals\n :return: a set of indices corresponding to nondominated individuals\n<END>",
"<BEGIN>\n## `from_string`",
"Try to convert a string expression into a PrimitiveTr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize_parameters 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 initialize_parameters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | :param variable_type_indices: A sequence of variable type indices where each entry defines the
index of a variable type in the design matrix. For example a design matrix with two variable types will have
indices [j,n] where variable type A spans 0 to j and variable type B spans j + 1 to n.
:para... | ":param variable_type_indices: A sequence of variable type indices where each entry defines the\n index of a variable type in the design matrix. For example a design matrix with two variable types will have\n indices [j,n] where variable type A spans 0 to j and variable type B spans j + 1 to n.\n :... | 12 | false | cfusting/fastgp | initialize_parameters | 23,361 | |
LDU_FT/supercoderz/pyflightdata/get_airport_weather | LDU_FT | [
"<BEGIN>\n## `get_history_by_flight_number`",
"Fetch the history of a flight by its number.",
" This method can be used to get the history of a flight route by the number.\n It checks the user authentication and returns the data accordingly.",
" Args:\n flight_number (str): The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_airport_weather API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_airport_weather 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... | Retrieve the weather at an airport
Given the IATA code of an airport, this method returns the weather information.
Args:
iata (str): The IATA code for an airport, e.g. HYD
page (int): Optional page number; for users who are on a plan with flightradar24 they can pass in higher p... | "Retrieve the weather at an airport\n\n Given the IATA code of an airport, this method returns the weather information.\n\n Args:\n iata (str): The IATA code for an airport, e.g. HYD\n page (int): Optional page number; for users who are on a plan with flightradar24 they can pass in h... | 99 | false | supercoderz/pyflightdata | get_airport_weather | 23,362 | |
LDU_FT/fusepy/fusepy/access | LDU_FT | [
"<BEGIN>\n## `fuse_exit`",
"This will shutdown the FUSE mount and cause the call to FUSE(...) to\n return, similar to sending SIGINT to the process.",
" Flags the native FUSE session as terminated and will cause any running FUSE\n event loops to exit on the next opportunity. (see fuse.c::fuse_exit)\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the access API.
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 access API.
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 ... | Check file access permissions
Valid replies:
reply_err | "Check file access permissions\n\n Valid replies:\n\t reply_err" | 68 | false | fusepy/fusepy | access | 23,363 | |
LDU_FT/ultrabug/py3status/valid_config_param | LDU_FT | [
"<BEGIN>\n## `load_from_file`",
"Return user-written class object from given path.\n<END>",
"<BEGIN>\n## `prepare_module`",
"Ready the module to get it ready to start.\n<END>",
"<BEGIN>\n## `error_output`",
"Something is wrong with the module so we want to output the error to\n the i3bar\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_config_param API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid_config_param API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Check if a given section name is a valid parameter for i3status. | "Check if a given section name is a valid parameter for i3status." | 514 | false | ultrabug/py3status | valid_config_param | 23,364 | |
LDU_FT/skggm/skggm/_random_weights | LDU_FT | [
"<BEGIN>\n## `log_likelihood`",
"Computes the log-likelihood between the covariance and precision\n estimate.",
" Parameters\n ----------\n covariance : 2D ndarray (n_features, n_features)\n Maximum Likelihood Estimator of covariance",
" precision : 2D ndarray (n_features, n_features)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _random_weights API.
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 _random_weights API.
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... | Generate a symmetric random matrix with zeros along the diagnoal and
non-zero elements take the value {lam * lam_perturb, lam / lam_perturb}
with probability 1/2. | "Generate a symmetric random matrix with zeros along the diagnoal and\n non-zero elements take the value {lam * lam_perturb, lam / lam_perturb}\n with probability 1/2." | 239 | false | skggm/skggm | _random_weights | 23,365 | |
LDU_FT/smartfile/client-python/patch | LDU_FT | [
"<BEGIN>\n## `_request`",
"Handles retrying failed requests and error handling.\n<END>",
"<BEGIN>\n## `download`",
"file_to_be_downloaded is a file-like object that has already\n been uploaded, you cannot download folders\n<END>",
"<BEGIN>\n## `signature`",
"Requests a signature for remote file via... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
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 patch API.
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... | Applies delta for local file to remote file via API. | "Applies delta for local file to remote file via API." | 17 | false | smartfile/client-python | patch | 23,366 | |
LDU_FT/wiredrive/wtframework/get_asset_path | LDU_FT | [
"<BEGIN>\n## `print_debug`",
"Print if and only if the debug flag is set true in the config.yaml file.",
" Args:\n args : var args of print arguments.\n<END>",
"<BEGIN>\n## `print_time`",
"Print the current elapsed time.",
" Kwargs:\n message (str) : Message to prefix the time ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_asset_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 ex... | Get the full system path of a given asset if it exists. Otherwise it throws
an error.
Args:
filename (str) - File name of a file in /assets folder to fetch the path for.
Returns:
str - path to the target file.
Raises:
AssetNotFoundError - if asset... | "Get the full system path of a given asset if it exists. Otherwise it throws \n an error.\n\n Args:\n filename (str) - File name of a file in /assets folder to fetch the path for.\n\n Returns:\n str - path to the target file.\n\n Raises:\n AssetNotFoundError... | 236 | false | wiredrive/wtframework | get_asset_path | 23,367 | |
LDU_FT/digidotcom/python-wvalib/post_json | LDU_FT | [
"<BEGIN>\n## `emit_event`",
"Emit the specified event (notify listeners)\n<END>",
"<BEGIN>\n## `enable`",
"Enable the stream thread",
" This operation will ensure that the thread that is responsible\n for connecting to the WVA and triggering event callbacks is started.\n This thread wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | POST the provided data as json to the specified path
See :meth:`request` for additional details. | "POST the provided data as json to the specified path\n\n See :meth:`request` for additional details." | 103 | false | digidotcom/python-wvalib | post_json | 23,368 | |
LDU_FT/auth0/auth0-python/client_credentials | LDU_FT | [
"<BEGIN>\n## `authorization_code`",
"Authorization code grant",
" This is the OAuth 2.0 grant that regular web apps utilize in order\n to access an API. Use this endpoint to exchange an Authorization Code\n for a Token.",
" Args:\n grant_type (str): Denotes the flow you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the client_credentials 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 client_credentials 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... | Client credentials grant
This is the OAuth 2.0 grant that server processes utilize in
order to access an API. Use this endpoint to directly request
an access_token by using the Application Credentials (a Client Id and
a Client Secret).
Args:
grant_type (str): Denote... | "Client credentials grant\n\n This is the OAuth 2.0 grant that server processes utilize in\n order to access an API. Use this endpoint to directly request\n an access_token by using the Application Credentials (a Client Id and\n a Client Secret).\n\n Args:\n grant_type (str... | 337 | false | auth0/auth0-python | client_credentials | 23,369 | |
LDU_FT/miguelgrinberg/Flask-Migrate/current | LDU_FT | [
"<BEGIN>\n## `migrate`",
"Autogenerate a new revision file (Alias for 'revision --autogenerate')\n<END>",
"<BEGIN>\n## `merge`",
"Merge two revisions together, creating a new revision file\n<END>",
"<BEGIN>\n## `history`",
"List changeset scripts in chronological order.\n<END>",
"<BEGIN>\n## `stamp`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current API.
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 current API.
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... | Display the current revision for each database. | "Display the current revision for each database." | 29 | false | miguelgrinberg/Flask-Migrate | current | 23,370 | |
LDU_FT/jsvine/spectra/NewFromYiq | LDU_FT | [
"<BEGIN>\n## `cmyk`",
"Create a spectra.Color object in the CMYK color space.",
" :param float c: c coordinate.\n :param float m: m coordinate.\n :param float y: y coordinate.\n :param float k: k coordinate.",
" :rtype: Color\n :returns: A spectra.Color object in the CMYK color space.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NewFromYiq API.
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 NewFromYiq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Create a new instance based on the specifed YIQ values.
Parameters:
:y:
The Y component value [0...1]
:i:
The I component value [0...1]
:q:
The Q component value [0...1]
:alpha:
The color transparency [0...1], default is opaque
:wref:
The whitep... | "Create a new instance based on the specifed YIQ values.\n\n Parameters:\n :y:\n The Y component value [0...1]\n :i:\n The I component value [0...1]\n :q:\n The Q component value [0...1]\n :alpha:\n The color transparency [0...1], default is opaque\n :wref:\n ... | 265 | false | jsvine/spectra | NewFromYiq | 23,371 | |
LDU_FT/crytic/slither/_detect | LDU_FT | [
"<BEGIN>\n## `_contains_incorrect_tx_origin_use`",
"Check if the node reads tx.origin and doesn't read msg.sender\n Avoid the FP due to (msg.sender == tx.origin)\n Returns:\n (bool)\n<END>",
"<BEGIN>\n## `detect_incorrect_erc20_interface`",
"Detect incorrect ERC20 interface",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _detect API.
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 _detect API.
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... | Detect uninitialized state variables
Recursively visit the calls
Returns:
dict: [contract name] = set(state variable uninitialized) | "Detect uninitialized state variables\n\n Recursively visit the calls\n Returns:\n dict: [contract name] = set(state variable uninitialized)" | 341 | false | crytic/slither | _detect | 23,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.