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/inspirehep/inspire-schemas/add_doi | LDU_FT | [
"<BEGIN>\n## `filter_empty_parameters`",
"Decorator that is filtering empty parameters.",
" :param func: function that you want wrapping\n :type func: function\n<END>",
"<BEGIN>\n## `author_id_normalize_and_schema`",
"Detect and normalize an author UID schema.",
" Args:\n uid (string): a U... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_doi API.
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 add_doi API.
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... | Add doi.
:param doi: doi for the current document.
:type doi: string
:param source: source for the doi.
:type source: string
:param material: material for the doi.
:type material: string | "Add doi.\n\n :param doi: doi for the current document.\n :type doi: string\n\n :param source: source for the doi.\n :type source: string\n\n :param material: material for the doi.\n :type material: string" | 290 | false | inspirehep/inspire-schemas | add_doi | 14,773 | |
LDU_FT/Mxit/python-mxit/delete_gallery_folder | LDU_FT | [
"<BEGIN>\n## `send_message`",
"Send a message (from a Mxit app) to a list of Mxit users\n<END>",
"<BEGIN>\n## `send_user_to_user_message`",
"Send a message (from a Mxit user) to a list of Mxit users\n<END>",
"<BEGIN>\n## `get_user_id`",
"Retrieve the Mxit user's internal \"user ID\"\n No user authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_gallery_folder 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 delete_gallery_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Delete a folder in the Mxit user's gallery
User authentication required with the following scope: 'content/write' | "Delete a folder in the Mxit user's gallery\n User authentication required with the following scope: 'content/write'" | 58 | false | Mxit/python-mxit | delete_gallery_folder | 14,774 | |
LDU_FT/toumorokoshi/transmute-core/_extract_path_parameters_from_paths | LDU_FT | [
"<BEGIN>\n## `from_argspec`",
"retrieve a FunctionSignature object\n from the argspec and the annotations passed.\n<END>",
"<BEGIN>\n## `split_args`",
"given a dictionary of arguments, split them into\n args and kwargs",
" note: this destroys the arg_dict passed. if you need it,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_path_parameters_from_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_path_parameters_from_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | from a list of paths, return back a list of the
arguments present in those paths.
the arguments available in all of the paths must match: if not,
an exception will be raised. | "from a list of paths, return back a list of the\n arguments present in those paths.\n\n the arguments available in all of the paths must match: if not,\n an exception will be raised." | 100 | false | toumorokoshi/transmute-core | _extract_path_parameters_from_paths | 14,775 | |
LDU_FT/SciTools/biggus/mean | LDU_FT | [
"<BEGIN>\n## `_groups_of_size`",
"Collect data into fixed-length chunks or blocks.\n<END>",
"<BEGIN>\n## `slice_repr`",
"Turn things like `slice(None, 2, -1)` into `:2:-1`.\n<END>",
"<BEGIN>\n## `biggus_chunk`",
"A function that lazily evaluates a biggus.Chunk. This is useful for\n passing through ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mean API.
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 mean API.
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... | Request the mean of an Array over any number of axes.
.. note:: Currently limited to operating on a single axis.
:param axis: Axis or axes along which the operation is performed.
The default (axis=None) is to perform the operation
over all the dimensions of the input array.
... | "Request the mean of an Array over any number of axes.\n\n .. note:: Currently limited to operating on a single axis.\n\n :param axis: Axis or axes along which the operation is performed.\n The default (axis=None) is to perform the operation\n over all the dimensions of the input a... | 105 | false | SciTools/biggus | mean | 14,776 | |
LDU_FT/OCA/odoorpc/_check_logged_user | LDU_FT | [
"<BEGIN>\n## `commit`",
"Commit dirty records to the server. This method is automatically\n called when the `auto_commit` option is set to `True` (default).\n It can be useful to set the former option to `False` to get better\n performance by reducing the number of RPC requests generated.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_logged_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_logged_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Check if a user is logged. Otherwise, an error is raised. | "Check if a user is logged. Otherwise, an error is raised." | 264 | false | OCA/odoorpc | _check_logged_user | 14,777 | |
LDU_FT/roboogle/gtkmvc3/require | LDU_FT | [
"<BEGIN>\n## `__create_log_props`",
"Creates all the logical property.",
" The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.",
" This method resolves also wildcards in names, and perform... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the require API.
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 require API.
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... | Raise :exc:`AssertionError` if gtkmvc3 version is not compatible.
*request* a dotted string or iterable of string or integers representing the
minimum version you need. ::
require("1.0")
require(("1", "2", "2"))
require([1,99,0])
.. note::
For historical reasons this does not take ... | "Raise :exc:`AssertionError` if gtkmvc3 version is not compatible.\n\n *request* a dotted string or iterable of string or integers representing the\n minimum version you need. ::\n\n require(\"1.0\")\n require((\"1\", \"2\", \"2\"))\n require([1,99,0])\n\n .. note::\n\n For historical reasons... | 300 | false | roboogle/gtkmvc3 | require | 14,778 | |
LDU_FT/pyca/pynacl/generichash_blake2b_final | LDU_FT | [
"<BEGIN>\n## `ensure`",
"Return if a condition is true, otherwise raise a caller-configurable\n :py:class:`Exception`\n :param bool cond: the condition to be checked\n :param sequence args: the arguments to be passed to the exception's\n constructor\n The only accepted named p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generichash_blake2b_final 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 generichash_blake2b_final API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Finalize the blake2b hash state and return the digest.
:param state: a initialized Blake2bState object as returned from
:py:func:`.crypto_generichash_blake2b_init`
:type state: :py:class:`.Blake2State`
:return: the blake2 digest of the passed-in data stream
:rtype: bytes | "Finalize the blake2b hash state and return the digest.\n\n :param state: a initialized Blake2bState object as returned from\n :py:func:`.crypto_generichash_blake2b_init`\n :type state: :py:class:`.Blake2State`\n :return: the blake2 digest of the passed-in data stream\n :rtype: bytes" | 266 | false | pyca/pynacl | generichash_blake2b_final | 14,779 | |
LDU_FT/MacHu-GWU/pymongo_mate-project/index_row_dict_from_csv | LDU_FT | [
"<BEGIN>\n## `read_csv_arg_preprocess`",
"Automatically decide if we need to use iterator mode to read a csv file.",
" :param abspath: csv file absolute path.\n :param memory_usage: max memory will be used for pandas.read_csv().\n<END>",
"<BEGIN>\n## `smart_insert`",
"An optimized Insert strategy.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index_row_dict_from_csv 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 index_row_dict_from_csv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Read the csv into a dictionary. The key is it's index, the value
is the dictionary form of the row.
:param path: csv file path.
:param index_col: None or str, the column that used as index.
:param iterator:
:param chunksize:
:param skiprows:
:param nrows:
:param use_ordered_dict:
:... | "Read the csv into a dictionary. The key is it's index, the value\n is the dictionary form of the row.\n\n :param path: csv file path.\n :param index_col: None or str, the column that used as index.\n :param iterator:\n :param chunksize:\n :param skiprows:\n :param nrows:\n :param use_ordered_di... | 188 | false | MacHu-GWU/pymongo_mate-project | index_row_dict_from_csv | 14,780 | |
LDU_FT/Crypto-toolbox/bitex/restart | LDU_FT | [
"<BEGIN>\n## `_restart_thread`",
"Restarts subscription threads if their connection drops.\n :return:\n<END>",
"<BEGIN>\n## `_subscription_thread`",
"Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>",
"<BEGIN>\n## `start`",
"Starts threads.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restart API.
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 restart API.
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... | Restarts client. If soft is True, the client attempts to re-subscribe
to all channels which it was previously subscribed to.
:return: | "Restarts client. If soft is True, the client attempts to re-subscribe\n to all channels which it was previously subscribed to.\n :return:" | 79 | false | Crypto-toolbox/bitex | restart | 14,781 | |
LDU_FT/xenadevel/PyXenaManager/get_attribute | LDU_FT | [
"<BEGIN>\n## `sendQuery`",
"Send command, wait for response (single or multi lines), test for errors and return the returned code.",
" :param cmd: command to send\n :param multilines: True - multiline response, False - single line response.\n :return: command return value.\n<END>",
"<BEGI... | 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 single object attribute.
:param obj: requested object.
:param attribute: requested attribute to query.
:returns: returned value.
:rtype: str | "Returns single object attribute.\n\n :param obj: requested object.\n :param attribute: requested attribute to query.\n :returns: returned value.\n :rtype: str" | 140 | false | xenadevel/PyXenaManager | get_attribute | 14,782 | |
LDU_FT/andy-z/ged4py/dialect | LDU_FT | [
"<BEGIN>\n## `guess_codec`",
"Look at file contents and guess its correct encoding.",
" File must be open in binary mode and positioned at offset 0. If BOM\n record is present then it is assumed to be UTF-8 or UTF-16 encoded\n file. GEDCOM header is searched for CHAR record and encoding name\n is ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dialect API.
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 dialect API.
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... | File dialect as one of model.DIALECT_* constants | "File dialect as one of model.DIALECT_* constants" | 101 | false | andy-z/ged4py | dialect | 14,783 | |
LDU_FT/edeposit/edeposit.amqp.storage/_put_into_indexes | LDU_FT | [
"<BEGIN>\n## `render_trees`",
"Render list of `trees` to HTML.",
" Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.",
" Returns:\n str: HTML... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _put_into_indexes API.
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 _put_into_indexes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Put publication into all indexes.
Attr:
obj (obj): Indexable object.
Raises:
UnindexableObject: When there is no index (property) which can be
used to index `obj` in database. | "Put publication into all indexes.\n\n Attr:\n obj (obj): Indexable object.\n\n Raises:\n UnindexableObject: When there is no index (property) which can be\n used to index `obj` in database." | 140 | false | edeposit/edeposit.amqp.storage | _put_into_indexes | 14,784 | |
LDU_FT/MacHu-GWU/sqlalchemy_mate-project/from_env | LDU_FT | [
"<BEGIN>\n## `count_row`",
"Return number of rows in a table.",
" Example::",
" >>> count_row(engine, table_user)\n 3",
" **中文文档**",
" 返回一个表中的行数。\n<END>",
"<BEGIN>\n## `keys`",
"return list of all declared columns.",
" :rtype: List[str]\n<END>",
"<BEGIN>\n## `glance`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_env API.
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 from_env API.
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... | Load database credential from env variable.
- host: ENV.{PREFIX}_HOST
- port: ENV.{PREFIX}_PORT
- database: ENV.{PREFIX}_DATABASE
- username: ENV.{PREFIX}_USERNAME
- password: ENV.{PREFIX}_PASSWORD
:param prefix: str
:param kms_decrypt: bool
:param aws_p... | "Load database credential from env variable.\n\n - host: ENV.{PREFIX}_HOST\n - port: ENV.{PREFIX}_PORT\n - database: ENV.{PREFIX}_DATABASE\n - username: ENV.{PREFIX}_USERNAME\n - password: ENV.{PREFIX}_PASSWORD\n\n :param prefix: str\n :param kms_decrypt: bool\n :... | 92 | false | MacHu-GWU/sqlalchemy_mate-project | from_env | 14,785 | |
LDU_FT/bionikspoon/pureyaml/_ge_from_le | LDU_FT | [
"<BEGIN>\n## `_gt_from_lt`",
"Return a > b. Computed by @total_ordering from (not a < b) and (a != b).\n<END>",
"<BEGIN>\n## `_le_from_lt`",
"Return a <= b. Computed by @total_ordering from (a < b) or (a == b).\n<END>",
"<BEGIN>\n## `_ge_from_lt`",
"Return a >= b. Computed by @total_ordering from (not ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ge_from_le API.
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 _ge_from_le API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a >= b. Computed by @total_ordering from (not a <= b) or (a == b). | "Return a >= b. Computed by @total_ordering from (not a <= b) or (a == b)." | 70 | false | bionikspoon/pureyaml | _ge_from_le | 14,786 | |
LDU_FT/ishepard/pydriller/reset | LDU_FT | [
"<BEGIN>\n## `get_head`",
"Get the head commit.",
" :return: Commit of the head commit\n<END>",
"<BEGIN>\n## `get_list_commits`",
"Return a generator of commits of all the commits in the repo.",
" :return: Generator[Commit], the generator of all the commits in the\n repo\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API.
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 reset API.
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... | Reset the state of the repo, checking out the main branch and
discarding
local changes (-f option). | "Reset the state of the repo, checking out the main branch and\n discarding\n local changes (-f option)." | 62 | false | ishepard/pydriller | reset | 14,787 | |
LDU_FT/ANCIR/granoloader/make_client | LDU_FT | [
"<BEGIN>\n## `get_value`",
"Returns the value or a dict with a 'value' entry plus extra fields.\n<END>",
"<BEGIN>\n## `get_source`",
"Sources can be specified as plain strings or as a reference to a column.\n<END>",
"<BEGIN>\n## `load`",
"Load a single row of data and convert it into entities and\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_client API.
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 make_client API.
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... | Instantiate the grano client based on environment variables or
command line settings. | "Instantiate the grano client based on environment variables or\n command line settings." | 12 | false | ANCIR/granoloader | make_client | 14,788 | |
LDU_FT/AltSchool/dynamic-rest/insert | LDU_FT | [
"<BEGIN>\n## `merge_link_object`",
"Add a 'links' attribute to the data that maps field names to URLs.",
" NOTE: This is the format that Ember Data supports, but alternative\n implementations are possible to support other formats.\n<END>",
"<BEGIN>\n## `register_post_processor`",
"Register a pos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
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 insert API.
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 ... | Add a list of nodes into the tree.
The list will be converted into a TreeMap (chain) and then
merged with the current TreeMap.
For example, this method would insert `['a','b','c']` as
`{'a':{'b':{'c':{}}}}`.
Arguments:
parts: List of nodes representing a chain.
... | "Add a list of nodes into the tree.\n\n The list will be converted into a TreeMap (chain) and then\n merged with the current TreeMap.\n\n For example, this method would insert `['a','b','c']` as\n `{'a':{'b':{'c':{}}}}`.\n\n Arguments:\n parts: List of nodes representing a ... | 213 | false | AltSchool/dynamic-rest | insert | 14,789 | |
LDU_FT/restran/mountains/model_to_select_list | 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 model_to_select_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_select_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.
... | 只选择 id 和 name,用来做列表选择
:param model_class:
:param filter_dict:
:param q_filter:
:return: | "只选择 id 和 name,用来做列表选择\n :param model_class:\n :param filter_dict:\n :param q_filter:\n :return:" | 81 | false | restran/mountains | model_to_select_list | 14,790 | |
LDU_FT/RedisJSON/rejson-py/jsonnumincrby | LDU_FT | [
"<BEGIN>\n## `bulk_of_jsons`",
"Replace serialized JSON values with objects in a bulk array response (list)\n<END>",
"<BEGIN>\n## `setEncoder`",
"Sets the client's encoder\n ``encoder`` should be an instance of a ``json.JSONEncoder`` class\n<END>",
"<BEGIN>\n## `setDecoder`",
"Sets the client's dec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jsonnumincrby API.
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 jsonnumincrby API.
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... | Increments the numeric (integer or floating point) JSON value under
``path`` at key ``name`` by the provided ``number`` | "Increments the numeric (integer or floating point) JSON value under\n ``path`` at key ``name`` by the provided ``number``" | 43 | false | RedisJSON/rejson-py | jsonnumincrby | 14,791 | |
LDU_FT/bcdev/jpy/_write_jpy_config | LDU_FT | [
"<BEGIN>\n## `_write_jpy_config`",
"Write out a well-formed jpyconfig.properties file for easier Java\n integration in a given location.\n<END>",
"<BEGIN>\n## `find_jdk_home_dir`",
"Try to detect the JDK home directory from Maven, if available, or use\n dedicated environment variables.\n :return: pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_jpy_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_jpy_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... | Write out a well-formed jpyconfig.properties file for easier Java
integration in a given location. | "Write out a well-formed jpyconfig.properties file for easier Java\n integration in a given location." | 15 | false | bcdev/jpy | _write_jpy_config | 14,792 | |
LDU_FT/django-extensions/django-extensions/_queue_models | LDU_FT | [
"<BEGIN>\n## `_slug_strip`",
"Clean up a slug by removing slug separator characters that occur at\n the beginning or end of a slug.",
" If an alternate separator is used, it will also replace any instances\n of the default '-' separator with the new separator.\n<END>",
"<BEGIN>\n## `to_py... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _queue_models API.
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 _queue_models API.
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... | Work an an appropriate ordering for the models.
This isn't essential, but makes the script look nicer because
more instances can be defined on their first try. | "Work an an appropriate ordering for the models.\n This isn't essential, but makes the script look nicer because\n more instances can be defined on their first try." | 191 | false | django-extensions/django-extensions | _queue_models | 14,793 | |
LDU_FT/Scille/autobahn-sync/call | LDU_FT | [
"<BEGIN>\n## `leave`",
"Actively close this WAMP session.",
" Replace :meth:`autobahn.wamp.interface.IApplicationSession.leave`\n<END>",
"<BEGIN>\n## `call`",
"Call a remote procedure.",
" Replace :meth:`autobahn.wamp.interface.IApplicationSession.call`\n<END>",
"<BEGIN>\n## `register`",
... | 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... | Call a remote procedure.
Replace :meth:`autobahn.wamp.interface.IApplicationSession.call` | "Call a remote procedure.\n\n Replace :meth:`autobahn.wamp.interface.IApplicationSession.call`" | 39 | false | Scille/autobahn-sync | call | 14,794 | |
LDU_FT/MrYsLab/pymata-aio/check_who_am_i | LDU_FT | [
"<BEGIN>\n## `start`",
"This method opens an IP connection on the IP device",
" :return: None\n<END>",
"<BEGIN>\n## `write`",
"This method writes sends data to the IP device\n :param data:",
" :return: None\n<END>",
"<BEGIN>\n## `loop`",
"Function that gets called again as soon as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_who_am_i API.
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 check_who_am_i API.
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 method checks verifies the device ID.
@return: True if valid, False if not | "This method checks verifies the device ID.\n @return: True if valid, False if not" | 561 | false | MrYsLab/pymata-aio | check_who_am_i | 14,795 | |
LDU_FT/scour-project/scour/removeDefaultAttributeValues | LDU_FT | [
"<BEGIN>\n## `lex`",
"Yield (token_type, str_data) tokens.",
" The last token will be (EOF, None) where EOF is the singleton object\n defined in this module.\n<END>",
"<BEGIN>\n## `parse`",
"Parse a string of SVG transform=\"\" data.\n<END>",
"<BEGIN>\n## `findReferencedElements`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeDefaultAttributeValues API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeDefaultAttributeValues API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | u"""'tainted' keeps a set of attributes defined in parent nodes.
For such attributes, we don't delete attributes with default values. | "u\"\"\"'tainted' keeps a set of attributes defined in parent nodes.\n\n For such attributes, we don't delete attributes with default values." | 103 | false | scour-project/scour | removeDefaultAttributeValues | 14,796 | |
LDU_FT/aaren/notedown/create_code_cell | LDU_FT | [
"<BEGIN>\n## `ftdetect`",
"Determine if filename is markdown or notebook,\n based on the file extension.\n<END>",
"<BEGIN>\n## `get_caption_comments`",
"Retrieve an id and a caption from a code cell.",
" If the code cell content begins with a commented\n block that looks like",
" ## fig:id\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_code_cell API.
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_code_cell API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Create a notebook code cell from a block. | "Create a notebook code cell from a block." | 39 | false | aaren/notedown | create_code_cell | 14,797 | |
LDU_FT/brandonxiang/geojson-python-utils/merge_featurecollection | LDU_FT | [
"<BEGIN>\n## `linestrings_intersect`",
"To valid whether linestrings from geojson are intersected with each other.\n reference: http://www.kevlindev.com/gui/math/intersection/Intersection.js",
" Keyword arguments:\n line1 -- first line geojson object\n line2 -- second line geojson object",
" if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_featurecollection 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 merge_featurecollection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | merge features into one featurecollection
Keyword arguments:
jsons -- jsons object list
return geojson featurecollection | "merge features into one featurecollection\n\n Keyword arguments:\n jsons -- jsons object list \n\n return geojson featurecollection" | 70 | false | brandonxiang/geojson-python-utils | merge_featurecollection | 14,798 | |
LDU_FT/JukeboxPipeline/jukeboxmaya/get_status | LDU_FT | [
"<BEGIN>\n## `main_func`",
"Main funcion when executing this module as script",
" :param args: commandline arguments\n :type args: list\n :returns: None\n :rtype: None\n :raises: None\n<END>",
"<BEGIN>\n## `setup_launch_parser`",
"Setup the given parser for the launch command",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the status of the given reftrack node
See: :data:`Reftrack.LOADED`, :data:`Reftrack.UNLOADED`, :data:`Reftrack.IMPORTED`.
:param refobj: the reftrack node to query
:type refobj: str
:returns: the status of the given reftrack node
:rtype: str
:raises: None | "Return the status of the given reftrack node\n\n See: :data:`Reftrack.LOADED`, :data:`Reftrack.UNLOADED`, :data:`Reftrack.IMPORTED`.\n\n :param refobj: the reftrack node to query\n :type refobj: str\n :returns: the status of the given reftrack node\n :rtype: str\n :raises: Non... | 241 | false | JukeboxPipeline/jukeboxmaya | get_status | 14,799 | |
LDU_FT/fp12/achallonge/get_match | LDU_FT | [
"<BEGIN>\n## `report_winner`",
"report scores and give a winner",
" |methcoro|",
" Args:\n winner: :class:Participant instance\n scores_csv: Comma separated set/game scores with player 1 score first (e.g. \"1-3,3-0,3-2\")",
" Raises:\n ValueError: scores... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_match API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | get a single match by id
|methcoro|
Args:
m_id: match id
force_update (default=False): True to force an update to the Challonge API
Returns:
Match
Raises:
APIException | "get a single match by id\n\n |methcoro|\n\n Args:\n m_id: match id\n force_update (default=False): True to force an update to the Challonge API\n\n Returns:\n Match\n\n Raises:\n APIException" | 173 | false | fp12/achallonge | get_match | 14,800 | |
LDU_FT/projectatomic/atomic-reactor/make_remote_image_result | LDU_FT | [
"<BEGIN>\n## `_build`",
"build image from provided build_args",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `_load_results`",
"load results from recent build",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `commit_buildroot`",
"create image from buildroot",
" :return:\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_remote_image_result 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 make_remote_image_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Instantiate BuildResult for image not built locally. | "Instantiate BuildResult for image not built locally." | 440 | false | projectatomic/atomic-reactor | make_remote_image_result | 14,801 | |
LDU_FT/inveniosoftware/invenio-github/index | LDU_FT | [
"<BEGIN>\n## `get`",
"Return a repository.",
" :param integer user_id: User identifier.\n :param integer github_id: GitHub repository identifier.\n :param str name: GitHub repository full name.\n :returns: The repository object.\n :raises: :py:exc:`~sqlalchemy.orm.exc.NoResult... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Display list of the user's repositories. | "Display list of the user's repositories." | 42 | false | inveniosoftware/invenio-github | index | 14,802 | |
LDU_FT/marcharper/python-ternary/get_conversion | LDU_FT | [
"<BEGIN>\n## `normalize`",
"Normalizes input list.",
" Parameters\n ----------\n l: list\n The list to be normalized",
" Returns\n -------\n The normalized list or numpy array",
" Raises\n ------\n ValueError, if the list sums to zero\n<END>",
"<BEGIN>\n## `simplex_iterat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_conversion API.
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_conversion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the conversion equations for each axis.
limits: dict of min and max values for the axes in the order blr. | "Get the conversion equations for each axis.\n\n limits: dict of min and max values for the axes in the order blr." | 179 | false | marcharper/python-ternary | get_conversion | 14,803 | |
LDU_FT/xtream1101/cutil/chunks_of | LDU_FT | [
"<BEGIN>\n## `cprint`",
"Clear line, then reprint on same line\n :param cstr: string to print on current line\n<END>",
"<BEGIN>\n## `_check_values`",
"Check if values need to be converted before they get mogrify'd\n<END>",
"<BEGIN>\n## `insert`",
"Create a bulk insert statement which is much faster... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunks_of API.
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 chunks_of API.
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... | Yields the list with a max size of max_chunk_size | "Yields the list with a max size of max_chunk_size" | 45 | false | xtream1101/cutil | chunks_of | 14,804 | |
LDU_FT/xflows/rdm/other_Orange_tables | LDU_FT | [
"<BEGIN>\n## `cv_split`",
"Returns a list of pairs (train_context, test_context), one for each cross-validation fold.",
" The split is stratified.",
" :param context: DBContext to be split\n :param folds: number of folds\n :param random_seed: random seed to be used",
" :return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the other_Orange_tables 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 other_Orange_tables 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... | Returns the related tables as Orange example tables.
:rtype: list | "Returns the related tables as Orange example tables.\n\n :rtype: list" | 102 | false | xflows/rdm | other_Orange_tables | 14,805 | |
LDU_FT/JamesRamm/longclaw/shipping_cost | LDU_FT | [
"<BEGIN>\n## `shipping_cost`",
"Returns the shipping cost for a given country\n If the shipping cost for the given country has not been set, it will\n fallback to the default shipping cost if it has been enabled in the app\n settings\n<END>",
"<BEGIN>\n## `shipping_options`",
"Get the shipping option... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shipping_cost API.
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 shipping_cost API.
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 the shipping cost for a given country
If the shipping cost for the given country has not been set, it will
fallback to the default shipping cost if it has been enabled in the app
settings | "Returns the shipping cost for a given country\n If the shipping cost for the given country has not been set, it will\n fallback to the default shipping cost if it has been enabled in the app\n settings" | 49 | false | JamesRamm/longclaw | shipping_cost | 14,806 | |
LDU_FT/jkwill87/mapi/_request_json | 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 _request_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Queries a url for json data
Note: Requests are cached using requests_cached for a week, this is done
transparently by using the package's monkey patching | "Queries a url for json data\n\n Note: Requests are cached using requests_cached for a week, this is done\n transparently by using the package's monkey patching" | 40 | false | jkwill87/mapi | _request_json | 14,807 | |
LDU_FT/HDI-Project/MLBlocks/load_primitive | LDU_FT | [
"<BEGIN>\n## `_extract_params`",
"Extract init, fit and produce params from kwargs.",
" The `init_params`, `fit_params` and `produce_params` are extracted\n from the passed `kwargs` taking the metadata hyperparameters as a\n reference.",
" During this extraction, make sure that all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_primitive API.
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 load_primitive API.
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... | Locate and load the JSON annotation of the given primitive.
All the paths found in PRIMTIVE_PATHS will be scanned to find a JSON file
with the given name, and as soon as a JSON with the given name is found it
is returned.
Args:
name (str): name of the primitive to look for. The name should
... | "Locate and load the JSON annotation of the given primitive.\n\n All the paths found in PRIMTIVE_PATHS will be scanned to find a JSON file\n with the given name, and as soon as a JSON with the given name is found it\n is returned.\n\n Args:\n name (str): name of the primitive to look for. The name sh... | 111 | false | HDI-Project/MLBlocks | load_primitive | 14,808 | |
LDU_FT/markovmodel/msmtools/expectation_sensitivity | LDU_FT | [
"<BEGIN>\n## `flux_matrix`",
"r\"\"\"Compute the TPT flux network for the reaction A-->B.",
" Parameters\n ----------\n T : (M, M) ndarray\n transition matrix\n pi : (M,) ndarray\n Stationary distribution corresponding to T\n qminus : (M,) ndarray\n Backward comittor\n qpl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expectation_sensitivity 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 expectation_sensitivity API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | r"""Sensitivity of expectation value of observable A=(a_i).
Parameters
----------
T : (M, M) ndarray
Transition matrix
a : (M,) ndarray
Observable, a[i] is the value of the observable at state i.
Returns
-------
S : (M, M) ndarray
Sensitivity matrix of the expectati... | "r\"\"\"Sensitivity of expectation value of observable A=(a_i).\n\n Parameters\n ----------\n T : (M, M) ndarray\n Transition matrix\n a : (M,) ndarray\n Observable, a[i] is the value of the observable at state i.\n\n Returns\n -------\n S : (M, M) ndarray\n Sensitivity matrix ... | 1,330 | true | markovmodel/msmtools | expectation_sensitivity | 14,809 | |
LDU_FT/asmodehn/filefinder2/strip_encoding_cookie | LDU_FT | [
"<BEGIN>\n## `strip_encoding_cookie`",
"Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines.\n<END>",
"<BEGIN>\n## `source_to_unicode`",
"Converts a bytes string with python source code to unicode.\n Unicode strings are passed through uncha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_encoding_cookie 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 strip_encoding_cookie API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generator to pull lines from a text-mode file, skipping the encoding
cookie if it is found in the first two lines. | "Generator to pull lines from a text-mode file, skipping the encoding\n cookie if it is found in the first two lines." | 64 | false | asmodehn/filefinder2 | strip_encoding_cookie | 14,810 | |
LDU_FT/makinacorpus/django-tracking-fields/track | LDU_FT | [
"<BEGIN>\n## `changelist_view`",
"Get object currently tracked and add a button to get back to it\n<END>",
"<BEGIN>\n## `_add_get_tracking_url`",
"Add a method to get the tracking url of an object.\n<END>",
"<BEGIN>\n## `track`",
"Decorator used to track changes on Model's fields.",
" :Example:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track API.
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 track API.
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... | Decorator used to track changes on Model's fields.
:Example:
>>> @track('name')
... class Human(models.Model):
... name = models.CharField(max_length=30) | "Decorator used to track changes on Model's fields.\n\n :Example:\n >>> @track('name')\n ... class Human(models.Model):\n ... name = models.CharField(max_length=30)" | 33 | false | makinacorpus/django-tracking-fields | track | 14,811 | |
LDU_FT/maljovec/topopy/save | LDU_FT | [
"<BEGIN>\n## `build`",
"Assigns data to this object and builds the Morse-Smale\n Complex\n @ In, X, an m-by-n array of values specifying m\n n-dimensional samples\n @ In, Y, a m vector of values specifying the output\n responses corresponding to the m samples... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Saves a constructed Morse-Smale Complex in json file
@ In, filename, a filename for storing the hierarchical
merging of features and the base level partitions of the
data | "Saves a constructed Morse-Smale Complex in json file\n @ In, filename, a filename for storing the hierarchical\n merging of features and the base level partitions of the\n data" | 57 | false | maljovec/topopy | save | 14,812 | |
LDU_FT/christophercrouzet/gorilla/_update | LDU_FT | [
"<BEGIN>\n## `apply`",
"Apply a patch.",
" The patch's :attr:`~Patch.obj` attribute is injected into the patch's\n :attr:`~Patch.destination` under the patch's :attr:`~Patch.name`.",
" This is a wrapper around calling\n ``setattr(patch.destination, patch.name, patch.obj)``.",
" Parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Update some attributes.
If a 'settings' attribute is passed as a dict, then it updates the
content of the settings, if any, instead of completely overwriting it. | "Update some attributes.\n\n If a 'settings' attribute is passed as a dict, then it updates the\n content of the settings, if any, instead of completely overwriting it." | 67 | false | christophercrouzet/gorilla | _update | 14,813 | |
LDU_FT/oasis-open/cti-pattern-validator/__do_parse | LDU_FT | [
"<BEGIN>\n## `run_validator`",
"Validates a pattern against the STIX Pattern grammar. Error messages are\n returned in a list. The test passed if the returned list is empty.\n<END>",
"<BEGIN>\n## `validate`",
"Wrapper for run_validator function that returns True if the user_input\n contains a valid ST... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __do_parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __do_parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Parses the given pattern and returns the antlr parse tree.
:param pattern_str: The STIX pattern
:return: The parse tree
:raises ParseException: If there is a parse error | "Parses the given pattern and returns the antlr parse tree.\n\n :param pattern_str: The STIX pattern\n :return: The parse tree\n :raises ParseException: If there is a parse error" | 17 | false | oasis-open/cti-pattern-validator | __do_parse | 14,814 | |
LDU_FT/pavlin-policar/openTSNE/check_perplexities | LDU_FT | [
"<BEGIN>\n## `has_c_library`",
"Check whether a C/C++ library is available on the system to the compiler.",
" Parameters\n ----------\n library: str\n The library we want to check for e.g. if we are interested in FFTW3, we\n want to check for `fftw3.h`, so this parameter will be `fftw3`.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_perplexities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_perplexities 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... | Check and correct/truncate perplexities.
If a perplexity is too large, it is corrected to the largest allowed
value. It is then inserted into the list of perplexities only if that
value doesn't already exist in the list. | "Check and correct/truncate perplexities.\n\n If a perplexity is too large, it is corrected to the largest allowed\n value. It is then inserted into the list of perplexities only if that\n value doesn't already exist in the list." | 181 | false | pavlin-policar/openTSNE | check_perplexities | 14,815 | |
LDU_FT/alexras/pylsdj/project_list | LDU_FT | [
"<BEGIN>\n## `import_from_file`",
"Import this instrument's settings from the given file. Will\n automatically add the instrument's synth and table to the song's\n synths and tables if needed.",
" Note that this may invalidate existing instrument accessor objects.",
" :param index:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | The list of :py:class:`pylsdj.Project` s that the
.sav file contains | "The list of :py:class:`pylsdj.Project` s that the\n .sav file contains" | 63 | false | alexras/pylsdj | project_list | 14,816 | |
LDU_FT/pudo/jsongraph/generate | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Resolution base for JSON schema. Also used as the default\n graph ID for RDF.\n<END>",
"<BEGIN>\n## `resolver`",
"Resolver for JSON Schema references. This can be based around a\n file or HTTP-based resolution base URI.\n<END>",
"<BEGIN>\n## `store`",
"Backend stor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API.
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 generate API.
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... | Add provenance info to the context graph. | "Add provenance info to the context graph." | 52 | false | pudo/jsongraph | generate | 14,817 | |
LDU_FT/python-thumbnails/python-thumbnails/get_thumbnail | LDU_FT | [
"<BEGIN>\n## `text_filter`",
"A text-filter helper, used in ``markdown_thumbnails``-filter and ``html_thumbnails``-filter.\n It can be used to build custom thumbnail text-filters.",
" :param regex_base: A string with a regex that contains ``%(captions)s`` and ``%(image)s`` where\n th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbnail API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_thumbnail API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Wrapper for .create() with cleanup.
:param original:
:param size:
:param crop:
:param options:
:return: An image object | "Wrapper for .create() with cleanup.\n\n :param original:\n :param size:\n :param crop:\n :param options:\n :return: An image object" | 41 | false | python-thumbnails/python-thumbnails | get_thumbnail | 14,818 | |
LDU_FT/peopledoc/workalendar/get_good_friday | LDU_FT | [
"<BEGIN>\n## `get_variable_days`",
"Add Late Summer holiday (First Monday of September)\n<END>",
"<BEGIN>\n## `iso_register`",
"Registers Calendar class as country or region in IsoRegistry.",
" Registered country must set class variables ``iso`` using this decorator.",
" >>> from workalendar.core im... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_good_friday API.
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_good_friday API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the date of the last friday before easter | "Return the date of the last friday before easter" | 106 | false | peopledoc/workalendar | get_good_friday | 14,819 | |
LDU_FT/b3j0f/conf/__i | LDU_FT | [
"<BEGIN>\n## `pathresource`",
"Returns specific resource.",
" :param str rscpath: resource path.\n :param Logger logger: logger to use.\n :param bool error: raise internal error if True (False by default).\n :param bool force: create the resource even if rscpath does not exist.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __i API.
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 __i API.
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... | Process input other with input func.
:param ModelElement(s) other: other ModelElement(s) to process.
:param func: function to apply on a ModelElement.
:return: self.
:raise: TypeError if other is not a ModelElement(s). | "Process input other with input func.\n\n :param ModelElement(s) other: other ModelElement(s) to process.\n :param func: function to apply on a ModelElement.\n :return: self.\n :raise: TypeError if other is not a ModelElement(s)." | 151 | false | b3j0f/conf | __i | 14,820 | |
LDU_FT/calocan/rescape-python-helpers/merge_deep | LDU_FT | [
"<BEGIN>\n## `prop`",
"Implementation of prop (get_item) that also supports object attributes\n :param key:\n :param dct_or_obj:\n :return:\n<END>",
"<BEGIN>\n## `all_pass_dict`",
"Returns true if all dct values pass f\n :param f: binary lambda predicate\n :param dct:\n :return: True or fals... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_deep API.
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 merge_deep API.
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... | Deep merge by this spec below
:param dct1:
:param dct2:
:param merger Optional merger
:return: | "Deep merge by this spec below\n :param dct1:\n :param dct2:\n :param merger Optional merger\n :return:" | 54 | false | calocan/rescape-python-helpers | merge_deep | 14,821 | |
LDU_FT/openai/universe/_merge_observation | LDU_FT | [
"<BEGIN>\n## `send_KeyEvent`",
"For most ordinary keys, the \"keysym\" is the same as the\n corresponding ASCII value. Other common keys are shown in the\n KEY_ constants.\n<END>",
"<BEGIN>\n## `send_PointerEvent`",
"Indicates either pointer movement or a pointer button press or\n rel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _merge_observation 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 _merge_observation 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... | Old visual observation is discarded, because it is outdated frame.
Text observations are merged, because they are messages sent from the rewarder. | "Old visual observation is discarded, because it is outdated frame.\n Text observations are merged, because they are messages sent from the rewarder." | 126 | false | openai/universe | _merge_observation | 14,822 | |
LDU_FT/glue-viz/echo/_find_combo_text | LDU_FT | [
"<BEGIN>\n## `add_callback`",
"Attach a callback function to a property in an instance",
" Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_combo_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 _find_combo_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 ... | Returns the index in a combo box where text == value
Raises a ValueError if data is not found | "Returns the index in a combo box where text == value\n\n Raises a ValueError if data is not found" | 88 | false | glue-viz/echo | _find_combo_text | 14,823 | |
LDU_FT/ihmeuw/vivarium/setup | LDU_FT | [
"<BEGIN>\n## `setup`",
"Performs this component's simulation setup.",
" The ``setup`` method is automatically called by the simulation\n framework. The framework passes in a ``builder`` object which\n provides access to a variety of framework subsystems and metadata.",
" Parameters... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
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 setup API.
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... | Performs this component's simulation setup and return sub-components.
Parameters
----------
builder : `engine.Builder`
Interface to several simulation tools including access to common random
number generation, in particular.
Returns
-------
itera... | "Performs this component's simulation setup and return sub-components.\n\n Parameters\n ----------\n builder : `engine.Builder`\n Interface to several simulation tools including access to common random\n number generation, in particular.\n\n Returns\n -------\n ... | 370 | false | ihmeuw/vivarium | setup | 14,824 | |
LDU_FT/graphql-python/graphql-core-next/read_digits | LDU_FT | [
"<BEGIN>\n## `uni_char_code`",
"Convert unicode characters to integers.",
" Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.",
" Returns a negative number on er... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_digits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_digits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the new position in the source after reading digits. | "Return the new position in the source after reading digits." | 470 | false | graphql-python/graphql-core-next | read_digits | 14,825 | |
LDU_FT/cthoyt/onto2nx/stats | LDU_FT | [
"<BEGIN>\n## `parse_owl_rdf`",
"Parses an OWL resource that's encoded in OWL/RDF into a NetworkX directional graph",
" :param str iri: The location of the OWL resource to be parsed by Ontospy\n :type iri: str\n :rtype: network.DiGraph\n<END>",
"<BEGIN>\n## `get_or_create_home_repo`",
"Check to make... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | shotcut to pull out useful info for interactive use | "shotcut to pull out useful info for interactive use" | 102 | false | cthoyt/onto2nx | stats | 14,826 | |
LDU_FT/Erotemic/utool/dict_itemstr_list | LDU_FT | [
"<BEGIN>\n## `comparison`",
"r\"\"\"\n CommandLine:\n python -m utool.experimental.dynamic_connectivity comparison --profile\n python -m utool.experimental.dynamic_connectivity comparison\n<END>",
"<BEGIN>\n## `join`",
"r\"\"\"\n Args:\n other (?):",
" CommandLine:\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dict_itemstr_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 dict_itemstr_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... | r"""
Returns:
list: a list of human-readable dictionary items
Args:
explicit : if True uses dict(key=val,...) format instead of {key:val,...} | "r\"\"\"\n Returns:\n list: a list of human-readable dictionary items\n\n Args:\n explicit : if True uses dict(key=val,...) format instead of {key:val,...}" | 3,376 | true | Erotemic/utool | dict_itemstr_list | 14,827 | |
LDU_FT/marcinmiklitz/pywindow/save_analysis | LDU_FT | [
"<BEGIN>\n## `unique`",
"Return a list of unique items (similar to set functionality).",
" Parameters\n ----------\n input_list : list\n A list containg some items that can occur more than once.",
" Returns\n -------\n list\n A list with only unique occurances of an item.\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_analysis API.
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 save_analysis API.
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... | Dump the content of :attr:`analysis_output` as JSON dictionary.
Parameters
----------
filepath : :class:`str`
The filepath for the JSON file.
Returns
-------
None : :class:`NoneType` | "Dump the content of :attr:`analysis_output` as JSON dictionary.\n\n Parameters\n ----------\n filepath : :class:`str`\n The filepath for the JSON file.\n\n Returns\n -------\n None : :class:`NoneType`" | 303 | false | marcinmiklitz/pywindow | save_analysis | 14,828 | |
LDU_FT/productml/blurr/validate_schema_spec | LDU_FT | [
"<BEGIN>\n## `run_evaluate`",
"Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>",
"<BEGIN>\n## `set`",
"Sets the value of a key to a supplied value\n<END>",
"<BEGIN>\n## `increment`",
"Increments the value set against a key. If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_schema_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_schema_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Contains the validation routines that are to be executed as part of initialization by subclasses.
When this method is being extended, the first line should always be: ```super().validate_schema_spec()``` | "Contains the validation routines that are to be executed as part of initialization by subclasses.\n When this method is being extended, the first line should always be: ```super().validate_schema_spec()```" | 119 | false | productml/blurr | validate_schema_spec | 14,829 | |
LDU_FT/rodynnz/xccdf/get_html_content | LDU_FT | [
"<BEGIN>\n## `update_xml_element`",
"Updates the xml element contents to matches the instance contents.",
" :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>",
"<BEGIN>\n## `to_xml_string`",
"Exports the element in XML format.",
" :returns: element in XML format.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_html_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_html_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 ... | Parses the element and subelements and parses any HTML enabled text to
its original HTML form for rendering.
:returns: Parsed HTML enabled text content.
:rtype: str | "Parses the element and subelements and parses any HTML enabled text to\n its original HTML form for rendering.\n\n :returns: Parsed HTML enabled text content.\n :rtype: str" | 77 | false | rodynnz/xccdf | get_html_content | 14,830 | |
LDU_FT/huyingxi/Synonyms/deaccent | 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 deaccent API.
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 deaccent API.
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... | Remove accentuation from the given string. Input text is either a unicode string or utf8 encoded bytestring.
Return input string with accents removed, as unicode.
>>> deaccent("Šéf chomutovských komunistů dostal poštou bílý prášek")
u'Sef chomutovskych komunistu dostal postou bily prasek' | "Remove accentuation from the given string. Input text is either a unicode string or utf8 encoded bytestring.\n\n Return input string with accents removed, as unicode.\n\n >>> deaccent(\"Šéf chomutovských komunistů dostal poštou bílý prášek\")\n u'Sef chomutovskych komunistu dostal postou bily prasek'" | 40 | false | huyingxi/Synonyms | deaccent | 14,831 | |
LDU_FT/eyeseast/python-tablefu/from_file | LDU_FT | [
"<BEGIN>\n## `sort`",
"Sort rows in this table, preserving a record of how that\n sorting is done in TableFu.options['sorted_by']\n<END>",
"<BEGIN>\n## `filter`",
"Tables can be filtered in one of two ways:\n - Simple keyword arguments return rows where values match *exactly*\n - Pass i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Creates a new TableFu instance from a file or path | "Creates a new TableFu instance from a file or path" | 51 | false | eyeseast/python-tablefu | from_file | 14,832 | |
LDU_FT/blue-yonder/tsfresh/partition | LDU_FT | [
"<BEGIN>\n## `_function_with_partly_reduce`",
"Small helper function to call a function (map_function)\n on a list of data chunks (chunk_list) and convert the results into\n a flattened list.",
" This function is used to send chunks of data with a size larger than 1 to\n the workers in parallel and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partition API.
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 partition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | This generator chunks a list of data into slices of length chunk_size. If the chunk_size is not a divider of the
data length, the last slice will be shorter than chunk_size.
:param data: The data to chunk.
:type data: list
:param chunk_size: Each chunks size. The last chunk may be small... | "This generator chunks a list of data into slices of length chunk_size. If the chunk_size is not a divider of the\n data length, the last slice will be shorter than chunk_size.\n\n :param data: The data to chunk.\n :type data: list\n :param chunk_size: Each chunks size. The last chunk may be... | 615 | false | blue-yonder/tsfresh | partition | 14,833 | |
LDU_FT/major/supernova/execute_executable | LDU_FT | [
"<BEGIN>\n## `get_user_password`",
"Allows the user to print the credential for a particular keyring entry\n to the screen\n<END>",
"<BEGIN>\n## `pull_env_credential`",
"Dissects a keyring credential lookup string from the supernova config file\n and returns the username/password combo\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_executable 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 execute_executable 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... | Executes the executable given by the user.
Hey, I know this method has a silly name, but I write the code here and
I'm silly. | "Executes the executable given by the user.\n\n Hey, I know this method has a silly name, but I write the code here and\n I'm silly." | 66 | false | major/supernova | execute_executable | 14,834 | |
LDU_FT/aio-libs/yarl/is_default_port | LDU_FT | [
"<BEGIN>\n## `is_default_port`",
"A check for default port.",
" Return True if port is default for specified scheme,\n e.g. 'http://python.org' or 'http://python.org:80', False\n otherwise.\n<END>",
"<BEGIN>\n## `origin`",
"Return an URL with scheme, host and port parts only.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_default_port API.
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 is_default_port API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | A check for default port.
Return True if port is default for specified scheme,
e.g. 'http://python.org' or 'http://python.org:80', False
otherwise. | "A check for default port.\n\n Return True if port is default for specified scheme,\n e.g. 'http://python.org' or 'http://python.org:80', False\n otherwise." | 62 | false | aio-libs/yarl | is_default_port | 14,835 | |
LDU_FT/KrishnaswamyLab/graphtools/build_kernel_to_data | LDU_FT | [
"<BEGIN>\n## `set_params`",
"Set parameters on this object",
" Safe setter method - attributes should not be modified directly as some\n changes are not valid.\n Valid parameters:\n - n_jobs\n - random_state\n - verbose\n Invalid parameters: (these would require ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_kernel_to_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_kernel_to_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.
... | Build a kernel from new input data `Y` to the `self.data`
Parameters
----------
Y: array-like, [n_samples_y, n_features]
new data for which an affinity matrix is calculated
to the existing data. `n_features` must match
either the ambient or PCA dimensions
... | "Build a kernel from new input data `Y` to the `self.data`\n\n Parameters\n ----------\n\n Y: array-like, [n_samples_y, n_features]\n new data for which an affinity matrix is calculated\n to the existing data. `n_features` must match\n either the ambient or PCA dime... | 207 | false | KrishnaswamyLab/graphtools | build_kernel_to_data | 14,836 | |
LDU_FT/numberoverzero/bottom/on | LDU_FT | [
"<BEGIN>\n## `nickmask`",
"store nick, user, host in kwargs if prefix is correct format\n<END>",
"<BEGIN>\n## `split_line`",
"Parse message according to rfc 2812 for routing\n<END>",
"<BEGIN>\n## `b`",
"Return `present` value (default to `field`) if `field` in `kwargs` and\n Truthy, otherwise return `m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on API.
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 docu... | Decorate a function to be invoked when the given event occurs.
The function may be a coroutine. Your function should accept **kwargs
in case an event is triggered with unexpected kwargs.
Example
-------
import asyncio
import bottom
client = bottom.Client(...)
... | "Decorate a function to be invoked when the given event occurs.\n\n The function may be a coroutine. Your function should accept **kwargs\n in case an event is triggered with unexpected kwargs.\n\n Example\n -------\n import asyncio\n import bottom\n\n client = bottom.C... | 24 | false | numberoverzero/bottom | on | 14,837 | |
LDU_FT/rflamary/POT/cg | LDU_FT | [
"<BEGIN>\n## `plot1D_mat`",
"Plot matrix M with the source and target 1D distribution",
" Creates a subplot with the source distribution a on the left and\n target distribution b on the tot. The matrix M is shown in between.",
" Parameters\n ----------\n a : np.array, shape (na,)\n Sour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cg API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cg API.
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 docu... | Solve the general regularized OT problem with conditional gradient
The function solves the following optimization problem:
.. math::
\gamma = arg\min_\gamma <\gamma,M>_F + reg*f(\gamma)
s.t. \gamma 1 = a
\gamma^T 1= b
\gamma\geq 0
where :
- M is the (n... | "Solve the general regularized OT problem with conditional gradient\n\n The function solves the following optimization problem:\n\n .. math::\n \\gamma = arg\\min_\\gamma <\\gamma,M>_F + reg*f(\\gamma)\n\n s.t. \\gamma 1 = a\n\n \\gamma^T 1= b\n\n \\gamma\\geq 0\n wher... | 711 | false | rflamary/POT | cg | 14,838 | |
LDU_FT/VikParuchuri/percept/import_task_modules | LDU_FT | [
"<BEGIN>\n## `train`",
"Calculate the standard deviations and means in the training data\n<END>",
"<BEGIN>\n## `predict`",
"Adjust new input by the values in the training data\n<END>",
"<BEGIN>\n## `save`",
"Save an object, and use id_code in the filename\n obj - any object\n id_code - uniqu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_task_modules 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 import_task_modules 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... | Import all installed apps and add modules to registry | "Import all installed apps and add modules to registry" | 72 | false | VikParuchuri/percept | import_task_modules | 14,839 | |
LDU_FT/majerteam/sqla_inspect/force_encoding | LDU_FT | [
"<BEGIN>\n## `get_info_field`",
"Return the info attribute of the given property\n<END>",
"<BEGIN>\n## `add_formatter`",
"Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>",
"<BEGIN>\n## `render`",
"Write to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the force_encoding API.
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 force_encoding API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a string encoded in the provided encoding | "Return a string encoded in the provided encoding" | 132 | false | majerteam/sqla_inspect | force_encoding | 14,840 | |
LDU_FT/openvax/topiary/apply_variant_expression_filters | LDU_FT | [
"<BEGIN>\n## `transcript_sort_key`",
"Key function used to sort transcripts. Taking the negative of\n protein sequence length and nucleotide sequence length so that\n the transcripts with longest sequences come first in the list. This couldn't\n be accomplished with `reverse=True` since we're also sortin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_variant_expression_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_variant_expression_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Filter a collection of variants by gene and transcript expression thresholds
Parameters
----------
variants : varcode.VariantCollection
gene_expression_dict : dict
gene_expression_threshold : float
transcript_expression_dict : dict
transcript_expression_threshold : float | "Filter a collection of variants by gene and transcript expression thresholds\n\n Parameters\n ----------\n variants : varcode.VariantCollection\n\n gene_expression_dict : dict\n\n gene_expression_threshold : float\n\n transcript_expression_dict : dict\n\n transcript_expression_threshold : float" | 91 | false | openvax/topiary | apply_variant_expression_filters | 14,841 | |
LDU_FT/paolodragone/pymzn/stmt2enum | LDU_FT | [
"<BEGIN>\n## `minizinc`",
"Coroutine version of the ``pymzn.minizinc`` function.",
" Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stmt2enum API.
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 stmt2enum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns a dzn enum declaration from an enum type.
Parameters
----------
enum_type : Enum
The enum to serialize.
declare : bool
Whether to include the ``enum`` declatation keyword in the statement or
just the assignment.
assign : bool
Wheter to include the assignment ... | "Returns a dzn enum declaration from an enum type.\n\n Parameters\n ----------\n enum_type : Enum\n The enum to serialize.\n declare : bool\n Whether to include the ``enum`` declatation keyword in the statement or\n just the assignment.\n assign : bool\n Wheter to include the ... | 102 | false | paolodragone/pymzn | stmt2enum | 14,842 | |
LDU_FT/acutesoftware/virtual-AI-simulator/read_file_1st_col_only | LDU_FT | [
"<BEGIN>\n## `calc_basics`",
"calculate various aspects of the structure\n<END>",
"<BEGIN>\n## `bld_rafter_deflection`",
"calculate rafter deflections - see test_calc_building_design.py for \n Sample values for equations below from Structures II course\n<END>",
"<BEGIN>\n## `main`",
"Prototype to see h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file_1st_col_only 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 read_file_1st_col_only API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | read a CSV file (ref_classes.csv) and return the
list of names | "read a CSV file (ref_classes.csv) and return the \n list of names" | 86 | false | acutesoftware/virtual-AI-simulator | read_file_1st_col_only | 14,843 | |
LDU_FT/relwell/corenlp-xml-lib/pos | LDU_FT | [
"<BEGIN>\n## `mentions`",
"Returns mentions",
" :return: list of mentions\n :rtype: list\n<END>",
"<BEGIN>\n## `sentence`",
"The sentence related to this mention",
" :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pos API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pos API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Lazy-loads the part of speech tag for this word
:getter: Returns the plain string value of the POS tag for the word
:type: str | "Lazy-loads the part of speech tag for this word\n\n :getter: Returns the plain string value of the POS tag for the word\n :type: str" | 87 | false | relwell/corenlp-xml-lib | pos | 14,844 | |
LDU_FT/rmst/chi/output_redirect | LDU_FT | [
"<BEGIN>\n## `experiment`",
"Decorator that transforms the decorated function into a chi.Experiment\n :param start_chiboard:\n :param f:\n :param local_dependencies:\n :return:\n<END>",
"<BEGIN>\n## `deep_q_network`",
"Architecture according to:\n http://www.nature.com/nature/journal/v518/n7540/full/na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | thread safe redirect of stdout and stderr
:param stdout:
:param stderr:
:return: | "thread safe redirect of stdout and stderr\n :param stdout:\n :param stderr:\n :return:" | 10 | false | rmst/chi | output_redirect | 14,845 | |
LDU_FT/s1s1ty/py-jsonq/or_where | LDU_FT | [
"<BEGIN>\n## `__parse_json_data`",
"Process Json data",
" :@param data\n :@type data: json/dict",
" :throws TypeError\n<END>",
"<BEGIN>\n## `__parse_json_file`",
"Process Json file data",
" :@param file_path\n :@type file_path: string",
" :@throws IOError\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the or_where API.
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 or_where API.
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... | Make or_where clause
:@param key
:@param operator
:@param value
:@type key, operator, value: string
:@return self | "Make or_where clause\n\n :@param key\n :@param operator\n :@param value\n :@type key, operator, value: string\n\n :@return self" | 71 | false | s1s1ty/py-jsonq | or_where | 14,846 | |
LDU_FT/ArchiveTeam/wpull/_rename_with_content_disposition | LDU_FT | [
"<BEGIN>\n## `_update_exit_code_from_stats`",
"Set the current exit code based on the Statistics.\n<END>",
"<BEGIN>\n## `is_response`",
"Return whether the document is likely to be a Sitemap.\n<END>",
"<BEGIN>\n## `is_file`",
"Return whether the file is likely a Sitemap.\n<END>",
"<BEGIN>\n## `parse_url... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rename_with_content_disposition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _rename_with_content_disposition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Rename using the Content-Disposition header. | "Rename using the Content-Disposition header." | 896 | false | ArchiveTeam/wpull | _rename_with_content_disposition | 14,847 | |
LDU_FT/franciscogarate/pyliferisk/dx | LDU_FT | [
"<BEGIN>\n## `qx`",
"qx: Returns the probability that a life aged x dies before 1 year\n With the convention: the true probability is qx/1000\n Args:\n mt: the mortality table\n x: the age as integer number.\n<END>",
"<BEGIN>\n## `lx`",
"lx : Returns the number of survivors at begi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dx API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dx API.
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 docu... | Returns the number of dying at begining of age x | "Returns the number of dying at begining of age x" | 39 | false | franciscogarate/pyliferisk | dx | 14,848 | |
LDU_FT/danielfrg/datasciencebox/conda_prefix | LDU_FT | [
"<BEGIN>\n## `managed`",
"Create and install python requirements in a conda enviroment\n pip is installed by default in the new enviroment",
" name : path to the enviroment to be created\n packages : None\n single package or list of packages to install i.e. numpy, scipy=0.13.3, pandas\n requi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conda_prefix API.
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 conda_prefix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get the conda prefix for a particular user (~/anaconda)
If user is None it defaults to /opt/anaconda | "Get the conda prefix for a particular user (~/anaconda)\n If user is None it defaults to /opt/anaconda" | 45 | false | danielfrg/datasciencebox | conda_prefix | 14,849 | |
LDU_FT/Yelp/detect-secrets/_tag_dict_values | LDU_FT | [
"<BEGIN>\n## `determine_file_type`",
":param filename: str",
" :rtype: FileType\n<END>",
"<BEGIN>\n## `write_baseline_to_file`",
":type filename: str\n :type data: dict\n :rtype: None\n<END>",
"<BEGIN>\n## `load_baseline_from_string`",
"Initializes a SecretsCollection object from string.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tag_dict_values API.
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 _tag_dict_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | :type map_node: yaml.nodes.MappingNode
:param map_node: It looks like map_node.value contains a list of
pair tuples, corresponding to key,value pairs. | ":type map_node: yaml.nodes.MappingNode\n :param map_node: It looks like map_node.value contains a list of\n pair tuples, corresponding to key,value pairs." | 194 | false | Yelp/detect-secrets | _tag_dict_values | 14,850 | |
LDU_FT/dylanaraps/pywal/xrdb | LDU_FT | [
"<BEGIN>\n## `get_desktop_env`",
"Identify the current running desktop environment.\n<END>",
"<BEGIN>\n## `set_wm_wallpaper`",
"Set the wallpaper for non desktop environments.\n<END>",
"<BEGIN>\n## `set_desktop_wallpaper`",
"Set the wallpaper for the desktop environment.\n<END>",
"<BEGIN>\n## `disown`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xrdb API.
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 xrdb API.
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... | Merge the colors into the X db so new terminals use them. | "Merge the colors into the X db so new terminals use them." | 28 | false | dylanaraps/pywal | xrdb | 14,851 | |
LDU_FT/msiemens/PyGitUp/print_error | LDU_FT | [
"<BEGIN>\n## `_run`",
"Run a git command specified by name and args/kwargs.\n<END>",
"<BEGIN>\n## `change_count`",
"The number of changes in the working directory.\n<END>",
"<BEGIN>\n## `uniq`",
"Return a copy of seq without duplicates.\n<END>",
"<BEGIN>\n## `execute`",
"Execute a command and return i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Print more information about an error.
:type error: GitError | "Print more information about an error.\r\n\r\n :type error: GitError" | 30 | false | msiemens/PyGitUp | print_error | 14,852 | |
LDU_FT/JustinLovinger/optimal/optimize_hyperparameters | 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 optimize_hyperparameters 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 optimize_hyperparameters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Optimize hyperparameters for a given problem.
Args:
parameter_locks: a list of strings, each corresponding to a hyperparamter
that should not be optimized.
problems: Either a single problem, or a list of problem instances,
allowing optim... | "Optimize hyperparameters for a given problem.\n\n Args:\n parameter_locks: a list of strings, each corresponding to a hyperparamter\n that should not be optimized.\n problems: Either a single problem, or a list of problem instances,\n allowin... | 152 | false | JustinLovinger/optimal | optimize_hyperparameters | 14,853 | |
LDU_FT/lyst/lightfm/_read_raw_data | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the user/item id and feature name mappings.",
" Calling fit the second time will reset existing mappings.",
" Parameters\n ----------",
" users: iterable of user ids\n items: iterable of item ids\n user_features: iterable of user features, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_raw_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_raw_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 ex... | Return the raw lines of the train and test files. | "Return the raw lines of the train and test files." | 151 | false | lyst/lightfm | _read_raw_data | 14,854 | |
LDU_FT/HHammond/PrettyPandas/as_unit | LDU_FT | [
"<BEGIN>\n## `_surpress_formatting_errors`",
"I know this is dangerous and the wrong way to solve the problem, but when\n using both row and columns summaries it's easier to just swallow errors\n so users can format their tables how they need.\n<END>",
"<BEGIN>\n## `as_percent`",
"Convert number to perc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_unit API.
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 as_unit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Format subset as with units
:param unit: string to use as unit
:param location: prefix or suffix
:param subset: Pandas subset | "Format subset as with units\n\n :param unit: string to use as unit\n :param location: prefix or suffix\n :param subset: Pandas subset" | 23 | false | HHammond/PrettyPandas | as_unit | 14,855 | |
LDU_FT/bhmm/bhmm/means_samples | LDU_FT | [
"<BEGIN>\n## `_forward_backward`",
"Estimation step: Runs the forward-back algorithm on trajectory with index itraj",
" Parameters\n ----------\n itraj : int\n index of the observation trajectory to process",
" Results\n -------\n logprob : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the means_samples API.
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 means_samples API.
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""" Samples of the Gaussian distribution means | "r\"\"\" Samples of the Gaussian distribution means" | 497 | false | bhmm/bhmm | means_samples | 14,856 | |
LDU_FT/openpermissions/koi/tuplify | LDU_FT | [
"<BEGIN>\n## `define_options`",
"Define the options from default.conf dynamically\n<END>",
"<BEGIN>\n## `log_config`",
"Logs the config used to start the application\n<END>",
"<BEGIN>\n## `ssl_server_options`",
"ssl options for tornado https server\n these options are defined in each application's defa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tuplify API.
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 tuplify API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Convert args to a tuple, unless there's one arg and it's a
function, then acts a decorator. | "Convert args to a tuple, unless there's one arg and it's a\n function, then acts a decorator." | 122 | false | openpermissions/koi | tuplify | 14,857 | |
LDU_FT/jlesquembre/jlle/cleanup_version | LDU_FT | [
"<BEGIN>\n## `no_input`",
"Return whether the user wants to run in no-input mode.",
" Enable this mode by adding a ``no-input`` option::",
" [zest.releaser]\n no-input = yes",
" The default when this option has not been set is False.",
" Standard config rules app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Check if the version looks like a development version. | "Check if the version looks like a development version." | 77 | false | jlesquembre/jlle | cleanup_version | 14,858 | |
LDU_FT/pyvisa/pyvisa-py/get_debug_info | LDU_FT | [
"<BEGIN>\n## `get_debug_info`",
"Return a list of lines with backend info.\n<END>",
"<BEGIN>\n## `_register`",
"Creates a random but unique session handle for a session object,\n register it in the sessions dictionary and return the value",
" :param obj: a session object.\n :return: ses... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_debug_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_debug_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return a list of lines with backend info. | "Return a list of lines with backend info." | 71 | false | pyvisa/pyvisa-py | get_debug_info | 14,859 | |
LDU_FT/UCSBarchlab/PyRTL/bitmask | LDU_FT | [
"<BEGIN>\n## `_initialize`",
"Sets the wire, register, and memory values to default or as specified.",
" :param register_value_map: is a map of {Register: value}.\n :param memory_value_map: is a map of maps {Memory: {address: Value}}.\n :param default_value: is the value that all unspecifie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bitmask API.
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 bitmask API.
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 property holding a bitmask of the same length as this WireVector.
Specifically it is an integer with a number of bits set to 1 equal to the
bitwidth of the WireVector.
It is often times useful to "mask" an integer such that it fits in the
the number of bits of a WireVector. As a conv... | "A property holding a bitmask of the same length as this WireVector.\n Specifically it is an integer with a number of bits set to 1 equal to the\n bitwidth of the WireVector.\n\n It is often times useful to \"mask\" an integer such that it fits in the\n the number of bits of a WireVector. A... | 416 | false | UCSBarchlab/PyRTL | bitmask | 14,860 | |
LDU_FT/mila/pyoo/__get_values | LDU_FT | [
"<BEGIN>\n## `str_repr`",
"Implements string conversion methods for the given class.",
" The given class must implement the __str__ method. This decorat\n will add __repr__ and __unicode__ (for Python 2).\n<END>",
"<BEGIN>\n## `_clean_slice`",
"Validates and normalizes a cell range slice.",
" >>>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __get_values API.
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... | Gets values in this cell range as a tuple.
This is much more effective than reading cell values one by one. | "Gets values in this cell range as a tuple.\n\n This is much more effective than reading cell values one by one." | 70 | false | mila/pyoo | __get_values | 14,861 | |
LDU_FT/nirum/tableprint/hrule | LDU_FT | [
"<BEGIN>\n## `humantime`",
"Converts a time in seconds to a reasonable human readable time",
" Parameters\n ----------\n t : float\n The number of seconds",
" Returns\n -------\n time : string\n The human readable formatted value of the given time\n<END>",
"<BEGIN>\n## `ansi_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hrule API.
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 hrule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a formatted string used as a border between table rows
Parameters
----------
n : int
The number of columns in the table
width : int
The width of each column (Default: 11)
linestyle : tuple
A LineStyle namedtuple containing the characters for (begin, hr, sep, end).
... | "Returns a formatted string used as a border between table rows\n\n Parameters\n ----------\n n : int\n The number of columns in the table\n\n width : int\n The width of each column (Default: 11)\n\n linestyle : tuple\n A LineStyle namedtuple containing the characters for (begin, hr,... | 49 | false | nirum/tableprint | hrule | 14,862 | |
LDU_FT/mcieslik-mctp/papy/_code | LDU_FT | [
"<BEGIN>\n## `_inspect`",
"(internal) Determines the type of a given ``object``. Discriminates between \n ``Piper``, ``Worker``, ``FunctionType`` and ``Iterable`` instances. It \n returns a ``tuple`` of boolean variables i.e: (is_piper, is_worker, \n is_function, is_iterable_of_pipers, is_iterable_of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _code API.
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 _code API.
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... | (internal) generates imports, code and runtime calls to save a pipeline. | "(internal) generates imports, code and runtime calls to save a pipeline." | 323 | false | mcieslik-mctp/papy | _code | 14,863 | |
LDU_FT/mediawiki-utilities/python-mwtypes/initialize | LDU_FT | [
"<BEGIN>\n## `initialize`",
"Contributing user's identifier : int | None\n<END>",
"<BEGIN>\n## `reader`",
"Turns a path to a dump file into a file-like object of (decompressed)\n XML data assuming that '7z' is installed and will know what to do.",
" :Parameters:\n path : `str`\n the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialize API.
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 initialize API.
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... | Upload timestamp : mwtypes.Timestamp | None | "Upload timestamp : mwtypes.Timestamp | None" | 41 | false | mediawiki-utilities/python-mwtypes | initialize | 14,864 | |
LDU_FT/Adarnof/adarnauth-esi/build_spec | LDU_FT | [
"<BEGIN>\n## `sso_redirect`",
"Generates a :model:`esi.CallbackRedirect` for the specified request.\n Redirects to EVE for login.\n Accepts a view or URL name as a redirect after SSO.\n<END>",
"<BEGIN>\n## `receive_callback`",
"Parses SSO callback, validates, retrieves :model:`esi.Token`, and internally... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Generates the Spec used to initialize a SwaggerClient, supporting mixed resource versions
:param http_client: :class:`bravado.requests_client.RequestsClient`
:param base_version: Version to base the spec on. Any resource without an explicit version will be this.
:param kwargs: Explicit resource versions, by... | "Generates the Spec used to initialize a SwaggerClient, supporting mixed resource versions\n :param http_client: :class:`bravado.requests_client.RequestsClient`\n :param base_version: Version to base the spec on. Any resource without an explicit version will be this.\n :param kwargs: Explicit resource versions... | 45 | false | Adarnof/adarnauth-esi | build_spec | 14,865 | |
LDU_FT/jeroyang/cateye/invert_index | LDU_FT | [
"<BEGIN>\n## `invert_index`",
"Build the invert index from give source_dir\n Output a Shove object built on the store_path\n Input:\n source_dir: a directory on the filesystem\n index_url: the store_path for the Shove object\n init: clear the old index and rebuild from scratch\n Outp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invert_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Build the invert index from give source_dir
Output a Shove object built on the store_path
Input:
source_dir: a directory on the filesystem
index_url: the store_path for the Shove object
init: clear the old index and rebuild from scratch
Output:
index: a Shove object | "Build the invert index from give source_dir\n Output a Shove object built on the store_path\n Input:\n source_dir: a directory on the filesystem\n index_url: the store_path for the Shove object\n init: clear the old index and rebuild from scratch\n Output:\n index: a Shove object" | 12 | false | jeroyang/cateye | invert_index | 14,866 | |
LDU_FT/pytroll/posttroll/strp_isoformat | LDU_FT | [
"<BEGIN>\n## `restart_listener`",
"Restart listener after configuration update.\n<END>",
"<BEGIN>\n## `create_subscriber`",
"Create a subscriber instance using specified addresses and\n message types.\n<END>",
"<BEGIN>\n## `heartbeat`",
"Send a heartbeat ... but only if *min_interval* seconds has p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strp_isoformat API.
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 strp_isoformat API.
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... | Decode an ISO formatted string to a datetime object.
Allow a time-string without microseconds.
We handle input like: 2011-11-14T12:51:25.123456 | "Decode an ISO formatted string to a datetime object.\n Allow a time-string without microseconds.\n\n We handle input like: 2011-11-14T12:51:25.123456" | 46 | false | pytroll/posttroll | strp_isoformat | 14,867 | |
LDU_FT/Alignak-monitoring/alignak/delete_zombie_checks | LDU_FT | [
"<BEGIN>\n## `is_active`",
"Know if this result modulation is active now",
" :return: True is we are in the period, otherwise False\n :rtype: bool\n<END>",
"<BEGIN>\n## `module_return`",
"Module the exit code if necessary ::",
" * modulation_period is legit\n * exit_code_modula... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_zombie_checks 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 delete_zombie_checks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Remove checks that have a zombie status (usually timeouts)
:return: None | "Remove checks that have a zombie status (usually timeouts)\n\n :return: None" | 3,377 | true | Alignak-monitoring/alignak | delete_zombie_checks | 14,868 | |
LDU_FT/dmlc/gluon-nlp/_worker_fn | LDU_FT | [
"<BEGIN>\n## `train`",
"Train textCNN model for sentiment analysis.\n<END>",
"<BEGIN>\n## `embedding`",
"Get tokens, tokens embedding",
" Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _worker_fn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _worker_fn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Function for processing data in worker process. | "Function for processing data in worker process." | 801 | false | dmlc/gluon-nlp | _worker_fn | 14,869 | |
LDU_FT/MostAwesomeDude/gentleman/start | LDU_FT | [
"<BEGIN>\n## `request`",
"Sends an HTTP request.",
" This constructs a full URL, encodes and decodes HTTP bodies, and\n handles invalid responses in a pythonic way.",
" @type method: string\n @param method: HTTP method to use\n @type path: string\n @param path: HTTP U... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Confirm that we may access the target cluster. | "Confirm that we may access the target cluster." | 173 | false | MostAwesomeDude/gentleman | start | 14,870 | |
LDU_FT/inveniosoftware/invenio-oaiserver/listrecords | LDU_FT | [
"<BEGIN>\n## `_schema_from_verb`",
"Return an instance of schema for given verb.\n<END>",
"<BEGIN>\n## `load`",
"Deserialize a data structure to an object.\n<END>",
"<BEGIN>\n## `make_request_validator`",
"Validate arguments in incomming request.\n<END>",
"<BEGIN>\n## `from_iso_permissive`",
"Parse an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listrecords API.
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 listrecords API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Create OAI-PMH response for verb ListRecords. | "Create OAI-PMH response for verb ListRecords." | 78 | false | inveniosoftware/invenio-oaiserver | listrecords | 14,871 | |
LDU_FT/materialsproject/custodian/setup | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.",
" Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
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 setup API.
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... | Performs initial setup for VaspNEBJob, including overriding any settings
and backing up. | "Performs initial setup for VaspNEBJob, including overriding any settings\n and backing up." | 90 | false | materialsproject/custodian | setup | 14,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.