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/ECESeniorDesign/lazy_record/joins
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the joins API. 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 joins API. 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...
Analog to "INNER JOIN" in SQL on the passed +table+. Use only once per query.
"Analog to \"INNER JOIN\" in SQL on the passed +table+. Use only once\n per query."
78
false
ECESeniorDesign/lazy_record
joins
11,173
LDU_FT/ozak/georasters/mcp
LDU_FT
[ "<BEGIN>\n## `map_pixel`", "Usage:\n map_pixel(xcoord, ycoord, x_cell_size, y_cell_size, xmin, ymax)", " where:\n xmin is leftmost X coordinate in system", " ymax is topmost Y coordinate in system", " Example:\n raster = HMISea.tif", " ndv, xsize, ysize, ge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mcp API. 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 mcp API. 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...
Setup MCP_Geometric object from skimage for optimal travel time computations
"Setup MCP_Geometric object from skimage for optimal travel time computations"
136
false
ozak/georasters
mcp
11,174
LDU_FT/jgorset/facepy/for_application
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse a signed request, returning a dictionary describing its payload.\n<END>", "<BEGIN>\n## `generate`", "Generate a signed request from this instance.\n<END>", "<BEGIN>\n## `for_application`", "Initialize GraphAPI with an OAuth access token for an application.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_application API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the for_application API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Initialize GraphAPI with an OAuth access token for an application. :param id: An integer describing a Facebook application. :param secret_key: A String describing the Facebook application's secret key.
"Initialize GraphAPI with an OAuth access token for an application.\n\n :param id: An integer describing a Facebook application.\n :param secret_key: A String describing the Facebook application's secret key."
40
false
jgorset/facepy
for_application
11,175
LDU_FT/assamite/creamas/add_connection
LDU_FT
[ "<BEGIN>\n## `configure_logger`", "Configure logging behvior for the simulations.\n<END>", "<BEGIN>\n## `fractal_dimension`", "Estimates the fractal dimension of an image with box counting.\n Counts pixels with value 0 as empty and everything else as non-empty.\n Input image has to be grayscale.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Add an agent with given address to current :attr:`connections` with given information. Does nothing if address is already in :attr:`connections`. Given ``**kwargs`` are stored as key-value pairs to ``connections[addr]`` dictionary. :param str addr: Address of the ag...
"Add an agent with given address to current :attr:`connections` with\n given information.\n\n Does nothing if address is already in :attr:`connections`. Given\n ``**kwargs`` are stored as key-value pairs to ``connections[addr]``\n dictionary.\n\n :param str addr:\n Address ...
529
false
assamite/creamas
add_connection
11,176
LDU_FT/twisted/txaws/parse
LDU_FT
[ "<BEGIN>\n## `get_ca_certs`", "Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.", " In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Split the given URL into the scheme, host, port, and path. @type url: C{str} @param url: An URL to parse. @type defaultPort: C{bool} @param defaultPort: Whether to return the default port associated with the scheme in the given url, when the url doesn't specify one. @return: A four-tuple ...
"Split the given URL into the scheme, host, port, and path.\n\n @type url: C{str}\n @param url: An URL to parse.\n\n @type defaultPort: C{bool}\n @param defaultPort: Whether to return the default port associated with the\n scheme in the given url, when the url doesn't specify one.\n\n @return: A f...
465
false
twisted/txaws
parse
11,177
LDU_FT/thanethomson/statik/render
LDU_FT
[ "<BEGIN>\n## `list_files`", "Lists all of the files in the given base directory, optionally only\n including whose extension(s) match the ext string/list of strings.\n This is non-recursive.", " Args:\n base_path: The directory in which to search.\n ext: The extension(s) to match in the g...
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 ...
Renders the error message, optionally using the given context (which, if specified, will override the internal context).
"Renders the error message, optionally using the given context (which, if specified,\n will override the internal context)."
117
false
thanethomson/statik
render
11,178
LDU_FT/HDI-Project/RDT/reverse_transform
LDU_FT
[ "<BEGIN>\n## `check_data_type`", "Check the type of the transformer and column match.", " Args:\n column_metadata(dict): Metadata of the column.", " Raises a ValueError if the types don't match\n<END>", "<BEGIN>\n## `fit`", "Prepare the transformer to convert data.", " Ar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_transform API. 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 reverse_transform API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Transform data back to its original format. Args: tables(dict): mapping of table names to `tuple` where each tuple is on the form (`pandas.DataFrame`, `dict`). The `DataFrame` contains the transformed data and the `dict` the corresponding me...
"Transform data back to its original format.\n\n Args:\n tables(dict): mapping of table names to `tuple` where each tuple is on the form\n (`pandas.DataFrame`, `dict`). The `DataFrame` contains the transformed\n data and the `dict` the correspond...
154
false
HDI-Project/RDT
reverse_transform
11,179
LDU_FT/JoseAntFer/pyny3d/add_places
LDU_FT
[ "<BEGIN>\n## `run`", "Run the shadowing computation with the values stored in \r\n ``self.arg_``. Precomputed information is stored in:\r", " * **.diff_t** (*ndarray*): ``np.diff(t)``\r\n * **.integral** (*ndarray*): Trapezoidal data integration \r\n over time.\r", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_places API. 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 add_places API. 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...
Add ``pyny.Places`` to the current space. :param places: Places to add. :type places: list of pyny.Place :param ret: If True, returns the whole updated Space. :type ret: bool :returns: None, ``pyny.Space`` .. warning:: This method acts inplace.
"Add ``pyny.Places`` to the current space.\r\n \r\n :param places: Places to add.\r\n :type places: list of pyny.Place\r\n :param ret: If True, returns the whole updated Space. \r\n :type ret: bool\r\n :returns: None, ``pyny.Space``\r\n \r\n .. warning:: This meth...
298
false
JoseAntFer/pyny3d
add_places
11,180
LDU_FT/inveniosoftware/invenio-pages/preload_pages
LDU_FT
[ "<BEGIN>\n## `validate_template_name`", "Validate template name.", " :param key: The template path.\n :param value: The template name.\n :raises ValueError: If template name is wrong.\n<END>", "<BEGIN>\n## `template_exists`", "Form validation: check that selected template exists.\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the preload_pages API. 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 preload_pages API. 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...
Register all pages before the first application request.
"Register all pages before the first application request."
23
false
inveniosoftware/invenio-pages
preload_pages
11,181
LDU_FT/AbletonAG/abl.vpath/get_connection
LDU_FT
[ "<BEGIN>\n## `content_item`", "if path1 is subpart of path2, get the next path item.\n example:\n path1 = '/foo'\n path2 = '/foo/bar/foo'\n -> 'bar'\n<END>", "<BEGIN>\n## `compare_path_strings`", "find out, if path1 is a file, or a directory (or unknown).\n<END>", "<BEGIN>\n## `compare_parts`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
get_connection: get connection for 'scheme' or create a new one. @type scheme: str @param scheme: the scheme to use (i.e. 'file', 'ssh', etc.) @type hostname: str|None @param hostname: the hostname (extracted from parsed uri) @type port: str|None @param port: the port ...
"get_connection: get connection for 'scheme' or create a new one.\n\n @type scheme: str\n @param scheme: the scheme to use (i.e. 'file', 'ssh', etc.)\n\n @type hostname: str|None\n @param hostname: the hostname (extracted from parsed uri)\n\n @type port: str|None\n @param port:...
92
false
AbletonAG/abl.vpath
get_connection
11,182
LDU_FT/dictatorlib/dictator/items
LDU_FT
[ "<BEGIN>\n## `copy`", "Convert ``Dictator`` to standard ``dict`` object", " >>> dc = Dictator()\n >>> dc['l0'] = [1, 2]\n >>> dc['1'] = 'abc'\n >>> d = dc.copy()\n >>> type(d)\n dict\n >>> d\n {'l0': ['1', '2'], '1': 'abc'}\n >>> dc.clear()", " ...
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...
Return list of tuples of keys and values in db >>> dc = Dictator() >>> dc['l0'] = [1, 2, 3, 4] >>> dc.items() [('l0', ['1', '2', '3', '4'])] >>> dc.clear() :return: list of (key, value) pairs :rtype: list of tuple
"Return list of tuples of keys and values in db\n\n >>> dc = Dictator()\n >>> dc['l0'] = [1, 2, 3, 4]\n >>> dc.items()\n [('l0', ['1', '2', '3', '4'])]\n >>> dc.clear()\n\n :return: list of (key, value) pairs\n :rtype: list of tuple"
36
false
dictatorlib/dictator
items
11,183
LDU_FT/kfdm/gntp/mini
LDU_FT
[ "<BEGIN>\n## `mini`", "Single notification function", "\tSimple notification function in one line. Has only one required parameter\n\tand attempts to use reasonable defaults for everything else\n\t:param string description: Notification message\n<END>", "<BEGIN>\n## `parse_gntp`", "Attempt to parse a messag...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mini API. 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 mini API. 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...
Single notification function Simple notification function in one line. Has only one required parameter and attempts to use reasonable defaults for everything else :param string description: Notification message .. warning:: For now, only URL callbacks are supported. In the future, the callback argument will...
"Single notification function\n\n\tSimple notification function in one line. Has only one required parameter\n\tand attempts to use reasonable defaults for everything else\n\t:param string description: Notification message\n\n\t.. warning::\n\t\t\tFor now, only URL callbacks are supported. In the future, the\n\t\t\tcal...
54
false
kfdm/gntp
mini
11,184
LDU_FT/dslackw/slpkg/clear_masters
LDU_FT
[ "<BEGIN>\n## `repos`", "View or enabled or disabled repositories\n<END>", "<BEGIN>\n## `reset`", "Reset slpkg.conf file with default values\n<END>", "<BEGIN>\n## `case_sensitive`", "Create dictionary from list with key in lower case\n and value with default\n<END>", "<BEGIN>\n## `package_name`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_masters API. 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 clear_masters API. 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...
Clear master packages if already exist in dependencies or if added to install two or more times
"Clear master packages if already exist in dependencies\n or if added to install two or more times"
168
false
dslackw/slpkg
clear_masters
11,185
LDU_FT/squdle/baseconvert/int_to_str_digit
LDU_FT
[ "<BEGIN>\n## `represent_as_tuple`", "Represent a number-string in the form of a tuple of digits.\r\n \"868.0F\" -> (8, 6, 8, '.', 0, 15)\r", " Args:\r\n string - Number represented as a string of digits.\r\n Returns:\r\n Number represented as an iterable container of digits\r", " >>>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_to_str_digit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the int_to_str_digit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Converts a positive integer, to a single string character. Where: 9 -> "9", 10 -> "A", 11 -> "B", 12 -> "C", ...etc Args: n(int): A positve integer number. Returns: The character representation of the input digit of value n (str).
"Converts a positive integer, to a single string character.\r\n Where: 9 -> \"9\", 10 -> \"A\", 11 -> \"B\", 12 -> \"C\", ...etc\r\n\r\n Args:\r\n n(int): A positve integer number.\r\n\r\n Returns:\r\n The character representation of the input digit of value n (str)."
77
false
squdle/baseconvert
int_to_str_digit
11,186
LDU_FT/rfk/playitagainsam/set_terminal_size
LDU_FT
[ "<BEGIN>\n## `_read_one_byte`", "Read a single byte, or raise OSError on failure.\n<END>", "<BEGIN>\n## `get_fd`", "Helper function for getting a file descriptor.\n<END>", "<BEGIN>\n## `find_executable`", "Find an executable by searching the user's $PATH.\n<END>", "<BEGIN>\n## `get_ancestor_processes`",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_terminal_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_terminal_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Set the (width, height) size tuple for the given pty fd.
"Set the (width, height) size tuple for the given pty fd."
16
false
rfk/playitagainsam
set_terminal_size
11,187
LDU_FT/icgood/pymap/update
LDU_FT
[ "<BEGIN>\n## `for_executor`", "Return a subsystem based on the given executor. If ``executor`` is\n None, use :mod:`asyncio`. If ``executor`` is a\n :class:`concurrent.futures.ThreadPoolExecutor`, use :mod:`threading`.", " Args:\n executor: The executor in use, if any.\n<END>", ...
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 ...
Update the flags for the session, returning the resulting flags. Args: uid: The message UID value. flag_set: The set of flags for the update operation. op: The type of update.
"Update the flags for the session, returning the resulting flags.\n\n Args:\n uid: The message UID value.\n flag_set: The set of flags for the update operation.\n op: The type of update."
298
false
icgood/pymap
update
11,188
LDU_FT/theiviaxx/Frog/_sortByCreated
LDU_FT
[ "<BEGIN>\n## `export`", "The export function needs to:\n - Move source image to asset folder\n - Rename to guid.ext\n - Save thumbnail, small, and image versions\n<END>", "<BEGIN>\n## `export`", "The export function needs to:\n - Move source image to asset folder\n - Rename ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sortByCreated API. 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 _sortByCreated API. 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...
Sort function for object by created date
"Sort function for object by created date"
101
false
theiviaxx/Frog
_sortByCreated
11,189
LDU_FT/coghost/izen/append_data
LDU_FT
[ "<BEGIN>\n## `encrypt`", "简单封装系统加密", " :param plain: 待加密内容\n :type plain: ``str/bytes``\n :param algorithm: 加密算法\n :type algorithm: str\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `aes_obj`", "生成aes加密所需要的 ``key, iv``", " .. warning:: 每个AES.new对象, 只能使用一次", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
Appends the given value(s) to the attribute (column).
"Appends the given value(s) to the attribute (column)."
273
false
coghost/izen
append_data
11,190
LDU_FT/rorr73/LifeSOSpy/format
LDU_FT
[ "<BEGIN>\n## `has_value`", "True if specified value exists in int enum; otherwise, False.\n<END>", "<BEGIN>\n## `parse_name`", "Parse specified name for IntEnum; return default if not found.\n<END>", "<BEGIN>\n## `parse_value`", "Parse specified value for IntEnum; return default if not found.\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Format command along with any arguments, ready to be sent.
"Format command along with any arguments, ready to be sent."
84
false
rorr73/LifeSOSpy
format
11,191
LDU_FT/nschloe/matplotlib2tikz/_is_colorbar_heuristic
LDU_FT
[ "<BEGIN>\n## `_get_ticks`", "Gets a {'x','y'}, a number of ticks and ticks labels, and returns the\n necessary axis options for the given configuration.\n<END>", "<BEGIN>\n## `_is_colorbar_heuristic`", "Find out if the object is in fact a color bar.\n<END>", "<BEGIN>\n## `_mpl_cmap2pgf_cmap`", "Convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_colorbar_heuristic 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 _is_colorbar_heuristic API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Find out if the object is in fact a color bar.
"Find out if the object is in fact a color bar."
81
false
nschloe/matplotlib2tikz
_is_colorbar_heuristic
11,192
LDU_FT/CoffeeForThinkers/MagentoModels/__execute_text
LDU_FT
[ "<BEGIN>\n## `get_one_record`", "This is an older interface that should now only be used by call(), \n above.\n<END>", "<BEGIN>\n## `__build_query`", "Return a queury that uses traditional/proper parameters.\n<END>", "<BEGIN>\n## `__build_raw_query`", "Return a query that uses raw string-replacemen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __execute_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __execute_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 ex...
This is an older interface that should now only be used by call(), above.
"This is an older interface that should now only be used by call(), \n above."
13
false
CoffeeForThinkers/MagentoModels
__execute_text
11,193
LDU_FT/6809/MC6809/instruction_SBC
LDU_FT
[ "<BEGIN>\n## `instruction_RTS`", "Program control is returned from the subroutine to the calling program.\n The return address is pulled from the stack.", " source code forms: RTS", " CC bits \"HNZVC\": -----\n<END>", "<BEGIN>\n## `instruction_BSR_JSR`", "Program control is transferre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instruction_SBC API. 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 instruction_SBC API. 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...
Subtracts the contents of memory location M and the borrow (in the C (carry) bit) from the contents of the designated 8-bit register, and places the result in that register. The C bit represents a borrow and is set to the inverse of the resulting binary carry. source code forms: SBCA P;...
"Subtracts the contents of memory location M and the borrow (in the C\n (carry) bit) from the contents of the designated 8-bit register, and\n places the result in that register. The C bit represents a borrow and is\n set to the inverse of the resulting binary carry.\n\n source code forms: S...
224
false
6809/MC6809
instruction_SBC
11,194
LDU_FT/tapilab/twutil/tokenize_fielded
LDU_FT
[ "<BEGIN>\n## `list_members`", "See https://dev.twitter.com/rest/reference/get/lists/members\n<END>", "<BEGIN>\n## `lookup_handles`", "Fetch the twitter screen_names of each id.\n<END>", "<BEGIN>\n## `lookup_ids`", "Fetch the twitter ids of each screen_name.\n<END>", "<BEGIN>\n## `tweets_for_id`", "Col...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize_fielded API. 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 tokenize_fielded API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Tokenize tweet and prepend field id before each token. >>> t = Tokenizer(fields=['text', 'user.name', 'user.location']) >>> list(t.tokenize_fielded(Tweet(json.loads(data.test_tweet)))) ['text___if', 'text___only', "text___bradley's", 'text___arm', 'text___was', 'text___longer', 'text___.', 'text...
"Tokenize tweet and prepend field id before each token.\n >>> t = Tokenizer(fields=['text', 'user.name', 'user.location'])\n >>> list(t.tokenize_fielded(Tweet(json.loads(data.test_tweet))))\n ['text___if', 'text___only', \"text___bradley's\", 'text___arm', 'text___was', 'text___longer', 'text___.',...
20
false
tapilab/twutil
tokenize_fielded
11,195
LDU_FT/ldo/dbussy/iter_init_append
LDU_FT
[ "<BEGIN>\n## `data_key`", "returns a unique value that allows data to be used as a dict/set key.\n<END>", "<BEGIN>\n## `get_version`", "returns the libdbus library version as a tuple of integers (major, minor, micro).\n<END>", "<BEGIN>\n## `matches_rule`", "does Message message match against the specified...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter_init_append API. 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 iter_init_append API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
creates a Message.AppendIter for appending arguments to the Message.
"creates a Message.AppendIter for appending arguments to the Message."
74
false
ldo/dbussy
iter_init_append
11,196
LDU_FT/nickoala/telepot/download_file
LDU_FT
[ "<BEGIN>\n## `answer`", "Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_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. The ext...
Download a file to local disk. :param dest: a path or a ``file`` object
"Download a file to local disk.\n\n :param dest: a path or a ``file`` object"
312
false
nickoala/telepot
download_file
11,197
LDU_FT/RobotStudio/bors/_generate_result
LDU_FT
[ "<BEGIN>\n## `_generate_request`", "Generate a request object for delivery to the API\n<END>", "<BEGIN>\n## `_generate_result`", "Generate a results object for delivery to the context object\n<END>", "<BEGIN>\n## `connect_ws`", "Connect to a websocket\n :channels: List of SockChannel instances\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generate a results object for delivery to the context object
"Generate a results object for delivery to the context object"
22
false
RobotStudio/bors
_generate_result
11,198
LDU_FT/drongo-framework/drongo/set_redirect
LDU_FT
[ "<BEGIN>\n## `set_cookie`", "Set a cookie.", " Args:\n key (:obj:`str`): Cookie name\n value (:obj:`str`): Cookie value\n domain (:obj:`str`): Cookie domain\n path (:obj:`str`): Cookie value\n secure (:obj:`bool`): True if secure, False otherwise\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_redirect API. 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 set_redirect API. 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...
Helper method to set a redirect response. Args: url (:obj:`str`): URL to redirect to status (:obj:`str`, optional): Status code of the response
"Helper method to set a redirect response.\n\n Args:\n url (:obj:`str`): URL to redirect to\n status (:obj:`str`, optional): Status code of the response"
46
false
drongo-framework/drongo
set_redirect
11,199
LDU_FT/ClimateImpactLab/DataFS/get_local_path
LDU_FT
[ "<BEGIN>\n## `_generate_manager`", "Generate a manager from a manager_config dictionary", " Parameters\n ----------", " manager_config : dict\n Configuration with keys class, args, and kwargs\n used to generate a new datafs.manager object", " Returns\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_local_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Context manager for retrieving a system path for I/O and updating on change Parameters ---------- authority : object :py:mod:`pyFilesystem` filesystem object to use as the authoritative, up-to-date source for the archive cache : object :py:mod:`pyFilesystem` filesystem objec...
"Context manager for retrieving a system path for I/O and updating on change\n\n\n Parameters\n ----------\n authority : object\n\n :py:mod:`pyFilesystem` filesystem object to use as the authoritative,\n up-to-date source for the archive\n\n cache : object\n\n :py:mod:`pyFilesystem` fil...
318
false
ClimateImpactLab/DataFS
get_local_path
11,200
LDU_FT/maljovec/topopy/get_y
LDU_FT
[ "<BEGIN>\n## `build`", "Assigns data to this object and builds the Morse-Smale\n Complex\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n responses corresponding to the m samples...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_y API. 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 get_y API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns the output data requested by the user @ In, indices, a list of non-negative integers specifying the row indices to return @ Out, an nparray of floating point values specifying the output data values filtered by the indices input parameter.
"Returns the output data requested by the user\n @ In, indices, a list of non-negative integers specifying\n the row indices to return\n @ Out, an nparray of floating point values specifying the output\n data values filtered by the indices input parameter."
57
false
maljovec/topopy
get_y
11,201
LDU_FT/hbldh/dlxsudoku/_fill_hidden_singles
LDU_FT
[ "<BEGIN>\n## `load_file`", "Load a Sudoku from file.", " :param file_path: The path to the file to load_file.\n :type file_path: str, unicode\n :return: A Sudoku instance with the parsed\n information from the file.\n :rtype: :py:class:`dlxsudoku.sudoku.Sudoku`\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fill_hidden_singles 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 _fill_hidden_singles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Look for hidden singles, i.e. cells with only one unique possible value in row, column or box. :return: If any Hidden Single has been found. :rtype: bool
"Look for hidden singles, i.e. cells with only one unique possible value in row, column or box.\n\n :return: If any Hidden Single has been found.\n :rtype: bool"
32
false
hbldh/dlxsudoku
_fill_hidden_singles
11,202
LDU_FT/maxweisspoker/simplebitcoinfuncs/dechex
LDU_FT
[ "<BEGIN>\n## `sign`", "Returns a DER-encoded signature from a input of a hash and private\n key, and optionally a K value.", " Hash and private key inputs must be 64-char hex strings,\n k input is an int/long.", " >>> h = 'f7011e94125b5bba7f62eb25efe23339eb1637539206c87df3ee61b5ec6b023e'\n >>> ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dechex API. 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 dechex API. 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 ...
Simple integer to hex converter. The zfill is the number of bytes, even though the input is a hex string, which means that the actual zfill is 2x what you might initially think it would be. For example: >>> dechex(4,2) '0004'
"Simple integer to hex converter.\n\n The zfill is the number of bytes, even though the input is a hex\n string, which means that the actual zfill is 2x what you might\n initially think it would be.\n\n For example:\n >>> dechex(4,2)\n '0004'"
91
false
maxweisspoker/simplebitcoinfuncs
dechex
11,203
LDU_FT/croach/Flask-Fixtures/get_child_fn
LDU_FT
[ "<BEGIN>\n## `push_ctx`", "Creates new test context(s) for the given app", " If the app is not None, it overrides any existing app and/or request\n context. In other words, we will use the app that was passed in to create\n a new test request context on the top of the stack. If, however, nothing\n w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_fn API. 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_child_fn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns a function from the child class that matches one of the names. Searches the child class's set of methods (i.e., the attrs dict) for all the functions matching the given list of names. If more than one is found, an exception is raised, if one is found, it is returned, and if none are ...
"Returns a function from the child class that matches one of the names.\n\n Searches the child class's set of methods (i.e., the attrs dict) for all\n the functions matching the given list of names. If more than one is found,\n an exception is raised, if one is found, it is returned, and if none ar...
21
false
croach/Flask-Fixtures
get_child_fn
11,204
LDU_FT/Datary/scrapbag/excel_todictlist
LDU_FT
[ "<BEGIN>\n## `parse_spss_headerfile`", "Parse spss header file", " Arguments:\n path {str} -- path al fichero de cabecera.\n leyend_position -- posicion del la leyenda en el header.\n<END>", "<BEGIN>\n## `parse_spss_datafile`", "Parse spss data file", " Arguments:\n path {str} -...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the excel_todictlist API. 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 excel_todictlist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Parse excel file to a dict list of sheets, rows.
"Parse excel file to a dict list of sheets, rows."
119
false
Datary/scrapbag
excel_todictlist
11,205
LDU_FT/horazont/aioxmpp/depfilter
LDU_FT
[ "<BEGIN>\n## `get_commands`", "Return the list of commands offered by the peer.", " :param peer_jid: JID of the peer to query\n :type peer_jid: :class:`~aioxmpp.JID`\n :rtype: :class:`list` of :class:`~.disco.xso.Item`\n :return: List of command items", " In the returned lis...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the depfilter API. 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 depfilter API. 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...
Register the decorated method at the addressed :class:`~.callbacks.Filter` on a class on which the service depends. :param class_: A service class which is listed in the :attr:`~.Meta.ORDER_AFTER` relationship. :type class_: :class:`Service` class or :class:`aioxmpp.str...
"Register the decorated method at the addressed :class:`~.callbacks.Filter`\n on a class on which the service depends.\n\n :param class_: A service class which is listed in the\n :attr:`~.Meta.ORDER_AFTER` relationship.\n :type class_: :class:`Service` class or\n :class:`aiox...
1,660
true
horazont/aioxmpp
depfilter
11,206
LDU_FT/ucbvislab/radiotool/to_array
LDU_FT
[ "<BEGIN>\n## `analysis`", "Get musical analysis of the song using the librosa library\n<END>", "<BEGIN>\n## `read_frames`", "Read ``n`` frames from the track, starting\n with the current frame", " :param integer n: Number of frames to read\n :param integer channels: Number of channels t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_array API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Generate the array of multipliers for the dynamic
"Generate the array of multipliers for the dynamic"
107
false
ucbvislab/radiotool
to_array
11,207
LDU_FT/Hackerfleet/hfos/enrol
LDU_FT
[ "<BEGIN>\n## `_augment_book`", "Checks if the newly created object is a book and only has an ISBN.\n If so, tries to fetch the book data off the internet.", " :param uuid: uuid of book to augment\n :param client: requesting client\n<END>", "<BEGIN>\n## `serial_ports`", "Lists serial por...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrol API. 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 enrol API. 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...
A user tries to self-enrol with the enrolment form
"A user tries to self-enrol with the enrolment form"
344
false
Hackerfleet/hfos
enrol
11,208
LDU_FT/romanz/trezor-agent/pubkey
LDU_FT
[ "<BEGIN>\n## `create_default_options_getter`", "Return current TTY and DISPLAY settings for GnuPG pinentry.\n<END>", "<BEGIN>\n## `write`", "Send and flush a single line to the subprocess' stdin.\n<END>", "<BEGIN>\n## `expect`", "Read a line and return it without required prefix.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pubkey API. 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 pubkey API. 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 public key as VerifyingKey object.
"Return public key as VerifyingKey object."
235
false
romanz/trezor-agent
pubkey
11,209
LDU_FT/theislab/scvelo/get_obj_module
LDU_FT
[ "<BEGIN>\n## `strings_to_categoricals`", "Transform string annotations to categoricals.\n<END>", "<BEGIN>\n## `velocity_graph`", "\\\n Plot of the velocity graph.", " Arguments\n ---------\n adata: :class:`~anndata.AnnData`\n Annotated data matrix.\n vkey: `str` or `None` (default: `No...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_obj_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 ex...
Get a module/class/attribute and its original module by qualname
"Get a module/class/attribute and its original module by qualname"
200
false
theislab/scvelo
get_obj_module
11,210
LDU_FT/visualfabriq/bquery/factorize_groupby_cols
LDU_FT
[ "<BEGIN>\n## `rm_file_or_dir`", "Helper function to clean a certain filepath", " Parameters\n ----------\n path", " Returns\n -------\n<END>", "<BEGIN>\n## `cache_valid`", "Checks whether the column has a factorization that exists and is not older than the source", " :param col:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factorize_groupby_cols 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 factorize_groupby_cols API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
factorizes all columns that are used in the groupby it will use cache carrays if available if not yet auto_cache is valid, it will create cache carrays
"factorizes all columns that are used in the groupby\n it will use cache carrays if available\n if not yet auto_cache is valid, it will create cache carrays"
60
false
visualfabriq/bquery
factorize_groupby_cols
11,211
LDU_FT/angr/pyvex/put
LDU_FT
[ "<BEGIN>\n## `lift`", "This is the main body of the \"lifting\" for the instruction.\n This can/should be overriden to provide the general flow of how instructions in your arch work.\n For example, in MSP430, this is:", " - Figure out what your operands are by parsing the addressing, and lo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Puts a value from a VEX temporary register into a machine register. This is how the results of operations done to registers get committed to the machine's state. :param val: The VexValue to store (Want to store a constant? See Constant() first) :param reg: The integer register number to store i...
"Puts a value from a VEX temporary register into a machine register.\n This is how the results of operations done to registers get committed to the machine's state.\n\n :param val: The VexValue to store (Want to store a constant? See Constant() first)\n :param reg: The integer register number to st...
87
false
angr/pyvex
put
11,212
LDU_FT/solocompt/plugs-core/get_model_class
LDU_FT
[ "<BEGIN>\n## `get_db_distinct`", "Checks if a field / value pair exists in database\n and continues generating values until it finds\n a one that does not exist", " func is the function that generates values and\n params is the parameters that function takes\n<END>", "<BEGIN>\n## `get_model_class`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_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 e...
This is being implemented to help with the Email Module, where we want to use a model for the email context without needing to import the model (which is most cases create a circular dependency, anyway) Beware that currently implementation returns the first match, so if a model with a s...
"This is being implemented to help\n with the Email Module, where we\n want to use a model for the email\n context without needing to import\n the model (which is most cases create\n a circular dependency, anyway)\n\n Beware that currently implementation\n returns the first match, so if a model\n ...
20
false
solocompt/plugs-core
get_model_class
11,213
LDU_FT/xi/ldif3/_parse_entry_record
LDU_FT
[ "<BEGIN>\n## `_fold_line`", "Write string line as one or more folded lines.\n<END>", "<BEGIN>\n## `_needs_base64_encoding`", "Return True if attr_value has to be base-64 encoded.", " This is the case because of special chars or because attr_type is in\n self._base64_attrs\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_entry_record 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 _parse_entry_record 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...
Parse a single entry record from a list of lines.
"Parse a single entry record from a list of lines."
25
false
xi/ldif3
_parse_entry_record
11,214
LDU_FT/WhyNotHugo/django-afip/create_csr
LDU_FT
[ "<BEGIN>\n## `catch_errors`", "Catches specific errors in admin actions and shows a friendly error.\n<END>", "<BEGIN>\n## `numbers`", "Returns the barcode's number without the verification digit.", " :return: list(int)\n<END>", "<BEGIN>\n## `verification_digit`", "Returns the verification digit f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_csr API. 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_csr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Create a CSR for a key, and save it into ``file``.
"Create a CSR for a key, and save it into ``file``."
96
false
WhyNotHugo/django-afip
create_csr
11,215
LDU_FT/scivision/pymap3d/ecef2nedv
LDU_FT
[ "<BEGIN>\n## `anglesep_meeus`", "Parameters\n ----------", " lon0 : float or numpy.ndarray of float\n longitude of first point\n lat0 : float or numpy.ndarray of float\n latitude of first point\n lon1 : float or numpy.ndarray of float\n longitude of second point\n lat1 : floa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ecef2nedv API. 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 ecef2nedv API. 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...
for VECTOR between two points Parameters ---------- x : float or numpy.ndarray of float ECEF x coordinate (meters) y : float or numpy.ndarray of float ECEF y coordinate (meters) z : float or numpy.ndarray of float ECEF z coordinate (meters) lat0 : float Observer ...
"for VECTOR between two points\n\n Parameters\n ----------\n x : float or numpy.ndarray of float\n ECEF x coordinate (meters)\n y : float or numpy.ndarray of float\n ECEF y coordinate (meters)\n z : float or numpy.ndarray of float\n ECEF z coordinate (meters)\n lat0 : float\n ...
293
false
scivision/pymap3d
ecef2nedv
11,216
LDU_FT/uber/doubles/_original_attr
LDU_FT
[ "<BEGIN>\n## `set_value`", "Set the value of the target.", " :param obj value: The value to set.\n<END>", "<BEGIN>\n## `patch_class`", "Create a new class based on the input_class.", " :param class input_class: The class to patch.\n :rtype class:\n<END>", "<BEGIN>\n## `clear`", "Clears a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _original_attr API. 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 _original_attr API. 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 the original attribute off of the proxy on the target object. :param str attr_name: the name of the original attribute to return :return: Func or None. :rtype: func
"Return the original attribute off of the proxy on the target object.\n\n :param str attr_name: the name of the original attribute to return\n :return: Func or None.\n :rtype: func"
171
false
uber/doubles
_original_attr
11,217
LDU_FT/capless/warrant/get_password_authentication_key
LDU_FT
[ "<BEGIN>\n## `dict_to_cognito`", ":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>", "<BEGIN>\n## `snake_to_camel`", ":param snake_str: string\n :return: string converted from a s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_password_authentication_key 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 get_password_authentication_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Calculates the final hkdf based on computed S value, and computed U value and the key :param {String} username Username. :param {String} password Password. :param {Long integer} server_b_value Server B value. :param {Long integer} salt Generated salt. :return {Buffer} Computed HK...
"Calculates the final hkdf based on computed S value, and computed U value and the key\n :param {String} username Username.\n :param {String} password Password.\n :param {Long integer} server_b_value Server B value.\n :param {Long integer} salt Generated salt.\n :return {Buffer} Compu...
61
false
capless/warrant
get_password_authentication_key
11,218
LDU_FT/lpantano/seqcluster/_write_reads
LDU_FT
[ "<BEGIN>\n## `add_exp`", "Function to add the counts for each sample", " :param gr: name of the sample\n :param exp: counts of sample **gr**", " :returns: dict with key,values equally to name,counts.\n<END>", "<BEGIN>\n## `MakeJoint`", "Joint distribution of values from pmf1 and pmf2....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_reads API. 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 _write_reads API. 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...
Write fasta file, ma file and real position
"Write fasta file, ma file and real position"
491
false
lpantano/seqcluster
_write_reads
11,219
LDU_FT/OCHA-DAP/hdx-python-country/get_country_name_from_m49
LDU_FT
[ "<BEGIN>\n## `script_dir`", "Get current script's directory", " Args:\n pyobject (Any): Any Python object in the script\n follow_symlinks (Optional[bool]): Follow symlinks or not. Defaults to True.", " Returns:\n str: Current script's directory\n<END>", "<BEGIN>\n## `script_dir_pl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_country_name_from_m49 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 get_country_name_from_m49 API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Get country name from M49 code Args: m49 (int): M49 numeric code for which to get country name use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True. exception (Optional[ExceptionUpperBound]): An exception to raise if country not ...
"Get country name from M49 code\n\n Args:\n m49 (int): M49 numeric code for which to get country name\n use_live (bool): Try to get use latest data from web rather than file in package. Defaults to True.\n exception (Optional[ExceptionUpperBound]): An exception to raise if countr...
76
false
OCHA-DAP/hdx-python-country
get_country_name_from_m49
11,220
LDU_FT/pyvec/pyvodb/handle_raw_output
LDU_FT
[ "<BEGIN>\n## `handle_raw_output`", "If a raw output format is set, dump data and exit\n<END>", "<BEGIN>\n## `start`", "The event's start time, as a timezone-aware datetime object\n<END>", "<BEGIN>\n## `next_occurrences`", "Yield the next planned occurrences after the date \"since\"", " The `since...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_raw_output API. 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 handle_raw_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
If a raw output format is set, dump data and exit
"If a raw output format is set, dump data and exit"
26
false
pyvec/pyvodb
handle_raw_output
11,221
LDU_FT/thespacedoctor/qubits/main
LDU_FT
[ "<BEGIN>\n## `setup`", "*setup the workspace in the requested location*", " **Return:**\n - ``None``\n<END>", "<BEGIN>\n## `random_redshift_array`", "*Generate a NumPy array of random distances given a sample number and distance limit*", " **Key Arguments:**\n - ``log`` -- logg...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*
"*The main function used when ``cl_utils.py`` is run as a single script from the cl, or when installed as a cl command*"
152
false
thespacedoctor/qubits
main
11,222
LDU_FT/angr/claripy/BVS
LDU_FT
[ "<BEGIN>\n## `_align_ast`", "Aligns the AST so that the argument with the highest cardinality is on the left.", " :return: a new AST.\n<END>", "<BEGIN>\n## `_doit`", "This function processes the list of truisms and finds bounds for ASTs.\n<END>", "<BEGIN>\n## `_handleable_truism`", "Checks whethe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BVS API. 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 BVS API. 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...
Creates a bit-vector symbol (i.e., a variable). If you want to specify the maximum or minimum value of a normal symbol that is not part of value-set analysis, you should manually add constraints to that effect. **Do not use ``min`` and ``max`` for symbolic execution.** :param name: The name of ...
"Creates a bit-vector symbol (i.e., a variable).\n\n If you want to specify the maximum or minimum value of a normal symbol that is not part of value-set analysis, you\n should manually add constraints to that effect. **Do not use ``min`` and ``max`` for symbolic execution.**\n\n :param name: The na...
453
false
angr/claripy
BVS
11,223
LDU_FT/Kronuz/pyScss/read
LDU_FT
[ "<BEGIN>\n## `mix`", "Mixes together two colors. Specifically, takes the average of each of the\n RGB components, optionally weighted by the given percentage.\n The opacity of the colors is also considered when weighting the components.", " Specifically, takes the average of each of the RGB components,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read a source file from an ``(origin, relpath)`` tuple, as would happen from an ``@import`` statement.
"Read a source file from an ``(origin, relpath)`` tuple, as would\n happen from an ``@import`` statement."
205
false
Kronuz/pyScss
read
11,224
LDU_FT/childsish/lhc-python/_get_token_type
LDU_FT
[ "<BEGIN>\n## `_get_sorted_iterator`", "Get the iterator over the sorted items.", " This function decides whether the items can be sorted in memory or on disk.\n :return:\n<END>", "<BEGIN>\n## `_split`", "Splits the file into several chunks.", " If the original file is too big to fit i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_token_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_token_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 e...
Returns a 2-tuple (behaviour, type). behaviours: 0 - join 1 - split 2 - ignore
"Returns a 2-tuple (behaviour, type).\n behaviours:\n 0 - join\n 1 - split\n 2 - ignore"
76
false
childsish/lhc-python
_get_token_type
11,225
LDU_FT/aequitas/python-rflink/log_all
LDU_FT
[ "<BEGIN>\n## `signed_to_float`", "Convert signed hexadecimal to floating value.\n<END>", "<BEGIN>\n## `decode_packet`", "Break packet down into primitives, and do basic interpretation.", " >>> decode_packet('20;06;Kaku;ID=41;SWITCH=1;CMD=ON;') == {\n ... 'node': 'gateway',\n ... 'protocol':...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Log all data received from RFLink to file.
"Log all data received from RFLink to file."
60
false
aequitas/python-rflink
log_all
11,226
LDU_FT/bryanwweber/thermohw/process
LDU_FT
[ "<BEGIN>\n## `process`", "Process the homework problems in ``prefix`` folder.", " Arguments\n ---------\n hw_num\n The number of this homework\n problems_to_do, optional\n A list of the problems to be processed\n prefix, optional\n A `~pathlib.Path` to this homework assignmen...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted...
Process the homework problems in ``prefix`` folder. Arguments --------- hw_num The number of this homework problems_to_do, optional A list of the problems to be processed prefix, optional A `~pathlib.Path` to this homework assignment folder by_hand, optional A li...
"Process the homework problems in ``prefix`` folder.\n\n Arguments\n ---------\n hw_num\n The number of this homework\n problems_to_do, optional\n A list of the problems to be processed\n prefix, optional\n A `~pathlib.Path` to this homework assignment folder\n by_hand, optional\n...
33
false
bryanwweber/thermohw
process
11,227
LDU_FT/influxdata/influxdb-python/delete_series
LDU_FT
[ "<BEGIN>\n## `_get_unicode`", "Try to return a text aka unicode object from the given data.\n<END>", "<BEGIN>\n## `make_lines`", "Extract points from given dict.", " Extracts the points from the given dict and returns a Unicode string\n matching the line protocol introduced in InfluxDB 0.9.0.\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_series API. 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 delete_series API. 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...
Drop a series on the InfluxDB server. :param series: the name of the series to delete :type series: string :rtype: boolean
"Drop a series on the InfluxDB server.\n\n :param series: the name of the series to delete\n :type series: string\n :rtype: boolean"
205
false
influxdata/influxdb-python
delete_series
11,228
LDU_FT/Rockhopper-Technologies/pluginlib/_inspect_class
LDU_FT
[ "<BEGIN>\n## `_items`", "Args:\n type_filter(list): Optional iterable of types to return (GroupDict only)\n name(str): Only return key by this name", " Alternative generator for items() method\n<END>", "<BEGIN>\n## `_filter`", "Args:\n blacklist(tuple): Iterable of of...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inspect_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 _inspect_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...
Args: cls(:py:class:`Plugin`): Parent class subclass(:py:class:`Plugin`): Subclass to evaluate Returns: Result: Named tuple Inspect subclass for inclusion Values for errorcode: * 0: No error Error codes between 0 and 100 are not intended for import * 50 ...
"Args:\n cls(:py:class:`Plugin`): Parent class\n subclass(:py:class:`Plugin`): Subclass to evaluate\n\n Returns:\n Result: Named tuple\n\n Inspect subclass for inclusion\n\n Values for errorcode:\n\n * 0: No error\n\n Error codes between 0 and 100 are not intended for import\...
65
false
Rockhopper-Technologies/pluginlib
_inspect_class
11,229
LDU_FT/marten-de-vries/Flask-WebSub/publisher
LDU_FT
[ "<BEGIN>\n## `build_blueprint`", "Build a blueprint that contains the endpoints for callback URLs of\n the current subscriber. Only call this once per instance. Arguments:", " - url_prefix; this allows you to prefix the callback URLs in your app.\n<END>", "<BEGIN>\n## `unsubscribe`", "Ask the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the publisher API. 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 publisher API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
This decorator makes it easier to implement a websub publisher. You use it on an endpoint, and Link headers will automatically be added. To also include these links in your template html/atom/rss (and you should!) you can use the following to get the raw links: - {{ websub_self_url }} - {{ websub_h...
"This decorator makes it easier to implement a websub publisher. You use\n it on an endpoint, and Link headers will automatically be added. To also\n include these links in your template html/atom/rss (and you should!) you\n can use the following to get the raw links:\n\n - {{ websub_self_url }}\n - {{ w...
24
false
marten-de-vries/Flask-WebSub
publisher
11,230
LDU_FT/ic-labs/django-icekit/clone_parler_translations
LDU_FT
[ "<BEGIN>\n## `parse_region`", "Parse Region parameter to determine the rectangular portion of the full\n image to be returned, informed by the actual image dimensions.\n Returns (x, y, width, height):\n - x,y are pixel offsets into the image from the upper left\n - width, height are pixel dime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clone_parler_translations 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 clone_parler_translations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Clone each of the translations from an object and relate them to another. :param self: The object to get the translations from. :param dst_obj: The object to relate the new translations to. :return: None
"Clone each of the translations from an object and relate\n them to another.\n :param self: The object to get the translations from.\n :param dst_obj: The object to relate the new translations to.\n :return: None"
562
false
ic-labs/django-icekit
clone_parler_translations
11,231
LDU_FT/noxdafox/clipspy/watch_activations
LDU_FT
[ "<BEGIN>\n## `accessible`", "True if the Slot is directly accessible.\n<END>", "<BEGIN>\n## `types`", "A tuple containing the value types for this Slot.", " The Python equivalent of the CLIPS slot-types function.\n<END>", "<BEGIN>\n## `sources`", "A tuple containing the names of the Class sources...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watch_activations API. 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 watch_activations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Whether or not the Rule Activations are being watched.
"Whether or not the Rule Activations are being watched."
209
false
noxdafox/clipspy
watch_activations
11,232
LDU_FT/jplusplus/statscraper/_hash
LDU_FT
[ "<BEGIN>\n## `initiate_browser`", "The button for expanded detailed options. This\n also happens to be a good indicator as to wheter\n all content is loaded.\n<END>", "<BEGIN>\n## `_fetch_dimensions`", "Declaring available dimensions like this is not mandatory,\n but nice, especially if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a hash for the current query. This hash is _not_ a unique representation of the dataset!
"Return a hash for the current query.\n\n This hash is _not_ a unique representation of the dataset!"
57
false
jplusplus/statscraper
_hash
11,233
LDU_FT/iancmcc/ouimeaux/start
LDU_FT
[ "<BEGIN>\n## `get_func_full_args`", "Return a list of (argument name, default value) tuples. If the argument\n does not have a default value, omit it in the tuple. Arguments such as\n *args and **kwargs are also included.\n<END>", "<BEGIN>\n## `func_accepts_var_args`", "Return True if function 'func' ac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API. 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 start API. 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...
Start the server(s) necessary to receive information from devices.
"Start the server(s) necessary to receive information from devices."
48
false
iancmcc/ouimeaux
start
11,234
LDU_FT/gnarlychicken/aiohttp_auth/get
LDU_FT
[ "<BEGIN>\n## `acl_middleware`", "Returns a aiohttp_auth.acl middleware factory for use by the aiohttp\n application object.", " Args:\n callback: This is a callable which takes a user_id (as returned from\n the auth.get_auth function), and expects a sequence of permitted ACL\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets the user_id for the request. Gets the ticket for the request using the get_ticket() function, and authenticates the ticket. Args: request: aiohttp Request object. Returns: The userid for the request, or None if the ticket is not authenticated.
"Gets the user_id for the request.\n\n Gets the ticket for the request using the get_ticket() function, and\n authenticates the ticket.\n\n Args:\n request: aiohttp Request object.\n\n Returns:\n The userid for the request, or None if the ticket is not\n auth...
75
false
gnarlychicken/aiohttp_auth
get
11,235
LDU_FT/drj11/pypng/undo_filter
LDU_FT
[ "<BEGIN>\n## `adam7_generate`", "Generate the coordinates for the reduced scanlines\n of an Adam7 interlaced image\n of size `width` by `height` pixels.", " Yields a generator for each pass,\n and each pass generator yields a series of (x, y, xstep) triples,\n each one identifying a reduced scanl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undo_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the undo_filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Undo the filter for a scanline. `scanline` is a sequence of bytes that does not include the initial filter type byte. `previous` is decoded previous scanline (for straightlaced images this is the previous pixel row, but for interlaced images, it is the previous scanline i...
"Undo the filter for a scanline.\n `scanline` is a sequence of bytes that\n does not include the initial filter type byte.\n `previous` is decoded previous scanline\n (for straightlaced images this is the previous pixel row,\n but for interlaced images, it is\n the previous sca...
153
false
drj11/pypng
undo_filter
11,236
LDU_FT/Yelp/kafka-utils/get_topic_partition_metadata
LDU_FT
[ "<BEGIN>\n## `get_assignment`", "Parse the given json plan in dict format.\n<END>", "<BEGIN>\n## `_send_consumer_aware_request`", "Send a list of requests to the consumer coordinator for the group\n specified using the supplied encode/decode functions. As the payloads\n that use consumer-aware r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_topic_partition_metadata 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 get_topic_partition_metadata API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Returns topic-partition metadata from Kafka broker. kafka-python 1.3+ doesn't include partition metadata information in topic_partitions so we extract it from metadata ourselves.
"Returns topic-partition metadata from Kafka broker.\n\n kafka-python 1.3+ doesn't include partition metadata information in\n topic_partitions so we extract it from metadata ourselves."
538
false
Yelp/kafka-utils
get_topic_partition_metadata
11,237
LDU_FT/sentinel-hub/eo-learn/get_tasks
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute computation of blobs on input eopatch", " :param eopatch: Input eopatch\n :type eopatch: eolearn.core.EOPatch\n :return: EOPatch instance with new key holding the blob image.\n :rtype: eolearn.core.EOPatch\n<END>", "<BEGIN>\n## `_check_classifier`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns an ordered dictionary {task_name: task} of all tasks within this workflow. :return: Ordered dictionary with key being task_name (str) and an instance of a corresponding task from this workflow :rtype: OrderedDict
"Returns an ordered dictionary {task_name: task} of all tasks within this workflow.\r\n\r\n :return: Ordered dictionary with key being task_name (str) and an instance of a corresponding task from this\r\n workflow\r\n :rtype: OrderedDict"
453
false
sentinel-hub/eo-learn
get_tasks
11,238
LDU_FT/shaypal5/strct/increment_dict_val
LDU_FT
[ "<BEGIN>\n## `find_point_in_section_list`", "Returns the start of the section the given point belongs to.", " The given list is assumed to contain start points of consecutive\n sections, except for the final point, assumed to be the end point of the\n last section. For example, the list [5, 8, 30, 31] ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment_dict_val API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the increment_dict_val API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Increments the value mapped by the given key by the given val. If the key is missing from the dict, the given mapping is added. Parameters ---------- dict_obj : dict The dict to increment a value in. key : object The key whose value is to be incremented. value : object T...
"Increments the value mapped by the given key by the given val.\n If the key is missing from the dict, the given mapping is added.\n\n Parameters\n ----------\n dict_obj : dict\n The dict to increment a value in.\n key : object\n The key whose value is to be incremented.\n value : object...
140
false
shaypal5/strct
increment_dict_val
11,239
LDU_FT/danielperna84/pyhomematic/get_hs_color
LDU_FT
[ "<BEGIN>\n## `start`", "Start the server thread if it wasn't created with autostart = True.\n<END>", "<BEGIN>\n## `getSystemVariable`", "Get single system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `deleteSystemVariable`", "Delete a system variable from CCU / Homegear\n<END>", "<BEGIN>\n## `setI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hs_color API. 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_hs_color API. 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 the color of the light as HSV color without the "value" component for the brightness. Returns (hue, saturation) tuple with values in range of 0-1, representing the H and S component of the HSV color system.
"Return the color of the light as HSV color without the \"value\" component for the brightness.\n\n Returns (hue, saturation) tuple with values in range of 0-1, representing the H and S component of the\n HSV color system."
83
false
danielperna84/pyhomematic
get_hs_color
11,240
LDU_FT/lucapinello/Haystack/_scan
LDU_FT
[ "<BEGIN>\n## `sample_wr`", "Chooses k random elements (with replacement) from a population\n<END>", "<BEGIN>\n## `summary`", "m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>", "<BEGIN>\n## `minimal_raw_seqs`", "m.minimal_raw_seqs() -- Return minimal list of seqs that r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _scan API. 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 _scan API. 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...
m._scan(seq,threshold='',forw_only='',factor=0.7) -- Internal tility function for performing sequence scans
"m._scan(seq,threshold='',forw_only='',factor=0.7) -- Internal tility function for performing sequence scans"
87
false
lucapinello/Haystack
_scan
11,241
LDU_FT/Parquery/icontract/_capture_snapshot
LDU_FT
[ "<BEGIN>\n## `_collapse_invariants`", "Collect invariants from the bases and merge them with the invariants in the namespace.\n<END>", "<BEGIN>\n## `_collapse_preconditions`", "Collapse function preconditions with the preconditions collected from the base classes.", " :param base_preconditions: precondit...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _capture_snapshot API. 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 _capture_snapshot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Capture the snapshot from the keyword arguments resolved before the function call (including the default values). :param a_snapshot: snapshot to be captured :param resolved_kwargs: resolved keyword arguments (including the default values) :return: captured value
"Capture the snapshot from the keyword arguments resolved before the function call (including the default values).\n\n :param a_snapshot: snapshot to be captured\n :param resolved_kwargs: resolved keyword arguments (including the default values)\n :return: captured value"
122
false
Parquery/icontract
_capture_snapshot
11,242
LDU_FT/nutechsoftware/alarmdecoder/_init_ssl
LDU_FT
[ "<BEGIN>\n## `main`", "Example application that watches for an event from a specific RF device.", " This feature allows you to watch for events from RF devices if you have\n an RF receiver. This is useful in the case of internal sensors, which\n don't emit a FAULT if the sensor is tripped and the pane...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_ssl API. 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 _init_ssl API. 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...
Initializes our device as an SSL connection. :raises: :py:class:`~alarmdecoder.util.CommError`
"Initializes our device as an SSL connection.\n\n :raises: :py:class:`~alarmdecoder.util.CommError`"
286
false
nutechsoftware/alarmdecoder
_init_ssl
11,243
LDU_FT/vimalloc/flask-jwt-simple/jwt_required
LDU_FT
[ "<BEGIN>\n## `jwt_required`", "If you decorate a view with this, it will ensure that the requester has a\n valid JWT before calling the actual view.", " :param fn: The view function to decorate\n<END>", "<BEGIN>\n## `jwt_optional`", "If you decorate a view with this, it will check the request for a va...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jwt_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jwt_required API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
If you decorate a view with this, it will ensure that the requester has a valid JWT before calling the actual view. :param fn: The view function to decorate
"If you decorate a view with this, it will ensure that the requester has a\n valid JWT before calling the actual view.\n\n :param fn: The view function to decorate"
15
false
vimalloc/flask-jwt-simple
jwt_required
11,244
LDU_FT/chaimleib/intervaltree/intersection_update
LDU_FT
[ "<BEGIN>\n## `refresh_balance`", "Recalculate self.balance and self.depth based on child node values.\n<END>", "<BEGIN>\n## `compute_depth`", "Recursively computes true depth of the subtree. Should only\n be needed for debugging. Unless something is wrong, the\n depth field should reflect the co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection_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. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection_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. T...
Removes intervals from self unless they also exist in other.
"Removes intervals from self unless they also exist in other."
139
false
chaimleib/intervaltree
intersection_update
11,245
LDU_FT/jmcgeheeiv/pyfakefs/chown
LDU_FT
[ "<BEGIN>\n## `_classify_directory_contents`", "Classify contents of a directory as files/directories.", " Args:\n filesystem: The fake filesystem used for implementation\n root: (str) Directory to examine.", " Returns:\n (tuple) A tuple consisting of three values: the directory exam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chown API. 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 chown API. 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...
Set ownership of a faked file. Args: path: (str) Path to the file or directory. uid: (int) Numeric uid to set the file or directory to. gid: (int) Numeric gid to set the file or directory to. dir_fd: (int) If not `None`, the file descriptor of a directory, ...
"Set ownership of a faked file.\n\n Args:\n path: (str) Path to the file or directory.\n uid: (int) Numeric uid to set the file or directory to.\n gid: (int) Numeric gid to set the file or directory to.\n dir_fd: (int) If not `None`, the file descriptor of a directory,...
534
false
jmcgeheeiv/pyfakefs
chown
11,246
LDU_FT/joestump/python-oauth2/check
LDU_FT
[ "<BEGIN>\n## `get_oauth_request`", "Return an OAuth Request object for the current request.\n<END>", "<BEGIN>\n## `get_client`", "Return the client from the OAuth parameters.\n<END>", "<BEGIN>\n## `is_valid`", "Returns a Client object if this is a valid OAuth request.\n<END>", "<BEGIN>\n## `build_xoauth...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check API. 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 check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns whether the given signature is the correct signature for the given consumer and token signing the given request.
"Returns whether the given signature is the correct signature for\n the given consumer and token signing the given request."
35
false
joestump/python-oauth2
check
11,247
LDU_FT/edx/XBlock/default
LDU_FT
[ "<BEGIN>\n## `default_select`", "Raise an exception when we have ambiguous entry points.\n<END>", "<BEGIN>\n## `_load_class_entry_point`", "Load `entry_point`, and set the `entry_point.name` as the\n attribute `plugin_name` on the loaded object\n<END>", "<BEGIN>\n## `load_class`", "Load a single cl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns the static value that this defaults to.
"Returns the static value that this defaults to."
295
false
edx/XBlock
default
11,248
LDU_FT/cloudtools/stacker/fetch_s3_package
LDU_FT
[ "<BEGIN>\n## `handle`", "Returns the value of a key for a given hook in hook_data.", " Format of value:", " <hook_name>::<key>\n<END>", "<BEGIN>\n## `resolve_variables`", "Given a list of variables, resolve all of them.", " Args:\n variables (list of :class:`stacker.variables...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_s3_package API. 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 fetch_s3_package API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make a remote S3 archive available for local use. Args: config (dict): git config dictionary
"Make a remote S3 archive available for local use.\n\n Args:\n config (dict): git config dictionary"
733
false
cloudtools/stacker
fetch_s3_package
11,249
LDU_FT/pyviz/imagen/image2working
LDU_FT
[ "<BEGIN>\n## `_threeDdot_simple`", "Return Ma, where M is a 3x3 transformation matrix, for each pixel\n<END>", "<BEGIN>\n## `_swaplch`", "Reverse the order of an LCH numpy dstack or tuple for analysis.\n<END>", "<BEGIN>\n## `convert`", "Convert image or color \"what\" from \"from_\" colorpace to \"to\"\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image2working API. 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 image2working API. 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...
Transform images i provided into the specified working color space.
"Transform images i provided into the specified working\n color space."
127
false
pyviz/imagen
image2working
11,250
LDU_FT/dadadel/pyment/_parse
LDU_FT
[ "<BEGIN>\n## `isin_alone`", "Check if an element from a list is the only element of a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin_start`", "Check if an element from a list starts a string.", " :type elems: list\n :type line: str\n<END>", "<BEGIN>\n## `isin`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Parses the input file's content and generates a list of its elements/docstrings. :returns: the list of elements
"Parses the input file's content and generates a list of its elements/docstrings.\n\n :returns: the list of elements"
165
false
dadadel/pyment
_parse
11,251
LDU_FT/contentful-labs/contentful.py/process_array_includes
LDU_FT
[ "<BEGIN>\n## `resolve_links`", "Attempt to resolve all internal links (locally).", " In case the linked resources are found either as members of the array or within\n the `includes` element, those will be replaced and reference the actual resources.\n No network calls will be performed.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_array_includes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_array_includes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Iterate through all `includes` and create a resource for every item. In addition map the resources under the `items_mapped` by the resource id and type. :param array: Array resource. :param json: Raw JSON dictionary.
"Iterate through all `includes` and create a resource for every item.\n\n In addition map the resources under the `items_mapped` by the resource id and type.\n\n :param array: Array resource.\n :param json: Raw JSON dictionary."
66
false
contentful-labs/contentful.py
process_array_includes
11,252
LDU_FT/Tanganelli/CoAPthon3/add_if_none_match
LDU_FT
[ "<BEGIN>\n## `etag`", "Set the ETag of the resource.", " :param etag: the ETag\n<END>", "<BEGIN>\n## `payload`", "Get the payload of the resource according to the content type specified by required_content_type or\n \"text/plain\" by default.", " :return: the payload.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_if_none_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_if_none_match API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Add the if-none-match option to the request.
"Add the if-none-match option to the request."
478
false
Tanganelli/CoAPthon3
add_if_none_match
11,253
LDU_FT/fuzeman/trakt.py/get
LDU_FT
[ "<BEGIN>\n## `lookup`", "Lookup items by their Trakt, IMDB, TMDB, TVDB, or TVRage ID.", " **Note:** If you lookup an identifier without a :code:`media` type specified it\n might return multiple items if the :code:`service` is not globally unique.", " :param id: Identifier value to lookup\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Retrieve calendar items. The `all` calendar displays info for all shows airing during the specified period. The `my` calendar displays episodes for all shows that have been watched, collected, or watchlisted. :param source: Calendar source (`all` or `my`) :type source: str :pa...
"Retrieve calendar items.\n\n The `all` calendar displays info for all shows airing during the specified period. The `my` calendar displays\n episodes for all shows that have been watched, collected, or watchlisted.\n\n :param source: Calendar source (`all` or `my`)\n :type source: str\n\n ...
227
false
fuzeman/trakt.py
get
11,254
LDU_FT/resonai/ybt/compile_cc
LDU_FT
[ "<BEGIN>\n## `norm_name`", "Return a normalized canonical target name for the `target_name`\n observed in build module `build_module`.", " A normalized canonical target name is of the form \"<build module>:<name>\",\n where <build module> is the relative normalized path from the project root\n to...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_cc API. 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 compile_cc API. 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...
Compile list of C++ source files in a buildenv image and return list of generated object file.
"Compile list of C++ source files in a buildenv image\n and return list of generated object file."
284
false
resonai/ybt
compile_cc
11,255
LDU_FT/great-expectations/great_expectations/continuous_partition_data
LDU_FT
[ "<BEGIN>\n## `_setup_source_conn`", "Retrieve connection based on source_conn_id. In case of s3 it also configures the bucket.\n Validates that connection id belongs to supported connection type.\n :param source_conn_id:\n :param source_bucket_name:\n<END>", "<BEGIN>\n## `_setup_dest_conn`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the continuous_partition_data 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 continuous_partition_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Convenience method for building a partition object on continuous data Args: data (list-like): The data from which to construct the estimate. bins (string): One of 'uniform' (for uniformly spaced bins), 'ntile' (for percentile-spaced bins), or 'auto' (for automatically spaced bins) n_bins (i...
"Convenience method for building a partition object on continuous data\n\n Args:\n data (list-like): The data from which to construct the estimate.\n bins (string): One of 'uniform' (for uniformly spaced bins), 'ntile' (for percentile-spaced bins), or 'auto' (for automatically spaced bins)\n n_b...
475
false
great-expectations/great_expectations
continuous_partition_data
11,256
LDU_FT/ronhanson/python-tbx/text_to_bytes
LDU_FT
[ "<BEGIN>\n## `static_singleton`", "STATIC Singleton Design Pattern Decorator\n Class is initialized with arguments passed into the decorator.", " :Usage: \n >>> @static_singleton('yop')\n class Bob(Person):\n def __init__(arg1):\n self.info = arg1\n def says...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_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 ext...
Encode some text or string to a byte array :param text: text to encode to bytes :param encoding: optional encoding of the passed string. default to utf-8. :param size: optional, if given the text will be padded with 0x00 to the right size :return: a bytes object
"Encode some text or string to a byte array\n :param text: text to encode to bytes\n :param encoding: optional encoding of the passed string. default to utf-8.\n :param size: optional, if given the text will be padded with 0x00 to the right size\n :return: a bytes object"
85
false
ronhanson/python-tbx
text_to_bytes
11,257
LDU_FT/timster/peewee-validates/validate_regexp
LDU_FT
[ "<BEGIN>\n## `validate_not_empty`", "Validate that a field is not empty (blank string).", " :raises: ``ValidationError('empty')``\n<END>", "<BEGIN>\n## `validate_length`", "Validate the length of a field with either low, high, or equal.\n Should work with anything that supports len().", " :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_regexp API. 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 validate_regexp API. 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...
Validate the field matches the given regular expression. Should work with anything that supports '==' operator. :param pattern: Regular expresion to match. String or regular expression instance. :param pattern: Flags for the regular expression. :raises: ``ValidationError('equal')``
"Validate the field matches the given regular expression.\n Should work with anything that supports '==' operator.\n\n :param pattern: Regular expresion to match. String or regular expression instance.\n :param pattern: Flags for the regular expression.\n :raises: ``ValidationError('equal')``"
82
false
timster/peewee-validates
validate_regexp
11,258
LDU_FT/luismasuelli/django-trackmodels-ritual/get_report_data_rows
LDU_FT
[ "<BEGIN>\n## `lookups`", "Performs lookup in the same way the reporting tool allows to generate a report.\n :param request: Current request\n :param model_admin: Current model admin. It must implement get_period_options as returning a list of (k, v).\n :raises: AttributeError, ValueError, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_report_data_rows 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_report_data_rows API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Using the builders for the queryset model, iterates over the queryset to generate a result with headers and rows. This queryset must be the exact same received in the .process method, which tells us that this function should be called inside .process implementation. :param queryset: Provided...
"Using the builders for the queryset model, iterates over the queryset to generate a result\n with headers and rows. This queryset must be the exact same received in the .process method,\n which tells us that this function should be called inside .process implementation.\n :param queryset: Prov...
28
false
luismasuelli/django-trackmodels-ritual
get_report_data_rows
11,259
LDU_FT/robertmartin8/PyPortfolioOpt/portfolio_performance
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the portfolio_performance 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 portfolio_performance 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 optimising, calculate (and optionally print) the performance of the optimal portfolio. Currently calculates expected return, volatility, and the Sharpe ratio. :param verbose: whether performance should be printed, defaults to False :type verbose: bool, optional :param risk_free_ra...
"After optimising, calculate (and optionally print) the performance of the optimal\n portfolio. Currently calculates expected return, volatility, and the Sharpe ratio.\n\n :param verbose: whether performance should be printed, defaults to False\n :type verbose: bool, optional\n :param risk_f...
90
false
robertmartin8/PyPortfolioOpt
portfolio_performance
11,260
LDU_FT/pytorch/text/splits
LDU_FT
[ "<BEGIN>\n## `load_vectors`", "Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splits API. 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 splits API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Create dataset objects for splits of a TranslationDataset. Arguments: exts: A tuple containing the extension to path for each language. fields: A tuple containing the fields that will be used for data in each language. path (str): Common prefix of the splits'...
"Create dataset objects for splits of a TranslationDataset.\n\n Arguments:\n exts: A tuple containing the extension to path for each language.\n fields: A tuple containing the fields that will be used for data\n in each language.\n path (str): Common prefix of the ...
131
false
pytorch/text
splits
11,261
LDU_FT/slundberg/shap/communitiesandcrime
LDU_FT
[ "<BEGIN>\n## `imagenet50`", "This is a set of 50 images representative of ImageNet images.", " This dataset was collected by randomly finding a working ImageNet link and then pasting the\n original ImageNet image into Google image search restricted to images licensed for reuse. A\n similar image (now w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the communitiesandcrime 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 communitiesandcrime 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...
Predict total number of non-violent crimes per 100K popuation. This dataset is from the classic UCI Machine Learning repository: https://archive.ics.uci.edu/ml/datasets/Communities+and+Crime+Unnormalized
"Predict total number of non-violent crimes per 100K popuation.\n\n This dataset is from the classic UCI Machine Learning repository:\n https://archive.ics.uci.edu/ml/datasets/Communities+and+Crime+Unnormalized"
299
false
slundberg/shap
communitiesandcrime
11,262
LDU_FT/fhamborg/news-please/rss_parse
LDU_FT
[ "<BEGIN>\n## `rss_parse`", "Extracts all article links and initiates crawling them.", " :param obj response: The scrapy response\n<END>", "<BEGIN>\n## `article_parse`", "Checks any given response on being an article and if positiv,\n passes the response to the pipeline.", " :param obj...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rss_parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rss_parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Extracts all article links and initiates crawling them. :param obj response: The scrapy response
"Extracts all article links and initiates crawling them.\n\n :param obj response: The scrapy response"
277
false
fhamborg/news-please
rss_parse
11,263
LDU_FT/ymoch/apyori/filter_ordered_statistics
LDU_FT
[ "<BEGIN>\n## `create_next_candidates`", "Returns the apriori candidates as a list.", " Arguments:\n prev_candidates -- Previous candidates as a list.\n length -- The lengths of the next candidates.\n<END>", "<BEGIN>\n## `gen_support_records`", "Returns a generator of support records with gi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_ordered_statistics 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 filter_ordered_statistics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Filter OrderedStatistic objects. Arguments: ordered_statistics -- A OrderedStatistic iterable object. Keyword arguments: min_confidence -- The minimum confidence of relations (float). min_lift -- The minimum lift of relations (float).
"Filter OrderedStatistic objects.\n\n Arguments:\n ordered_statistics -- A OrderedStatistic iterable object.\n\n Keyword arguments:\n min_confidence -- The minimum confidence of relations (float).\n min_lift -- The minimum lift of relations (float)."
39
false
ymoch/apyori
filter_ordered_statistics
11,264
LDU_FT/ricequant/rqalpha/apply_trade
LDU_FT
[ "<BEGIN>\n## `buy_open`", "买入开仓。", " :param id_or_ins: 下单标的物\n :type id_or_ins: :class:`~Instrument` object | `str` | List[:class:`~Instrument`] | List[`str`]", " :param int amount: 下单手数", " :param float price: 下单价格,默认为None,表示 :class:`~MarketOrder`, 此参数主要用于简化 `style` 参数。", " :param style: 下...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_trade API. 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 apply_trade API. 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...
应用成交,并计算交易产生的现金变动。 开仓: delta_cash = -1 * margin = -1 * quantity * contract_multiplier * price * margin_rate 平仓: delta_cash = old_margin - margin + delta_realized_pnl = (sum of (cost_price * quantity) of closed trade) * contract_multiplier * margin_rate +...
"应用成交,并计算交易产生的现金变动。\n\n 开仓:\n delta_cash\n = -1 * margin\n = -1 * quantity * contract_multiplier * price * margin_rate\n\n 平仓:\n delta_cash\n = old_margin - margin + delta_realized_pnl\n = (sum of (cost_price * quantity) of closed trade) * contract_multiplier * ma...
254
false
ricequant/rqalpha
apply_trade
11,265
LDU_FT/praekeltfoundation/seed-auth-api/update
LDU_FT
[ "<BEGIN>\n## `get_true_false_both`", "Tries to get and return a valid of true, false, or both from the field\n name in the query string, raises a ValidationError for invalid values.\n<END>", "<BEGIN>\n## `get_queryset`", "We want to still be able to modify archived organizations, but they\n shouldn'...
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 ...
We want to set all the required fields if admin is set, and we want to use the password hashing method if password is set.
"We want to set all the required fields if admin is set, and we want\n to use the password hashing method if password is set."
34
false
praekeltfoundation/seed-auth-api
update
11,266
LDU_FT/quasipedia/swaggery/check_path_consistency
LDU_FT
[ "<BEGIN>\n## `operations`", "Decorator for marking Resource methods as HTTP operations.", " This decorator does a number of different things:\n - It transfer onto itself docstring and annotations from the decorated\n method, so as to be \"transparent\" with regards to introspection.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path_consistency 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 check_path_consistency API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Path arguments must be consistent for all methods.
"Path arguments must be consistent for all methods."
67
false
quasipedia/swaggery
check_path_consistency
11,267
LDU_FT/aktaylor08/RosbagPandas/get_topics
LDU_FT
[ "<BEGIN>\n## `buildParser`", "Builds the parser for reading the command line arguments\n<END>", "<BEGIN>\n## `parse_series_args`", "Return which topics and which field keys need to be examined\n for plotting\n<END>", "<BEGIN>\n## `bag_to_dataframe`", "Read in a rosbag file and create a pandas data fram...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_topics API. 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_topics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns the names of all of the topics in the bag, and prints them to stdout if requested
"Returns the names of all of the topics in the bag, and prints them\n to stdout if requested"
28
false
aktaylor08/RosbagPandas
get_topics
11,268
LDU_FT/ksbg/sparklanes/run
LDU_FT
[ "<BEGIN>\n## `build_lane_from_yaml`", "Builds a `sparklanes.Lane` object from a YAML definition file.", " Parameters\n ----------\n path: str\n Path to the YAML definition file", " Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Overwrites `threading.Thread.run`, to allow handling of exceptions thrown by threads from within the main app.
"Overwrites `threading.Thread.run`, to allow handling of exceptions thrown by threads\n from within the main app."
62
false
ksbg/sparklanes
run
11,269
LDU_FT/NetEaseGame/ATX/to_string
LDU_FT
[ "<BEGIN>\n## `main`", "Args:\n - forward(int): local forward port\n - host(string): local forward host\n - listen(int): listen port\n<END>", "<BEGIN>\n## `_init_items`", ".---------------.\n | Ctrl | Screen |\n |------| |\n | Code | |\n | | ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Accept unicode(py2) or bytes(py3) Returns: py2 type: str py3 type: str
"Accept unicode(py2) or bytes(py3)\n\n Returns:\n py2 type: str\n py3 type: str"
230
false
NetEaseGame/ATX
to_string
11,270
LDU_FT/ryanpetrello/cleaver/get_experiment
LDU_FT
[ "<BEGIN>\n## `all_experiments`", "Retrieve every available experiment.", " Returns a list of ``cleaver.experiment.Experiment``s\n<END>", "<BEGIN>\n## `get_experiment`", "Retrieve an experiment by its name and variants (assuming it exists).", " :param name a unique string name for the experim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_experiment API. 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_experiment API. 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...
Retrieve an experiment by its name and variants (assuming it exists). :param name a unique string name for the experiment :param variants a list of strings, each with a unique variant name Returns a ``cleaver.experiment.Experiment`` or ``None``
"Retrieve an experiment by its name and variants (assuming it exists).\n\n :param name a unique string name for the experiment\n :param variants a list of strings, each with a unique variant name\n\n Returns a ``cleaver.experiment.Experiment`` or ``None``"
70
false
ryanpetrello/cleaver
get_experiment
11,271
LDU_FT/daviddrysdale/python-phonenumbers/_example_short_number
LDU_FT
[ "<BEGIN>\n## `_get_metadata_for_region`", "The metadata needed by this class is the same for all regions\n sharing the same country calling code. Therefore, we return the\n metadata for \"main\" region for this country calling code.\n<END>", "<BEGIN>\n## `_maybe_create_new_template`", "Returns True if a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _example_short_number 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 _example_short_number API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Gets a valid short number for the specified region. Arguments: region_code -- the region for which an example short number is needed. Returns a valid short number for the specified region. Returns an empty string when the metadata does not contain such information.
"Gets a valid short number for the specified region.\n\n Arguments:\n region_code -- the region for which an example short number is needed.\n\n Returns a valid short number for the specified region. Returns an empty\n string when the metadata does not contain such information."
501
false
daviddrysdale/python-phonenumbers
_example_short_number
11,272