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/KelSolaar/Umbra/uninitialize_ui | LDU_FT | [
"<BEGIN>\n## `restore_geometry_on_layout_change`",
"Setter for **self.__restore_geometry_on_layout_change** attribute.",
" :param value: Attribute value.\n :type value: bool\n<END>",
"<BEGIN>\n## `get`",
"Returns given layout value.",
" :param layout: Layout name.\n :type layou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uninitialize_ui API.
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 uninitialize_ui API.
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... | Uninitializes the Component ui.
:return: Method success.
:rtype: bool | "Uninitializes the Component ui.\n\n :return: Method success.\n :rtype: bool" | 1,432 | true | KelSolaar/Umbra | uninitialize_ui | 13,673 | |
LDU_FT/consbio/gis-metadata-parser/format_xpaths | LDU_FT | [
"<BEGIN>\n## `convert_parser_to`",
":return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type\n is a type, an instance of it must contain a update method. The update method must also process\n the set of properties supported by MetadataParser for the conversion t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_xpaths API.
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 format_xpaths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | :return: a copy of xpath_map, but with XPATHs formatted with ordered or keyword values | ":return: a copy of xpath_map, but with XPATHs formatted with ordered or keyword values" | 122 | false | consbio/gis-metadata-parser | format_xpaths | 13,674 | |
LDU_FT/stefankoegl/kdtree/search_knn | LDU_FT | [
"<BEGIN>\n## `require_axis`",
"Check if the object of the function has axis and sel_axis members\n<END>",
"<BEGIN>\n## `create`",
"Creates a kd-tree from a list of points",
" All points in the list must be of the same dimensionality.",
" If no point_list is given, an empty tree is created. The numbe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_knn API.
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 search_knn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the k nearest neighbors of point and their distances
point must be an actual point, not a node.
k is the number of results to return. The actual results can be less
(if there aren't more nodes to return) or more in case of equal
distances.
dist is a distance function, e... | "Return the k nearest neighbors of point and their distances\n\n point must be an actual point, not a node.\n\n k is the number of results to return. The actual results can be less\n (if there aren't more nodes to return) or more in case of equal\n distances.\n\n dist is a distance fu... | 72 | false | stefankoegl/kdtree | search_knn | 13,675 | |
LDU_FT/automl/HpBandSter/fit | LDU_FT | [
"<BEGIN>\n## `get_config`",
"Function to sample a new configuration",
"\t\t\tThis function is called inside Hyperband to query a new configuration",
"\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled",
"\t\t\treturns: config\n\t\t\t\tshou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | function to train the model on the observed data
Parameters:
-----------
times: list
list of numpy arrays of the timesteps for each curve
losses: list
list of numpy arrays of the loss (the actual learning curve)
configs: list ... | "function to train the model on the observed data\n\n Parameters:\n -----------\n\n times: list\n list of numpy arrays of the timesteps for each curve\n losses: list\n list of numpy arrays of the loss (the actual learning curve)\n conf... | 188 | false | automl/HpBandSter | fit | 13,676 | |
LDU_FT/UDST/orca/log_to_file | LDU_FT | [
"<BEGIN>\n## `import_file`",
"Import a file that will trigger the population of Orca.",
" Parameters\n ----------\n filename : str\n<END>",
"<BEGIN>\n## `check_is_table`",
"Decorator that will check whether the \"table_name\" keyword argument\n to the wrapped function matches a registered Orca t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_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 extra... | Send log output to the given file.
Parameters
----------
filename : str
level : int, optional
An optional logging level that will apply only to this stream
handler.
fmt : str, optional
An optional format string that will be used for the log
messages.
datefmt : st... | "Send log output to the given file.\n\n Parameters\n ----------\n filename : str\n level : int, optional\n An optional logging level that will apply only to this stream\n handler.\n fmt : str, optional\n An optional format string that will be used for the log\n messages.\n ... | 223 | false | UDST/orca | log_to_file | 13,677 | |
LDU_FT/dls-controls/annotypes/make_annotations | LDU_FT | [
"<BEGIN>\n## `add_metaclass`",
"Class decorator for creating a class with a metaclass.\n<END>",
"<BEGIN>\n## `_gorg`",
"Return the farthest origin of a generic class (internal helper).\n<END>",
"<BEGIN>\n## `_next_in_mro`",
"Helper for Generic.__new__.",
" Returns the class after the last occurrence ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_annotations API.
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_annotations API.
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 an annotations dictionary from Python2 type comments
http://mypy.readthedocs.io/en/latest/python2.html
Args:
f: The function to examine for type comments
globals_d: The globals dictionary to get type idents from. If not
specified then make the annotations dict contain string... | "Create an annotations dictionary from Python2 type comments\n\n http://mypy.readthedocs.io/en/latest/python2.html\n\n Args:\n f: The function to examine for type comments\n globals_d: The globals dictionary to get type idents from. If not\n specified then make the annotations dict contai... | 24 | false | dls-controls/annotypes | make_annotations | 13,678 | |
LDU_FT/readbeyond/aeneas/_pre_emphasis | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Return a Unicode string pretty print of the log entries.",
" :param bool as_list: if ``True``, return a list of Unicode strings,\n one for each entry, instead of a Unicode string\n :param bool show_datetime: if ``True``, show the date and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pre_emphasis API.
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 _pre_emphasis API.
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... | Pre-emphasize the entire signal at once by self.emphasis_factor,
overwriting ``self.data``. | "Pre-emphasize the entire signal at once by self.emphasis_factor,\n overwriting ``self.data``." | 1,097 | true | readbeyond/aeneas | _pre_emphasis | 13,679 | |
LDU_FT/moonso/loqusdb/search_variants | LDU_FT | [
"<BEGIN>\n## `update_database`",
"Update a case in the database",
" Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_variants API.
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_variants API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Make a batch search for variants in the database
Args:
variant_ids(list(str)): List of variant ids
Returns:
res(pymngo.Cursor(variant_obj)): The result | "Make a batch search for variants in the database\n \n Args:\n variant_ids(list(str)): List of variant ids\n \n Returns:\n res(pymngo.Cursor(variant_obj)): The result" | 216 | false | moonso/loqusdb | search_variants | 13,680 | |
LDU_FT/canonical-ols/acceptable/get_form_schema | LDU_FT | [
"<BEGIN>\n## `metadata_lint`",
"Run the linter over the new metadata, comparing to the old.\n<END>",
"<BEGIN>\n## `bind`",
"Bind the service API urls to a flask app.\n<END>",
"<BEGIN>\n## `serialize`",
"Serialize into JSONable dict, and associated locations data.\n<END>",
"<BEGIN>\n## `api`",
"Add an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form_schema API.
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_form_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return a JSON Schema object for a Django Form. | "Return a JSON Schema object for a Django Form." | 61 | false | canonical-ols/acceptable | get_form_schema | 13,681 | |
LDU_FT/SeabornGames/Table/obj_to_str | LDU_FT | [
"<BEGIN>\n## `list_to_obj`",
":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the obj_to_str API.
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 obj_to_str API.
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... | This will return a simple str table.
:param file_path: str of the path to the file
:param keys: list of str of the order of keys to use
:param tab: string of offset of the table
:param quote_numbers: bool if True will quote numbers that are strings
... | "This will return a simple str table.\n :param file_path: str of the path to the file\n :param keys: list of str of the order of keys to use\n :param tab: string of offset of the table\n :param quote_numbers: bool if True will quote numbers that are strings\n ... | 93 | false | SeabornGames/Table | obj_to_str | 13,682 | |
LDU_FT/borntyping/python-riemann-client/send | LDU_FT | [
"<BEGIN>\n## `socket_recvall`",
"A helper method to read of bytes from a socket to a maximum length\n<END>",
"<BEGIN>\n## `send`",
"Sends a message, but does not return a response",
" :returns: None - can't receive a response over UDP\n<END>",
"<BEGIN>\n## `send`",
"Sends a message to a Riemann s... | 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... | Adds a message to the list, returning a fake 'ok' response
:returns: A response message with ``ok = True`` | "Adds a message to the list, returning a fake 'ok' response\n\n :returns: A response message with ``ok = True``" | 43 | false | borntyping/python-riemann-client | send | 13,683 | |
LDU_FT/praekelt/django-livechat/comment_set | LDU_FT | [
"<BEGIN>\n## `live_chat_banner`",
"Display any available live chats as advertisements.\n<END>",
"<BEGIN>\n## `current_livechat`",
"Checks if a live chat is currently on the go, and add it to the request\n context.",
" This is to allow the AskMAMA URL in the top-navigation to be redirected to\n the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the comment_set API.
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 comment_set API.
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 comments that have been submitted for the chat | "Get the comments that have been submitted for the chat" | 13 | false | praekelt/django-livechat | comment_set | 13,684 | |
LDU_FT/trentm/cmdln/do_proplist | LDU_FT | [
"<BEGIN>\n## `mkmanpage`",
"Return man page content for the given `cmdln.Cmdln` subclass name.\n<END>",
"<BEGIN>\n## `do_crush`",
"${cmd_name}: crush your enemies!",
" ${cmd_usage}\n ${cmd_option_list}\n C.f. Conan the Barbarian.\n<END>",
"<BEGIN>\n## `do_add`",
"Put files and direc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_proplist API.
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 do_proplist API.
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... | List all properties on files, dirs, or revisions.
usage:
1. proplist [PATH...]
2. proplist --revprop -r REV [URL]
1. Lists versioned props in working copy.
2. Lists unversioned remote props on repos revision.
${cmd_option_list} | "List all properties on files, dirs, or revisions.\n\n usage:\n 1. proplist [PATH...]\n 2. proplist --revprop -r REV [URL]\n \n 1. Lists versioned props in working copy.\n 2. Lists unversioned remote props on repos revision.\n\n ${cmd_option_list}" | 207 | false | trentm/cmdln | do_proplist | 13,685 | |
LDU_FT/nickmilon/Hellas/seconds_to_DHMS | LDU_FT | [
"<BEGIN>\n## `logging_format`",
"returns a format\n :parameter:\n - str style: defines style of output format (defaults to txt)\n - txt plain text\n - dict like text which can be casted to dict\n<END>",
"<BEGIN>\n## `logger_multi`",
"a logger that logs to file as well as as scr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the seconds_to_DHMS API.
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 seconds_to_DHMS API.
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... | converts seconds to Days, Hours, Minutes, Seconds
:param int seconds: number of seconds
:param bool as_string: to return a formated string defaults to True
:returns: a formated string if as_str else a dictionary
:Example:
>>> seconds_to_DHMS(60*60*24)
001-00:00:00
>>> seconds_to... | "converts seconds to Days, Hours, Minutes, Seconds\n\n :param int seconds: number of seconds\n :param bool as_string: to return a formated string defaults to True\n :returns: a formated string if as_str else a dictionary\n :Example:\n >>> seconds_to_DHMS(60*60*24)\n 001-00:00:00\n >>> s... | 71 | false | nickmilon/Hellas | seconds_to_DHMS | 13,686 | |
LDU_FT/peterwittek/ncpol2sdpa/build_permutation_matrix | LDU_FT | [
"<BEGIN>\n## `read_sdpa_out`",
"Helper function to parse the output file of SDPA.",
" :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_permutation_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_permutation_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Build a permutation matrix for a permutation. | "Build a permutation matrix for a permutation." | 217 | false | peterwittek/ncpol2sdpa | build_permutation_matrix | 13,687 | |
LDU_FT/grst/geos/kml_region | LDU_FT | [
"<BEGIN>\n## `griditer`",
"Iterate through a grid of tiles.",
" Args:\n x (int): x start-coordinate\n y (int): y start-coordinate\n ncol (int): number of tile columns\n nrow (int): number of tile rows. If not specified, this\n defaults to ncol, s.t. a quadratic region i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kml_region API.
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 kml_region API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Create the KML <Region> tag with the appropriate geographic coordinates
Args:
region_coords (RegionCoordinate):
min_lod_pixels (int): see `kml_lod`
max_lod_pixels (int): see `kml_lod`
Returns:
KMLElement: the KML <Region> | "Create the KML <Region> tag with the appropriate geographic coordinates\n\n Args:\n region_coords (RegionCoordinate):\n min_lod_pixels (int): see `kml_lod`\n max_lod_pixels (int): see `kml_lod`\n\n Returns:\n KMLElement: the KML <Region>" | 153 | false | grst/geos | kml_region | 13,688 | |
LDU_FT/blixt/py-starbound/get_all_regions_with_tiles | LDU_FT | [
"<BEGIN>\n## `get_all_keys`",
"A generator which yields a list of all valid keys starting at the\n given `start` offset. If `start` is `None`, we will start from\n the root of the tree.\n<END>",
"<BEGIN>\n## `read_varint`",
"Read while the most significant bit is set, then put the 7 least\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_regions_with_tiles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_all_regions_with_tiles API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Generator which yields a set of (rx, ry) tuples which describe
all regions for which the world has tile data | "Generator which yields a set of (rx, ry) tuples which describe\n all regions for which the world has tile data" | 10 | false | blixt/py-starbound | get_all_regions_with_tiles | 13,689 | |
LDU_FT/opentracing/opentracing-python/set_global_tracer | LDU_FT | [
"<BEGIN>\n## `activate`",
"Make a :class:`~opentracing.Span` instance active.",
" :param span: the :class:`~opentracing.Span` that should become active.\n :param finish_on_close: whether *span* should automatically be\n finished when :meth:`Scope.close()` is called.",
" :return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_global_tracer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_global_tracer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Sets the global tracer.
It is an error to pass ``None``.
:param value: the :class:`Tracer` used as global instance.
:type value: :class:`Tracer` | "Sets the global tracer.\n It is an error to pass ``None``.\n\n :param value: the :class:`Tracer` used as global instance.\n :type value: :class:`Tracer`" | 79 | false | opentracing/opentracing-python | set_global_tracer | 13,690 | |
LDU_FT/kolypto/py-good/supports_undefined | LDU_FT | [
"<BEGIN>\n## `message`",
"Convenience decorator that applies [`Msg()`](#msg) to a callable.",
" ```python\n from good import Schema, message",
" @message(u'Need a number')\n def intify(v):\n return int(v)\n ```",
" :param message: Error message to use instead\n :type message: uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supports_undefined 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 supports_undefined 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... | Test whether this schema supports Undefined.
A Schema that supports `Undefined`, when given `Undefined`, should return some value (other than `Undefined`)
without raising errors.
This is designed to support a very special case like that:
```python
Schema(Default(0)).supports_u... | "Test whether this schema supports Undefined.\n\n A Schema that supports `Undefined`, when given `Undefined`, should return some value (other than `Undefined`)\n without raising errors.\n\n This is designed to support a very special case like that:\n\n ```python\n Schema(Default(0)).s... | 118 | false | kolypto/py-good | supports_undefined | 13,691 | |
LDU_FT/zsethna/OLGA/compute_hamming_dist_1_pgen | LDU_FT | [
"<BEGIN>\n## `nt2aa`",
"Translate a nucleotide sequence into an amino acid sequence.",
" Parameters\n ----------\n ntseq : str\n Nucleotide sequence composed of A, C, G, or T (uppercase or lowercase)",
" Returns\n -------\n aaseq : str\n Amino acid sequence",
" Example\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_hamming_dist_1_pgen API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_hamming_dist_1_pgen API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Compute Pgen of all seqs hamming dist 1 (in amino acids) from CDR3_seq.
Please note that this function will list out all the
sequences that are hamming distance 1 from the base sequence and then
calculate the Pgen of each sequence in succession. THIS CAN BE SLOW
as it computes Pg... | "Compute Pgen of all seqs hamming dist 1 (in amino acids) from CDR3_seq.\n \n Please note that this function will list out all the \n sequences that are hamming distance 1 from the base sequence and then \n calculate the Pgen of each sequence in succession. THIS CAN BE SLOW \n as it compu... | 287 | false | zsethna/OLGA | compute_hamming_dist_1_pgen | 13,692 | |
LDU_FT/briancappello/flask-sqlalchemy-bundle/_convert_bases_to_mixins | LDU_FT | [
"<BEGIN>\n## `param_converter`",
"Call with the url parameter names as keyword argument keys, their values\n being the model to convert to.",
" Models will be looked up by the url param names. If a url param name\n is prefixed with the snake-cased model name, the prefix will be stripped.",
" If a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_bases_to_mixins 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 _convert_bases_to_mixins API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | For each base class in bases that the _ModelRegistry knows about, create
a replacement class containing the methods and attributes from the base
class:
- the mixin should only extend object (not db.Model)
- if any of the attributes are MapperProperty instances (relationship,
... | "For each base class in bases that the _ModelRegistry knows about, create\n a replacement class containing the methods and attributes from the base\n class:\n - the mixin should only extend object (not db.Model)\n - if any of the attributes are MapperProperty instances (relationship,\n ... | 36 | false | briancappello/flask-sqlalchemy-bundle | _convert_bases_to_mixins | 13,693 | |
LDU_FT/ppaquette/gym-pull/make | LDU_FT | [
"<BEGIN>\n## `upload`",
"Upload the results of training (as automatically recorded by your\n env's monitor) to OpenAI Gym.",
" Args:\n training_dir (Optional[str]): A directory containing the results of a training run.\n algorithm_id (Optional[str]): An algorithm id indicating the particular... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make API.
Each 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 make API.
Each 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... | Instantiates an instance of the environment with appropriate kwargs | "Instantiates an instance of the environment with appropriate kwargs" | 12 | false | ppaquette/gym-pull | make | 13,694 | |
LDU_FT/fictorial/pygameui/use_theme | LDU_FT | [
"<BEGIN>\n## `value_for_keypath`",
"Get value from walking key path with start object obj.\n<END>",
"<BEGIN>\n## `set_value_for_keypath`",
"Set attribute value new_value at key path of start object obj.\n<END>",
"<BEGIN>\n## `view_for_image_named`",
"Create an ImageView for the given image.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_theme API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_theme API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Make the given theme current.
There are two included themes: light_theme, dark_theme. | "Make the given theme current.\n\n There are two included themes: light_theme, dark_theme." | 53 | false | fictorial/pygameui | use_theme | 13,695 | |
LDU_FT/Groundworkstech/pybfd/format | LDU_FT | [
"<BEGIN>\n## `generate_source_files`",
"Genertate source files to be used during the compile process of the\n extension module.\n This is better than just hardcoding the values on python files because\n header definitions might change along differente Binutils versions and\n we'll be a... | 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 ... | Return the format attribute of the BFD file being processed. | "Return the format attribute of the BFD file being processed." | 96 | false | Groundworkstech/pybfd | format | 13,696 | |
LDU_FT/yymao/generic-catalog-reader/first_available | LDU_FT | [
"<BEGIN>\n## `dict_to_numpy_array`",
"Convert a dict of 1d array to a numpy recarray\n<END>",
"<BEGIN>\n## `concatenate_1d`",
"Concatenate 1D numpy arrays.\n Similar to np.concatenate but work with empty input and masked arrays.\n<END>",
"<BEGIN>\n## `get_quantities`",
"Fetch quantities from this catal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_available API.
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 first_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the first available quantity in the input arguments.
Return `None` if none of them is available. | "Return the first available quantity in the input arguments.\n Return `None` if none of them is available." | 54 | false | yymao/generic-catalog-reader | first_available | 13,697 | |
LDU_FT/sacrud/sacrud/read | LDU_FT | [
"<BEGIN>\n## `list_of_lists_to_dict`",
"Convert list of key,value lists to dict",
" [['id', 1], ['id', 2], ['id', 3], ['foo': 4]]\n {'id': [1, 2, 3], 'foo': [4]}\n<END>",
"<BEGIN>\n## `get_m2m_value`",
"Set m2m value for model obj from request params like \"group[]\"",
" :Parameters:",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Return a list of entries in the table or single
entry if there is an pk.
.. code-block:: python
# All users
DBSession.sacrud(Users).read()
# Composite primary_key
DBSession.sacrud(User2Groups).read({'user_id': 4, 'group_id': 2})
# Multiple ... | "Return a list of entries in the table or single\n entry if there is an pk.\n\n .. code-block:: python\n\n # All users\n DBSession.sacrud(Users).read()\n\n # Composite primary_key\n DBSession.sacrud(User2Groups).read({'user_id': 4, 'group_id': 2})\n\n ... | 63 | false | sacrud/sacrud | read | 13,698 | |
LDU_FT/twoolie/NBT/get_data_byte_array | LDU_FT | [
"<BEGIN>\n## `stats_per_chunk`",
"Given a chunk, increment the block types with the number of blocks found\n<END>",
"<BEGIN>\n## `bounded_stats_per_chunk`",
"Given a chunk, return the number of blocks types within the specified selection\n<END>",
"<BEGIN>\n## `process_region_file`",
"Given a region, retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_byte_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_byte_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return a list of data for all blocks in this chunk. | "Return a list of data for all blocks in this chunk." | 84 | false | twoolie/NBT | get_data_byte_array | 13,699 | |
LDU_FT/stephantul/somber/backward | LDU_FT | [
"<BEGIN>\n## `_calculate_influence`",
"Pre-calculate the influence for a given value of sigma.",
" The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).",
" Parameters\n ----------\n neighborhood : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the backward API.
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 backward API.
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... | Backward pass through the network, including update.
Parameters
----------
diff_x : numpy array
A matrix containing the differences between the input and neurons.
influences : numpy array
A matrix containing the influence each neuron has on each
other... | "Backward pass through the network, including update.\n\n Parameters\n ----------\n diff_x : numpy array\n A matrix containing the differences between the input and neurons.\n influences : numpy array\n A matrix containing the influence each neuron has on each\n ... | 123 | false | stephantul/somber | backward | 13,700 | |
LDU_FT/andreafioraldi/angrdbg/memory_objects_for_name | LDU_FT | [
"<BEGIN>\n## `get_dbg_brk_linux64`",
"Return the current brk value in the debugged process (only x86_64 Linux)\n<END>",
"<BEGIN>\n## `get_dbg_brk_linux32`",
"Return the current brk value in the debugged process (only x86 Linux)\n<END>",
"<BEGIN>\n## `get_unconstrained_bytes`",
"Get some consecutive uncons... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_objects_for_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_objects_for_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... | Returns a set of :class:`SimMemoryObjects` that contain expressions that contain a variable with the name of
`n`.
This is useful for replacing those values in one fell swoop with :func:`replace_memory_object()`, even if
they have been partially overwritten. | "Returns a set of :class:`SimMemoryObjects` that contain expressions that contain a variable with the name of\n `n`.\n\n This is useful for replacing those values in one fell swoop with :func:`replace_memory_object()`, even if\n they have been partially overwritten." | 24 | false | andreafioraldi/angrdbg | memory_objects_for_name | 13,701 | |
LDU_FT/rix0rrr/gcl/get_schema_spec | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Return a schema object from a spec.",
" A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>",
"<BEGIN>\n## `validate`",
"Validate an object according to its own AND an external... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_schema_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the evaluated schema expression from a subkey. | "Return the evaluated schema expression from a subkey." | 129 | false | rix0rrr/gcl | get_schema_spec | 13,702 | |
LDU_FT/dwwkelly/note/getItem | LDU_FT | [
"<BEGIN>\n## `check_auth`",
"This function is called to check if a username /\n password combination is valid.\n<END>",
"<BEGIN>\n## `scrubID`",
":param ID: An ID that can be of various types, this is very kludgy\n :returns: An integer ID\n<END>",
"<BEGIN>\n## `which`",
":param bin_name: the nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getItem API.
Each 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 getItem API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | :desc: Given an ID return the note JSON object
{u'note': u'note8',
u'ID': 3.0,
u'tags': [u'8'],
u'timestamps': [1381719620.315899]}
:param int itemID: The item ID, an integer
:returns: The matching note
:rval... | ":desc: Given an ID return the note JSON object\n {u'note': u'note8',\n u'ID': 3.0,\n u'tags': [u'8'],\n u'timestamps': [1381719620.315899]}\n :param int itemID: The item ID, an integer\n :returns: The matching note\n ... | 46 | false | dwwkelly/note | getItem | 13,703 | |
LDU_FT/plaid/plaid-python/create | LDU_FT | [
"<BEGIN>\n## `create`",
"Generate a public token for sandbox testing.",
" :param str institution_id:",
" :param [str] initial_products:",
" :param str webhook:\n<END>",
"<BEGIN>\n## `get`",
"Return accounts and transactions for an item.\n (`HTTP docs <https://pla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each 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 create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Generate a public token for sandbox testing.
:param str institution_id:
:param [str] initial_products:
:param str webhook: | "Generate a public token for sandbox testing.\n\n :param str institution_id:\n\n :param [str] initial_products:\n\n :param str webhook:" | 36 | false | plaid/plaid-python | create | 13,704 | |
LDU_FT/brunobord/meuhdb/filter_keys | LDU_FT | [
"<BEGIN>\n## `autocommit`",
"A decorator to commit to the storage if autocommit is set to True.\n<END>",
"<BEGIN>\n## `intersect`",
"Intersect dictionaries d1 and d2 by key *and* value.\n<END>",
"<BEGIN>\n## `insert`",
"Insert value in the keystore. Return the UUID key.\n<END>",
"<BEGIN>\n## `update`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_keys API.
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 filter_keys API.
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 a set of keys filtered according to the given arguments. | "Return a set of keys filtered according to the given arguments." | 24 | false | brunobord/meuhdb | filter_keys | 13,705 | |
LDU_FT/reingart/pyafipws/AgregarItemDetalleAjuste | LDU_FT | [
"<BEGIN>\n## `__analizar_errores`",
"Comprueba y extrae errores si existen en la respuesta XML\n<END>",
"<BEGIN>\n## `__analizar_controles`",
"Comprueba y extrae controles si existen en la respuesta XML\n<END>",
"<BEGIN>\n## `Dummy`",
"Obtener el estado de los servidores de la AFIP\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AgregarItemDetalleAjuste 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 AgregarItemDetalleAjuste API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Agrega el detalle de item a un ajuste de liquidación | "Agrega el detalle de item a un ajuste de liquidación" | 334 | false | reingart/pyafipws | AgregarItemDetalleAjuste | 13,706 | |
LDU_FT/NLeSC/noodles/run | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>",
"<BEGIN>\n## `maybe`",
"Calls `f` in a try/except block, returning a `Fail` object if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run a workflow.
:param connection:
A connection giving a sink to the job-queue and a source yielding
results.
:type connection: Connection
:param master:
The workflow.
:type master: Workflow | "Run a workflow.\n\n :param connection:\n A connection giving a sink to the job-queue and a source yielding\n results.\n :type connection: Connection\n\n :param master:\n The workflow.\n :type master: Workflow" | 293 | false | NLeSC/noodles | run | 13,707 | |
LDU_FT/tableau/document-api-python/from_file | LDU_FT | [
"<BEGIN>\n## `xml_open`",
"Opens the provided 'filename'. Handles detecting if the file is an archive,\n detecting the document version, and validating the root tag.\n<END>",
"<BEGIN>\n## `find_file_in_zip`",
"Returns the twb/tds file from a Tableau packaged file format. Packaged\n files can contain cac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Initialize datasource from file (.tds ot .tdsx) | "Initialize datasource from file (.tds ot .tdsx)" | 55 | false | tableau/document-api-python | from_file | 13,708 | |
LDU_FT/coinbase/coinbase-python/get_deposit | LDU_FT | [
"<BEGIN>\n## `set_primary`",
"https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>",
"<BEGIN>\n## `modify`",
"https://developers.coinbase.com/api#modify-an-account\n<END>",
"<BEGIN>\n## `get_address`",
"https://developers.coinbase.com/api/v2#show-addresss\n<END>",
"<BEGIN>\n## `get_addre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_deposit API.
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... | https://developers.coinbase.com/api/v2#show-a-deposit | "https://developers.coinbase.com/api/v2#show-a-deposit" | 166 | false | coinbase/coinbase-python | get_deposit | 13,709 | |
LDU_FT/blockchain/api-v1-client-python/list_addresses | LDU_FT | [
"<BEGIN>\n## `get_ticker`",
"Call the 'ticker' method and return a dictionary\n of :class:`Currency` objects.",
" :param str api_code: Blockchain.info API code (optional)\n :return: a dictionary in the format of ccy_symbol(str):currency(:class:`Currency`)\n<END>",
"<BEGIN>\n## `to_btc`",
"Call the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_addresses API.
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 list_addresses API.
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... | List all active addresses in the wallet.
:return: an array of :class:`Address` objects | "List all active addresses in the wallet.\n\n :return: an array of :class:`Address` objects" | 78 | false | blockchain/api-v1-client-python | list_addresses | 13,710 | |
LDU_FT/wtsi-hgi/python-baton-wrapper/_remove_by_number | LDU_FT | [
"<BEGIN>\n## `validate_baton_binaries_location`",
"Validates that the given directory contains the baton binaries required to use the runner.\n :param baton_binaries_directory: the directory to check\n :return: exception that describes the issue else `None` if no issues\n<END>",
"<BEGIN>\n## `_rai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_by_number API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_by_number API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Removes the data object from this collection with the given number. A `ValueError` will be raised if a data
object with the given number does not exist.
:param number: the number of the data object to remove | "Removes the data object from this collection with the given number. A `ValueError` will be raised if a data\n object with the given number does not exist.\n :param number: the number of the data object to remove" | 71 | false | wtsi-hgi/python-baton-wrapper | _remove_by_number | 13,711 | |
LDU_FT/jadolg/rocketchat_API/channels_add_moderator | LDU_FT | [
"<BEGIN>\n## `directory`",
"Search by users or channels on all server.\n<END>",
"<BEGIN>\n## `spotlight`",
"Searches for users or rooms that are visible to the user.\n<END>",
"<BEGIN>\n## `users_info`",
"Gets a user’s information, limited to the caller’s permissions.\n<END>",
"<BEGIN>\n## `chat_search`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the channels_add_moderator 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 channels_add_moderator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Gives the role of moderator for a user in the current channel. | "Gives the role of moderator for a user in the current channel." | 82 | false | jadolg/rocketchat_API | channels_add_moderator | 13,712 | |
LDU_FT/BreakingBytes/simkit/f_aoi | LDU_FT | [
"<BEGIN>\n## `register`",
"Register outputs and metadata.",
" * ``initial_value`` - used in dynamic calculations\n * ``size`` - number of elements per timestep\n * ``uncertainty`` - in percent of nominal value\n * ``variance`` - dictionary of covariances, diagonal is square of\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the f_aoi API.
Each 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 f_aoi API.
Each 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... | Calculate angle of incidence
:param surface_tilt:
:param surface_azimuth:
:param solar_zenith:
:param solar_azimuth:
:return: angle of incidence [deg] | "Calculate angle of incidence\n\n :param surface_tilt:\n :param surface_azimuth:\n :param solar_zenith:\n :param solar_azimuth:\n :return: angle of incidence [deg]" | 227 | false | BreakingBytes/simkit | f_aoi | 13,713 | |
LDU_FT/google/tangent/visit_Assign | LDU_FT | [
"<BEGIN>\n## `compile_file`",
"Compile by saving to file and importing that.",
" Compiling the AST/source code this way ensures that the source code is\n readable by e.g. `pdb` or `inspect`.",
" Args:\n source: The code to compile, either as a string or as an AST.\n globals_: A dictionary of variable... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Assign API.
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 visit_Assign API.
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... | Visit assignment statement.
Notes
-----
This method sets the `self.target` attribute to the first assignment
target for callees to use. | "Visit assignment statement.\n\n Notes\n -----\n This method sets the `self.target` attribute to the first assignment\n target for callees to use." | 368 | false | google/tangent | visit_Assign | 13,714 | |
LDU_FT/anomaly/prestans/validate | LDU_FT | [
"<BEGIN>\n## `_setup_serializers`",
"Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters",
" Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | validate method for %ParameterSet
Since the introduction of ResponseFieldListParser, the parameter _response_field_list
will be ignored, this is a prestans reserved parameter, and cannot be used by apps.
:param request: The request object to be validated
:type request: webob.request.Re... | "validate method for %ParameterSet\n\n Since the introduction of ResponseFieldListParser, the parameter _response_field_list\n will be ignored, this is a prestans reserved parameter, and cannot be used by apps.\n\n :param request: The request object to be validated\n :type request: webob.req... | 99 | false | anomaly/prestans | validate | 13,715 | |
LDU_FT/kislyuk/argcomplete/collect_completions | LDU_FT | [
"<BEGIN>\n## `action_is_satisfied`",
"Returns False if the parse would raise an error if no more arguments are given to this action, True otherwise.\n<END>",
"<BEGIN>\n## `action_is_greedy`",
"Returns True if action will necessarily consume the next argument.\n isoptional indicates whether the argument is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_completions 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 collect_completions 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... | Visits the active parsers and their actions, executes their completers or introspects them to collect their
option strings. Returns the resulting completions as a list of strings.
This method is exposed for overriding in subclasses; there is no need to use it directly. | "Visits the active parsers and their actions, executes their completers or introspects them to collect their\n option strings. Returns the resulting completions as a list of strings.\n\n This method is exposed for overriding in subclasses; there is no need to use it directly." | 28 | false | kislyuk/argcomplete | collect_completions | 13,716 | |
LDU_FT/paramiko/paramiko/request_forward_agent | LDU_FT | [
"<BEGIN>\n## `make_tarball`",
"Create a tar file from all the files under 'base_dir'.\n This file may be compressed.",
" :param compress: Compression algorithms. Supported algorithms are:\n 'gzip': (the default)\n 'compress'\n 'bzip2'\n None\n For 'gzip' and 'bzip2' the inte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request_forward_agent 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 request_forward_agent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Request for a forward SSH Agent on this channel.
This is only valid for an ssh-agent from OpenSSH !!!
:param handler:
a required callable handler to use for incoming SSH Agent
connections
:return: True if we are ok, else False
(at that time we always return ... | "Request for a forward SSH Agent on this channel.\n This is only valid for an ssh-agent from OpenSSH !!!\n\n :param handler:\n a required callable handler to use for incoming SSH Agent\n connections\n\n :return: True if we are ok, else False\n (at that time we alway... | 608 | false | paramiko/paramiko | request_forward_agent | 13,717 | |
LDU_FT/scarface-4711/denonavr/_get_receiver_name | LDU_FT | [
"<BEGIN>\n## `exec_appcommand_post`",
"Prepare and execute a HTTP POST call to AppCommand.xml end point.",
" Returns XML ElementTree on success and None on fail.\n<END>",
"<BEGIN>\n## `get_status_xml`",
"Get status XML via HTTP and return it as XML ElementTree.\n<END>",
"<BEGIN>\n## `create_zones`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_receiver_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_receiver_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.
Th... | Get name of receiver from web interface if not set. | "Get name of receiver from web interface if not set." | 85 | false | scarface-4711/denonavr | _get_receiver_name | 13,718 | |
LDU_FT/koehlma/pygrooveshark/artist | LDU_FT | [
"<BEGIN>\n## `artist`",
":class:`Artist` object of album's artist\n<END>",
"<BEGIN>\n## `export`",
"Returns a dictionary with all album information.\n Use the :meth:`from_export` method to recreate the\n :class:`Album` object.\n<END>",
"<BEGIN>\n## `export`",
"Returns a dictionary with all s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the artist API.
Each 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 artist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | :class:`Artist` object of album's artist | ":class:`Artist` object of album's artist" | 52 | false | koehlma/pygrooveshark | artist | 13,719 | |
LDU_FT/opentracing-contrib/python-tornado/execute | LDU_FT | [
"<BEGIN>\n## `tracer_config`",
"Wraps the Tornado web application initialization so that the\n TornadoTracing instance is created around an OpenTracing-compatible tracer.\n<END>",
"<BEGIN>\n## `trace`",
"Function decorator that traces functions\n NOTE: Must be placed before the Tornado decorators\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
Each 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 execute API.
Each 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 the handler ``_execute`` method to trace incoming requests,
extracting the context from the headers, if available. | "Wrap the handler ``_execute`` method to trace incoming requests,\n extracting the context from the headers, if available." | 12 | false | opentracing-contrib/python-tornado | execute | 13,720 | |
LDU_FT/draperjames/qtpandas/createEditor | LDU_FT | [
"<BEGIN>\n## `startDrag`",
"start a drag operation with a PandasCellPayload on defined index.",
" Args:\n index (QModelIndex): model index you want to start the drag operation.\n<END>",
"<BEGIN>\n## `initUi`",
"Initalizes the Uuser Interface with all sub widgets.\n<END>",
"<BEGIN>\n## `e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the createEditor API.
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 createEditor API.
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... | Creates an Editor Widget for the given index.
Enables the user to manipulate the displayed data in place. An editor
is created, which performs the change.
The widget used will be a `QComboBox` with all available datatypes in the
`pandas` project.
Args:
parent (QtCor... | "Creates an Editor Widget for the given index.\n\n Enables the user to manipulate the displayed data in place. An editor\n is created, which performs the change.\n The widget used will be a `QComboBox` with all available datatypes in the\n `pandas` project.\n\n Args:\n pare... | 420 | false | draperjames/qtpandas | createEditor | 13,721 | |
LDU_FT/cathalgarvey/deadlock/b64decode | LDU_FT | [
"<BEGIN>\n## `get_slanted_adjacent_coords`",
"returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.\n adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below.\n (that is, only near-diagona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the b64decode API.
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 b64decode API.
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... | Only here for consistency with the above. | "Only here for consistency with the above." | 73 | false | cathalgarvey/deadlock | b64decode | 13,722 | |
LDU_FT/IDSIA/sacred/get_usage | LDU_FT | [
"<BEGIN>\n## `open_resource`",
"Open a file and also save it as a resource.",
" Opens a file, reports it to the observers as a resource, and returns\n the opened file.",
" In Sacred terminology a resource is a file that the experiment needed\n to access during a run. In case of a M... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_usage API.
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_usage API.
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 commandline usage string for this experiment. | "Get the commandline usage string for this experiment." | 284 | false | IDSIA/sacred | get_usage | 13,723 | |
LDU_FT/useblocks/groundwork/disconnect | LDU_FT | [
"<BEGIN>\n## `set`",
"Sets a new value for a given configuration parameter.",
" If it already exists, an Exception is thrown.\n To overwrite an existing value, set overwrite to True.",
" :param name: Unique name of the parameter\n :param value: Value of the configuration parameter\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disconnect API.
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 disconnect API.
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... | Disconnect a receiver from a signal.
Signal and receiver must exist, otherwise an exception is thrown.
:param receiver: Name of the receiver | "Disconnect a receiver from a signal.\n Signal and receiver must exist, otherwise an exception is thrown.\n\n :param receiver: Name of the receiver" | 198 | false | useblocks/groundwork | disconnect | 13,724 | |
LDU_FT/PaloAltoNetworks/pancloud/_send_request | LDU_FT | [
"<BEGIN>\n## `_credentials_found_in_envars`",
"Check for credentials in envars.",
" Returns:\n bool: ``True`` if at least one is found, otherwise ``False``.\n<END>",
"<BEGIN>\n## `_resolve_credential`",
"Resolve credential from envars or credentials store.",
" Args:\n c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_request API.
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 _send_request API.
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... | Send HTTP request.
Args:
enforce_json (bool): Require properly-formatted JSON or raise :exc:`~pancloud.exceptions.PanCloudError`. Defaults to ``False``.
method (str): HTTP method.
raise_for_status (bool): If ``True``, raises :exc:`~pancloud.exceptions.HTTPError` if status... | "Send HTTP request.\n\n Args:\n enforce_json (bool): Require properly-formatted JSON or raise :exc:`~pancloud.exceptions.PanCloudError`. Defaults to ``False``.\n method (str): HTTP method.\n raise_for_status (bool): If ``True``, raises :exc:`~pancloud.exceptions.HTTPError` if ... | 129 | false | PaloAltoNetworks/pancloud | _send_request | 13,725 | |
LDU_FT/quantopian/empyrical/stability_of_timeseries | LDU_FT | [
"<BEGIN>\n## `_adjust_returns`",
"Returns the returns series adjusted by adjustment_factor. Optimizes for the\n case of adjustment_factor being 0 by returning returns itself, not a copy!",
" Parameters\n ----------\n returns : pd.Series or np.ndarray\n adjustment_factor : pd.Series or np.ndarray ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stability_of_timeseries 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 stability_of_timeseries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Determines R-squared of a linear fit to the cumulative
log returns. Computes an ordinary least squares linear fit,
and returns R-squared.
Parameters
----------
returns : pd.Series or np.ndarray
Daily returns of the strategy, noncumulative.
- See full explanation in :func:`~empyrical... | "Determines R-squared of a linear fit to the cumulative\n log returns. Computes an ordinary least squares linear fit,\n and returns R-squared.\n\n Parameters\n ----------\n returns : pd.Series or np.ndarray\n Daily returns of the strategy, noncumulative.\n - See full explanation in :func:`~... | 253 | false | quantopian/empyrical | stability_of_timeseries | 13,726 | |
LDU_FT/tweekmonster/moult/load_stdlib | LDU_FT | [
"<BEGIN>\n## `load_stdlib`",
"Scans sys.path for standard library modules.\n<END>",
"<BEGIN>\n## `import_path_from_file`",
"Returns a tuple of the import path and root module directory for the\n supplied file.\n<END>",
"<BEGIN>\n## `file_containing_import`",
"Finds the file that might contain the impor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_stdlib API.
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 load_stdlib API.
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... | Scans sys.path for standard library modules. | "Scans sys.path for standard library modules." | 34 | false | tweekmonster/moult | load_stdlib | 13,727 | |
LDU_FT/noxdafox/pebble/reset_threads | LDU_FT | [
"<BEGIN>\n## `waitforqueues`",
"Waits for one or more *Queue* to be ready or until *timeout* expires.",
" *queues* is a list containing one or more *Queue.Queue* objects.\n If *timeout* is not None the function will block\n for the specified amount of seconds.",
" The function returns a list conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_threads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_threads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Resets original threading._get_ident() function. | "Resets original threading._get_ident() function." | 83 | false | noxdafox/pebble | reset_threads | 13,728 | |
LDU_FT/OpenHumans/open-humans-api/download_metadata | LDU_FT | [
"<BEGIN>\n## `guess_tags`",
"Function to get potential tags for files using the file names.",
" :param filename: This field is the name of file.\n<END>",
"<BEGIN>\n## `characterize_local_files`",
"Collate local file info as preperation for Open Humans upload.",
" Note: Files with filesize > max_byte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_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 download_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... | Output CSV with metadata for a project's downloadable files in Open Humans.
:param master_token: This field is the master access token for the project.
:param output_csv: This field is the target csv file to which metadata is
written.
:param verbose: This boolean field is the logging level. It's de... | "Output CSV with metadata for a project's downloadable files in Open Humans.\n\n :param master_token: This field is the master access token for the project.\n :param output_csv: This field is the target csv file to which metadata is\n written.\n :param verbose: This boolean field is the logging level. I... | 162 | false | OpenHumans/open-humans-api | download_metadata | 13,729 | |
LDU_FT/arne-cl/discoursegraphs/__gen_pointing_file | LDU_FT | [
"<BEGIN>\n## `merging_cli`",
"simple commandline interface of the merging module.",
" This function is called when you use the ``discoursegraphs`` application\n directly on the command line.\n<END>",
"<BEGIN>\n## `add_node_ids_as_labels`",
"Adds the ID of each node of a discourse graph as a label (an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __gen_pointing_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __gen_pointing_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.
T... | Creates etree representations of PAULA XML files modeling pointing
relations. Pointing relations are ahierarchical edges between any
two nodes (``tok``, ``mark`` or ``struct``). They are used to signal
pointing relations between tokens (e.g. in a dependency parse tree)
or the coreference... | "Creates etree representations of PAULA XML files modeling pointing\n relations. Pointing relations are ahierarchical edges between any\n two nodes (``tok``, ``mark`` or ``struct``). They are used to signal\n pointing relations between tokens (e.g. in a dependency parse tree)\n or the corefe... | 846 | false | arne-cl/discoursegraphs | __gen_pointing_file | 13,730 | |
LDU_FT/hosford42/xcs/pay | LDU_FT | [
"<BEGIN>\n## `random`",
"Create a bit string of the given length, with the probability of\n each bit being set equal to bit_prob, which defaults to .5.",
" Usage:\n # Create a random BitString of length 10 with mostly zeros.\n bits = BitString.random(10, bit_prob=.1)",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pay API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pay API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | If the predecessor is not None, gives the appropriate amount of
payoff to the predecessor in payment for its contribution to this
match set's expected future payoff. The predecessor argument should
be either None or a MatchSet instance whose selected action led
directly to this match set... | "If the predecessor is not None, gives the appropriate amount of\n payoff to the predecessor in payment for its contribution to this\n match set's expected future payoff. The predecessor argument should\n be either None or a MatchSet instance whose selected action led\n directly to this matc... | 159 | false | hosford42/xcs | pay | 13,731 | |
LDU_FT/moonso/loqusdb/add_variant | LDU_FT | [
"<BEGIN>\n## `update_database`",
"Update a case in the database",
" Args:\n adapter: Connection to database\n variant_file(str): Path to variant file\n sv_file(str): Path to sv variant file\n family_file(str): Path to family file\n family_type(str): Format of fami... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_variant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_variant API.
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... | Add a variant to the variant collection
If the variant exists we update the count else we insert a new variant object.
Args:
variant (dict): A variant dictionary | "Add a variant to the variant collection\n \n If the variant exists we update the count else we insert a new variant object.\n \n Args:\n variant (dict): A variant dictionary" | 216 | false | moonso/loqusdb | add_variant | 13,732 | |
LDU_FT/c-w/gutenberg/disable_logging | LDU_FT | [
"<BEGIN>\n## `_etextno_to_uri_subdirectory`",
"Returns the subdirectory that an etextno will be found in a gutenberg\n mirror. Generally, one finds the subdirectory by separating out each digit\n of the etext number, and uses it for a directory. The exception here is for\n etext numbers less than 10, whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disable_logging API.
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 disable_logging API.
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... | Context manager to temporarily suppress all logging for a given logger
or the root logger if no particular logger is specified. | "Context manager to temporarily suppress all logging for a given logger\n or the root logger if no particular logger is specified." | 70 | false | c-w/gutenberg | disable_logging | 13,733 | |
LDU_FT/ND-CSE-30151/tock/parse_multiple | LDU_FT | [
"<BEGIN>\n## `match`",
"Returns true iff self (as a pattern) matches other (as a\n configuration). Note that this is asymmetric: other is allowed\n to have symbols that aren't found in self.\n<END>",
"<BEGIN>\n## `has_cell`",
"Tests whether store `s` is a cell, that is, it uses exactly one\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_multiple API.
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 parse_multiple API.
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... | Parse multiple comma-separated elements, each of which is parsed
using function f. | "Parse multiple comma-separated elements, each of which is parsed\n using function f." | 38 | false | ND-CSE-30151/tock | parse_multiple | 13,734 | |
LDU_FT/roclark/sportsreference/_get_team_results | LDU_FT | [
"<BEGIN>\n## `dataframe`",
"Returns a ``pandas DataFrame`` containing all other relevant class\n properties and values for the specified game.\n<END>",
"<BEGIN>\n## `_extract_player_stats`",
"Combine all player stats into a single object.",
" Since each player generally has a couple of rows wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_team_results API.
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_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Determine the winner and loser of the game.
If the game has been completed and sports-reference has been updated
with the score, determine the winner and loser and return their
respective names and abbreviations.
Parameters
----------
away_name : string
The ... | "Determine the winner and loser of the game.\n\n If the game has been completed and sports-reference has been updated\n with the score, determine the winner and loser and return their\n respective names and abbreviations.\n\n Parameters\n ----------\n away_name : string\n ... | 588 | false | roclark/sportsreference | _get_team_results | 13,735 | |
LDU_FT/JinnLynn/genpac/_negotiate_HTTP | LDU_FT | [
"<BEGIN>\n## `set_default_proxy`",
"set_default_proxy(proxy_type, addr[, port[, rdns[, username, password]]])",
" Sets a default proxy which all further socksocket objects will use,\n unless explicitly changed. All parameters are as for socket.set_proxy().\n<END>",
"<BEGIN>\n## `create_connection`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _negotiate_HTTP API.
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 _negotiate_HTTP API.
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... | Negotiates a connection through an HTTP server.
NOTE: This currently only supports HTTP CONNECT-style proxies. | "Negotiates a connection through an HTTP server.\n NOTE: This currently only supports HTTP CONNECT-style proxies." | 41 | false | JinnLynn/genpac | _negotiate_HTTP | 13,736 | |
LDU_FT/svenkreiss/databench/set | LDU_FT | [
"<BEGIN>\n## `color`",
"triangles.",
" Colors:\n - http://paletton.com/#uid=70l150klllletuehUpNoMgTsdcs shade 2\n<END>",
"<BEGIN>\n## `on`",
"Decorator for action handlers.",
" The action name is inferred from the function name.",
" This also decorates the method with `tornado.gen.coroutine`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Set a value at key and return a Future.
:rtype: tornado.concurrent.Future | "Set a value at key and return a Future.\n\n :rtype: tornado.concurrent.Future" | 86 | false | svenkreiss/databench | set | 13,737 | |
LDU_FT/casebeer/audiogen/arcfour_drop | LDU_FT | [
"<BEGIN>\n## `arcfour`",
"Return a generator for the ARCFOUR/RC4 pseudorandom keystream for the \n\t key provided. Keys should be byte strings or sequences of ints.\n<END>",
"<BEGIN>\n## `arcfour_drop`",
"Return a generator for the RC4-drop pseudorandom keystream given by \n\t the key and number of bytes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arcfour_drop API.
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 arcfour_drop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a generator for the RC4-drop pseudorandom keystream given by
the key and number of bytes to drop passed as arguments. Dropped bytes
default to the more conservative 3072, NOT the SCAN default of 768. | "Return a generator for the RC4-drop pseudorandom keystream given by \n\t the key and number of bytes to drop passed as arguments. Dropped bytes\n\t default to the more conservative 3072, NOT the SCAN default of 768." | 44 | false | casebeer/audiogen | arcfour_drop | 13,738 | |
LDU_FT/pudo/dataset/distinct | LDU_FT | [
"<BEGIN>\n## `normalize_column_name`",
"Check if a string is a reasonable thing to use as a column name.\n<END>",
"<BEGIN>\n## `normalize_table_name`",
"Check if the table name is obviously invalid.\n<END>",
"<BEGIN>\n## `safe_url`",
"Remove password from printed connection URLs.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct API.
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 distinct API.
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 all the unique (distinct) values for the given ``columns``.
::
# returns only one row per year, ignoring the rest
table.distinct('year')
# works with multiple columns, too
table.distinct('year', 'country')
# you can also combine this with a fil... | "Return all the unique (distinct) values for the given ``columns``.\n ::\n\n # returns only one row per year, ignoring the rest\n table.distinct('year')\n # works with multiple columns, too\n table.distinct('year', 'country')\n # you can also combine this wi... | 128 | false | pudo/dataset | distinct | 13,739 | |
LDU_FT/thautwarm/RBNF/run | LDU_FT | [
"<BEGIN>\n## `run`",
"You can apply immediate tests on your parser.\n P.S: use `--opt` option takes longer starting time.\n<END>",
"<BEGIN>\n## `recover_codes`",
"from a series of tokenizers to code string. (preserve the indentation)\n<END>",
"<BEGIN>\n## `dispatch`",
"Dispatcher function, dispatching ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You can apply immediate tests on your parser.
P.S: use `--opt` option takes longer starting time. | "You can apply immediate tests on your parser.\n P.S: use `--opt` option takes longer starting time." | 12 | false | thautwarm/RBNF | run | 13,740 | |
LDU_FT/napalm-automation/napalm-eos/get_facts | LDU_FT | [
"<BEGIN>\n## `compare_config`",
"Implementation of NAPALM method compare_config.\n<END>",
"<BEGIN>\n## `commit_config`",
"Implementation of NAPALM method commit_config.\n<END>",
"<BEGIN>\n## `discard_config`",
"Implementation of NAPALM method discard_config.\n<END>",
"<BEGIN>\n## `rollback`",
"Impleme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_facts API.
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_facts API.
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... | Implementation of NAPALM method get_facts. | "Implementation of NAPALM method get_facts." | 16 | false | napalm-automation/napalm-eos | get_facts | 13,741 | |
LDU_FT/datastax/python-driver/run_in_executor | LDU_FT | [
"<BEGIN>\n## `check_applied`",
"Raises LWTException if it looks like a failed LWT request. A LWTException\n won't be raised in the special case in which there are several failed LWT\n in a :class:`~cqlengine.query.BatchQuery`.\n<END>",
"<BEGIN>\n## `add_callback`",
"Add a function and arguments to be p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_in_executor API.
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 run_in_executor API.
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... | A decorator to run the given method in the ThreadPoolExecutor. | "A decorator to run the given method in the ThreadPoolExecutor." | 603 | false | datastax/python-driver | run_in_executor | 13,742 | |
LDU_FT/webrecorder/warcio/datetime_to_iso_date | LDU_FT | [
"<BEGIN>\n## `_raise_invalid_gzip_err`",
"A gzip file with multiple ARC/WARC records, non-chunked\n has been detected. This is not valid for replay, so notify user\n<END>",
"<BEGIN>\n## `_consume_blanklines`",
"Consume blank lines that are between records\n - For warcs, there are usually 2\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_to_iso_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_to_iso_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.
... | >>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12))
'2013-12-26T10:11:12Z'
>>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12, 456789))
'2013-12-26T10:11:12Z'
>>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12), use_micros=True)
'2013-12-26T10:11... | ">>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12))\n '2013-12-26T10:11:12Z'\n\n >>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12, 456789))\n '2013-12-26T10:11:12Z'\n\n >>> datetime_to_iso_date(datetime.datetime(2013, 12, 26, 10, 11, 12), use_micros=True)\n '2013-12-... | 91 | false | webrecorder/warcio | datetime_to_iso_date | 13,743 | |
LDU_FT/cnelson/python-fleet/_get_proxy_info | LDU_FT | [
"<BEGIN>\n## `_set_options_from_file`",
"Parses a unit file and updates self._data['options']",
" Args:\n file_handle (file): a file-like object (supporting read()) containing a unit",
" Returns:\n True: The file was successfuly parsed and options were updated",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_proxy_info API.
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_proxy_info API.
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... | Generate a ProxyInfo class from a connected SSH transport
Args:
_ (None): Ignored. This is just here as the ProxyInfo spec requires it.
Returns:
SSHTunnelProxyInfo: A ProxyInfo with an active socket tunneled through SSH | "Generate a ProxyInfo class from a connected SSH transport\n\n Args:\n _ (None): Ignored. This is just here as the ProxyInfo spec requires it.\n\n\n Returns:\n SSHTunnelProxyInfo: A ProxyInfo with an active socket tunneled through SSH" | 89 | false | cnelson/python-fleet | _get_proxy_info | 13,744 | |
LDU_FT/UDST/orca/injectable | LDU_FT | [
"<BEGIN>\n## `import_file`",
"Import a file that will trigger the population of Orca.",
" Parameters\n ----------\n filename : str\n<END>",
"<BEGIN>\n## `check_is_table`",
"Decorator that will check whether the \"table_name\" keyword argument\n to the wrapped function matches a registered Orca t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the injectable API.
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 injectable API.
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... | Decorates functions that will be injected into other functions.
Decorator version of `add_injectable`. Name defaults to
name of function.
The function's argument names and keyword argument values
will be matched to registered variables when the function
needs to be evaluated by Orca.
The argum... | "Decorates functions that will be injected into other functions.\n\n Decorator version of `add_injectable`. Name defaults to\n name of function.\n\n The function's argument names and keyword argument values\n will be matched to registered variables when the function\n needs to be evaluated by Orca.\n ... | 223 | false | UDST/orca | injectable | 13,745 | |
LDU_FT/kristianfoerster/melodist/disaggregate_wind | LDU_FT | [
"<BEGIN>\n## `calc_precipitation_stats`",
"Calculates precipitation statistics for the cascade model while aggregating hourly observations",
" Parameters\n ----------\n months : Months for each seasons to be used for statistics (array of numpy array, default=1-12, e.g., [np.arange(12... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the disaggregate_wind API.
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 disaggregate_wind API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | general function for windspeed disaggregation
Args:
wind_daily: daily values
method: keyword specifying the disaggregation method to be used
a: parameter a for the cosine function
b: parameter b for the cosine function
t_shift: parameter t_shift for the cosine function
... | "general function for windspeed disaggregation\n\n Args:\n wind_daily: daily values\n method: keyword specifying the disaggregation method to be used\n a: parameter a for the cosine function\n b: parameter b for the cosine function\n t_shift: parameter t_shift for the cosine functi... | 205 | false | kristianfoerster/melodist | disaggregate_wind | 13,746 | |
LDU_FT/inveniosoftware/invenio-openaire/dump | LDU_FT | [
"<BEGIN>\n## `get_text_node`",
"Return a text node from given XML tree given an lxml XPath.\n<END>",
"<BEGIN>\n## `iter_grants`",
"Fetch grants from a remote OAI-PMH endpoint.",
" Return the Sickle-provided generator object.\n<END>",
"<BEGIN>\n## `dump`",
"Dump the grant information to a local st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Dump the grant information to a local storage.
:param as_json: Convert XML to JSON before saving (default: True). | "Dump the grant information to a local storage.\n\n :param as_json: Convert XML to JSON before saving (default: True)." | 33 | false | inveniosoftware/invenio-openaire | dump | 13,747 | |
LDU_FT/evolbioinfo/pastml/get_most_common_states | LDU_FT | [
"<BEGIN>\n## `reconstruct_ancestral_states`",
"Reconstructs ancestral states for the given character on the given tree.",
" :param character: character whose ancestral states are to be reconstructed.\n :type character: str\n :param tree: tree whose ancestral state are to be reconstructed,\n anno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_common_states API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_most_common_states API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Gets the set of most common states among the state sets contained in the iterable argument
:param state_iterable: iterable of state sets
:return: set of most common states | "Gets the set of most common states among the state sets contained in the iterable argument\n :param state_iterable: iterable of state sets\n :return: set of most common states" | 150 | false | evolbioinfo/pastml | get_most_common_states | 13,748 | |
LDU_FT/hammerlab/cohorts/float_str | LDU_FT | [
"<BEGIN>\n## `download_to_path`",
"This method is analogous to \"gsutil cp gsuri localpath\", but in a\n programatically accesible way. The only difference is that we\n have to make a guess about the encoding of the file to not upset\n downstream file operations. If you are downloading a VCF,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the float_str API.
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 float_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns a string representing a float, where the number of
significant digits is min_digits unless it takes more digits
to hit a non-zero digit (and the number is 0 < x < 1).
We stop looking for a non-zero digit after max_digits. | "Returns a string representing a float, where the number of\n significant digits is min_digits unless it takes more digits\n to hit a non-zero digit (and the number is 0 < x < 1).\n We stop looking for a non-zero digit after max_digits." | 230 | false | hammerlab/cohorts | float_str | 13,749 | |
LDU_FT/frawau/aiolifx/get_group | LDU_FT | [
"<BEGIN>\n## `mac_to_ipv6_linklocal`",
"Translate a MAC address into an IPv6 address in the prefixed network.",
" This function calculates the EUI (Extended Unique Identifier) from the given\n MAC address and prepend the needed prefix to come up with a valid IPv6 address.\n The default prefix is the li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group API.
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_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Convenience method to request the group from the device
This method will check whether the value has already been retrieved from the device,
if so, it will simply return it. If no, it will request the information from the device
and request that callb be executed when a response is received. Th... | "Convenience method to request the group from the device\n\n This method will check whether the value has already been retrieved from the device,\n if so, it will simply return it. If no, it will request the information from the device\n and request that callb be executed when a response is receive... | 134 | false | frawau/aiolifx | get_group | 13,750 | |
LDU_FT/hanguokai/youku/set_cover_video_for_playlist | LDU_FT | [
"<BEGIN>\n## `check_error`",
"Youku error should return in json form, like:\n HTTP 400\n {\n \"error\":{\n \"code\":120010223,\n \"type\":\"UploadsException\",\n \"description\":\"Expired upload token\"\n }\n }",
" But error also maybe in response url p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cover_video_for_playlist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cover_video_for_playlist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | doc: http://open.youku.com/docs/doc?id=77 | "doc: http://open.youku.com/docs/doc?id=77" | 120 | false | hanguokai/youku | set_cover_video_for_playlist | 13,751 | |
LDU_FT/blockstack/blockstack-core/fast_sync_snapshot | LDU_FT | [
"<BEGIN>\n## `anyword_substring_search_inner`",
"return True if ANY target_word matches a query_word\n<END>",
"<BEGIN>\n## `search_people_by_bio`",
"queries lucene index to find a nearest match, output is profile username\n<END>",
"<BEGIN>\n## `order_search_results`",
"order of results should be a) query ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_sync_snapshot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_sync_snapshot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Export all the local state for fast-sync.
If block_number is given, then the name database
at that particular block number will be taken.
The exported tarball will be signed with the given private key,
and the signature will be appended to the end of the file.
Return True if we succeed
Return ... | "Export all the local state for fast-sync.\n If block_number is given, then the name database\n at that particular block number will be taken.\n\n The exported tarball will be signed with the given private key,\n and the signature will be appended to the end of the file.\n\n Return True if we succeed\n ... | 1,580 | true | blockstack/blockstack-core | fast_sync_snapshot | 13,752 | |
LDU_FT/neighbordog/deviantart/delete_notes | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_notes API.
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_notes API.
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... | Delete a note or notes
:param noteids: The noteids to delete | "Delete a note or notes\n\n :param noteids: The noteids to delete" | 132 | false | neighbordog/deviantart | delete_notes | 13,753 | |
LDU_FT/flowersteam/explauto/elliconstraint | LDU_FT | [
"<BEGIN>\n## `predict_y`",
"Provide an prediction of xq in the output space",
" @param xq an array of float of length dim_x\n @return predicted y as np.array of float\n<END>",
"<BEGIN>\n## `predict_given_context`",
"Provide a prediction of x with context c on dimensions c_dims in the outpu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elliconstraint API.
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 elliconstraint API.
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... | ellipsoid test objective function with "constraints" | "ellipsoid test objective function with \"constraints\"" | 685 | false | flowersteam/explauto | elliconstraint | 13,754 | |
LDU_FT/binux/pyspider/pretty_unicode | LDU_FT | [
"<BEGIN>\n## `get_encoding`",
"Get encoding from request headers or page head.\n<END>",
"<BEGIN>\n## `encoding`",
"encoding of Response.content.",
" if Response.encoding is None, encoding will be guessed\n by header or content or chardet if available.\n<END>",
"<BEGIN>\n## `text`",
"Conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pretty_unicode API.
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 pretty_unicode API.
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... | Make sure string is unicode, try to decode with utf8, or unicode escaped string if failed. | "Make sure string is unicode, try to decode with utf8, or unicode escaped string if failed." | 126 | false | binux/pyspider | pretty_unicode | 13,755 | |
LDU_FT/jmcarp/robobrowser/store | LDU_FT | [
"<BEGIN>\n## `parsed`",
"Lazily parse response content, using HTML parser specified by the\n browser.\n<END>",
"<BEGIN>\n## `_build_send_args`",
"Merge optional arguments with defaults.",
" :param kwargs: Keyword arguments to `Session::send`\n<END>",
"<BEGIN>\n## `open`",
"Open a URL.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store API.
Each 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 store API.
Each 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... | Store response in cache, skipping if code is forbidden.
:param requests.Response response: HTTP response | "Store response in cache, skipping if code is forbidden.\n\n :param requests.Response response: HTTP response" | 73 | false | jmcarp/robobrowser | store | 13,756 | |
LDU_FT/scizzorz/bumpy/age | LDU_FT | [
"<BEGIN>\n## `_opts_to_dict`",
"Convert a tuple of options returned from getopt into a dictionary.\n<END>",
"<BEGIN>\n## `_highlight`",
"Return a string highlighted for a terminal.\n<END>",
"<BEGIN>\n## `task`",
"Register a function as a task, as well as applying any attributes.\n<END>",
"<BEGIN>\n## `v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the age API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the age API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Return the minimum age of a set of files.
Returns 0 if no paths are given.
Returns time.time() if a path does not exist. | "Return the minimum age of a set of files.\n\tReturns 0 if no paths are given.\n\tReturns time.time() if a path does not exist." | 22 | false | scizzorz/bumpy | age | 13,757 | |
LDU_FT/ask/redish/SortedSet | LDU_FT | [
"<BEGIN>\n## `save`",
"Save this entry.",
" If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.",
" Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.",
" Add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the SortedSet API.
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 SortedSet API.
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... | The sorted set datatype.
:param name: The name of the sorted set.
:param initial: Initial members of the set as an iterable
of ``(element, score)`` tuples.
See :class:`redish.types.SortedSet`. | "The sorted set datatype.\n\n :param name: The name of the sorted set.\n :param initial: Initial members of the set as an iterable\n of ``(element, score)`` tuples.\n\n See :class:`redish.types.SortedSet`." | 88 | false | ask/redish | SortedSet | 13,758 | |
LDU_FT/limodou/uliweb/get_object | LDU_FT | [
"<BEGIN>\n## `get_frame_info`",
"Return a dict of information about a given traceback.\n<END>",
"<BEGIN>\n## `get_sort_field`",
"Get sort column info according request, the data format just likes:\r",
" ?sort=fieldA.asc&sort=fieldB.desc\r",
" or:\r",
" ?sort=fieldA&sort=fieldB&order... | 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... | Get obj in Local.object_caches first and also use get(cache=True) function if
not found in object_caches | "Get obj in Local.object_caches first and also use get(cache=True) function if \n not found in object_caches" | 886 | false | limodou/uliweb | get_object | 13,759 | |
LDU_FT/gebn/nibble/operator_same_class | LDU_FT | [
"<BEGIN>\n## `_read_file`",
"Read the contents of a file.",
" :param name: The name of the file in the current directory.\n :param encoding: The encoding of the file; defaults to utf-8.\n :return: The contents of the file.\n<END>",
"<BEGIN>\n## `_parse_args`",
"Interpret command line arguments.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the operator_same_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the operator_same_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Intended to wrap operator methods, this decorator ensures the `other`
parameter is of the same type as the `self` parameter.
:param method: The method being decorated.
:return: The wrapper to replace the method with. | "Intended to wrap operator methods, this decorator ensures the `other`\n parameter is of the same type as the `self` parameter.\n \n :param method: The method being decorated.\n :return: The wrapper to replace the method with." | 45 | false | gebn/nibble | operator_same_class | 13,760 | |
LDU_FT/edx/xblock-utils/_make_field_info | LDU_FT | [
"<BEGIN>\n## `get_xblock_settings`",
"Gets XBlock-specific settigns for current XBlock",
" Returns default if settings service is not available.",
" Parameters:\n default - default value to be used in two cases:\n * No settings service is available\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_field_info API.
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_field_info API.
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 the information that the template needs to render a form field for this field. | "Create the information that the template needs to render a form field for this field." | 56 | false | edx/xblock-utils | _make_field_info | 13,761 | |
LDU_FT/mbi/django-rosetta/find_pos | LDU_FT | [
"<BEGIN>\n## `timestamp_with_timezone`",
"Return a timestamp with a timezone for the configured locale. If all else\n fails, consider localtime to be UTC.\n<END>",
"<BEGIN>\n## `find_pos`",
"scans a couple possible repositories of gettext catalogs for the given\n language code\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_pos API.
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 find_pos API.
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... | scans a couple possible repositories of gettext catalogs for the given
language code | "scans a couple possible repositories of gettext catalogs for the given\n language code" | 31 | false | mbi/django-rosetta | find_pos | 13,762 | |
LDU_FT/jic-dtool/dtool-http/get_item_abspath | LDU_FT | [
"<BEGIN>\n## `publish`",
"Return access URL to HTTP enabled (published) dataset.",
" Exits with error code 1 if the dataset_uri is not a dataset.\n Exits with error code 2 if the dataset cannot be HTTP enabled.\n<END>",
"<BEGIN>\n## `cli`",
"Command line utility to HTTP enable (publish) a dataset.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_item_abspath API.
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_item_abspath API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return absolute path at which item content can be accessed.
:param identifier: item identifier
:returns: absolute path from which the item content can be accessed | "Return absolute path at which item content can be accessed.\n\n :param identifier: item identifier\n :returns: absolute path from which the item content can be accessed" | 27 | false | jic-dtool/dtool-http | get_item_abspath | 13,763 | |
LDU_FT/huge-success/sanic/middleware | LDU_FT | [
"<BEGIN>\n## `group`",
"Create a list of blueprints, optionally grouping them under a\n general URL prefix.",
" :param blueprints: blueprints to be registered as a group\n :param url_prefix: URL route to be prepended to all sub-prefixes\n<END>",
"<BEGIN>\n## `register`",
"Register the b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the middleware API.
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 middleware API.
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... | Decorate and register middleware to be called before a request.
Can either be called as *@app.middleware* or
*@app.middleware('request')*
:param: middleware_or_request: Optional parameter to use for
identifying which type of middleware is being registered. | "Decorate and register middleware to be called before a request.\n Can either be called as *@app.middleware* or\n *@app.middleware('request')*\n\n :param: middleware_or_request: Optional parameter to use for\n identifying which type of middleware is being registered." | 238 | false | huge-success/sanic | middleware | 13,764 | |
LDU_FT/Miachol/pycnf/get_config_type | LDU_FT | [
"<BEGIN>\n## `is_json_file`",
"Check configuration file type is JSON\n Return a boolean indicating wheather the file is JSON format or not\n<END>",
"<BEGIN>\n## `is_yaml_file`",
"Check configuration file type is yaml\n Return a boolean indicating wheather the file is yaml format or not\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get configuration file type:[JSON, YAML, INI, TOML]
Return the configuration filetype: json, yaml, ini, toml or False | "Get configuration file type:[JSON, YAML, INI, TOML]\n Return the configuration filetype: json, yaml, ini, toml or False" | 10 | false | Miachol/pycnf | get_config_type | 13,765 | |
LDU_FT/whyscream/dspam-milter/data | LDU_FT | [
"<BEGIN>\n## `header`",
"Store all message headers, optionally clean them up.",
" This simply stores all message headers so we can send them to DSPAM.\n Additionally, headers that have the same prefix as the ones we're\n about to add are deleted.\n<END>",
"<BEGIN>\n## `eom`",
"Send the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Send LMTP DATA command and process the server response.
The server response is stored as a list of dicts in
<DspamClient>.results, keyed on the recipient name(s). Depending
on the server return data, different formats are available:
* LMTP mode -- Dict containing 'accepted', a bool i... | "Send LMTP DATA command and process the server response.\n\n The server response is stored as a list of dicts in\n <DspamClient>.results, keyed on the recipient name(s). Depending\n on the server return data, different formats are available:\n * LMTP mode -- Dict containing 'accepted', a ... | 59 | false | whyscream/dspam-milter | data | 13,766 | |
LDU_FT/bitshares/uptick/orderbook | LDU_FT | [
"<BEGIN>\n## `orderbook`",
"Show the orderbook of a particular market\n<END>",
"<BEGIN>\n## `buy`",
"Buy a specific asset at a certain rate against a base asset\n<END>",
"<BEGIN>\n## `cancelall`",
"Cancel all orders of an account in a market\n<END>",
"<BEGIN>\n## `spread`",
"Place multiple orders",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the orderbook API.
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 orderbook API.
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... | Show the orderbook of a particular market | "Show the orderbook of a particular market" | 50 | false | bitshares/uptick | orderbook | 13,767 | |
LDU_FT/Qiskit/qiskit-api-py/_response_good | LDU_FT | [
"<BEGIN>\n## `handle_407`",
"Takes the given response and tries digest-auth, if needed.\n<END>",
"<BEGIN>\n## `obtain_token`",
"Obtain the token to access to QX Platform.",
" Raises:\n CredentialsError: when token is invalid or the user has not\n accepted the license.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _response_good API.
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 _response_good API.
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... | check response
Args:
respond (str): HTTP response.
Returns:
bool: True if the response is good, else False.
Raises:
ApiError: response isn't formatted properly. | "check response\n\n Args:\n respond (str): HTTP response.\n\n Returns:\n bool: True if the response is good, else False.\n\n Raises:\n ApiError: response isn't formatted properly." | 30 | false | Qiskit/qiskit-api-py | _response_good | 13,768 | |
LDU_FT/fred49/argtoolbox/write_config_file | LDU_FT | [
"<BEGIN>\n## `query_yes_no`",
"Just prompt the user for a yes/no question\n<END>",
"<BEGIN>\n## `_query_yes_no`",
"Ask a yes/no question via raw_input() and return their answer.",
" \"question\" is a string that is presented to the user.\n \"default\" is the presumed answer if the user just hits <Ente... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | This method write a sample file, with attributes, descriptions,
sample values, required flags, using the configuration object
properties. | "This method write a sample file, with attributes, descriptions,\n sample values, required flags, using the configuration object\n properties." | 46 | false | fred49/argtoolbox | write_config_file | 13,769 | |
LDU_FT/wglass/lighthouse/apply_config | LDU_FT | [
"<BEGIN>\n## `get_installed_classes`",
"Iterates over installed plugins associated with the `entry_point` and\n returns a dictionary of viable ones keyed off of their names.",
" A viable installed plugin is one that is both loadable *and* a subclass\n of the Pluggable subclass in question.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_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 extr... | Sets the `discovery` and `meta_cluster` attributes, as well as the
configured + available balancer attributes from a given validated
config. | "Sets the `discovery` and `meta_cluster` attributes, as well as the\n configured + available balancer attributes from a given validated\n config." | 231 | false | wglass/lighthouse | apply_config | 13,770 | |
LDU_FT/deschler/django-modeltranslation/append_lookup_key | LDU_FT | [
"<BEGIN>\n## `autodiscover`",
"Auto-discover INSTALLED_APPS translation.py modules and fail silently when\n not present. This forces an import on them to register.\n Also import explicit modules.\n<END>",
"<BEGIN>\n## `register`",
"Registers the given model(s) with the given translation options.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_lookup_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_lookup_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... | Transform spanned__lookup__key into all possible translation versions, on all levels | "Transform spanned__lookup__key into all possible translation versions, on all levels" | 122 | false | deschler/django-modeltranslation | append_lookup_key | 13,771 | |
LDU_FT/a1ezzz/wasp-general/url_for | LDU_FT | [
"<BEGIN>\n## `connect`",
":meth:`.WNetworkClientProto.connect` method implementation\n<END>",
"<BEGIN>\n## `scheme_specification`",
":meth:`.WSchemeHandler.scheme_specification` method implementation\n<END>",
"<BEGIN>\n## `upload_file`",
":meth:`.WNetworkClientProto.upload_file` method implementation\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the url_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 extracted... | Generate url for client with specified route arguments. For the source route '/page/{page_index}'
this method must be called with 'page_index' parameter (for '3' as 'page_index' parameter result will
be '/page/3' for 'foo_bar' - '/page/foo_bar'). If 'host', 'protocol' and 'ports' are set as single
element list or... | "Generate url for client with specified route arguments. For the source route '/page/{page_index}'\n\t\tthis method must be called with 'page_index' parameter (for '3' as 'page_index' parameter result will\n\t\tbe '/page/3' for 'foo_bar' - '/page/foo_bar'). If 'host', 'protocol' and 'ports' are set as single\n\t\teleme... | 917 | false | a1ezzz/wasp-general | url_for | 13,772 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.