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/bear/ninka/discoverMicropubEndpoints | LDU_FT | [
"<BEGIN>\n## `discoverAuthEndpoints`",
"Find the authorization or redirect_uri endpoints for the given authDomain.\n Only scan html element matching all criteria in look_in.",
" optionally the content to be scanned can be given as an argument.",
" :param authDomain: the URL of the domain to handle\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discoverMicropubEndpoints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discoverMicropubEndpoints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Find the micropub for the given domain.
Only scan html element matching all criteria in look_in.
optionally the content to be scanned can be given as an argument.
:param domain: the URL of the domain to handle
:param content: the content to be scanned for the endpoint
:param look_in: dictionary wi... | "Find the micropub for the given domain.\n Only scan html element matching all criteria in look_in.\n\n optionally the content to be scanned can be given as an argument.\n\n :param domain: the URL of the domain to handle\n :param content: the content to be scanned for the endpoint\n :param look_in: dicti... | 19 | false | bear/ninka | discoverMicropubEndpoints | 18,373 | |
LDU_FT/spacetelescope/drizzlepac/xy2rd | LDU_FT | [
"<BEGIN>\n## `check_and_get_data`",
"Verify that all specified files are present. If not, retrieve them from MAST.",
" Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.",
" Returns\n =======\n total_input... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xy2rd API.
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 xy2rd API.
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... | Primary interface to perform coordinate transformations from
pixel to sky coordinates using STWCS and full distortion models
read from the input image header. | "Primary interface to perform coordinate transformations from\n pixel to sky coordinates using STWCS and full distortion models\n read from the input image header." | 1,138 | true | spacetelescope/drizzlepac | xy2rd | 18,374 | |
LDU_FT/has2k1/plotnine/_apply_theme | LDU_FT | [
"<BEGIN>\n## `iqr`",
"Calculate the IQR for an array of numbers.\n<END>",
"<BEGIN>\n## `freedman_diaconis_bins`",
"Calculate number of hist bins using Freedman-Diaconis rule.\n<END>",
"<BEGIN>\n## `breaks_from_binwidth`",
"Calculate breaks given binwidth",
" Parameters\n ----------\n x_range : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_theme API.
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 _apply_theme API.
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... | Apply theme attributes to Matplotlib objects | "Apply theme attributes to Matplotlib objects" | 719 | false | has2k1/plotnine | _apply_theme | 18,375 | |
LDU_FT/moluwole/Bast/run | LDU_FT | [
"<BEGIN>\n## `get_config`",
"Gets the config from the os.environ. This is used to create the config dict for use by the ORM\n :return: str, dict\n<END>",
"<BEGIN>\n## `check_packages`",
"Check if the driver for the user defined host is available. If it is not available, download it using PIP\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Determines if value value is empty.
Keyword arguments:
value str -- the value of the associated field to compare | "Determines if value value is empty.\n Keyword arguments:\n value str -- the value of the associated field to compare" | 59 | false | moluwole/Bast | run | 18,376 | |
LDU_FT/marrow/mongo/_patch | LDU_FT | [
"<BEGIN>\n## `process_fields`",
"Process a list of simple string field definitions and assign their order based on prefix.\n<END>",
"<BEGIN>\n## `create`",
"Create this index in the specified collection; keyword arguments are passed to PyMongo.",
"\t\thttp://api.mongodb.com/python/current/api/pymongo/collec... | 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 ... | 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 ... | Patch pymongo's Collection object to add a tail method.
While not nessicarily recommended, you can use this to inject `tail` as a method into Collection, making it
generally accessible. | "Patch pymongo's Collection object to add a tail method.\n\t\n\tWhile not nessicarily recommended, you can use this to inject `tail` as a method into Collection, making it\n\tgenerally accessible." | 175 | false | marrow/mongo | _patch | 18,377 | |
LDU_FT/mitodl/PyLmod/post | LDU_FT | [
"<BEGIN>\n## `unravel_sections`",
"Unravels section type dictionary into flat list of sections with\n section type set as an attribute.",
" Args:\n section_data(dict): Data return from py:method::get_sections",
" Returns:\n list: Flat list of sections with ``sectionT... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Generic POST operation for sending data to Learning Modules API.
Data should be a JSON string or a dict. If it is not a string,
it is turned into a JSON string for the POST body.
Args:
service (str): The endpoint service to use, i.e. gradebook
data (json or dict): the ... | "Generic POST operation for sending data to Learning Modules API.\n\n Data should be a JSON string or a dict. If it is not a string,\n it is turned into a JSON string for the POST body.\n\n Args:\n service (str): The endpoint service to use, i.e. gradebook\n data (json or dic... | 190 | false | mitodl/PyLmod | post | 18,378 | |
LDU_FT/adamreeve/npTDMS/read_string_data | LDU_FT | [
"<BEGIN>\n## `to_file`",
"Wrapper around ndarray.tofile to support any file-like object\n<END>",
"<BEGIN>\n## `write_segment`",
"Write a segment of data to a TDMS file",
" :param objects: A list of TdmsObject instances to write\n<END>",
"<BEGIN>\n## `fromfile`",
"Wrapper around np.fromfile to sup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_string_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 ... | Read string raw data
This is stored as an array of offsets
followed by the contiguous string data. | "Read string raw data\n\n This is stored as an array of offsets\n followed by the contiguous string data." | 65 | false | adamreeve/npTDMS | read_string_data | 18,379 | |
LDU_FT/c-w/gutenberg/get_metadata | LDU_FT | [
"<BEGIN>\n## `_etextno_to_uri_subdirectory`",
"Returns the subdirectory that an etextno will be found in a gutenberg\n mirror. Generally, one finds the subdirectory by separating out each digit\n of the etext number, and uses it for a directory. The exception here is for\n etext numbers less than 10, whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Looks up the value of a meta-data feature for a given text.
Arguments:
feature_name (str): The name of the meta-data to look up.
etextno (int): The identifier of the Gutenberg text for which to look
up the meta-data.
Returns:
frozenset: The values of the meta-data for the t... | "Looks up the value of a meta-data feature for a given text.\n\n Arguments:\n feature_name (str): The name of the meta-data to look up.\n etextno (int): The identifier of the Gutenberg text for which to look\n up the meta-data.\n\n Returns:\n frozenset: The values of the meta-data ... | 70 | false | c-w/gutenberg | get_metadata | 18,380 | |
LDU_FT/django-userena-ce/django-userena-ce/save | LDU_FT | [
"<BEGIN>\n## `activate`",
"Activate a user with an activation key.",
" The key is a SHA1 string. When the SHA1 is found with an\n :class:`UserenaSignup`, the :class:`User` of that account will be\n activated. After a successful activation the view will redirect to\n ``success_url``. If the SHA1 is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Creates a new user and account. Returns the newly created user. | "Creates a new user and account. Returns the newly created user." | 241 | false | django-userena-ce/django-userena-ce | save | 18,381 | |
LDU_FT/gamechanger/mongothon/register | LDU_FT | [
"<BEGIN>\n## `register`",
"Registers the given function as a handler to be applied\n in response to the the given event.\n<END>",
"<BEGIN>\n## `apply`",
"Applies all middleware functions registered against the given\n event in order to the given document.\n<END>",
"<BEGIN>\n## `deregister`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
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 register API.
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... | Registers the given function as a handler to be applied
in response to the the given event. | "Registers the given function as a handler to be applied\n in response to the the given event." | 59 | false | gamechanger/mongothon | register | 18,382 | |
LDU_FT/henrysher/kotocore/import_class | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Returns a string-ified version number.",
" Optionally accepts a ``full`` parameter, which if ``True``, will include\n any pre-release information. (Default: ``False``)\n<END>",
"<BEGIN>\n## `requires_loaded`",
"A decorator to ensure the resource data is loaded.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_class API.
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 import_class API.
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... | Imports a class dynamically from a full import path. | "Imports a class dynamically from a full import path." | 198 | false | henrysher/kotocore | import_class | 18,383 | |
LDU_FT/NicolasLM/spinach/_reset | LDU_FT | [
"<BEGIN>\n## `_reset`",
"Initialization that must happen before the arbiter is (re)started\n<END>",
"<BEGIN>\n## `attach_tasks`",
"Attach a set of tasks.",
" A task cannot be scheduled or executed before it is attached to an\n Engine.",
" >>> tasks = Tasks()\n >>> spin.attach_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reset API.
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 _reset API.
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 ... | Initialization that must happen before the broker is (re)started. | "Initialization that must happen before the broker is (re)started." | 93 | false | NicolasLM/spinach | _reset | 18,384 | |
LDU_FT/Murali-group/halp/get_hyperedge_id | LDU_FT | [
"<BEGIN>\n## `_combine_attribute_arguments`",
"Combines attr_dict and attr dictionaries, by updating attr_dict\n with attr.",
" :param attr_dict: dictionary of attributes of the node.\n :param attr: keyword arguments of attributes of the node;\n attr's values will ove... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hyperedge_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hyperedge_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | From a tail and head set of nodes, returns the ID of the hyperedge
that these sets comprise.
:param tail: iterable container of references to nodes in the
tail of the hyperedge to be added
:param head: iterable container of references to nodes in the
head... | "From a tail and head set of nodes, returns the ID of the hyperedge\n that these sets comprise.\n\n :param tail: iterable container of references to nodes in the\n tail of the hyperedge to be added\n :param head: iterable container of references to nodes in the\n ... | 278 | false | Murali-group/halp | get_hyperedge_id | 18,385 | |
LDU_FT/SoftwareDefinedBuildings/XBOS/rename_columns | LDU_FT | [
"<BEGIN>\n## `fillPelicanHole`",
"Fill a hole in a Pelican thermostat's data stream.",
" Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_columns API.
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 rename_columns API.
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... | Rename columns of dataframe.
Parameters
----------
col : list(str)
List of columns to rename. | "Rename columns of dataframe.\n \n Parameters\n ----------\n col : list(str)\n List of columns to rename." | 305 | false | SoftwareDefinedBuildings/XBOS | rename_columns | 18,386 | |
LDU_FT/uber/rides-python-sdk/refresh_access_token | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect controller to handle token exchange and query Uber API.\n<END>",
"<BEGIN>\n## `_adapt_response`",
"Convert error responses to standardized ErrorDetails.\n<END>",
"<BEGIN>\n## `_adapt_response`",
"Convert various error responses to standardized ErrorDetails.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_access_token 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 refresh_access_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Use a refresh token to request a new access token.
Not suported for access tokens obtained via Implicit Grant.
Parameters
credential (OAuth2Credential)
An authorized user's OAuth 2.0 credentials.
Returns
(Session)
A new Session object with refreshed OAuth 2.0 crede... | "Use a refresh token to request a new access token.\n\n Not suported for access tokens obtained via Implicit Grant.\n\n Parameters\n credential (OAuth2Credential)\n An authorized user's OAuth 2.0 credentials.\n\n Returns\n (Session)\n A new Session object with refreshed OAut... | 194 | false | uber/rides-python-sdk | refresh_access_token | 18,387 | |
LDU_FT/Duke-GCB/lando-messaging/connect | LDU_FT | [
"<BEGIN>\n## `raise_on_major_version_mismatch`",
"Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>",
"<BEGIN>\n## `... | 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... | Create internal connection to AMQP service. | "Create internal connection to AMQP service." | 50 | false | Duke-GCB/lando-messaging | connect | 18,388 | |
LDU_FT/mrcagney/kml2geojson/k2g | LDU_FT | [
"<BEGIN>\n## `k2g`",
"Given a path to a KML file, convert it to a a GeoJSON FeatureCollection file and save it to the given output directory.",
" If ``--separate_folders``, then create several GeoJSON files, one for each folder in the KML file that contains geodata or that has a descendant node that contains... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the k2g API.
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 k2g API.
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... | Given a path to a KML file, convert it to a a GeoJSON FeatureCollection file and save it to the given output directory.
If ``--separate_folders``, then create several GeoJSON files, one for each folder in the KML file that contains geodata or that has a descendant node that contains geodata.
Warning: this can ... | "Given a path to a KML file, convert it to a a GeoJSON FeatureCollection file and save it to the given output directory.\n\n If ``--separate_folders``, then create several GeoJSON files, one for each folder in the KML file that contains geodata or that has a descendant node that contains geodata.\n Warning: this ... | 41 | false | mrcagney/kml2geojson | k2g | 18,389 | |
LDU_FT/wiredrive/wtframework/__create_remote_webdriver_from_config | 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 __create_remote_webdriver_from_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __create_remote_webdriver_from_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | Reads the config value for browser type. | "Reads the config value for browser type." | 236 | false | wiredrive/wtframework | __create_remote_webdriver_from_config | 18,390 | |
LDU_FT/chaoss/grimoirelab-sortinghat/match_filtered_identities | LDU_FT | [
"<BEGIN>\n## `run`",
"List, add or delete entries from the blacklist.",
" By default, it prints the list of entries available on\n the blacklist.\n<END>",
"<BEGIN>\n## `add`",
"Add entries to the blacklist.",
" This method adds the given 'entry' to the blacklist.",
" :param e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_filtered_identities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_filtered_identities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Determine if two filtered identities are the same.
The method compares the email addresses or the names of each
filtered identity to check if they are the same. When the given
filtered identities are the same object or share the same UUID,
this will also produce a positive match.
... | "Determine if two filtered identities are the same.\n\n The method compares the email addresses or the names of each\n filtered identity to check if they are the same. When the given\n filtered identities are the same object or share the same UUID,\n this will also produce a positive match.\... | 700 | false | chaoss/grimoirelab-sortinghat | match_filtered_identities | 18,391 | |
LDU_FT/robertpeteuil/multi-cloud-control/list_only | LDU_FT | [
"<BEGIN>\n## `get_conns`",
"Collect node data asynchronously using gevent lib.\n<END>",
"<BEGIN>\n## `get_data`",
"Refresh node data using existing connection-objects.\n<END>",
"<BEGIN>\n## `busy_disp_off`",
"Turn OFF busy_display to indicate completion.\n<END>",
"<BEGIN>\n## `conn_ali`",
"Establish c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_only API.
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 list_only API.
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... | List-Mode: Retrieve and display data then exit. | "List-Mode: Retrieve and display data then exit." | 36 | false | robertpeteuil/multi-cloud-control | list_only | 18,392 | |
LDU_FT/cablehead/vanilla/throw_to | LDU_FT | [
"<BEGIN>\n## `Queue`",
"::",
" +----------+\n send --> | Queue |\n | (buffer) | --> recv\n +----------+",
" A Queue may also only have exactly one sender and recver. A Queue however\n has a fifo buffer of a custom size. Sends to the Queue won't b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throw_to API.
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 throw_to API.
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... | if len(a) == 1 and isinstance(a[0], preserve_exception):
return target.throw(a[0].typ, a[0].val, a[0].tb) | "if len(a) == 1 and isinstance(a[0], preserve_exception):\n return target.throw(a[0].typ, a[0].val, a[0].tb)" | 81 | false | cablehead/vanilla | throw_to | 18,393 | |
LDU_FT/jason-weirather/py-seq-tools/_traverse_unobserved | LDU_FT | [
"<BEGIN>\n## `sort_ranges`",
"from an array of ranges, make a sorted array of ranges",
" :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>",
"<BEGIN>\n## `merge_ranges`",
"from a list of genomic range or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _traverse_unobserved 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 _traverse_unobserved API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Go through a stream and print out anything not in observed set | "Go through a stream and print out anything not in observed set" | 449 | false | jason-weirather/py-seq-tools | _traverse_unobserved | 18,394 | |
LDU_FT/gawel/irc3/as_list | LDU_FT | [
"<BEGIN>\n## `dcc_event`",
"Work like :class:`~irc3.dec.event` but occurs during DCC CHATs\n<END>",
"<BEGIN>\n## `extend`",
"Allow to extend a bot:",
" Create a module with some useful routine:",
" .. literalinclude:: ../examples/myextends.py\n ..\n >>> import sys\n >>> sys.path.app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | clever string spliting:
.. code-block:: python
>>> print(as_list('value'))
['value']
>>> print(as_list('v1 v2'))
['v1', 'v2']
>>> print(as_list(None))
[]
>>> print(as_list(['v1']))
['v1'] | "clever string spliting:\n\n .. code-block:: python\n\n >>> print(as_list('value'))\n ['value']\n >>> print(as_list('v1 v2'))\n ['v1', 'v2']\n >>> print(as_list(None))\n []\n >>> print(as_list(['v1']))\n ['v1']" | 95 | false | gawel/irc3 | as_list | 18,395 | |
LDU_FT/saltzm/yadi/get_explicit_constraints | LDU_FT | [
"<BEGIN>\n## `get_safe_variables`",
"Create a list of safe variables: variables bounded to constants or\n that occur in a positive goal\n<END>",
"<BEGIN>\n## `get_from_relations`",
"Returns list of the names of all positive relations in the query\n<END>",
"<BEGIN>\n## `get_implicit_constraints`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_explicit_constraints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_explicit_constraints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Returns SQL representation of an explicit constraint. An explicit
constraint is one of the form Element COMP Element type, explicitly
listed in the conjunctive query. E.G. R(X,Y), Y>2 specifies that R.2 > 2 | "Returns SQL representation of an explicit constraint. An explicit\n constraint is one of the form Element COMP Element type, explicitly\n listed in the conjunctive query. E.G. R(X,Y), Y>2 specifies that R.2 > 2" | 12 | false | saltzm/yadi | get_explicit_constraints | 18,396 | |
LDU_FT/sholsapp/py509/get_host_certificate | LDU_FT | [
"<BEGIN>\n## `tree`",
"Print a tree.",
" Sometimes it's useful to print datastructures as a tree. This function prints\n out a pretty tree with root `node`. A tree is represented as a :class:`dict`,\n whose keys are node names and values are :class:`dict` objects for sub-trees\n and :class:`None` for termin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_host_certificate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_host_certificate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get a host's certificate.
:param str host: The hostname from which to fetch the certificate.
:param int port: The port from which to fetch the certificate, if different
than ``443``.
:return: The host's X.509 certificate.
:rtype: :class:`OpenSSL.crypto.X509` | "Get a host's certificate.\n\n :param str host: The hostname from which to fetch the certificate.\n :param int port: The port from which to fetch the certificate, if different\n than ``443``.\n :return: The host's X.509 certificate.\n :rtype: :class:`OpenSSL.crypto.X509`" | 37 | false | sholsapp/py509 | get_host_certificate | 18,397 | |
LDU_FT/log2timeline/dfwinreg/GetSubkeyByIndex | LDU_FT | [
"<BEGIN>\n## `_CheckKeyPath`",
"Checks the key path find specification.",
" Args:\n registry_key (WinRegistryKey): Windows Registry key.\n search_depth (int): number of key path segments to compare.",
" Returns:\n bool: True if the Windows Registry key matches the find specification,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetSubkeyByIndex API.
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 GetSubkeyByIndex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Retrieves a subkey by index.
Args:
index (int): index of the subkey.
Returns:
WinRegistryKey: Windows Registry subkey or None if not found.
Raises:
IndexError: if the index is out of bounds. | "Retrieves a subkey by index.\n\n Args:\n index (int): index of the subkey.\n\n Returns:\n WinRegistryKey: Windows Registry subkey or None if not found.\n\n Raises:\n IndexError: if the index is out of bounds." | 199 | false | log2timeline/dfwinreg | GetSubkeyByIndex | 18,398 | |
LDU_FT/FujiMakoto/IPS-Vagrant/version | LDU_FT | [
"<BEGIN>\n## `dev_tools_installer`",
"Installer factory\n @param cv: Current version (The version of Developer Tools we are installing)\n @type cv: ips_vagrant.common.version.Version\n @return: Installer instance\n @rtype: ips_vagrant.installer.dev_tools.latest.DevToolsInstaller\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Save the Site's version from a string or version tuple
@type value: tuple or str | "Save the Site's version from a string or version tuple\n @type value: tuple or str" | 87 | false | FujiMakoto/IPS-Vagrant | version | 18,399 | |
LDU_FT/pydsigner/taskit/work | 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 work API.
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 work API.
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... | Handles pushing out the task and getting the response. Can be called
directly to wait for the response.
task -- the server-side identifier for the desired task
*args and **kw will be passed to the task on the server-side.
Return value is generally the same as on the se... | "Handles pushing out the task and getting the response. Can be called \n directly to wait for the response.\n \n task -- the server-side identifier for the desired task\n *args and **kw will be passed to the task on the server-side.\n \n Return value is generally the same as on... | 59 | false | pydsigner/taskit | work | 18,400 | |
LDU_FT/mardiros/pyshop/list_packages | LDU_FT | [
"<BEGIN>\n## `update_model`",
"trivial implementation for simple data in the form,\n using the model prefix.\n<END>",
"<BEGIN>\n## `locale_negotiator`",
"Locale negotiator base on the `Accept-Language` header\n<END>",
"<BEGIN>\n## `main`",
"Get a PyShop WSGI application configured with settings.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_packages API.
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 list_packages API.
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... | Retrieve a list of the package names registered with the package index.
Returns a list of name strings. | "Retrieve a list of the package names registered with the package index.\n Returns a list of name strings." | 135 | false | mardiros/pyshop | list_packages | 18,401 | |
LDU_FT/coldfix/udiskie/device_unmounted | LDU_FT | [
"<BEGIN>\n## `_is_parent_of`",
"Check whether the first device is the parent of the second device.\n<END>",
"<BEGIN>\n## `prune_empty_node`",
"Recursively remove empty branches and return whether this makes the node\n itself empty.",
" The ``seen`` parameter is used to avoid infinite recursion due to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_unmounted API.
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 device_unmounted API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Show unmount notification for specified device object. | "Show unmount notification for specified device object." | 228 | false | coldfix/udiskie | device_unmounted | 18,402 | |
LDU_FT/proycon/flat/query_helper | LDU_FT | [
"<BEGIN>\n## `pub_view`",
"The initial view, does not provide the document content yet\n<END>",
"<BEGIN>\n## `checkversion`",
"Checks foliadocserve version, returns 1 if the document is newer than the library, -1 if it is older, 0 if it is equal\n<END>",
"<BEGIN>\n## `view`",
"The initial view, does not p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_helper API.
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 query_helper API.
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... | Does the actual query, called by query() or pub_query(), not directly | "Does the actual query, called by query() or pub_query(), not directly" | 12 | false | proycon/flat | query_helper | 18,403 | |
LDU_FT/codeinn/vcs/status | LDU_FT | [
"<BEGIN>\n## `make_ui`",
"A funcion that will read python rc files and make an ui from read options",
" :param path: path to mercurial config file\n<END>",
"<BEGIN>\n## `status`",
"Returns modified, added, removed, deleted files for current changeset\n<END>",
"<BEGIN>\n## `_fix_path`",
"Paths are sto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status API.
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 status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns modified, added, removed, deleted files for current changeset | "Returns modified, added, removed, deleted files for current changeset" | 326 | false | codeinn/vcs | status | 18,404 | |
LDU_FT/Vital-Fernandez/dazer/ufloatDict_nominal | LDU_FT | [
"<BEGIN>\n## `linfit`",
"Least squares linear fit.",
" Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.",
" Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ufloatDict_nominal 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 ufloatDict_nominal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | This gives us a dictionary of nominal values from a dictionary of uncertainties | "This gives us a dictionary of nominal values from a dictionary of uncertainties" | 228 | false | Vital-Fernandez/dazer | ufloatDict_nominal | 18,405 | |
LDU_FT/seme0021/python-zillow/set_data | LDU_FT | [
"<BEGIN>\n## `GetSearchResults`",
"The GetSearchResults API finds a property for a specified address.\n The content returned contains the address for the property or properties as well as the Zillow Property ID (ZPID) and current Zestimate.\n It also includes the date the Zestimate was computed, a v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extracte... | :source_data: Data from data.get('SearchResults:searchresults', None)['response']['results']['result']['zestimate']
:return: | ":source_data: Data from data.get('SearchResults:searchresults', None)['response']['results']['result']['zestimate']\n :return:" | 22 | false | seme0021/python-zillow | set_data | 18,406 | |
LDU_FT/maartenbreddels/ipyvolume/screenshot | LDU_FT | [
"<BEGIN>\n## `volshow`",
"Deprecated: please use ipyvolume.quickvolshow or use the ipyvolume.pylab interface.\n<END>",
"<BEGIN>\n## `quickvolshow`",
"Visualize a 3d array using volume rendering.",
" :param data: 3d numpy array\n :param lighting: boolean, to use lighting or not, if set to false, lighti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the screenshot API.
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 screenshot API.
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... | Save the figure to a PIL.Image object.
:param int width: the width of the image in pixels
:param int height: the height of the image in pixels
:param format: format of output data (png, jpeg or svg)
:type fig: ipyvolume.widgets.Figure or None
:param fig: if None use the current figure
:type tim... | "Save the figure to a PIL.Image object.\n\n :param int width: the width of the image in pixels\n :param int height: the height of the image in pixels\n :param format: format of output data (png, jpeg or svg)\n :type fig: ipyvolume.widgets.Figure or None\n :param fig: if None use the current figure\n :... | 141 | false | maartenbreddels/ipyvolume | screenshot | 18,407 | |
LDU_FT/p3trus/slave/bin | LDU_FT | [
"<BEGIN>\n## `_typelist`",
"Helper function converting all items of x to instances.\n<END>",
"<BEGIN>\n## `write`",
"Generates and sends a command message unit.",
" :param transport: An object implementing the `.Transport` interface.\n It is used by the protocol to send the message.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bin API.
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 bin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | The bin index of this mark.
:returns: An integer bin index or None if the mark is inactive. | "The bin index of this mark.\n\n :returns: An integer bin index or None if the mark is inactive." | 189 | false | p3trus/slave | bin | 18,408 | |
LDU_FT/tchellomello/python-amcrest/telnet_config | LDU_FT | [
"<BEGIN>\n## `record_config`",
"rec_opt is the Record options listed as example below:",
" +----------------------+--------+------------------------------------+\n | ParamName | Value | Description |\n +----------------------+--------+---------------------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the telnet_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 telnet_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... | status:
false - Telnet is disabled
true - Telnet is enabled | "status:\n false - Telnet is disabled\n true - Telnet is enabled" | 105 | false | tchellomello/python-amcrest | telnet_config | 18,409 | |
LDU_FT/PyFilesystem/pyfilesystem2/isbase | LDU_FT | [
"<BEGIN>\n## `install`",
"Install an opener.",
" Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.",
" Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the isbase API.
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 isbase API.
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 if ``path1`` is a base of ``path2``.
Arguments:
path1 (str): A PyFilesytem path.
path2 (str): A PyFilesytem path.
Returns:
bool: `True` if ``path2`` starts with ``path1``
Example:
>>> isbase('foo/bar', 'foo/bar/baz/egg.txt')
True | "Check if ``path1`` is a base of ``path2``.\n\n Arguments:\n path1 (str): A PyFilesytem path.\n path2 (str): A PyFilesytem path.\n\n Returns:\n bool: `True` if ``path2`` starts with ``path1``\n\n Example:\n >>> isbase('foo/bar', 'foo/bar/baz/egg.txt')\n True" | 320 | false | PyFilesystem/pyfilesystem2 | isbase | 18,410 | |
LDU_FT/QUANTAXIS/QUANTAXIS/QA_indicator_DDI | LDU_FT | [
"<BEGIN>\n## `start_market`",
"start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>",
"<BEGIN>\n## `message`",
"the standard message which can be transfer\n<END>",
"<BEGIN>\n## `init_hold_with_acco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QA_indicator_DDI API.
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 QA_indicator_DDI API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | '方向标准离差指数'
分析DDI柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。 | "'方向标准离差指数'\n 分析DDI柱状线,由红变绿(正变负),卖出信号参考;由绿变红,买入信号参考。" | 835 | false | QUANTAXIS/QUANTAXIS | QA_indicator_DDI | 18,411 | |
LDU_FT/HDI-Project/MLBlocks/save | LDU_FT | [
"<BEGIN>\n## `_extract_params`",
"Extract init, fit and produce params from kwargs.",
" The `init_params`, `fit_params` and `produce_params` are extracted\n from the passed `kwargs` taking the metadata hyperparameters as a\n reference.",
" During this extraction, make sure that all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Save the specification of this MLPipeline in a JSON file.
The content of the JSON file is the dict returned by the `to_dict` method.
Args:
path (str): Path to the JSON file to write. | "Save the specification of this MLPipeline in a JSON file.\n\n The content of the JSON file is the dict returned by the `to_dict` method.\n\n Args:\n path (str): Path to the JSON file to write." | 111 | false | HDI-Project/MLBlocks | save | 18,412 | |
LDU_FT/GoogleCloudPlatform/datastore-ndb-python/make_connection | LDU_FT | [
"<BEGIN>\n## `get_event_loop`",
"Return a EventLoop instance.",
" A new instance is created for each new HTTP request. We determine\n that we're in a new request by inspecting os.environ, which is reset\n at the start of each request. Also, each thread gets its own loop.\n<END>",
"<BEGIN>\n## `clear`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_connection API.
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 make_connection API.
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... | Create a new Connection object with the right adapter.
Optionally you can pass in a datastore_rpc.Configuration object. | "Create a new Connection object with the right adapter.\n\n Optionally you can pass in a datastore_rpc.Configuration object." | 569 | false | GoogleCloudPlatform/datastore-ndb-python | make_connection | 18,413 | |
LDU_FT/frawau/aiolifx/set_power | LDU_FT | [
"<BEGIN>\n## `mac_to_ipv6_linklocal`",
"Translate a MAC address into an IPv6 address in the prefixed network.",
" This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_power API.
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_power API.
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... | Convenience method to set the power status of the device
This method will send a SetPower message to the device, and request callb be executed
when an ACK is received. The default callback will simply cache the value.
:param value: The new state
:type value: str/bool/int
... | "Convenience method to set the power status of the device\n\n This method will send a SetPower message to the device, and request callb be executed\n when an ACK is received. The default callback will simply cache the value.\n\n :param value: The new state\n :type value: str/bool/int... | 134 | false | frawau/aiolifx | set_power | 18,414 | |
LDU_FT/pyokagan/pyglreg/group_apis | LDU_FT | [
"<BEGIN>\n## `import_type`",
"Import Type `name` and its dependencies from Registry `src`\n to Registry `dest`.",
" :param Registry dest: Destination Registry\n :param Registry src: Source Registry\n :param str name: Name of type to import\n :param str api: Prefer to import Types with api Name `a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_apis API.
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 group_apis API.
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... | Groups Types, Enums, Commands with their respective Features, Extensions
Similar to :py:func:`import_registry`, but generates a new Registry object
for every feature or extension.
:param Registry reg: Input registry
:param features: Feature names to import, or None to import all.
:type features: I... | "Groups Types, Enums, Commands with their respective Features, Extensions\n\n Similar to :py:func:`import_registry`, but generates a new Registry object\n for every feature or extension.\n\n :param Registry reg: Input registry\n :param features: Feature names to import, or None to import all.\n :type fea... | 84 | false | pyokagan/pyglreg | group_apis | 18,415 | |
LDU_FT/casacore/python-casacore/getcolshapestring | LDU_FT | [
"<BEGIN>\n## `fitter`",
"Create a sub-fitter.",
" The created sub-fitter can be used in the same way as a fitter\n default fitter. This function returns an identification, which has to\n be used in the `fid` argument of subsequent calls. The call can\n specify the standard constructo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getcolshapestring API.
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 getcolshapestring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the shapes of all cells in the column in string format.
It returns the shape in a string like [10,20,30].
If the column contains fixed shape arrays, a single shape is returned.
Otherwise a list of shape strings is returned.
The column can be sliced by giving a start row (default 0... | "Get the shapes of all cells in the column in string format.\n\n It returns the shape in a string like [10,20,30].\n\n If the column contains fixed shape arrays, a single shape is returned.\n Otherwise a list of shape strings is returned.\n\n The column can be sliced by giving a start row (d... | 618 | false | casacore/python-casacore | getcolshapestring | 18,416 | |
LDU_FT/colab/colab/execute_from_command_line | LDU_FT | [
"<BEGIN>\n## `delete`",
"Remove an email address, validated or not.\n<END>",
"<BEGIN>\n## `update`",
"Set an email address as primary address.\n<END>",
"<BEGIN>\n## `is_logged`",
"Check if a logged user is trying to access the register page.\n If so, redirect him/her to his/her profile\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_from_command_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_from_command_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | A simple method that runs a ManagementUtility. | "A simple method that runs a ManagementUtility." | 19 | false | colab/colab | execute_from_command_line | 18,417 | |
LDU_FT/robotframework/Rammbock/new_binary_container | LDU_FT | [
"<BEGIN>\n## `log_background_messages`",
"Forwards messages logged on background to Robot Framework log.",
" By default forwards all messages logged by all threads, but can be\n limited to a certain thread by passing thread's name as an argument.",
" Logged messages are removed from the m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_binary_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_binary_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Defines a new binary container to template.
Binary container can only contain binary fields defined with `Bin`
keyword.
Examples:
| New binary container | flags |
| bin | 2 | foo |
| bin | 6 | bar |
| End binary container | | "Defines a new binary container to template.\n\n Binary container can only contain binary fields defined with `Bin`\n keyword.\n\n Examples:\n | New binary container | flags |\n | bin | 2 | foo |\n | bin | 6 | bar |\n | End binary container |" | 234 | false | robotframework/Rammbock | new_binary_container | 18,418 | |
LDU_FT/SeabornGames/Table/md_to_obj | LDU_FT | [
"<BEGIN>\n## `list_to_obj`",
":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the md_to_obj API.
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 md_to_obj API.
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... | This will convert a mark down file to a seaborn table
:param file_path: str of the path to the file
:param text: str of the mark down text
:param columns: list of str of columns to use
:param key_on: list of str of columns to key on
:param ignore_code_blocks: bool if true will fi... | "This will convert a mark down file to a seaborn table\n :param file_path: str of the path to the file\n :param text: str of the mark down text\n :param columns: list of str of columns to use\n :param key_on: list of str of columns to key on\n :param ignore_code_blocks: bool if true w... | 93 | false | SeabornGames/Table | md_to_obj | 18,419 | |
LDU_FT/astropy/astropy-helpers/add_openmp_flags_if_available | LDU_FT | [
"<BEGIN>\n## `get_dummy_distribution`",
"Returns a distutils Distribution object used to instrument the setup\n environment before calling the actual setup() function.\n<END>",
"<BEGIN>\n## `get_distutils_option`",
"Returns the value of the given distutils option.",
" Parameters\n ----------\n o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_openmp_flags_if_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_openmp_flags_if_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Add OpenMP compilation flags, if supported (if not a warning will be
printed to the console and no flags will be added.)
Returns `True` if the flags were added, `False` otherwise. | "Add OpenMP compilation flags, if supported (if not a warning will be\n printed to the console and no flags will be added.)\n\n Returns `True` if the flags were added, `False` otherwise." | 135 | false | astropy/astropy-helpers | add_openmp_flags_if_available | 18,420 | |
LDU_FT/OpenHumans/open-humans-api/upload_cli | LDU_FT | [
"<BEGIN>\n## `guess_tags`",
"Function to get potential tags for files using the file names.",
" :param filename: This field is the name of file.\n<END>",
"<BEGIN>\n## `characterize_local_files`",
"Collate local file info as preperation for Open Humans upload.",
" Note: Files with filesize > max_byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_cli API.
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 upload_cli API.
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... | Command line function for uploading files to OH.
For more information visit
:func:`upload<ohapi.command_line.upload>`. | "Command line function for uploading files to OH.\n For more information visit\n :func:`upload<ohapi.command_line.upload>`." | 162 | false | OpenHumans/open-humans-api | upload_cli | 18,421 | |
LDU_FT/SFDO-Tooling/CumulusCI/doc_task | LDU_FT | [
"<BEGIN>\n## `_download_file`",
"Download the bulk API result file for a single batch\n<END>",
"<BEGIN>\n## `_create_job`",
"Initiate a bulk insert and upload batches to run in parallel.\n<END>",
"<BEGIN>\n## `_query_db`",
"Build a query to retrieve data from the local db.",
" Includes columns fr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doc_task API.
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 doc_task API.
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... | Document a (project specific) task configuration in RST format. | "Document a (project specific) task configuration in RST format." | 165 | false | SFDO-Tooling/CumulusCI | doc_task | 18,422 | |
LDU_FT/ElementAI/greensim/turn_on | LDU_FT | [
"<BEGIN>\n## `pause`",
"Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption\n happens, the process returns from this function.\n<END>",
"<BEGIN>\n## `advance`",
"Pauses the current process for the given delay (in simulated time). The process wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the turn_on API.
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 turn_on API.
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... | Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.
Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the
sequence corresponding to the queue discipline. Therefore, if one of the resumed processe... | "Turns on the signal. If processes are waiting, they are all resumed. This may be invoked from any code.\n\n Remark that while processes are simultaneously resumed in simulated time, they are effectively resumed in the\n sequence corresponding to the queue discipline. Therefore, if one of the resumed proc... | 83 | false | ElementAI/greensim | turn_on | 18,423 | |
LDU_FT/odlgroup/odl/derivative | LDU_FT | [
"<BEGIN>\n## `is_valid_input_array`",
"Test if ``x`` is a correctly shaped point array in R^d.\n<END>",
"<BEGIN>\n## `is_valid_input_meshgrid`",
"Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>",
"<BEGIN>\n## `out_shape_from_meshgrid`",
"Get the broadcast output shape from a `meshgrid`.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derivative API.
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 derivative API.
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... | r"""Return the derivative operator in the "C = R^2" sense.
The returned operator (``self``) is the derivative of the
operator variant where the complex domain is reinterpreted as
a product of two real spaces::
M'(x) = y --> ((Re(x) * Re(y) + Im(x) * Im(y)) /
... | "r\"\"\"Return the derivative operator in the \"C = R^2\" sense.\n\n The returned operator (``self``) is the derivative of the\n operator variant where the complex domain is reinterpreted as\n a product of two real spaces::\n\n M'(x) = y --> ((Re(x) * Re(y) + Im(x) * Im(y)) /\n ... | 4,047 | true | odlgroup/odl | derivative | 18,424 | |
LDU_FT/ozak/georasters/map_pixel_location | LDU_FT | [
"<BEGIN>\n## `map_pixel`",
"Usage:\n map_pixel(xcoord, ycoord, x_cell_size, y_cell_size, xmin, ymax)",
" where:\n xmin is leftmost X coordinate in system",
" ymax is topmost Y coordinate in system",
" Example:\n raster = HMISea.tif",
" ndv, xsize, ysize, ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_pixel_location 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 map_pixel_location 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... | geo.map_pixel(point_x, point_y)
Return value of raster in location | "geo.map_pixel(point_x, point_y)\n\n Return value of raster in location" | 136 | false | ozak/georasters | map_pixel_location | 18,425 | |
LDU_FT/cloudsmith-io/cloudsmith-cli/get_error_hint | LDU_FT | [
"<BEGIN>\n## `convert`",
"Take a path with $HOME variables and resolve it to full path.\n<END>",
"<BEGIN>\n## `make_user_agent`",
"Get a suitable user agent for identifying the CLI process.\n<END>",
"<BEGIN>\n## `pretty_print_list_info`",
"Pretty print list info, with pagination, for user display.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_error_hint API.
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_error_hint API.
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 a hint to show to the user (if any). | "Get a hint to show to the user (if any)." | 214 | false | cloudsmith-io/cloudsmith-cli | get_error_hint | 18,426 | |
LDU_FT/Alveo/pyalveo/add_to_item_list | LDU_FT | [
"<BEGIN>\n## `get_all`",
"Retrieve the metadata for all items in this list from the server,\n as Item objects",
" :rtype: List\n :returns: a List of the corresponding Item objects\n :type force_download: Boolean\n :param force_download: True to download from the server\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_item_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_to_item_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Instruct the server to add the given items to the specified
Item List
:type item_urls: List or ItemGroup
:param item_urls: List of URLs for the items to add,
or an ItemGroup object
:type item_list_url: String or ItemList
:param item_list_url: the URL of the list to w... | "Instruct the server to add the given items to the specified\n Item List\n\n :type item_urls: List or ItemGroup\n :param item_urls: List of URLs for the items to add,\n or an ItemGroup object\n :type item_list_url: String or ItemList\n :param item_list_url: the URL of the l... | 268 | false | Alveo/pyalveo | add_to_item_list | 18,427 | |
LDU_FT/jasonlaska/spherecluster/sample_vMF | LDU_FT | [
"<BEGIN>\n## `sample_vMF`",
"Generate num_samples N-dimensional samples from von Mises Fisher\n distribution around center mu \\in R^N with concentration kappa.\n<END>",
"<BEGIN>\n## `_sample_weight`",
"Rejection sampling scheme for sampling distance from center on\n surface of the sphere.\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample_vMF API.
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 sample_vMF API.
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... | Generate num_samples N-dimensional samples from von Mises Fisher
distribution around center mu \in R^N with concentration kappa. | "Generate num_samples N-dimensional samples from von Mises Fisher\n distribution around center mu \\in R^N with concentration kappa." | 93 | false | jasonlaska/spherecluster | sample_vMF | 18,428 | |
LDU_FT/ulule/django-linguist/delete_translations | LDU_FT | [
"<BEGIN>\n## `_filter_or_exclude`",
"Overrides default behavior to handle linguist fields.\n<END>",
"<BEGIN>\n## `_get_concrete_fields_with_model`",
"For compatibility with Django<=1.10. Replace old\n `_meta.get_concrete_fields_with_model`.\n https://docs.djangoproject.com/en/1.10/ref/models/met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_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.
T... | Deletes related instance's translations when instance is deleted. | "Deletes related instance's translations when instance is deleted." | 62 | false | ulule/django-linguist | delete_translations | 18,429 | |
LDU_FT/cronofy/pycronofy/delete | LDU_FT | [
"<BEGIN>\n## `format_event_time`",
"Accepts either an ISO 8601 string, a dict with a time and tzid OR a datetime object.\n Must be in UTC format:",
" 2016-01-31T12:33:00Z\n 2016-01-31T12:33:00UTC\n 2016-01-31T12:33:00+00:00",
" https://en.wikipedia.org/wiki/ISO_8601",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Perform a get for a json API endpoint.
:param string endpoint: Target endpoint. (Optional).
:param string url: Override the endpoint and provide the full url (eg for pagination). (Optional).
:param dict params: Provide parameters to pass to the request. (Optional).
:param dict data: Dat... | "Perform a get for a json API endpoint.\n\n :param string endpoint: Target endpoint. (Optional).\n :param string url: Override the endpoint and provide the full url (eg for pagination). (Optional).\n :param dict params: Provide parameters to pass to the request. (Optional).\n :param dict dat... | 111 | false | cronofy/pycronofy | delete | 18,430 | |
LDU_FT/jmurty/xml4h/_lookup_node_parent | LDU_FT | [
"<BEGIN>\n## `ignore_whitespace_text_nodes`",
"Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.",
" This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup_node_parent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup_node_parent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return the parent of the given node, based on an internal dictionary
mapping of child nodes to the child's parent required since
ElementTree doesn't make info about node ancestry/parentage available. | "Return the parent of the given node, based on an internal dictionary\n mapping of child nodes to the child's parent required since\n ElementTree doesn't make info about node ancestry/parentage available." | 155 | false | jmurty/xml4h | _lookup_node_parent | 18,431 | |
LDU_FT/RedisJSON/rejson-py/jsontype | LDU_FT | [
"<BEGIN>\n## `bulk_of_jsons`",
"Replace serialized JSON values with objects in a bulk array response (list)\n<END>",
"<BEGIN>\n## `setEncoder`",
"Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>",
"<BEGIN>\n## `setDecoder`",
"Sets the client's dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsontype API.
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 jsontype API.
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... | Gets the type of the JSON value under ``path`` from key ``name`` | "Gets the type of the JSON value under ``path`` from key ``name``" | 43 | false | RedisJSON/rejson-py | jsontype | 18,432 | |
LDU_FT/luismasuelli/python-cantrips/weighted_random | LDU_FT | [
"<BEGIN>\n## `can_take`",
"Decorator to make a class allow their instances to generate\n snapshot of themselves.",
" Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the weighted_random API.
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 weighted_random API.
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... | Given a sequence of pairs (element, weight) where weight is an addable/total-order-comparable (e.g. a number),
it returns a random element (first item in each pair) given in a non-uniform way given by the weight of the
element (second item in each pair)
:param sequence: sequence/iterator of pairs (eleme... | "Given a sequence of pairs (element, weight) where weight is an addable/total-order-comparable (e.g. a number),\n it returns a random element (first item in each pair) given in a non-uniform way given by the weight of the\n element (second item in each pair)\n :param sequence: sequence/iterator of pairs (e... | 51 | false | luismasuelli/python-cantrips | weighted_random | 18,433 | |
LDU_FT/night-crawler/django-docker-helpers/ensure_databases_alive | LDU_FT | [
"<BEGIN>\n## `get`",
":param variable_path: a delimiter-separated path to a nested value\n :param default: default value if there's no object by specified path\n :param coerce_type: cast a type of a value to a specified one\n :param coercer: perform a type casting with specified callback\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_databases_alive 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 ensure_databases_alive API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Checks every database alias in ``settings.DATABASES`` until it becomes available. After ``max_retries``
attempts to reach any backend are failed it returns ``False``. If ``exit_on_failure`` is set it shuts down with
``exit(1)``.
For every database alias it tries to ``SELECT 1``. If no errors raised it chec... | "Checks every database alias in ``settings.DATABASES`` until it becomes available. After ``max_retries``\n attempts to reach any backend are failed it returns ``False``. If ``exit_on_failure`` is set it shuts down with\n ``exit(1)``.\n\n For every database alias it tries to ``SELECT 1``. If no errors raised it... | 141 | false | night-crawler/django-docker-helpers | ensure_databases_alive | 18,434 | |
LDU_FT/theosysbio/means/infer | LDU_FT | [
"<BEGIN>\n## `simulate_system`",
"Perform Gillespie SSA simulations and returns trajectories for of each species.\n Each trajectory is interpolated at the given time points.\n By default, the average amounts of species for all simulations is returned.",
" :param parameters: list of the init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the infer API.
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 infer API.
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... | :param number_of_processes: If set to more than 1, the inference routines will be paralellised
using ``multiprocessing`` module
:param args: arguments to pass to :meth:`Inference.infer`
:param kwargs: keyword arguments to pass to :meth:`Inference.infer`
:retur... | ":param number_of_processes: If set to more than 1, the inference routines will be paralellised\n using ``multiprocessing`` module\n :param args: arguments to pass to :meth:`Inference.infer`\n :param kwargs: keyword arguments to pass to :meth:`Inference.infer`\n :... | 244 | false | theosysbio/means | infer | 18,435 | |
LDU_FT/garnaat/placebo/placebo_session | LDU_FT | [
"<BEGIN>\n## `_serialize_json`",
"Serialize ``obj`` as a JSON formatted stream to ``fp``\n<END>",
"<BEGIN>\n## `get_serializer`",
"Get the serializer for a specific format\n<END>",
"<BEGIN>\n## `get_deserializer`",
"Get the deserializer for a specific format\n<END>",
"<BEGIN>\n## `_set_logger`",
"Conv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placebo_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the placebo_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Decorator to help do testing with placebo.
Simply wrap the function you want to test and make sure to add
a "session" argument so the decorator can pass the placebo session.
Accepts the following environment variables to configure placebo:
PLACEBO_MODE: set to "record" to record AWS calls and save them
... | "Decorator to help do testing with placebo.\n Simply wrap the function you want to test and make sure to add\n a \"session\" argument so the decorator can pass the placebo session.\n Accepts the following environment variables to configure placebo:\n PLACEBO_MODE: set to \"record\" to record AWS calls and s... | 18 | false | garnaat/placebo | placebo_session | 18,436 | |
LDU_FT/shkarupa-alex/tfunicode/_combine_sparse_successor | LDU_FT | [
"<BEGIN>\n## `_combine_sparse_successor`",
"Combines two string `SparseTensor`s, where second `SparseTensor` is the result of expanding\n first `SparseTensor`'s values.",
" Args:\n parent_indices: 2D int64 `Tensor` with parent `SparseTensor` indices\n parent_shape: 1D int64 `Tensor` with par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_sparse_successor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_sparse_successor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Combines two string `SparseTensor`s, where second `SparseTensor` is the result of expanding
first `SparseTensor`'s values.
Args:
parent_indices: 2D int64 `Tensor` with parent `SparseTensor` indices
parent_shape: 1D int64 `Tensor` with parent `SparseTensor` dense_shape
child_indices: 2D ... | "Combines two string `SparseTensor`s, where second `SparseTensor` is the result of expanding\n first `SparseTensor`'s values.\n\n Args:\n parent_indices: 2D int64 `Tensor` with parent `SparseTensor` indices\n parent_shape: 1D int64 `Tensor` with parent `SparseTensor` dense_shape\n child_indic... | 18 | false | shkarupa-alex/tfunicode | _combine_sparse_successor | 18,437 | |
LDU_FT/hodgesds/elasticsearch_tornado/mk_url | LDU_FT | [
"<BEGIN>\n## `mk_req`",
"Helper function to create a tornado HTTPRequest object, kwargs get passed in to\n create the HTTPRequest object. See:\n http://tornado.readthedocs.org/en/latest/httpclient.html#request-objects\n<END>",
"<BEGIN>\n## `mk_url`",
"Args get parameterized into base url:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mk_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mk_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Args get parameterized into base url:
*(foo, bar, baz) -> /foo/bar/baz
Kwargs get encoded and appended to base url:
**{'hello':'world'} -> /foo/bar/baz?hello=world | "Args get parameterized into base url:\n *(foo, bar, baz) -> /foo/bar/baz\n Kwargs get encoded and appended to base url:\n **{'hello':'world'} -> /foo/bar/baz?hello=world" | 31 | false | hodgesds/elasticsearch_tornado | mk_url | 18,438 | |
LDU_FT/NicolasLM/spinach/call_with_retry | LDU_FT | [
"<BEGIN>\n## `_reset`",
"Initialization that must happen before the arbiter is (re)started\n<END>",
"<BEGIN>\n## `attach_tasks`",
"Attach a set of tasks.",
" A task cannot be scheduled or executed before it is attached to an\n Engine.",
" >>> tasks = Tasks()\n >>> spin.attach_t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_with_retry API.
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 call_with_retry API.
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... | Call a function and retry it on failure. | "Call a function and retry it on failure." | 93 | false | NicolasLM/spinach | call_with_retry | 18,439 | |
LDU_FT/davisd50/sparc.cache/initialize | LDU_FT | [
"<BEGIN>\n## `schema_map`",
"Return a valid ICachedItemMapper.map for schema\n<END>",
"<BEGIN>\n## `items`",
"Returns a generator of available ICachableItem in the ICachableSource\n<END>",
"<BEGIN>\n## `getById`",
"Returns ICachableItem that matches id",
" Args:\n id: String that ident... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Instantiates the cache area to be ready for updates | "Instantiates the cache area to be ready for updates" | 37 | false | davisd50/sparc.cache | initialize | 18,440 | |
LDU_FT/BasementCat/bubbler/getContext | LDU_FT | [
"<BEGIN>\n## `trigger`",
"Trigger this event.\r",
"\t\tAny passed in args/kwargs are passed to the event handlers - if the event\r\n\t\thandlers cannot accept those arguments then they will cause an exception!\n<END>",
"<BEGIN>\n## `getContext`",
"Get a context by name, create the default context if it does... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getContext API.
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 getContext API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a context by name, create the default context if it does not exist
Params:
context_name (string):
Context name
Raises:
KeyError:
If the context name does not exist
Returns:
bubbler.Bubbler:
Named context | "Get a context by name, create the default context if it does not exist\r\n\r\n\t\tParams:\r\n\t\t\tcontext_name (string):\r\n\t\t\t\tContext name\r\n\r\n\t\tRaises:\r\n\t\t\tKeyError:\r\n\t\t\t\tIf the context name does not exist\r\n\r\n\t\tReturns:\r\n\t\t\tbubbler.Bubbler:\r\n\t\t\t\tNamed context" | 19 | false | BasementCat/bubbler | getContext | 18,441 | |
LDU_FT/basho/riak-python-client/clear_bucket_props | LDU_FT | [
"<BEGIN>\n## `mkpath`",
"Constructs the path & query portion of a URI from path segments\n and a dict.\n<END>",
"<BEGIN>\n## `search_index_path`",
"Builds a Yokozuna search index URL.",
" :param index: optional name of a yz index\n :type index: string\n :param options: optional list ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_bucket_props 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 clear_bucket_props 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... | reset the properties on the bucket object given | "reset the properties on the bucket object given" | 620 | false | basho/riak-python-client | clear_bucket_props | 18,442 | |
LDU_FT/iqbal-lab-org/cluster_vcf_records/_expand_alts_and_remove_duplicates_in_list | LDU_FT | [
"<BEGIN>\n## `get_sample_name_from_vcf_header_lines`",
"Given a list of header lines (made by either\n vcf_file_to_dict() or vcf_file_to_list()),\n returns the sample name. Assumes only one sample\n in the file.\n Raises error if badly formatted #CHROM line.\n Returns None if no #CHROM line found\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_alts_and_remove_duplicates_in_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _expand_alts_and_remove_duplicates_in_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | Input: list of VCF records, all from the same CHROM. ref_seq = sequence
of that CHROM. Expands any record in the list that has >ALT, into
one record per ALT. Removes duplicated records, where REF and ALT
are the same (at the same position!), or where there is the same
indel more than onc... | "Input: list of VCF records, all from the same CHROM. ref_seq = sequence\n of that CHROM. Expands any record in the list that has >ALT, into\n one record per ALT. Removes duplicated records, where REF and ALT\n are the same (at the same position!), or where there is the same\n indel more tha... | 59 | false | iqbal-lab-org/cluster_vcf_records | _expand_alts_and_remove_duplicates_in_list | 18,443 | |
LDU_FT/acrisci/i3ipc-python/get_workspaces | LDU_FT | [
"<BEGIN>\n## `_pack`",
"Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>",
"<BEGIN>\n## `_unpack`",
"Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_workspaces API.
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_workspaces API.
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 a list of workspaces. Returns JSON-like data, not a Con instance.
You might want to try the :meth:`Con.workspaces` instead if the info
contained here is too little.
:rtype: List of :class:`WorkspaceReply`. | "Get a list of workspaces. Returns JSON-like data, not a Con instance.\n\n You might want to try the :meth:`Con.workspaces` instead if the info\n contained here is too little.\n\n :rtype: List of :class:`WorkspaceReply`." | 69 | false | acrisci/i3ipc-python | get_workspaces | 18,444 | |
LDU_FT/kylef/maintain/check_version_consistency | LDU_FT | [
"<BEGIN>\n## `detected_releasers`",
"Returns all of the releasers that are compatible with the project.\n<END>",
"<BEGIN>\n## `check_version_consistency`",
"Determine if any releasers have inconsistent versions\n<END>",
"<BEGIN>\n## `gather_repositories`",
"Collects all of the repositories. The current im... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_version_consistency API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_version_consistency API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Determine if any releasers have inconsistent versions | "Determine if any releasers have inconsistent versions" | 11 | false | kylef/maintain | check_version_consistency | 18,445 | |
LDU_FT/sebp/scikit-survival/nlog_likelihood | LDU_FT | [
"<BEGIN>\n## `_fit_and_score`",
"Train survival model on given data and return its score on test data\n<END>",
"<BEGIN>\n## `fit`",
"Fit estimator.",
" Parameters\n ----------\n X : array-like, shape = (n_samples, n_features)\n Data matrix",
" y : structured array, s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nlog_likelihood API.
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 nlog_likelihood API.
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... | Compute negative partial log-likelihood
Parameters
----------
w : array, shape = (n_features,)
Estimate of coefficients
Returns
-------
loss : float
Average negative partial log-likelihood | "Compute negative partial log-likelihood\n\n Parameters\n ----------\n w : array, shape = (n_features,)\n Estimate of coefficients\n\n Returns\n -------\n loss : float\n Average negative partial log-likelihood" | 432 | false | sebp/scikit-survival | nlog_likelihood | 18,446 | |
LDU_FT/biocore/mustached-octo-ironman/listen_to_node | LDU_FT | [
"<BEGIN>\n## `on_message`",
"Accept a message that was published, process and forward",
" Parameters\n ----------\n msg : str\n The message sent over the line",
" Notes\n -----\n This method only handles messages where `message_type` is \"message\".\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_to_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listen_to_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 ex... | Attach a callback on the job pubsub if it exists | "Attach a callback on the job pubsub if it exists" | 68 | false | biocore/mustached-octo-ironman | listen_to_node | 18,447 | |
LDU_FT/Cologler/fsoopify-python/from_caller_module_root | LDU_FT | [
"<BEGIN>\n## `from_caller_file`",
"return a `Path` from the path of caller file\n<END>",
"<BEGIN>\n## `from_caller_module_root`",
"return a `Path` from module root which include the caller\n<END>",
"<BEGIN>\n## `get_parent`",
"get parent dir as a `DirectoryInfo`.",
" return `None` if self is top.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_caller_module_root 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 from_caller_module_root 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 `Path` from module root which include the caller | "return a `Path` from module root which include the caller" | 39 | false | Cologler/fsoopify-python | from_caller_module_root | 18,448 | |
LDU_FT/getnikola/coil/generate_menu_alt | LDU_FT | [
"<BEGIN>\n## `orphans_single`",
"Remove all orphans in the site, in the single user-mode.\n<END>",
"<BEGIN>\n## `password_hash`",
"Hash the password, using bcrypt+sha256.",
" .. versionchanged:: 1.1.0",
" :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_menu_alt API.
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 generate_menu_alt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Generate ``menu_alt`` with log in/out links.
:return: HTML fragment
:rtype: str | "Generate ``menu_alt`` with log in/out links.\n\n :return: HTML fragment\n :rtype: str" | 68 | false | getnikola/coil | generate_menu_alt | 18,449 | |
LDU_FT/davebridges/mousedb/dispatch | LDU_FT | [
"<BEGIN>\n## `age`",
"Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>",
"<BEGIN>\n## `breeding_male_location_type`",
"This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.",
" This attri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
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 dispatch API.
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... | This decorator sets this view to have restricted permissions. | "This decorator sets this view to have restricted permissions." | 128 | false | davebridges/mousedb | dispatch | 18,450 | |
LDU_FT/maxpumperla/elephas/acquire_read | LDU_FT | [
"<BEGIN>\n## `add_params`",
"Add two lists of parameters one by one",
" :param param_list_left: list of numpy arrays\n :param param_list_right: list of numpy arrays\n :return: list of numpy arrays\n<END>",
"<BEGIN>\n## `subtract_params`",
"Subtract two lists of parameters",
" :param param_list... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the acquire_read API.
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_read API.
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... | Acquire a read lock. Several threads can hold this typeof lock.
It is exclusive with write locks. | "Acquire a read lock. Several threads can hold this typeof lock.\n It is exclusive with write locks." | 87 | false | maxpumperla/elephas | acquire_read | 18,451 | |
LDU_FT/joestump/python-oauth2/to_string | LDU_FT | [
"<BEGIN>\n## `get_oauth_request`",
"Return an OAuth Request object for the current request.\n<END>",
"<BEGIN>\n## `get_client`",
"Return the client from the OAuth parameters.\n<END>",
"<BEGIN>\n## `is_valid`",
"Returns a Client object if this is a valid OAuth request.\n<END>",
"<BEGIN>\n## `build_xoauth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API.
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 to_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns this token as a plain string, suitable for storage.
The resulting string includes the token's secret, so you should never
send or store this string where a third party can read it. | "Returns this token as a plain string, suitable for storage.\n \n The resulting string includes the token's secret, so you should never\n send or store this string where a third party can read it." | 35 | false | joestump/python-oauth2 | to_string | 18,452 | |
LDU_FT/vkiryukhin/vkbeautify-python/_css_min | LDU_FT | [
"<BEGIN>\n## `xml`",
"Beautify XML",
" Args:\n src: xml string or path-to-file with text to beautify (mandatory)\n dest: path-to-file to save beautified xml string; if file doesn't exist\n it is created automatically; (optional)\n if this arg is skept function returns ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _css_min API.
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 _css_min API.
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... | Minify CSS
Args:
src: css string or path-to-file with text to beautify (mandatory)
dest: path-to-file to save beautified css string; if file doesn't exist
it is created automatically; (optional)
if this arg is skept function returns string
preserve_comments: if s... | "Minify CSS\n\n Args:\n src: css string or path-to-file with text to beautify (mandatory)\n dest: path-to-file to save beautified css string; if file doesn't exist\n it is created automatically; (optional)\n if this arg is skept function returns string\n preserve_commen... | 30 | false | vkiryukhin/vkbeautify-python | _css_min | 18,453 | |
LDU_FT/cloudsigma/cgroupspy/add_node | LDU_FT | [
"<BEGIN>\n## `_build_tree`",
"Build a full or a partial tree, depending on the groups/sub-groups specified.\n<END>",
"<BEGIN>\n## `_init_sub_groups`",
"Initialise sub-groups, and create any that do not already exist.\n<END>",
"<BEGIN>\n## `_init_children`",
"Initialise each node's children - essentially b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte... | A a Node object to the group. Only one node per cgroup is supported | "A a Node object to the group. Only one node per cgroup is supported" | 20 | false | cloudsigma/cgroupspy | add_node | 18,454 | |
LDU_FT/calmh/unifi-api/get_aps | LDU_FT | [
"<BEGIN>\n## `_construct_api_path`",
"Returns valid base API path based on version given",
" The base API path for the URL is different depending on UniFi server version.\n Default returns correct path for latest known stable working versions.\n<END>",
"<BEGIN>\n## `get_statistics_24h`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aps API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aps API.
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... | Return a list of all AP:s, with significant information about each. | "Return a list of all AP:s, with significant information about each." | 22 | false | calmh/unifi-api | get_aps | 18,455 | |
LDU_FT/google/openhtf/write | LDU_FT | [
"<BEGIN>\n## `short_repr`",
"Returns a short, term-friendly string representation of the object.",
" Args:\n obj: An object for which to return a string representation.\n max_len: Maximum length of the returned string. Longer reprs will be turned\n into a brief descriptive string giving the type a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write data to this stream, using the given timeouts.PolledTimeout. | "Write data to this stream, using the given timeouts.PolledTimeout." | 700 | false | google/openhtf | write | 18,456 | |
LDU_FT/poppy-project/pypot/detect_blob | LDU_FT | [
"<BEGIN>\n## `set_snap_server_variables`",
"Change dynamically port and host variable in xml Snap! project file\n<END>",
"<BEGIN>\n## `run`",
"Start the tornado server, run forever.\n 'quiet' and 'server' arguments are no longer used, they are keep only for backward compatibility\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_blob API.
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 detect_blob API.
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... | "filters" must be something similar to:
filters = {
'R': (150, 255), # (min, max)
'S': (150, 255),
} | "\"filters\" must be something similar to:\n filters = {\n 'R': (150, 255), # (min, max)\n 'S': (150, 255),\n }" | 371 | false | poppy-project/pypot | detect_blob | 18,457 | |
LDU_FT/yhat/db.py/to_dict | LDU_FT | [
"<BEGIN>\n## `all`",
"Returns entire table as a DataFrame. This is executing:\n SELECT\n *\n FROM\n <name_of_the_table>",
" Examples\n --------\n >>> from db import DemoDB\n >>> db = DemoDB()\n >>> len(db.tables.Track.all())\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted... | Serialize representation of the column for local caching. | "Serialize representation of the column for local caching." | 89 | false | yhat/db.py | to_dict | 18,458 | |
LDU_FT/robmcmullen/atrcopy/get_sectors | LDU_FT | [
"<BEGIN>\n## `text_to_int`",
"Convert text to int, raising exeception on invalid input\n<END>",
"<BEGIN>\n## `assign_sector_numbers`",
"Map out the sectors and link the sectors together",
" raises NotEnoughSpaceOnDisk if the whole file won't fit. It will not\n allow partial writes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sectors API.
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_sectors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get contiguous sectors
:param start: first sector number to read (note: numbering starts from 1)
:param end: last sector number to read
:returns: bytes | "Get contiguous sectors\n \n :param start: first sector number to read (note: numbering starts from 1)\n :param end: last sector number to read\n :returns: bytes" | 73 | false | robmcmullen/atrcopy | get_sectors | 18,459 | |
LDU_FT/marrow/mongo/intersects | LDU_FT | [
"<BEGIN>\n## `process_fields`",
"Process a list of simple string field definitions and assign their order based on prefix.\n<END>",
"<BEGIN>\n## `create`",
"Create this index in the specified collection; keyword arguments are passed to PyMongo.",
"\t\thttp://api.mongodb.com/python/current/api/pymongo/collec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersects API.
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 intersects API.
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... | Select geometries that intersect with a GeoJSON geometry.
Geospatial operator: {$geoIntersects: {...}}
Documentation: https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects
{
$geoIntersects: { $geometry: <geometry; a GeoJSON object> }
} | "Select geometries that intersect with a GeoJSON geometry.\n\t\t\n\t\tGeospatial operator: {$geoIntersects: {...}}\n\t\tDocumentation: https://docs.mongodb.com/manual/reference/operator/query/geoIntersects/#op._S_geoIntersects\n\t\t\n\t\t\t{\n\t\t\t\t$geoIntersects: { $geometry: <geometry; a GeoJSON object> }\n\t\t\t}" | 175 | false | marrow/mongo | intersects | 18,460 | |
LDU_FT/zetaops/zengine/pin_channel | LDU_FT | [
"<BEGIN>\n## `list_catalogs`",
"Lists existing catalogs respect to ui view template format\n<END>",
"<BEGIN>\n## `get_catalog`",
"Get existing catalog and fill the form with the model data.\n If given key not found as catalog, it generates an empty catalog data form.\n<END>",
"<BEGIN>\n## `save_catal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pin_channel API.
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 pin_channel API.
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... | Pin a channel to top of channel list
.. code-block:: python
# request:
{
'view':'_zops_pin_channel,
'channel_key': key,
}
# response:
{
'status': 'OK',
'code': 200
... | "Pin a channel to top of channel list\n\n .. code-block:: python\n\n # request:\n {\n 'view':'_zops_pin_channel,\n 'channel_key': key,\n }\n\n # response:\n {\n 'status': 'OK',\n 'code... | 655 | false | zetaops/zengine | pin_channel | 18,461 | |
LDU_FT/openstax/cnx-epub/easybake | LDU_FT | [
"<BEGIN>\n## `squash_xml_to_text`",
"Squash the given XML element (as `elm`) to a text containing XML.\n The outer most element/tag will be removed, but inner elements will\n remain. If `remove_namespaces` is specified, XML namespace declarations\n will be removed from the text.",
" :param elm: XML ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the easybake API.
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 easybake API.
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... | This adheres to the same interface as
``cnxeasybake.scripts.main.easyback``.
``ruleset`` is a string containing the ruleset CSS
while ``in_html`` and ``out_html`` are file-like objects,
with respective read and write ability. | "This adheres to the same interface as\n ``cnxeasybake.scripts.main.easyback``.\n ``ruleset`` is a string containing the ruleset CSS\n while ``in_html`` and ``out_html`` are file-like objects,\n with respective read and write ability." | 67 | false | openstax/cnx-epub | easybake | 18,462 | |
LDU_FT/magopian/django-data-exports/getattribute | LDU_FT | [
"<BEGIN>\n## `getattribute`",
"Chained lookup of item on model",
" If item has dots (eg: 'foo.bar.baz'), recursively call getattribute():\n e = getattr(model, 'foo')\n e = getattr(e, 'bar')\n e = getattr(e, 'baz')\n At each step, check if e is a callable, and if so, use e()\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getattribute API.
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 getattribute API.
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... | Chained lookup of item on model
If item has dots (eg: 'foo.bar.baz'), recursively call getattribute():
e = getattr(model, 'foo')
e = getattr(e, 'bar')
e = getattr(e, 'baz')
At each step, check if e is a callable, and if so, use e() | "Chained lookup of item on model\n\n If item has dots (eg: 'foo.bar.baz'), recursively call getattribute():\n e = getattr(model, 'foo')\n e = getattr(e, 'bar')\n e = getattr(e, 'baz')\n At each step, check if e is a callable, and if so, use e()" | 13 | false | magopian/django-data-exports | getattribute | 18,463 | |
LDU_FT/hubo1016/vlcp/startlisten | LDU_FT | [
"<BEGIN>\n## `get_connection`",
"Get an exclusive connection, useful for blocked commands and transactions.",
" You must call release or shutdown (not recommanded) to return the connection after use.",
" :param container: routine container",
" :returns: RedisClientBase object, with some... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the startlisten API.
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 startlisten API.
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... | Start listen on current servers
:param vhost: return only servers of vhost if specified. '' to return only default servers.
None for all servers. | "Start listen on current servers\n \n :param vhost: return only servers of vhost if specified. '' to return only default servers.\n None for all servers." | 538 | false | hubo1016/vlcp | startlisten | 18,464 | |
LDU_FT/moonso/vcftoolbox/get_vcf_header | LDU_FT | [
"<BEGIN>\n## `get_vcf_header`",
"Get the header lines of a vcf file",
" Args:\n source(iterable): A vcf file",
" Returns:\n head (HeaderParser): A headerparser object\n<END>",
"<BEGIN>\n## `get_variant_dict`",
"Parse a variant line",
" Split a variant line and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_vcf_header API.
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_vcf_header API.
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 header lines of a vcf file
Args:
source(iterable): A vcf file
Returns:
head (HeaderParser): A headerparser object | "Get the header lines of a vcf file\n \n Args:\n source(iterable): A vcf file\n \n Returns:\n head (HeaderParser): A headerparser object" | 81 | false | moonso/vcftoolbox | get_vcf_header | 18,465 | |
LDU_FT/avirshup/DockerMake/dockerfile_lines | LDU_FT | [
"<BEGIN>\n## `write_dockerfile`",
"Used only to write a Dockerfile that will NOT be built by docker-make\n<END>",
"<BEGIN>\n## `build`",
"Drives the build of the final image - get the list of steps and execute them.",
" Args:\n client (docker.Client): docker client object that will build t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dockerfile_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dockerfile_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Used only when printing dockerfiles, not for building | "Used only when printing dockerfiles, not for building" | 36 | false | avirshup/DockerMake | dockerfile_lines | 18,466 | |
LDU_FT/DMSC-Instrument-Data/lewis/extract_module_name | LDU_FT | [
"<BEGIN>\n## `get_submodules`",
"This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.",
" :param module: Module object from wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_module_name 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 extract_module_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | This function tries to extract a valid module name from the basename of the supplied path.
If it's a directory, the directory name is returned, if it's a file, the file name
without extension is returned. If the basename starts with _ or . or it's a file with an
ending different from .py, the function retur... | "This function tries to extract a valid module name from the basename of the supplied path.\n If it's a directory, the directory name is returned, if it's a file, the file name\n without extension is returned. If the basename starts with _ or . or it's a file with an\n ending different from .py, the function r... | 198 | false | DMSC-Instrument-Data/lewis | extract_module_name | 18,467 | |
LDU_FT/numba/llvmlite/functions | LDU_FT | [
"<BEGIN>\n## `create_mcjit_compiler`",
"Create a MCJIT ExecutionEngine from the given *module* and\n *target_machine*.\n<END>",
"<BEGIN>\n## `add_module`",
"Ownership of module is transferred to the execution engine\n<END>",
"<BEGIN>\n## `target_data`",
"The TargetData for this execution engine.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the functions API.
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 functions API.
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... | A list of functions declared or defined in this module. | "A list of functions declared or defined in this module." | 226 | false | numba/llvmlite | functions | 18,468 | |
LDU_FT/jazzband/django-push-notifications/_cm_handle_canonical_id | LDU_FT | [
"<BEGIN>\n## `get_prep_value`",
"Return the integer value to be stored from the hex string\n<END>",
"<BEGIN>\n## `from_db_value`",
"Return an unsigned int representation from all db backends\n<END>",
"<BEGIN>\n## `to_python`",
"Return a str representation of the hexadecimal\n<END>",
"<BEGIN>\n## `apns_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cm_handle_canonical_id 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 _cm_handle_canonical_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Handle situation when FCM server response contains canonical ID | "Handle situation when FCM server response contains canonical ID" | 61 | false | jazzband/django-push-notifications | _cm_handle_canonical_id | 18,469 | |
LDU_FT/derpston/python-multitail2/readlines | LDU_FT | [
"<BEGIN>\n## `_open`",
"Open `path`, optionally seeking to the end if `skip_to_end` is True.\n<END>",
"<BEGIN>\n## `_read`",
"Checks the file for new data and refills the buffer if it finds any.\n<END>",
"<BEGIN>\n## `hasBeenRotated`",
"Returns a boolean indicating whether the file has been removed and re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readlines API.
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 readlines API.
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... | A generator producing lines from the file. | "A generator producing lines from the file." | 16 | false | derpston/python-multitail2 | readlines | 18,470 | |
LDU_FT/Josef-Friedrich/phrydy/deserialize | LDU_FT | [
"<BEGIN>\n## `as_string`",
"Convert a value to a Unicode object for matching with a query.\n None becomes the empty string. Bytestrings are silently decoded.\n<END>",
"<BEGIN>\n## `displayable_path`",
"Attempts to decode a bytestring path to a unicode object for the\n purpose of displaying it to the use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
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 deserialize API.
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... | Given a raw value stored on a Mutagen object, decode and
return the represented value. | "Given a raw value stored on a Mutagen object, decode and\n return the represented value." | 72 | false | Josef-Friedrich/phrydy | deserialize | 18,471 | |
LDU_FT/closeio/tasktiger/_move | LDU_FT | [
"<BEGIN>\n## `set_system_lock`",
"Set system lock for the semaphore.",
" Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.",
" Argum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _move API.
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 _move API.
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... | Internal helper to move a task from one state to another (e.g. from
QUEUED to DELAYED). The "when" argument indicates the timestamp of the
task in the new state. If no to_state is specified, the task will be
simply removed from the original state.
The "mode" param can be specified to de... | "Internal helper to move a task from one state to another (e.g. from\n QUEUED to DELAYED). The \"when\" argument indicates the timestamp of the\n task in the new state. If no to_state is specified, the task will be\n simply removed from the original state.\n\n The \"mode\" param can be speci... | 124 | false | closeio/tasktiger | _move | 18,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.