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/EconForge/dolo/time_iteration | LDU_FT | [
"<BEGIN>\n## `multidot_old`",
"Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_iteration API.
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 time_iteration API.
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... | Finds a global solution for ``model`` using backward time-iteration.
This algorithm iterates on the residuals of the arbitrage equations
Parameters
----------
model : Model
model to be solved
verbose : boolean
if True, display iterations
initial_guess : decision rule
in... | "Finds a global solution for ``model`` using backward time-iteration.\n\n This algorithm iterates on the residuals of the arbitrage equations\n\n Parameters\n ----------\n model : Model\n model to be solved\n verbose : boolean\n if True, display iterations\n initial_guess : decision rule... | 221 | false | EconForge/dolo | time_iteration | 140,773 | |
LDU_FT/emin63/eyap/lookup_comments | LDU_FT | [
"<BEGIN>\n## `make_anchor_id`",
"Return string to use as URL anchor for this comment.\n<END>",
"<BEGIN>\n## `make_url`",
"Make URL to this comment.",
" :arg my_request: The request object where this comment is seen from.",
" :arg anchor_id=None: Optional anchor id. If None, we use\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_comments API.
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 lookup_comments API.
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... | Implement as required by parent to lookup comments in file system. | "Implement as required by parent to lookup comments in file system." | 126 | false | emin63/eyap | lookup_comments | 140,774 | |
LDU_FT/jldantas/libmft/get_datastream_names | LDU_FT | [
"<BEGIN>\n## `apply_fixup_array`",
"This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.",
" Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datastream_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_datastream_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a set with the datastream names. If there is no datastream,
returns None | "Returns a set with the datastream names. If there is no datastream,\n returns None" | 107 | false | jldantas/libmft | get_datastream_names | 140,775 | |
LDU_FT/googleapis/google-cloud-python/get_doc_id | LDU_FT | [
"<BEGIN>\n## `_verify_params`",
"Verifies the parameters don't use any reserved parameter.",
" Raises:\n ValueError: If a reserved parameter is used.\n<END>",
"<BEGIN>\n## `_next_page`",
"Get the next page in the iterator.",
" Returns:\n Optional[Page]: The next page in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_doc_id API.
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_doc_id API.
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... | Parse a document ID from a document protobuf.
Args:
document_pb (google.cloud.proto.firestore.v1beta1.\
document_pb2.Document): A protobuf for a document that
was created in a ``CreateDocument`` RPC.
expected_prefix (str): The expected collection prefix for the
f... | "Parse a document ID from a document protobuf.\n\n Args:\n document_pb (google.cloud.proto.firestore.v1beta1.\\\n document_pb2.Document): A protobuf for a document that\n was created in a ``CreateDocument`` RPC.\n expected_prefix (str): The expected collection prefix for the\n ... | 7,029 | true | googleapis/google-cloud-python | get_doc_id | 140,776 | |
LDU_FT/cuihantao/andes/dump_results | LDU_FT | [
"<BEGIN>\n## `check`",
"Check config data consistency",
" Returns\n -------\n<END>",
"<BEGIN>\n## `read`",
"Read a dm format file and elem_add to system\n<END>",
"<BEGIN>\n## `register_element`",
"Register a device element to the group list",
" Parameters\n ----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Dump simulation results to ``dat`` and ``lst`` files
Returns
-------
None | "Dump simulation results to ``dat`` and ``lst`` files\n\n Returns\n -------\n None" | 614 | false | cuihantao/andes | dump_results | 140,777 | |
LDU_FT/squdle/baseconvert/from_base_10_int | LDU_FT | [
"<BEGIN>\n## `represent_as_tuple`",
"Represent a number-string in the form of a tuple of digits.\r\n \"868.0F\" -> (8, 6, 8, '.', 0, 15)\r",
" Args:\r\n string - Number represented as a string of digits.\r\n Returns:\r\n Number represented as an iterable container of digits\r",
" >>>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_base_10_int API.
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 from_base_10_int API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Converts a decimal integer to a specific base.
Args:
decimal(int) A base 10 number.
output_base(int) base to convert to.
Returns:
A tuple of digits in the specified base.
Examples:
>>> from_base_10_int(255)
(2, 5, 5)
>>> from_base_10_int(255, 16... | "Converts a decimal integer to a specific base.\r\n\r\n Args:\r\n decimal(int) A base 10 number.\r\n output_base(int) base to convert to.\r\n\r\n Returns:\r\n A tuple of digits in the specified base.\r\n\r\n Examples:\r\n >>> from_base_10_int(255)\r\n (2, 5, 5)\r\n >>>... | 77 | false | squdle/baseconvert | from_base_10_int | 140,778 | |
LDU_FT/vals/umis/stream_fastq | LDU_FT | [
"<BEGIN>\n## `mutationhash`",
"produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>",
"<BEGIN>\n## `substitution_set`",
"for a string, return a set of all possible substitutions\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stream_fastq API.
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 stream_fastq API.
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... | Generator which gives all four lines if a fastq read as one string | "Generator which gives all four lines if a fastq read as one string" | 62 | false | vals/umis | stream_fastq | 140,779 | |
LDU_FT/csirtgadgets/csirtgsdk-py/feed | LDU_FT | [
"<BEGIN>\n## `show`",
"Show a specific indicator by id",
" :param user: feed username\n :param feed: feed name\n :param id: indicator endpoint id [INT]\n :return: dict",
" Example:\n ret = Indicator.show('csirtgadgets','port-scanners', '1234')\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feed API.
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 feed API.
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... | Pull a feed
:param f: feed name (eg: csirtgadgetes/correlated)
:param limit: return value limit (default 25)
:return: Feed dict | "Pull a feed\n :param f: feed name (eg: csirtgadgetes/correlated)\n :param limit: return value limit (default 25)\n :return: Feed dict" | 52 | false | csirtgadgets/csirtgsdk-py | feed | 140,780 | |
LDU_FT/rochacbruno/dynaconf/init_app | LDU_FT | [
"<BEGIN>\n## `init_app`",
"kwargs holds initial dynaconf configuration\n<END>",
"<BEGIN>\n## `get`",
"Gets config from dynaconf variables\n if variables does not exists in dynaconf try getting from\n `app.config` to support runtime settings.\n<END>",
"<BEGIN>\n## `object_merge`",
"Recursivel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | kwargs holds initial dynaconf configuration | "kwargs holds initial dynaconf configuration" | 172 | false | rochacbruno/dynaconf | init_app | 140,781 | |
LDU_FT/django-parler/django-parler/get_fallback_languages | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fallback_languages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fallback_languages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Find out what the fallback language is for a given language choice.
.. versionadded 1.5 | "Find out what the fallback language is for a given language choice.\n\n .. versionadded 1.5" | 163 | false | django-parler/django-parler | get_fallback_languages | 140,782 | |
LDU_FT/jrigden/pyPodcastParser/set_itunes_block | LDU_FT | [
"<BEGIN>\n## `set_is_valid_rss`",
"Check to if this is actually a valid RSS feed\n<END>",
"<BEGIN>\n## `set_optional_elements`",
"Sets elements considered option by RSS spec\n<END>",
"<BEGIN>\n## `count_items`",
"Counts Items in full_soup and soup. For debugging\n<END>",
"<BEGIN>\n## `set_creative_commo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_itunes_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_itunes_block API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Check and see if podcast is blocked from iTunes and sets value | "Check and see if podcast is blocked from iTunes and sets value" | 38 | false | jrigden/pyPodcastParser | set_itunes_block | 140,783 | |
LDU_FT/klen/adrest/serialize | LDU_FT | [
"<BEGIN>\n## `convert_identifier_to_key`",
"Takes an identifier (like a username or IP address) and converts it\n into a key usable by the cache system.\n<END>",
"<BEGIN>\n## `emit`",
"Serialize response.",
" :return response: Instance of django.http.Response\n<END>",
"<BEGIN>\n## `seria... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Serialize to JSON.
:return string: serializaed JSON | "Serialize to JSON.\n\n :return string: serializaed JSON" | 146 | false | klen/adrest | serialize | 140,784 | |
LDU_FT/cloudsmith-io/cloudsmith-cli/sync | LDU_FT | [
"<BEGIN>\n## `convert`",
"Take a path with $HOME variables and resolve it to full path.\n<END>",
"<BEGIN>\n## `make_user_agent`",
"Get a suitable user agent for identifying the CLI process.\n<END>",
"<BEGIN>\n## `pretty_print_list_info`",
"Pretty print list info, with pagination, for user display.\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
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 sync API.
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... | Sync entitlements from another repository.
***WARNING*** This will DELETE ALL of the existing entitlements in the
repository and replace them with entitlements from the source repository.
- OWNER/REPO: Specify the OWNER namespace (i.e. user or org), and the REPO
name where you want to sync entitleme... | "Sync entitlements from another repository.\n\n ***WARNING*** This will DELETE ALL of the existing entitlements in the\n repository and replace them with entitlements from the source repository.\n\n - OWNER/REPO: Specify the OWNER namespace (i.e. user or org), and the REPO\n name where you want to sync en... | 214 | false | cloudsmith-io/cloudsmith-cli | sync | 140,785 | |
LDU_FT/twisted/mantissa/usernameAvailable | LDU_FT | [
"<BEGIN>\n## `createUser`",
"Create a new, blank user account with the given name and domain and, if\n specified, with the given password.",
" @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the usernameAvailable API.
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 usernameAvailable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Check to see if a username is available for the user to select. | "Check to see if a username is available for the user to select." | 1,120 | true | twisted/mantissa | usernameAvailable | 140,786 | |
LDU_FT/foutaise/texttable/draw | LDU_FT | [
"<BEGIN>\n## `obj2unicode`",
"Return a unicode representation of a python object\n<END>",
"<BEGIN>\n## `len`",
"Redefining len here so it will be able to work with non-ASCII characters\n<END>",
"<BEGIN>\n## `set_chars`",
"Set the characters used to draw lines between rows and columns",
" - the ar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw API.
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 draw API.
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... | Draw the table
- the table is returned as a whole string | "Draw the table\n\n - the table is returned as a whole string" | 65 | false | foutaise/texttable | draw | 140,787 | |
LDU_FT/praekeltfoundation/seed-message-sender/run | LDU_FT | [
"<BEGIN>\n## `_get_filename`",
"This function gets the base filename from the path, if a language code\n is present the filename will start from there.\n<END>",
"<BEGIN>\n## `_override_payload`",
"This function transforms the payload into a new format using the\n self.override_payload property.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Load and contruct message and send them off | "Load and contruct message and send them off" | 36 | false | praekeltfoundation/seed-message-sender | run | 140,788 | |
LDU_FT/nicolargo/glances/update | LDU_FT | [
"<BEGIN>\n## `msg_curse`",
"Return the string to display in the curse interface.\n<END>",
"<BEGIN>\n## `load`",
"Load the web list from the configuration file.\n<END>",
"<BEGIN>\n## `set_server`",
"Set the key to the value for the pos (position in the list).\n<END>",
"<BEGIN>\n## `update`",
"Update se... | 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 the cloud stats.
Return the stats (dict) | "Update the cloud stats.\n\n Return the stats (dict)" | 678 | false | nicolargo/glances | update | 140,789 | |
LDU_FT/vimalloc/flask-jwt-extended/is_token_revoked | LDU_FT | [
"<BEGIN>\n## `decode_token`",
"Returns the decoded token (python dict) from an encoded JWT. This does all\n the checks to insure that the decoded token is valid before returning it.",
" :param encoded_token: The encoded JWT to decode into a python dict.\n :param csrf_value: Expected CSRF double submit ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_token_revoked API.
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 is_token_revoked API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Checks if the given token is revoked or not. Because we are adding all the
tokens that we create into this database, if the token is not present
in the database we are going to consider it revoked, as we don't know where
it was created. | "Checks if the given token is revoked or not. Because we are adding all the\n tokens that we create into this database, if the token is not present\n in the database we are going to consider it revoked, as we don't know where\n it was created." | 71 | false | vimalloc/flask-jwt-extended | is_token_revoked | 140,790 | |
LDU_FT/robertmartin8/PyPortfolioOpt/clean_weights | LDU_FT | [
"<BEGIN>\n## `negative_sharpe`",
"Calculate the negative Sharpe ratio of a portfolio",
" :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_weights API.
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 clean_weights API.
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... | Helper method to clean the raw weights, setting any weights whose absolute
values are below the cutoff to zero, and rounding the rest.
:param cutoff: the lower bound, defaults to 1e-4
:type cutoff: float, optional
:param rounding: number of decimal places to round the weights, defaults ... | "Helper method to clean the raw weights, setting any weights whose absolute\n values are below the cutoff to zero, and rounding the rest.\n\n :param cutoff: the lower bound, defaults to 1e-4\n :type cutoff: float, optional\n :param rounding: number of decimal places to round the weights, def... | 90 | false | robertmartin8/PyPortfolioOpt | clean_weights | 140,791 | |
LDU_FT/DAI-Lab/Copulas/_g | LDU_FT | [
"<BEGIN>\n## `get_lower_bound`",
"Compute the lower bound to integrate cumulative density.",
" Returns:\n float: lower bound for cumulative density integral.\n<END>",
"<BEGIN>\n## `get_column_names`",
"Return iterable containing columns for the given array X.",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _g API.
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 _g API.
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... | Helper function to solve Frank copula.
This functions encapsulates :math:`g_z = e^{-\\theta z} - 1` used on Frank copulas.
Argument:
z: np.ndarray
Returns:
np.ndarray | "Helper function to solve Frank copula.\n\n This functions encapsulates :math:`g_z = e^{-\\\\theta z} - 1` used on Frank copulas.\n\n Argument:\n z: np.ndarray\n\n Returns:\n np.ndarray" | 278 | false | DAI-Lab/Copulas | _g | 140,792 | |
LDU_FT/redhat-cip/dci-control-server/get_last_rconfiguration_id | LDU_FT | [
"<BEGIN>\n## `get_user_and_check_auth`",
"Check the combination username/password that is valid on the\n database.\n<END>",
"<BEGIN>\n## `retrieve_info`",
"Query the Github API to retrieve the needed infos.\n<END>",
"<BEGIN>\n## `get_last_rconfiguration_id`",
"Get the rconfiguration_id of the last ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_rconfiguration_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_rconfiguration_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Get the rconfiguration_id of the last job run by the remoteci.
:param topic_id: the topic
:param remoteci_id: the remoteci id
:return: last rconfiguration_id of the remoteci | "Get the rconfiguration_id of the last job run by the remoteci.\n\n :param topic_id: the topic\n :param remoteci_id: the remoteci id\n :return: last rconfiguration_id of the remoteci" | 86 | false | redhat-cip/dci-control-server | get_last_rconfiguration_id | 140,793 | |
LDU_FT/richardkiss/pycoin/spendables_for_address | LDU_FT | [
"<BEGIN>\n## `parse_as_header`",
"Parse the Block header from the file-like object\n<END>",
"<BEGIN>\n## `stream_header_legacy`",
"Stream the block header in the standard way to the file-like object f.\n<END>",
"<BEGIN>\n## `stream_header`",
"Stream the block header in the standard way to the file-like ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spendables_for_address 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 spendables_for_address API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Return a list of Spendable objects for the
given bitcoin address. | "Return a list of Spendable objects for the\n given bitcoin address." | 336 | false | richardkiss/pycoin | spendables_for_address | 140,794 | |
LDU_FT/NORDUnet/python-norduniclient/get_node | LDU_FT | [
"<BEGIN>\n## `get_db_driver`",
":param uri: Bolt uri\n :type uri: str\n :param username: Neo4j username\n :type username: str\n :param password: Neo4j password\n :type password: str\n :param encrypted: Use TLS\n :type encrypted: Boolean\n :param max_pool_size: Maximum number of idle sessio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | :param manager: Manager to handle sessions and transactions
:param handle_id: Unique id
:param legacy: Backwards compatibility
:type manager: norduniclient.contextmanager.Neo4jDBSessionManager
:type handle_id: str|unicode
:type legacy: Boolean
:rtype: dict|neo4j.v1.types.Node | ":param manager: Manager to handle sessions and transactions\n :param handle_id: Unique id\n :param legacy: Backwards compatibility\n\n :type manager: norduniclient.contextmanager.Neo4jDBSessionManager\n :type handle_id: str|unicode\n :type legacy: Boolean\n\n :rtype: dict|neo4j.v1.types.Node" | 71 | false | NORDUnet/python-norduniclient | get_node | 140,795 | |
LDU_FT/andycasey/sick/cast | LDU_FT | [
"<BEGIN>\n## `chains`",
"Create a plot showing the walker values for each parameter at every step.",
" :param xs:\n The samples. This should be a 3D :class:`numpy.ndarray` of size \n (``n_walkers``, ``n_steps``, ``n_parameters``).",
" :type xs:\n :class:`numpy.ndarray`",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cast API.
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 cast API.
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... | Cast a new model from this model. The new model might have a restricted
wavelength range, different channels, larger sampling/binning, and/or a
lower spectral resolution. | "Cast a new model from this model. The new model might have a restricted\n wavelength range, different channels, larger sampling/binning, and/or a\n lower spectral resolution." | 179 | false | andycasey/sick | cast | 140,796 | |
LDU_FT/e-dard/flask-s3/init_app | LDU_FT | [
"<BEGIN>\n## `split_metadata_params`",
"Given a dict of headers for s3, seperates those that are boto3\n parameters and those that must be metadata\n<END>",
"<BEGIN>\n## `hash_file`",
"Generate a hash for the contents of a file\n<END>",
"<BEGIN>\n## `url_for`",
"Generates a URL to the given endpoint.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | An alternative way to pass your :class:`flask.Flask` application
object to Flask-S3. :meth:`init_app` also takes care of some
default `settings`_.
:param app: the :class:`flask.Flask` application object. | "An alternative way to pass your :class:`flask.Flask` application\n object to Flask-S3. :meth:`init_app` also takes care of some\n default `settings`_.\n\n :param app: the :class:`flask.Flask` application object." | 39 | false | e-dard/flask-s3 | init_app | 140,797 | |
LDU_FT/kapot65/python-df-parser/parse_message | LDU_FT | [
"<BEGIN>\n## `serialise_to_rsh`",
"Преобразование конфигурационного файла в формате JSON в текстовый хедер.",
" rsh. Хедер можно использовать как конфигурационный файл для lan10-12base\n @params -- параметры в формате JSON (dfparser.def_values.DEF_RSH_PARAMS)\n @return -- текстовый хедер\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Parse df message from bytearray.
@message - message data
@nodata - do not load data
@return - [binary header, metadata, binary data] | "Parse df message from bytearray.\n\n @message - message data\n @nodata - do not load data\n @return - [binary header, metadata, binary data]" | 28 | false | kapot65/python-df-parser | parse_message | 140,798 | |
LDU_FT/briney/abutils/_aggregate | LDU_FT | [
"<BEGIN>\n## `cluster`",
"Perform sequence clustering with CD-HIT.",
" Args:",
" seqs (list): An iterable of sequences, in any format that `abutils.utils.sequence.Sequence()`\n can handle",
" threshold (float): Clustering identity threshold. Default is `0.975`.",
" out_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _aggregate API.
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 _aggregate API.
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... | Counts the number of occurances of each item in 'data'.
Inputs
data: a list of values.
norm: normalize the resulting counts (as percent)
sort_by: how to sort the retured data. Options are 'value' and 'count'.
Output
a non-redundant list of values (from 'data') and a list of counts. | "Counts the number of occurances of each item in 'data'.\n\n Inputs\n data: a list of values.\n norm: normalize the resulting counts (as percent)\n sort_by: how to sort the retured data. Options are 'value' and 'count'.\n\n Output\n a non-redundant list of values (from 'data') and a list of counts." | 445 | false | briney/abutils | _aggregate | 140,799 | |
LDU_FT/J535D165/recordlinkage/frame_indexing | LDU_FT | [
"<BEGIN>\n## `_map_tril_1d_on_2d`",
"Map 1d indices on lower triangular matrix in 2d.\n<END>",
"<BEGIN>\n## `random_pairs_without_replacement_large_frames`",
"Make a sample of random pairs with replacement\n<END>",
"<BEGIN>\n## `clean`",
"Clean string variables.",
" Clean strings in the Series by rem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the frame_indexing API.
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 frame_indexing API.
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... | Index dataframe based on one level of MultiIndex.
Arguments
---------
frame : pandas.DataFrame
The datafrme to select records from.
multi_index : pandas.MultiIndex
A pandas multiindex were one fo the levels is used to sample the
dataframe with.
level_i : int, str
The... | "Index dataframe based on one level of MultiIndex.\n\n Arguments\n ---------\n frame : pandas.DataFrame\n The datafrme to select records from.\n multi_index : pandas.MultiIndex\n A pandas multiindex were one fo the levels is used to sample the\n dataframe with.\n level_i : int, str\n... | 339 | false | J535D165/recordlinkage | frame_indexing | 140,800 | |
LDU_FT/PyMySQL/Tornado-MySQL/connect | LDU_FT | [
"<BEGIN>\n## `executemany`",
"Run several data against one query",
" PyMySQL can execute bulkinsert for query like 'INSERT ... VALUES (%s)'.\n In other form of queries, just run :meth:`execute` many times.\n<END>",
"<BEGIN>\n## `fetchall`",
"Fetch all, as per MySQLdb. Pretty useless for large ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
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 connect API.
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... | See connections.Connection.__init__() for information about defaults. | "See connections.Connection.__init__() for information about defaults." | 56 | false | PyMySQL/Tornado-MySQL | connect | 140,801 | |
LDU_FT/bennyrowland/suspect/_vax_to_ieee_single_float | LDU_FT | [
"<BEGIN>\n## `write_all_files`",
"Creates an LCModel control file for processing the supplied MRSData, and\n optional water reference data, updating the default parameters with any\n values supplied through params.",
" :param filename: the location where the control file should be saved.\n :param da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _vax_to_ieee_single_float 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 _vax_to_ieee_single_float API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Converts a float in Vax format to IEEE format.
data should be a single string of chars that have been read in from
a binary file. These will be processed 4 at a time into float values.
Thus the total number of byte/chars in the string should be divisible
by 4.
Based on VAX data organization in a b... | "Converts a float in Vax format to IEEE format.\n\n data should be a single string of chars that have been read in from\n a binary file. These will be processed 4 at a time into float values.\n Thus the total number of byte/chars in the string should be divisible\n by 4.\n\n Based on VAX data organizatio... | 71 | false | bennyrowland/suspect | _vax_to_ieee_single_float | 140,802 | |
LDU_FT/Josef-Friedrich/phrydy/_safe_cast | LDU_FT | [
"<BEGIN>\n## `as_string`",
"Convert a value to a Unicode object for matching with a query.\n None becomes the empty string. Bytestrings are silently decoded.\n<END>",
"<BEGIN>\n## `displayable_path`",
"Attempts to decode a bytestring path to a unicode object for the\n purpose of displaying it to the use... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _safe_cast API.
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 _safe_cast API.
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... | Try to covert val to out_type but never raise an exception. If
the value can't be converted, then a sensible default value is
returned. out_type should be bool, int, or unicode; otherwise, the
value is just passed through. | "Try to covert val to out_type but never raise an exception. If\n the value can't be converted, then a sensible default value is\n returned. out_type should be bool, int, or unicode; otherwise, the\n value is just passed through." | 72 | false | Josef-Friedrich/phrydy | _safe_cast | 140,803 | |
LDU_FT/mommermi/callhorizons/iscomet | LDU_FT | [
"<BEGIN>\n## `_char2int`",
"translate characters to integer values (upper and lower case)\n<END>",
"<BEGIN>\n## `parse_comet`",
"Parse `targetname` as if it were a comet.",
" :return: (string or None, int or None, string or None);\n The designation, number and prefix, and name of the comet a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iscomet API.
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 iscomet API.
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... | `True` if `targetname` appears to be a comet. | "`True` if `targetname` appears to be a comet." | 40 | false | mommermi/callhorizons | iscomet | 140,804 | |
LDU_FT/icgood/pymap/register | LDU_FT | [
"<BEGIN>\n## `for_executor`",
"Return a subsystem based on the given executor. If ``executor`` is\n None, use :mod:`asyncio`. If ``executor`` is a\n :class:`concurrent.futures.ThreadPoolExecutor`, use :mod:`threading`.",
" Args:\n executor: The executor in use, if any.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API.
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 register API.
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... | Register a new IMAP command.
Args:
cmd: The new command type. | "Register a new IMAP command.\n\n Args:\n cmd: The new command type." | 298 | false | icgood/pymap | register | 140,805 | |
LDU_FT/juju/charm-helpers/chownr | LDU_FT | [
"<BEGIN>\n## `get_ubuntu_release_from_sentry`",
"Get Ubuntu release codename from sentry unit.",
" :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>",
"<BEGIN>\n## `validate_services`",
"Validate that lists of commands... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chownr API.
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 chownr API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Recursively change user and group ownership of files and directories
in given path. Doesn't chown path itself by default, only its children.
:param str path: The string path to start changing ownership.
:param str owner: The owner string to use when looking up the uid.
:param str group: The group strin... | "Recursively change user and group ownership of files and directories\n in given path. Doesn't chown path itself by default, only its children.\n\n :param str path: The string path to start changing ownership.\n :param str owner: The owner string to use when looking up the uid.\n :param str group: The group... | 1,689 | true | juju/charm-helpers | chownr | 140,806 | |
LDU_FT/mschwager/cohesion/get_module_classes | LDU_FT | [
"<BEGIN>\n## `is_class_method_bound`",
"Return whether a class method is bound to the class\n<END>",
"<BEGIN>\n## `get_class_methods`",
"Return methods associated with a given class\n<END>",
"<BEGIN>\n## `get_class_variables`",
"Return class variables associated with a given class\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module_classes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_module_classes 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... | Return classes associated with a given module | "Return classes associated with a given module" | 12 | false | mschwager/cohesion | get_module_classes | 140,807 | |
LDU_FT/flyingrub/scdl/parse_url | LDU_FT | [
"<BEGIN>\n## `size_in_bytes`",
"Returns the size in bytes from strings such as '5 mb' into 5242880.",
" >>> size_in_bytes('1m')\n 1048576\n >>> size_in_bytes('1.5m')\n 1572864\n >>> size_in_bytes('2g')\n 2147483648\n >>> size_in_bytes(None)\n Traceback (most recent call last):\n r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Detects if a URL is a track or a playlist, and parses the track(s)
to the track downloader | "Detects if a URL is a track or a playlist, and parses the track(s)\n to the track downloader" | 27 | false | flyingrub/scdl | parse_url | 140,808 | |
LDU_FT/romana/multi-ping/_read_all_from_socket | LDU_FT | [
"<BEGIN>\n## `multi_ping`",
"Combine send and receive measurement into single function.",
" This offers a retry mechanism: Overall timeout time is divided by\n number of retries. Additional ICMPecho packets are sent to those\n addresses from which we have not received answers, yet.",
" The retry m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_all_from_socket 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_all_from_socket 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 all packets we currently can on the socket.
Returns list of tuples. Each tuple contains a packet and the time at
which it was received. NOTE: The receive time is the time when our
recv() call returned, which greatly depends on when it was called. The
time is NOT the time at which t... | "Read all packets we currently can on the socket.\n\n Returns list of tuples. Each tuple contains a packet and the time at\n which it was received. NOTE: The receive time is the time when our\n recv() call returned, which greatly depends on when it was called. The\n time is NOT the time at w... | 28 | false | romana/multi-ping | _read_all_from_socket | 140,809 | |
LDU_FT/breuleux/hrepr/stdrepr_iterable | LDU_FT | [
"<BEGIN>\n## `hrepr_with_resources`",
"This is equivalent to __call__, but performs the additional step of\n putting the set of resources required to properly display the object\n in the _resources property of the return value.\n<END>",
"<BEGIN>\n## `acquire_resources`",
"Store the resources ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stdrepr_iterable API.
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 stdrepr_iterable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Helper function to represent iterables. StdHRepr calls this on
lists, tuples, sets and frozensets, but NOT on iterables in general.
This method may be called to produce custom representations.
Arguments:
obj (iterable): The iterable to represent.
cls (optional): The clas... | "Helper function to represent iterables. StdHRepr calls this on\n lists, tuples, sets and frozensets, but NOT on iterables in general.\n This method may be called to produce custom representations.\n\n Arguments:\n obj (iterable): The iterable to represent.\n cls (optional): T... | 32 | false | breuleux/hrepr | stdrepr_iterable | 140,810 | |
LDU_FT/lionheart/django-pyodbc/get_table_list | LDU_FT | [
"<BEGIN>\n## `_get_sql_server_ver`",
"Returns the version of the SQL Server in use:\n<END>",
"<BEGIN>\n## `_switch_tz_offset_sql`",
"Returns the SQL that will convert field_name to UTC from tzname.\n<END>",
"<BEGIN>\n## `datetime_trunc_sql`",
"Given a lookup_type of 'year', 'month', 'day', 'hour', 'minute... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_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 ex... | Returns a list of table names in the current database. | "Returns a list of table names in the current database." | 51 | false | lionheart/django-pyodbc | get_table_list | 140,811 | |
LDU_FT/yougov/vr.common/which | LDU_FT | [
"<BEGIN>\n## `str_to_pool`",
"Given a string containing an nginx upstream section, return the pool name\n and list of nodes.\n<END>",
"<BEGIN>\n## `get_buildfile_path`",
"Path to which a build tarball should be downloaded.\n<END>",
"<BEGIN>\n## `_retry`",
"Try to call f(*args, **kwargs) \"n\" times bef... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the which API.
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 which API.
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... | Search PATH for executable files with the given name.
Taken from Twisted. | "Search PATH for executable files with the given name.\n\n Taken from Twisted." | 49 | false | yougov/vr.common | which | 140,812 | |
LDU_FT/econ-ark/HARK/updatepLvlNextFunc | LDU_FT | [
"<BEGIN>\n## `calcLogSumChoiceProbs`",
"Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updatepLvlNextFunc 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 updatepLvlNextFunc 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... | A method that creates the pLvlNextFunc attribute as a sequence of
linear functions, indicating constant expected permanent income growth
across permanent income levels. Draws on the attribute PermGroFac, and
installs a special retirement function when it exists.
Parameters
----... | "A method that creates the pLvlNextFunc attribute as a sequence of\n linear functions, indicating constant expected permanent income growth\n across permanent income levels. Draws on the attribute PermGroFac, and\n installs a special retirement function when it exists.\n\n Parameters\n ... | 1,253 | true | econ-ark/HARK | updatepLvlNextFunc | 140,813 | |
LDU_FT/fbcotter/py3nvml/nvmlDeviceGetInforomImageVersion | LDU_FT | [
"<BEGIN>\n## `grab_gpus`",
"Checks for gpu availability and sets CUDA_VISIBLE_DEVICES as such.",
" Note that this function does not do anything to 'reserve' gpus, it only\n limits what GPUS your program can see by altering the CUDA_VISIBLE_DEVICES\n variable. Other programs can still come along and sna... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nvmlDeviceGetInforomImageVersion 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 nvmlDeviceGetInforomImageVersion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | r"""
/**
* Retrieves the global infoROM image version
*
* For all products with an inforom.
*
* Image version just like VBIOS version uniquely describes the exact version of the infoROM flashed on the board
* in contrast to infoROM object version which is only an indicator of supported... | "r\"\"\"\n /**\n * Retrieves the global infoROM image version\n *\n * For all products with an inforom.\n *\n * Image version just like VBIOS version uniquely describes the exact version of the infoROM flashed on the board\n * in contrast to infoROM object version which is only an indicator o... | 336 | false | fbcotter/py3nvml | nvmlDeviceGetInforomImageVersion | 140,814 | |
LDU_FT/cnschema/cdata/summarize_entity_person | LDU_FT | [
"<BEGIN>\n## `wikidata_get`",
"https://www.wikidata.org/wiki/Special:EntityData/P248.json\n<END>",
"<BEGIN>\n## `wikidata_search`",
"wikification: search wikipedia pages for the given query\n https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities",
" result format\n {\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize_entity_person 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 summarize_entity_person API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | assume person entity using cnschma person vocabulary, http://cnschema.org/Person | "assume person entity using cnschma person vocabulary, http://cnschema.org/Person" | 29 | false | cnschema/cdata | summarize_entity_person | 140,815 | |
LDU_FT/ethereum/eth-account/_parsePrivateKey | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Generate a string with the encrypted key, as in\n :meth:`~eth_account.account.Account.encrypt`, but without a private key argument.\n<END>",
"<BEGIN>\n## `defunct_hash_message`",
"Convert the provided message into a message hash, to be signed.\n This provides the same prefi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parsePrivateKey API.
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 _parsePrivateKey API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Generate a :class:`eth_keys.datatypes.PrivateKey` from the provided key. If the
key is already of type :class:`eth_keys.datatypes.PrivateKey`, return the key.
:param key: the private key from which a :class:`eth_keys.datatypes.PrivateKey`
will be generated
:type key: hex str... | "Generate a :class:`eth_keys.datatypes.PrivateKey` from the provided key. If the\n key is already of type :class:`eth_keys.datatypes.PrivateKey`, return the key.\n\n :param key: the private key from which a :class:`eth_keys.datatypes.PrivateKey`\n will be generated\n :type key: h... | 92 | false | ethereum/eth-account | _parsePrivateKey | 140,816 | |
LDU_FT/IceflowRE/unidown/create_dir_rec | LDU_FT | [
"<BEGIN>\n## `from_protobuf`",
"Constructor from protobuf.",
" :param proto: protobuf structure\n :type proto: ~unidown.plugin.protobuf.link_item_pb2.LinkItemProto\n :return: the LinkItem\n :rtype: ~unidown.plugin.link_item.LinkItem\n :raises ValueError: name of LinkItem does ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_dir_rec API.
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 create_dir_rec API.
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... | Create a folder recursive.
:param path: path
:type path: ~pathlib.Path | "Create a folder recursive.\n\n :param path: path\n :type path: ~pathlib.Path" | 88 | false | IceflowRE/unidown | create_dir_rec | 140,817 | |
LDU_FT/Stranger6667/postmarker/overview | LDU_FT | [
"<BEGIN>\n## `create`",
"Creates a template.",
" :param Name: Name of template\n :param Subject: The content to use for the Subject when this template is used to send email.\n :param HtmlBody: The content to use for the HtmlBody when this template is used to send email.\n :param Text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the overview API.
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 overview API.
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... | Gets a brief overview of statistics for all of your outbound email. | "Gets a brief overview of statistics for all of your outbound email." | 74 | false | Stranger6667/postmarker | overview | 140,818 | |
LDU_FT/FlaskGuys/Flask-Imagine/get_cached_item | LDU_FT | [
"<BEGIN>\n## `apply`",
"Apply filter to resource\n :param resource: Image\n :return: Image\n<END>",
"<BEGIN>\n## `get_item`",
"Get resource item\n :param path: string\n :return: PIL.Image\n<END>",
"<BEGIN>\n## `create_cached_item`",
"Create cached resource item\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_item API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cached_item API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get cached resource item
:param path: str
:return: PIL.Image | "Get cached resource item\n :param path: str\n :return: PIL.Image" | 66 | false | FlaskGuys/Flask-Imagine | get_cached_item | 140,819 | |
LDU_FT/guaix-ucm/pyemir/position_half_h | LDU_FT | [
"<BEGIN>\n## `merge2images`",
"Merge 2 EMIR images, averaging the common region.",
" Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the position_half_h API.
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 position_half_h API.
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... | Find the position where the value is half of the peak | "Find the position where the value is half of the peak" | 282 | false | guaix-ucm/pyemir | position_half_h | 140,820 | |
LDU_FT/probcomp/crosscat/predictive_probability_multistate | LDU_FT | [
"<BEGIN>\n## `find`",
"Find current canonical representative equivalent to node.",
" Adjust the parent pointer of each node along the way to the root\n to point directly at the root for inverse-Ackerman-fast access.\n<END>",
"<BEGIN>\n## `union`",
"Assert equality of two nodes a and b so find(a) is fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predictive_probability_multistate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predictive_probability_multistate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Calculate probability of cells jointly taking values given a
latent state.
:param Y: A list of constraints to apply when querying. Each constraint
is a triplet of (r,d,v): r is the row index, d is the column
index and v is the value of the constraint
:type Y: list of li... | "Calculate probability of cells jointly taking values given a\n latent state.\n\n :param Y: A list of constraints to apply when querying. Each constraint\n is a triplet of (r,d,v): r is the row index, d is the column\n index and v is the value of the constraint\n :type Y: lis... | 92 | false | probcomp/crosscat | predictive_probability_multistate | 140,821 | |
LDU_FT/seomoz/qless-py/_import | LDU_FT | [
"<BEGIN>\n## `clone`",
"Clone the redis client to be slowlog-compatible\n<END>",
"<BEGIN>\n## `stop`",
"Set everything back to normal and collect our data\n<END>",
"<BEGIN>\n## `class_string`",
"Return a string representative of the class\n<END>",
"<BEGIN>\n## `put`",
"Either create a new job in the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import API.
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 _import API.
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... | 1) Get a reference to the module
2) Check the file that module's imported from
3) If that file's been updated, force a reload of that module
return it | "1) Get a reference to the module\n 2) Check the file that module's imported from\n 3) If that file's been updated, force a reload of that module\n return it" | 66 | false | seomoz/qless-py | _import | 140,822 | |
LDU_FT/deep-compute/funcserver/define_log_pre_format_hooks | LDU_FT | [
"<BEGIN>\n## `tag`",
"Constructs a decorator that tags a function with specified\n strings (@tags). The tags on the decorated function are\n available via fn.tags\n<END>",
"<BEGIN>\n## `raw`",
"Constructs a decorator that marks the fn\n as raw response format\n<END>",
"<BEGIN>\n## `open`",
"Calle... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_log_pre_format_hooks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the define_log_pre_format_hooks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | adds a hook to send to websocket if the run command was selected | "adds a hook to send to websocket if the run command was selected" | 21 | false | deep-compute/funcserver | define_log_pre_format_hooks | 140,823 | |
LDU_FT/bambinos/bambi/run | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset PyMC3 model and all tracked distributions and parameters.\n<END>",
"<BEGIN>\n## `build`",
"Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run the PyMC3 MCMC sampler.
Args:
start: Starting parameter values to pass to sampler; see
pm.sample() documentation for details.
method: The method to use for fitting the model. By default,
'mcmc', in which case the PyMC3 sampler will be used.
... | "Run the PyMC3 MCMC sampler.\n Args:\n start: Starting parameter values to pass to sampler; see\n pm.sample() documentation for details.\n method: The method to use for fitting the model. By default,\n 'mcmc', in which case the PyMC3 sampler will be used.\n ... | 88 | false | bambinos/bambi | run | 140,824 | |
LDU_FT/seomoz/shovel/heirarchical_helper | LDU_FT | [
"<BEGIN>\n## `heirarchical_helper`",
"Return a list of tuples of (fullname, docstring, level) for all the\n tasks in the provided shovel\n<END>",
"<BEGIN>\n## `heirarchical_help`",
"Given a shovel of tasks, display a heirarchical list of the tasks\n<END>",
"<BEGIN>\n## `shovel_help`",
"Return a string ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heirarchical_helper 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 heirarchical_helper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return a list of tuples of (fullname, docstring, level) for all the
tasks in the provided shovel | "Return a list of tuples of (fullname, docstring, level) for all the\n tasks in the provided shovel" | 26 | false | seomoz/shovel | heirarchical_helper | 140,825 | |
LDU_FT/snbuback/django_services/get_permission | LDU_FT | [
"<BEGIN>\n## `get_view_doc`",
"Build view documentation. Return in html format.\n If you want in markdown format, use html=False\n<END>",
"<BEGIN>\n## `wrap_accordion`",
"Wrap text_body_list in twitter bootstrap accordion. text_body_list must be list with tuple with title and body\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permission API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_permission API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Build permission required to access function "func" | "Build permission required to access function \"func\"" | 43 | false | snbuback/django_services | get_permission | 140,826 | |
LDU_FT/jwhitlock/drf-cached-instances/model_function | LDU_FT | [
"<BEGIN>\n## `user_default_serializer`",
"Convert a User to a cached instance representation.\n<END>",
"<BEGIN>\n## `user_default_add_related_pks`",
"Add related primary keys to a User instance.\n<END>",
"<BEGIN>\n## `group_default_invalidator`",
"Invalidated cached items when the Group changes.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return the model-specific caching function. | "Return the model-specific caching function." | 75 | false | jwhitlock/drf-cached-instances | model_function | 140,827 | |
LDU_FT/biocore/burrito/cmdline_generator | LDU_FT | [
"<BEGIN>\n## `which`",
"Equivalent to ``which executable_name`` in a *nix environment.",
" Will return ``None`` if ``executable_name`` cannot be found in ``env_var``\n or if ``env_var`` is not set. Otherwise will return the first match in\n ``env_var``.",
" Note: this function will likely not work... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmdline_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmdline_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Generates command lines that can be used in a cluster environment
param_iter : ParameterIterBase subclass instance
PathToBin : Absolute location primary command (i.e. Python)
PathToCmd : Absolute location of the command
PathsToInputs : Absolute location(s) of input file(s)
PathToOutput : Absolute l... | "Generates command lines that can be used in a cluster environment\n\n param_iter : ParameterIterBase subclass instance\n PathToBin : Absolute location primary command (i.e. Python)\n PathToCmd : Absolute location of the command\n PathsToInputs : Absolute location(s) of input file(s)\n PathToOutput : Abs... | 43 | false | biocore/burrito | cmdline_generator | 140,828 | |
LDU_FT/toumorokoshi/sprinter/_initial_run | LDU_FT | [
"<BEGIN>\n## `whitespace_smart_split`",
"Split a command by whitespace, taking care to not split on\n whitespace within quotes.",
" >>> whitespace_smart_split(\"test this \\\\\\\"in here\\\\\\\" again\")\n ['test', 'this', '\"in here\"', 'again']\n<END>",
"<BEGIN>\n## `sync`",
"execute the steps re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initial_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initial_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Check things during the initial setting of sprinter's global config | "Check things during the initial setting of sprinter's global config" | 150 | false | toumorokoshi/sprinter | _initial_run | 140,829 | |
LDU_FT/ContinuumIO/flask-ldap-login/format_results | LDU_FT | [
"<BEGIN>\n## `validate_ldap`",
"Validate the username/password data against ldap directory\n<END>",
"<BEGIN>\n## `validate`",
"Validates the form by calling `validate` on each field, passing any\n extra `Form.validate_<fieldname>` validators to the field validator.",
" also calls `validate_lda... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Format the ldap results object into somthing that is reasonable | "Format the ldap results object into somthing that is reasonable" | 19 | false | ContinuumIO/flask-ldap-login | format_results | 140,830 | |
LDU_FT/yangl1996/libpagure/project_branches | LDU_FT | [
"<BEGIN>\n## `_call_api`",
"Method used to call the API.\n It returns the raw JSON returned by the API or raises an exception\n if something goes wrong.",
" :arg url: the URL to call\n :kwarg method: the HTTP method to use when calling the specified\n URL, can be GET, POST... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the project_branches API.
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 project_branches API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | List all branches associated with a repository.
:return: | "List all branches associated with a repository.\n :return:" | 62 | false | yangl1996/libpagure | project_branches | 140,831 | |
LDU_FT/budacom/trading-bots/run | LDU_FT | [
"<BEGIN>\n## `fetch_deposits`",
"Fetch latest deposits, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_deposits_since`",
"Fetch all deposits since the given timestamp.\n<END>",
"<BEGIN>\n## `fetch_withdrawals`",
"Fetch latest withdrawals, must provide a limit.\n<END>",
"<BEGIN>\n## `fetch_withdrawal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run a specified BOT by label e.g. 'MyBot | "Run a specified BOT by label e.g. 'MyBot" | 62 | false | budacom/trading-bots | run | 140,832 | |
LDU_FT/deanmalmgren/textract/_get_available_encodings | LDU_FT | [
"<BEGIN>\n## `get_parser`",
"Initialize the parser for the command line interface and bind the\n autocompletion functionality\n<END>",
"<BEGIN>\n## `_get_available_encodings`",
"Get a list of the available encodings to make it easy to\n tab-complete the command line interface.",
" Inspiration from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_available_encodings 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 _get_available_encodings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Get a list of the available encodings to make it easy to
tab-complete the command line interface.
Inspiration from http://stackoverflow.com/a/3824405/564709 | "Get a list of the available encodings to make it easy to\n tab-complete the command line interface.\n\n Inspiration from http://stackoverflow.com/a/3824405/564709" | 36 | false | deanmalmgren/textract | _get_available_encodings | 140,833 | |
LDU_FT/ashleysommer/sanicpluginsframework/update | LDU_FT | [
"<BEGIN>\n## `middleware`",
"Decorate and register middleware\n :param args: captures all of the positional arguments passed in\n :type args: tuple(Any)\n :param kwargs: captures the keyword arguments passed in\n :type kwargs: dict(Any)\n :return: The middleware function to use ... | 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 ContextDict from dict/iterable E and F
:return: Nothing
:rtype: None | "Update ContextDict from dict/iterable E and F\n :return: Nothing\n :rtype: None" | 38 | false | ashleysommer/sanicpluginsframework | update | 140,834 | |
LDU_FT/micropython/micropython/main | LDU_FT | [
"<BEGIN>\n## `ptr`",
"Returns the numbered function (i.e. USART6) for this AF.\n<END>",
"<BEGIN>\n## `run_loop`",
"Start the loop.",
" :param `leds`: Which LEDs to light up upon switch press.\n :type `leds`: sequence of LED objects\n<END>",
"<BEGIN>\n## `find_c_file`",
"Search vpaths for the c fil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Test program for verifying this files functionality. | "Test program for verifying this files functionality." | 54 | false | micropython/micropython | main | 140,835 | |
LDU_FT/RaRe-Technologies/smart_open/write | LDU_FT | [
"<BEGIN>\n## `extract_kwargs`",
"Extract keyword argument documentation from a function's docstring.",
" Parameters\n ----------\n docstring: str\n The docstring to extract keyword arguments from.",
" Returns\n -------\n list of (str, str, list str)",
" str\n The name of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write the given bytes (binary string) to the S3 file.
There's buffering happening under the covers, so this may not actually
do any HTTP transfer right away. | "Write the given bytes (binary string) to the S3 file.\n\n There's buffering happening under the covers, so this may not actually\n do any HTTP transfer right away." | 150 | false | RaRe-Technologies/smart_open | write | 140,836 | |
LDU_FT/bjmorgan/vasppy/validate_checksum | LDU_FT | [
"<BEGIN>\n## `md5sum`",
"Generate the md5 checksum for a string",
" Args:\n string (Str): The string to be checksummed.",
" Returns:\n (Str): The hex checksum.\n<END>",
"<BEGIN>\n## `file_md5`",
"Generate the md5 checksum for a file",
" Args:\n filename (Str): The file to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_checksum API.
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 validate_checksum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Compares the md5 checksum of a file with an expected value.
If the calculated and expected checksum values are not equal,
ValueError is raised.
If the filename `foo` is not found, will try to read a gzipped file named
`foo.gz`. In this case, the checksum is calculated for the unzipped file.
Args:
... | "Compares the md5 checksum of a file with an expected value.\n If the calculated and expected checksum values are not equal, \n ValueError is raised.\n If the filename `foo` is not found, will try to read a gzipped file named\n `foo.gz`. In this case, the checksum is calculated for the unzipped file.\n\n ... | 174 | false | bjmorgan/vasppy | validate_checksum | 140,837 | |
LDU_FT/pydsigner/taskit/set_error | LDU_FT | [
"<BEGIN>\n## `_wait`",
"Based upon an extract from threading.Condition().wait(). Immediately \n tries to acquire the lock, and then sleeps for a period of time (going \n 1/2ms..1ms..2ms..4ms...50ms..50ms), repeating until the lock is \n acquired or the timeout limit is reached.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_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 extract... | Rather than allowing unmanaged exceptions to explode, or raising errors
within thread, the worker thread should call this function with an
error class or instance. | "Rather than allowing unmanaged exceptions to explode, or raising errors \n within thread, the worker thread should call this function with an \n error class or instance." | 59 | false | pydsigner/taskit | set_error | 140,838 | |
LDU_FT/adobe-apiplatform/umapi-client.py/reload | LDU_FT | [
"<BEGIN>\n## `status`",
"Return the connection status, both locally and remotely.",
" The local connection status is a dictionary that gives:\n * the count of multiple queries sent to the server.\n * the count of single queries sent to the server.\n * the count of actions sent to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload API.
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 reload API.
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 ... | Rerun the query (lazily).
The results will contain any values on the server side that have changed since the last run.
:return: None | "Rerun the query (lazily).\n The results will contain any values on the server side that have changed since the last run.\n :return: None" | 78 | false | adobe-apiplatform/umapi-client.py | reload | 140,839 | |
LDU_FT/ngmarchant/oasis/repeat_expt | LDU_FT | [
"<BEGIN>\n## `update`",
"Update the posterior and estimates after a label is sampled",
" Parameters\n ----------\n ell : int\n sampled label: 0 or 1",
" k : int\n index of stratum where label was sampled\n<END>",
"<BEGIN>\n## `_sample_item`",
"Sample an it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repeat_expt API.
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 repeat_expt API.
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... | Parameters
----------
smplr : sub-class of PassiveSampler
sampler must have a sample_distinct method, reset method and ...
n_expts : int
number of expts to run
n_labels : int
number of labels to query from the oracle in each expt | "Parameters\n ----------\n smplr : sub-class of PassiveSampler\n sampler must have a sample_distinct method, reset method and ...\n\n n_expts : int\n number of expts to run\n\n n_labels : int\n number of labels to query from the oracle in each expt" | 115 | false | ngmarchant/oasis | repeat_expt | 140,840 | |
LDU_FT/jameslyons/pycipher/encipher | LDU_FT | [
"<BEGIN>\n## `encipher`",
"Encipher string using Atbash cipher.",
" Example::",
" ciphertext = Atbash().encipher(plaintext) ",
" :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encipher API.
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 encipher API.
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... | Encipher string using FracMorse cipher according to initialised key.
Example::
ciphertext = FracMorse('ROUNDTABLECFGHIJKMPQSVWXYZ').encipher(plaintext)
:param string: The string to encipher.
:returns: The enciphered string. | "Encipher string using FracMorse cipher according to initialised key. \n\n Example::\n\n ciphertext = FracMorse('ROUNDTABLECFGHIJKMPQSVWXYZ').encipher(plaintext) \n\n :param string: The string to encipher.\n :returns: The enciphered string." | 135 | false | jameslyons/pycipher | encipher | 140,841 | |
LDU_FT/dwavesystems/dwave-system/_random_subprocessor | LDU_FT | [
"<BEGIN>\n## `broken_chains`",
"Find the broken chains.",
" Args:\n samples (array_like):\n Samples as a nS x nV array_like object where nS is the number of samples and nV is the\n number of variables. The values should all be 0/1 or -1/+1.",
" chains (list[array_like]):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _random_subprocessor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _random_subprocessor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Creates a random subprocessor where there is a coupler between
every pair of working qubits on opposite sides of the same cell.
This is guaranteed to be minimal in that adding a qubit back in
will reintroduce a bad coupler, but not to have minimum size.
OUTPUT:
an :class:`ed... | "Creates a random subprocessor where there is a coupler between\n every pair of working qubits on opposite sides of the same cell.\n This is guaranteed to be minimal in that adding a qubit back in\n will reintroduce a bad coupler, but not to have minimum size.\n\n OUTPUT:\n an :cl... | 562 | false | dwavesystems/dwave-system | _random_subprocessor | 140,842 | |
LDU_FT/instana/python-sensor/is_agent_ready | LDU_FT | [
"<BEGIN>\n## `run`",
"Span a background thread to periodically report queued spans\n<END>",
"<BEGIN>\n## `record_span`",
"Convert the passed BasicSpan into an JsonSpan and\n add it to the span queue\n<END>",
"<BEGIN>\n## `build_registered_span`",
"Takes a BasicSpan and converts it into a registered... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_agent_ready API.
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 is_agent_ready API.
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... | Used after making a successful announce to test when the agent is ready to accept data. | "Used after making a successful announce to test when the agent is ready to accept data." | 76 | false | instana/python-sensor | is_agent_ready | 140,843 | |
LDU_FT/philgyford/django-spectator/truncate_string | LDU_FT | [
"<BEGIN>\n## `generate_slug`",
"A copy of spectator.core.models.SluggedModelMixin._generate_slug()\n<END>",
"<BEGIN>\n## `set_slug`",
"Create a slug for each Work already in the DB.\n<END>",
"<BEGIN>\n## `get_kinds_data`",
"Returns a dict of all the data about the kinds, keyed to the kind\n value. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the truncate_string API.
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 truncate_string API.
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... | Truncate a string to a certain length, removing line breaks and mutliple
spaces, optionally removing HTML, and appending a 'truncate' string.
Keyword arguments:
strip_html -- boolean.
chars -- Number of characters to return.
at_word_boundary -- Only truncate at a word boundary, which will probably
... | "Truncate a string to a certain length, removing line breaks and mutliple\n spaces, optionally removing HTML, and appending a 'truncate' string.\n\n Keyword arguments:\n strip_html -- boolean.\n chars -- Number of characters to return.\n at_word_boundary -- Only truncate at a word boundary, which will pr... | 169 | false | philgyford/django-spectator | truncate_string | 140,844 | |
LDU_FT/dahlia/sqlalchemy-imageattach/_mark_image_file_deleted | LDU_FT | [
"<BEGIN>\n## `readlines`",
"Reads until EOF using :meth:`readline()`.",
" :param sizehint: if it's present, instead of reading up to EOF,\n whole lines totalling approximately ``sizehint``\n bytes (or more to accommodate a final whole line)\n :type s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mark_image_file_deleted 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 _mark_image_file_deleted API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | When the session flushes, marks images as deleted.
The files of this marked images will be actually deleted
in the image storage when the ongoing transaction succeeds.
If it fails the :attr:`_deleted_images` queue will be just
empty. | "When the session flushes, marks images as deleted.\n The files of this marked images will be actually deleted\n in the image storage when the ongoing transaction succeeds.\n If it fails the :attr:`_deleted_images` queue will be just\n empty." | 145 | false | dahlia/sqlalchemy-imageattach | _mark_image_file_deleted | 140,845 | |
LDU_FT/faxir/faxir-python/update_fax | LDU_FT | [
"<BEGIN>\n## `get_number`",
"Get number information # noqa: E501",
" Get info of a single number # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.get_number(number, async=True)\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_fax API.
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 update_fax API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Modify fax record # noqa: E501
You can modify a fax record's comment or mark it as read # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_fax(fax_id, payload_fax_modification, asyn... | "Modify fax record # noqa: E501\n\n You can modify a fax record's comment or mark it as read # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.update_fax(fax_id, payload_fax_modification... | 80 | false | faxir/faxir-python | update_fax | 140,846 | |
LDU_FT/joeferraro/mm/_setHeaders | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Parse a JSON file\n First remove comments and then use the json module package\n Comments look like :\n // ...\n or\n /*\n ...\n */\n<END>",
"<BEGIN>\n## `get_meta_type_by_dir`",
"> quick and dirty fix for users expe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setHeaders API.
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 _setHeaders API.
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... | Attach particular SOAP headers to the request depending on the method call made | "Attach particular SOAP headers to the request depending on the method call made" | 71 | false | joeferraro/mm | _setHeaders | 140,847 | |
LDU_FT/googlefonts/fontmake/_varLib_finder | LDU_FT | [
"<BEGIN>\n## `exclude_args`",
"Delete options that are not appropriate for a following code path; exit\n with an error if excluded options were passed in by the user.",
" argparse generates a namespace with all options it knows, but not every\n attribute should be passed to all code paths (i.e. options... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _varLib_finder API.
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 _varLib_finder API.
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... | Finder function to be used with varLib.build to find master TTFs given
the filename of the source UFO master as specified in the designspace.
It replaces the UFO directory with the one specified in 'directory'
argument, and replaces the file extension with 'ext'. | "Finder function to be used with varLib.build to find master TTFs given\n the filename of the source UFO master as specified in the designspace.\n It replaces the UFO directory with the one specified in 'directory'\n argument, and replaces the file extension with 'ext'." | 57 | false | googlefonts/fontmake | _varLib_finder | 140,848 | |
LDU_FT/briwilcox/Concurrent-Pandas/set_source_yahoo_options | LDU_FT | [
"<BEGIN>\n## `data_worker`",
"Function to be spawned concurrently,\n consume data keys from input queue, and push the resulting dataframes to output map\n<END>",
"<BEGIN>\n## `get_data`",
"Function to use Python Pandas and / or Quandl to download a dataframe\n Insert resulting dataframe into output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_source_yahoo_options 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 set_source_yahoo_options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Set data source to yahoo finance, specifically to download financial options data | "Set data source to yahoo finance, specifically to download financial options data" | 16 | false | briwilcox/Concurrent-Pandas | set_source_yahoo_options | 140,849 | |
LDU_FT/yunojuno-archive/django-inbound-email/_get_addresses | LDU_FT | [
"<BEGIN>\n## `_decode_POST_value`",
"Helper to decode a request field into unicode based on charsets encoding.",
" Args:\n request: the HttpRequest object.\n field_name: the field expected in the request.POST",
" Kwargs:\n default: if passed in then field is optional and default is ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_addresses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_addresses API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Takes RFC-compliant email addresses in both terse (email only)
and verbose (name + email) forms and returns a list of
email address strings
(TODO: breaking change that returns a tuple of (name, email) per string) | "Takes RFC-compliant email addresses in both terse (email only)\n and verbose (name + email) forms and returns a list of\n email address strings\n\n (TODO: breaking change that returns a tuple of (name, email) per string)" | 29 | false | yunojuno-archive/django-inbound-email | _get_addresses | 140,850 | |
LDU_FT/openstack/monasca-common/load | LDU_FT | [
"<BEGIN>\n## `fmtd_sub_expr_str`",
"Get the entire sub expressions as a string with spaces.\n<END>",
"<BEGIN>\n## `normalized_operator`",
"Get the operator as one of LT, GT, LTE, or GTE.\n<END>",
"<BEGIN>\n## `_get_conn`",
"Get or create a connection to a broker using host and port\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Get the actual implementation of the target. | "Get the actual implementation of the target." | 227 | false | openstack/monasca-common | load | 140,851 | |
LDU_FT/SCIP-Interfaces/PySCIPOpt/scheduling_linear_ordering | LDU_FT | [
"<BEGIN>\n## `gpp`",
"gpp -- model for the graph partitioning problem\n Parameters:\n - V: set/list of nodes in the graph\n - E: set/list of edges in the graph\n Returns a model, ready to be solved.\n<END>",
"<BEGIN>\n## `gpp_soco`",
"gpp -- model for the graph partitioning problem in soco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scheduling_linear_ordering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scheduling_linear_ordering API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | scheduling_linear_ordering: model for the one machine total weighted tardiness problem
Model for the one machine total weighted tardiness problem
using the linear ordering formulation
Parameters:
- J: set of jobs
- p[j]: processing time of job j
- d[j]: latest non-tardy time for jo... | "scheduling_linear_ordering: model for the one machine total weighted tardiness problem\n\n Model for the one machine total weighted tardiness problem\n using the linear ordering formulation\n\n Parameters:\n - J: set of jobs\n - p[j]: processing time of job j\n - d[j]: latest non-tardy ti... | 220 | false | SCIP-Interfaces/PySCIPOpt | scheduling_linear_ordering | 140,852 | |
LDU_FT/pnpnpn/timeout-decorator/timeout | LDU_FT | [
"<BEGIN>\n## `timeout`",
"Add a timeout parameter to a function and return it.",
" :param seconds: optional time limit in seconds or fractions of a second. If None is passed, no timeout is applied.\n This adds some flexibility to the usage: you can disable timing out depending on the settings.\n :t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeout API.
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 timeout API.
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 timeout parameter to a function and return it.
:param seconds: optional time limit in seconds or fractions of a second. If None is passed, no timeout is applied.
This adds some flexibility to the usage: you can disable timing out depending on the settings.
:type seconds: float
:param use_sign... | "Add a timeout parameter to a function and return it.\n\n :param seconds: optional time limit in seconds or fractions of a second. If None is passed, no timeout is applied.\n This adds some flexibility to the usage: you can disable timing out depending on the settings.\n :type seconds: float\n :param us... | 14 | false | pnpnpn/timeout-decorator | timeout | 140,853 | |
LDU_FT/dalloriam/engel/build | LDU_FT | [
"<BEGIN>\n## `load_stylesheet`",
"Proper way to dynamically inject a stylesheet in a page.",
" :param path: Path of the stylesheet to inject.\n<END>",
"<BEGIN>\n## `add_child`",
"Append a widget to the list.",
" :param widget: Object inheriting :class:`~.widgets.base.BaseElement`\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | :param link_type: Link type
:param target: Link target | ":param link_type: Link type\n :param target: Link target" | 40 | false | dalloriam/engel | build | 140,854 | |
LDU_FT/dyve/django-bootstrap3/bootstrap_message_classes | LDU_FT | [
"<BEGIN>\n## `text_concat`",
"Concatenate several values as a text string with an optional separator\n<END>",
"<BEGIN>\n## `bootstrap_message_classes`",
"Return the message classes for a message\n<END>",
"<BEGIN>\n## `bootstrap_css`",
"Return HTML for Bootstrap CSS.\n Adjust url in settings. If no url ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bootstrap_message_classes 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 bootstrap_message_classes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return the message classes for a message | "Return the message classes for a message" | 64 | false | dyve/django-bootstrap3 | bootstrap_message_classes | 140,855 | |
LDU_FT/fredericklussier/ObservablePy/diffuse | LDU_FT | [
"<BEGIN>\n## `observeState`",
"Registers an observer to the any changes.\n The called function should have 2 parameters:\n - previousState,\n - actualState",
" :param func call: The function to call.\n When not given, decorator usage is assumed.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the diffuse API.
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 diffuse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | this is a dispatcher of diffuse implementation.
Depending of the arguments used. | "this is a dispatcher of diffuse implementation.\n Depending of the arguments used." | 34 | false | fredericklussier/ObservablePy | diffuse | 140,856 | |
LDU_FT/python-bonobo/bonobo/_get | LDU_FT | [
"<BEGIN>\n## `run`",
"Main entry point of bonobo. It takes a graph and creates all the necessary plumbing around to execute it.",
" The only necessary argument is a :class:`Graph` instance, containing the logic you actually want to execute.",
" By default, this graph will be executed using the \"threadp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API.
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 _get API.
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... | Read from the input queue.
If Queue raises (like Timeout or Empty), stat won't be changed. | "Read from the input queue.\n\n If Queue raises (like Timeout or Empty), stat won't be changed." | 140 | false | python-bonobo/bonobo | _get | 140,857 | |
LDU_FT/google/textfsm/_GetTable | LDU_FT | [
"<BEGIN>\n## `_SetValues`",
"Set values from supplied dictionary or list.",
" Args:\n values: A Row, dict indexed by column name, or list.",
" Raises:\n TypeError: Argument is not a list or dict, or list is not equal row\n length or dictionary keys don't match.\n<END>",
"<BEGIN>\n## `Fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetTable API.
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 _GetTable API.
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 table, with column headers and separators.
Returns:
The whole table including headers as a string. Each row is
joined by a newline and each entry by self.separator. | "Returns table, with column headers and separators.\n\n Returns:\n The whole table including headers as a string. Each row is\n joined by a newline and each entry by self.separator." | 149 | false | google/textfsm | _GetTable | 140,858 | |
LDU_FT/gtaylor/paypal-python/update_recurring_payments_profile | LDU_FT | [
"<BEGIN>\n## `_check_required`",
"Checks kwargs for the values specified in 'requires', which is a tuple\n of strings. These strings are the NVP names of the required values.\n<END>",
"<BEGIN>\n## `_call`",
"Wrapper method for executing all API commands over HTTP. This method is\n further used t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_recurring_payments_profile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_recurring_payments_profile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Shortcut to the UpdateRecurringPaymentsProfile method.
``profileid`` is the same profile id used for getting profile details.
The keyed arguments are data in the payment profile which you wish to
change. The profileid does not change. Anything else will take the new
value. Most of, tho... | "Shortcut to the UpdateRecurringPaymentsProfile method.\n\n ``profileid`` is the same profile id used for getting profile details.\n\n The keyed arguments are data in the payment profile which you wish to\n change. The profileid does not change. Anything else will take the new\n value. Most ... | 78 | false | gtaylor/paypal-python | update_recurring_payments_profile | 140,859 | |
LDU_FT/LasLabs/python-helpscout/from_api | LDU_FT | [
"<BEGIN>\n## `create`",
"Create an object on HelpScout.",
" Args:\n session (requests.sessions.Session): Authenticated session.\n record (helpscout.BaseModel): The record to be created.\n endpoint_override (str, optional): Override the default\n endpoint us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_api API.
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_api API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Create a new instance from API arguments.
This will switch camelCase keys into snake_case for instantiation.
It will also identify any ``Instance`` or ``List`` properties, and
instantiate the proper objects using the values. The end result being
a fully Objectified and Pythonified API ... | "Create a new instance from API arguments.\n\n This will switch camelCase keys into snake_case for instantiation.\n\n It will also identify any ``Instance`` or ``List`` properties, and\n instantiate the proper objects using the values. The end result being\n a fully Objectified and Pythonifi... | 178 | false | LasLabs/python-helpscout | from_api | 140,860 | |
LDU_FT/lowandrew/OLCTools/estimate_genome_size | LDU_FT | [
"<BEGIN>\n## `classes`",
"Uses .tfa files included in the ResFinder database to determine the resistance class of gene matches\n :param targetpath: Path to database files\n :return: Dictionary of resistance class: gene set\n<END>",
"<BEGIN>\n## `gene_name`",
"Split the FASTA header string into i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_genome_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_genome_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Use kmercountexact from the bbmap suite of tools to estimate the size of the genome | "Use kmercountexact from the bbmap suite of tools to estimate the size of the genome" | 432 | false | lowandrew/OLCTools | estimate_genome_size | 140,861 | |
LDU_FT/aboSamoor/polyglot/_unpickle_method | LDU_FT | [
"<BEGIN>\n## `most_frequent`",
"Only most frequent k words to be included in the embeddings.\n<END>",
"<BEGIN>\n## `normalize_words`",
"Normalize embeddings matrix row-wise.",
" Args:\n ord: normalization order. Possible values {1, 2, 'inf', '-inf'}\n<END>",
"<BEGIN>\n## `nearest_neighbors`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpickle_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpickle_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Unpickle methods properly, including class methods. | "Unpickle methods properly, including class methods." | 189 | false | aboSamoor/polyglot | _unpickle_method | 140,862 | |
LDU_FT/jbarlow83/OCRmyPDF/is_file_writable | LDU_FT | [
"<BEGIN>\n## `re_symlink`",
"Helper function: relinks soft symbolic link if necessary\n<END>",
"<BEGIN>\n## `is_file_writable`",
"Intentionally racy test if target is writable.",
" We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR wor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_file_writable API.
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 is_file_writable API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Intentionally racy test if target is writable.
We intend to write to the output file if and only if we succeed and
can replace it atomically. Before doing the OCR work, make sure
the location is writable. | "Intentionally racy test if target is writable.\n\n We intend to write to the output file if and only if we succeed and\n can replace it atomically. Before doing the OCR work, make sure\n the location is writable." | 195 | false | jbarlow83/OCRmyPDF | is_file_writable | 140,863 | |
LDU_FT/push-things/wallabag_api/patch_entries | LDU_FT | [
"<BEGIN>\n## `query`",
"Do a query to the System API",
" :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>",
"<BEGIN>\n## `handle_json_response`",
"get th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | PATCH /api/entries/{entry}.{_format}
Change several properties of an entry
:param entry: the entry to 'patch' / update
:param kwargs: can contain one of the following
title: string
tags: a list of tags tag1,tag2,tag3
archive: '0' or '1', default '0' archive... | "PATCH /api/entries/{entry}.{_format}\n\n Change several properties of an entry\n\n :param entry: the entry to 'patch' / update\n :param kwargs: can contain one of the following\n title: string\n tags: a list of tags tag1,tag2,tag3\n archive: '0' or '1', default '0... | 68 | false | push-things/wallabag_api | patch_entries | 140,864 | |
LDU_FT/remind101/stacker_blueprints/create_record_set | LDU_FT | [
"<BEGIN>\n## `create_sqs_policy`",
"This method creates the SQS policy needed for an SNS subscription. It\n also takes the ARN of the SQS queue and converts it to the URL needed\n for the subscription, as that takes a URL rather than the ARN.\n<END>",
"<BEGIN>\n## `create_topic`",
"Creates the S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_record_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_record_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Accept a record_set dict. Return a Troposphere record_set object. | "Accept a record_set dict. Return a Troposphere record_set object." | 53 | false | remind101/stacker_blueprints | create_record_set | 140,865 | |
LDU_FT/mozilla/Marketplace.Python/_get_error_reason | LDU_FT | [
"<BEGIN>\n## `prepare_request`",
"Prepare the request body and headers",
" :returns: headers of the signed request\n<END>",
"<BEGIN>\n## `_get_error_reason`",
"Extract error reason from the response. It might be either\n the 'reason' or the entire response\n<END>",
"<BEGIN>\n## `fetch`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_error_reason API.
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_error_reason API.
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 error reason from the response. It might be either
the 'reason' or the entire response | "Extract error reason from the response. It might be either\n the 'reason' or the entire response" | 30 | false | mozilla/Marketplace.Python | _get_error_reason | 140,866 | |
LDU_FT/honzamach/pynspect/p_term | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse given data.",
" data:\n A string containing the filter definition\n filename:\n Name of the file being parsed (for meaningful\n error messages)\n debuglevel:\n Debug level to yacc\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_term API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_term API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | term : factor OP_PLUS term
| factor OP_MINUS term
| factor OP_TIMES term
| factor OP_DIVIDE term
| factor OP_MODULO term
| factor | "term : factor OP_PLUS term\n | factor OP_MINUS term\n | factor OP_TIMES term\n | factor OP_DIVIDE term\n | factor OP_MODULO term\n | factor" | 143 | false | honzamach/pynspect | p_term | 140,867 | |
LDU_FT/openstack/hacking/hacking_python3x_print_function | LDU_FT | [
"<BEGIN>\n## `hacking_todo_format`",
"Check for 'TODO()'.",
" OpenStack HACKING guide recommendation for TODO:\n Include your name with TODOs as in \"# TODO(termie)\"",
" Okay: # TODO(sdague)\n H101: # TODO fail\n H101: # TODO\n H101: # TODO (jogo) fail\n Okay: TODO = 5\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_python3x_print_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hacking_python3x_print_function API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | r"""Check that all print occurrences look like print functions.
Check that all occurrences of print look like functions, not
print operator. As of Python 3.x, the print operator has
been removed.
Okay: print(msg)
Okay: print (msg)
Okay: print msg # noqa
Okay: print()
H233: print msg
... | "r\"\"\"Check that all print occurrences look like print functions.\n\n Check that all occurrences of print look like functions, not\n print operator. As of Python 3.x, the print operator has\n been removed.\n\n\n Okay: print(msg)\n Okay: print (msg)\n Okay: print msg # noqa\n Okay: print()\n H... | 114 | false | openstack/hacking | hacking_python3x_print_function | 140,868 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/commit_and_push | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit_and_push API.
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 commit_and_push API.
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... | Commit changed, new, and deleted files in the repo and attempt to push the branch to the remote repository.
:raise CalledProcessError: Unhandled git command failure.
:raise GitError: Conflicting changes made in remote by other client and bad git config for commits.
:param str local_root: Local path to git... | "Commit changed, new, and deleted files in the repo and attempt to push the branch to the remote repository.\n\n :raise CalledProcessError: Unhandled git command failure.\n :raise GitError: Conflicting changes made in remote by other client and bad git config for commits.\n\n :param str local_root: Local path ... | 172 | false | Robpol86/sphinxcontrib-versioning | commit_and_push | 140,869 | |
LDU_FT/pandas-dev/pandas/_try_coerce_args | LDU_FT | [
"<BEGIN>\n## `to_offset`",
"Return DateOffset object from string or tuple representation\n or datetime.timedelta object",
" Parameters\n ----------\n freq : str, tuple, datetime.timedelta, DateOffset or None",
" Returns\n -------\n DateOffset\n None if freq is None.",
" Raises... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _try_coerce_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _try_coerce_args API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | localize and return i8 for the values
Parameters
----------
values : ndarray-like
other : ndarray-like or scalar
Returns
-------
base-type values, base-type other | "localize and return i8 for the values\n\n Parameters\n ----------\n values : ndarray-like\n other : ndarray-like or scalar\n\n Returns\n -------\n base-type values, base-type other" | 8,110 | true | pandas-dev/pandas | _try_coerce_args | 140,870 | |
LDU_FT/yfpeng/bioc/parse_annotation | LDU_FT | [
"<BEGIN>\n## `decodes`",
"Deserialize ``s`` to a BioC collection object.",
" Args:\n s: a \"str\" instance containing a BioC collection",
" Returns:\n an object of BioCollection\n<END>",
"<BEGIN>\n## `decode`",
"Deserialize ``fp`` to a BioC collection object.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_annotation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_annotation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Deserialize a dict obj to a BioCAnnotation object | "Deserialize a dict obj to a BioCAnnotation object" | 75 | false | yfpeng/bioc | parse_annotation | 140,871 | |
LDU_FT/jlaine/python-netfilter/run | LDU_FT | [
"<BEGIN>\n## `log`",
"Writes the contents of the Extension to the logging system.\n<END>",
"<BEGIN>\n## `specbits`",
"Returns the array of arguments that would be given to\n iptables for the current Extension.\n<END>",
"<BEGIN>\n## `log`",
"Writes the contents of the Rule to the logging system.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Process command line arguments and run the given command command
(start, stop, restart). | "Process command line arguments and run the given command command\n (start, stop, restart)." | 20 | false | jlaine/python-netfilter | run | 140,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.