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/gristlabs/asttokens/offset_to_line | LDU_FT | [
"<BEGIN>\n## `get_token_from_offset`",
"Returns the token containing the given character offset (0-based position in source text),\n or the preceeding token if the position is between tokens.\n<END>",
"<BEGIN>\n## `get_token`",
"Returns the token containing the given (lineno, col_offset) position, or the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset_to_line API.
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 offset_to_line API.
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... | Converts 0-based character offset to pair (line, col) of 1-based line and 0-based column
numbers. | "Converts 0-based character offset to pair (line, col) of 1-based line and 0-based column\n numbers." | 46 | false | gristlabs/asttokens | offset_to_line | 18,273 | |
LDU_FT/limpyd/redis-limpyd/_collection | LDU_FT | [
"<BEGIN>\n## `_make_command_method`",
"Return a function which call _call_command for the given name.\n Used to bind redis commands to our own calls\n<END>",
"<BEGIN>\n## `_call_command`",
"Check if the command to be executed is a modifier, to connect the object.\n Then call _traverse_command.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collection API.
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 _collection API.
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... | Effectively retrieve data according to lazy_collection. | "Effectively retrieve data according to lazy_collection." | 408 | false | limpyd/redis-limpyd | _collection | 18,274 | |
LDU_FT/yatiml/yatiml/get_single_node | LDU_FT | [
"<BEGIN>\n## `class_subobjects`",
"Find the aggregated subobjects of an object.",
" These are the public attributes.",
" Args:\n class_: The class whose subobjects to return.",
" Yields:\n Tuples (name, type, required) describing subobjects.\n<END>",
"<BEGIN>\n## `__sweeten`",
"Ap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Hook used when loading a single document.
This is the hook we use to hook yatiml into ruamel.yaml. It is \
called by the yaml libray when the user uses load() to load a \
YAML document.
Returns:
A processed node representing the document. | "Hook used when loading a single document.\n\n This is the hook we use to hook yatiml into ruamel.yaml. It is \\\n called by the yaml libray when the user uses load() to load a \\\n YAML document.\n\n Returns:\n A processed node representing the document." | 224 | false | yatiml/yatiml | get_single_node | 18,275 | |
LDU_FT/BenjaminSchubert/NitPycker/addSkip | LDU_FT | [
"<BEGIN>\n## `add_result`",
"Adds the given result to the list",
" :param _type: type of the state of the test (TestState.failure, TestState.error, ...)\n :param test: the test\n :param exc_info: additional execution information\n<END>",
"<BEGIN>\n## `addSuccess`",
"Transforms the test ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addSkip API.
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 addSkip API.
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... | registers a test as skipped
:param test: test to register
:param reason: reason why the test was skipped | "registers a test as skipped\n\n :param test: test to register\n :param reason: reason why the test was skipped" | 53 | false | BenjaminSchubert/NitPycker | addSkip | 18,276 | |
LDU_FT/Chilipp/psy-simple/try_and_error | LDU_FT | [
"<BEGIN>\n## `try_and_error`",
"Apply multiple validation functions",
" Parameters\n ----------\n ``*funcs``\n Validation functions to test",
" Returns\n -------\n function\n<END>",
"<BEGIN>\n## `validate_text`",
"Validate a text formatoption",
" Parameters\n ----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_and_error API.
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 try_and_error API.
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... | Apply multiple validation functions
Parameters
----------
``*funcs``
Validation functions to test
Returns
-------
function | "Apply multiple validation functions\n\n Parameters\n ----------\n ``*funcs``\n Validation functions to test\n\n Returns\n -------\n function" | 183 | false | Chilipp/psy-simple | try_and_error | 18,277 | |
LDU_FT/raymondEhlers/pachyderm/project | LDU_FT | [
"<BEGIN>\n## `get_histograms_in_list`",
"Get histograms from the file and make them available in a dict.",
" Lists are recursively explored, with all lists converted to dictionaries, such that the return\n dictionaries which only contains hists and dictionaries of hists (ie there are no ROOT ``TCollection... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project API.
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 project API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Perform the requested projection(s).
Note:
All cuts on the original histograms will be reset when this function is completed.
Args:
kwargs (dict): Additional named args to be passed to projection_name(...) and output_key_name(...)
Returns:
The projected hist... | "Perform the requested projection(s).\n\n Note:\n All cuts on the original histograms will be reset when this function is completed.\n\n Args:\n kwargs (dict): Additional named args to be passed to projection_name(...) and output_key_name(...)\n Returns:\n The proje... | 229 | false | raymondEhlers/pachyderm | project | 18,278 | |
LDU_FT/abilian/abilian-core/_setup_default_permissions | LDU_FT | [
"<BEGIN>\n## `require_flush`",
"Decorator for methods that need to query security.",
" It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>",
"<BEGIN>\n## `query_pa_no_flush`",
"Query for a :class:`PermissionAssignment` using `session` without any\n `f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_default_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_default_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Separate method to conveniently call it from scripts for example. | "Separate method to conveniently call it from scripts for example." | 429 | false | abilian/abilian-core | _setup_default_permissions | 18,279 | |
LDU_FT/morse-talk/morse-talk/_create_x_y | LDU_FT | [
"<BEGIN>\n## `decode`",
"Converts a string of morse code into English message",
" The encoded message can also be decoded using the same morse chart\n backwards.",
" >>> code = '... --- ...'\n >>> decode(code)\n 'SOS'\n<END>",
"<BEGIN>\n## `grouper`",
"grouper(3, 'ABCDEFG', 'x') --> ABC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_x_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_x_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 extra... | Create 2 lists
x: time (as unit of dot (dit)
y: bits
from a list of bit
>>> l = [1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1]
>>> x, y = _create_x_y(l)
>>> x
[-1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, ... | "Create 2 lists\n x: time (as unit of dot (dit)\n y: bits\n from a list of bit\n\n >>> l = [1, 0, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1]\n >>> x, y = _create_x_y(l)\n >>> x\n [-1, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11,... | 111 | false | morse-talk/morse-talk | _create_x_y | 18,280 | |
LDU_FT/lionel/counterparts/register_options | LDU_FT | [
"<BEGIN>\n## `counterpart_found`",
"The sunny-day action is to echo the counterpart to stdout.",
" :param string: The lookup string (UNUSED)\n :param counterpart: The counterpart that the string mapped to\n :param options: ArgumentParser or equivalent to provide options.no_newline\n :param rc_so_fa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | This class method is called so that ConfigFromFile can tell the
command-line parser to register the options specific to the class.
:param this_class: Not used (required by @classmethod interface)
:param argparser: The argparser instance being prepared for use. | "This class method is called so that ConfigFromFile can tell the\n command-line parser to register the options specific to the class.\n\n :param this_class: Not used (required by @classmethod interface)\n :param argparser: The argparser instance being prepared for use." | 20 | false | lionel/counterparts | register_options | 18,281 | |
LDU_FT/jupyterhub/kubespawner/get_k8s_model | LDU_FT | [
"<BEGIN>\n## `make_pod`",
"Make a k8s pod specification for running a user notebook.",
" Parameters\n ----------\n name:\n Name of pod. Must be unique within the namespace the object is\n going to be created in. Must be a valid DNS label.\n image:\n Image specification - usually... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_k8s_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_k8s_model API.
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... | Returns an instance of type specified model_type from an model instance or
represantative dictionary. | "Returns an instance of type specified model_type from an model instance or\n represantative dictionary." | 98 | false | jupyterhub/kubespawner | get_k8s_model | 18,282 | |
LDU_FT/SMTG-UCL/sumo/broaden_eps | LDU_FT | [
"<BEGIN>\n## `kpath_from_seekpath`",
"r\"\"\"Convert seekpath-formatted kpoints path to sumo-preferred format.",
" If 'GAMMA' is used as a label this will be replaced by '\\Gamma'.",
" Args:\n seekpath (list): A :obj:`list` of 2-tuples containing the labels at\n each si... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the broaden_eps API.
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 broaden_eps API.
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... | Apply gaussian broadening to the dielectric response.
Args:
dielectric_data (tuple): The high-frequency dielectric data, following
the same format as
:attr:`pymatgen.io.vasp.outputs.Vasprun.dielectric`.
This is a :obj:`tuple` containing the energy, the real part of the
... | "Apply gaussian broadening to the dielectric response.\n\n Args:\n dielectric_data (tuple): The high-frequency dielectric data, following\n the same format as\n :attr:`pymatgen.io.vasp.outputs.Vasprun.dielectric`.\n This is a :obj:`tuple` containing the energy, the real part o... | 449 | false | SMTG-UCL/sumo | broaden_eps | 18,283 | |
LDU_FT/fracpete/python-weka-wrapper/next | LDU_FT | [
"<BEGIN>\n## `next`",
"Reads the next dataset row.",
" :return: the next row\n :rtype: Instance\n<END>",
"<BEGIN>\n## `main`",
"Runs a associator from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>",
"<BEGIN>\n## `next`",
"Returns the next rule... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Returns the next row from the Instances object.
:return: the next Instance object
:rtype: Instance | "Returns the next row from the Instances object.\n\n :return: the next Instance object\n :rtype: Instance" | 68 | false | fracpete/python-weka-wrapper | next | 18,284 | |
LDU_FT/rflamary/POT/empirical_sinkhorn_divergence | LDU_FT | [
"<BEGIN>\n## `plot1D_mat`",
"Plot matrix M with the source and target 1D distribution",
" Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.",
" Parameters\n ----------\n a : np.array, shape (na,)\n Sour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empirical_sinkhorn_divergence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the empirical_sinkhorn_divergence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Compute the sinkhorn divergence loss from empirical data
The function solves the following optimization problems and return the
sinkhorn divergence :math:`S`:
.. math::
W &= \min_\gamma <\gamma,M>_F + reg\cdot\Omega(\gamma)
W_a &= \min_{\gamma_a} <\gamma_a,M_a>_F + reg\cdot\Omega(\gamma_... | "Compute the sinkhorn divergence loss from empirical data\n\n The function solves the following optimization problems and return the\n sinkhorn divergence :math:`S`:\n\n .. math::\n\n W &= \\min_\\gamma <\\gamma,M>_F + reg\\cdot\\Omega(\\gamma)\n\n W_a &= \\min_{\\gamma_a} <\\gamma_a,M_a>_F + reg... | 711 | false | rflamary/POT | empirical_sinkhorn_divergence | 18,285 | |
LDU_FT/alorence/pysvg-py3/getBottomRight | LDU_FT | [
"<BEGIN>\n## `getAllElementsOfHirarchy`",
"returns ALL elements of the complete hirarchy as a flat list\n<END>",
"<BEGIN>\n## `getElementByID`",
"returns an element with the specific id and the position of that element within the svg elements array\n<END>",
"<BEGIN>\n## `getElementsByType`",
"retrieves al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getBottomRight API.
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 getBottomRight API.
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... | Retrieves a tuple with the x,y coordinates of the lower right point of the rect.
Requires the coordinates, width, height to be numbers | "Retrieves a tuple with the x,y coordinates of the lower right point of the rect. \n Requires the coordinates, width, height to be numbers" | 75 | false | alorence/pysvg-py3 | getBottomRight | 18,286 | |
LDU_FT/lexich/yandex-disk-webdav/downloadTo | LDU_FT | [
"<BEGIN>\n## `_`",
"Normalize path to unicode\n :param path: path\n :return: normalize path",
" >>> _(None)\n u''\n >>> _(u(\"test1\"))\n u'test1'\n >>> _(\"test2\")\n u'test2'\n<END>",
"<BEGIN>\n## `remote`",
"Normalize remote href\n :param href: remote path\n :return: normali... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the downloadTo API.
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 downloadTo API.
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... | Download file to localstorage
:param href: remote path
:param localpath: local path
:return: response | "Download file to localstorage\n :param href: remote path\n :param localpath: local path\n :return: response" | 16 | false | lexich/yandex-disk-webdav | downloadTo | 18,287 | |
LDU_FT/xigt/xigt/referents | LDU_FT | [
"<BEGIN>\n## `expand`",
"Expand a reference expression to individual spans.\n Also works on space-separated ID lists, although a sequence of space\n characters will be considered a delimiter.",
" >>> expand('a1')\n 'a1'\n >>> expand('a1[3:5]')\n 'a1[3:5]'\n >>> expand('a1[3:5+6:7]')\n 'a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the referents API.
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 referents API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of ids denoting objects (tiers or items) in `igt` that
are referred by the object denoted by `id` using a reference
attribute in `refattrs`. If `refattrs` is None, then consider all
known reference attributes for the type of object denoted by _id_.
In other words, if 'b1' refers to 'a1' us... | "Return a list of ids denoting objects (tiers or items) in `igt` that\n are referred by the object denoted by `id` using a reference\n attribute in `refattrs`. If `refattrs` is None, then consider all\n known reference attributes for the type of object denoted by _id_.\n In other words, if 'b1' refers to 'a... | 19 | false | xigt/xigt | referents | 18,288 | |
LDU_FT/ratcave/wavefront_reader/face_index | LDU_FT | [
"<BEGIN>\n## `face_index`",
"Takes an MxNx3 array and returns a 2D vertices and MxN face_indices arrays\n<END>",
"<BEGIN>\n## `fan_triangulate`",
"Return an array of vertices in triangular order using a fan triangulation algorithm.\n<END>",
"<BEGIN>\n## `from_dicts`",
"Returns a wavefront .obj string usin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the face_index API.
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 face_index API.
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... | Takes an MxNx3 array and returns a 2D vertices and MxN face_indices arrays | "Takes an MxNx3 array and returns a 2D vertices and MxN face_indices arrays" | 18 | false | ratcave/wavefront_reader | face_index | 18,289 | |
LDU_FT/jonhadfield/creds/login_defs | LDU_FT | [
"<BEGIN>\n## `create_plan`",
"Determine what changes are required.",
" args:\n existing_users (Users): List of discovered users\n proposed_users (Users): List of proposed users\n purge_undefined (bool): Remove discovered users that have not been defined in proposed users list\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login_defs API.
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 login_defs API.
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... | Discover the minimum and maximum UID number. | "Discover the minimum and maximum UID number." | 71 | false | jonhadfield/creds | login_defs | 18,290 | |
LDU_FT/akesterson/dpath-python/_inner_search | LDU_FT | [
"<BEGIN>\n## `path_types`",
"Given a list of path name elements, return anew list of [name, type] path components, given the reference object.\n<END>",
"<BEGIN>\n## `validate`",
"Validate that all the keys in the given list of path components are valid, given that they do not contain the separator, and match ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _inner_search API.
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 _inner_search API.
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... | Search the object paths that match the glob. | "Search the object paths that match the glob." | 44 | false | akesterson/dpath-python | _inner_search | 18,291 | |
LDU_FT/anjishnu/ask-alexa-pykit/load_builtin_slots | LDU_FT | [
"<BEGIN>\n## `read_from_user`",
"Helper function to prompt user for input of a specific type \n e.g. float, str, int \n Designed to work with both python 2 and 3 \n Yes I know this is ugly.\n<END>",
"<BEGIN>\n## `load_builtin_slots`",
"Helper function to load builtin slots from the data location\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_slots API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_builtin_slots 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... | Helper function to load builtin slots from the data location | "Helper function to load builtin slots from the data location" | 32 | false | anjishnu/ask-alexa-pykit | load_builtin_slots | 18,292 | |
LDU_FT/jazzband/sorl-thumbnail/_create_thumbnail | LDU_FT | [
"<BEGIN>\n## `is_valid_image`",
"Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>",
"<BEGIN>\n## `parse_geometry`",
"Parses a geometry string syntax and returns a (width, height) tuple\n<END>",
"<BEGIN>\n## `parse_crop`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_thumbnail API.
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 _create_thumbnail API.
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 the thumbnail by using default.engine | "Creates the thumbnail by using default.engine" | 68 | false | jazzband/sorl-thumbnail | _create_thumbnail | 18,293 | |
LDU_FT/jantman/pypi-download-stats/parse_args | LDU_FT | [
"<BEGIN>\n## `_path_for_file`",
"Generate the path on disk for a specified project and date.",
" :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_args API.
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 parse_args API.
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... | Use Argparse to parse command-line arguments.
:param argv: list of arguments to parse (``sys.argv[1:]``)
:type argv: ``list``
:return: parsed arguments
:rtype: :py:class:`argparse.Namespace` | "Use Argparse to parse command-line arguments.\n\n :param argv: list of arguments to parse (``sys.argv[1:]``)\n :type argv: ``list``\n :return: parsed arguments\n :rtype: :py:class:`argparse.Namespace`" | 135 | false | jantman/pypi-download-stats | parse_args | 18,294 | |
LDU_FT/stephantul/somber/_get_bmu | LDU_FT | [
"<BEGIN>\n## `_calculate_influence`",
"Pre-calculate the influence for a given value of sigma.",
" The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).",
" Parameters\n ----------\n neighborhood : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bmu API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bmu API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get indices of bmus, sorted by their distance from input. | "Get indices of bmus, sorted by their distance from input." | 123 | false | stephantul/somber | _get_bmu | 18,295 | |
LDU_FT/robotools/fontMath/_polarDecomposeInterpolationTransformation | LDU_FT | [
"<BEGIN>\n## `_openTypeOS2WidthClassFormatter`",
">>> _openTypeOS2WidthClassFormatter(-2)\n 1\n >>> _openTypeOS2WidthClassFormatter(0)\n 1\n >>> _openTypeOS2WidthClassFormatter(5.4)\n 5\n >>> _openTypeOS2WidthClassFormatter(9.6)\n 9\n >>> _openTypeOS2WidthClassFormatter(12)\n 9\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _polarDecomposeInterpolationTransformation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _polarDecomposeInterpolationTransformation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | Interpolate using the MathTransform method. | "Interpolate using the MathTransform method." | 25 | false | robotools/fontMath | _polarDecomposeInterpolationTransformation | 18,296 | |
LDU_FT/BerkeleyAutomation/autolab_core/dump | LDU_FT | [
"<BEGIN>\n## `copy`",
"Returns a copy of the RigidTransform.",
" Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>",
"<BEGIN>\n## `_check_valid_rotation`",
"Checks that the given rotation matrix is valid.\n<END>",
"<BEGIN>\n## `_check_val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Dump a numpy.ndarray to file stream.
This works exactly like the usual `json.dump()` function,
but it uses our custom serializer. | "Dump a numpy.ndarray to file stream.\n\n This works exactly like the usual `json.dump()` function,\n but it uses our custom serializer." | 518 | false | BerkeleyAutomation/autolab_core | dump | 18,297 | |
LDU_FT/oceanprotocol/squid-py/fulfill_access_secret_store_condition | LDU_FT | [
"<BEGIN>\n## `get_requests_session`",
"Set connection pool maxsize and block value to avoid `connection pool full` warnings.",
" :return: requests session\n<END>",
"<BEGIN>\n## `request_tokens`",
"Request an amount of tokens for a particular address.\n This transaction has gas cost",
" :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fulfill_access_secret_store_condition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fulfill_access_secret_store_condition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | Fulfill the access condition.
:param event: AttributeDict with the event data.
:param agreement_id: id of the agreement, hex str
:param did: DID, str
:param service_agreement: ServiceAgreement instance
:param consumer_address: ethereum account address of consumer, hex str
:param publisher_accou... | "Fulfill the access condition.\n\n :param event: AttributeDict with the event data.\n :param agreement_id: id of the agreement, hex str\n :param did: DID, str\n :param service_agreement: ServiceAgreement instance\n :param consumer_address: ethereum account address of consumer, hex str\n :param publish... | 417 | false | oceanprotocol/squid-py | fulfill_access_secret_store_condition | 18,298 | |
LDU_FT/AguaClara/aguaclara/flow_swamee | LDU_FT | [
"<BEGIN>\n## `density_water`",
"Return the density of water at a given temperature.",
" If given units, the function will automatically convert to Kelvin.\n If not given units, the function will assume Kelvin.\n<END>",
"<BEGIN>\n## `viscosity_kinematic`",
"Return the kinematic viscosity of water at a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flow_swamee API.
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 flow_swamee API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the flow rate for turbulent flow with only major losses. | "Return the flow rate for turbulent flow with only major losses." | 554 | false | AguaClara/aguaclara | flow_swamee | 18,299 | |
LDU_FT/shaldengeki/python-mal/parse_stats | LDU_FT | [
"<BEGIN>\n## `logged_in`",
"Checks the logged-in status of the current session. \n Expensive (requests a page), so use sparingly! Best practice is to try a request and catch an UnauthorizedError.",
" :rtype: bool\n :return: Whether or not the current session is logged-in.\n<END>",
"<BEGIN>\n## `login... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_stats API.
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 parse_stats API.
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... | Parses the DOM and returns media statistics attributes.
:type media_page: :class:`bs4.BeautifulSoup`
:param media_page: MAL media stats page's DOM
:rtype: dict
:return: media stats attributes. | "Parses the DOM and returns media statistics attributes.\n\n :type media_page: :class:`bs4.BeautifulSoup`\n :param media_page: MAL media stats page's DOM\n\n :rtype: dict\n :return: media stats attributes." | 152 | false | shaldengeki/python-mal | parse_stats | 18,300 | |
LDU_FT/aisthesis/pynance/metrics | LDU_FT | [
"<BEGIN>\n## `optimize`",
"Return parameters for portfolio optimization.",
" Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.",
" Returns\n ---------\n a : ndarray\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metrics API.
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 metrics API.
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... | Basic metrics for a specific option.
Parameters
----------
opttype : str ('call' or 'put')
strike : numeric
Strike price.
expiry : date-like
Expiration date. Can be a :class:`datetime.datetime` or
a string that :mod:`pandas` can interpret as s... | "Basic metrics for a specific option.\n\n Parameters\n ----------\n opttype : str ('call' or 'put')\n strike : numeric\n Strike price.\n expiry : date-like\n Expiration date. Can be a :class:`datetime.datetime` or\n a string that :mod:`pandas` can inte... | 231 | false | aisthesis/pynance | metrics | 18,301 | |
LDU_FT/ethereum/py-trie/next_batch | LDU_FT | [
"<BEGIN>\n## `calc_root`",
"Obtain the merkle root of a given key/value/branch set.\n Can be used to validate a merkle proof or compute it's value from data.",
" :param key: the keypath to decide the ordering of the sibling nodes in the branch\n :param value: the value (or leaf) that starts the merkle ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next_batch API.
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 next_batch API.
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... | Return the next requests that should be dispatched. | "Return the next requests that should be dispatched." | 61 | false | ethereum/py-trie | next_batch | 18,302 | |
LDU_FT/zyga/libpci/pci_lookup_name2 | LDU_FT | [
"<BEGIN>\n## `Function`",
"Decorator factory for creating callables for native functions.",
" Decorator factory for constructing relatively-nicely-looking callables that\n call into existing native functions exposed from a dynamically-linkable\n library.",
" :param library:\n The library to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pci_lookup_name2 API.
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 pci_lookup_name2 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Conversion of PCI ID's to names (according to the pci.ids file).
char *pci_lookup_name(
struct pci_access *a, char *buf, int size, int flags, ...
) PCI_ABI;
This is a variant of pci_lookup_name() that gets called with two arguments.
It is required because ctypes doesn't support varadic functio... | "Conversion of PCI ID's to names (according to the pci.ids file).\n\n char *pci_lookup_name(\n struct pci_access *a, char *buf, int size, int flags, ...\n ) PCI_ABI;\n\n This is a variant of pci_lookup_name() that gets called with two arguments.\n It is required because ctypes doesn't support varadic... | 29 | false | zyga/libpci | pci_lookup_name2 | 18,303 | |
LDU_FT/iskandr/serializable/read_json_file | LDU_FT | [
"<BEGIN>\n## `return_primitive`",
"Decorator which wraps a single argument function to ignore any\n arguments of primitive type (simply returning them unmodified).\n<END>",
"<BEGIN>\n## `write_json_file`",
"Serialize this VariantCollection to a JSON representation and write it\n out to a text file.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_json_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_json_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 ex... | Construct a VariantCollection from a JSON file. | "Construct a VariantCollection from a JSON file." | 20 | false | iskandr/serializable | read_json_file | 18,304 | |
LDU_FT/alvations/pywsd/sim | LDU_FT | [
"<BEGIN>\n## `similarity_by_path`",
"Returns maximum path similarity between two senses.",
" :param sense1: A synset.\n :param sense2: A synset.\n :param option: String, one of ('path', 'wup', 'lch').\n :return: A float, similarity measurement.\n<END>",
"<BEGIN>\n## `similarity_by_infocontent`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sim API.
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 sim API.
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... | Calculates similarity based on user's choice.
:param sense1: A synset.
:param sense2: A synset.
:param option: String, one of ('path', 'wup', 'lch', 'res', 'jcn', 'lin').
:return: A float, similarity measurement. | "Calculates similarity based on user's choice.\n\n :param sense1: A synset.\n :param sense2: A synset.\n :param option: String, one of ('path', 'wup', 'lch', 'res', 'jcn', 'lin').\n :return: A float, similarity measurement." | 83 | false | alvations/pywsd | sim | 18,305 | |
LDU_FT/racker/torment/evert | LDU_FT | [
"<BEGIN>\n## `up`",
"Start the specified docker-compose services.",
" Parameters\n ----------",
" :``services``: a list of docker-compose service names to start (must be\n defined in docker-compose.yml)",
" Return Value(s)\n ---------------",
" The integer status of ``d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the evert API.
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 evert API.
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... | Evert dictionaries with tuples.
Iterates over the list of dictionaries and everts them with their tuple
values. For example:
``[ { 'a': ( 1, 2, ), }, ]``
becomes
``[ ( { 'a': 1, }, ), ( { 'a', 2, }, ) ]``
The resulting iterable contains the same number of tuples as the
initial iterable... | "Evert dictionaries with tuples.\n\n Iterates over the list of dictionaries and everts them with their tuple\n values. For example:\n\n ``[ { 'a': ( 1, 2, ), }, ]``\n\n becomes\n\n ``[ ( { 'a': 1, }, ), ( { 'a', 2, }, ) ]``\n\n The resulting iterable contains the same number of tuples as the\n ini... | 117 | false | racker/torment | evert | 18,306 | |
LDU_FT/jpscaletti/solution/iteritems | LDU_FT | [
"<BEGIN>\n## `as_select`",
"Render the field as a `<select>` element.",
" :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>",
"<BEGIN>\n## `_clean_data`",
"This overwrite is neccesary for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteritems API.
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 iteritems API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return an iterator over the (key, value) pairs of a dictionary. | "Return an iterator over the (key, value) pairs of a dictionary." | 57 | false | jpscaletti/solution | iteritems | 18,307 | |
LDU_FT/carter-j-h/iterable-python-wrapper/update_user | LDU_FT | [
"<BEGIN>\n## `api_call`",
"This is our generic api call function. We will route all calls except\n\t\trequests that do not return JSON ('Export' and 'Experiment Metrics' are\n\t\texamples where this is the case). This is beneficial because:\n\t\t\t1. Allows for easier debugging if a request fails\n\t\t\t2. Curr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_user API.
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 update_user API.
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... | The Iterable 'User Update' api updates a user profile with new data
fields. Missing fields are not deleted and new data is merged.
The body of the request takes 4 keys:
1. email-- in the form of a string -- used as the unique identifier by
the Iterable database.
2. data fields-- in the form of an object... | "The Iterable 'User Update' api updates a user profile with new data \n\t\tfields. Missing fields are not deleted and new data is merged.\n\n\t\tThe body of the request takes 4 keys:\n\t\t\t1. email-- in the form of a string -- used as the unique identifier by\n\t\t\t\tthe Iterable database.\n\t\t\t2. data fields-- in ... | 25 | false | carter-j-h/iterable-python-wrapper | update_user | 18,308 | |
LDU_FT/xflows/rdm/dataset | LDU_FT | [
"<BEGIN>\n## `cv_split`",
"Returns a list of pairs (train_context, test_context), one for each cross-validation fold.",
" The split is stratified.",
" :param context: DBContext to be split\n :param folds: number of folds\n :param random_seed: random seed to be used",
" :return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataset API.
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 dataset API.
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 DBContext as a list of interpretations, i.e., a list of
facts true for each example in the format for TreeLiker. | "Returns the DBContext as a list of interpretations, i.e., a list of\n facts true for each example in the format for TreeLiker." | 102 | false | xflows/rdm | dataset | 18,309 | |
LDU_FT/ReadabilityHoldings/python-readability-api/get_bookmark | LDU_FT | [
"<BEGIN>\n## `cast_datetime_filter`",
"Cast a datetime filter value.",
" :param value: string representation of a value that needs to be casted to\n a `datetime` object.\n<END>",
"<BEGIN>\n## `filter_args_to_dict`",
"Cast and validate filter args.",
" :param filter_dict: Filter kwargs\n :p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bookmark API.
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_bookmark API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get a single bookmark represented by `bookmark_id`.
The requested bookmark must belong to the current user.
:param bookmark_id: ID of the bookmark to retrieve. | "Get a single bookmark represented by `bookmark_id`.\n\n The requested bookmark must belong to the current user.\n\n :param bookmark_id: ID of the bookmark to retrieve." | 83 | false | ReadabilityHoldings/python-readability-api | get_bookmark | 18,310 | |
LDU_FT/iamjarret/pystockfish/_get_info_singlevalue_subfield | LDU_FT | [
"<BEGIN>\n## `move`",
"Advance game by single move, if possible.",
" @return: logical indicator if move was performed.\n<END>",
"<BEGIN>\n## `setposition`",
"Move list is a list of moves (i.e. ['e2e4', 'e7e5', ...]) each entry as a string. Moves must be in full algebraic notation.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_info_singlevalue_subfield API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_info_singlevalue_subfield API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Helper function for _bestmove_get_info.
Extracts (integer) values for single value fields. | "Helper function for _bestmove_get_info.\n\n Extracts (integer) values for single value fields." | 25 | false | iamjarret/pystockfish | _get_info_singlevalue_subfield | 18,311 | |
LDU_FT/uber/tchannel-python/write | LDU_FT | [
"<BEGIN>\n## `should_retry_on_error`",
"rules for retry",
" :param error:\n ProtocolException that returns from Server\n<END>",
"<BEGIN>\n## `client_for`",
"Build a synchronous client class for the given Thrift service.",
" The generated class accepts a TChannelSyncClient and an optio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Writes the given message up the wire.
Does not expect a response back for the message.
:param message:
Message to write. | "Writes the given message up the wire.\n\n Does not expect a response back for the message.\n\n :param message:\n Message to write." | 422 | false | uber/tchannel-python | write | 18,312 | |
LDU_FT/jssimporter/python-jss/indent_xml | LDU_FT | [
"<BEGIN>\n## `get`",
"GET a url, handle errors, and return an etree.",
" In general, it is better to use a higher level interface for\n API requests, like the search methods on this class, or the\n JSSObjects themselves.",
" Args:\n url_path: String API endpoint path to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent_xml API.
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 indent_xml API.
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... | Indent an xml element object to prepare for pretty printing.
To avoid changing the contents of the original Element, it is
recommended that a copy is made to send to this function.
Args:
elem: Element to indent.
level: Int indent level (default is 0)
more_sibs: Bool, whether to ant... | "Indent an xml element object to prepare for pretty printing.\n\n To avoid changing the contents of the original Element, it is\n recommended that a copy is made to send to this function.\n\n Args:\n elem: Element to indent.\n level: Int indent level (default is 0)\n more_sibs: Bool, wheth... | 331 | false | jssimporter/python-jss | indent_xml | 18,313 | |
LDU_FT/spacetelescope/stsci.tools/_isInstalled | LDU_FT | [
"<BEGIN>\n## `stsci`",
"For STScI GEIS files, need to do extra steps.\n<END>",
"<BEGIN>\n## `stsci2`",
"For STScI GEIS files, need to do extra steps.\n<END>",
"<BEGIN>\n## `readgeis`",
"Input GEIS files \"input\" will be read and a HDUList object will\n be returned.",
" The user can use the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _isInstalled API.
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 _isInstalled API.
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 True if the given file name is located in an
installed area (versus a user-owned file) | "Return True if the given file name is located in an\n installed area (versus a user-owned file)" | 917 | false | spacetelescope/stsci.tools | _isInstalled | 18,314 | |
LDU_FT/mikhaildubov/AST-text-analysis/traverse_depth_first_pre_order | LDU_FT | [
"<BEGIN>\n## `traverse_depth_first_pre_order`",
"Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.",
" Based on Abouelhoda et al. (2004).\n<END>",
"<BEGIN>\n## `traverse_depth_first_post_order`",
"Visits the internal \"nodes\" of the enhanced suffix array in depth-f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_depth_first_pre_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the traverse_depth_first_pre_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Visits the internal "nodes" of the enhanced suffix array in depth-first pre-order.
Based on Abouelhoda et al. (2004). | "Visits the internal \"nodes\" of the enhanced suffix array in depth-first pre-order.\n\n Based on Abouelhoda et al. (2004)." | 52 | false | mikhaildubov/AST-text-analysis | traverse_depth_first_pre_order | 18,315 | |
LDU_FT/raiden-network/raiden-contracts/check_permission_safety | LDU_FT | [
"<BEGIN>\n## `check_permission_safety`",
"Check if the file at the given path is safe to use as a state file.",
" This checks that group and others have no permissions on the file and that the current user is\n the owner.\n<END>",
"<BEGIN>\n## `get_private_key`",
"Open a JSON-encoded private key and r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permission_safety 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_permission_safety API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Check if the file at the given path is safe to use as a state file.
This checks that group and others have no permissions on the file and that the current user is
the owner. | "Check if the file at the given path is safe to use as a state file.\n\n This checks that group and others have no permissions on the file and that the current user is\n the owner." | 76 | false | raiden-network/raiden-contracts | check_permission_safety | 18,316 | |
LDU_FT/balloob/pychromecast/receive_message | LDU_FT | [
"<BEGIN>\n## `new_connection_status`",
"Handle reception of a new ConnectionStatus.\n<END>",
"<BEGIN>\n## `register_listener`",
"Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_message API.
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 receive_message API.
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... | Called when a receiver-message has been received. | "Called when a receiver-message has been received." | 145 | false | balloob/pychromecast | receive_message | 18,317 | |
LDU_FT/boronine/discipline/delete_object | LDU_FT | [
"<BEGIN>\n## `word`",
"This function generates a fake word by creating between two and three\n random syllables and then joining them together.\n<END>",
"<BEGIN>\n## `save_object`",
"Save an object with Discipline",
" Only argument is a Django object. This function saves the object\n (r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_object API.
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_object API.
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... | Delete an object with Discipline
Only argument is a Django object. Analogous to Editor.save_object. | "Delete an object with Discipline\n\n Only argument is a Django object. Analogous to Editor.save_object." | 49 | false | boronine/discipline | delete_object | 18,318 | |
LDU_FT/mrjoes/sockjs-tornado/remove | LDU_FT | [
"<BEGIN>\n## `get_conn_info`",
"Return `ConnectionInfo` object from current transport\n<END>",
"<BEGIN>\n## `add`",
"Add session to the container.",
" `session`\n Session object\n<END>",
"<BEGIN>\n## `remove`",
"Remove session object from the container",
" `session_id`\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
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 remove API.
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 ... | Remove session object from the container
`session_id`
Session identifier | "Remove session object from the container\n\n `session_id`\n Session identifier" | 50 | false | mrjoes/sockjs-tornado | remove | 18,319 | |
LDU_FT/vertexproject/synapse/_trig_auth_check | LDU_FT | [
"<BEGIN>\n## `openDatFile`",
"Open a file-like object using a pkg relative path.",
" Example:",
" fd = openDatFile('foopkg.barpkg/wootwoot.bin')\n<END>",
"<BEGIN>\n## `scrape`",
"Scrape types from a blob of text and return node tuples.",
" Args:\n text (str): Text to scrape.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _trig_auth_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _trig_auth_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 ... | Check that, as a non-admin, may only manipulate resources created by you. | "Check that, as a non-admin, may only manipulate resources created by you." | 1,135 | true | vertexproject/synapse | _trig_auth_check | 18,320 | |
LDU_FT/drongo-framework/drongo/url | 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 url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Decorator to map url pattern to the callable.
Args:
pattern (:obj:`str`): URL pattern to add. This is usually '/'
separated path. Parts of the URL can be parameterised using
curly braces.
Examples: "/", "/path/to/resource", "/resoures/{param}"
... | "Decorator to map url pattern to the callable.\n\n Args:\n pattern (:obj:`str`): URL pattern to add. This is usually '/'\n separated path. Parts of the URL can be parameterised using\n curly braces.\n Examples: \"/\", \"/path/to/resource\", \"/resoures/{par... | 46 | false | drongo-framework/drongo | url | 18,321 | |
LDU_FT/hyperledger/indy-plenum/on_view_change_start | LDU_FT | [
"<BEGIN>\n## `set_status`",
"Set the status of the motor to the specified value if not already set.\n<END>",
"<BEGIN>\n## `stop`",
"Set the status to Status.stopping and also call `onStopping`\n with the provided args and kwargs.\n<END>",
"<BEGIN>\n## `next_primary_replica_name_for_master`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_view_change_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_view_change_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.
... | Notifies node about the fact that view changed to let it
prepare for election | "Notifies node about the fact that view changed to let it\n prepare for election" | 773 | false | hyperledger/indy-plenum | on_view_change_start | 18,322 | |
LDU_FT/spantaleev/sftpman/rmdir | LDU_FT | [
"<BEGIN>\n## `rmdir`",
"Safe rmdir (non-recursive) which doesn't throw if the directory is not empty.\n<END>",
"<BEGIN>\n## `shell_exec`",
"Executes the given shell command and returns its output.\n<END>",
"<BEGIN>\n## `perform_preflight_check`",
"Performs checks to see if we have everything needed to mou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rmdir API.
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 rmdir API.
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... | Safe rmdir (non-recursive) which doesn't throw if the directory is not empty. | "Safe rmdir (non-recursive) which doesn't throw if the directory is not empty." | 23 | false | spantaleev/sftpman | rmdir | 18,323 | |
LDU_FT/richardkiss/pycoin/subkeys | LDU_FT | [
"<BEGIN>\n## `parse_as_header`",
"Parse the Block header from the file-like object\n<END>",
"<BEGIN>\n## `stream_header_legacy`",
"Stream the block header in the standard way to the file-like object f.\n<END>",
"<BEGIN>\n## `stream_header`",
"Stream the block header in the standard way to the file-like ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subkeys API.
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 subkeys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | A generalized form that can return multiple subkeys. | "A generalized form that can return multiple subkeys." | 336 | false | richardkiss/pycoin | subkeys | 18,324 | |
LDU_FT/pachyderm/python-pachyderm/put_file_bytes | LDU_FT | [
"<BEGIN>\n## `create_repo`",
"Creates a new Repo object in PFS with the given name. Repos are the \n top level data object in PFS and should be used to store data of a\n similar type. For example rather than having a single Repo for an\n entire project you might have separate Repos for logs, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_file_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_file_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 ex... | Uploads a binary bytes array as file(s) in a certain path.
Params:
* commit: A tuple, string, or Commit object representing the commit.
* path: Path in the repo the file(s) will be written to.
* value: The file contents as bytes, represented as a file-like
object, bytestring, or... | "Uploads a binary bytes array as file(s) in a certain path.\n\n Params:\n * commit: A tuple, string, or Commit object representing the commit.\n * path: Path in the repo the file(s) will be written to.\n * value: The file contents as bytes, represented as a file-like\n object, bytestr... | 66 | false | pachyderm/python-pachyderm | put_file_bytes | 18,325 | |
LDU_FT/mokelly/wabbit_wappa/send_example | LDU_FT | [
"<BEGIN>\n## `make_command_line`",
"Construct a command line for VW, with each named argument corresponding\n to a VW option.\n Single character keys are mapped to single-dash options,\n e.g. 'b=20' yields '-b 20',\n while multiple character keys map to double-dash options:\n 'quiet=True' yield... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_example API.
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 send_example API.
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... | Send a labeled or unlabeled example to the VW instance.
If 'parse_result' kwarg is False, ignore the result and return None.
All other parameters are passed to self.send_line().
Returns a VWResult object. | "Send a labeled or unlabeled example to the VW instance.\n If 'parse_result' kwarg is False, ignore the result and return None.\n\n All other parameters are passed to self.send_line().\n\n Returns a VWResult object." | 39 | false | mokelly/wabbit_wappa | send_example | 18,326 | |
LDU_FT/divio/python-mautic/get_owners | LDU_FT | [
"<BEGIN>\n## `send`",
"Send email to the assigned lists",
" :param obj_id: int\n :return: dict|str\n<END>",
"<BEGIN>\n## `send_to_contact`",
"Send email to a specific contact",
" :param obj_id: int\n :param contact_id: int\n :return: dict|str\n<END>",
"<BEGIN>\n## `get... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_owners API.
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_owners API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a list of users available as contact owners
:return: dict|str | "Get a list of users available as contact owners\n\n :return: dict|str" | 61 | false | divio/python-mautic | get_owners | 18,327 | |
LDU_FT/zsiciarz/pygcvs/parse_epoch | LDU_FT | [
"<BEGIN>\n## `read_gcvs`",
"Reads variable star data in `GCVS format`_.",
" :param filename: path to GCVS data file (usually ``iii.dat``)",
" .. _`GCVS format`: http://www.sai.msu.su/gcvs/gcvs/iii/html/\n<END>",
"<BEGIN>\n## `dict_to_body`",
"Converts a dictionary of variable star data to a `Body` i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_epoch API.
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 parse_epoch API.
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... | Converts epoch field to a float value (adding 24... prefix), or
``None`` if there is no epoch in GCVS record. | "Converts epoch field to a float value (adding 24... prefix), or\n ``None`` if there is no epoch in GCVS record." | 19 | false | zsiciarz/pygcvs | parse_epoch | 18,328 | |
LDU_FT/benvanwerkhoven/kernel_tuner/read_file | LDU_FT | [
"<BEGIN>\n## `tune`",
"Find the best performing kernel configuration in the parameter space",
" :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner",
" :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_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 extract... | return the contents of the file named filename or None if file not found | "return the contents of the file named filename or None if file not found" | 294 | false | benvanwerkhoven/kernel_tuner | read_file | 18,329 | |
LDU_FT/sashs/filebytes/_parseDataDirectoryExport | LDU_FT | [
"<BEGIN>\n## `isSupportedContent`",
"Returns if the files are valid for this filetype\n<END>",
"<BEGIN>\n## `__parseKeyValueStore`",
"Returns a dictionary filled with the keys and values of the key value store\n<END>",
"<BEGIN>\n## `to_raw_address`",
"Converts the addr from a rva to a pointer to raw data ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parseDataDirectoryExport 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 _parseDataDirectoryExport API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Parses the EmportDataDirectory and returns an instance of ExportDirectoryData | "Parses the EmportDataDirectory and returns an instance of ExportDirectoryData" | 28 | false | sashs/filebytes | _parseDataDirectoryExport | 18,330 | |
LDU_FT/petrjasek/eve-elastic/set_filters | LDU_FT | [
"<BEGIN>\n## `get_dates`",
"Return list of datetime fields for given schema.\n<END>",
"<BEGIN>\n## `set_filters`",
"Put together all filters we have and set them as 'and' filter\n within filtered query.",
" :param query: elastic query being constructed\n :param base_filters: all filters set outside... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Put together all filters we have and set them as 'and' filter
within filtered query.
:param query: elastic query being constructed
:param base_filters: all filters set outside of query (eg. resource config, sub_resource_lookup) | "Put together all filters we have and set them as 'and' filter\n within filtered query.\n\n :param query: elastic query being constructed\n :param base_filters: all filters set outside of query (eg. resource config, sub_resource_lookup)" | 106 | false | petrjasek/eve-elastic | set_filters | 18,331 | |
LDU_FT/noxdafox/pebble/prepare_threads | LDU_FT | [
"<BEGIN>\n## `waitforqueues`",
"Waits for one or more *Queue* to be ready or until *timeout* expires.",
" *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.",
" The function returns a list conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_threads API.
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 prepare_threads API.
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... | Replaces threading._get_ident() function in order to notify
the waiting Condition. | "Replaces threading._get_ident() function in order to notify\n the waiting Condition." | 83 | false | noxdafox/pebble | prepare_threads | 18,332 | |
LDU_FT/NiklasRosenstein-Python/nr-deprecated/factory | LDU_FT | [
"<BEGIN>\n## `skip`",
"Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.",
" > Important: This functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the factory API.
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 factory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This is a decorator function that creates new `Job`s with the wrapped
function as the target.
# Example
```python
@Job.factory()
def some_longish_function(job, seconds):
time.sleep(seconds)
return 42
job = some_longish_function(2)
print(job.wait())
```
# Arguments
... | "This is a decorator function that creates new `Job`s with the wrapped\n function as the target.\n\n # Example\n ```python\n @Job.factory()\n def some_longish_function(job, seconds):\n time.sleep(seconds)\n return 42\n\n job = some_longish_function(2)\n print(job.wait())\n ```\n\n #... | 305 | false | NiklasRosenstein-Python/nr-deprecated | factory | 18,333 | |
LDU_FT/sdispater/cachy/remember_forever | LDU_FT | [
"<BEGIN>\n## `tag_id`",
"Get the unique tag identifier for a given tag.",
" :param name: The tag\n :type name: str",
" :rtype: str\n<END>",
"<BEGIN>\n## `reset_tag`",
"Reset the tag and return the new tag identifier.",
" :param name: The tag\n :type name: str",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remember_forever API.
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 remember_forever API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get an item from the cache, or store the default value forever.
:param key: The cache key
:type key: str
:param callback: The default function
:type callback: mixed
:rtype: mixed | "Get an item from the cache, or store the default value forever.\n\n :param key: The cache key\n :type key: str\n\n :param callback: The default function\n :type callback: mixed\n\n :rtype: mixed" | 206 | false | sdispater/cachy | remember_forever | 18,334 | |
LDU_FT/calmjs/calmjs/compile_loaderplugin_entry | LDU_FT | [
"<BEGIN>\n## `make_choice_validator`",
"Returns a callable that accepts the choices provided.",
" Choices should be provided as a list of 2-tuples, where the first\n element is a string that should match user input (the key); the\n second being the value associated with the key.",
" The callable b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_loaderplugin_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compile_loaderplugin_entry API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Generic loader plugin entry handler.
The default implementation assumes that everything up to the
first '!' symbol resolves to some known loader plugin within
the registry.
The registry instance responsible for the resolution of the
loader plugin handlers must be available in t... | "Generic loader plugin entry handler.\n\n The default implementation assumes that everything up to the\n first '!' symbol resolves to some known loader plugin within\n the registry.\n\n The registry instance responsible for the resolution of the\n loader plugin handlers must be availa... | 361 | false | calmjs/calmjs | compile_loaderplugin_entry | 18,335 | |
LDU_FT/azavea/python-omgeo/get_token | LDU_FT | [
"<BEGIN>\n## `_geocode`",
":arg PlaceQuery pq: PlaceQuery object to use for geocoding\n :returns: list of location Candidates\n<END>",
"<BEGIN>\n## `_street_addr_from_response`",
"Construct a street address (no city, region, etc.) from a geocoder response.",
" :param attributes: A dict of addr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | :param expires: The time until the returned token expires.
Must be an instance of :class:`datetime.timedelta`.
If not specified, the token will expire in 2 hours.
:returns: A token suitable for use with the Esri geocoding API | ":param expires: The time until the returned token expires.\n Must be an instance of :class:`datetime.timedelta`.\n If not specified, the token will expire in 2 hours.\n :returns: A token suitable for use with the Esri geocoding API" | 78 | false | azavea/python-omgeo | get_token | 18,336 | |
LDU_FT/bkg/django-spillway/warp | LDU_FT | [
"<BEGIN>\n## `make_dbsource`",
"Returns a mapnik PostGIS or SQLite Datasource.\n<END>",
"<BEGIN>\n## `layer`",
"Returns a map Layer.",
" Arguments:\n queryset -- QuerySet for Layer\n Keyword args:\n stylename -- str name of style to apply\n<END>",
"<BEGIN>\n## `zoom_bbox`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warp API.
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 warp API.
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... | Returns a new RasterQuerySet with possibly warped/converted rasters.
Keyword args:
format -- raster file extension format as str
geom -- geometry for masking or spatial subsetting
srid -- spatial reference identifier as int for warping to | "Returns a new RasterQuerySet with possibly warped/converted rasters.\n\n Keyword args:\n format -- raster file extension format as str\n geom -- geometry for masking or spatial subsetting\n srid -- spatial reference identifier as int for warping to" | 57 | false | bkg/django-spillway | warp | 18,337 | |
LDU_FT/erinxocon/requests-xml/response_hook | LDU_FT | [
"<BEGIN>\n## `raw_xml`",
"Bytes representation of the XML content.\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>",
"<BEGIN>\n## `xml`",
"Unicode representation of the XML content\n (`learn more <http://www.diveintopython3.net/strings.html>`_).\n<END>",
"<BEGIN>\n## `p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the response_hook API.
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 response_hook API.
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... | Change response enconding and replace it by a HTMLResponse. | "Change response enconding and replace it by a HTMLResponse." | 33 | false | erinxocon/requests-xml | response_hook | 18,338 | |
LDU_FT/tjcsl/ion/get_emerg | LDU_FT | [
"<BEGIN>\n## `student_visible`",
"Return a list of groups that are student-visible.\n<END>",
"<BEGIN>\n## `stdev`",
"r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_emerg API.
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_emerg API.
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... | Get the cached FCPS emergency page, or check it again.
Timeout defined in settings.CACHE_AGE["emerg"] | "Get the cached FCPS emergency page, or check it again.\n\n Timeout defined in settings.CACHE_AGE[\"emerg\"]" | 407 | false | tjcsl/ion | get_emerg | 18,339 | |
LDU_FT/raymondEhlers/pachyderm/iterate_with_selected_objects | LDU_FT | [
"<BEGIN>\n## `get_histograms_in_list`",
"Get histograms from the file and make them available in a dict.",
" Lists are recursively explored, with all lists converted to dictionaries, such that the return\n dictionaries which only contains hists and dictionaries of hists (ie there are no ROOT ``TCollection... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_with_selected_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate_with_selected_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Iterate over an analysis dictionary with selected attributes.
Args:
analysis_objects: Analysis objects dictionary.
selections: Keyword arguments used to select attributes from the analysis dictionary.
Yields:
object: Matching analysis object. | "Iterate over an analysis dictionary with selected attributes.\n\n Args:\n analysis_objects: Analysis objects dictionary.\n selections: Keyword arguments used to select attributes from the analysis dictionary.\n Yields:\n object: Matching analysis object." | 229 | false | raymondEhlers/pachyderm | iterate_with_selected_objects | 18,340 | |
LDU_FT/klahnakoski/pyLibrary/is_op | LDU_FT | [
"<BEGIN>\n## `groupby`",
":param data:\n :param keys:\n :param size:\n :param min_size:\n :param max_size:\n :param contiguous: MAINTAIN THE ORDER OF THE DATA, STARTING THE NEW GROUP WHEN THE SELECTOR CHANGES\n :return: return list of (keys, values) PAIRS, WHERE\n keys IS IN LEAF... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_op API.
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 is_op API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | :param call: The specific operator instance (a method call)
:param op: The the operator we are testing against
:return: isinstance(call, op), but faster | ":param call: The specific operator instance (a method call)\n :param op: The the operator we are testing against\n :return: isinstance(call, op), but faster" | 574 | false | klahnakoski/pyLibrary | is_op | 18,341 | |
LDU_FT/tknapen/FIRDeconvolution/calculate_rsq | LDU_FT | [
"<BEGIN>\n## `create_event_regressors`",
"create_event_regressors creates the part of the design matrix corresponding to one event type. ",
" :param event_times_indices: indices in the resampled data, on which the events occurred.\n :type event_times_indices: numpy array, (nr_events)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_rsq API.
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 calculate_rsq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | calculate_rsq calculates coefficient of determination, or r-squared, defined here as 1.0 - SS_res / SS_tot. rsq is only calculated for those timepoints in the data for which the design matrix is non-zero. | "calculate_rsq calculates coefficient of determination, or r-squared, defined here as 1.0 - SS_res / SS_tot. rsq is only calculated for those timepoints in the data for which the design matrix is non-zero." | 27 | false | tknapen/FIRDeconvolution | calculate_rsq | 18,342 | |
LDU_FT/gagneurlab/concise/load | LDU_FT | [
"<BEGIN>\n## `best_kmers`",
"Find best k-mers for CONCISE initialization.",
" Args:\n dt (pd.DataFrame): Table containing response variable and sequence.\n response (str): Name of the column used as the reponse variable.\n sequence (str): Name of the column storing the DNA/RNA sequences.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
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 load API.
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... | Load the object from a JSON file (saved with :py:func:`ConciseCV.save`)
Returns:
ConciseCV: Loaded ConciseCV object. | "Load the object from a JSON file (saved with :py:func:`ConciseCV.save`)\n\n Returns:\n ConciseCV: Loaded ConciseCV object." | 311 | false | gagneurlab/concise | load | 18,343 | |
LDU_FT/lexibank/pylexibank/add_lexemes | LDU_FT | [
"<BEGIN>\n## `tokenizer`",
"Datasets can provide support for segmentation (aka tokenization) in two ways:\n - by providing an orthography profile at etc/orthography.tsv or\n - by overwriting this method to return a custom tokenizer callable.",
" :return: A callable to do segmentation.",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_lexemes API.
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 add_lexemes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | :return: list of dicts corresponding to newly created Lexemes | ":return: list of dicts corresponding to newly created Lexemes" | 48 | false | lexibank/pylexibank | add_lexemes | 18,344 | |
LDU_FT/biocore/deblur/sequence_generator | LDU_FT | [
"<BEGIN>\n## `deblur_system_call`",
"Build deblur command for subprocess.",
" Parameters\n ----------\n params: list of str\n parameter settings to pass to deblur CLI\n input_fp : str\n name of the input fasta file to deblur",
" Returns\n -------\n stdout: string\n pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence_generator 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 sequence_generator 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... | Yield (id, sequence) from an input file
Parameters
----------
input_fp : filepath
A filepath, which can be any valid fasta or fastq file within the
limitations of scikit-bio's IO registry.
Notes
-----
The use of this method is a stopgap to replicate the existing `parse_fasta`
... | "Yield (id, sequence) from an input file\n\n Parameters\n ----------\n input_fp : filepath\n A filepath, which can be any valid fasta or fastq file within the\n limitations of scikit-bio's IO registry.\n\n Notes\n -----\n The use of this method is a stopgap to replicate the existing `par... | 94 | false | biocore/deblur | sequence_generator | 18,345 | |
LDU_FT/chriso/timeseries/trend | LDU_FT | [
"<BEGIN>\n## `trend`",
"Override Series.trend() to return a TimeSeries instance.\n<END>",
"<BEGIN>\n## `trend_coefficients`",
"Calculate trend coefficients for the specified order.\n<END>",
"<BEGIN>\n## `moving_average`",
"Calculate a moving average using the specified method and window\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trend API.
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 trend API.
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... | Override Series.trend() to return a TimeSeries instance. | "Override Series.trend() to return a TimeSeries instance." | 18 | false | chriso/timeseries | trend | 18,346 | |
LDU_FT/SAP/PyHDB/trace | LDU_FT | [
"<BEGIN>\n## `from_ini`",
"Make connection to database by reading connection parameters from an ini file.\n :param ini_file: Name of ini file, e.g. 'pytest.ini'\n :param section: specify alternative section in ini file. Section 'hana' and 'pytest' will be searched by default\n :return: connection object"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace API.
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 trace API.
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... | Trace given trace_obj (usuall a Message instance) recursively.
:param trace_obj:
:return: a string with properly formatted tracing information | "Trace given trace_obj (usuall a Message instance) recursively.\n :param trace_obj:\n :return: a string with properly formatted tracing information" | 81 | false | SAP/PyHDB | trace | 18,347 | |
LDU_FT/adafruit/Adafruit_Python_LED_Backpack/set_blink | LDU_FT | [
"<BEGIN>\n## `set_pixel`",
"Set pixel at position x, y to the given value. X and Y should be values\n of 0 to 8. Value should be OFF, GREEN, RED, or YELLOW.\n<END>",
"<BEGIN>\n## `set_image`",
"Set display buffer to Python Image Library image. Red pixels (r=255,\n g=0, b=0) will map to red LE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_blink API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_blink API.
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... | Blink display at specified frequency. Note that frequency must be a
value allowed by the HT16K33, specifically one of: HT16K33_BLINK_OFF,
HT16K33_BLINK_2HZ, HT16K33_BLINK_1HZ, or HT16K33_BLINK_HALFHZ. | "Blink display at specified frequency. Note that frequency must be a\n value allowed by the HT16K33, specifically one of: HT16K33_BLINK_OFF,\n HT16K33_BLINK_2HZ, HT16K33_BLINK_1HZ, or HT16K33_BLINK_HALFHZ." | 57 | false | adafruit/Adafruit_Python_LED_Backpack | set_blink | 18,348 | |
LDU_FT/callowayproject/Transmogrify/calc_subrange | LDU_FT | [
"<BEGIN>\n## `list_from_env`",
"Splits a string in the format \"a,b,c,d,e,f\" into\n ['a', 'b', 'c', 'd', 'e', 'f', ]\n<END>",
"<BEGIN>\n## `lists_from_env`",
"Splits a string in the format \"a,b:c,d,e:f\" into\n [('a', 'b'), ('c', 'd', 'e'), ('f', )]\n<END>",
"<BEGIN>\n## `get_crop_size`",
"Determi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_subrange API.
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 calc_subrange API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | return the start and stop points that are sub_amount distance apart and
contain weight, without going outside the provided range | "return the start and stop points that are sub_amount distance apart and\n contain weight, without going outside the provided range" | 110 | false | callowayproject/Transmogrify | calc_subrange | 18,349 | |
LDU_FT/peterldowns/python-mustache/template | LDU_FT | [
"<BEGIN>\n## `get_match_info`",
"Given a template and a regex match within said template, return a\n dictionary of information about the match to be used to help parse the\n template.\n<END>",
"<BEGIN>\n## `get_tag_context`",
"Given a tag name, return its associated value as defined in the current\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the template API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | A decorator for easily rendering templates.
Use as follows:
main.py:
from mustache import (template)
@template('../tests/static/say_hello.html')
def index():
context = {'name' : 'world'}
partials = {}
return context, partials
if __name__=="_... | "A decorator for easily rendering templates.\n Use as follows:\n\n main.py:\n from mustache import (template)\n\n @template('../tests/static/say_hello.html')\n def index():\n context = {'name' : 'world'}\n partials = {}\n return context, partials\n\n if... | 33 | false | peterldowns/python-mustache | template | 18,350 | |
LDU_FT/dnouri/nolearn/objective | LDU_FT | [
"<BEGIN>\n## `plot_conv_weights`",
"Plot the weights of a specific layer.",
" Only really makes sense with convolutional layers.",
" Parameters\n ----------\n layer : lasagne.layers.Layer\n<END>",
"<BEGIN>\n## `plot_conv_activity`",
"Plot the acitivities of a specific layer.",
" Only real... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the objective API.
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 objective API.
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... | Default implementation of the NeuralNet objective.
:param layers: The underlying layers of the NeuralNetwork
:param loss_function: The callable loss function to use
:param target: the expected output
:param aggregate: the aggregation function to use
:param deterministic: Whether or not to get a de... | "Default implementation of the NeuralNet objective.\n\n :param layers: The underlying layers of the NeuralNetwork\n :param loss_function: The callable loss function to use\n :param target: the expected output\n\n :param aggregate: the aggregation function to use\n :param deterministic: Whether or not to ... | 64 | false | dnouri/nolearn | objective | 18,351 | |
LDU_FT/mieubrisse/wunderpy2/update_task_positions_obj | LDU_FT | [
"<BEGIN>\n## `get_endpoint_obj`",
"Tiny helper function that gets used all over the place to join the object ID to the endpoint and run a GET request, returning the result\n<END>",
"<BEGIN>\n## `update_endpoint_obj`",
"Helper method to ease the repetitiveness of updating an... SO VERY DRY ",
" (That's a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_task_positions_obj 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 update_task_positions_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Updates the ordering of tasks in the positions object with the given ID to the ordering in the given values.
See https://developer.wunderlist.com/documentation/endpoints/positions for more info
Return:
The updated TaskPositionsObj-mapped object defining the order of list layout | "Updates the ordering of tasks in the positions object with the given ID to the ordering in the given values.\n\n See https://developer.wunderlist.com/documentation/endpoints/positions for more info\n\n Return:\n The updated TaskPositionsObj-mapped object defining the order of list layout" | 94 | false | mieubrisse/wunderpy2 | update_task_positions_obj | 18,352 | |
LDU_FT/jacebrowning/comparable/_repr | LDU_FT | [
"<BEGIN>\n## `match_similar`",
"Get the most similar matching item from a list of items.",
" @param base: base item to locate best match\n @param items: list of items for comparison\n @return: most similar matching item or None\n<END>",
"<BEGIN>\n## `duplicates`",
"Get an iterator of items similar ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repr API.
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 _repr API.
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 __repr__ string from the arguments provided to __init__.
@param args: list of arguments to __init__
@param kwargs: dictionary of keyword arguments to __init__
@return: __repr__ string | "Return a __repr__ string from the arguments provided to __init__.\n\n @param args: list of arguments to __init__\n @param kwargs: dictionary of keyword arguments to __init__\n @return: __repr__ string" | 44 | false | jacebrowning/comparable | _repr | 18,353 | |
LDU_FT/idlesign/django-sitegate/respond_for | LDU_FT | [
"<BEGIN>\n## `verify_email`",
"Verifies an account activation code a user received by e-mail.",
" Requires Messages Django Contrib.",
" :param Requset request:\n :param str code:\n :param str redirect_to:\n :return:\n<END>",
"<BEGIN>\n## `get_template_name`",
"Returns template path, either ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the respond_for API.
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 respond_for API.
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... | Returns a response for the given view & args. | "Returns a response for the given view & args." | 31 | false | idlesign/django-sitegate | respond_for | 18,354 | |
LDU_FT/sveetch/boussole/inspect | LDU_FT | [
"<BEGIN>\n## `clean`",
"Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.",
" Args:\n settings (dict): Loaded settings.",
" Returns:\n dict: Settings object filtered.\n<END>",
"<BEGIN>\n## `set_settings`",
"Set every given settings... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect API.
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 inspect API.
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... | Recursively inspect all given SCSS files to find imported dependencies.
This does not return anything. Just fill internal buffers about
inspected files.
Note:
This will ignore orphan files (files that are not imported from
any of given SCSS files).
Args:
... | "Recursively inspect all given SCSS files to find imported dependencies.\n\n This does not return anything. Just fill internal buffers about\n inspected files.\n\n Note:\n This will ignore orphan files (files that are not imported from\n any of given SCSS files).\n\n Ar... | 289 | false | sveetch/boussole | inspect | 18,355 | |
LDU_FT/mrstephenneal/dirutility/map_return | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect and login to an FTP server and return ftplib.FTP object.\n<END>",
"<BEGIN>\n## `get`",
"Download a remote file on the fto sever to a local directory.",
" :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the map_return API.
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 map_return API.
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... | Perform a function on every item and return a list of yield values. | "Perform a function on every item and return a list of yield values." | 92 | false | mrstephenneal/dirutility | map_return | 18,356 | |
LDU_FT/edx/XBlock/render | 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 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 ... | Render a block by invoking its view.
Finds the view named `view_name` on `block`. The default view will be
used if a specific view hasn't be registered. If there is no default
view, an exception will be raised.
The view is invoked, passing it `context`. The value returned by the
... | "Render a block by invoking its view.\n\n Finds the view named `view_name` on `block`. The default view will be\n used if a specific view hasn't be registered. If there is no default\n view, an exception will be raised.\n\n The view is invoked, passing it `context`. The value returned by ... | 295 | false | edx/XBlock | render | 18,357 | |
LDU_FT/aeguana/PyFileMaker/getFile | LDU_FT | [
"<BEGIN>\n## `key_dict`",
"Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>",
"<BEGIN>\n## `makeFMData`",
"Returns FMData structure which is initialized by given dictionary\n<END>",
"<BEGIN>\n## `_setMaxRecords`",
"Specifies the maximum number of records you want returned ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFile API.
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 getFile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This will execute cmd to fetch file data from FMServer | "This will execute cmd to fetch file data from FMServer" | 52 | false | aeguana/PyFileMaker | getFile | 18,358 | |
LDU_FT/seomoz/shovel/sumnum | LDU_FT | [
"<BEGIN>\n## `heirarchical_helper`",
"Return a list of tuples of (fullname, docstring, level) for all the\n tasks in the provided shovel\n<END>",
"<BEGIN>\n## `heirarchical_help`",
"Given a shovel of tasks, display a heirarchical list of the tasks\n<END>",
"<BEGIN>\n## `shovel_help`",
"Return a string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sumnum API.
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 sumnum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Computes the sum of the provided numbers | "Computes the sum of the provided numbers" | 26 | false | seomoz/shovel | sumnum | 18,359 | |
LDU_FT/mollie/mollie-api-python/create_refund | LDU_FT | [
"<BEGIN>\n## `issuers`",
"Return the list of available issuers for this payment method.\n<END>",
"<BEGIN>\n## `delete`",
"Cancel payment and return the payment object.",
" Deleting a payment causes the payment status to change to canceled.\n The updated payment object is returned.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_refund API.
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 create_refund API.
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... | Create a refund for the order. When no data arg is given, a refund for all order lines is assumed. | "Create a refund for the order. When no data arg is given, a refund for all order lines is assumed." | 55 | false | mollie/mollie-api-python | create_refund | 18,360 | |
LDU_FT/bwesterb/sarah/pump | LDU_FT | [
"<BEGIN>\n## `lazy`",
"Decorator, which can be used for lazy imports",
" @lazy\n def yaml():\n import yaml\n return yaml\n<END>",
"<BEGIN>\n## `pump`",
"Reads data from <fin> and writes it to <fout> until EOF is\n reached.\n<END>",
"<BEGIN>\n## `r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pump API.
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 pump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Reads data from <fin> and writes it to <fout> until EOF is
reached. | "Reads data from <fin> and writes it to <fout> until EOF is\n reached." | 19 | false | bwesterb/sarah | pump | 18,361 | |
LDU_FT/dwavesystems/dwave-system/majority_vote | LDU_FT | [
"<BEGIN>\n## `broken_chains`",
"Find the broken chains.",
" Args:\n samples (array_like):\n Samples as a nS x nV array_like object where nS is the number of samples and nV is the\n number of variables. The values should all be 0/1 or -1/+1.",
" chains (list[array_like]):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the majority_vote API.
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 majority_vote API.
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... | Use the most common element in broken chains.
Args:
samples (array_like):
Samples as a nS x nV array_like object where nS is the number of samples and nV is the
number of variables. The values should all be 0/1 or -1/+1.
chains (list[array_like]):
List of chains... | "Use the most common element in broken chains.\n\n Args:\n samples (array_like):\n Samples as a nS x nV array_like object where nS is the number of samples and nV is the\n number of variables. The values should all be 0/1 or -1/+1.\n\n chains (list[array_like]):\n List ... | 562 | false | dwavesystems/dwave-system | majority_vote | 18,362 | |
LDU_FT/TUT-ARG/sed_eval/filter_event_list | LDU_FT | [
"<BEGIN>\n## `result_report_overall`",
"Report overall results",
" Returns\n -------\n str\n result report in string format\n<END>",
"<BEGIN>\n## `result_report_class_wise_average`",
"Report class-wise averages",
" Returns\n -------\n str\n r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_event_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_event_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Filter event list based on given fields
Parameters
----------
event_list : list, shape=(n,)
A list containing event dicts
scene_label : str
Scene label
event_label : str
Event label
filename : str
Filename
Returns
-------
event_list: list, shape=(... | "Filter event list based on given fields\n\n Parameters\n ----------\n event_list : list, shape=(n,)\n A list containing event dicts\n\n scene_label : str\n Scene label\n\n event_label : str\n Event label\n\n filename : str\n Filename\n\n Returns\n -------\n event_... | 268 | false | TUT-ARG/sed_eval | filter_event_list | 18,363 | |
LDU_FT/RobotStudio/bors/call | 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 call API.
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 call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Generic interface to REST apiGeneric interface to REST api
:param callname: query name
:param data: dictionary of inputs
:param args: keyword arguments added to the payload
:return: | "Generic interface to REST apiGeneric interface to REST api\n :param callname: query name\n :param data: dictionary of inputs\n :param args: keyword arguments added to the payload\n :return:" | 22 | false | RobotStudio/bors | call | 18,364 | |
LDU_FT/Hrabal/TemPy/populate | LDU_FT | [
"<BEGIN>\n## `render_attrs`",
"Renders the tag's attributes using the formats and performing special attributes name substitution.\n<END>",
"<BEGIN>\n## `toggle_class`",
"Same as jQuery's toggleClass function. It toggles the css class on this element.\n<END>",
"<BEGIN>\n## `remove_class`",
"Removes the gi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the populate API.
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 populate API.
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... | Adds/Replace data in the table.
data: an iterable of iterables in the form [[col1, col2, col3], [col1, col2, col3]]
resize_x: if True, changes the x-size of the table according to the given data.
If False and data have dimensions different from the existing table structure a WidgetDataError ... | "Adds/Replace data in the table.\n data: an iterable of iterables in the form [[col1, col2, col3], [col1, col2, col3]]\n resize_x: if True, changes the x-size of the table according to the given data.\n If False and data have dimensions different from the existing table structure a WidgetDataEr... | 80 | false | Hrabal/TemPy | populate | 18,365 | |
LDU_FT/airspeed-velocity/asv/__check_submodules | LDU_FT | [
"<BEGIN>\n## `get_graph_data`",
"Iterator over graph data sets",
" Yields\n ------\n param_idx\n Flat index to parameter permutations for parameterized benchmarks.\n None if benchmark is not parameterized.\n entry_name\n Name for the data set. If benc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_submodules 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 __check_submodules 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... | Verify that the submodules are checked out and clean. | "Verify that the submodules are checked out and clean." | 256 | false | airspeed-velocity/asv | __check_submodules | 18,366 | |
LDU_FT/apache/spark/asML | LDU_FT | [
"<BEGIN>\n## `_parse_datatype_string`",
"Parses the given data type string to a :class:`DataType`. The data type string format equals\n to :class:`DataType.simpleString`, except that top level struct type can omit\n the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` inst... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asML API.
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 asML API.
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... | Convert this vector to the new mllib-local representation.
This does NOT copy the data; it copies references.
:return: :py:class:`pyspark.ml.linalg.SparseVector`
.. versionadded:: 2.0.0 | "Convert this vector to the new mllib-local representation.\n This does NOT copy the data; it copies references.\n\n :return: :py:class:`pyspark.ml.linalg.SparseVector`\n\n .. versionadded:: 2.0.0" | 2,386 | true | apache/spark | asML | 18,367 | |
LDU_FT/AliLozano/django-messages-extends/add | LDU_FT | [
"<BEGIN>\n## `_get`",
"Gets a single list of messages from all storage backends.\n<END>",
"<BEGIN>\n## `_store`",
"Stores the messages, returning any unstored messages after trying all\n backends.",
" For each storage backend, any messages not stored are passed on to the\n next backend.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
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 add API.
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... | Queues a message to be stored.
The message is only queued if it contained something and its level is
not less than the recording level (``self.level``). | "Queues a message to be stored.\n\n The message is only queued if it contained something and its level is\n not less than the recording level (``self.level``)." | 28 | false | AliLozano/django-messages-extends | add | 18,368 | |
LDU_FT/klorenz/python-argdeco/add_subcommands | LDU_FT | [
"<BEGIN>\n## `add_subcommands`",
"add subcommands.",
" If command already defined, pass args and kwargs to add_subparsers()\n method, else to add_parser() method. This behaviour is for convenience,\n because I mostly use the sequence:",
" >>> p = parser.add_parser('foo', help=\"so... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subcommands API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_subcommands API.
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... | add subcommands.
If command already defined, pass args and kwargs to add_subparsers()
method, else to add_parser() method. This behaviour is for convenience,
because I mostly use the sequence:
>>> p = parser.add_parser('foo', help="some help")
>>> subparser = p.add_subparsers(... | "add subcommands.\n\n If command already defined, pass args and kwargs to add_subparsers()\n method, else to add_parser() method. This behaviour is for convenience,\n because I mostly use the sequence:\n\n >>> p = parser.add_parser('foo', help=\"some help\")\n >>> subparser = p.add_s... | 54 | false | klorenz/python-argdeco | add_subcommands | 18,369 | |
LDU_FT/bfarr/kombine/rv_model | LDU_FT | [
"<BEGIN>\n## `generate`",
"Returns (ts, rvs), where ts is a list of arrays of\n observation times (one array for each observatory), and rvs is\n a corresponding list of total radial velocity measurements.\n<END>",
"<BEGIN>\n## `lnlike`",
"Use a softened version of the interpolant as a likelihood... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rv_model API.
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 rv_model API.
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... | Returns the radial velocity measurements associated with the
planets in parameters ps at times ts. The returned array has
shape (Nts,). | "Returns the radial velocity measurements associated with the\n planets in parameters ps at times ts. The returned array has\n shape (Nts,)." | 16 | false | bfarr/kombine | rv_model | 18,370 | |
LDU_FT/Saledddar/pyunet/nested_join | LDU_FT | [
"<BEGIN>\n## `add_to_path`",
"Adds a path to python paths and removes it after the 'with' block ends\n<END>",
"<BEGIN>\n## `find_file_regex`",
"Finds all the files with the specified root directory with the name matching the regex expression.\n Args :\n root_dir : The root ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nested_join API.
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 nested_join API.
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... | Builds a string out of a given nested list.
Args :
array : An array retruned by pyparsing nestedExpr.
o_str : Opening str.
c_str : Closing str. | "Builds a string out of a given nested list.\n Args :\n array : An array retruned by pyparsing nestedExpr.\n o_str : Opening str.\n c_str : Closing str." | 18 | false | Saledddar/pyunet | nested_join | 18,371 | |
LDU_FT/mardix/Juice/headers | LDU_FT | [
"<BEGIN>\n## `get_env`",
"Return the Capitalize environment name\n It can be used to retrieve class base config\n Default: Development\n :returns: str\n<END>",
"<BEGIN>\n## `init_app`",
"To bind middlewares, plugins that needs the 'app' object to init\n Bound middlewares will be assigned on cls.in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the headers API.
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 headers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This decorator adds the headers passed in to the response
http://flask.pocoo.org/snippets/100/ | "This decorator adds the headers passed in to the response\n http://flask.pocoo.org/snippets/100/" | 101 | false | mardix/Juice | headers | 18,372 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.