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/summanlp/textrank/_cons | LDU_FT | [
"<BEGIN>\n## `_cons`",
"cons(i) is TRUE <=> b[i] is a consonant.\n<END>",
"<BEGIN>\n## `_m`",
"m() measures the number of consonant sequences between k0 and j.\n if c is a consonant sequence and v a vowel sequence, and <..>\n indicates arbitrary presence,",
" <c><v> gives 0\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cons API.
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 _cons API.
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... | cons(i) is TRUE <=> b[i] is a consonant. | "cons(i) is TRUE <=> b[i] is a consonant." | 126 | false | summanlp/textrank | _cons | 23,573 | |
LDU_FT/jonathf/chaospy/create_grid_samples | LDU_FT | [
"<BEGIN>\n## `call`",
"Evaluate a polynomial along specified axes.",
" Args:\n poly (Poly):\n Input polynomial.\n args (numpy.ndarray):\n Argument to be evaluated. Masked values keeps the variable intact.",
" Returns:\n (Poly, numpy.ndarray):\n If ma... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_grid_samples 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 create_grid_samples API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Create samples from a regular grid.
Args:
order (int):
The order of the grid. Defines the number of samples.
dim (int):
The number of dimensions in the grid
Returns (numpy.ndarray):
Regular grid with ``shape == (dim, order)``. | "Create samples from a regular grid.\n\n Args:\n order (int):\n The order of the grid. Defines the number of samples.\n dim (int):\n The number of dimensions in the grid\n\n Returns (numpy.ndarray):\n Regular grid with ``shape == (dim, order)``." | 713 | false | jonathf/chaospy | create_grid_samples | 23,574 | |
LDU_FT/usc-isi-i2/etk/_construct_shape_token | LDU_FT | [
"<BEGIN>\n## `decode_unicode`",
"Process of parsing:\n -> Convert unicode into standard form\n -> Convert each character of the unicode symbol to its numerical equivalent\n -> Mapping Process:\n - First check in pattern dictionary to map suffix/prefix\n - Check Emoticon Dictionary \n - Replace valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _construct_shape_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 _construct_shape_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.... | Construct a shape token
Args:
d: Dict
Returns: List[Dict] | "Construct a shape token\n Args:\n d: Dict\n\n Returns: List[Dict]" | 427 | false | usc-isi-i2/etk | _construct_shape_token | 23,575 | |
LDU_FT/unt-libraries/codalib/addObjectFromXML | LDU_FT | [
"<BEGIN>\n## `waitForURL`",
"Give it a URL. Keep trying to get a HEAD request from it until it works.\n If it doesn't work, wait a while and try again\n<END>",
"<BEGIN>\n## `doWaitWebRequest`",
"Same as doWebRequest, but with built in wait-looping\n<END>",
"<BEGIN>\n## `doWebRequest`",
"A urllib2 wrap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addObjectFromXML API.
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 addObjectFromXML API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Handle adding or updating the Queue. Based on XML input. | "Handle adding or updating the Queue. Based on XML input." | 40 | false | unt-libraries/codalib | addObjectFromXML | 23,576 | |
LDU_FT/bast/flanders/print_build_help | LDU_FT | [
"<BEGIN>\n## `check_cmake_exists`",
"Check whether CMake is installed. If not, print\n informative error message and quits.\n<END>",
"<BEGIN>\n## `setup_build_path`",
"Create build directory. If this already exists, print informative\n error message and quit.\n<END>",
"<BEGIN>\n## `print_build_help`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_build_help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_build_help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Print help text after configuration step is done. | "Print help text after configuration step is done." | 10 | false | bast/flanders | print_build_help | 23,577 | |
LDU_FT/LasLabs/python-helpscout/auth_proxy | LDU_FT | [
"<BEGIN>\n## `create`",
"Create an object on HelpScout.",
" Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auth_proxy API.
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 auth_proxy API.
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... | Authentication proxy for API requests.
This is required because the API objects are naive of ``HelpScout``,
so they would otherwise be unauthenticated.
Args:
method (callable): A method call that should be authenticated. It
should accept a ``requests.Session`` as its f... | "Authentication proxy for API requests.\n\n This is required because the API objects are naive of ``HelpScout``,\n so they would otherwise be unauthenticated.\n\n Args:\n method (callable): A method call that should be authenticated. It\n should accept a ``requests.Session`` ... | 178 | false | LasLabs/python-helpscout | auth_proxy | 23,578 | |
LDU_FT/SetBased/py-etlt/_get_date_type | LDU_FT | [
"<BEGIN>\n## `_split_scheme`",
"Splits the scheme and actual expression",
" :param str expression: The expression.",
" :rtype: str\n<END>",
"<BEGIN>\n## `register_scheme`",
"Registers a scheme.",
" :param str scheme: The scheme.\n :param callable constructor: The SimpleCondit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_date_type API.
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_date_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the type of a date.
:param str|datetime.date date: The date.
:rtype: str | "Returns the type of a date.\n\n :param str|datetime.date date: The date.\n\n :rtype: str" | 155 | false | SetBased/py-etlt | _get_date_type | 23,579 | |
LDU_FT/Dentosal/python-sc2/is_constructing_scv | LDU_FT | [
"<BEGIN>\n## `main_base_ramp`",
"Returns the Ramp instance of the closest main-ramp to start location. Look in game_info.py for more information\n<END>",
"<BEGIN>\n## `get_available_abilities`",
"Returns available abilities of one or more units.\n<END>",
"<BEGIN>\n## `distribute_workers`",
"Distributes wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_constructing_scv 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 is_constructing_scv 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... | Checks if the unit is an SCV that is currently building. | "Checks if the unit is an SCV that is currently building." | 155 | false | Dentosal/python-sc2 | is_constructing_scv | 23,580 | |
LDU_FT/mfitzp/padua/filter_localization_probability | LDU_FT | [
"<BEGIN>\n## `remove_rows_matching`",
"Return a ``DataFrame`` with rows where `column` values match `match` are removed.",
" The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.",
" :param df:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_localization_probability API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_localization_probability API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Remove rows with a localization probability below 0.75
Return a ``DataFrame`` where the rows with a value < `threshold` (default 0.75) in column 'Localization prob' are removed.
Filters data to remove poorly localized peptides (non Class-I by default).
:param df: Pandas ``DataFrame``
:param threshold:... | "Remove rows with a localization probability below 0.75\n\n Return a ``DataFrame`` where the rows with a value < `threshold` (default 0.75) in column 'Localization prob' are removed.\n Filters data to remove poorly localized peptides (non Class-I by default).\n\n :param df: Pandas ``DataFrame``\n :param thr... | 266 | false | mfitzp/padua | filter_localization_probability | 23,581 | |
LDU_FT/njsmith/colorspacious/as_XYZ100_w | LDU_FT | [
"<BEGIN>\n## `deltaE`",
"Computes the :math:`\\Delta E` distance between pairs of colors.",
" :param input_space: The space the colors start out in. Can be anything\n recognized by :func:`cspace_convert`. Default: \"sRGB1\"\n :param uniform_space: Which space to perform the distance measurement\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_XYZ100_w API.
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 as_XYZ100_w API.
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... | A convenience function for getting whitepoints.
``whitepoint`` can be either a string naming a standard illuminant (see
:func:`standard_illuminant_XYZ100`), or else a whitepoint given explicitly
as an array-like of XYZ values.
We internally call this function anywhere you have to specify a whitepoint
... | "A convenience function for getting whitepoints.\n\n ``whitepoint`` can be either a string naming a standard illuminant (see\n :func:`standard_illuminant_XYZ100`), or else a whitepoint given explicitly\n as an array-like of XYZ values.\n\n We internally call this function anywhere you have to specify a whit... | 53 | false | njsmith/colorspacious | as_XYZ100_w | 23,582 | |
LDU_FT/liip/taxi/add_entry | LDU_FT | [
"<BEGIN>\n## `round_to_quarter`",
"Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>",
"<BEGIN>\n## `_timesheets_callback`",
"Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_entry API.
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 add_entry API.
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... | Add the given entry to the textual representation. | "Add the given entry to the textual representation." | 131 | false | liip/taxi | add_entry | 23,583 | |
LDU_FT/bitesofcode/projex/extend | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds the new key to this enumerated type.",
" :param key | <str>\n<END>",
"<BEGIN>\n## `all`",
"Returns all the values joined together.",
" :return <int>\n<END>",
"<BEGIN>\n## `base`",
"Returns the root base for the given value from this enumeration.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API.
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 extend API.
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 ... | Adds a new definition to this enumerated type, extending the given
base type. This will create a new key for the type and register
it as a new viable option from the system, however, it will also
register its base information so you can use enum.base to retrieve
the root type.
... | "Adds a new definition to this enumerated type, extending the given\n base type. This will create a new key for the type and register\n it as a new viable option from the system, however, it will also\n register its base information so you can use enum.base to retrieve\n the root type.\n ... | 676 | false | bitesofcode/projex | extend | 23,584 | |
LDU_FT/cwoebker/pen/split_focus | LDU_FT | [
"<BEGIN>\n## `re_tab`",
"Return a tabbed string from an expanded one.\n<END>",
"<BEGIN>\n## `_get_at_pos`",
"Return a widget for the line number passed.\n<END>",
"<BEGIN>\n## `split_focus`",
"Divide the focus edit widget at the cursor location.\n<END>",
"<BEGIN>\n## `combine_focus_with_prev`",
"Combin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_focus API.
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 split_focus API.
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... | Divide the focus edit widget at the cursor location. | "Divide the focus edit widget at the cursor location." | 10 | false | cwoebker/pen | split_focus | 23,585 | |
LDU_FT/dmort27/panphon/pat | LDU_FT | [
"<BEGIN>\n## `fts`",
"Return features corresponding to segment as list of (value,\n feature) tuples",
" Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string",
" Returns:\n list: None if `segment` c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pat API.
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 pat API.
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 string `p` with feature matrices (features grouped with square
brackets into segments, return a list of sets of (value, feature) tuples.
Args:
p (str): list of feature matrices as strings
Return:
list: list of sets of (value, feature) tuples | "Given a string `p` with feature matrices (features grouped with square\n brackets into segments, return a list of sets of (value, feature) tuples.\n\n Args:\n p (str): list of feature matrices as strings\n\n Return:\n list: list of sets of (value, feature) tuples" | 112 | false | dmort27/panphon | pat | 23,586 | |
LDU_FT/jorisroovers/gitlint/set_from_config_file | LDU_FT | [
"<BEGIN>\n## `find_rule_classes`",
"Searches a given directory or python module for rule classes. This is done by\n adding the directory path to the python path, importing the modules and then finding\n any Rule class in those modules.",
" :param extra_path: absolute directory or file path to search fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_from_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_from_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Loads lint config from a ini-style config file | "Loads lint config from a ini-style config file" | 58 | false | jorisroovers/gitlint | set_from_config_file | 23,587 | |
LDU_FT/zyga/json-schema-validator/items | LDU_FT | [
"<BEGIN>\n## `type`",
"Type of a valid object.",
" Type may be a JSON type name or a list of such names. Valid JSON type\n names are ``string``, ``number``, ``integer``, ``boolean``, ``object``,\n ``array``, ``any`` (default).\n<END>",
"<BEGIN>\n## `properties`",
"Schema for particular ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the items API.
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 items API.
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... | Schema or a list of schemas describing particular elements of the object.
A single schema applies to all the elements. Each element of the object
must match that schema. A list of schemas describes particular elements
of the object. | "Schema or a list of schemas describing particular elements of the object.\n\n A single schema applies to all the elements. Each element of the object\n must match that schema. A list of schemas describes particular elements\n of the object." | 48 | false | zyga/json-schema-validator | items | 23,588 | |
LDU_FT/nugget/python-insteonplm/_get_msg_class | LDU_FT | [
"<BEGIN>\n## `data_received`",
"Receive data from the protocol.",
" Called when asyncio.Protocol detects received data from network.\n<END>",
"<BEGIN>\n## `connection_lost`",
"Reestablish the connection to the transport.",
" Called when asyncio.Protocol loses the network connection.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_msg_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_msg_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 ex... | Get the message class based on the message code. | "Get the message class based on the message code." | 375 | false | nugget/python-insteonplm | _get_msg_class | 23,589 | |
LDU_FT/dixudx/rtcclient/renderFromWorkitem | LDU_FT | [
"<BEGIN>\n## `getRoles`",
"Get all :class:`rtcclient.models.Role` objects in this project\n area",
" If no :class:`Roles` are retrieved, `None` is returned.",
" :return: a :class:`list` that contains all\n :class:`rtcclient.models.Role` objects\n :rtype: list\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the renderFromWorkitem 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 renderFromWorkitem 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... | Render the template directly from some to-be-copied
:class:`rtcclient.workitem.Workitem` without saving to a file
:param copied_from: the to-be-copied
:class:`rtcclient.workitem.Workitem` id
:param keep (default is False): If `True`, some of the below fields
will remain ... | "Render the template directly from some to-be-copied\n :class:`rtcclient.workitem.Workitem` without saving to a file\n\n :param copied_from: the to-be-copied\n :class:`rtcclient.workitem.Workitem` id\n :param keep (default is False): If `True`, some of the below fields\n will ... | 285 | false | dixudx/rtcclient | renderFromWorkitem | 23,590 | |
LDU_FT/titusz/epubcheck/epubcheck_help | LDU_FT | [
"<BEGIN>\n## `validate`",
"Minimal validation.",
" :return bool: True if valid else False\n<END>",
"<BEGIN>\n## `create_parser`",
"Creat a commandline parser for epubcheck",
" :return Argumentparser:\n<END>",
"<BEGIN>\n## `main`",
"Command line app main function.",
" :param list | None argv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the epubcheck_help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the epubcheck_help API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return epubcheck.jar commandline help text.
:return unicode: helptext from epubcheck.jar | "Return epubcheck.jar commandline help text.\n\n :return unicode: helptext from epubcheck.jar" | 20 | false | titusz/epubcheck | epubcheck_help | 23,591 | |
LDU_FT/mikusjelly/apkutils/display_string_dump | LDU_FT | [
"<BEGIN>\n## `skipNullPadding`",
"不断地寻找 CHUNK_STRINGPOOL_TYPE,目前暂时没有遇到这种样本。\n<END>",
"<BEGIN>\n## `is_zipfile`",
"Quickly see if a file is a ZIP file by checking the magic number.",
" The filename argument may be a file or file-like object too.\n<END>",
"<BEGIN>\n## `readline`",
"Read and return a li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the display_string_dump 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 display_string_dump 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... | Display a strings dump of a section. section_spec is either a
section number or a name. | "Display a strings dump of a section. section_spec is either a\r\n section number or a name." | 48 | false | mikusjelly/apkutils | display_string_dump | 23,592 | |
LDU_FT/coleifer/huey/put_if_empty | LDU_FT | [
"<BEGIN>\n## `crontab`",
"Convert a \"crontab\"-style set of parameters into a test function that will\n return True when the given datetime matches the parameters set forth in\n the crontab.",
" For day-of-week, 0=Sunday and 6=Saturday.",
" Acceptable inputs:\n * = every distinct value\n */... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_if_empty API.
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 put_if_empty API.
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... | Atomically write data only if the key is not already set.
:param bytes key: Key to check/set.
:param bytes value: Arbitrary data.
:return: Boolean whether key/value was set. | "Atomically write data only if the key is not already set.\n\n :param bytes key: Key to check/set.\n :param bytes value: Arbitrary data.\n :return: Boolean whether key/value was set." | 26 | false | coleifer/huey | put_if_empty | 23,593 | |
LDU_FT/C-Pro/pgdocgen/write_files | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parses input string and returns list of DDLObjects\n<END>",
"<BEGIN>\n## `readddl`",
"Walks down database objects and generates\n JDOC objects for table descriptions\n<END>",
"<BEGIN>\n## `read_dir`",
"reads all files with extension input_ext\n in a directory input_dir and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_files API.
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 write_files API.
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... | Writes all jdoc records into files.
One file per schema plus index file. | "Writes all jdoc records into files.\n One file per schema plus index file." | 10 | false | C-Pro/pgdocgen | write_files | 23,594 | |
LDU_FT/shin-/dockerpy-creds/erase | LDU_FT | [
"<BEGIN>\n## `find_executable`",
"As distutils.spawn.find_executable, but on Windows, look up\n every extension declared in PATHEXT instead of just `.exe`\n<END>",
"<BEGIN>\n## `create_environment_dict`",
"Create and return a copy of os.environ with the specified overrides\n<END>",
"<BEGIN>\n## `get`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the erase API.
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 erase API.
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... | Erase credentials for `server`. Raises a `StoreError` if an error
occurs. | "Erase credentials for `server`. Raises a `StoreError` if an error\n occurs." | 10 | false | shin-/dockerpy-creds | erase | 23,595 | |
LDU_FT/gc3-uzh-ch/elasticluster/to_bytes | LDU_FT | [
"<BEGIN>\n## `to_vars_dict`",
"Return local state which is relevant for the cluster setup process.\n<END>",
"<BEGIN>\n## `_init_az_api`",
"Initialise client objects for talking to Azure API.",
" This is in a separate function so to be called by ``__init__``\n and ``__setstate__``.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Convert string `s` to an integer number of bytes. Suffixes like
'KB', 'MB', 'GB' (up to 'YB'), with or without the trailing 'B',
are allowed and properly accounted for. Case is ignored in
suffixes.
Examples::
>>> to_bytes('12')
12
>>> to_bytes('12B')
12
>>> to_bytes('12... | "Convert string `s` to an integer number of bytes. Suffixes like\n 'KB', 'MB', 'GB' (up to 'YB'), with or without the trailing 'B',\n are allowed and properly accounted for. Case is ignored in\n suffixes.\n\n Examples::\n\n >>> to_bytes('12')\n 12\n >>> to_bytes('12B')\n 12\n >>> ... | 378 | false | gc3-uzh-ch/elasticluster | to_bytes | 23,596 | |
LDU_FT/Chilipp/model-organization/get_next_name | LDU_FT | [
"<BEGIN>\n## `dir_contains`",
"Check if a file of directory is contained in another.",
" Parameters\n ----------\n dirname: str\n The base directory that should contain `path`\n path: str\n The name of a directory or file that should be in `dirname`\n exists: bool\n If True, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_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.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_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.
The ext... | Return the next name that numerically follows `old` | "Return the next name that numerically follows `old`" | 161 | false | Chilipp/model-organization | get_next_name | 23,597 | |
LDU_FT/mailgun/talon/build_extraction_dataset | LDU_FT | [
"<BEGIN>\n## `safe_format`",
"Helper: formats string with any combination of bytestrings/unicode\n strings without raising exceptions\n<END>",
"<BEGIN>\n## `to_unicode`",
"Safely returns a unicode version of a given string\n >>> utils.to_unicode('привет')\n u'привет'\n >>> utils.to_unicode(u'п... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_extraction_dataset 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 build_extraction_dataset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Builds signature extraction dataset using emails in the `folder`.
The emails in the `folder` should be annotated i.e. signature lines
should be marked with `#sig#`. | "Builds signature extraction dataset using emails in the `folder`.\n\n The emails in the `folder` should be annotated i.e. signature lines\n should be marked with `#sig#`." | 140 | false | mailgun/talon | build_extraction_dataset | 23,598 | |
LDU_FT/cltl/KafNafParserPy/get_dict_tokens_for_termid | LDU_FT | [
"<BEGIN>\n## `set_id`",
"Set the property identifier\n @type pid: string\n @param pid: property identifier\n<END>",
"<BEGIN>\n## `add_property`",
"Adds a new property to the property layer\n @type pid: string\n @param pid: property identifier\n @type label: string\n @... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_tokens_for_termid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dict_tokens_for_termid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Returns the tokens ids that are the span of the term specified
@type term_id: string
@param term_id: the term idenfier
@rtype: list
@return: list of token ids that are the span of the term | "Returns the tokens ids that are the span of the term specified\n @type term_id: string\n @param term_id: the term idenfier\n @rtype: list\n @return: list of token ids that are the span of the term" | 270 | false | cltl/KafNafParserPy | get_dict_tokens_for_termid | 23,599 | |
LDU_FT/aarongarrett/inspyred/laplace_crossover | LDU_FT | [
"<BEGIN>\n## `mutator`",
"Return an inspyred mutator function based on the given function.",
" This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the laplace_crossover API.
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 laplace_crossover API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return the offspring of Laplace crossover on the candidates.
This function performs Laplace crosssover (LX), following the
implementation specified in (Deep and Thakur, "A new crossover
operator for real coded genetic algorithms," Applied Mathematics
and Computation, Volume 188, Issue 1, May 200... | "Return the offspring of Laplace crossover on the candidates.\n \n This function performs Laplace crosssover (LX), following the \n implementation specified in (Deep and Thakur, \"A new crossover \n operator for real coded genetic algorithms,\" Applied Mathematics \n and Computation, Volume 188, Issue 1,... | 390 | false | aarongarrett/inspyred | laplace_crossover | 23,600 | |
LDU_FT/lablup/backend.ai-client-py/list | LDU_FT | [
"<BEGIN>\n## `generate_signature`",
"Generates the API request signature from the given parameters.\n<END>",
"<BEGIN>\n## `list_with_limit`",
"Fetches the list of agents with the given status with limit and offset for\n pagination.",
" :param limit: number of agents to get\n :param offs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 do... | List virtual folders that belongs to the current user. | "List virtual folders that belongs to the current user." | 207 | false | lablup/backend.ai-client-py | list | 23,601 | |
LDU_FT/iotile/coretools/PrependPath | LDU_FT | [
"<BEGIN>\n## `_value_length`",
"Given an integer or list of them, convert it to an array of bytes.\n<END>",
"<BEGIN>\n## `_parse_line`",
"Parse a line in a TileBus file",
" Args:\n line_no (int): The line number for printing useful error messages\n line (string): The line that w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PrependPath API.
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 PrependPath API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This prepends newpath elements to the given oldpath. Will only
add any particular path once (leaving the first one it encounters
and ignoring the rest, to preserve path order), and will
os.path.normpath and os.path.normcase all paths to help assure
this. This can also handle the case where the given o... | "This prepends newpath elements to the given oldpath. Will only\n add any particular path once (leaving the first one it encounters\n and ignoring the rest, to preserve path order), and will\n os.path.normpath and os.path.normcase all paths to help assure\n this. This can also handle the case where the gi... | 4,849 | true | iotile/coretools | PrependPath | 23,602 | |
LDU_FT/Visgean/urljects/render | LDU_FT | [
"<BEGIN>\n## `render`",
"This function finishes the url pattern creation by adding starting\n character ^ end possibly by adding end character at the end",
" :param value: naive URL value\n :return: raw string\n<END>",
"<BEGIN>\n## `add_part`",
"Function for adding partial pattern to the value\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
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 render API.
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 ... | This function finishes the url pattern creation by adding starting
character ^ end possibly by adding end character at the end
:param value: naive URL value
:return: raw string | "This function finishes the url pattern creation by adding starting\n character ^ end possibly by adding end character at the end\n\n :param value: naive URL value\n :return: raw string" | 24 | false | Visgean/urljects | render | 23,603 | |
LDU_FT/hsolbrig/pyjsg/dependency_list | LDU_FT | [
"<BEGIN>\n## `do_parse`",
"Parse the jsg in infilename and save the results in outfilename\n :param infilename: file containing jsg\n :param outfilename: target python file\n :param verbose: verbose output flag\n :return: true if success\n<END>",
"<BEGIN>\n## `parse`",
"Parse the text in infile an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dependency_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dependency_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 e... | Return a list all of the grammarelts that depend on tkn
:param tkn:
:return: | "Return a list all of the grammarelts that depend on tkn\n\n :param tkn: \n :return:" | 146 | false | hsolbrig/pyjsg | dependency_list | 23,604 | |
LDU_FT/diux-dev/ncluster/_run_raw | LDU_FT | [
"<BEGIN>\n## `make_job`",
"Create a job using current backend. Blocks until all tasks are up and initialized.",
" Args:\n name: name of the job\n run_name: name of the run (auto-assigned if empty)\n num_tasks: number of tasks\n install_script: bash-runnable script\n **kwargs:",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_raw API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_raw API.
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... | Runs given cmd in the task using current SSH session, returns
stdout/stderr as strings. Because it blocks until cmd is done, use it for
short cmds. Silently ignores failing commands.
This is a barebones method to be used during initialization that have
minimal dependencies (no tmux) | "Runs given cmd in the task using current SSH session, returns\n stdout/stderr as strings. Because it blocks until cmd is done, use it for\n short cmds. Silently ignores failing commands.\n\n This is a barebones method to be used during initialization that have\n minimal dependencies (no tmux)" | 136 | false | diux-dev/ncluster | _run_raw | 23,605 | |
LDU_FT/line/line-bot-sdk-python/validate | LDU_FT | [
"<BEGIN>\n## `get`",
"GET request.",
" :param str url: Request url\n :param dict headers: (optional) Request headers\n :param dict params: (optional) Request query parameter\n :param bool stream: (optional) get content as stream\n :param timeout: (optional), How long to wait f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Check signature.
https://devdocs.line.me/en/#webhook-authentication
:param str body: Request body (as text)
:param str signature: X-Line-Signature value (as text)
:rtype: bool
:return: result | "Check signature.\n\n https://devdocs.line.me/en/#webhook-authentication\n\n :param str body: Request body (as text)\n :param str signature: X-Line-Signature value (as text)\n :rtype: bool\n :return: result" | 135 | false | line/line-bot-sdk-python | validate | 23,606 | |
LDU_FT/msikma/kanaconv/_process_repeaters | LDU_FT | [
"<BEGIN>\n## `_clear_char`",
"Clears the current character and makes the machine ready\n to accept the next character.\n<END>",
"<BEGIN>\n## `_append_unknown_char`",
"Appends the unknown character, in case one was encountered.\n<END>",
"<BEGIN>\n## `_flush_char`",
"Appends the rōmaji characters tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_repeaters 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 _process_repeaters 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... | Replace all repeater characters (e.g. turn サヾエ into サザエ). | "Replace all repeater characters (e.g. turn サヾエ into サザエ)." | 57 | false | msikma/kanaconv | _process_repeaters | 23,607 | |
LDU_FT/maxcountryman/atomos/synchronized | LDU_FT | [
"<BEGIN>\n## `synchronized`",
"A decorator which acquires a lock before attempting to execute its wrapped\n function. Releases the lock in a finally clause.",
" :param fn: The function to wrap.\n<END>",
"<BEGIN>\n## `set`",
"Atomically sets the value to `value`.",
" :param value: The value to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the synchronized API.
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 synchronized API.
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... | A decorator which acquires a lock before attempting to execute its wrapped
function. Releases the lock in a finally clause.
:param fn: The function to wrap. | "A decorator which acquires a lock before attempting to execute its wrapped\n function. Releases the lock in a finally clause.\n\n :param fn: The function to wrap." | 57 | false | maxcountryman/atomos | synchronized | 23,608 | |
LDU_FT/barryp/py-amqplib/generate_module | LDU_FT | [
"<BEGIN>\n## `_textlist`",
"Returns a list of text strings contained within an element and its sub-elements.",
" Helpful for extracting text from prose-oriented XML (such as XHTML or DocBook).\n<END>",
"<BEGIN>\n## `_reindent`",
"Remove the existing indentation from each line of a chunk of\n text, s, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Given an AMQP spec parsed into an xml.etree.ElemenTree,
and a file-like 'out' object to write to, generate
the skeleton of a Python module. | "Given an AMQP spec parsed into an xml.etree.ElemenTree,\n and a file-like 'out' object to write to, generate\n the skeleton of a Python module." | 449 | false | barryp/py-amqplib | generate_module | 23,609 | |
LDU_FT/MechanicalSoup/MechanicalSoup/open_relative | LDU_FT | [
"<BEGIN>\n## `new_control`",
"Call :func:`Form.new_control` on the currently selected form.\n<END>",
"<BEGIN>\n## `open`",
"Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.",
" :return: Forwarded from :func:`Browser.get`.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_relative API.
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 open_relative API.
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... | Like :func:`open`, but ``url`` can be relative to the currently
visited page. | "Like :func:`open`, but ``url`` can be relative to the currently\n visited page." | 119 | false | MechanicalSoup/MechanicalSoup | open_relative | 23,610 | |
LDU_FT/MarcMeszaros/envitro/protocol | LDU_FT | [
"<BEGIN>\n## `_strtobool`",
"Convert a string representation of truth to true (1) or false (0).",
" True values are 'y', 'yes', 't', 'true', 'on', and '1'; false values\n are 'n', 'no', 'f', 'false', 'off', '0' and ''. Raises ValueError if\n 'val' is anything else.\n<END>",
"<BEGIN>\n## `_str_to_lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protocol API.
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 protocol API.
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... | Get the protocol from the docker link alias or return the default.
Args:
alias_name: The docker link alias
default: The default value if the link isn't available
allow_none: If the return value can be `None` (i.e. optional)
Examples:
Assuming a Docker link was created with ``do... | "Get the protocol from the docker link alias or return the default.\n\n Args:\n alias_name: The docker link alias\n default: The default value if the link isn't available\n allow_none: If the return value can be `None` (i.e. optional)\n\n Examples:\n Assuming a Docker link was created ... | 58 | false | MarcMeszaros/envitro | protocol | 23,611 | |
LDU_FT/jborean93/ntlm-auth/_calc_resp | LDU_FT | [
"<BEGIN>\n## `_get_exchange_key_ntlm_v1`",
"[MS-NLMP] v28.0 2016-07-14",
" 3.4.5.1 KXKEY\n Calculates the Key Exchange Key for NTLMv1 authentication. Used for signing\n and sealing messages",
" :param negotiate_flags: The negotiated NTLM flags\n :param session_base_key: A session key calculated... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_resp API.
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 _calc_resp API.
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 the LM response given a 16-byte password hash and the
challenge from the CHALLENGE_MESSAGE
:param password_hash: A 16-byte password hash
:param server_challenge: A random 8-byte response generated by the
server in the CHALLENGE_MESSAGE
:return res: A 24-byte buffer ... | "Generate the LM response given a 16-byte password hash and the\n challenge from the CHALLENGE_MESSAGE\n\n :param password_hash: A 16-byte password hash\n :param server_challenge: A random 8-byte response generated by the\n server in the CHALLENGE_MESSAGE\n :return res: A 24-byte ... | 60 | false | jborean93/ntlm-auth | _calc_resp | 23,612 | |
LDU_FT/bslatkin/dpxdt/heartbeat | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a work item to a queue.",
" Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heartbeat API.
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 heartbeat API.
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... | Sets the heartbeat status of the task and extends its lease.
The task's lease is extended by the same amount as its last lease to
ensure that any operations following the heartbeat will still hold the
lock for the original lock period.
Args:
queue_name: Name of the queue the work item is on.
... | "Sets the heartbeat status of the task and extends its lease.\n\n The task's lease is extended by the same amount as its last lease to\n ensure that any operations following the heartbeat will still hold the\n lock for the original lock period.\n\n Args:\n queue_name: Name of the queue the work item ... | 180 | false | bslatkin/dpxdt | heartbeat | 23,613 | |
LDU_FT/dhermes/bezier/_edges_classify_intersection9 | LDU_FT | [
"<BEGIN>\n## `polynomial_sign`",
"r\"\"\"Determine the \"sign\" of a polynomial on the reference triangle.",
" .. note::",
" This is used **only** by :meth:`Surface._compute_valid` (which is\n in turn used to compute / cache the :attr:`Surface.is_valid`\n property).",
" Checks if a p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _edges_classify_intersection9 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 _edges_classify_intersection9 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | The edges for the curved polygon intersection used below.
Helper for :func:`classify_intersection9`. | "The edges for the curved polygon intersection used below.\n\n Helper for :func:`classify_intersection9`." | 1,903 | true | dhermes/bezier | _edges_classify_intersection9 | 23,614 | |
LDU_FT/SpotlightData/preprocessing/find_two_letter_edits | LDU_FT | [
"<BEGIN>\n## `correct_word`",
"Finds all valid one and two letter corrections for word_string, returning the word\n with the highest relative probability as type str.\n<END>",
"<BEGIN>\n## `find_candidates`",
"Finds all potential words word_string could have intended to mean. If a word is not incorrectly\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_two_letter_edits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_two_letter_edits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Finds all possible two letter edits of word_string:
- Splitting word_string into two words at all character locations
- Deleting one letter at all character locations
- Switching neighbouring characters
- Replacing a character with every alphabetical letter
- Inserting all possible alphabetical char... | "Finds all possible two letter edits of word_string:\n - Splitting word_string into two words at all character locations\n - Deleting one letter at all character locations\n - Switching neighbouring characters\n - Replacing a character with every alphabetical letter\n - Inserting all possible alphabetica... | 106 | false | SpotlightData/preprocessing | find_two_letter_edits | 23,615 | |
LDU_FT/klmitch/turnstile/connect | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>",
"<BEGIN>\n## `add_preprocessor`",
"Define a preprocessor to run after the arguments are parsed and... | 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... | Connect to the server. This method causes the SimpleRPC
object to switch to client mode. Note some methods, such as
the ping() method, implicitly call this method. | "Connect to the server. This method causes the SimpleRPC\n object to switch to client mode. Note some methods, such as\n the ping() method, implicitly call this method." | 208 | false | klmitch/turnstile | connect | 23,616 | |
LDU_FT/ismms-himc/clustergrammer2/filter_threshold | LDU_FT | [
"<BEGIN>\n## `run_norm`",
"A dataframe (more accurately a dictionary of dataframes, e.g. mat,\n mat_up...) can be passed to run_norm and a normalization will be run (\n e.g. zscore) on either the rows or columns\n<END>",
"<BEGIN>\n## `qn_df`",
"do quantile normalization of a dataframe dictionary, does not w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_threshold API.
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 filter_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Filter the matrix rows or columns based on num_occur values being above a
threshold (in absolute value). | "Filter the matrix rows or columns based on num_occur values being above a\n threshold (in absolute value)." | 90 | false | ismms-himc/clustergrammer2 | filter_threshold | 23,617 | |
LDU_FT/ohenrik/tabs/post_process | LDU_FT | [
"<BEGIN>\n## `post_process`",
"Applies the list of post processing methods if any\n<END>",
"<BEGIN>\n## `describe`",
"Prints a description of the table based on the provided\n documentation and post processors\n<END>",
"<BEGIN>\n## `describe_processors`",
"List all postprocessors and their description\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API.
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 post_process API.
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... | Applies the list of post processing methods if any | "Applies the list of post processing methods if any" | 30 | false | ohenrik/tabs | post_process | 23,618 | |
LDU_FT/cobrateam/splinter/mouse_out | LDU_FT | [
"<BEGIN>\n## `Browser`",
"Returns a driver instance for the given name.",
" When working with ``firefox``, it's possible to provide a profile name\n and a list of extensions.",
" If you don't provide any driver_name, then ``firefox`` will be used.",
" If there is no driver registered with the pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mouse_out API.
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 mouse_out API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Performs a mouse out the element.
Currently works only on Chrome driver. | "Performs a mouse out the element.\n\n Currently works only on Chrome driver." | 22 | false | cobrateam/splinter | mouse_out | 23,619 | |
LDU_FT/reiinakano/xcessiv/verify_estimator_class | LDU_FT | [
"<BEGIN>\n## `return_func_to_optimize`",
"Creates the function to be optimized by Bayes Optimization.",
" The function automatically handles the case of already existing base learners, and if\n no base learner for the hyperparameters exists yet, creates one and updates it in the\n usual way.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_estimator_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.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_estimator_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.... | Verify if estimator object is valid for use i.e. scikit-learn format
Verifies if an estimator is fit for use by testing for existence of methods
such as `get_params` and `set_params`. Must also be able to properly fit on
and predict a sample iris dataset.
Args:
est: Estimator object with `fit`... | "Verify if estimator object is valid for use i.e. scikit-learn format\n\n Verifies if an estimator is fit for use by testing for existence of methods\n such as `get_params` and `set_params`. Must also be able to properly fit on\n and predict a sample iris dataset.\n\n Args:\n est: Estimator object wi... | 150 | false | reiinakano/xcessiv | verify_estimator_class | 23,620 | |
LDU_FT/Cadair/jupyter_environment_kernels/get_kernel_spec | LDU_FT | [
"<BEGIN>\n## `convert_to_env_data`",
"Converts a list of paths to environments to env_data.",
" env_data is a structure {name -> (ressourcedir, kernel spec)}\n<END>",
"<BEGIN>\n## `validate_IPykernel`",
"Validates that this env contains an IPython kernel and returns info to start it",
" Returns: tup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kernel_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_kernel_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns a :class:`KernelSpec` instance for the given kernel_name.
Raises :exc:`NoSuchKernel` if the given kernel name is not found. | "Returns a :class:`KernelSpec` instance for the given kernel_name.\n\n Raises :exc:`NoSuchKernel` if the given kernel name is not found." | 69 | false | Cadair/jupyter_environment_kernels | get_kernel_spec | 23,621 | |
LDU_FT/adafruit/Adafruit_Python_PlatformDetect/_linux_id | LDU_FT | [
"<BEGIN>\n## `id`",
"Return a unique id for the detected chip, if any.\n<END>",
"<BEGIN>\n## `_linux_id`",
"Attempt to detect the CPU on a computer running the Linux kernel.\n<END>",
"<BEGIN>\n## `id`",
"Return a unique id for the detected board, if any.\n<END>",
"<BEGIN>\n## `_pi_rev_code`",
"Attempt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _linux_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _linux_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 extract... | Attempt to detect the CPU on a computer running the Linux kernel. | "Attempt to detect the CPU on a computer running the Linux kernel." | 14 | false | adafruit/Adafruit_Python_PlatformDetect | _linux_id | 23,622 | |
LDU_FT/zetaops/pyoko/get_from_cache | LDU_FT | [
"<BEGIN>\n## `find_models_and_delete_search_index`",
"Finds models to execute and these models' exist search indexes are deleted.\n For other operations, necessary models are gathered to list(exec_models)",
" Args:\n model: model to execute\n force(bool): True or False if Tru... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_from_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_from_cache API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Args:
key (str):
Return:
(dict): from json string | "Args:\n key (str):\n Return:\n (dict): from json string" | 278 | false | zetaops/pyoko | get_from_cache | 23,623 | |
LDU_FT/riga/scinum/combine_uncertainties | LDU_FT | [
"<BEGIN>\n## `log`",
"log(x, base=e)\n Logarithmic function.\n<END>",
"<BEGIN>\n## `asin`",
"asin(x)\n Trigonometric arc sin function.\n<END>",
"<BEGIN>\n## `acos`",
"acos(x)\n Trigonometric arc cos function.\n<END>",
"<BEGIN>\n## `atan`",
"tan(x)\n Trigonometric arc tan function.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_uncertainties 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 combine_uncertainties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Combines two uncertainties *unc1* and *unc2* according to an operator *op* which must be either
``"+"``, ``"-"``, ``"*"``, ``"/"``, or ``"**"``. The three latter operators require that you
also pass the nominal values *nom1* and *nom2*, respectively. The correlation can be configured
via *rho*. | "Combines two uncertainties *unc1* and *unc2* according to an operator *op* which must be either\n ``\"+\"``, ``\"-\"``, ``\"*\"``, ``\"/\"``, or ``\"**\"``. The three latter operators require that you\n also pass the nominal values *nom1* and *nom2*, respectively. The correlation can be configured\n via *rho*... | 90 | false | riga/scinum | combine_uncertainties | 23,624 | |
LDU_FT/glue-viz/glue-vispy-viewers/check_enum | LDU_FT | [
"<BEGIN>\n## `iso_mesh_line`",
"Generate an isocurve from vertex data in a surface mesh.",
" Parameters\n ----------\n vertices : ndarray, shape (Nv, 3)\n Vertex coordinates.\n tris : ndarray, shape (Nf, 3)\n Indices of triangular element into the vertices array.\n vertex_data : nda... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_enum API.
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 check_enum API.
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 lowercase string representation of enum. | "Get lowercase string representation of enum." | 1,752 | true | glue-viz/glue-vispy-viewers | check_enum | 23,625 | |
LDU_FT/DLR-RM/RAFCON/get_notebook_tab_title | LDU_FT | [
"<BEGIN>\n## `modify_origin`",
"Set both from_state and from_key at the same time to modify data flow origin",
" :param str from_state: State id of the origin state\n :param int from_key: Data port id of the origin port\n :raises exceptions.ValueError: If parameters have wrong types or the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_notebook_tab_title 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_notebook_tab_title API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Helper function that gets a notebook's tab title given its page number
:param notebook: The GTK notebook
:param page_num: The page number of the tab, for which the title is required
:return: The title of the tab | "Helper function that gets a notebook's tab title given its page number\n\n :param notebook: The GTK notebook\n :param page_num: The page number of the tab, for which the title is required\n :return: The title of the tab" | 2,325 | true | DLR-RM/RAFCON | get_notebook_tab_title | 23,626 | |
LDU_FT/andrewramsay/sk8-drivers/enable_imu_streaming | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the device name and/or RSSI.",
" During an ongoing scan, multiple records from the same device can be \n received during the scan. Each time that happens this method is \n called to update the :attr:`name` and/or :attr:`rssi` attributes.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_imu_streaming 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 enable_imu_streaming API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Configures and enables IMU sensor data streaming.
NOTE: only one streaming mode can be active at any time, so e.g. if you
want to stream IMU data, you must disable SK8-ExtAna streaming first.
Args:
enabled_imus (list): a list of distinct ints in the range `0`-`4`
i... | "Configures and enables IMU sensor data streaming.\n\n NOTE: only one streaming mode can be active at any time, so e.g. if you \n want to stream IMU data, you must disable SK8-ExtAna streaming first.\n\n Args:\n enabled_imus (list): a list of distinct ints in the range `0`-`4`\n ... | 193 | false | andrewramsay/sk8-drivers | enable_imu_streaming | 23,627 | |
LDU_FT/santoshphilip/eppy/add2node | LDU_FT | [
"<BEGIN>\n## `fan_bhp`",
"return the fan power in bhp given fan efficiency, Pressure rise (Pa) and flow (m3/s)\n<END>",
"<BEGIN>\n## `fan_watts`",
"return the fan power in watts given fan efficiency, Pressure rise (Pa) and flow (m3/s)\n<END>",
"<BEGIN>\n## `watts2pascal`",
"convert and return inputs for E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add2node API.
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 add2node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | add the node here with the node from othereplus
this will potentially have duplicates | "add the node here with the node from othereplus\n this will potentially have duplicates" | 332 | false | santoshphilip/eppy | add2node | 23,628 | |
LDU_FT/treycucco/bidon/get_xml_text | LDU_FT | [
"<BEGIN>\n## `_normalize_name`",
"Returns a normalized element tag or attribute name. A tag name or attribute name can be given\n either as a string, or as a 2-tuple. If a 2-tuple, it is interpreted as (namespace, name) and is\n returned joined by a colon \":\"",
" :name: a string or a 2-tuple of strings\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xml_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xml_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get the text of the XML node. If path is not None, it will get the text of the descendant of
source indicated by path. | "Get the text of the XML node. If path is not None, it will get the text of the descendant of\n source indicated by path." | 436 | false | treycucco/bidon | get_xml_text | 23,629 | |
LDU_FT/bdcht/grandalf/setrank | LDU_FT | [
"<BEGIN>\n## `_meanvalueattr`",
"find new position of vertex v according to adjacency in prevlayer.\n position is given by the mean value of adjacent positions.\n experiments show that meanvalue heuristic performs better than median.\n<END>",
"<BEGIN>\n## `_medianindex`",
"find new position of v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setrank API.
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 setrank API.
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... | set rank value for vertex v and add it to the corresponding layer.
The Layer is created if it is the first vertex with this rank. | "set rank value for vertex v and add it to the corresponding layer.\n The Layer is created if it is the first vertex with this rank." | 41 | false | bdcht/grandalf | setrank | 23,630 | |
LDU_FT/talentpair/featurevectormatrix/transpose | LDU_FT | [
"<BEGIN>\n## `default_to_hashed_rows`",
"Gets the current setting with no parameters, sets it if a boolean is passed in",
" :param default: the value to set\n :return: the current value, or new value if default is set to True or False\n<END>",
"<BEGIN>\n## `_update_internal_column_state`",
"Up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API.
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 transpose API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create a matrix, transpose it, and then create a new FVM
:raise NotImplementedError: if all existing rows aren't keyed
:return: a new FVM rotated from self | "Create a matrix, transpose it, and then create a new FVM\n\n :raise NotImplementedError: if all existing rows aren't keyed\n :return: a new FVM rotated from self" | 38 | false | talentpair/featurevectormatrix | transpose | 23,631 | |
LDU_FT/litl/rauth/sign | LDU_FT | [
"<BEGIN>\n## `request`",
"A loose wrapper around Requests' :class:`~requests.sessions.Session`\n which injects OAuth 1.0/a parameters.",
" :param method: A string representation of the HTTP method to be used.\n :type method: str\n :param url: The resource to be requested.\n :t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API.
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 sign API.
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... | Sign request using PLAINTEXT method.
:param consumer_secret: Consumer secret.
:type consumer_secret: str
:param access_token_secret: Access token secret (optional).
:type access_token_secret: str
:param method: Unused
:type method: str
:param url: Unused
... | "Sign request using PLAINTEXT method.\n\n :param consumer_secret: Consumer secret.\n :type consumer_secret: str\n :param access_token_secret: Access token secret (optional).\n :type access_token_secret: str\n :param method: Unused\n :type method: str\n :param url: Unused... | 79 | false | litl/rauth | sign | 23,632 | |
LDU_FT/hydroshare/hs_restclient/deleteResource | LDU_FT | [
"<BEGIN>\n## `custom`",
":param payload:\r\n a key/value object containing the scimeta you want to store\r\n e.g. {\"weather\": \"sunny\", \"temperature\": \"80C\" }\r\n :return:\r\n empty (200 status code)\n<END>",
"<BEGIN>\n## `get`",
":param payload:\r\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deleteResource API.
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 deleteResource API.
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... | Delete a resource.
:param pid: The HydroShare ID of the resource | "Delete a resource.\n\n :param pid: The HydroShare ID of the resource" | 95 | false | hydroshare/hs_restclient | deleteResource | 23,633 | |
LDU_FT/petrjasek/eve-elastic/elastic | LDU_FT | [
"<BEGIN>\n## `get_dates`",
"Return list of datetime fields for given schema.\n<END>",
"<BEGIN>\n## `set_filters`",
"Put together all filters we have and set them as 'and' filter\n within filtered query.",
" :param query: elastic query being constructed\n :param base_filters: all filters set outside... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elastic API.
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 elastic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Get ElasticSearch instance for given resource. | "Get ElasticSearch instance for given resource." | 106 | false | petrjasek/eve-elastic | elastic | 23,634 | |
LDU_FT/Yelp/venv-update/cache_installed_wheels | LDU_FT | [
"<BEGIN>\n## `parseargs`",
"handle --help, --version and our double-equal ==options\n<END>",
"<BEGIN>\n## `timid_relpath`",
"convert an argument to a relative path, carefully\n<END>",
"<BEGIN>\n## `exec_`",
"Wrapper to os.execv which shows the command and runs any atexit handlers (for coverage's sake).\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cache_installed_wheels 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 cache_installed_wheels API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | After installation, pip tells us what it installed and from where.
We build a structure that looks like
.cache/pip-faster/wheelhouse/$index_url/$wheel | "After installation, pip tells us what it installed and from where.\n\n We build a structure that looks like\n\n .cache/pip-faster/wheelhouse/$index_url/$wheel" | 36 | false | Yelp/venv-update | cache_installed_wheels | 23,635 | |
LDU_FT/HDI-Project/MLBlocks/get_primitives_paths | 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 get_primitives_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_primitives_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get the list of folders where the primitives will be looked for.
This list will include the value of any `entry_point` named `jsons_path` published under
the name `mlprimitives`.
An example of such an entry point would be::
entry_points = {
'mlprimitives': [
'jsons_pat... | "Get the list of folders where the primitives will be looked for.\n\n This list will include the value of any `entry_point` named `jsons_path` published under\n the name `mlprimitives`.\n\n An example of such an entry point would be::\n\n entry_points = {\n 'mlprimitives': [\n ... | 111 | false | HDI-Project/MLBlocks | get_primitives_paths | 23,636 | |
LDU_FT/scikit-learn-contrib/hdbscan/all_points_mutual_reachability | LDU_FT | [
"<BEGIN>\n## `_tree_to_labels`",
"Converts a pretrained tree and cluster size into a\n set of labels and probabilities.\n<END>",
"<BEGIN>\n## `check_precomputed_distance_matrix`",
"Perform check_array(X) after removing infinite values (numpy.inf) from the given distance matrix.\n<END>",
"<BEGIN>\n## `hdb... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_points_mutual_reachability API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_points_mutual_reachability API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Compute the all-points-mutual-reachability distances for all the points of
a cluster.
If metric is 'precomputed' then assume X is a distance matrix for the full
dataset. Note that in this case you must pass in 'd' the dimension of the
dataset.
Parameters
----------
X : array (n_samples, n_... | "Compute the all-points-mutual-reachability distances for all the points of\n a cluster.\n\n If metric is 'precomputed' then assume X is a distance matrix for the full\n dataset. Note that in this case you must pass in 'd' the dimension of the\n dataset.\n\n Parameters\n ----------\n X : array (n_s... | 224 | false | scikit-learn-contrib/hdbscan | all_points_mutual_reachability | 23,637 | |
LDU_FT/BerkeleyAutomation/autolab_core/norm | LDU_FT | [
"<BEGIN>\n## `copy`",
"Returns a copy of the RigidTransform.",
" Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>",
"<BEGIN>\n## `_check_valid_rotation`",
"Checks that the given rotation matrix is valid.\n<END>",
"<BEGIN>\n## `_check_val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the norm API.
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 norm API.
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... | :obj:`tuple` of :obj:`numpy.ndarray`: The normalized vectors for qr and qd, respectively. | ":obj:`tuple` of :obj:`numpy.ndarray`: The normalized vectors for qr and qd, respectively." | 518 | false | BerkeleyAutomation/autolab_core | norm | 23,638 | |
LDU_FT/jgrassler/mkdocs-pandoc/run | LDU_FT | [
"<BEGIN>\n## `flatten_pages`",
"Recursively flattens pages data structure into a one-dimensional data structure\n<END>",
"<BEGIN>\n## `convert`",
"User-facing conversion method. Returns pandoc document as a list of\n lines.\n<END>",
"<BEGIN>\n## `run`",
"Filter method: Passes all blocks through con... | 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... | Filter method: Passes all blocks through convert_table() and returns a list of lines. | "Filter method: Passes all blocks through convert_table() and returns a list of lines." | 10 | false | jgrassler/mkdocs-pandoc | run | 23,639 | |
LDU_FT/fabiobatalha/crossrefapi/url | LDU_FT | [
"<BEGIN>\n## `version`",
"This attribute retrieve the API version.",
" >>> Works().version\n '1.0.0'\n<END>",
"<BEGIN>\n## `count`",
"This method retrieve the total of records resulting from a given query.",
" This attribute can be used compounded with query, filter,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | This attribute retrieve the url that will be used as a HTTP request to
the Crossref API.
This attribute can be used compounded with query, filter,
sort, order and facet methods.
Examples:
>>> from crossref.restful import Works
>>> Works().query('zika').url
... | "This attribute retrieve the url that will be used as a HTTP request to\n the Crossref API.\n\n This attribute can be used compounded with query, filter,\n sort, order and facet methods.\n\n Examples:\n >>> from crossref.restful import Works\n >>> Works().query('zika').... | 108 | false | fabiobatalha/crossrefapi | url | 23,640 | |
LDU_FT/rbarrois/throttle/throttle | LDU_FT | [
"<BEGIN>\n## `get_bucket`",
"Fetch a Bucket for the given key.",
" rate and capacity might be overridden from the Throttler defaults.",
" Args:\n rate (float): Units regenerated by second, or None to keep\n Throttler defaults\n capacity (int): Maximum units a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the throttle API.
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 throttle API.
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... | Consume an amount for a given key, or raise a Throttled exception. | "Consume an amount for a given key, or raise a Throttled exception." | 24 | false | rbarrois/throttle | throttle | 23,641 | |
LDU_FT/mjirik/io3d/_get_face2 | LDU_FT | [
"<BEGIN>\n## `get_or_save_default`",
"Get value stored in cache file or store there default value.\n :param key:\n :param default_value:\n :return:\n<END>",
"<BEGIN>\n## `__get_segmentation_path`",
"Create path with \"_segmentation\" suffix and keep extension.",
" :param path:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_face2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_face2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Create 2D binar face
:param shape:
:param face_r:
:param smile_r1:
:param smile_r2:
:param eye_r:
:return: | "Create 2D binar face\n :param shape:\n :param face_r:\n :param smile_r1:\n :param smile_r2:\n :param eye_r:\n :return:" | 182 | false | mjirik/io3d | _get_face2 | 23,642 | |
LDU_FT/harvard-nrg/yaxil/cast | LDU_FT | [
"<BEGIN>\n## `splitarg`",
"This function will split arguments separated by spaces or commas \n to be backwards compatible with the original ArcGet command line tool\n<END>",
"<BEGIN>\n## `search`",
"Search for DICOM files within a given directory and receive back a \n dictionary of {StudyInstanceUID: {S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cast API.
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 cast API.
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... | Cast a basestring to a more appropriate type.
Example::
>>> from yaxil import cast
>>> type(cast("999"))
<type 'int'>
:param s: String
:type s: basestring
:returns: Casted string
:rtype: int|float|str | "Cast a basestring to a more appropriate type.\n Example::\n >>> from yaxil import cast\n >>> type(cast(\"999\"))\n <type 'int'>\n \n :param s: String\n :type s: basestring\n :returns: Casted string\n :rtype: int|float|str" | 71 | false | harvard-nrg/yaxil | cast | 23,643 | |
LDU_FT/PySimpleGUI/PySimpleGUI/PopupGetFile | LDU_FT | [
"<BEGIN>\n## `read_mail`",
"Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>",
"<BEGIN>\n## `runCommand`",
"run shell command",
"\t@param cmd: command to execute\n\t@param timeout: timeout for command execution",
"\t@re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the PopupGetFile API.
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 PopupGetFile API.
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... | Display popup with text entry field and browse button. Browse for file
:param message:
:param default_path:
:param default_extension:
:param save_as:
:param file_types:
:param no_window:
:param size:
:param button_color:
:param background_color:
:param text_color:
:param icon... | "Display popup with text entry field and browse button. Browse for file\n :param message:\n :param default_path:\n :param default_extension:\n :param save_as:\n :param file_types:\n :param no_window:\n :param size:\n :param button_color:\n :param background_color:\n :param text_color:\n ... | 110 | false | PySimpleGUI/PySimpleGUI | PopupGetFile | 23,644 | |
LDU_FT/iLampard/x-utils/merge_configs | LDU_FT | [
"<BEGIN>\n## `load_data`",
"Overwrite this for new source data structures\n<END>",
"<BEGIN>\n## `handle_exception`",
":param logger: logging, a logging object\n :return: decorator, wraps exception loggers\n<END>",
"<BEGIN>\n## `clock`",
":param logger: logging, a logging object\n :return: decorator,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_configs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_configs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Merges two configuration dictionaries by overwriting values with
same keys, with the priority on values given on the 'left' side, so
the to_be_merged dict.
Notice that with lists in the configuration, it skips from the default
(right side) the tuples in that which already exist in the left side
to_b... | "Merges two configuration dictionaries by overwriting values with\n same keys, with the priority on values given on the 'left' side, so\n the to_be_merged dict.\n Notice that with lists in the configuration, it skips from the default\n (right side) the tuples in that which already exist in the left side\n ... | 18 | false | iLampard/x-utils | merge_configs | 23,645 | |
LDU_FT/ahmontero/dop/resize_droplet | LDU_FT | [
"<BEGIN>\n## `droplets`",
"This method returns the list of droplets\n<END>",
"<BEGIN>\n## `reboot_droplet`",
"This method allows you to reboot a droplet. This is the preferred method\n to use if a server is not responding.\n<END>",
"<BEGIN>\n## `power_cycle_droplet`",
"This method allows you to pow... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resize_droplet API.
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 resize_droplet API.
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... | This method allows you to resize a specific droplet to a different size.
This will affect the number of processors and memory allocated to the droplet.
Required parameters:
droplet_id:
Integer, this is the id of your droplet that you want to resize
size, one of... | "This method allows you to resize a specific droplet to a different size.\n This will affect the number of processors and memory allocated to the droplet.\n\n Required parameters:\n\n droplet_id:\n Integer, this is the id of your droplet that you want to resize\n\n siz... | 102 | false | ahmontero/dop | resize_droplet | 23,646 | |
LDU_FT/astroswego/plotypus/verbose_print | LDU_FT | [
"<BEGIN>\n## `Lomb_Scargle`",
"Returns the period of *data* according to the\n `Lomb-Scargle periodogram <https://en.wikipedia.org/wiki/Least-squares_spectral_analysis#The_Lomb.E2.80.93Scargle_periodogram>`_.",
" **Parameters**",
" data : array-like, shape = [n_samples, 2] or [n_samples, 3]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verbose_print API.
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 verbose_print API.
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... | Prints *message* to stderr only if the given *operation* is in the list
*verbosity*. If "all" is in *verbosity*, all operations are printed.
**Parameters**
message : str
The message to print.
operation : str
The type of operation being performed.
verbosity : [str] or None
T... | "Prints *message* to stderr only if the given *operation* is in the list\n *verbosity*. If \"all\" is in *verbosity*, all operations are printed.\n\n **Parameters**\n\n message : str\n The message to print.\n operation : str\n The type of operation being performed.\n verbosity : [str] or No... | 152 | false | astroswego/plotypus | verbose_print | 23,647 | |
LDU_FT/Bystroushaak/BalancedDiscStorage/_unpack_zip | LDU_FT | [
"<BEGIN>\n## `_unpack_zip`",
"Unpack .zip archive in `file_obj` to given `path`. Make sure, that it\n fits into limits (see :attr:`._max_zipfiles` for details).",
" Args:\n file_obj (file): Opened file-like object.\n path (str): Path into which the .zip will be unpacked.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack_zip API.
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 _unpack_zip API.
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... | Unpack .zip archive in `file_obj` to given `path`. Make sure, that it
fits into limits (see :attr:`._max_zipfiles` for details).
Args:
file_obj (file): Opened file-like object.
path (str): Path into which the .zip will be unpacked.
Raises:
ValueError: If the... | "Unpack .zip archive in `file_obj` to given `path`. Make sure, that it\n fits into limits (see :attr:`._max_zipfiles` for details).\n\n Args:\n file_obj (file): Opened file-like object.\n path (str): Path into which the .zip will be unpacked.\n\n Raises:\n ValueErro... | 50 | false | Bystroushaak/BalancedDiscStorage | _unpack_zip | 23,648 | |
LDU_FT/dropbox/stone/generate_validator_constructor | LDU_FT | [
"<BEGIN>\n## `generic_type_name`",
"Return a descriptive type name that isn't Python specific. For example, an\n int type will return 'integer' rather than 'int'.\n<END>",
"<BEGIN>\n## `doc_unwrap`",
"Applies two transformations to raw_doc:\n 1. N consecutive newlines are converted into N-1 newlines.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_validator_constructor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_validator_constructor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Given a Stone data type, returns a string that can be used to construct
the appropriate validation object in Python. | "Given a Stone data type, returns a string that can be used to construct\n the appropriate validation object in Python." | 613 | false | dropbox/stone | generate_validator_constructor | 23,649 | |
LDU_FT/ktdreyer/txproductpages/schedule_url | LDU_FT | [
"<BEGIN>\n## `schedule_tasks`",
"Get all the tasks for a release.",
" :param release_id: int, release id number.\n :returns: deferred that when fired returns a list of Munch (dict-like)\n objects representing all tasks.\n<END>",
"<BEGIN>\n## `task_date`",
"Get a datetime.date ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule_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 extr... | Return a human-friendly URL for this release.
:param release: str, release shortname eg. "ceph-3-0"
:returns: str, URL | "Return a human-friendly URL for this release.\n\n :param release: str, release shortname eg. \"ceph-3-0\"\n :returns: str, URL" | 25 | false | ktdreyer/txproductpages | schedule_url | 23,650 | |
LDU_FT/pycontribs/pyrax/delete_all_objects | LDU_FT | [
"<BEGIN>\n## `resize`",
"Resize the volume to the specified size (in GB).\n<END>",
"<BEGIN>\n## `get`",
"This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>",
"<BEGIN>\n## `_create_body`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_all_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_all_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Deletes all objects from this container.
By default the call will block until all objects have been deleted. By
passing True for the 'async_' parameter, this method will not block, and
instead return an object that can be used to follow the progress of the
deletion. When deletion is com... | "Deletes all objects from this container.\n\n By default the call will block until all objects have been deleted. By\n passing True for the 'async_' parameter, this method will not block, and\n instead return an object that can be used to follow the progress of the\n deletion. When deletion ... | 1,326 | true | pycontribs/pyrax | delete_all_objects | 23,651 | |
LDU_FT/buckmaxwell/neoapi/resource_collection_response | LDU_FT | [
"<BEGIN>\n## `resource_collection_response`",
"This method is deprecated for version 1.1.0. Please use get_collection\n<END>",
"<BEGIN>\n## `get_collection`",
"r\"\"\"\n Used to fetch a collection of resource object of type 'cls' in response to a GET request\\\n . get_resource_or_collection sho... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_collection_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_collection_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | This method is deprecated for version 1.1.0. Please use get_collection | "This method is deprecated for version 1.1.0. Please use get_collection" | 33 | false | buckmaxwell/neoapi | resource_collection_response | 23,652 | |
LDU_FT/pyblish/pyblish-lite/paint | LDU_FT | [
"<BEGIN>\n## `paint`",
"Paint checkbox and text\n _\n |_| My label\n<END>",
"<BEGIN>\n## `paint`",
"Paint checkbox and text",
" _________________________________________\n | | label | duration |\n |toggle |_____________________| |\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the paint API.
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 paint API.
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... | Paint checkbox and text
_________________________________________
| | label | duration |
|toggle |_____________________| |
| | families | |
|_______|_____________________|___________| | "Paint checkbox and text\n\n _________________________________________\n | | label | duration |\n |toggle |_____________________| |\n | | families | |\n |_______|_____________________|___________|" | 33 | false | pyblish/pyblish-lite | paint | 23,653 | |
LDU_FT/vlukes/dicom2fem/update | LDU_FT | [
"<BEGIN>\n## `find_map`",
"Find a mapping between common coordinates in x1 and x2, such that\n x1[cmap[:,0]] == x2[cmap[:,1]]\n<END>",
"<BEGIN>\n## `merge_mesh`",
"Merge two meshes in common coordinates found in x1, x2.\n<END>",
"<BEGIN>\n## `fix_double_nodes`",
"Detect and attempt fixing double nodes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | A dict-like update for Struct attributes. | "A dict-like update for Struct attributes." | 142 | false | vlukes/dicom2fem | update | 23,654 | |
LDU_FT/saltzm/yadi/get_implicit_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_implicit_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_implicit_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... | An implicit constraint is one in which you are unifying a constant to a position of the relation
E.G. R(X,2) specifies that R.2 == 2 | "An implicit constraint is one in which you are unifying a constant to a position of the relation\n E.G. R(X,2) specifies that R.2 == 2" | 12 | false | saltzm/yadi | get_implicit_constraints | 23,655 | |
LDU_FT/dwwkelly/note/getItemType | LDU_FT | [
"<BEGIN>\n## `check_auth`",
"This function is called to check if a username /\n password combination is valid.\n<END>",
"<BEGIN>\n## `scrubID`",
":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>",
"<BEGIN>\n## `which`",
":param bin_name: the nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getItemType API.
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 getItemType API.
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... | :desc: Given an itemID, return the "type" i.e. the collection
it belongs to.
:param int itemID: The item ID, an integer
:returns: The note type
:rval: str | ":desc: Given an itemID, return the \"type\" i.e. the collection\n it belongs to.\n :param int itemID: The item ID, an integer\n :returns: The note type\n :rval: str" | 46 | false | dwwkelly/note | getItemType | 23,656 | |
LDU_FT/Bystroushaak/pyDHTMLParser/find | LDU_FT | [
"<BEGIN>\n## `_raw_split`",
"Parse HTML from text into array filled with tags end text.",
" Source code is little bit unintutive, because it is state machine parser.",
" For better understanding, look at http://bit.ly/1rXRcJj",
" Example::",
" >>> dhtmlparser._raw_split('<html><tag params=... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Same as :meth:`findAll`, but without `endtags`.
You can always get them from :attr:`endtag` property. | "Same as :meth:`findAll`, but without `endtags`.\n\n You can always get them from :attr:`endtag` property." | 147 | false | Bystroushaak/pyDHTMLParser | find | 23,657 | |
LDU_FT/erdewit/ib_insync/bracketOrder | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to a running TWS or IB gateway application.\n After the connection is made the client is fully synchronized\n and ready to serve requests.",
" This method is blocking.",
" Args:\n host: Host name or IP address.\n port: Port nu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bracketOrder API.
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 bracketOrder API.
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... | Create a limit order that is bracketed by a take-profit order and
a stop-loss order. Submit the bracket like:
.. code-block:: python
for o in bracket:
ib.placeOrder(contract, o)
https://interactivebrokers.github.io/tws-api/bracket_order.html
Args:
... | "Create a limit order that is bracketed by a take-profit order and\n a stop-loss order. Submit the bracket like:\n\n .. code-block:: python\n\n for o in bracket:\n ib.placeOrder(contract, o)\n\n https://interactivebrokers.github.io/tws-api/bracket_order.html\n\n Arg... | 287 | false | erdewit/ib_insync | bracketOrder | 23,658 | |
LDU_FT/ajdavis/mongo-mockup-db/reply_bytes | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch an operation on a thread and get a handle to its future result.",
" >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Take a `Request` and return an OP_MSG message as bytes. | "Take a `Request` and return an OP_MSG message as bytes." | 129 | false | ajdavis/mongo-mockup-db | reply_bytes | 23,659 | |
LDU_FT/tmux-python/libtmux/switch_client | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Return tmux version.",
" If tmux is built from git master, the version returned will be the latest\n version appended with -master, e.g. ``2.4-master``.",
" If using OpenBSD's base system tmux, the version will have ``-openbsd``\n appended to the latest version, e.g. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch_client API.
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 switch_client API.
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... | Switch client to this session.
Raises
------
:exc:`exc.LibTmuxException` | "Switch client to this session.\n\n Raises\n ------\n\n :exc:`exc.LibTmuxException`" | 224 | false | tmux-python/libtmux | switch_client | 23,660 | |
LDU_FT/codelv/enaml-native/refresh_items | LDU_FT | [
"<BEGIN>\n## `init_layout`",
"Initialize the layout of the toolkit widget.",
" This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_items API.
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 refresh_items API.
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... | Refresh the items of the pattern.
This method destroys the old items and creates and initializes
the new items.
It is overridden to NOT insert the children to the parent. The Fragment
adapter handles this. | "Refresh the items of the pattern.\n This method destroys the old items and creates and initializes\n the new items.\n\n It is overridden to NOT insert the children to the parent. The Fragment\n adapter handles this." | 573 | false | codelv/enaml-native | refresh_items | 23,661 | |
LDU_FT/zimeon/iiif/google_get_data | LDU_FT | [
"<BEGIN>\n## `do_first`",
"Load generator, set size.",
" We take the generator module name from self.srcfile so that\n this manipulator will work with different generators in a\n similar way to how the ordinary generators work with\n different images\n<END>",
"<BEGIN>\n## `main`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the google_get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the google_get_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Make request to Google API to get profile data for the user. | "Make request to Google API to get profile data for the user." | 333 | false | zimeon/iiif | google_get_data | 23,662 | |
LDU_FT/carpedm20/ndrive/doSearch | LDU_FT | [
"<BEGIN>\n## `login`",
"Log in Naver and get cookie",
" Agrs:\n user_id: Naver account's login id\n password: Naver account's login password",
" Returns:\n True: Login success\n False: Login failed",
" Remarks:\n self.cookie is a di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doSearch API.
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 doSearch API.
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... | Get music album list.
There are 4 kinds in ``type``:
- 1 : only directories with idxfolder property
- 2 : only files
- 3 : directories and files with thumbnail info (like viewHeight, viewWidth for Image file)
- 4 : only directories except idxfolder
- ... | "Get music album list.\n\n There are 4 kinds in ``type``:\n - 1 : only directories with idxfolder property\n - 2 : only files\n - 3 : directories and files with thumbnail info (like viewHeight, viewWidth for Image file)\n - 4 : only directories except idxfolder\n ... | 170 | false | carpedm20/ndrive | doSearch | 23,663 | |
LDU_FT/python-security/pyt/return_connection_handler | LDU_FT | [
"<BEGIN>\n## `_connect_control_flow_node`",
"Connect a ControlFlowNode properly to the next_node.\n<END>",
"<BEGIN>\n## `extract_left_hand_side`",
"Extract the left hand side variable from a target.",
" Removes list indexes, stars and other left hand side elements.\n<END>",
"<BEGIN>\n## `get_first_node... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_connection_handler 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 return_connection_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Connect all return statements to the Exit node. | "Connect all return statements to the Exit node." | 177 | false | python-security/pyt | return_connection_handler | 23,664 | |
LDU_FT/Duke-GCB/DukeDSClient/run | LDU_FT | [
"<BEGIN>\n## `_create_parser`",
"Create a parser hooking up the command methods below to be run when chosen.\n :return: CommandParser parser with commands attached.\n<END>",
"<BEGIN>\n## `_check_pypi_version`",
"When the version is out of date or we have trouble retrieving it print a error to stderr an... | 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... | Remove permissions from the user with user_full_name or email on the remote project with project_name.
:param args Namespace arguments parsed from the command line | "Remove permissions from the user with user_full_name or email on the remote project with project_name.\n :param args Namespace arguments parsed from the command line" | 440 | false | Duke-GCB/DukeDSClient | run | 23,665 | |
LDU_FT/Azure/azure-cosmos-table-python/_convert_entity_to_json | LDU_FT | [
"<BEGIN>\n## `generate_account_shared_access_signature`",
"Generates a shared access signature for the table service.\n Use the returned signature with the sas_token parameter of TableService.",
" :param ResourceTypes resource_types:\n Specifies the resource types that are accessible wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_entity_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_entity_to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Converts an entity object to json to send.
The entity format is:
{
"Address":"Mountain View",
"Age":23,
"AmountDue":200.23,
"CustomerCode@odata.type":"Edm.Guid",
"CustomerCode":"c9da6455-213d-42c9-9a79-3e9149a57833",
"CustomerSince@odata.type":"Edm.DateTime",
"Cu... | "Converts an entity object to json to send.\n The entity format is:\n {\n \"Address\":\"Mountain View\",\n \"Age\":23,\n \"AmountDue\":200.23,\n \"CustomerCode@odata.type\":\"Edm.Guid\",\n \"CustomerCode\":\"c9da6455-213d-42c9-9a79-3e9149a57833\",\n \"CustomerSince@odata.type\"... | 142 | false | Azure/azure-cosmos-table-python | _convert_entity_to_json | 23,666 | |
LDU_FT/prawn-cake/vk-requests/create_api | LDU_FT | [
"<BEGIN>\n## `consumer`",
"Consumer decorator",
" :param fn: coroutine consumer function",
" Example:",
" >>> api = StreamingAPI('my_service_key')\n >>> stream = api.get_stream()",
" >>> @stream.consumer\n >>> @asyncio.coroutine\n >>> def handle_event(paylo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_api API.
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 create_api API.
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... | Factory method to explicitly create API with app_id, login, password
and phone_number parameters.
If the app_id, login, password are not passed, then token-free session
will be created automatically
:param app_id: int: vk application id, more info: https://vk.com/dev/main
:param login: str: vk log... | "Factory method to explicitly create API with app_id, login, password\n and phone_number parameters.\n\n If the app_id, login, password are not passed, then token-free session\n will be created automatically\n\n :param app_id: int: vk application id, more info: https://vk.com/dev/main\n :param login: str... | 55 | false | prawn-cake/vk-requests | create_api | 23,667 | |
LDU_FT/kamikaze/webdav/valid | LDU_FT | [
"<BEGIN>\n## `listdir`",
"Returns list of nested files and directories for local directory by path",
" :param directory: absolute or relative path to local directory\n :return: list nested of file or directory names\n<END>",
"<BEGIN>\n## `get_options`",
"Extract options for specified option type from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the valid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Validates of WebDAV and proxy settings.
:return: True in case settings are valid and False otherwise. | "Validates of WebDAV and proxy settings.\n\n :return: True in case settings are valid and False otherwise." | 120 | false | kamikaze/webdav | valid | 23,668 | |
LDU_FT/HDI-Project/MLBlocks/to_dict | 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 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... | Return all the details of this MLPipeline in a dict.
The dict structure contains all the `__init__` arguments of the
MLPipeline, as well as the current hyperparameter values and the
specification of the tunable_hyperparameters::
{
"primitives": [
... | "Return all the details of this MLPipeline in a dict.\n\n The dict structure contains all the `__init__` arguments of the\n MLPipeline, as well as the current hyperparameter values and the\n specification of the tunable_hyperparameters::\n\n {\n \"primitives\": [\n ... | 111 | false | HDI-Project/MLBlocks | to_dict | 23,669 | |
LDU_FT/inveniosoftware-contrib/invenio-classifier/_get_cache_path | LDU_FT | [
"<BEGIN>\n## `get_acronyms`",
"Find acronyms and expansions from the fulltext.",
" If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>",
"<BEGIN>\n## `_add_expansion_to_acronym_dict`",
"Add an acronym to the dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cache_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the path where the cache should be written/located.
:param onto_name: name of the ontology or the full path
:return: string, abs path to the cache file | "Return the path where the cache should be written/located.\n\n :param onto_name: name of the ontology or the full path\n :return: string, abs path to the cache file" | 178 | false | inveniosoftware-contrib/invenio-classifier | _get_cache_path | 23,670 | |
LDU_FT/mdavidsaver/p4p/rpccall | LDU_FT | [
"<BEGIN>\n## `_sync`",
"I will wait until all pending handlers cothreads have completed\n<END>",
"<BEGIN>\n## `close`",
"Close PV, disconnecting any clients.",
" :param bool destroy: Indicate \"permanent\" closure. Current clients will not see subsequent open().\n :param bool sync: When block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rpccall API.
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 rpccall API.
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... | Decorator marks a client proxy method.
:param str pvname: The PV name, which will be formated using the 'format' argument of the proxy class constructor.
:param request: A pvRequest string or :py:class:`p4p.Value` passed to eg. :py:meth:`p4p.client.thread.Context.rpc`.
The method to be decorated must have... | "Decorator marks a client proxy method.\n\n :param str pvname: The PV name, which will be formated using the 'format' argument of the proxy class constructor.\n :param request: A pvRequest string or :py:class:`p4p.Value` passed to eg. :py:meth:`p4p.client.thread.Context.rpc`.\n\n The method to be decorated mus... | 201 | false | mdavidsaver/p4p | rpccall | 23,671 | |
LDU_FT/usc-isi-i2/dig-extractor/get_output_jsonpath_with_name | LDU_FT | [
"<BEGIN>\n## `set_output_fields`",
"Defines where to put the dictionary output of the extractor in the doc, but renames\n the fields of the extracted output for the document or just filters the keys\n<END>",
"<BEGIN>\n## `__get_jp`",
"Tries to get name from ExtractorProcessor to filter on first.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output_jsonpath_with_name 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 get_output_jsonpath_with_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | If ExtractorProcessor has a name defined, return
a JSONPath that has a filter on that name | "If ExtractorProcessor has a name defined, return\n a JSONPath that has a filter on that name" | 24 | false | usc-isi-i2/dig-extractor | get_output_jsonpath_with_name | 23,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.