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/jtwhite79/pyemu/start_slaves | LDU_FT | [
"<BEGIN>\n## `_calc_delta`",
"calc the scaled ensemble differences from the mean\n<END>",
"<BEGIN>\n## `_calc_obs_local`",
"propagate the ensemble forward using sweep.\n<END>",
"<BEGIN>\n## `save_coo`",
"write a PEST-compatible binary file. The data format is\n [int,int,float] for i,j,value. It is a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_slaves API.
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 start_slaves API.
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... | start a group of pest(++) slaves on the local machine
Parameters
----------
slave_dir : str
the path to a complete set of input files
exe_rel_path : str
the relative path to the pest(++) executable from within the slave_dir
pst_rel_path : str
the relative path to the pst fi... | "start a group of pest(++) slaves on the local machine\n\n Parameters\n ----------\n slave_dir : str\n the path to a complete set of input files\n exe_rel_path : str\n the relative path to the pest(++) executable from within the slave_dir\n pst_rel_path : str\n the relative path to ... | 1,496 | true | jtwhite79/pyemu | start_slaves | 14,173 | |
LDU_FT/epfl-lts2/pygsp/_plot_filter | LDU_FT | [
"<BEGIN>\n## `compute_avg_adj_deg`",
"r\"\"\"\n Compute the average adjacency degree for each node.",
" The average adjacency degree is the average of the degrees of a node and\n its neighbors.",
" Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plot_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plot_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | r"""Plot the spectral response of a filter bank.
Parameters
----------
n : int
Number of points where the filters are evaluated.
eigenvalues : boolean
Whether to show the eigenvalues of the graph Laplacian.
The eigenvalues should have been computed with
:meth:`~pygsp.gra... | "r\"\"\"Plot the spectral response of a filter bank.\n\n Parameters\n ----------\n n : int\n Number of points where the filters are evaluated.\n eigenvalues : boolean\n Whether to show the eigenvalues of the graph Laplacian.\n The eigenvalues should have been computed with\n :met... | 617 | false | epfl-lts2/pygsp | _plot_filter | 14,174 | |
LDU_FT/penguinmenac3/starttf/get_unique_name | LDU_FT | [
"<BEGIN>\n## `easy_train_and_evaluate`",
"Train and evaluate your model without any boilerplate code.",
" 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unique_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns an index-suffixed unique name for the given prefix.
This is used for auto-generating layer names based on the type-prefix. | "Returns an index-suffixed unique name for the given prefix.\n This is used for auto-generating layer names based on the type-prefix." | 120 | false | penguinmenac3/starttf | get_unique_name | 14,175 | |
LDU_FT/Godley/MuseParse/addClef | LDU_FT | [
"<BEGIN>\n## `get`",
"method to fetch all contents as a list",
" :return: list\n<END>",
"<BEGIN>\n## `toLily`",
"Method which converts the object instance and its attributes to a string of lilypond code",
" :return: str of lilypond code\n<END>",
"<BEGIN>\n## `Find`",
"method for finding ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addClef API.
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 addClef API.
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... | method to use when adding a clef. will either add it to the node itself or add it onto the first voice's children
list
:param item:
:param voice:
:return: | "method to use when adding a clef. will either add it to the node itself or add it onto the first voice's children\n list\n :param item:\n :param voice:\n :return:" | 113 | false | Godley/MuseParse | addClef | 14,176 | |
LDU_FT/upsight/doctor/get_name | LDU_FT | [
"<BEGIN>\n## `_parse_array`",
"Coerce value into an list.",
" :param str value: Value to parse.\n :returns: list or None if the value is not a JSON array\n :raises: TypeError or ValueError if value appears to be an array but can't\n be parsed as JSON.\n<END>",
"<BEGIN>\n## `_parse_boolean`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a best guess at the qualified name for a class or function.
:param value: A class or function object.
:type value: class or function
:returns str: | "Return a best guess at the qualified name for a class or function.\n\n :param value: A class or function object.\n :type value: class or function\n :returns str:" | 236 | false | upsight/doctor | get_name | 14,177 | |
LDU_FT/ApproxEng/approxeng.input/find_all_controllers | LDU_FT | [
"<BEGIN>\n## `map_into_range`",
"Map an input function into an output value, clamping such that the magnitude of the output is at most 1.0",
" :param low:\n The value in the input range corresponding to zero.\n :param high:\n The value in the input range corresponding to 1.0 or -1.0, dependi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_controllers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_all_controllers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | :return:
A list of :class:`~approxeng.input.controllers.ControllerDiscovery` instances corresponding to controllers
attached to this host, ordered by the ordering on ControllerDiscovery. Any controllers found will be
constructed with kwargs passed to their constructor function, particularly usef... | ":return:\n A list of :class:`~approxeng.input.controllers.ControllerDiscovery` instances corresponding to controllers\n attached to this host, ordered by the ordering on ControllerDiscovery. Any controllers found will be\n constructed with kwargs passed to their constructor function, particularly ... | 86 | false | ApproxEng/approxeng.input | find_all_controllers | 14,178 | |
LDU_FT/crocs-muni/roca/try_get_dn_part | LDU_FT | [
"<BEGIN>\n## `error_message`",
"Formats exception message + cause\n :param e:\n :param message:\n :param cause:\n :return: formatted message, includes cause if any is set\n<END>",
"<BEGIN>\n## `format_pgp_key`",
"Formats PGP key in 16hex digits\n :param key:\n :return:\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the try_get_dn_part API.
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 try_get_dn_part API.
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... | Tries to extracts the OID from the X500 name.
:param subject:
:param oid:
:return: | "Tries to extracts the OID from the X500 name.\n :param subject:\n :param oid:\n :return:" | 133 | false | crocs-muni/roca | try_get_dn_part | 14,179 | |
LDU_FT/bcdev/jpy/write_config_files | LDU_FT | [
"<BEGIN>\n## `_write_jpy_config`",
"Write out a well-formed jpyconfig.properties file for easier Java\n integration in a given location.\n<END>",
"<BEGIN>\n## `find_jdk_home_dir`",
"Try to detect the JDK home directory from Maven, if available, or use\n dedicated environment variables.\n :return: pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_config_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_config_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Writes the jpy configuration files for Java and/or Python.
:param out_dir: output directory, must exist
:param java_home_dir: optional home directory of the Java JRE or JDK installation
:param jvm_dll_file: optional file to JVM shared library file
:param install_dir: optional path to where to searfh fo... | "Writes the jpy configuration files for Java and/or Python.\n\n :param out_dir: output directory, must exist\n :param java_home_dir: optional home directory of the Java JRE or JDK installation\n :param jvm_dll_file: optional file to JVM shared library file\n :param install_dir: optional path to where to sea... | 15 | false | bcdev/jpy | write_config_files | 14,180 | |
LDU_FT/emory-libraries/eulxml/get_field | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>",
"<BEGIN>\n## `download_schema`",
"Download a schema from a specified URI and save it locally.",
" :param uri: url where the schema should be downloaded\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_field API.
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_field API.
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 requested type definition from the schema and return the
appropriate :class:`~eulxml.xmlmap.fields.Field`.
:param schema: instance of :class:`eulxml.xmlmap.core.XsdSchema`
:rtype: :class:`eulxml.xmlmap.fields.Field` | "Get the requested type definition from the schema and return the\n appropriate :class:`~eulxml.xmlmap.fields.Field`.\n\n :param schema: instance of :class:`eulxml.xmlmap.core.XsdSchema`\n :rtype: :class:`eulxml.xmlmap.fields.Field`" | 109 | false | emory-libraries/eulxml | get_field | 14,181 | |
LDU_FT/SavinaRoja/PyUserInput/click | LDU_FT | [
"<BEGIN>\n## `display_manager`",
"Traps *X* errors and raises an :class:``X11Error`` at the end if any\n error occurred.",
" This handler also ensures that the :class:`Xlib.display.Display` being\n managed is sync'd.",
" :param Xlib.display.Display display: The *X* display.",
" :return: the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the click API.
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 click API.
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... | Print Fibonacci numbers when the left click is pressed. | "Print Fibonacci numbers when the left click is pressed." | 56 | false | SavinaRoja/PyUserInput | click | 14,182 | |
LDU_FT/BlueBrain/NeuroM/section_end_distances | LDU_FT | [
"<BEGIN>\n## `_get_type`",
"get the type of the soma",
" Args:\n points: Soma points\n soma_class(str): one of 'contour' or 'cylinder' to specify the type\n<END>",
"<BEGIN>\n## `make_soma`",
"Make a soma object from a set of points",
" Infers the soma type (SomaSinglePoint, SomaSimpleC... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the section_end_distances 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 section_end_distances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | section end to end distances in a collection of neurites | "section end to end distances in a collection of neurites" | 706 | false | BlueBrain/NeuroM | section_end_distances | 14,183 | |
LDU_FT/jaraco/path.py/_hash | LDU_FT | [
"<BEGIN>\n## `load`",
"If the supplied parameter is a string, assum it's a simple\n pattern.\n<END>",
"<BEGIN>\n## `simple_cache`",
"Save results for the :meth:'path.using_module' classmethod.\n When Python 3.2 is available, use functools.lru_cache instead.\n<END>",
"<BEGIN>\n## `only_newer`",
"Wrap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a hash object for the file at the current path.
`hash_name` should be a hash algo name (such as ``'md5'``
or ``'sha1'``) that's available in the :mod:`hashlib` module. | "Returns a hash object for the file at the current path.\n\n `hash_name` should be a hash algo name (such as ``'md5'``\n or ``'sha1'``) that's available in the :mod:`hashlib` module." | 158 | false | jaraco/path.py | _hash | 14,184 | |
LDU_FT/trolldbois/ctypeslib/_make_padding | LDU_FT | [
"<BEGIN>\n## `init_fundamental_types`",
"Registers all fundamental typekind handlers\n<END>",
"<BEGIN>\n## `_handle_fundamental_types`",
"Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>",
"<BEGIN>\n## `_array_handler`",
"Handles all array types.\n Resolves ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_padding API.
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 _make_padding API.
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... | Make padding Fields for a specifed size. | "Make padding Fields for a specifed size." | 88 | false | trolldbois/ctypeslib | _make_padding | 14,185 | |
LDU_FT/atlassian-api/atlassian-python-api/delete_tag | LDU_FT | [
"<BEGIN>\n## `clean_draft_pages_from_space`",
"Remove draft pages from space using datetime.now\n :param confluence:\n :param space_key:\n :param count:\n :param date_now:\n :return: int counter\n<END>",
"<BEGIN>\n## `clean_all_draft_pages_from_all_spaces`",
"Remove all draft pages for all spac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_tag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Creates a tag using the information provided in the {@link RestCreateTagRequest request}
The authenticated user must have REPO_WRITE permission for the context repository to call this resource.
:param project:
:param repository:
:param tag_name:
:return: | "Creates a tag using the information provided in the {@link RestCreateTagRequest request}\n The authenticated user must have REPO_WRITE permission for the context repository to call this resource.\n :param project:\n :param repository:\n :param tag_name:\n :return:" | 414 | false | atlassian-api/atlassian-python-api | delete_tag | 14,186 | |
LDU_FT/stephenmcd/django-socketio/finish | LDU_FT | [
"<BEGIN>\n## `socketio`",
"Socket.IO handler - maintains the lifecycle of a Socket.IO\n request, sending the each of the events. Also handles\n adding/removing request/socket pairs to the CLIENTS dict\n which is used for sending on_finish events when the server\n stops.\n<END>",
"<BEGIN>\n## `client... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish API.
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 finish API.
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 ... | Event handler for a socket session ending in a room. Broadcast
the user leaving and delete them from the DB. | "Event handler for a socket session ending in a room. Broadcast\n the user leaving and delete them from the DB." | 33 | false | stephenmcd/django-socketio | finish | 14,187 | |
LDU_FT/slarse/pdfebc-core/read_config | LDU_FT | [
"<BEGIN>\n## `send_with_attachments`",
"Send an email from the user (a gmail) to the receiver.",
" Args:\n subject (str): Subject of the email.\n message (str): A message.\n filepaths (list(str)): Filepaths to files to be attached.\n config (defaultdict): A defaultdict.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Read the config information from the config file.
Args:
config_path (str): Relative path to the email config file.
Returns:
defaultdict: A defaultdict with the config information.
Raises:
IOError | "Read the config information from the config file.\n\n Args:\n config_path (str): Relative path to the email config file.\n Returns:\n defaultdict: A defaultdict with the config information.\n Raises:\n IOError" | 56 | false | slarse/pdfebc-core | read_config | 14,188 | |
LDU_FT/kvh/ramp/column_rename | LDU_FT | [
"<BEGIN>\n## `round_robin`",
"Ensures all classes get representative features, not just those with strong features\n<END>",
"<BEGIN>\n## `predict_maxprob`",
"Most likely value. Generally equivalent to predict.\n<END>",
"<BEGIN>\n## `cross_validate`",
"Shortcut to cross-validate a single configuration.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the column_rename API.
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 column_rename API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Like unique_name, but in addition must be unique to each column of this
feature. accomplishes this by prepending readable string to existing
column name and replacing unique hash at end of column name. | "Like unique_name, but in addition must be unique to each column of this\n feature. accomplishes this by prepending readable string to existing\n column name and replacing unique hash at end of column name." | 34 | false | kvh/ramp | column_rename | 14,189 | |
LDU_FT/thewca/wca-regulations-compiler/_act_on_list | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse an input string, and return an AST\n doctype must have WCADocument as a baseclass\n<END>",
"<BEGIN>\n## `_act_on_list`",
"Act on the following rule :\n items : items item\n | item\n<END>",
"<BEGIN>\n## `p_content`",
"content : TITLE opttexts... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _act_on_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _act_on_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 extr... | Act on the following rule :
items : items item
| item | "Act on the following rule :\n items : items item\n | item" | 36 | false | thewca/wca-regulations-compiler | _act_on_list | 14,190 | |
LDU_FT/django-parler/django-parler/get_language | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_language API.
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_language API.
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... | Wrapper around Django's `get_language` utility.
For Django >= 1.8, `get_language` returns None in case no translation is activate.
Here we patch this behavior e.g. for back-end functionality requiring access to translated fields | "Wrapper around Django's `get_language` utility.\n For Django >= 1.8, `get_language` returns None in case no translation is activate.\n Here we patch this behavior e.g. for back-end functionality requiring access to translated fields" | 163 | false | django-parler/django-parler | get_language | 14,191 | |
LDU_FT/digidotcom/python-wvalib/sample | LDU_FT | [
"<BEGIN>\n## `emit_event`",
"Emit the specified event (notify listeners)\n<END>",
"<BEGIN>\n## `enable`",
"Enable the stream thread",
" This operation will ensure that the thread that is responsible\n for connecting to the WVA and triggering event callbacks is started.\n This thread wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API.
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 sample API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Get the current value of this vehicle data element
The returned value will be a namedtuple with 'value' and
'timestamp' elements. Example::
speed_el = wva.get_vehicle_data_element('VehicleSpeed')
for i in xrange(10):
speed = speed_el.sample()
pr... | "Get the current value of this vehicle data element\n\n The returned value will be a namedtuple with 'value' and\n 'timestamp' elements. Example::\n\n speed_el = wva.get_vehicle_data_element('VehicleSpeed')\n for i in xrange(10):\n speed = speed_el.sample()\n ... | 103 | false | digidotcom/python-wvalib | sample | 14,192 | |
LDU_FT/biosustain/optlang/to_json | LDU_FT | [
"<BEGIN>\n## `_constraint_lb_and_ub_to_gurobi_sense_rhs_and_range_value`",
"Helper function used by Constraint and Model\n<END>",
"<BEGIN>\n## `_evolve_kwargs`",
"Filter None keyword arguments. Intended to be passed on to algorithm.evolve(...)\n<END>",
"<BEGIN>\n## `parse_optimization_expression`",
"Funct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a json-compatible object from the objective that can be saved using the json module.
Example
--------
>>> import json
>>> with open("path_to_file.json", "w") as outfile:
>>> json.dump(obj.to_json(), outfile) | "Returns a json-compatible object from the objective that can be saved using the json module.\n\n Example\n --------\n >>> import json\n >>> with open(\"path_to_file.json\", \"w\") as outfile:\n >>> json.dump(obj.to_json(), outfile)" | 106 | false | biosustain/optlang | to_json | 14,193 | |
LDU_FT/praekeltfoundation/seed-message-sender/fire_failed_msisdn_lookup | LDU_FT | [
"<BEGIN>\n## `_get_filename`",
"This function gets the base filename from the path, if a language code\n is present the filename will start from there.\n<END>",
"<BEGIN>\n## `_override_payload`",
"This function transforms the payload into a new format using the\n self.override_payload property.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fire_failed_msisdn_lookup 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 fire_failed_msisdn_lookup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Fires a webhook in the event of a None to_addr. | "Fires a webhook in the event of a None to_addr." | 36 | false | praekeltfoundation/seed-message-sender | fire_failed_msisdn_lookup | 14,194 | |
LDU_FT/jay-johnson/spylunking/build_into_splunk_tcp_message | LDU_FT | [
"<BEGIN>\n## `perform_exit`",
"perform_exit",
" Handling at-the-exit events\n ---------------------------",
" This will cleanup each worker process which\n could be in the middle of a request/sleep/block\n action. This has been tested on python 3 with\n Celery and single processes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_into_splunk_tcp_message 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 build_into_splunk_tcp_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | build_into_splunk_tcp_message
Format a message for a Splunk JSON sourcetype
:param body: splunk JSON dictionary msg body | "build_into_splunk_tcp_message\n\n Format a message for a Splunk JSON sourcetype\n\n :param body: splunk JSON dictionary msg body" | 121 | false | jay-johnson/spylunking | build_into_splunk_tcp_message | 14,195 | |
LDU_FT/twisted/txaws/revoke_group_permission | LDU_FT | [
"<BEGIN>\n## `get_ca_certs`",
"Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.",
" In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoke_group_permission 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 revoke_group_permission API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | This is a convenience function that wraps the "authorize group"
functionality of the C{authorize_security_group} method.
For an explanation of the parameters, see C{revoke_security_group}. | "This is a convenience function that wraps the \"authorize group\"\n functionality of the C{authorize_security_group} method.\n\n For an explanation of the parameters, see C{revoke_security_group}." | 465 | false | twisted/txaws | revoke_group_permission | 14,196 | |
LDU_FT/softlayer/softlayer-python/get_object | LDU_FT | [
"<BEGIN>\n## `cli`",
"List package items used for ordering.",
" The item keyNames listed can be used with `slcli order place` to specify\n the items that are being ordered in the package.",
" .. Note::\n Items with a numbered category, like disk0 or gpu0, can be included\n multiple time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extrac... | Returns a PlacementGroup Object
https://softlayer.github.io/reference/services/SoftLayer_Virtual_PlacementGroup/getObject | "Returns a PlacementGroup Object\n\n https://softlayer.github.io/reference/services/SoftLayer_Virtual_PlacementGroup/getObject" | 1,375 | true | softlayer/softlayer-python | get_object | 14,197 | |
LDU_FT/SethMMorton/natsort/main | LDU_FT | [
"<BEGIN>\n## `fast_float`",
"Convert a string to a float quickly, return input as-is if not possible.",
" We don't need to accept all input that the real fast_int accepts because\n natsort is controlling what is passed to this function.",
" Parameters\n ----------\n x : str\n String to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Performs a natural sort on entries given on the command-line.
Arguments are read from sys.argv. | "Performs a natural sort on entries given on the command-line.\n\n Arguments are read from sys.argv." | 190 | false | SethMMorton/natsort | main | 14,198 | |
LDU_FT/box/rotunicode/search_function | LDU_FT | [
"<BEGIN>\n## `encode`",
"Return the encoded version of a string.",
" :param string:\n The input string to encode.\n :type string:\n `basestring`",
" :param errors:\n The error handling scheme. Only 'strict' is supported.\n :type errors:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_function API.
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... | Search function to find 'rotunicode' codec. | "Search function to find 'rotunicode' codec." | 28 | false | box/rotunicode | search_function | 14,199 | |
LDU_FT/instana/python-sensor/__traces_url | LDU_FT | [
"<BEGIN>\n## `run`",
"Span a background thread to periodically report queued spans\n<END>",
"<BEGIN>\n## `record_span`",
"Convert the passed BasicSpan into an JsonSpan and\n add it to the span queue\n<END>",
"<BEGIN>\n## `build_registered_span`",
"Takes a BasicSpan and converts it into a registered... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __traces_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __traces_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | URL for posting traces to the host agent. Only valid when announced. | "URL for posting traces to the host agent. Only valid when announced." | 76 | false | instana/python-sensor | __traces_url | 14,200 | |
LDU_FT/CEA-COSMIC/ModOpt/_cost_method | LDU_FT | [
"<BEGIN>\n## `add_args_kwargs`",
"Add Args and Kwargs",
" This wrapper adds support for additional arguments and keyword arguments to\n any callable function",
" Parameters\n ----------\n func : function\n Callable function",
" Returns\n -------\n function wrapper\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cost_method API.
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 _cost_method API.
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... | Calculate sparsity component of the cost
This method returns the l1 norm error of the weighted wavelet
coefficients
Returns
-------
float sparsity cost component | "Calculate sparsity component of the cost\n\n This method returns the l1 norm error of the weighted wavelet\n coefficients\n\n Returns\n -------\n float sparsity cost component" | 565 | false | CEA-COSMIC/ModOpt | _cost_method | 14,201 | |
LDU_FT/mrcagney/make_gtfs/buffer_side | LDU_FT | [
"<BEGIN>\n## `make_gtfs`",
"Create a GTFS feed from the files in the directory SOURCE_PATH.\n See the project README for a description of the required source\n files.\n Save the feed to the file or directory TARGET_PATH.\n If the target path ends in '.zip', then write the feed as a zip\n archive.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buffer_side API.
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 buffer_side API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Given a Shapely LineString, a side of the LineString
(string; 'left' = left hand side of LineString,
'right' = right hand side of LineString, or
'both' = both sides), and a buffer size in the distance units of
the LineString, buffer the LineString on the given side by
the buffer size and return the ... | "Given a Shapely LineString, a side of the LineString\n (string; 'left' = left hand side of LineString,\n 'right' = right hand side of LineString, or\n 'both' = both sides), and a buffer size in the distance units of\n the LineString, buffer the LineString on the given side by\n the buffer size and retur... | 67 | false | mrcagney/make_gtfs | buffer_side | 14,202 | |
LDU_FT/KnuVerse/knuverse-sdk-python/_auth | LDU_FT | [
"<BEGIN>\n## `_auth`",
"Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _auth API.
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 _auth API.
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... | Makes sure the request has a valid authorization jwt before calling the wrapped function.
It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,
it refreshes it's existing jwt from the server.
Args:
f: Function to wrap
Returns:
F... | "Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wrap\n\n Returns:\n ... | 138 | false | KnuVerse/knuverse-sdk-python | _auth | 14,203 | |
LDU_FT/Koed00/django-q/result_group_cached | LDU_FT | [
"<BEGIN>\n## `loads`",
"Reverse of dumps(), raise BadSignature if signature fails.",
" The serializer is expected to accept a bytestring.\n<END>",
"<BEGIN>\n## `unsign`",
"Retrieve original value and check it wasn't signed more\n than max_age seconds ago.\n<END>",
"<BEGIN>\n## `get_broker`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_group_cached API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_group_cached API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return a list of results for a task group from the cache backend | "Return a list of results for a task group from the cache backend" | 96 | false | Koed00/django-q | result_group_cached | 14,204 | |
LDU_FT/wrongwaycn/ssdb-py/hkeys | LDU_FT | [
"<BEGIN>\n## `execute`",
"Execute all the commands in the current pipeline\n<END>",
"<BEGIN>\n## `execute_command`",
"Execute a command and return a parsed response.\n<END>",
"<BEGIN>\n## `incr`",
"Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hkeys API.
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 hkeys API.
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 list of the top ``limit`` keys between ``key_start`` and
``key_end`` in hash ``name``
Similiar with **Redis.HKEYS**
.. note:: The range is (``key_start``, ``key_end``]. The ``key_start``
isn't in the range, but ``key_end`` is.
:param string name: the hash n... | "Return a list of the top ``limit`` keys between ``key_start`` and\n ``key_end`` in hash ``name``\n\n Similiar with **Redis.HKEYS** \n\n .. note:: The range is (``key_start``, ``key_end``]. The ``key_start``\n isn't in the range, but ``key_end`` is.\n\n :param string name: t... | 215 | false | wrongwaycn/ssdb-py | hkeys | 14,205 | |
LDU_FT/takuti/flurs/__create_proj_mat | LDU_FT | [
"<BEGIN>\n## `__create_proj_mat`",
"Create a random projection matrix",
" [1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.\n [2] P. Li, et al. Very sparse random projections.",
" http://scikit-learn.org/stable/modules/random_projection.html... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __create_proj_mat API.
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_proj_mat API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Create a random projection matrix
[1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.
[2] P. Li, et al. Very sparse random projections.
http://scikit-learn.org/stable/modules/random_projection.html#sparse-random-projection | "Create a random projection matrix\n\n [1] D. Achlioptas. Database-friendly random projections: Johnson-Lindenstrauss with binary coins.\n [2] P. Li, et al. Very sparse random projections.\n\n http://scikit-learn.org/stable/modules/random_projection.html#sparse-random-projection" | 74 | false | takuti/flurs | __create_proj_mat | 14,206 | |
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 multizone message is received. | "Called when a multizone message is received." | 145 | false | balloob/pychromecast | receive_message | 14,207 | |
LDU_FT/lobocv/anonymoususage/to_file | LDU_FT | [
"<BEGIN>\n## `get_average`",
"Return the statistic's count divided by the number of rows in the table. If it cannot be calculated return\n `default`.\n :return: The average count value (count / table rows) or `default` if it cannot be calculated.\n<END>",
"<BEGIN>\n## `elapsed_time_s`",
"Return ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_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 extracted... | Create a CSV report of the trackables
:param path: path to file
:param precision: numeric string formatter | "Create a CSV report of the trackables\n :param path: path to file\n :param precision: numeric string formatter" | 60 | false | lobocv/anonymoususage | to_file | 14,208 | |
LDU_FT/CI-WATER/mapkit/grassAsciiRasterToWKB | LDU_FT | [
"<BEGIN>\n## `getAsKmlGrid`",
"Creates a KML file with each cell in the raster represented by a polygon. The result is a vector grid representation of the raster.\n Note that pixels with values between -1 and 0 are omitted as no data values. Also note that this method only works on the first band.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grassAsciiRasterToWKB 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 grassAsciiRasterToWKB API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Load GRASS ASCII rasters directly using the makeSingleBandWKBRaster method. Do this to eliminate the raster2pgsql
dependency. | "Load GRASS ASCII rasters directly using the makeSingleBandWKBRaster method. Do this to eliminate the raster2pgsql\n dependency." | 62 | false | CI-WATER/mapkit | grassAsciiRasterToWKB | 14,209 | |
LDU_FT/vladcalin/gemstone/make_tornado_app | LDU_FT | [
"<BEGIN>\n## `parse_json_structure`",
"Given a raw representation of a json structure, returns the parsed corresponding data\n structure (``JsonRpcRequest`` or ``JsonRpcRequestBatch``)",
" :param string_item:\n :return:\n<END>",
"<BEGIN>\n## `from_dict`",
"Validates a dict instance and transforms i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_tornado_app API.
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 make_tornado_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Creates a :py:class`tornado.web.Application` instance that respect the
JSON RPC 2.0 specs and exposes the designated methods. Can be used
in tests to obtain the Tornado application.
:return: a :py:class:`tornado.web.Application` instance | "Creates a :py:class`tornado.web.Application` instance that respect the\n JSON RPC 2.0 specs and exposes the designated methods. Can be used\n in tests to obtain the Tornado application.\n\n :return: a :py:class:`tornado.web.Application` instance" | 107 | false | vladcalin/gemstone | make_tornado_app | 14,210 | |
LDU_FT/blockstack/pybitcoin/random_passphrase_from_wordlist | LDU_FT | [
"<BEGIN>\n## `random_passphrase_from_wordlist`",
"An extremely entropy efficient passphrase generator.",
" This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_passphrase_from_wordlist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_passphrase_from_wordlist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | An extremely entropy efficient passphrase generator.
This function:
-Pulls entropy from the safer alternative to /dev/urandom: /dev/random
-Doesn't rely on random.seed (words are selected right from the entropy)
-Only requires 2 entropy bytes/word for word lists of up to 65536 words | "An extremely entropy efficient passphrase generator.\n\n This function:\n -Pulls entropy from the safer alternative to /dev/urandom: /dev/random\n -Doesn't rely on random.seed (words are selected right from the entropy)\n -Only requires 2 entropy bytes/word for word lists of up to 65536 wor... | 79 | false | blockstack/pybitcoin | random_passphrase_from_wordlist | 14,211 | |
LDU_FT/interstar/FSQuery/shadow | LDU_FT | [
"<BEGIN>\n## `children`",
"If the FSNode is a directory, returns a list of the children\n<END>",
"<BEGIN>\n## `add_file`",
"If this FSNode is a directory, write a file called fName containing content inside it\n<END>",
"<BEGIN>\n## `open_file`",
"If this FSNode is a file, open it for reading and return th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shadow API.
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 shadow API.
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 ... | Runs through the query, creating a clone directory structure in the new_root. Then applies process | "Runs through the query, creating a clone directory structure in the new_root. Then applies process" | 12 | false | interstar/FSQuery | shadow | 14,212 | |
LDU_FT/NerdWalletOSS/savage/get_bind_processor | LDU_FT | [
"<BEGIN>\n## `delete`",
"Performs a hard delete on a row, which means the row is deleted from the Savage\n table as well as the archive table.",
" :param table: the model class which inherits from\n :class:`~savage.models.user_table.SavageModelMixin` and specifies the model\n of the user tab... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bind_processor 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 get_bind_processor 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... | Returns a bind processor for a column type and dialect, with special handling
for JSON/JSONB column types to return dictionaries instead of serialized JSON strings.
NOTE: This is a workaround for https://github.com/NerdWalletOSS/savage/issues/8
:param column_type: :py:class:`~sqlalchemy.sql.type_api.TypeE... | "Returns a bind processor for a column type and dialect, with special handling\n for JSON/JSONB column types to return dictionaries instead of serialized JSON strings.\n\n NOTE: This is a workaround for https://github.com/NerdWalletOSS/savage/issues/8\n\n :param column_type: :py:class:`~sqlalchemy.sql.type_api... | 60 | false | NerdWalletOSS/savage | get_bind_processor | 14,213 | |
LDU_FT/OpenGov/carpenter/_repair_row | LDU_FT | [
"<BEGIN>\n## `get_cell_type`",
"Returns a type to be used in table cell analysis. This is either\n 'basestring' or '(int, float)'.\n<END>",
"<BEGIN>\n## `check_cell_type`",
"Checks the cell type to see if it represents the cell_type passed in.",
" Args:\n cell_type: The type id for a cell match... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _repair_row API.
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 _repair_row API.
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... | Searches for missing titles that can be inferred from the surrounding data and automatically
repairs those titles. | "Searches for missing titles that can be inferred from the surrounding data and automatically\n repairs those titles." | 123 | false | OpenGov/carpenter | _repair_row | 14,214 | |
LDU_FT/jspricke/python-abook/to_vobjects | LDU_FT | [
"<BEGIN>\n## `abook2vcf`",
"Command line tool to convert from Abook to vCard\n<END>",
"<BEGIN>\n## `vcf2abook`",
"Command line tool to convert from vCard to Abook\n<END>",
"<BEGIN>\n## `append_vobject`",
"Appends an address to the Abook addressbook\n vcard -- vCard to append\n filename -- un... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_vobjects API.
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 to_vobjects API.
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 vCards and etags of all Abook entries in uids
filename -- unused, for API compatibility only
uids -- the UIDs of the Abook entries (all if None) | "Return vCards and etags of all Abook entries in uids\n filename -- unused, for API compatibility only\n uids -- the UIDs of the Abook entries (all if None)" | 20 | false | jspricke/python-abook | to_vobjects | 14,215 | |
LDU_FT/jpscaletti/moar/get_key | LDU_FT | [
"<BEGIN>\n## `get_key`",
"Generates the thumbnail's key from it's arguments.\n If the arguments doesn't change the key will not change\n<END>",
"<BEGIN>\n## `get_source`",
"Returns the source image file descriptor.",
" path_or_url:\n Path to the source image as an absolute path, a p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_key API.
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... | Generates the thumbnail's key from it's arguments.
If the arguments doesn't change the key will not change | "Generates the thumbnail's key from it's arguments.\n If the arguments doesn't change the key will not change" | 27 | false | jpscaletti/moar | get_key | 14,216 | |
LDU_FT/ming060/robotframework-uiautomatorlibrary/register_click_watcher | LDU_FT | [
"<BEGIN>\n## `set_serial`",
"Specify given *android_serial* device to perform test.",
" You do not have to specify the device when there is only one device connects to the computer.",
" When you need to use multiple devices, do not use this keyword to switch between devices in test execution.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_click_watcher 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 register_click_watcher API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | The watcher click on the object which has the *selectors* when conditions match. | "The watcher click on the object which has the *selectors* when conditions match." | 115 | false | ming060/robotframework-uiautomatorlibrary | register_click_watcher | 14,217 | |
LDU_FT/toidi/hadoop-yarn-api-python-client/cluster_node | LDU_FT | [
"<BEGIN>\n## `node_applications`",
"With the Applications API, you can obtain a collection of resources,\n each of which represents an application.",
" :param str state: application state\n :param str user: user name\n :returns: API response object with JSON data\n :rtype: :py... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cluster_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 extr... | A node resource contains information about a node in the cluster.
:param str node_id: The node id
:returns: API response object with JSON data
:rtype: :py:class:`yarn_api_client.base.Response` | "A node resource contains information about a node in the cluster.\n\n :param str node_id: The node id\n :returns: API response object with JSON data\n :rtype: :py:class:`yarn_api_client.base.Response`" | 71 | false | toidi/hadoop-yarn-api-python-client | cluster_node | 14,218 | |
LDU_FT/twisted/txaws/format | LDU_FT | [
"<BEGIN>\n## `get_ca_certs`",
"Retrieve a list of CAs at either the DEFAULT_CERTS_PATH or the env\n override, TXAWS_CERTS_PATH.",
" In order to find .pem files, this function checks first for presence of the\n TXAWS_CERTS_PATH environment variable that should point to a directory\n containing cert f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Convert a dictionary of processed values to a dictionary of raw values. | "Convert a dictionary of processed values to a dictionary of raw values." | 465 | false | twisted/txaws | format | 14,219 | |
LDU_FT/westonplatter/fast_arrow/generate_by_deltas | LDU_FT | [
"<BEGIN>\n## `in_chain`",
"fetch all option instruments in an options chain\n - expiration_dates = optionally scope\n<END>",
"<BEGIN>\n## `unroll_option_legs`",
"unroll option orders like this,\n https://github.com/joshfraser/robinhood-to-csv/blob/master/csv-options-export.py\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_by_deltas 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 generate_by_deltas 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... | totally just playing around ideas for the API.
this IC sells
- credit put spread
- credit call spread
the approach
- set width for the wing spread (eg, 1, ie, 1 unit width spread)
- set delta for inner leg of the put credit spread (eg, -0.2)
- set delta for inne... | "totally just playing around ideas for the API.\n\n this IC sells\n - credit put spread\n - credit call spread\n\n the approach\n - set width for the wing spread (eg, 1, ie, 1 unit width spread)\n - set delta for inner leg of the put credit spread (eg, -0.2)\n - set delt... | 23 | false | westonplatter/fast_arrow | generate_by_deltas | 14,220 | |
LDU_FT/PolyJIT/benchbuild/in_builddir | LDU_FT | [
"<BEGIN>\n## `write_makeconfig`",
"Write a valid gentoo make.conf file to :path:.",
" Args:\n path - The output path of the make.conf\n<END>",
"<BEGIN>\n## `write_bashrc`",
"Write a valid gentoo bashrc file to :path:.",
" Args:\n path - The output path of the make.conf\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the in_builddir API.
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 in_builddir API.
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... | Decorate a project phase with a local working directory change.
Args:
sub: An optional subdirectory to change into. | "Decorate a project phase with a local working directory change.\n\n Args:\n sub: An optional subdirectory to change into." | 401 | false | PolyJIT/benchbuild | in_builddir | 14,221 | |
LDU_FT/StorjOld/plowshare-wrapper/_run_command | LDU_FT | [
"<BEGIN>\n## `_run_command`",
"Wrapper to pass command to plowshare.",
" :param command: The command to pass to plowshare.\n :type command: str\n :param **kwargs: Additional keywords passed into\n :type **kwargs: dict\n :returns: Object containing either output of plowshare co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _run_command API.
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 _run_command API.
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... | Wrapper to pass command to plowshare.
:param command: The command to pass to plowshare.
:type command: str
:param **kwargs: Additional keywords passed into
:type **kwargs: dict
:returns: Object containing either output of plowshare command or an
error message.
... | "Wrapper to pass command to plowshare.\n\n :param command: The command to pass to plowshare.\n :type command: str\n :param **kwargs: Additional keywords passed into\n :type **kwargs: dict\n :returns: Object containing either output of plowshare command or an\n error m... | 32 | false | StorjOld/plowshare-wrapper | _run_command | 14,222 | |
LDU_FT/Yubico/yubikey-manager/delete_certificate | LDU_FT | [
"<BEGIN>\n## `openpgp`",
"Manage OpenPGP Application.",
" Examples:",
" \\b\n Set the retries for PIN, Reset Code and Admin PIN to 10:\n $ ykman openpgp set-retries 10 10 10",
" \\b\n Require touch to use the authentication key:\n $ ykman openpgp touch aut on\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_certificate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_certificate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Delete a certificate.
Delete a certificate from a slot on the YubiKey. | "Delete a certificate.\n\n Delete a certificate from a slot on the YubiKey." | 180 | false | Yubico/yubikey-manager | delete_certificate | 14,223 | |
LDU_FT/avinassh/haxor/get_max_item | LDU_FT | [
"<BEGIN>\n## `_get_sync`",
"Internal method used for GET requests",
" Args:\n url (str): URL to fetch",
" Returns:\n Individual URL request's response",
" Raises:\n HTTPError: If HTTP request failed.\n<END>",
"<BEGIN>\n## `_get_async`",
"Asynchronous i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_max_item API.
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_max_item API.
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... | The current largest item id
Fetches data from URL:
https://hacker-news.firebaseio.com/v0/maxitem.json
Args:
expand (bool): Flag to indicate whether to transform all
IDs into objects.
Returns:
`int` if successful. | "The current largest item id\n\n Fetches data from URL:\n https://hacker-news.firebaseio.com/v0/maxitem.json\n\n Args:\n expand (bool): Flag to indicate whether to transform all\n IDs into objects.\n\n Returns:\n `int` if successful." | 77 | false | avinassh/haxor | get_max_item | 14,224 | |
LDU_FT/Apitax/Apitax/get_user | LDU_FT | [
"<BEGIN>\n## `get_driver_blacklist`",
"Retrieve the blacklist in the driver",
" Retrieve the blacklist in the driver # noqa: E501",
" :param driver: The driver to use for the request. ie. github\n :type driver: str",
" :rtype: Response\n<END>",
"<BEGIN>\n## `get_driver_config`",
"Retrieve th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracte... | Retrieve a user
Retrieve a user # noqa: E501
:param user: Get user with this name
:type user: str
:param driver: The driver to use for the request. ie. github
:type driver: str
:rtype: Response | "Retrieve a user\n\n Retrieve a user # noqa: E501\n\n :param user: Get user with this name\n :type user: str\n :param driver: The driver to use for the request. ie. github\n :type driver: str\n\n :rtype: Response" | 137 | false | Apitax/Apitax | get_user | 14,225 | |
LDU_FT/JHowell45/helium-cli/store_data | LDU_FT | [
"<BEGIN>\n## `store_data`",
"Use this function to store data in a JSON file.",
" This function is used for loading up a JSON file and appending additional\n data to the JSON file.",
" :param data: the data to add to the JSON file.\n :type data: dict\n<END>",
"<BEGIN>\n## `command_banner`",
"Us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Use this function to store data in a JSON file.
This function is used for loading up a JSON file and appending additional
data to the JSON file.
:param data: the data to add to the JSON file.
:type data: dict | "Use this function to store data in a JSON file.\n\n This function is used for loading up a JSON file and appending additional\n data to the JSON file.\n\n :param data: the data to add to the JSON file.\n :type data: dict" | 19 | false | JHowell45/helium-cli | store_data | 14,226 | |
LDU_FT/gbiggs/rtctree/add_logger | LDU_FT | [
"<BEGIN>\n## `build_attr_string`",
"Build a string that will turn any ANSI shell output the desired\r\n colour.\r",
" attrs should be a list of keys into the term_attributes table.\n<END>",
"<BEGIN>\n## `get_num_columns_and_rows`",
"Given a list of string widths, a width of the minimum gap to place\r\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add a callback to receive log events from this component.
@param cb The callback function to receive log events. It must have the
signature cb(name, time, source, level, message), where name is the
name of the component the log record came from, time is a
floating-point time... | "Add a callback to receive log events from this component.\n\n @param cb The callback function to receive log events. It must have the\n signature cb(name, time, source, level, message), where name is the\n name of the component the log record came from, time is a\n floating-poin... | 285 | false | gbiggs/rtctree | add_logger | 14,227 | |
LDU_FT/Unidata/MetPy/interp | LDU_FT | [
"<BEGIN>\n## `warn_deprecated`",
"Display deprecation warning in a standard way.",
" Parameters\n ----------\n since : str\n The release at which this API became deprecated.",
" message : str, optional\n Override the default deprecation message. The format\n specifier `%(name... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interp API.
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 interp API.
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 ... | Wrap interpolate_1d for deprecated interp. | "Wrap interpolate_1d for deprecated interp." | 1,193 | true | Unidata/MetPy | interp | 14,228 | |
LDU_FT/inonit/drf-haystack/more_like_this | LDU_FT | [
"<BEGIN>\n## `download_setuptools`",
"Download distribute from a specified location and return its filename",
" `version` should be a valid distribute version number that is available\n as an egg for download under the `download_base` URL (which should end\n with a '/'). `to_dir` is the directory where... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the more_like_this API.
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 more_like_this API.
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... | Sets up a detail route for ``more-like-this`` results.
Note that you'll need backend support in order to take advantage of this.
This will add ie. ^search/{pk}/more-like-this/$ to your existing ^search pattern. | "Sets up a detail route for ``more-like-this`` results.\n Note that you'll need backend support in order to take advantage of this.\n\n This will add ie. ^search/{pk}/more-like-this/$ to your existing ^search pattern." | 77 | false | inonit/drf-haystack | more_like_this | 14,229 | |
LDU_FT/architv/soccer-cli/get_team_players | LDU_FT | [
"<BEGIN>\n## `get_team_scores`",
"Queries the API and gets the particular team scores\n<END>",
"<BEGIN>\n## `get_standings`",
"Queries the API and gets the standings for a particular league\n<END>",
"<BEGIN>\n## `get_league_scores`",
"Queries the API and fetches the scores for fixtures\n based upon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_team_players API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_team_players API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Queries the API and fetches the players
for a particular team | "Queries the API and fetches the players\n for a particular team" | 50 | false | architv/soccer-cli | get_team_players | 14,230 | |
LDU_FT/kevin1024/vcrpy/decode_response | LDU_FT | [
"<BEGIN>\n## `convert_body_to_bytes`",
"If the request body is a string, encode it to bytes (for python3 support)",
" By default yaml serializes to utf-8 encoded bytestrings.\n When this cassette is loaded by python3, it's automatically decoded\n into unicode strings. This makes sure that it stays a by... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_response API.
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 decode_response API.
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... | If the response is compressed with gzip or deflate:
1. decompress the response body
2. delete the content-encoding header
3. update content-length header to decompressed length | "If the response is compressed with gzip or deflate:\n 1. decompress the response body\n 2. delete the content-encoding header\n 3. update content-length header to decompressed length" | 51 | false | kevin1024/vcrpy | decode_response | 14,231 | |
LDU_FT/kplindegaard/smbus2/open | LDU_FT | [
"<BEGIN>\n## `read`",
"Prepares an i2c read transaction.",
" :param address: Slave address.\n :type: address: int\n :param length: Number of bytes to read.\n :type: length: int\n :return: New :py:class:`i2c_msg` instance for read operation.\n :rtype: :py:class:`i2c_msg`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
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 open API.
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... | Open a given i2c bus.
:param bus: i2c bus number (e.g. 0 or 1)
:type bus: int | "Open a given i2c bus.\n\n :param bus: i2c bus number (e.g. 0 or 1)\n :type bus: int" | 51 | false | kplindegaard/smbus2 | open | 14,232 | |
LDU_FT/OnroerendErfgoed/oe_utils/sqlalchemy_validator | LDU_FT | [
"<BEGIN>\n## `after_commit_listener`",
"Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>",
"<BEGIN>\n## `_queue_job`",
"creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sqlalchemy_validator 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 sqlalchemy_validator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Validate a sqlalchemy object or identifier.
Function checks if value is an instance of sqlalchemy model
or an id of one.
:param node: A colander SchemaNode.
:param value: The value to be validated. Is the key of the
SQLAlchemy model.
:param model: A SQLAlchemy model.
:param session: A SQ... | "Validate a sqlalchemy object or identifier.\n Function checks if value is an instance of sqlalchemy model\n or an id of one.\n :param node: A colander SchemaNode.\n :param value: The value to be validated. Is the key of the\n SQLAlchemy model.\n :param model: A SQLAlchemy model.\n :param sessi... | 100 | false | OnroerendErfgoed/oe_utils | sqlalchemy_validator | 14,233 | |
LDU_FT/frostming/atoml/contains_list | LDU_FT | [
"<BEGIN>\n## `dump`",
"Write dict object into file",
" :param obj: the object to be dumped into toml\n :param f: the file object\n :param preserve: optional flag to preserve the inline table in result\n<END>",
"<BEGIN>\n## `dumps`",
"Stringifies a dict as toml",
" :param obj: the object to be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_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 ext... | Check if longer list starts with shorter list | "Check if longer list starts with shorter list" | 18 | false | frostming/atoml | contains_list | 14,234 | |
LDU_FT/googlefonts/glyphsLib/from_files | LDU_FT | [
"<BEGIN>\n## `to_ufo_font_attributes`",
"Generate a list of UFOs with metadata loaded from .glyphs data.",
" Modifies the list of UFOs in the UFOBuilder (self) in-place.\n<END>",
"<BEGIN>\n## `to_glyphs_font_attributes`",
"Copy font attributes from `ufo` either to `self.font` or to `master`.",
" Arg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return GlyphData holding data from a list of XML file paths. | "Return GlyphData holding data from a list of XML file paths." | 235 | false | googlefonts/glyphsLib | from_files | 14,235 | |
LDU_FT/erikvw/django-collect-offline-files/send | LDU_FT | [
"<BEGIN>\n## `confirm`",
"Flags the batch as confirmed by updating\n confirmation_datetime on the history model for this batch.\n<END>",
"<BEGIN>\n## `reload`",
"Reloads /path/to/filenames into the queue\n that match the regexes.\n<END>",
"<BEGIN>\n## `send`",
"Sends the file to the remote h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Sends the file to the remote host and archives
the sent file locally. | "Sends the file to the remote host and archives\n the sent file locally." | 36 | false | erikvw/django-collect-offline-files | send | 14,236 | |
LDU_FT/dsoprea/PySchedules/_startSchedulesNode | LDU_FT | [
"<BEGIN>\n## `_startXTVDNode`",
"Process the start of the top-level xtvd node\n<END>",
"<BEGIN>\n## `_startStationsNode`",
"Process the start of a node under xtvd/stations\n<END>",
"<BEGIN>\n## `_endStationsNode`",
"Process the end of a node under xtvd/stations\n<END>",
"<BEGIN>\n## `_startLineupsNode`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _startSchedulesNode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _startSchedulesNode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Process the start of a node under xtvd/schedules | "Process the start of a node under xtvd/schedules" | 50 | false | dsoprea/PySchedules | _startSchedulesNode | 14,237 | |
LDU_FT/zyga/python-glibc/NamedTemporaryFile | LDU_FT | [
"<BEGIN>\n## `_get_fd`",
"Get a descriptor out of a file object.",
" :param fileobj:\n An integer (existing descriptor) or any object having the `fileno()`\n method.\n :raises ValueError:\n if the descriptor cannot be obtained or if the descriptor is invalid\n :returns:\n fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the NamedTemporaryFile 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 NamedTemporaryFile 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... | Create and return a temporary file.
Arguments:
'prefix', 'suffix', 'dir' -- as for mkstemp.
'mode' -- the mode argument to io.open (default "w+b").
'buffering' -- the buffer size argument to io.open (default -1).
'encoding' -- the encoding argument to io.open (default None)
'newline' -- the newl... | "Create and return a temporary file.\n Arguments:\n 'prefix', 'suffix', 'dir' -- as for mkstemp.\n 'mode' -- the mode argument to io.open (default \"w+b\").\n 'buffering' -- the buffer size argument to io.open (default -1).\n 'encoding' -- the encoding argument to io.open (default None)\n 'newline' --... | 106 | false | zyga/python-glibc | NamedTemporaryFile | 14,238 | |
LDU_FT/pyschool/story/gettext | LDU_FT | [
"<BEGIN>\n## `translation`",
"Return a translation object in the default 'django' domain.\n<END>",
"<BEGIN>\n## `gettext`",
"Translate the 'message' string. It uses the current thread to find the\n translation object to use. If no current translation is activated, the\n message will be run through the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gettext API.
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 gettext API.
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... | Translate the 'message' string. It uses the current thread to find the
translation object to use. If no current translation is activated, the
message will be run through the default translation object. | "Translate the 'message' string. It uses the current thread to find the\n translation object to use. If no current translation is activated, the\n message will be run through the default translation object." | 11 | false | pyschool/story | gettext | 14,239 | |
LDU_FT/dcos/shakedown/add_user | LDU_FT | [
"<BEGIN>\n## `get_tasks`",
"Get a list of tasks, optionally filtered by task id.\n The task_id can be the abbrevated. Example: If a task named 'sleep' is\n scaled to 3 in marathon, there will be be 3 tasks starting with 'sleep.'",
" :param task_id: task ID\n :type task_id: str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extracte... | Adds user to the DCOS Enterprise. If not description
is provided the uid will be used for the description.
:param uid: user id
:type uid: str
:param password: password
:type password: str
:param desc: description of user
:type desc: str | "Adds user to the DCOS Enterprise. If not description\n is provided the uid will be used for the description.\n\n :param uid: user id\n :type uid: str\n :param password: password\n :type password: str\n :param desc: description of user\n :type desc: str" | 288 | false | dcos/shakedown | add_user | 14,240 | |
LDU_FT/edeposit/edeposit.amqp/onMessageReceived | LDU_FT | [
"<BEGIN>\n## `_process_exception`",
"Process informations about exception and send them thru AMQP.",
" Args:\n e (obj): Exception instance.\n body (str): Text which will be sent over AMQP.\n tb (obj): Traceback object with informations, which will be put to the\n headers... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the onMessageReceived API.
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 onMessageReceived API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | React to received message - deserialize it, add it to users reaction
function stored in ``self.react_fn`` and send back result.
If `Exception` is thrown during process, it is sent back instead of
message.
Note:
In case of `Exception`, response message doesn't have useful `b... | "React to received message - deserialize it, add it to users reaction\n function stored in ``self.react_fn`` and send back result.\n\n If `Exception` is thrown during process, it is sent back instead of\n message.\n\n Note:\n In case of `Exception`, response message doesn't have u... | 70 | false | edeposit/edeposit.amqp | onMessageReceived | 14,241 | |
LDU_FT/sernst/cauldron/settings | LDU_FT | [
"<BEGIN>\n## `set_executing`",
"Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.",
" :param on:\n Whether or not the thread should be annotated as execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the settings API.
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 settings API.
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... | The settings associated with this project. | "The settings associated with this project." | 534 | false | sernst/cauldron | settings | 14,242 | |
LDU_FT/davebridges/mousedb/breeding_change | LDU_FT | [
"<BEGIN>\n## `age`",
"Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>",
"<BEGIN>\n## `breeding_male_location_type`",
"This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.",
" This attri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the breeding_change API.
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 breeding_change API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | This view is used to generate a form by which to change pups which belong to a particular breeding set.
This view typically is used to modify existing pups. This might include marking animals as sacrificed, entering genotype or marking information or entering movement of mice to another cage. It is used to show... | "This view is used to generate a form by which to change pups which belong to a particular breeding set.\n\t\n This view typically is used to modify existing pups. This might include marking animals as sacrificed, entering genotype or marking information or entering movement of mice to another cage. It is used to ... | 128 | false | davebridges/mousedb | breeding_change | 14,243 | |
LDU_FT/karel-brinda/rnftools/create_et | LDU_FT | [
"<BEGIN>\n## `recode_curesim_reads`",
"Recode CuReSim output FASTQ file to the RNF-compatible output FASTQ file.",
"\t\tArgs:\n\t\t\tcuresim_fastq_fo (file object): File object of CuReSim FASTQ file.\n\t\t\tfastq_rnf_fo (file object): File object of RNF FASTQ.\n\t\t\tfai_fo (file object): File object for FAI fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_et API.
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 create_et API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create a et file for this BAM file (mapping information about read tuples).
raises: ValueError | "Create a et file for this BAM file (mapping information about read tuples).\n\n\t\traises: ValueError" | 84 | false | karel-brinda/rnftools | create_et | 14,244 | |
LDU_FT/bcb/jsonrpcserver/log_ | LDU_FT | [
"<BEGIN>\n## `validate`",
"Wraps jsonschema.validate, returning the same object passed in.",
" Args:\n request: The deserialized-from-json request.\n schema: The jsonschema schema to validate against.",
" Raises:\n jsonschema.ValidationError\n<END>",
"<BEGIN>\n## `call`",
"Valid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_ API.
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 log_ API.
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... | Log a request or response
Args:
message: JSON-RPC request or response string.
logger:
level: Log level.
extra: More details to include in the log entry.
trim: Abbreviate log messages. | "Log a request or response\n\n Args:\n message: JSON-RPC request or response string.\n logger: \n level: Log level.\n extra: More details to include in the log entry.\n trim: Abbreviate log messages." | 47 | false | bcb/jsonrpcserver | log_ | 14,245 | |
LDU_FT/Bogdanp/anom-py/fetch_next_page | LDU_FT | [
"<BEGIN>\n## `_transactions`",
"list[Transaction]: The current stack of Transactions.\n<END>",
"<BEGIN>\n## `transactional`",
"Decorates functions so that all of their operations (except for\n queries) run inside a Datastore transaction.",
" Parameters:\n adapter(Adapter, optional): The Adapter t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_next_page API.
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 fetch_next_page API.
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... | Fetch the next Page of results.
Returns:
Page: The next page of results. | "Fetch the next Page of results.\n\n Returns:\n Page: The next page of results." | 91 | false | Bogdanp/anom-py | fetch_next_page | 14,246 | |
LDU_FT/SpamScope/mail-parser/decode_header_part | LDU_FT | [
"<BEGIN>\n## `sanitize`",
"NFC is the normalization form recommended by W3C.\n<END>",
"<BEGIN>\n## `ported_string`",
"Give as input raw data and output a str in Python 3\n and unicode in Python 2.",
" Args:\n raw_data: Python 2 str, Python 3 bytes or str to porting\n encoding: string giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_header_part 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 decode_header_part 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... | Given an raw header returns an decoded header
Args:
header (string): header to decode
Returns:
str (Python 3) or unicode (Python 2) | "Given an raw header returns an decoded header\n\n Args:\n header (string): header to decode\n\n Returns:\n str (Python 3) or unicode (Python 2)" | 90 | false | SpamScope/mail-parser | decode_header_part | 14,247 | |
LDU_FT/stuaxo/vext/install_vexts | LDU_FT | [
"<BEGIN>\n## `do_enable`",
"Uncomment any lines that start with #import in the .pth file\n<END>",
"<BEGIN>\n## `do_disable`",
"Comment any lines that start with import in the .pth file\n<END>",
"<BEGIN>\n## `do_check`",
"Attempt to import everything in the 'test-imports' section of specified\n vext_fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_vexts API.
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 install_vexts API.
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... | copy vext_file to sys.prefix + '/share/vext/specs'
(PIP7 seems to remove data_files so we recreate something similar here) | "copy vext_file to sys.prefix + '/share/vext/specs'\n\n (PIP7 seems to remove data_files so we recreate something similar here)" | 64 | false | stuaxo/vext | install_vexts | 14,248 | |
LDU_FT/mediawiki-utilities/python-mwpersistence/update_opdocs | LDU_FT | [
"<BEGIN>\n## `persist_revision_once`",
"This function makes sure that a revision is only marked as persisting\n for a token once. This is important since some diff algorithms allow\n tokens to be copied more than once in a revision. The id(token) should\n unique to the in-memory representation of any o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_opdocs API.
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 update_opdocs API.
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... | Modifies the internal state based a change to the content and returns
the sets of words added and removed.
:Parameters:
checksum : `hashable`
A checksum generated from the text of a revision
opdocs : `iterable` ( `dict` )
A sequence of operations ... | "Modifies the internal state based a change to the content and returns\n the sets of words added and removed.\n\n :Parameters:\n checksum : `hashable`\n A checksum generated from the text of a revision\n opdocs : `iterable` ( `dict` )\n A sequence of ope... | 22 | false | mediawiki-utilities/python-mwpersistence | update_opdocs | 14,249 | |
LDU_FT/KujiraProject/Flask-PAM/authenticated | LDU_FT | [
"<BEGIN>\n## `authenticate`",
"Performs authentication using simplepam",
" This function calls simplepam's authenticate function and returns\n status of authentication using PAM and token object (of type\n self.token_type)",
" :param username: username in Linux",
" :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticated API.
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 authenticated API.
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... | Checks if user is authenticated using token passed in argument
:param user_token: string representing token
:param validation_context: Token.validate optional keyword arguments | "Checks if user is authenticated using token passed in argument\n\n :param user_token: string representing token\n\n :param validation_context: Token.validate optional keyword arguments" | 25 | false | KujiraProject/Flask-PAM | authenticated | 14,250 | |
LDU_FT/staticdev/django-pagination-bootstrap/_make_version | LDU_FT | [
"<BEGIN>\n## `_make_version`",
"Create a readable version string from version_info tuple components.\n<END>",
"<BEGIN>\n## `_make_url`",
"Make the URL people should start at for this version of coverage.py.\n<END>",
"<BEGIN>\n## `page`",
"Returns a Page object for the given 1-based page number.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Create a readable version string from version_info tuple components. | "Create a readable version string from version_info tuple components." | 12 | false | staticdev/django-pagination-bootstrap | _make_version | 14,251 | |
LDU_FT/python-bugzilla/python-bugzilla/addcomment | LDU_FT | [
"<BEGIN>\n## `_request_helper`",
"A helper method to assist in making a request and provide a parsed\n response.\n<END>",
"<BEGIN>\n## `open_without_clobber`",
"Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addcomment API.
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 addcomment API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Add the given comment to this bug. Set private to True to mark this
comment as private. | "Add the given comment to this bug. Set private to True to mark this\n comment as private." | 184 | false | python-bugzilla/python-bugzilla | addcomment | 14,252 | |
LDU_FT/ultradns/python_rest_api_client/delete_rrset | LDU_FT | [
"<BEGIN>\n## `create_primary_zone`",
"Creates a new primary zone.",
" Arguments:\n account_name -- The name of the account that will contain this zone.\n zone_name -- The name of the zone. It must be unique.\n<END>",
"<BEGIN>\n## `create_primary_zone_by_upload`",
"Creates a new primary... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_rrset API.
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 delete_rrset API.
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... | Deletes an RRSet.
Arguments:
zone_name -- The zone containing the RRSet to be deleted. The trailing dot is optional.
rtype -- The type of the RRSet. This can be numeric (1) or
if a well-known name is defined for the type (A), you can use it instead.
owner_name -- The ... | "Deletes an RRSet.\n\n Arguments:\n zone_name -- The zone containing the RRSet to be deleted. The trailing dot is optional.\n rtype -- The type of the RRSet. This can be numeric (1) or\n if a well-known name is defined for the type (A), you can use it instead.\n owner_name ... | 69 | false | ultradns/python_rest_api_client | delete_rrset | 14,253 | |
LDU_FT/kigawas/eciespy/derive | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt with eth public key",
" Parameters\n ----------\n receiver_pubhex: str\n Receiver's ethereum public key hex string\n msg: bytes\n Data to encrypt",
" Returns\n -------\n bytes\n Encrypted data\n<END>",
"<BEGIN>\n## `decrypt`",
"De... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the derive API.
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 derive API.
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 ... | Key exchange between private key and peer's public key,
`derive(k1, k2.public_key)` should be equal to `derive(k2, k1.public_key)`.
Parameters
----------
private_key: coincurve.PrivateKey
A secp256k1 private key
peer_public_key: coincurve.PublicKey
Peer's public key
Returns
... | "Key exchange between private key and peer's public key,\n `derive(k1, k2.public_key)` should be equal to `derive(k2, k1.public_key)`.\n\n Parameters\n ----------\n private_key: coincurve.PrivateKey\n A secp256k1 private key\n peer_public_key: coincurve.PublicKey\n Peer's public key\n\n ... | 27 | false | kigawas/eciespy | derive | 14,254 | |
LDU_FT/msikma/kanaconv/_promote_solitary_xvowel | LDU_FT | [
"<BEGIN>\n## `_clear_char`",
"Clears the current character and makes the machine ready\n to accept the next character.\n<END>",
"<BEGIN>\n## `_append_unknown_char`",
"Appends the unknown character, in case one was encountered.\n<END>",
"<BEGIN>\n## `_flush_char`",
"Appends the rōmaji characters tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _promote_solitary_xvowel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _promote_solitary_xvowel API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | "Promotes" the current xvowel to a regular vowel, in case
it is not otherwise connected to a character.
Used to print small vowels that would otherwise get lost;
normally small vowels always form a pair, but in case one is
by itself it should basically act like a regular vowel. | "\"Promotes\" the current xvowel to a regular vowel, in case\n it is not otherwise connected to a character.\n Used to print small vowels that would otherwise get lost;\n normally small vowels always form a pair, but in case one is\n by itself it should basically act like a regular vowel." | 57 | false | msikma/kanaconv | _promote_solitary_xvowel | 14,255 | |
LDU_FT/roanuz/py-cricket/update_file | LDU_FT | [
"<BEGIN>\n## `set_value`",
"Set key value to the file.",
" The fuction will be make the key and value to dictinary formate.\n If its exist then it will update the current new key value to\n the file.\n Arg:\n key : cache key\n value : cache value\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_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 extra... | It will convert json content to json string and update into file.
Return:
Boolean True/False | "It will convert json content to json string and update into file.\n\n Return:\n Boolean True/False" | 72 | false | roanuz/py-cricket | update_file | 14,256 | |
LDU_FT/mrstephenneal/mysql-toolkit/is_decimal | LDU_FT | [
"<BEGIN>\n## `count_rows_duplicates`",
"Get the number of rows that do not contain distinct values.\n<END>",
"<BEGIN>\n## `count_rows`",
"Get the number of rows in a particular table.\n<END>",
"<BEGIN>\n## `count_rows_distinct`",
"Get the number distinct of rows in a particular table.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_decimal API.
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 is_decimal API.
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... | Determine if a data record is of the type float. | "Determine if a data record is of the type float." | 204 | false | mrstephenneal/mysql-toolkit | is_decimal | 14,257 | |
LDU_FT/HumanCellAtlas/cloud-blobstore/get_user_metadata | LDU_FT | [
"<BEGIN>\n## `list`",
"Returns an iterator of all blob entries in a bucket that match a given prefix. Do not return any keys that\n contain the delimiter past the\n prefix.\n<END>",
"<BEGIN>\n## `delete`",
"Deletes an object in a bucket. If the operation definitely did not delete anything, ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Retrieves the user metadata for a given object in a given bucket. If the platform has any mandatory prefixes or
suffixes for the metadata keys, they should be stripped before being returned.
:param bucket: the bucket the object resides in.
:param key: the key of the object for which metadata is... | "Retrieves the user metadata for a given object in a given bucket. If the platform has any mandatory prefixes or\n suffixes for the metadata keys, they should be stripped before being returned.\n :param bucket: the bucket the object resides in.\n :param key: the key of the object for which metadat... | 59 | false | HumanCellAtlas/cloud-blobstore | get_user_metadata | 14,258 | |
LDU_FT/theislab/scvelo/cleanup | LDU_FT | [
"<BEGIN>\n## `strings_to_categoricals`",
"Transform string annotations to categoricals.\n<END>",
"<BEGIN>\n## `velocity_graph`",
"\\\n Plot of the velocity graph.",
" Arguments\n ---------\n adata: :class:`~anndata.AnnData`\n Annotated data matrix.\n vkey: `str` or `None` (default: `No... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API.
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 cleanup API.
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... | Deletes attributes not needed.
Arguments
---------
data: :class:`~anndata.AnnData`
Annotated data matrix.
clean: `str` or list of `str` (default: `layers`)
Which attributes to consider for freeing memory.
keep: `str` or list of `str` (default: None)
Which attributes to keep.... | "Deletes attributes not needed.\n\n Arguments\n ---------\n data: :class:`~anndata.AnnData`\n Annotated data matrix.\n clean: `str` or list of `str` (default: `layers`)\n Which attributes to consider for freeing memory.\n keep: `str` or list of `str` (default: None)\n Which attribute... | 200 | false | theislab/scvelo | cleanup | 14,259 | |
LDU_FT/richardkiss/pycoin/stream_header_legacy | 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 stream_header_legacy 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 stream_header_legacy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Stream the block header in the standard way to the file-like object f. | "Stream the block header in the standard way to the file-like object f." | 336 | false | richardkiss/pycoin | stream_header_legacy | 14,260 | |
LDU_FT/ampl/amplpy/getCurrentObjective | LDU_FT | [
"<BEGIN>\n## `getData`",
"Get the data corresponding to the display statements. The statements\n can be AMPL expressions, or entities. It captures the equivalent of the\n command:",
" .. code-block:: ampl",
" display ds1, ..., dsn;",
" where ds1, ..., dsn are the ``dis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCurrentObjective API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCurrentObjective API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Get the the current objective. Returns `None` if no objective is set. | "Get the the current objective. Returns `None` if no objective is set." | 205 | false | ampl/amplpy | getCurrentObjective | 14,261 | |
LDU_FT/eugene-eeo/mailthon/send | LDU_FT | [
"<BEGIN>\n## `guess`",
"Using the mimetypes library, guess the mimetype and\n encoding for a given *filename*. If the mimetype\n cannot be guessed, *fallback* is assumed instead.",
" :param filename: Filename- can be absolute path.\n :param fallback: A fallback mimetype.\n<END>",
"<BEGIN>\n## `for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
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... | Send an *envelope* which may be an envelope
or an enclosure-like object, see
:class:`~mailthon.enclosure.Enclosure` and
:class:`~mailthon.envelope.Envelope`, and
returns a :class:`~mailthon.response.SendmailResponse`
object. | "Send an *envelope* which may be an envelope\n or an enclosure-like object, see\n :class:`~mailthon.enclosure.Enclosure` and\n :class:`~mailthon.envelope.Envelope`, and\n returns a :class:`~mailthon.response.SendmailResponse`\n object." | 31 | false | eugene-eeo/mailthon | send | 14,262 | |
LDU_FT/pytorch/text/splits | LDU_FT | [
"<BEGIN>\n## `load_vectors`",
"Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create dataset objects for splits of the IMDB dataset.
Arguments:
text_field: The field that will be used for the sentence.
label_field: The field that will be used for label data.
root: Root dataset storage directory. Default is '.data'.
train: The directory tha... | "Create dataset objects for splits of the IMDB dataset.\n\n Arguments:\n text_field: The field that will be used for the sentence.\n label_field: The field that will be used for label data.\n root: Root dataset storage directory. Default is '.data'.\n train: The direct... | 131 | false | pytorch/text | splits | 14,263 | |
LDU_FT/zetaops/pyoko/get_choices_for | LDU_FT | [
"<BEGIN>\n## `find_models_and_delete_search_index`",
"Finds models to execute and these models' exist search indexes are deleted.\n For other operations, necessary models are gathered to list(exec_models)",
" Args:\n model: model to execute\n force(bool): True or False if Tru... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_choices_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_choices_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 e... | Get the choices for the given fields.
Args:
field (str): Name of field.
Returns:
List of tuples. [(name, value),...] | "Get the choices for the given fields.\n\n Args:\n field (str): Name of field.\n\n Returns:\n List of tuples. [(name, value),...]" | 278 | false | zetaops/pyoko | get_choices_for | 14,264 | |
LDU_FT/closeio/quotequail/quote | LDU_FT | [
"<BEGIN>\n## `quote`",
"Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.",
" Example: [(True, 'expanded text'), (False, '> Some quote... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quote API.
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 quote API.
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... | Takes a plain text message as an argument, returns a list of tuples. The
first argument of the tuple denotes whether the text should be expanded by
default. The second argument is the unmodified corresponding text.
Example: [(True, 'expanded text'), (False, '> Some quoted text')]
Unless the limit para... | "Takes a plain text message as an argument, returns a list of tuples. The\n first argument of the tuple denotes whether the text should be expanded by\n default. The second argument is the unmodified corresponding text.\n\n Example: [(True, 'expanded text'), (False, '> Some quoted text')]\n\n Unless the lim... | 65 | false | closeio/quotequail | quote | 14,265 | |
LDU_FT/dpkp/kafka-python/coordinator | LDU_FT | [
"<BEGIN>\n## `send_fetches`",
"Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.",
" Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>",
"<BEGIN>\n## `reset_offsets_if_needed`",
"Lookup and se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coordinator API.
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 coordinator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get the current coordinator
Returns: the current coordinator id or None if it is unknown | "Get the current coordinator\n\n Returns: the current coordinator id or None if it is unknown" | 787 | false | dpkp/kafka-python | coordinator | 14,266 | |
LDU_FT/happyleavesaoc/python-limitlessled/group_factory | LDU_FT | [
"<BEGIN>\n## `command_set_factory`",
"Create command set for controlling a specific led group.\n :param bridge: The bridge the leds are connected to.\n :param group_number: The group number.\n :param led_type: The type of the leds.\n :return: The created command set.\n<END>",
"<BEGIN>\n## `rate`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_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 ext... | Make a group.
:param bridge: Member of this bridge.
:param number: Group number (1-4).
:param name: Name of group.
:param led_type: Either `RGBW`, `WRGB`, `RGBWW`, `WHITE`, `DIMMER` or `BRIDGE_LED`.
:returns: New group. | "Make a group.\n\n :param bridge: Member of this bridge.\n :param number: Group number (1-4).\n :param name: Name of group.\n :param led_type: Either `RGBW`, `WRGB`, `RGBWW`, `WHITE`, `DIMMER` or `BRIDGE_LED`.\n :returns: New group." | 164 | false | happyleavesaoc/python-limitlessled | group_factory | 14,267 | |
LDU_FT/pycontribs/pyrax/delete | LDU_FT | [
"<BEGIN>\n## `resize`",
"Resize the volume to the specified size (in GB).\n<END>",
"<BEGIN>\n## `get`",
"This additional code is necessary to properly return the 'volume'\n attribute of the instance as a CloudDatabaseVolume object instead of\n a raw dict.\n<END>",
"<BEGIN>\n## `_create_body`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Deletes the specified container. If the container contains objects, the
command will fail unless 'del_objects' is passed as True. In that case,
each object will be deleted first, and then the container. | "Deletes the specified container. If the container contains objects, the\n command will fail unless 'del_objects' is passed as True. In that case,\n each object will be deleted first, and then the container." | 1,326 | true | pycontribs/pyrax | delete | 14,268 | |
LDU_FT/Dentosal/python-sc2/closest | LDU_FT | [
"<BEGIN>\n## `main_base_ramp`",
"Returns the Ramp instance of the closest main-ramp to start location. Look in game_info.py for more information\n<END>",
"<BEGIN>\n## `get_available_abilities`",
"Returns available abilities of one or more units.\n<END>",
"<BEGIN>\n## `distribute_workers`",
"Distributes wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closest API.
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 closest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This function assumes the 2d distance is meant | "This function assumes the 2d distance is meant" | 155 | false | Dentosal/python-sc2 | closest | 14,269 | |
LDU_FT/nameko/nameko/bind | LDU_FT | [
"<BEGIN>\n## `run_services`",
"Serves a number of services for a contextual block.\n The caller can specify a number of service classes then serve them either\n stopping (default) or killing them on exiting the contextual block.",
" Example::",
" with run_services(config, Foobar, Spam) as runn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bind API.
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 bind API.
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... | Bind implementation that supports sharing. | "Bind implementation that supports sharing." | 155 | false | nameko/nameko | bind | 14,270 | |
LDU_FT/nmdp-bioinformatics/SeqAnn/deserialize_date | LDU_FT | [
"<BEGIN>\n## `search_seqs`",
"search_seqs - method for annotating a BioPython sequence without alignment",
" :param seqrec: The reference sequence\n :type seqrec: SeqRecord\n :param locus: The gene locus associated with the sequence.\n :type locus: str\n :param in_seq: The inp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_date API.
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 deserialize_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Deserializes string to date.
:param string: str.
:type string: str
:return: date.
:rtype: date | "Deserializes string to date.\n\n :param string: str.\n :type string: str\n :return: date.\n :rtype: date" | 112 | false | nmdp-bioinformatics/SeqAnn | deserialize_date | 14,271 | |
LDU_FT/opereto/pyopereto/modify_kpi | LDU_FT | [
"<BEGIN>\n## `get_service_version`",
"get_service_version(self, service_id, mode='production', version='default')",
" | Get a specific version details of a given service. Opereto will try to fetch the requested service version. If not found, it will return the default production version. The \"actual_ver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_kpi API.
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 modify_kpi API.
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... | modify_kpi(self, kpi_id, product_id, measures=[], append=False, **kwargs)
Creates a new kpi or modifies existing one.
:Parameters:
* *kpi_id* (`string`) -- The KPI identifier (unique per product)
* *product_id* (`string`) -- The product (release candidate) identifier
* *measures*... | "modify_kpi(self, kpi_id, product_id, measures=[], append=False, **kwargs)\n\n Creates a new kpi or modifies existing one.\n\n :Parameters:\n * *kpi_id* (`string`) -- The KPI identifier (unique per product)\n * *product_id* (`string`) -- The product (release candidate) identifier\n * *m... | 220 | false | opereto/pyopereto | modify_kpi | 14,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.