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/nion-software/nionswift-io/olympusini_metadata | LDU_FT | [
"<BEGIN>\n## `imagedatadict_to_ndarray`",
"Converts the ImageData dictionary, imdict, to an nd image.\n<END>",
"<BEGIN>\n## `ndarray_to_imagedatadict`",
"Convert the numpy array nparr into a suitable ImageList entry dictionary.\n Returns a dictionary with the appropriate Data, DataType, PixelDepth\n to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the olympusini_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.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the olympusini_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.
T... | Return OlympusSIS metadata from INI string.
No documentation is available. | "Return OlympusSIS metadata from INI string.\n\n No documentation is available." | 438 | false | nion-software/nionswift-io | olympusini_metadata | 32,773 | |
LDU_FT/dwavesystems/penaltymodel/from_graph | LDU_FT | [
"<BEGIN>\n## `get_penalty_model`",
"Factory function for penaltymodel_maxgap.",
" Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.",
" Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_graph API.
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 Theta from a graph and energy ranges.
Args:
graph (:obj:`networkx.Graph`):
Provides the structure for Theta.
linear_energy_ranges (dict):
A dict of the form {v: (min, max), ...} where min and max are the
range of values allowed to ... | "Create Theta from a graph and energy ranges.\n\n Args:\n graph (:obj:`networkx.Graph`):\n Provides the structure for Theta.\n\n linear_energy_ranges (dict):\n A dict of the form {v: (min, max), ...} where min and max are the\n range of values al... | 186 | false | dwavesystems/penaltymodel | from_graph | 32,774 | |
LDU_FT/kensho-technologies/graphql-compiler/graphql_to_ir | LDU_FT | [
"<BEGIN>\n## `lower_ir`",
"Lower the IR into an IR form that can be represented in Gremlin queries.",
" Args:\n ir_blocks: list of IR blocks to lower into Gremlin-compatible form\n query_metadata_table: QueryMetadataTable object containing all metadata collected during\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graphql_to_ir API.
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 graphql_to_ir API.
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... | Convert the given GraphQL string into compiler IR, using the given schema object.
Args:
schema: GraphQL schema object, created using the GraphQL library
graphql_string: string containing the GraphQL to compile to compiler IR
type_equivalence_hints: optional dict of GraphQL interface or type... | "Convert the given GraphQL string into compiler IR, using the given schema object.\n\n Args:\n schema: GraphQL schema object, created using the GraphQL library\n graphql_string: string containing the GraphQL to compile to compiler IR\n type_equivalence_hints: optional dict of GraphQL interface o... | 786 | false | kensho-technologies/graphql-compiler | graphql_to_ir | 32,775 | |
LDU_FT/playpauseandstop/rororo/make_response | LDU_FT | [
"<BEGIN>\n## `str_to_timedelta`",
"Convert string value to timedelta instance according to the given format.",
" If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.",
" You should also specify list of formats and function tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | r"""Validate response data and wrap it inside response factory.
:param data: Response data. Could be ommited.
:param \*\*kwargs: Keyword arguments to be passed to response factory. | "r\"\"\"Validate response data and wrap it inside response factory.\n\n :param data: Response data. Could be ommited.\n :param \\*\\*kwargs: Keyword arguments to be passed to response factory." | 128 | false | playpauseandstop/rororo | make_response | 32,776 | |
LDU_FT/SethMMorton/natsort/sort_and_print_entries | LDU_FT | [
"<BEGIN>\n## `fast_float`",
"Convert a string to a float quickly, return input as-is if not possible.",
" We don't need to accept all input that the real fast_int accepts because\n natsort is controlling what is passed to this function.",
" Parameters\n ----------\n x : str\n String to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort_and_print_entries 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 sort_and_print_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Sort the entries, applying the filters first if necessary. | "Sort the entries, applying the filters first if necessary." | 190 | false | SethMMorton/natsort | sort_and_print_entries | 32,777 | |
LDU_FT/VonStruddle/PyHunter/update_leads_list | LDU_FT | [
"<BEGIN>\n## `domain_search`",
"Return all the email addresses found for a given domain.",
" :param domain: The domain on which to search for emails. Must be\n defined if company is not.",
" :param company: The name of the company on which to search for emails.\n Must be defined if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_leads_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_leads_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Update a leads list.
:param name: Name of the list to update. Must be defined.
:param team_id: The id of the list to share this list with.
:return: 204 Response. | "Update a leads list.\n\n :param name: Name of the list to update. Must be defined.\n\n :param team_id: The id of the list to share this list with.\n\n :return: 204 Response." | 87 | false | VonStruddle/PyHunter | update_leads_list | 32,778 | |
LDU_FT/restran/mountains/set_dict_none_default | LDU_FT | [
"<BEGIN>\n## `set_dict_none_default`",
"对字典中为None的值,重新设置默认值\n :param dict_item:\n :param default_value:\n :return:\n<END>",
"<BEGIN>\n## `auto_model_name_recognize`",
"自动将 site-user 识别成 SiteUser\n :param model_name:\n :return:\n<END>",
"<BEGIN>\n## `model_to_select_list`",
"只选择 id 和 name,用来... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dict_none_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_dict_none_default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | 对字典中为None的值,重新设置默认值
:param dict_item:
:param default_value:
:return: | "对字典中为None的值,重新设置默认值\n :param dict_item:\n :param default_value:\n :return:" | 81 | false | restran/mountains | set_dict_none_default | 32,779 | |
LDU_FT/oemof/oemof.db/load_config | LDU_FT | [
"<BEGIN>\n## `get_polygon_from_nuts`",
"r\"\"\"A one-line summary that does not use variable names or the\n function name.",
" Several sentences providing an extended description. Refer to\n variables using back-ticks, e.g. `var`.",
" Parameters\n ----------\n var1 : array_like\n Arra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Load data from config file to `cfg` that can be accessed by get, set
afterwards.
Specify absolute or relative path to your config file.
:param filename: Relative or absolute path
:type filename: str | "Load data from config file to `cfg` that can be accessed by get, set\n afterwards.\n\n Specify absolute or relative path to your config file.\n\n :param filename: Relative or absolute path\n :type filename: str" | 82 | false | oemof/oemof.db | load_config | 32,780 | |
LDU_FT/olt/scriptine/ensure_dir | LDU_FT | [
"<BEGIN>\n## `autocmds`",
"Parse and run commands.",
" Will search ``namespace`` for functions that end with ``command_suffix``.",
" :param namespace: the namespace/module to search for commands\n :param args: the arguments for the command parser. defaults to\n :data:`sys.argv`\n :param com... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_dir API.
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 ensure_dir API.
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... | Make sure the directory exists, create if necessary. | "Make sure the directory exists, create if necessary." | 84 | false | olt/scriptine | ensure_dir | 32,781 | |
LDU_FT/flowroute/txjason/call | LDU_FT | [
"<BEGIN>\n## `addToService`",
"Add this Handler's exported methods to an RPC Service instance.\n<END>",
"<BEGIN>\n## `add`",
"Adds a new method to the jsonrpc service.",
" Arguments:\n f -- the remote function\n name -- name of the method in the jsonrpc service\n types -- list or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Calls jsonrpc service's method and returns its return value in a JSON
string or None if there is none.
Arguments:
jsondata -- remote method call in jsonrpc format | "Calls jsonrpc service's method and returns its return value in a JSON\n string or None if there is none.\n\n Arguments:\n jsondata -- remote method call in jsonrpc format" | 40 | false | flowroute/txjason | call | 32,782 | |
LDU_FT/doakey3/DashTable/grid2data | LDU_FT | [
"<BEGIN>\n## `check_table`",
"Ensure the table is valid for converting to grid table.",
" * The table must a list of lists\n * Each row must contain the same number of columns\n * The table must not be empty",
" Parameters\n ----------\n table : list of lists of str\n The list of rows... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grid2data API.
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 grid2data API.
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... | Convert Grid table to data (the kind used by Dashtable)
Parameters
----------
text : str
The text must be a valid rst table
Returns
-------
table : list of lists of str
spans : list of lists of lists of int
A span is a list of [row, column] pairs that define a group of
... | "Convert Grid table to data (the kind used by Dashtable)\n\n Parameters\n ----------\n text : str\n The text must be a valid rst table\n Returns\n -------\n table : list of lists of str\n spans : list of lists of lists of int\n A span is a list of [row, column] pairs that define a gro... | 230 | false | doakey3/DashTable | grid2data | 32,783 | |
LDU_FT/bihealth/vcfpy/_read_next_line | LDU_FT | [
"<BEGIN>\n## `make_virtual_offset`",
"Compute a BGZF virtual offset from block start and within block offsets.\n The BAM indexing scheme records read positions using a 64 bit\n 'virtual offset', comprising in C terms:\n block_start_offset << 16 | within_block_offset\n Here block_start_offset is the fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_next_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_next_line API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Read next line store in self._line and return old one | "Read next line store in self._line and return old one" | 127 | false | bihealth/vcfpy | _read_next_line | 32,784 | |
LDU_FT/daler/metaseq/genome | LDU_FT | [
"<BEGIN>\n## `requirements_check`",
"Ensure we have programs needed to download/manipulate the data\n<END>",
"<BEGIN>\n## `_up_to_date`",
"Make sure md5sum(fn) == md5, and if not, delete `fn`.\n<END>",
"<BEGIN>\n## `logged_command`",
"helper function to log a command and then run it\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the genome API.
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 genome API.
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 ... | "genome" dictionary ready for pybedtools, based on the BAM header. | "\"genome\" dictionary ready for pybedtools, based on the BAM header." | 400 | false | daler/metaseq | genome | 32,785 | |
LDU_FT/MisterY/asset-allocation/__calculate_current_value | LDU_FT | [
"<BEGIN>\n## `get_symbols_with_positive_balances`",
"Identifies all the securities with positive balances\n<END>",
"<BEGIN>\n## `__get_pricedb_session`",
"Provides initialization and access to module-level session\n<END>",
"<BEGIN>\n## `format`",
"Returns the view-friendly output of the aa model\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __calculate_current_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __calculate_current_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Calculate totals for asset class by adding all the children values | "Calculate totals for asset class by adding all the children values" | 56 | false | MisterY/asset-allocation | __calculate_current_value | 32,786 | |
LDU_FT/dbarsam/python-vsgen/entrypoint | LDU_FT | [
"<BEGIN>\n## `_import`",
"Internal method to import instance variables data from a dictionary",
" :param dict datadict: The dictionary containing variables values.\n<END>",
"<BEGIN>\n## `from_section`",
"Creates a :class:`~vsgen.project.VSGProject` from a :class:`~configparser.ConfigParser` section."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entrypoint API.
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 entrypoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns the the entry point object given a section, option pair.
:param str section: The section name in the entry point collection
:param str option: The option name in the entry point collection
:return: The entry point object if available. | "Returns the the entry point object given a section, option pair.\n\n :param str section: The section name in the entry point collection\n :param str option: The option name in the entry point collection\n :return: The entry point object if available." | 101 | false | dbarsam/python-vsgen | entrypoint | 32,787 | |
LDU_FT/marcomusy/vtkplotter/averageSize | LDU_FT | [
"<BEGIN>\n## `add_particle`",
"Adds a new particle with specified properties (in SI units)\n<END>",
"<BEGIN>\n## `simulate`",
"Runs the particle simulation. Simulates one time step, dt, of the particle motion.\n Calculates the force between each pair of particles and updates particles' motion accor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the averageSize API.
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 averageSize API.
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... | Calculate the average size of a mesh.
This is the mean of the vertex distances from the center of mass. | "Calculate the average size of a mesh.\n This is the mean of the vertex distances from the center of mass." | 801 | false | marcomusy/vtkplotter | averageSize | 32,788 | |
LDU_FT/anomaly/vishnu/google_app_engine_ndb_delete_expired_sessions | LDU_FT | [
"<BEGIN>\n## `google_app_engine_ndb_delete_expired_sessions`",
"Deletes expired sessions\n A session is expired if it expires date is set and has passed or\n if it has not been accessed for a given period of time.",
" :param dormant_for: seconds since last access to delete sessions, defaults to 24 hour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the google_app_engine_ndb_delete_expired_sessions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the google_app_engine_ndb_delete_expired_sessions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in... | Deletes expired sessions
A session is expired if it expires date is set and has passed or
if it has not been accessed for a given period of time.
:param dormant_for: seconds since last access to delete sessions, defaults to 24 hours.
:type dormant_for: int
:param limit: amount to delete in one call... | "Deletes expired sessions\n A session is expired if it expires date is set and has passed or\n if it has not been accessed for a given period of time.\n\n :param dormant_for: seconds since last access to delete sessions, defaults to 24 hours.\n :type dormant_for: int\n :param limit: amount to delete in o... | 22 | false | anomaly/vishnu | google_app_engine_ndb_delete_expired_sessions | 32,789 | |
LDU_FT/thespacedoctor/fundamentals/ingest | LDU_FT | [
"<BEGIN>\n## `main`",
"The main function used when ``yaml_to_database.py`` when installed as a cl tool\n<END>",
"<BEGIN>\n## `ingest`",
"*ingest the contents of the directory of yaml files into a database*",
" **Return:**\n - None",
" **Usage:**",
" To import an entir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ingest API.
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 ingest API.
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 ... | *ingest the contents of the directory of yaml files into a database*
**Return:**
- None
**Usage:**
To import an entire directory of yaml files into a database, use the following:
.. code-block:: python
from fundamentals.mysql import yaml_to_database
... | "*ingest the contents of the directory of yaml files into a database*\n\n **Return:**\n - None\n\n **Usage:**\n\n To import an entire directory of yaml files into a database, use the following:\n\n .. code-block:: python \n\n from fundamentals.mysql import yaml_to_d... | 306 | false | thespacedoctor/fundamentals | ingest | 32,790 | |
LDU_FT/michaelaye/pyciss/calc_offset | LDU_FT | [
"<BEGIN>\n## `get_config`",
"Read the configfile and return config dict.",
" Returns\n -------\n dict\n Dictionary with the content of the configpath file.\n<END>",
"<BEGIN>\n## `set_database_path`",
"Use to write the database path into the config.",
" Parameters\n ----------\n db... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_offset API.
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 calc_offset API.
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... | Calculate an offset.
Calculate offset from the side of data so that at least 200 image pixels are in the MAD stats.
Parameters
==========
cube : pyciss.ringcube.RingCube
Cubefile with ring image | "Calculate an offset.\n\n Calculate offset from the side of data so that at least 200 image pixels are in the MAD stats.\n\n Parameters\n ==========\n cube : pyciss.ringcube.RingCube\n Cubefile with ring image" | 83 | false | michaelaye/pyciss | calc_offset | 32,791 | |
LDU_FT/grangier/python-goose/get_meta_content | LDU_FT | [
"<BEGIN>\n## `check_large_images`",
"\\\n although slow the best way to determine the best image is to download\n them and check the actual dimensions of the image when on disk\n so we'll go through a phased approach...\n 1. get a list of ALL images from the parent node\n 2. fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_meta_content API.
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_meta_content API.
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 a given meta content form document | "\\\n Extract a given meta content form document" | 51 | false | grangier/python-goose | get_meta_content | 32,792 | |
LDU_FT/pyBookshelf/bookshelf/get_rackspace_info | LDU_FT | [
"<BEGIN>\n## `apt_install_from_url`",
"installs a pkg from a url\n p pkg_name: the name of the package to install\n p url: the full URL for the rpm package\n<END>",
"<BEGIN>\n## `apt_add_key`",
"trust a new PGP key related to a apt-repository\n<END>",
"<BEGIN>\n## `is_package_installed`",
"c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rackspace_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rackspace_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.
Th... | queries Rackspace for details about a particular server id | "queries Rackspace for details about a particular server id" | 88 | false | pyBookshelf/bookshelf | get_rackspace_info | 32,793 | |
LDU_FT/notanumber/xapian-haystack/build_schema | LDU_FT | [
"<BEGIN>\n## `_term_to_xapian_value`",
"Converts a term to a serialized\n Xapian value based on the field_type.\n<END>",
"<BEGIN>\n## `_from_xapian_value`",
"Converts a serialized Xapian value\n to Python equivalent based on the field_type.",
" Doesn't accept multivalued fields.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_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 extr... | Build the schema from fields.
:param fields: A list of fields in the index
:returns: list of dictionaries
Each dictionary has the keys
field_name: The name of the field index
type: what type of value it is
'multi_valued': if it allows more than one value
'co... | "Build the schema from fields.\n\n :param fields: A list of fields in the index\n :returns: list of dictionaries\n\n Each dictionary has the keys\n field_name: The name of the field index\n type: what type of value it is\n 'multi_valued': if it allows more than one value\n ... | 127 | false | notanumber/xapian-haystack | build_schema | 32,794 | |
LDU_FT/EnigmaBridge/jbossply/tokenize | LDU_FT | [
"<BEGIN>\n## `main`",
"Reads stdin jboss output, writes json on output\n :return:\n<END>",
"<BEGIN>\n## `tokenize`",
"Invoke the lexer on an input string an return the list of tokens.\n This is relatively inefficient and should only be used for\n testing/debugging as it slurps up all tokens i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API.
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 tokenize API.
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... | Invoke the lexer on an input string an return the list of tokens.
This is relatively inefficient and should only be used for
testing/debugging as it slurps up all tokens into one list.
Args:
data: The input to be tokenized.
Returns:
A list of LexTokens | "Invoke the lexer on an input string an return the list of tokens.\n This is relatively inefficient and should only be used for\n testing/debugging as it slurps up all tokens into one list.\n Args:\n data: The input to be tokenized.\n Returns:\n A list of LexTokens" | 10 | false | EnigmaBridge/jbossply | tokenize | 32,795 | |
LDU_FT/ereOn/azmq/allow | LDU_FT | [
"<BEGIN>\n## `metadata_to_buffers`",
"Transform a dict of metadata into a sequence of buffers.",
" :param metadata: The metadata, as a dict.\n :returns: A list of buffers.\n<END>",
"<BEGIN>\n## `buffer_to_metadata`",
"Transform a buffer to a metadata dictionary.",
" :param buffer: The buffer, as ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allow API.
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 allow API.
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... | Allow the specified IP to connect.
:param ip: The IPv4 or IPv6 address to allow. | "Allow the specified IP to connect.\n\n :param ip: The IPv4 or IPv6 address to allow." | 111 | false | ereOn/azmq | allow | 32,796 | |
LDU_FT/owncloud/pyocclient/get_attribute | LDU_FT | [
"<BEGIN>\n## `get_expiration`",
"Returns the expiration date.",
" :returns: expiration date\n :rtype: datetime object\n<END>",
"<BEGIN>\n## `login`",
"Authenticate to ownCloud.\n This will create a session on the server.",
" :param user_id: user id\n :param password: pas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns an application attribute
:param app: application id
:param key: attribute key or None to retrieve all values for the
given application
:returns: attribute value if key was specified, or an array of tuples
(key, value) for each attribute
:raises: HTTPRespo... | "Returns an application attribute\n\n :param app: application id\n :param key: attribute key or None to retrieve all values for the\n given application\n :returns: attribute value if key was specified, or an array of tuples\n (key, value) for each attribute\n :raises: H... | 139 | false | owncloud/pyocclient | get_attribute | 32,797 | |
LDU_FT/foxx/python-helpful/default | LDU_FT | [
"<BEGIN>\n## `unique_iter`",
"See http://www.peterbe.com/plog/uniqifiers-benchmark\n Originally f8 written by Dave Kirby\n<END>",
"<BEGIN>\n## `ensure_subclass`",
"Ensure value is a subclass of types",
" >>> class Hello(object): pass\n >>> ensure_subclass(Hello, Hello)\n >>> ensure_subclass(obje... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the default API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return first argument which is "truthy"
>>> default(None, None, 1)
1
>>> default(None, None, 123)
123
>>> print(default(None, None))
None | "Return first argument which is \"truthy\"\n\n >>> default(None, None, 1)\n 1\n >>> default(None, None, 123)\n 123\n >>> print(default(None, None))\n None" | 57 | false | foxx/python-helpful | default | 32,798 | |
LDU_FT/Azure/msrest-for-python/_request | LDU_FT | [
"<BEGIN>\n## `async_poller`",
"Async Poller for long running operations.",
" :param client: A msrest service client. Can be a SDK client and it will be casted to a ServiceClient.\n :type client: msrest.service_client.ServiceClient\n :param initial_response: The initial call response\n :type initial_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _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 extracte... | Create ClientRequest object.
:param str url: URL for the request.
:param dict params: URL query parameters.
:param dict headers: Headers
:param dict form_content: Form content | "Create ClientRequest object.\n\n :param str url: URL for the request.\n :param dict params: URL query parameters.\n :param dict headers: Headers\n :param dict form_content: Form content" | 324 | false | Azure/msrest-for-python | _request | 32,799 | |
LDU_FT/mabuchilab/QNET/dotprint | LDU_FT | [
"<BEGIN>\n## `isdisjoint`",
"Check whether two Hilbert spaces are disjoint (do not have any\n common local factors). Note that `FullSpace` is *not* disjoint with any\n other Hilbert space, while `TrivialSpace` *is* disjoint with any other\n HilbertSpace (even itself)\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dotprint API.
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 dotprint API.
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 the `DOT`_ (graph) description of an Expression tree as a string
Args:
expr (object): The expression to render into a graph. Typically an
instance of :class:`~qnet.algebra.abstract_algebra.Expression`, but
with appropriate `get_children`, `labelfunc`, and `id_func`, this
... | "Return the `DOT`_ (graph) description of an Expression tree as a string\n\n Args:\n expr (object): The expression to render into a graph. Typically an\n instance of :class:`~qnet.algebra.abstract_algebra.Expression`, but\n with appropriate `get_children`, `labelfunc`, and `id_func`, thi... | 1,017 | false | mabuchilab/QNET | dotprint | 32,800 | |
LDU_FT/eternnoir/pyTelegramBotAPI/set_chat_sticker_set | LDU_FT | [
"<BEGIN>\n## `split_string`",
"Splits one string into multiple strings, with a maximum amount of `chars_per_string` characters per string.\n This is very useful for splitting one giant message into multiples.",
" :param text: The text to split\n :param chars_per_string: The number of characters per lin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_chat_sticker_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_chat_sticker_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.
... | Use this method to set a new group sticker set for a supergroup. The bot must be an administrator
in the chat for this to work and must have the appropriate admin rights.
Use the field can_set_sticker_set optionally returned in getChat requests to check
if the bot can use this method. Returns Tr... | "Use this method to set a new group sticker set for a supergroup. The bot must be an administrator\n in the chat for this to work and must have the appropriate admin rights.\n Use the field can_set_sticker_set optionally returned in getChat requests to check\n if the bot can use this method. Return... | 187 | false | eternnoir/pyTelegramBotAPI | set_chat_sticker_set | 32,801 | |
LDU_FT/pdkit/pdkit/add_manual_segmentation_to_data_frame | LDU_FT | [
"<BEGIN>\n## `load`",
"This is a general load data method where the format of data to load can be passed as a parameter,",
" :param str filename: The path to load data from\n :param str format_file: format of the file. Default is CloudUPDRS. Set to mpower for mpower data.\n :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_manual_segmentation_to_data_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_manual_segmentation_to_data_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates ... | Utility method to store manual segmentation of gait time series.
:param data_frame: The data frame. It should have x, y, and z columns.
:type data_frame: pandas.DataFrame
:param segmentation_dictionary: A dictionary of the form {'signal_type': [(from, to), (from, to)], ..., 'signal_... | "Utility method to store manual segmentation of gait time series.\n\n :param data_frame: The data frame. It should have x, y, and z columns.\n :type data_frame: pandas.DataFrame\n :param segmentation_dictionary: A dictionary of the form {'signal_type': [(from, to), (from, to)], ..., 'si... | 344 | false | pdkit/pdkit | add_manual_segmentation_to_data_frame | 32,802 | |
LDU_FT/kmerkmer/pymer/P | LDU_FT | [
"<BEGIN>\n## `consume_file`",
"Counts all kmers in all sequences in a FASTA/FASTQ file.\n<END>",
"<BEGIN>\n## `print_table`",
"Prints a table of k-mer counts",
" Parameters\n ----------\n sparse: bool\n Print only observed kmers\n file: IO object\n Print to ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API.
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 docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the P API.
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 docum... | Sparse [k-1]x[k-1] transition frequency matrix | "Sparse [k-1]x[k-1] transition frequency matrix" | 11 | false | kmerkmer/pymer | P | 32,803 | |
LDU_FT/joeferraro/mm/get_plugin_client_settings | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>",
"<BEGIN>\n## `get_meta_type_by_dir`",
"> quick and dirty fix for users expe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_plugin_client_settings 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_plugin_client_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | if the default path for settings is none, we're either dealing with a bad client setup or
a new client like Atom.io. Let's load the settings from the default cache and optionally allow
them to pipe settings in via STDIN | "if the default path for settings is none, we're either dealing with a bad client setup or\n a new client like Atom.io. Let's load the settings from the default cache and optionally allow \n them to pipe settings in via STDIN" | 71 | false | joeferraro/mm | get_plugin_client_settings | 32,804 | |
LDU_FT/thombashi/thutils/loads | LDU_FT | [
"<BEGIN>\n## `load`",
":param str json_file_path: Path to the JSON file to be read.\n :param voluptuous.Schema schema: JSON schema.\n :return: Dictionary storing the parse results of JSON.\n :rtype: dictionary",
" :raises ImportError:\n :raises InvalidFilePathError:\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
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 loads API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | :param str json_text: json text to be parse
:param voluptuous.Schema schema: JSON schema.
:return: Dictionary storing the parse results of JSON
:rtype: dictionary
:raises ImportError:
:raises RuntimeError:
:raises ValueError: | ":param str json_text: json text to be parse\n :param voluptuous.Schema schema: JSON schema.\n :return: Dictionary storing the parse results of JSON\n :rtype: dictionary\n :raises ImportError:\n :raises RuntimeError:\n :raises ValueError:" | 19 | false | thombashi/thutils | loads | 32,805 | |
LDU_FT/gatkin/declxml/parse_at_element | LDU_FT | [
"<BEGIN>\n## `parse_from_file`",
"Parse the XML file using the processor starting from the root of the document.",
" :param root_processor: Root processor of the XML document.\n :param xml_file_path: Path to XML file to parse.\n :param encoding: Encoding of the file.",
" :return: Parsed value.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_at_element API.
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 parse_at_element API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Parse the primitive value at the XML element. | "Parse the primitive value at the XML element." | 127 | false | gatkin/declxml | parse_at_element | 32,806 | |
LDU_FT/taddeus/wspy/do_async_send | LDU_FT | [
"<BEGIN>\n## `conflicts`",
"Check if the extension conflicts with an already accepted extension.\n This may be the case when the two extensions use the same reserved\n bits, or have the same name (when the same extension is negotiated\n multiple times with different parameters).\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_async_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_async_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 ext... | Send any queued data. This function should only be called after a write
event on a file descriptor. | "Send any queued data. This function should only be called after a write\n event on a file descriptor." | 72 | false | taddeus/wspy | do_async_send | 32,807 | |
LDU_FT/mozilla/taar/_recommend | LDU_FT | [
"<BEGIN>\n## `flaskrun`",
"Takes a flask.Flask instance and runs it. Parses\n command-line flags to configure the app.\n<END>",
"<BEGIN>\n## `get_randomized_guid_sample`",
"Fetch a subset of randomzied GUIDs from the whitelist\n<END>",
"<BEGIN>\n## `can_recommend`",
"The Curated recommender will always... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _recommend API.
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 _recommend API.
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... | Ensemble recommendations are aggregated from individual
recommenders. The ensemble recommender applies a weight to
the recommendation outputs of each recommender to reorder the
recommendations to be a better fit.
The intuitive understanding is that the total space of
recommende... | "Ensemble recommendations are aggregated from individual\n recommenders. The ensemble recommender applies a weight to\n the recommendation outputs of each recommender to reorder the\n recommendations to be a better fit.\n\n The intuitive understanding is that the total space of\n rec... | 45 | false | mozilla/taar | _recommend | 32,808 | |
LDU_FT/rsheftel/raccoon/iterrows | LDU_FT | [
"<BEGIN>\n## `sorted_exists`",
"For list, values, returns the insert position for item x and whether the item already exists in the list. This\n allows one function call to return either the index to overwrite an existing value in the list, or the index to\n insert a new item in the list and keep the list i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterrows API.
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 iterrows API.
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... | Iterates over DataFrame rows as dictionary of the values. The index will be included.
:param index: if True include the index in the results
:return: dictionary | "Iterates over DataFrame rows as dictionary of the values. The index will be included.\n\n :param index: if True include the index in the results\n :return: dictionary" | 208 | false | rsheftel/raccoon | iterrows | 32,809 | |
LDU_FT/juanifioren/django-oidc-provider/OIDC_UNAUTHENTICATED_SESSION_MANAGEMENT_KEY | LDU_FT | [
"<BEGIN>\n## `userinfo`",
"Create a dictionary with all the requested claims about the End-User.\n See: http://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse",
" Return a dictionary.\n<END>",
"<BEGIN>\n## `create_response_dic`",
"Generate the dic that will be jsonify. Checking scopes g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OIDC_UNAUTHENTICATED_SESSION_MANAGEMENT_KEY API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the OIDC_UNAUTHENTICATED_SESSION_MANAGEMENT_KEY API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indi... | OPTIONAL. Supply a fixed string to use as browser-state key for unauthenticated clients. | "OPTIONAL. Supply a fixed string to use as browser-state key for unauthenticated clients." | 60 | false | juanifioren/django-oidc-provider | OIDC_UNAUTHENTICATED_SESSION_MANAGEMENT_KEY | 32,810 | |
LDU_FT/DheerendraRathor/django-auth-ldap-ng/authenticate | LDU_FT | [
"<BEGIN>\n## `get_ldap`",
"Returns the ldap module. The unit test harness will assign a mock object\n to _LDAPConfig.ldap. It is imperative that the ldap module not be\n imported anywhere else so that the unit tests will pass in the absence\n of python-ldap.\n<END>",
"<BEGIN>\n## `get_logge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate API.
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 authenticate API.
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... | Authenticates against the LDAP directory and returns the corresponding
User object if successful. Returns None on failure. | "Authenticates against the LDAP directory and returns the corresponding\n User object if successful. Returns None on failure." | 55 | false | DheerendraRathor/django-auth-ldap-ng | authenticate | 32,811 | |
LDU_FT/Gandi/gandi.cli/resource_list | LDU_FT | [
"<BEGIN>\n## `mkpassword`",
"Generates a random ascii string - useful to generate authinfos",
" :param length: string wanted length\n :type length: ``int``",
" :param chars: character population,\n defaults to alphabet (lower & upper) + numbers\n :type chars: ``str``, ``list``, ``... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resource_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the possible list of resources (name, id and vhosts). | "Get the possible list of resources (name, id and vhosts)." | 357 | false | Gandi/gandi.cli | resource_list | 32,812 | |
LDU_FT/ranaroussi/qtpylib/sell | LDU_FT | [
"<BEGIN>\n## `load_cli_args`",
"Parse command line arguments and return only the non-default ones",
" :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>",
"<BEGIN>\n## `run`",
"Starts the reporting module",
" Makes the dashboard web app available vi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sell API.
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 sell API.
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... | Shortcut for ``instrument.order("SELL", ...)`` and accepts all of its
`optional parameters <#qtpylib.instrument.Instrument.order>`_
:Parameters:
quantity : int
Order quantity | "Shortcut for ``instrument.order(\"SELL\", ...)`` and accepts all of its\n `optional parameters <#qtpylib.instrument.Instrument.order>`_\n\n :Parameters:\n quantity : int\n Order quantity" | 155 | false | ranaroussi/qtpylib | sell | 32,813 | |
LDU_FT/metapensiero/metapensiero.signal/signal | LDU_FT | [
"<BEGIN>\n## `get_subscribers`",
"Get per-instance subscribers from the signal.\n<END>",
"<BEGIN>\n## `notify_prepared`",
"Like notify allows to pass more options to the underlying\n `Signal.prepare_notification()` method.",
" The allowed options are:",
" notify_external : bool\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the signal API.
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 signal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | A signal decorator designed to work both in the simpler way, like:
.. code:: python
@signal
def validation_function(arg1, ...):
'''Some doc'''
and also as a double-called decorator, like
.. code:: python
@signal(SignalOptions.EXEC_CONCURRENT)
def validation_function(ar... | "A signal decorator designed to work both in the simpler way, like:\n\n .. code:: python\n\n @signal\n def validation_function(arg1, ...):\n '''Some doc'''\n\n and also as a double-called decorator, like\n\n .. code:: python\n\n @signal(SignalOptions.EXEC_CONCURRENT)\n def validati... | 47 | false | metapensiero/metapensiero.signal | signal | 32,814 | |
LDU_FT/jim-easterbrook/pywws/get_fixed_block | LDU_FT | [
"<BEGIN>\n## `read_data`",
"Receive data from the device.",
" If the read fails for any reason, an :obj:`IOError` exception\n is raised.",
" :param size: the number of bytes to read.",
" :type size: int",
" :return: the data received.",
" :rtype: list(int)\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fixed_block API.
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_fixed_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get the decoded "fixed block" of settings and min/max data.
A subset of the entire block can be selected by keys. | "Get the decoded \"fixed block\" of settings and min/max data.\n\n A subset of the entire block can be selected by keys." | 210 | false | jim-easterbrook/pywws | get_fixed_block | 32,815 | |
LDU_FT/CSchoel/nolds/plot_reg | LDU_FT | [
"<BEGIN>\n## `weron_2002_figure2`",
"Recreates figure 2 of [w]_ comparing the reported values by Weron to the\n values obtained by the functions in this package.",
" The experiment consists of n iterations where the hurst exponent of randomly\n generated gaussian noise is calculated. This is done with differ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_reg API.
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 plot_reg API.
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... | Helper function to plot trend lines for line-fitting approaches. This
function will show a plot through ``plt.show()`` and close it after the window
has been closed by the user.
Args:
xvals (list/array of float):
list of x-values
yvals (list/array of float):
list of y-values
poly (list/ar... | "Helper function to plot trend lines for line-fitting approaches. This\n function will show a plot through ``plt.show()`` and close it after the window\n has been closed by the user.\n\n Args:\n xvals (list/array of float):\n list of x-values\n yvals (list/array of float):\n list of y-values\n pol... | 236 | false | CSchoel/nolds | plot_reg | 32,816 | |
LDU_FT/Peter-Slump/python-keycloak-client/add | LDU_FT | [
"<BEGIN>\n## `session`",
"Get session object to benefit from connection pooling.",
" http://docs.python-requests.org/en/master/user/advanced/#session-objects",
" :rtype: requests.Session\n<END>",
"<BEGIN>\n## `open_id_connect`",
"Get OpenID Connect client",
" :param str client_id:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | :param roles: _rolerepresentation array keycloak api | ":param roles: _rolerepresentation array keycloak api" | 118 | false | Peter-Slump/python-keycloak-client | add | 32,817 | |
LDU_FT/lucapinello/Haystack/_compute_logP_from_ll | LDU_FT | [
"<BEGIN>\n## `sample_wr`",
"Chooses k random elements (with replacement) from a population\n<END>",
"<BEGIN>\n## `summary`",
"m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>",
"<BEGIN>\n## `minimal_raw_seqs`",
"m.minimal_raw_seqs() -- Return minimal list of seqs that r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_logP_from_ll 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 _compute_logP_from_ll API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | m._compute_logP_from_ll() -- Compute self's logP matrix from the self.ll (log-likelihood) | "m._compute_logP_from_ll() -- Compute self's logP matrix from the self.ll (log-likelihood)" | 87 | false | lucapinello/Haystack | _compute_logP_from_ll | 32,818 | |
LDU_FT/has2k1/plotnine/get_package_data | LDU_FT | [
"<BEGIN>\n## `iqr`",
"Calculate the IQR for an array of numbers.\n<END>",
"<BEGIN>\n## `freedman_diaconis_bins`",
"Calculate number of hist bins using Freedman-Diaconis rule.\n<END>",
"<BEGIN>\n## `breaks_from_binwidth`",
"Calculate breaks given binwidth",
" Parameters\n ----------\n x_range : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_package_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 ... | Return package data
For example:
{'': ['*.txt', '*.rst'],
'hello': ['*.msg']}
means:
- If any package contains *.txt or *.rst files,
include them
- And include any *.msg files found in
the 'hello' package, too: | "Return package data\n\n For example:\n\n {'': ['*.txt', '*.rst'],\n 'hello': ['*.msg']}\n\n means:\n - If any package contains *.txt or *.rst files,\n include them\n - And include any *.msg files found in\n the 'hello' package, too:" | 719 | false | has2k1/plotnine | get_package_data | 32,819 | |
LDU_FT/UDST/urbansim/add_model | LDU_FT | [
"<BEGIN>\n## `log_start_finish`",
"A context manager to log messages with \"start: \" and \"finish: \"\n prefixes before and after a block.",
" Parameters\n ----------\n msg : str\n Will be prefixed with \"start: \" and \"finish: \".\n logger : logging.Logger\n level : int, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_model API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Add a `RegressionModel` instance.
Parameters
----------
model : `RegressionModel`
Should have a ``.name`` attribute matching one of
the groupby segments. | "Add a `RegressionModel` instance.\n\n Parameters\n ----------\n model : `RegressionModel`\n Should have a ``.name`` attribute matching one of\n the groupby segments." | 461 | false | UDST/urbansim | add_model | 32,820 | |
LDU_FT/datamachine/twx.botapi/edit_message_text | LDU_FT | [
"<BEGIN>\n## `export_chat_invite_link`",
"Use this method to generate a new invite link for a chat; any previously generated link is revoked.\n The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.\n :param chat_id: Unique identifier for the target chat or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_message_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_message_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Use this method to edit text messages sent by the bot or via the bot (for inline bots).
:param text: New text of the message
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
the target channel (in the format @channeluse... | "Use this method to edit text messages sent by the bot or via the bot (for inline bots).\n\n :param text: New text of the message\n :param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)\n the target channel (in the format @chann... | 194 | false | datamachine/twx.botapi | edit_message_text | 32,821 | |
LDU_FT/tkf/rash/detect_terminal | LDU_FT | [
"<BEGIN>\n## `concat_expr`",
"Concatenate `conditions` with `operator` and wrap it by ().",
" It returns a string in a list or empty list, if `conditions` is empty.\n<END>",
"<BEGIN>\n## `join`",
"Join `source`.",
" >>> sc = SQLConstructor('main', ['c1', 'c2'])\n >>> sc.join('sub', 'JOIN'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_terminal API.
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 detect_terminal API.
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... | Detect "terminal" you are using.
First, this function checks if you are in tmux, byobu, or screen.
If not it uses $COLORTERM [#]_ if defined and fallbacks to $TERM.
.. [#] So, if you are in Gnome Terminal you have "gnome-terminal"
instead of "xterm-color"". | "Detect \"terminal\" you are using.\n\n First, this function checks if you are in tmux, byobu, or screen.\n If not it uses $COLORTERM [#]_ if defined and fallbacks to $TERM.\n\n .. [#] So, if you are in Gnome Terminal you have \"gnome-terminal\"\n instead of \"xterm-color\"\"." | 142 | false | tkf/rash | detect_terminal | 32,822 | |
LDU_FT/lark-parser/lark/_term | LDU_FT | [
"<BEGIN>\n## `dedup_list`",
"Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>",
"<BEGIN>\n## `_parse`",
"Parses sentence 's' using CNF grammar 'g'.\n<END>",
"<BEGIN>\n## `get_any_nt_unit_rule... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _term API.
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 _term API.
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... | Applies the TERM rule on 'g' (see top comment). | "Applies the TERM rule on 'g' (see top comment)." | 55 | false | lark-parser/lark | _term | 32,823 | |
LDU_FT/vnmabus/dcor/u_distance_stats_sqr | LDU_FT | [
"<BEGIN>\n## `_float_copy_to_out`",
"Copy origin to out and return it.",
" If ``out`` is None, a new copy (casted to floating point) is used. If\n ``out`` and ``origin`` are the same, we simply return it. Otherwise we\n copy the values.\n<END>",
"<BEGIN>\n## `_double_centered_imp`",
"Real implement... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the u_distance_stats_sqr 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 u_distance_stats_sqr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | u_distance_stats_sqr(x, y, *, exponent=1)
Computes the unbiased estimators for the squared distance covariance
and squared distance correlation between two random vectors, and the
individual squared distance variances.
Parameters
----------
x: array_like
First random vector. The column... | "u_distance_stats_sqr(x, y, *, exponent=1)\n\n Computes the unbiased estimators for the squared distance covariance\n and squared distance correlation between two random vectors, and the\n individual squared distance variances.\n\n Parameters\n ----------\n x: array_like\n First random vector. ... | 201 | false | vnmabus/dcor | u_distance_stats_sqr | 32,824 | |
LDU_FT/pacificclimate/cfmeta/get_fp_meta | LDU_FT | [
"<BEGIN>\n## `get_dir_meta`",
"Pop path information and map to supplied atts\n<END>",
"<BEGIN>\n## `get_fp_meta`",
"Processes a CMIP3 style file path.",
" The standard CMIP3 directory structure:",
" <experiment>/<variable_name>/<model>/<ensemble_member>/<CMOR filename>.nc",
" Filename is of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fp_meta API.
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_fp_meta API.
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... | Processes a CMIP3 style file path.
The standard CMIP3 directory structure:
<experiment>/<variable_name>/<model>/<ensemble_member>/<CMOR filename>.nc
Filename is of pattern:
<model>-<experiment>-<variable_name>-<ensemble_member>.nc
Arguments:
fp (str): A file path conforming to C... | "Processes a CMIP3 style file path.\n\n The standard CMIP3 directory structure:\n\n <experiment>/<variable_name>/<model>/<ensemble_member>/<CMOR filename>.nc\n\n Filename is of pattern:\n\n <model>-<experiment>-<variable_name>-<ensemble_member>.nc\n\n Arguments:\n fp (str): A file path con... | 56 | false | pacificclimate/cfmeta | get_fp_meta | 32,825 | |
LDU_FT/geomet/geomet/_dump_geometrycollection | LDU_FT | [
"<BEGIN>\n## `block_splitter`",
"Creates a generator by slicing ``data`` into chunks of ``block_size``.",
" >>> data = range(10)\n >>> list(block_splitter(data, 2))\n [[0, 1], [2, 3], [4, 5], [6, 7], [8, 9]]",
" If ``data`` cannot be evenly divided by ``block_size``, the last block will\n simpl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dump_geometrycollection 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 _dump_geometrycollection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Dump a GeoJSON-like GeometryCollection object to WKT.
Input parameters and return value are the GEOMETRYCOLLECTION equivalent to
:func:`_dump_point`.
The WKT conversions for each geometry in the collection are delegated to
their respective functions. | "Dump a GeoJSON-like GeometryCollection object to WKT.\n\n Input parameters and return value are the GEOMETRYCOLLECTION equivalent to\n :func:`_dump_point`.\n\n The WKT conversions for each geometry in the collection are delegated to\n their respective functions." | 120 | false | geomet/geomet | _dump_geometrycollection | 32,826 | |
LDU_FT/dankelley/nota/cleanup | LDU_FT | [
"<BEGIN>\n## `compute_hash`",
"Compute a hash. This is somewhat resistant to errors, e.g. if somehow the date is None,\n this will still work.\n<END>",
"<BEGIN>\n## `initialize`",
"Initialize the database. This is dangerous since it removes any\n existing content.\n<END>",
"<BEGIN>\n## `add`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Clean up the database, e.g. removing unused keywords. | "Clean up the database, e.g. removing unused keywords." | 12 | false | dankelley/nota | cleanup | 32,827 | |
LDU_FT/nschloe/meshplex/grp_start_len | LDU_FT | [
"<BEGIN>\n## `create_cell_volumes`",
"Computes the volumes of the \"cells\" in the mesh.\n<END>",
"<BEGIN>\n## `create_control_volumes`",
"Compute the control volumes of all nodes in the mesh.\n<END>",
"<BEGIN>\n## `get_signed_simplex_volumes`",
"Signed volume of a simplex in nD. Note that signing only ma... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the grp_start_len API.
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 grp_start_len API.
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... | Given a sorted 1D input array `a`, e.g., [0 0, 1, 2, 3, 4, 4, 4], this
routine returns the indices where the blocks of equal integers start and
how long the blocks are. | "Given a sorted 1D input array `a`, e.g., [0 0, 1, 2, 3, 4, 4, 4], this\n routine returns the indices where the blocks of equal integers start and\n how long the blocks are." | 44 | false | nschloe/meshplex | grp_start_len | 32,828 | |
LDU_FT/hearsaycorp/normalize/normalize_text | LDU_FT | [
"<BEGIN>\n## `path`",
"The path attribute returns a stringified, concise representation of\n the MultiFieldSelector. It can be reversed by the ``from_path``\n constructor.\n<END>",
"<BEGIN>\n## `get`",
"Creates a copy of the passed object which only contains the parts\n which are pointed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | This hook is called by :py:meth:`DiffOptions.normalize_val` if the
value (after slot/item normalization) is a string, and is responsible
for calling the various ``normalize_``\ foo methods which act on text. | "This hook is called by :py:meth:`DiffOptions.normalize_val` if the\n value (after slot/item normalization) is a string, and is responsible\n for calling the various ``normalize_``\\ foo methods which act on text." | 210 | false | hearsaycorp/normalize | normalize_text | 32,829 | |
LDU_FT/shmir/PyIxExplorer/init_ixe | LDU_FT | [
"<BEGIN>\n## `read_stats`",
"Read port statistics from chassis.",
" :param stats: list of requested statistics to read, if empty - read all statistics.\n<END>",
"<BEGIN>\n## `read_stats`",
"Read stream statistics from chassis.",
" :param stats: list of requested statistics to read, if empty ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_ixe API.
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 init_ixe API.
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... | Connect to Tcl Server and Create IxExplorer object.
:param logger: python logger object
:param host: host (IxTclServer) IP address
:param port: Tcl Server port
:param rsa_id: full path to RSA ID file for Linux based IxVM
:return: IXE object | "Connect to Tcl Server and Create IxExplorer object.\n\n :param logger: python logger object\n :param host: host (IxTclServer) IP address\n :param port: Tcl Server port\n :param rsa_id: full path to RSA ID file for Linux based IxVM\n :return: IXE object" | 91 | false | shmir/PyIxExplorer | init_ixe | 32,830 | |
LDU_FT/dalloriam/engel/build | LDU_FT | [
"<BEGIN>\n## `load_stylesheet`",
"Proper way to dynamically inject a stylesheet in a page.",
" :param path: Path of the stylesheet to inject.\n<END>",
"<BEGIN>\n## `add_child`",
"Append a widget to the list.",
" :param widget: Object inheriting :class:`~.widgets.base.BaseElement`\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
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 build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | :param text: Text of the widget
:param size: Size of the text (Higher size = smaller title) | ":param text: Text of the widget\n :param size: Size of the text (Higher size = smaller title)" | 40 | false | dalloriam/engel | build | 32,831 | |
LDU_FT/EpistasisLab/tpot/fit_predict | LDU_FT | [
"<BEGIN>\n## `auto_select_categorical_features`",
"Make a feature mask of categorical features in X.",
" Features with less than 10 unique values are considered categorical.",
" Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_predict API.
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 fit_predict API.
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... | Call fit and predict in sequence.
Parameters
----------
features: array-like {n_samples, n_features}
Feature matrix
target: array-like {n_samples}
List of class labels for prediction
sample_weight: array-like {n_samples}, optional
Per-sample w... | "Call fit and predict in sequence.\n\n Parameters\n ----------\n features: array-like {n_samples, n_features}\n Feature matrix\n target: array-like {n_samples}\n List of class labels for prediction\n sample_weight: array-like {n_samples}, optional\n Pe... | 249 | false | EpistasisLab/tpot | fit_predict | 32,832 | |
LDU_FT/CZ-NIC/python-rt/get_attachments_ids | LDU_FT | [
"<BEGIN>\n## `__request`",
"General request for :term:`API`.",
" :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attachments_ids 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_attachments_ids API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Get IDs of attachments for given ticket.
:param ticket_id: ID of ticket
:returns: List of IDs (type int) of attachments belonging to given
ticket. Returns None if ticket does not exist. | "Get IDs of attachments for given ticket.\n\n :param ticket_id: ID of ticket\n :returns: List of IDs (type int) of attachments belonging to given\n ticket. Returns None if ticket does not exist." | 143 | false | CZ-NIC/python-rt | get_attachments_ids | 32,833 | |
LDU_FT/JustinLovinger/optimal/random_real_solution | LDU_FT | [
"<BEGIN>\n## `_initial_population_gsa`",
"Create a random initial population of floating point values.",
" Args:\n population_size: an integer representing the number of solutions in the population.\n problem_size: the number of values in each solution.\n lower_bounds: a list, each value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_real_solution 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 random_real_solution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Make a list of random real numbers between lower and upper bounds. | "Make a list of random real numbers between lower and upper bounds." | 152 | false | JustinLovinger/optimal | random_real_solution | 32,834 | |
LDU_FT/jsvine/markovify/generate_corpus | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"Returns the underlying data as a Python dict.\n<END>",
"<BEGIN>\n## `generate_corpus`",
"Given a text string, returns a list of lists; that is, a list of\n \"sentences,\" each of which is a list of words. Before splitting into\n words, the sentences are filtered through... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_corpus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_corpus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Given a text string, returns a list of lists; that is, a list of
"sentences," each of which is a list of words. Before splitting into
words, the sentences are filtered through `self.test_sentence_input` | "Given a text string, returns a list of lists; that is, a list of\n \"sentences,\" each of which is a list of words. Before splitting into\n words, the sentences are filtered through `self.test_sentence_input`" | 31 | false | jsvine/markovify | generate_corpus | 32,835 | |
LDU_FT/almcc/cinder-data/_translate_name | LDU_FT | [
"<BEGIN>\n## `get_record`",
"Retrieve a record with a given type name and record id.",
" Args:\n name (string): The name which the record is stored under.\n record_id (int): The id of the record requested.",
" Returns:\n :class:`cinder_data.model.CinderModel`: Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _translate_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _translate_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Translate the class name to the API endpoint.
For example, Car would become cars, FastCar would become fast-cars.
Args:
name (string): Camel case name (singular)
Returns:
string: A pluraised, dasherized string. | "Translate the class name to the API endpoint.\n\n For example, Car would become cars, FastCar would become fast-cars.\n\n Args:\n name (string): Camel case name (singular)\n\n Returns:\n string: A pluraised, dasherized string." | 50 | false | almcc/cinder-data | _translate_name | 32,836 | |
LDU_FT/SeleniumHQ/selenium/location | LDU_FT | [
"<BEGIN>\n## `_make_w3c_caps`",
"Makes a W3C alwaysMatch capabilities object.",
" Filters out capability names that are not in the W3C spec. Spec-compliant\n drivers will reject requests containing unknown capability names.",
" Moves the Firefox profile, if present, from the old location to the new F... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the location API.
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 location API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | The location of the element in the renderable canvas. | "The location of the element in the renderable canvas." | 547 | false | SeleniumHQ/selenium | location | 32,837 | |
LDU_FT/dropbox/pygerduty/reassign | LDU_FT | [
"<BEGIN>\n## `snooze`",
"Snooze incident.\n :param requester: The email address of the individual requesting snooze.\n<END>",
"<BEGIN>\n## `reassign`",
"Reassign this incident to a user or list of users",
" :param user_ids: A non-empty list of user ids\n :param requester: The email addr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reassign API.
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 reassign API.
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... | Reassign this incident to a user or list of users
:param user_ids: A non-empty list of user ids | "Reassign this incident to a user or list of users\n\n :param user_ids: A non-empty list of user ids" | 18 | false | dropbox/pygerduty | reassign | 32,838 | |
LDU_FT/dschep/ntfy/notify | LDU_FT | [
"<BEGIN>\n## `notify`",
"Required parameters:\n * ``user_key``",
" Optional parameters:\n * ``sound``\n * ``priority``\n * ``expire``\n * ``retry``\n * ``callback``\n * ``api_token`` - use your own application token\n * ``device`` - target a device, if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API.
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 notify API.
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 ... | Optional parameters:
* ``api_key`` - use your own application token
* ``provider_key`` - if you are whitelisted
* ``priority``
* ``url`` | "Optional parameters:\n * ``api_key`` - use your own application token\n * ``provider_key`` - if you are whitelisted\n * ``priority``\n * ``url``" | 44 | false | dschep/ntfy | notify | 32,839 | |
LDU_FT/jkwill87/mapi/tvdb_search_series | LDU_FT | [
"<BEGIN>\n## `_clean_dict`",
"Convenience function that removes a dicts keys that have falsy values\n<END>",
"<BEGIN>\n## `_get_user_agent`",
"Convenience function that looks up a user agent string, random if N/A\n<END>",
"<BEGIN>\n## `_request_json`",
"Queries a url for json data",
" Note: Requests ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tvdb_search_series API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tvdb_search_series API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Allows the user to search for a series based on the following parameters
Online docs: https://api.thetvdb.com/swagger#!/Search/get_search_series
Note: results a maximum of 100 entries per page, no option for pagination= | "Allows the user to search for a series based on the following parameters\n\n Online docs: https://api.thetvdb.com/swagger#!/Search/get_search_series\n Note: results a maximum of 100 entries per page, no option for pagination=" | 40 | false | jkwill87/mapi | tvdb_search_series | 32,840 | |
LDU_FT/willkg/socorro-siggen/drop_prefix_and_return_type | LDU_FT | [
"<BEGIN>\n## `_get_file_content`",
"Return a tuple, each value being a line of the source file.",
" Remove empty lines and comments (lines starting with a '#').\n<END>",
"<BEGIN>\n## `main`",
"Takes crash data via stdin and generates a Socorro signature\n<END>",
"<BEGIN>\n## `convert_to_crash_data`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_prefix_and_return_type 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 drop_prefix_and_return_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Takes the function value from a frame and drops prefix and return type
For example::
static void * Allocator<MozJemallocBase>::malloc(unsigned __int64)
^ ^^^^^^ return type
prefix
This gets changes to this::
Allocator<MozJemallocBase>::malloc(unsigned __int64)
This ... | "Takes the function value from a frame and drops prefix and return type\n\n For example::\n\n static void * Allocator<MozJemallocBase>::malloc(unsigned __int64)\n ^ ^^^^^^ return type\n prefix\n\n This gets changes to this::\n\n Allocator<MozJemallocBase>::malloc(unsigned __int64)... | 66 | false | willkg/socorro-siggen | drop_prefix_and_return_type | 32,841 | |
LDU_FT/theno/fabsetup/_create_github_remote_repo | LDU_FT | [
"<BEGIN>\n## `create_readme_with_long_description`",
"Try to convert content of README.md into rst format using pypandoc,\n write it into README and return it.",
" If pypandoc cannot be imported write content of README.md unchanged into\n README and return it.\n<END>",
"<BEGIN>\n## `openssl`",
"Ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_github_remote_repo 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 _create_github_remote_repo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | More info:
https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
https://developer.github.com/v3/repos/#create
https://stackoverflow.com/a/10325316 | "More info:\n https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/\n https://developer.github.com/v3/repos/#create\n https://stackoverflow.com/a/10325316" | 226 | false | theno/fabsetup | _create_github_remote_repo | 32,842 | |
LDU_FT/BetterWorks/django-anonymizer/postcode | LDU_FT | [
"<BEGIN>\n## `varchar`",
"Returns a chunk of text, of maximum length 'max_length'\n<END>",
"<BEGIN>\n## `simple_pattern`",
"Use a simple pattern to make the field - # is replaced with a random number,\n ? with a random letter.\n<END>",
"<BEGIN>\n## `datetime`",
"Returns a random datetime. If 'val' ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the postcode API.
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 postcode API.
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... | Generates a random postcode (not necessarily valid, but it will look like one). | "Generates a random postcode (not necessarily valid, but it will look like one)." | 57 | false | BetterWorks/django-anonymizer | postcode | 32,843 | |
LDU_FT/nnseva/django-access/delete_selected | LDU_FT | [
"<BEGIN>\n## `formfield_for_manytomany`",
"Not all Admin subclasses use get_field_queryset here, so we will use it explicitly\n<END>",
"<BEGIN>\n## `delete_selected`",
"The real delete function always evaluated either from the action, or from the instance delete link\n<END>",
"<BEGIN>\n## `get_deleted_objec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_selected API.
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 delete_selected API.
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... | The real delete function always evaluated either from the action, or from the instance delete link | "The real delete function always evaluated either from the action, or from the instance delete link" | 26 | false | nnseva/django-access | delete_selected | 32,844 | |
LDU_FT/AlecAivazis/graphql-over-kafka/mutation_resolver | LDU_FT | [
"<BEGIN>\n## `roll_call_handler`",
"This action handler responds to the \"roll call\" emitted by the api\n gateway when it is brought up with the normal summary produced by\n the service.\n<END>",
"<BEGIN>\n## `flexible_api_handler`",
"This query handler builds the dynamic picture of availible s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mutation_resolver API.
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 mutation_resolver API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | the default behavior for mutations is to look up the event,
publish the correct event type with the args as the body,
and return the fields contained in the result | "the default behavior for mutations is to look up the event,\n publish the correct event type with the args as the body,\n and return the fields contained in the result" | 145 | false | AlecAivazis/graphql-over-kafka | mutation_resolver | 32,845 | |
LDU_FT/myyang/django-unixtimestampfield/get_datetimenow | LDU_FT | [
"<BEGIN>\n## `get_datetimenow`",
"get datetime now according to USE_TZ and default time\n<END>",
"<BEGIN>\n## `to_utc_datetime`",
"from value to datetime with tzinfo format (datetime.datetime instance)\n<END>",
"<BEGIN>\n## `to_timestamp`",
"from value to ordinal timestamp format(int)\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datetimenow API.
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_datetimenow API.
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 datetime now according to USE_TZ and default time | "get datetime now according to USE_TZ and default time" | 10 | false | myyang/django-unixtimestampfield | get_datetimenow | 32,846 | |
LDU_FT/caktus/django-sticky-uploads/get_upload_form | LDU_FT | [
"<BEGIN>\n## `stash`",
"Stores the uploaded file in a temporary storage location.\n<END>",
"<BEGIN>\n## `post`",
"Save file and return saved info or report errors.\n<END>",
"<BEGIN>\n## `get_upload_form`",
"Construct form for accepting file upload.\n<END>",
"<BEGIN>\n## `serialize_upload`",
"Serialize... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_upload_form API.
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_upload_form API.
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... | Construct form for accepting file upload. | "Construct form for accepting file upload." | 18 | false | caktus/django-sticky-uploads | get_upload_form | 32,847 | |
LDU_FT/mbr/data/auto_instantiate | LDU_FT | [
"<BEGIN>\n## `annotate`",
"Set function annotations (on Python2 and 3).\n<END>",
"<BEGIN>\n## `auto_instantiate`",
"Creates a decorator that will instantiate objects based on function\n parameter annotations.",
" The decorator will check every argument passed into ``f``. If ``f`` has an\n annotatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_instantiate API.
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 auto_instantiate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Creates a decorator that will instantiate objects based on function
parameter annotations.
The decorator will check every argument passed into ``f``. If ``f`` has an
annotation for the specified parameter and the annotation is found in
``classes``, the parameter value passed in will be used to construc... | "Creates a decorator that will instantiate objects based on function\n parameter annotations.\n\n The decorator will check every argument passed into ``f``. If ``f`` has an\n annotation for the specified parameter and the annotation is found in\n ``classes``, the parameter value passed in will be used to co... | 33 | false | mbr/data | auto_instantiate | 32,848 | |
LDU_FT/jacebrowning/comparable/similarity | LDU_FT | [
"<BEGIN>\n## `match_similar`",
"Get the most similar matching item from a list of items.",
" @param base: base item to locate best match\n @param items: list of items for comparison\n @return: most similar matching item or None\n<END>",
"<BEGIN>\n## `duplicates`",
"Get an iterator of items similar ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the similarity API.
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 similarity API.
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 similarity as a ratio of the two numbers. | "Get similarity as a ratio of the two numbers." | 44 | false | jacebrowning/comparable | similarity | 32,849 | |
LDU_FT/ray-project/ray/start_monitor | LDU_FT | [
"<BEGIN>\n## `_agent_import_failed`",
"Returns dummy agent class for if PyTorch etc. is not installed.\n<END>",
"<BEGIN>\n## `run`",
"Executes training.",
" Args:\n run_or_experiment (function|class|str|Experiment): If\n function|class|str, this is the algorithm or model to train.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_monitor API.
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 start_monitor API.
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... | Run a process to monitor the other processes.
Args:
redis_address (str): The address that the Redis server is listening on.
stdout_file: A file handle opened for writing to redirect stdout to. If
no redirection should happen, then this should be None.
stderr_file: A file handle ... | "Run a process to monitor the other processes.\n\n Args:\n redis_address (str): The address that the Redis server is listening on.\n stdout_file: A file handle opened for writing to redirect stdout to. If\n no redirection should happen, then this should be None.\n stderr_file: A file ... | 1,706 | true | ray-project/ray | start_monitor | 32,850 | |
LDU_FT/singingwolfboy/flask-dance/make_discord_blueprint | LDU_FT | [
"<BEGIN>\n## `make_discord_blueprint`",
"Make a blueprint for authenticating with Discord using OAuth 2. This requires\n a client ID and client secret from Discord. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_discord_blueprint 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 make_discord_blueprint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Make a blueprint for authenticating with Discord using OAuth 2. This requires
a client ID and client secret from Discord. You should either pass them to
this constructor, or make sure that your Flask application config defines
them, using the variables :envvar:`DISCORD_OAUTH_CLIENT_ID` and
:envvar:`DISC... | "Make a blueprint for authenticating with Discord using OAuth 2. This requires\n a client ID and client secret from Discord. You should either pass them to\n this constructor, or make sure that your Flask application config defines\n them, using the variables :envvar:`DISCORD_OAUTH_CLIENT_ID` and\n :envvar:... | 123 | false | singingwolfboy/flask-dance | make_discord_blueprint | 32,851 | |
LDU_FT/huyingxi/Synonyms/any2unicode | LDU_FT | [
"<BEGIN>\n## `load_word2vec_format`",
"Load the input-hidden weight matrix from the original C word2vec-tool format.\n Note that the information stored in the file is incomplete (the binary tree is missing),\n so while you can query for word similarity etc., you cannot continue training\n wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the any2unicode API.
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 any2unicode API.
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... | Convert a string (bytestring in `encoding` or unicode), to unicode. | "Convert a string (bytestring in `encoding` or unicode), to unicode." | 40 | false | huyingxi/Synonyms | any2unicode | 32,852 | |
LDU_FT/openvax/datacache/create | LDU_FT | [
"<BEGIN>\n## `connect_if_correct_version`",
"Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.",
" Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.",
" TODO: Make a... | 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 ... | Do the actual work of creating the database, filling its tables with
values, creating indices, and setting the datacache version metadata.
Parameters
----------
tables : list
List of datacache.DatabaseTable objects
version : int | "Do the actual work of creating the database, filling its tables with\n values, creating indices, and setting the datacache version metadata.\n\n Parameters\n ----------\n tables : list\n List of datacache.DatabaseTable objects\n\n version : int" | 101 | false | openvax/datacache | create | 32,853 | |
LDU_FT/Jarn/jarn.mkrelease/getinputencoding | LDU_FT | [
"<BEGIN>\n## `walk_revctrl`",
"Return files found by the file-finder 'ff'.\n<END>",
"<BEGIN>\n## `cleanup_pycache`",
"Remove .pyc files we leave around because of import.\n<END>",
"<BEGIN>\n## `run`",
"Run setup.py with monkey patches applied.\n<END>",
"<BEGIN>\n## `getinputencoding`",
"Return preferr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getinputencoding API.
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 getinputencoding API.
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 preferred encoding for reading from ``stream``.
``stream`` defaults to sys.stdin. | "Return preferred encoding for reading from ``stream``.\n\n ``stream`` defaults to sys.stdin." | 46 | false | Jarn/jarn.mkrelease | getinputencoding | 32,854 | |
LDU_FT/mozilla/configman/print_conf | LDU_FT | [
"<BEGIN>\n## `str_dict_keys`",
"return a modified dict where all the keys that are anything but str get\n converted to str.\n E.g.",
" >>> result = str_dict_keys({u'name': u'Peter', u'age': 99, 1: 2})\n >>> # can't compare whole dicts in doctests\n >>> result['name']\n u'Peter'\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_conf API.
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 print_conf API.
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... | write a config file to the pathname specified in the parameter. The
file extention determines the type of file written and must match a
registered type.
parameters:
config_pathname - the full path and filename of the target config
file. | "write a config file to the pathname specified in the parameter. The\n file extention determines the type of file written and must match a\n registered type.\n\n parameters:\n config_pathname - the full path and filename of the target config\n file." | 136 | false | mozilla/configman | print_conf | 32,855 | |
LDU_FT/dwwkelly/note/deleteItem | 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 deleteItem API.
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 deleteItem API.
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... | :desc: Deletes item with ID = itemID, takes care of IDs collection
:param itemID: The item ID to delete
:type itemID: int
:raises: ValueError
:returns ID: The ID of the deleted item
:rval: int | ":desc: Deletes item with ID = itemID, takes care of IDs collection\n :param itemID: The item ID to delete\n :type itemID: int\n :raises: ValueError\n :returns ID: The ID of the deleted item\n :rval: int" | 46 | false | dwwkelly/note | deleteItem | 32,856 | |
LDU_FT/sentinelsat/sentinelsat/_md5_compare | LDU_FT | [
"<BEGIN>\n## `cli`",
"Search for Sentinel products and, optionally, download all the results\n and/or create a geojson file with the search result footprints.\n Beyond your Copernicus Open Access Hub user and password, you must pass a geojson file\n containing the geometry of the area you want to search ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _md5_compare API.
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 _md5_compare API.
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... | Compare a given MD5 checksum with one calculated from a file. | "Compare a given MD5 checksum with one calculated from a file." | 90 | false | sentinelsat/sentinelsat | _md5_compare | 32,857 | |
LDU_FT/xiaoxu193/PyTeaser/fetch_images | LDU_FT | [
"<BEGIN>\n## `keywords`",
"get the top 10 keywords and their frequency scores\n ignores blacklisted words in stopWords,\n counts the number of occurrences of each word\n<END>",
"<BEGIN>\n## `split_sentences`",
"The regular expression matches all sentence ending punctuation and splits the string at those... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_images API.
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 fetch_images API.
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... | \
download the images to temp disk and set their dimensions
- we're going to score the images in the order in which
they appear so images higher up will have more importance,
- we'll count the area of the 1st image as a score
of 1 and then calculate how much larger or small e... | "\\\n download the images to temp disk and set their dimensions\n - we're going to score the images in the order in which\n they appear so images higher up will have more importance,\n - we'll count the area of the 1st image as a score\n of 1 and then calculate how much larger or ... | 20 | false | xiaoxu193/PyTeaser | fetch_images | 32,858 | |
LDU_FT/pgxcentre/geneparse/found_duplicates | LDU_FT | [
"<BEGIN>\n## `get_variant_genotypes`",
"Get the genotypes from a well formed variant instance.",
" Args:\n marker (Variant): A Variant instance.",
" Returns:\n A list of Genotypes instance containing a pointer to the variant as\n well as a vector of encoded genot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the found_duplicates API.
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 found_duplicates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Log that duplicates were found.
:param counts: A list of duplicate marker names along with their number
of occurences.
:type counts: list | "Log that duplicates were found.\n\n :param counts: A list of duplicate marker names along with their number\n of occurences.\n :type counts: list" | 120 | false | pgxcentre/geneparse | found_duplicates | 32,859 | |
LDU_FT/dls-controls/annotypes/make_repr | 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_repr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_repr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create a repr from an instance of a class
Args:
inst: The class instance we are generating a repr of
attrs: The attributes that should appear in the repr | "Create a repr from an instance of a class\n\n Args:\n inst: The class instance we are generating a repr of\n attrs: The attributes that should appear in the repr" | 24 | false | dls-controls/annotypes | make_repr | 32,860 | |
LDU_FT/wbond/asn1crypto/to_p1363 | LDU_FT | [
"<BEGIN>\n## `_pep425_version`",
":return:\n A tuple of integers representing the Python version number\n<END>",
"<BEGIN>\n## `_pep425_supports_manylinux`",
":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>",
"<BEGIN>\n## `_pep425_get_abi`",
":return:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_p1363 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_p1363 API.
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... | Dumps a signature to a byte string compatible with Microsoft's
BCryptVerifySignature() function.
:return:
A byte string compatible with BCryptVerifySignature() | "Dumps a signature to a byte string compatible with Microsoft's\n BCryptVerifySignature() function.\n\n :return:\n A byte string compatible with BCryptVerifySignature()" | 739 | false | wbond/asn1crypto | to_p1363 | 32,861 | |
LDU_FT/yougov/mongo-connector/bulk_upsert | LDU_FT | [
"<BEGIN>\n## `retry_until_ok`",
"Retry code block until it succeeds.",
" If it does not succeed in 120 attempts, the function re-raises any\n error the function raised on its last attempt.\n<END>",
"<BEGIN>\n## `apply_update`",
"Apply an update operation to a document.\n<END>",
"<BEGIN>\n## `bulk_up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bulk_upsert API.
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 bulk_upsert API.
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... | Upsert each document in a set of documents.
This method may be overridden to upsert many documents at once. | "Upsert each document in a set of documents.\n\n This method may be overridden to upsert many documents at once." | 115 | false | yougov/mongo-connector | bulk_upsert | 32,862 | |
LDU_FT/javipalanca/spade/set_available | LDU_FT | [
"<BEGIN>\n## `set_available`",
"Sets the agent availability to True.",
" Args:\n show (aioxmpp.PresenceShow, optional): the show state of the presence (Default value = None)\n<END>",
"<BEGIN>\n## `set_presence`",
"Change the presence broadcast by the client.\n If the client is current... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 ext... | Sets the agent availability to True.
Args:
show (aioxmpp.PresenceShow, optional): the show state of the presence (Default value = None) | "Sets the agent availability to True.\n\n Args:\n show (aioxmpp.PresenceShow, optional): the show state of the presence (Default value = None)" | 153 | false | javipalanca/spade | set_available | 32,863 | |
LDU_FT/mrname/haralyzer/get_total_size | LDU_FT | [
"<BEGIN>\n## `get_load_times`",
"Just a ``list`` of the load times of a certain asset type for each page",
" :param asset_type: ``str`` of the asset type to return load times for\n<END>",
"<BEGIN>\n## `get_stdev`",
"Returns the standard deviation for a set of a certain asset type.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the total size of a collection of entries.
:param entries: ``list`` of entries to calculate the total size of. | "Returns the total size of a collection of entries.\n\n :param entries: ``list`` of entries to calculate the total size of." | 72 | false | mrname/haralyzer | get_total_size | 32,864 | |
LDU_FT/ynop/audiomate/_create_subviews | LDU_FT | [
"<BEGIN>\n## `load`",
"Load and return the corpus from the given path.",
" Args:\n path (str): Path to the data set to load.",
" Returns:\n Corpus: The loaded corpus",
" Raises:\n IOError: When the data set is invalid, for example because required files ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_subviews API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_subviews API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load the subviews based on testing_list.txt and validation_list.txt | "Load the subviews based on testing_list.txt and validation_list.txt" | 619 | false | ynop/audiomate | _create_subviews | 32,865 | |
LDU_FT/adamrehn/ue4cli/getIncludeDirectories | LDU_FT | [
"<BEGIN>\n## `findArgs`",
"Extracts the list of arguments that start with any of the specified prefix values\n<END>",
"<BEGIN>\n## `stripArgs`",
"Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>",
"<BEGIN>\n## `capture`",
"Executes a child process and capture... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getIncludeDirectories 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 getIncludeDirectories 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 the list of include directories for this library, joined using the specified delimiter | "Returns the list of include directories for this library, joined using the specified delimiter" | 120 | false | adamrehn/ue4cli | getIncludeDirectories | 32,866 | |
LDU_FT/antiboredom/videogrep/demo_supercut | LDU_FT | [
"<BEGIN>\n## `parse_auto_sub`",
"Parses webvtt and returns timestamps for words and lines\n Tested on automatically generated subtitles from YouTube\n<END>",
"<BEGIN>\n## `framerate`",
"setter for the framerate attribute\n :param framerate:\n :return:\n<END>",
"<BEGIN>\n## `frames_to_tc`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the demo_supercut API.
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 demo_supercut API.
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... | Print out timespans to be cut followed by the line number in the srt. | "Print out timespans to be cut followed by the line number in the srt." | 37 | false | antiboredom/videogrep | demo_supercut | 32,867 | |
LDU_FT/Fantomas42/django-blog-zinnia/formatday | LDU_FT | [
"<BEGIN>\n## `safe_get_user_model`",
"Safe loading of the User model, customized or not.\n<END>",
"<BEGIN>\n## `get_title`",
"Return the title with word count and number of comments.\n<END>",
"<BEGIN>\n## `get_queryset`",
"Make special filtering by user's permissions.\n<END>",
"<BEGIN>\n## `get_changefo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formatday API.
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 formatday API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a day as a table cell with a link
if entries are published this day. | "Return a day as a table cell with a link\n if entries are published this day." | 262 | false | Fantomas42/django-blog-zinnia | formatday | 32,868 | |
LDU_FT/Demonware/jose/spec_compliant_decrypt | LDU_FT | [
"<BEGIN>\n## `deserialize_compact`",
"Deserialization of a compact representation of a :class:`~jwt.JWE`",
" :param jwt: The serialized JWT to deserialize.\n :rtype: :class:`~jose.JWT`.\n :raises: :class:`~jose.Error` if the JWT is malformed\n<END>",
"<BEGIN>\n## `encrypt`",
"Encrypts the given cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spec_compliant_decrypt 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 spec_compliant_decrypt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Decrypts a deserialized :class:`~jose.JWE`
:param jwe: An instance of :class:`~jose.JWE`
:param jwk: A `dict` representing the JWK required to decrypt the content
of the :class:`~jose.JWE`.
:param validate_claims: A `bool` indicating whether or not the `exp`, `iat`
... | "Decrypts a deserialized :class:`~jose.JWE`\n\n :param jwe: An instance of :class:`~jose.JWE`\n :param jwk: A `dict` representing the JWK required to decrypt the content\n of the :class:`~jose.JWE`.\n :param validate_claims: A `bool` indicating whether or not the `exp`, `iat`\n ... | 32 | false | Demonware/jose | spec_compliant_decrypt | 32,869 | |
LDU_FT/Josef-Friedrich/tmep/translate | LDU_FT | [
"<BEGIN>\n## `ex_literal`",
"An int, float, long, bool, string, or None literal with the given\n value.\n<END>",
"<BEGIN>\n## `ex_varassign`",
"Assign an expression into a single variable. The expression may\n either be an `ast.expr` object or a value to be used as a literal.\n<END>",
"<BEGIN>\n## `ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API.
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 translate API.
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... | Compile the template to a Python function. | "Compile the template to a Python function." | 72 | false | Josef-Friedrich/tmep | translate | 32,870 | |
LDU_FT/taskcluster/taskcluster-client.py/getWorker | LDU_FT | [
"<BEGIN>\n## `ping`",
"Ping Server",
" Respond without doing anything.\n This endpoint is used to check that the service is up.",
" This method is ``stable``\n<END>",
"<BEGIN>\n## `githubWebHookConsumer`",
"Consume GitHub WebHook",
" Capture a GitHub event and publish it via ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getWorker API.
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 getWorker API.
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 a worker-type
Get a worker from a worker-type.
This method gives output: ``v1/worker-response.json#``
This method is ``experimental`` | "Get a worker-type\n\n Get a worker from a worker-type.\n\n This method gives output: ``v1/worker-response.json#``\n\n This method is ``experimental``" | 997 | false | taskcluster/taskcluster-client.py | getWorker | 32,871 | |
LDU_FT/lpantano/seqcluster/_align | LDU_FT | [
"<BEGIN>\n## `add_exp`",
"Function to add the counts for each sample",
" :param gr: name of the sample\n :param exp: counts of sample **gr**",
" :returns: dict with key,values equally to name,counts.\n<END>",
"<BEGIN>\n## `MakeJoint`",
"Joint distribution of values from pmf1 and pmf2.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _align API.
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 _align API.
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 ... | https://medium.com/towards-data-science/pairwise-sequence-alignment-using-biopython-d1a9d0ba861f | "https://medium.com/towards-data-science/pairwise-sequence-alignment-using-biopython-d1a9d0ba861f" | 491 | false | lpantano/seqcluster | _align | 32,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.