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/yero13/na3x/upsert_multi | LDU_FT | [
"<BEGIN>\n## `agg_multi_func`",
"Aggregates several functions\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregates\n :param agg_funcs: list of aggregate functions\n :param group_by: field used to determine group\n :return: dict {agg_fu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upsert_multi API.
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 upsert_multi API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Wrapper for pymongo.insert_many() and update_many()
:param db: db connection
:param collection: collection to update
:param object: the modifications to apply
:param match_params: a query that matches the documents to update
:return: ids of inserted/updated document | "Wrapper for pymongo.insert_many() and update_many()\n :param db: db connection\n :param collection: collection to update\n :param object: the modifications to apply\n :param match_params: a query that matches the documents to update\n :return: ids of inserted/updated document" | 82 | false | yero13/na3x | upsert_multi | 10,573 | |
LDU_FT/opentracing-contrib/python-tornado/on_finish | LDU_FT | [
"<BEGIN>\n## `tracer_config`",
"Wraps the Tornado web application initialization so that the\n TornadoTracing instance is created around an OpenTracing-compatible tracer.\n<END>",
"<BEGIN>\n## `trace`",
"Function decorator that traces functions\n NOTE: Must be placed before the Tornado decorators\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_finish API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_finish API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Wrap the handler ``on_finish`` method to finish the Span for the
given request, if available. | "Wrap the handler ``on_finish`` method to finish the Span for the\n given request, if available." | 12 | false | opentracing-contrib/python-tornado | on_finish | 10,574 | |
LDU_FT/FlorianRhiem/pyGLFW/set_window_refresh_callback | LDU_FT | [
"<BEGIN>\n## `_find_library_candidates`",
"Finds and returns filenames which might be the library you are looking for.\n<END>",
"<BEGIN>\n## `_load_library`",
"Finds, loads and returns the most recent version of the library.\n<END>",
"<BEGIN>\n## `_get_library_search_paths`",
"Returns a list of library se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_window_refresh_callback 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 set_window_refresh_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Sets the refresh callback for the specified window.
Wrapper for:
GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun); | "Sets the refresh callback for the specified window.\n\n Wrapper for:\n GLFWwindowrefreshfun glfwSetWindowRefreshCallback(GLFWwindow* window, GLFWwindowrefreshfun cbfun);" | 105 | false | FlorianRhiem/pyGLFW | set_window_refresh_callback | 10,575 | |
LDU_FT/matousc89/padasip/adapt | LDU_FT | [
"<BEGIN>\n## `standardize_back`",
"This is function for de-standarization of input series.",
" **Args:**",
" * `xs` : standardized input (1 dimensional array)",
" * `offset` : offset to add (float).",
" * `scale` : scale (float).",
" **Returns:**",
" * `x` : original (destandardised)... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adapt API.
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 adapt API.
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... | Adapt weights according one desired value and its input.
Args:
* `d` : desired value (float)
* `x` : input array (1-dimensional array) | "Adapt weights according one desired value and its input.\n\n Args:\n\n * `d` : desired value (float)\n\n * `x` : input array (1-dimensional array)" | 327 | false | matousc89/padasip | adapt | 10,576 | |
LDU_FT/Yelp/threat_intel/risk_score | LDU_FT | [
"<BEGIN>\n## `init_poolmanager`",
"Called to initialize the HTTPAdapter when no proxy is used.\n<END>",
"<BEGIN>\n## `proxy_manager_for`",
"Called to initialize the HTTPAdapter when a proxy is used.\n<END>",
"<BEGIN>\n## `make_calls`",
"Adds appropriate sleep to avoid making too many calls.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the risk_score API.
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 risk_score API.
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... | Performs Umbrella risk score analysis on the input domains
Args:
domains: an enumerable of domains
Returns:
An enumerable of associated domain risk scores | "Performs Umbrella risk score analysis on the input domains\n\n Args:\n domains: an enumerable of domains\n Returns:\n An enumerable of associated domain risk scores" | 149 | false | Yelp/threat_intel | risk_score | 10,577 | |
LDU_FT/AustralianSynchrotron/lightflow/list_workers | LDU_FT | [
"<BEGIN>\n## `is_connected`",
"Returns the connection status of the data store.",
" Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>",
"<BEGIN>\n## `connect`",
"Establishes a connection to the MongoDB server.",
" Use the MongoProxy library in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_workers API.
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 list_workers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a list of all available workers.
Args:
config (Config): Reference to the configuration object from which the
settings are retrieved.
filter_by_queues (list): Restrict the returned workers to workers that listen to
at least one of the queue names in this list.
Ret... | "Return a list of all available workers.\n\n Args:\n config (Config): Reference to the configuration object from which the\n settings are retrieved.\n filter_by_queues (list): Restrict the returned workers to workers that listen to\n at least one of the queue names in this list.\n... | 404 | false | AustralianSynchrotron/lightflow | list_workers | 10,578 | |
LDU_FT/googlefonts/ufo2ft/parseLayoutFeatures | LDU_FT | [
"<BEGIN>\n## `isValidFeatureWriter`",
"Return True if 'klass' is a valid feature writer class.\n A valid feature writer class is a class (of type 'type'), that has\n two required attributes:\n 1) 'tableTag' (str), which can be \"GSUB\", \"GPOS\", or other similar tags.\n 2) 'write' (bound method), wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseLayoutFeatures 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 parseLayoutFeatures 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... | Parse OpenType layout features in the UFO and return a
feaLib.ast.FeatureFile instance. | "Parse OpenType layout features in the UFO and return a\n feaLib.ast.FeatureFile instance." | 224 | false | googlefonts/ufo2ft | parseLayoutFeatures | 10,579 | |
LDU_FT/rapidpro/expressions/_if | LDU_FT | [
"<BEGIN>\n## `_read_requirements`",
"Returns a list of package requirements read from the file.\n<END>",
"<BEGIN>\n## `field`",
"Reference a field in string separated by a delimiter\n<END>",
"<BEGIN>\n## `epoch`",
"Converts the given date to the number of seconds since January 1st, 1970 UTC\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _if API.
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 _if API.
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... | Returns one value if the condition evaluates to TRUE, and another value if it evaluates to FALSE | "Returns one value if the condition evaluates to TRUE, and another value if it evaluates to FALSE" | 124 | false | rapidpro/expressions | _if | 10,580 | |
LDU_FT/Duke-QCD/hic/qn | LDU_FT | [
"<BEGIN>\n## `qn`",
"Calculate the complex flow vector `Q_n`.",
" :param array-like phi: Azimuthal angles.",
" :param int n: One or more harmonics to calculate.",
" :returns:\n A single complex number if only one ``n`` was given or a complex array\n for multiple ``n``.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the qn API.
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 qn API.
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... | Calculate the complex flow vector `Q_n`.
:param array-like phi: Azimuthal angles.
:param int n: One or more harmonics to calculate.
:returns:
A single complex number if only one ``n`` was given or a complex array
for multiple ``n``. | "Calculate the complex flow vector `Q_n`.\n\n :param array-like phi: Azimuthal angles.\n\n :param int n: One or more harmonics to calculate.\n\n :returns:\n A single complex number if only one ``n`` was given or a complex array\n for multiple ``n``." | 30 | false | Duke-QCD/hic | qn | 10,581 | |
LDU_FT/objectrocket/python-client/_concrete_acl | LDU_FT | [
"<BEGIN>\n## `register_extension_class`",
"Instantiate the given extension class and register as a public attribute of the given base.",
" README: The expected protocol here is to instantiate the given extension and pass the base\n object as the first positional argument, then unpack args and kwargs as ad... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _concrete_acl API.
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 _concrete_acl API.
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... | Concretize an ACL document.
:param dict acl_doc: A document describing an ACL entry. Should come from the API.
:returns: An :py:class:`Acl`, or None.
:rtype: :py:class:`bases.BaseInstance` | "Concretize an ACL document.\n\n :param dict acl_doc: A document describing an ACL entry. Should come from the API.\n :returns: An :py:class:`Acl`, or None.\n :rtype: :py:class:`bases.BaseInstance`" | 118 | false | objectrocket/python-client | _concrete_acl | 10,582 | |
LDU_FT/jantman/pypi-download-stats/per_country_data | LDU_FT | [
"<BEGIN>\n## `_path_for_file`",
"Generate the path on disk for a specified project and date.",
" :param project_name: the PyPI project name for the data\n :type project: str\n :param date: the date for the data\n :type date: datetime.datetime\n :return: path for where to store... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_country_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the per_country_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return download data by country.
:return: dict of cache data; keys are datetime objects, values are
dict of country (str) to count (int)
:rtype: dict | "Return download data by country.\n\n :return: dict of cache data; keys are datetime objects, values are\n dict of country (str) to count (int)\n :rtype: dict" | 135 | false | jantman/pypi-download-stats | per_country_data | 10,583 | |
LDU_FT/cdumay/kser/next | LDU_FT | [
"<BEGIN>\n## `check_required_params`",
"Check if all required parameters are set\n<END>",
"<BEGIN>\n## `_onsuccess`",
"To execute on execution success",
" :param kser.result.Result result: Execution result\n :return: Execution result\n :rtype: kser.result.Result\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the next API.
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 next API.
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... | Find the next task
:param kser.sequencing.task.Task task: previous task
:return: The next task
:rtype: kser.sequencing.task.Task or None | "Find the next task\n\n :param kser.sequencing.task.Task task: previous task\n :return: The next task\n :rtype: kser.sequencing.task.Task or None" | 94 | false | cdumay/kser | next | 10,584 | |
LDU_FT/striglia/pyramid_swagger/validators_for_request | LDU_FT | [
"<BEGIN>\n## `includeme`",
":type config: :class:`pyramid.config.Configurator`\n<END>",
"<BEGIN>\n## `validate_swagger_schema`",
"Validate the structure of Swagger schemas against the spec.",
" **Valid only for Swagger v1.2 spec**",
" Note: It is possible that resource_listing is not present in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validators_for_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validators_for_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Takes a request and returns a validator mapping for the request.
:param request: A Pyramid request to fetch schemas for
:type request: :class:`pyramid.request.Request`
:returns: a :class:`pyramid_swagger.load_schema.ValidatorMap` which can
be used to validate `request` | "Takes a request and returns a validator mapping for the request.\n\n :param request: A Pyramid request to fetch schemas for\n :type request: :class:`pyramid.request.Request`\n :returns: a :class:`pyramid_swagger.load_schema.ValidatorMap` which can\n be used to validate `request`" | 101 | false | striglia/pyramid_swagger | validators_for_request | 10,585 | |
LDU_FT/twitterdev/twitter-python-ads-sdk/all_stats | LDU_FT | [
"<BEGIN>\n## `content_type`",
"Returns the content-type value determined by file extension.\n<END>",
"<BEGIN>\n## `__init_chunked_upload`",
"Initialization for a multi-chunk upload.\n<END>",
"<BEGIN>\n## `__upload_chunk`",
"Uploads a single chunk of a multi-chunk upload.\n<END>",
"<BEGIN>\n## `save`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Pulls a list of metrics for a specified set of object IDs. | "Pulls a list of metrics for a specified set of object IDs." | 74 | false | twitterdev/twitter-python-ads-sdk | all_stats | 10,586 | |
LDU_FT/waleedka/hiddenlayer/draw_summary | LDU_FT | [
"<BEGIN>\n## `format_step`",
"Return the step value in format suitable for display.\n<END>",
"<BEGIN>\n## `log`",
"Record metrics at a specific step. E.g.",
" my_history.log(34, loss=2.3, accuracy=0.2)",
" Okay to call multiple times for the same step. New values overwrite\n older one... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the draw_summary API.
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 draw_summary API.
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... | Inserts a text summary at the top that lists the number of steps and total
training time. | "Inserts a text summary at the top that lists the number of steps and total\n training time." | 50 | false | waleedka/hiddenlayer | draw_summary | 10,587 | |
LDU_FT/rosenbrockc/ci/_load_db | LDU_FT | [
"<BEGIN>\n## `_get_github`",
"Creates an instance of github.Github to interact with the repos via the \n API interface in pygithub.\n<END>",
"<BEGIN>\n## `_parse_repo`",
"Parses a <repo> tag to update settings on this Repository instance.",
" :arg xml: the <repo> tag XMLElement.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_db API.
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 _load_db API.
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... | Deserializes the script database from JSON. | "Deserializes the script database from JSON." | 123 | false | rosenbrockc/ci | _load_db | 10,588 | |
LDU_FT/noahbenson/pimms/merge | LDU_FT | [
"<BEGIN>\n## `to_argv_schema`",
"to_argv_schema(instructions) yields a valid tuple of CommandLineParser instructions for the\n given instructions tuple; by itself, this will only return the instructions as they are, but\n optional arguments (below) will override the values in the instructions if provide... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
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 merge API.
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... | merge(...) lazily collapses all arguments, which must be python Mapping objects of some kind,
into a single mapping from left-to-right. The mapping that is returned is a lazy persistent
object that does not request the value of a key from any of the maps provided until they are
requested of it; in thi... | "merge(...) lazily collapses all arguments, which must be python Mapping objects of some kind,\n into a single mapping from left-to-right. The mapping that is returned is a lazy persistent\n object that does not request the value of a key from any of the maps provided until they are\n requested of it; in... | 241 | false | noahbenson/pimms | merge | 10,589 | |
LDU_FT/LonamiWebs/Telethon/send | LDU_FT | [
"<BEGIN>\n## `collect`",
"Create a `self` iterator and collect it into a `TotalList`\n (a normal list with a `.total` attribute).\n<END>",
"<BEGIN>\n## `handler`",
"#full: Advises to read \"Accessing the full API\" in the docs.\n<END>",
"<BEGIN>\n## `handler`",
"#search query: Searches for \"query\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | This method enqueues the given request to be sent. Its send
state will be saved until a response arrives, and a ``Future``
that will be resolved when the response arrives will be returned:
.. code-block:: python
async def method():
# Sending (enqueued for the send l... | "This method enqueues the given request to be sent. Its send\n state will be saved until a response arrives, and a ``Future``\n that will be resolved when the response arrives will be returned:\n\n .. code-block:: python\n\n async def method():\n # Sending (enqueued for th... | 1,037 | true | LonamiWebs/Telethon | send | 10,590 | |
LDU_FT/data61/clkhash/crypto_bloom_filter | LDU_FT | [
"<BEGIN>\n## `convert_v1_to_v2`",
"Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>",
"<BEGIN>\n## `from_json_dict`",
"Create a Schema for v1 or v2 according to dct",
" :param dct: This dictionary must have a `'features'`\n key spec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crypto_bloom_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crypto_bloom_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Computes the composite Bloom filter encoding of a record.
Using the method from
http://www.record-linkage.de/-download=wp-grlc-2011-02.pdf
:param record: plaintext record tuple. E.g. (index, name, dob, gender)
:param tokenizers: A list of tokenizers. A tokenizer is a function that
... | "Computes the composite Bloom filter encoding of a record.\n\n Using the method from\n http://www.record-linkage.de/-download=wp-grlc-2011-02.pdf\n\n :param record: plaintext record tuple. E.g. (index, name, dob, gender)\n :param tokenizers: A list of tokenizers. A tokenizer is a function th... | 212 | false | data61/clkhash | crypto_bloom_filter | 10,591 | |
LDU_FT/Locu/chronology/validate_event_and_assign_id | LDU_FT | [
"<BEGIN>\n## `is_remote_allowed`",
"Check if `remote` is allowed to make a CORS request.\n<END>",
"<BEGIN>\n## `endpoint`",
"Returns a decorator which when applied a function, causes that function to\n serve `url` and only allows the HTTP methods in `methods`\n<END>",
"<BEGIN>\n## `get_seconds`",
"Conver... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_event_and_assign_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_event_and_assign_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Ensure that the event has a valid time. Assign a random UUID based on the
event time. | "Ensure that the event has a valid time. Assign a random UUID based on the\n event time." | 156 | false | Locu/chronology | validate_event_and_assign_id | 10,592 | |
LDU_FT/Kaggle/kaggle-api/datasets_download | LDU_FT | [
"<BEGIN>\n## `language`",
"Sets the language of this KernelPushRequest.",
" The language that the kernel is written in # noqa: E501",
" :param language: The language of this KernelPushRequest. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `kernel_type`",
"Sets the kernel_type of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datasets_download API.
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 datasets_download API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Download dataset file # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.datasets_download(owner_slug, dataset_slug, async_req=True)
>>> result = thread.get()
:param async_req ... | "Download dataset file # noqa: E501\n\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.datasets_download(owner_slug, dataset_slug, async_req=True)\n >>> result = thread.get()\n\n :param as... | 304 | false | Kaggle/kaggle-api | datasets_download | 10,593 | |
LDU_FT/rasguanabana/ytfs/__search | LDU_FT | [
"<BEGIN>\n## `__getChannelId`",
"Obtain channel id for channel name, if present in ``self.search_params``.\n<END>",
"<BEGIN>\n## `__searchParser`",
"Parse `query` for advanced search options.",
" Parameters\n ----------\n query : str\n Search query to parse. Besides a search ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __search API.
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 __search API.
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... | Method responsible for searching using YouTube API.
Parameters
----------
pt : str
Token of search results page. If ``None``, then the first page is downloaded.
Returns
-------
results : dict
Parsed JSON returned by YouTube API. | "Method responsible for searching using YouTube API.\n\n Parameters\n ----------\n pt : str\n Token of search results page. If ``None``, then the first page is downloaded.\n\n Returns\n -------\n results : dict\n Parsed JSON returned by YouTube API." | 109 | false | rasguanabana/ytfs | __search | 10,594 | |
LDU_FT/NiklasRosenstein-Python/nr-deprecated/match_version_pattern | LDU_FT | [
"<BEGIN>\n## `skip`",
"Must be called from within `__enter__()`. Performs some magic to have a\n #ContextSkipped exception be raised the moment the with context is entered.\n The #ContextSkipped must then be handled in `__exit__()` to suppress the\n propagation of the exception.",
" > Important: This functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_version_pattern 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 match_version_pattern API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Matches a single version upgrade pattern in the specified *filename*
and returns the match information. Returns a #Match object or #None
if the *pattern* did not match. | "Matches a single version upgrade pattern in the specified *filename*\n and returns the match information. Returns a #Match object or #None\n if the *pattern* did not match." | 305 | false | NiklasRosenstein-Python/nr-deprecated | match_version_pattern | 10,595 | |
LDU_FT/edx/edx-django-utils/set_all_tiers | LDU_FT | [
"<BEGIN>\n## `accumulate_metric`",
"Accumulate a custom metric (name and value) in the metrics cache.\n<END>",
"<BEGIN>\n## `_batch_report`",
"Report the collected custom metrics to New Relic.\n<END>",
"<BEGIN>\n## `process_response`",
"Logs memory data after processing response.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_all_tiers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_all_tiers API.
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... | Caches the value for the provided key in both the request cache and the
django cache.
Args:
key (string)
value (object)
django_cache_timeout (int): (Optional) Timeout used to determine
if and for how long to cache in the django cache. A timeout of
... | "Caches the value for the provided key in both the request cache and the\n django cache.\n\n Args:\n key (string)\n value (object)\n django_cache_timeout (int): (Optional) Timeout used to determine\n if and for how long to cache in the django cache. A timeou... | 55 | false | edx/edx-django-utils | set_all_tiers | 10,596 | |
LDU_FT/matthewdeanmartin/jiggle_version/version_by_pip | LDU_FT | [
"<BEGIN>\n## `require_python`",
"Require at least a minimum Python version.",
" The version number is expressed in terms of `sys.hexversion`. E.g. to\n require a minimum of Python 2.6, use::",
" >>> require_python(0x206000f0)",
" :param minimum: Minimum Python version supported.\n :type mini... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the version_by_pip API.
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 version_by_pip API.
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... | Don't use this for bumping code, unless it is dot installed,
this is going to look at pip installed packages?
:param package:
:return: | "Don't use this for bumping code, unless it is dot installed,\n this is going to look at pip installed packages?\n :param package:\n :return:" | 124 | false | matthewdeanmartin/jiggle_version | version_by_pip | 10,597 | |
LDU_FT/Dapid/tmscoring/_load_data_index | LDU_FT | [
"<BEGIN>\n## `get_default_values`",
"Make a crude estimation of the alignment using the center of mass\n and general C->N orientation.\n<END>",
"<BEGIN>\n## `get_matrix`",
"Build the rotation-translation matrix.",
" It has the form:",
" [ | dx ]\n [ R | dy ]\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_data_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load the coordinates of the CA of the common residues. | "Load the coordinates of the CA of the common residues." | 15 | false | Dapid/tmscoring | _load_data_index | 10,598 | |
LDU_FT/DsixTools/python-smeftrunner/dump_wcxf | LDU_FT | [
"<BEGIN>\n## `load`",
"Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>",
"<BEGIN>\n## `lha2matrix`",
"Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_wcxf API.
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 dump_wcxf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a string representation of the Wilson coefficients `C_out`
in WCxf format. If `stream` is specified, export it to a file.
`fmt` defaults to `yaml`, but can also be `json`.
Note that the Wilson coefficients are rotated into the Warsaw basis
as defined in WCxf, i.e. to the basis wh... | "Return a string representation of the Wilson coefficients `C_out`\n in WCxf format. If `stream` is specified, export it to a file.\n `fmt` defaults to `yaml`, but can also be `json`.\n\n Note that the Wilson coefficients are rotated into the Warsaw basis\n as defined in WCxf, i.e. to the ba... | 58 | false | DsixTools/python-smeftrunner | dump_wcxf | 10,599 | |
LDU_FT/architv/soccer-cli/get_league_scores | LDU_FT | [
"<BEGIN>\n## `get_team_scores`",
"Queries the API and gets the particular team scores\n<END>",
"<BEGIN>\n## `get_standings`",
"Queries the API and gets the standings for a particular league\n<END>",
"<BEGIN>\n## `get_league_scores`",
"Queries the API and fetches the scores for fixtures\n based upon... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_league_scores API.
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_league_scores API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Queries the API and fetches the scores for fixtures
based upon the league and time parameter | "Queries the API and fetches the scores for fixtures\n based upon the league and time parameter" | 50 | false | architv/soccer-cli | get_league_scores | 10,600 | |
LDU_FT/MAVENSDC/cdflib/close | LDU_FT | [
"<BEGIN>\n## `encode`",
"Encodes the epoch(s) into UTC string(s).",
" For CDF_EPOCH:\n The input should be either a float or list of floats\n (in numpy, a np.float64 or a np.ndarray of np.float64)\n Each epoch is encoded, by default to a ISO 8601 form:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
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 close API.
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... | Closes the CDF Class.
1. If compression was set, this is where the compressed file is
written.
2. If a checksum is needed, this will place the checksum at the end
of the file. | "Closes the CDF Class.\n\n 1. If compression was set, this is where the compressed file is\n written.\n 2. If a checksum is needed, this will place the checksum at the end\n of the file." | 229 | false | MAVENSDC/cdflib | close | 10,601 | |
LDU_FT/NerdWalletOSS/savage/_get_limit_and_offset | LDU_FT | [
"<BEGIN>\n## `delete`",
"Performs a hard delete on a row, which means the row is deleted from the Savage\n table as well as the archive table.",
" :param table: the model class which inherits from\n :class:`~savage.models.user_table.SavageModelMixin` and specifies the model\n of the user tab... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_limit_and_offset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_limit_and_offset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a 0-indexed offset and limit based on page and page_size for a MySQL query. | "Returns a 0-indexed offset and limit based on page and page_size for a MySQL query." | 60 | false | NerdWalletOSS/savage | _get_limit_and_offset | 10,602 | |
LDU_FT/emirozer/bowshock/search_local_galaxies | LDU_FT | [
"<BEGIN>\n## `search_target_obj`",
"Query for a specific target:",
" http://asterank.com/api/skymorph/search?<params>\n target\tTarget object (lookup in MPC).\n<END>",
"<BEGIN>\n## `search_orbit`",
"Query based on orbital elements:",
" http://asterank.com/api/skymorph/search_orbit?<params>\n e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_local_galaxies 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 search_local_galaxies API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | It is also possible to query the local galaxies by label, here is an example of querying for the local galaxy labeled IC 10
http://star-api.herokuapp.com/api/v1/local_groups/IC 10 | "It is also possible to query the local galaxies by label, here is an example of querying for the local galaxy labeled IC 10\n\n http://star-api.herokuapp.com/api/v1/local_groups/IC 10" | 90 | false | emirozer/bowshock | search_local_galaxies | 10,603 | |
LDU_FT/ponty/confduino/remove_board | LDU_FT | [
"<BEGIN>\n## `upgrade_many`",
"upgrade many libs.",
" source: http://arduino.cc/playground/Main/LibraryList",
" you can set your arduino path if it is not default\n os.environ['ARDUINO_HOME'] = '/home/...'\n<END>",
"<BEGIN>\n## `install_hwpack`",
"install hwpackrary from web or local files system... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_board API.
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 remove_board API.
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... | remove board.
:param board_id: board id (e.g. 'diecimila')
:rtype: None | "remove board.\n\n :param board_id: board id (e.g. 'diecimila')\n :rtype: None" | 61 | false | ponty/confduino | remove_board | 10,604 | |
LDU_FT/bitesofcode/projexui/generateResourceFile | LDU_FT | [
"<BEGIN>\n## `addEntry`",
"Creates a new entry item for this widget.\r",
" :param key | <str>\r\n value | <variant>\n<END>",
"<BEGIN>\n## `dictionary`",
"Returns a dictionary of the key/value pairing for the items in\r\n this widget.\r",
" :return {<s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generateResourceFile 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 generateResourceFile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generates a Qt resource file based on the given source path. This will
take all the files and folders within the source and generate a new XML
representation of that path. An optional outpath can be provided as the
generated resource path, by default it will be called the name of the
source path.
... | "Generates a Qt resource file based on the given source path. This will\r\n take all the files and folders within the source and generate a new XML\r\n representation of that path. An optional outpath can be provided as the\r\n generated resource path, by default it will be called the name of the\r\n sour... | 4,917 | true | bitesofcode/projexui | generateResourceFile | 10,605 | |
LDU_FT/kobejohn/PQHelper/_score_eot_for_actor | LDU_FT | [
"<BEGIN>\n## `_create_board_image_cv`",
"Return a cv image of the board or empty board if not provided.\n<END>",
"<BEGIN>\n## `_draw_swap_cv`",
"Add a white tile border to indicate the swap.\n<END>",
"<BEGIN>\n## `_convert_cv_to_tk`",
"Convert an OpenCV image to a tkinter PhotoImage\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _score_eot_for_actor 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 _score_eot_for_actor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Have the actor evaluate the end of turn for itself only. | "Have the actor evaluate the end of turn for itself only." | 114 | false | kobejohn/PQHelper | _score_eot_for_actor | 10,606 | |
LDU_FT/carlosp420/dataset-creator/convert_to_string | LDU_FT | [
"<BEGIN>\n## `split_data`",
"Splits the list of SeqRecordExpanded objects into lists, which are\n kept into a bigger list.",
" If the file_format is Nexus, then it is only partitioned by gene. If it\n is FASTA, then it needs partitioning by codon positions if required.",
" Example:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_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... | Takes a list of SeqRecordExpanded objects corresponding to a gene_code
and produces the gene_block as string.
:param block:
:return: str. | "Takes a list of SeqRecordExpanded objects corresponding to a gene_code\n and produces the gene_block as string.\n\n :param block:\n :return: str." | 54 | false | carlosp420/dataset-creator | convert_to_string | 10,607 | |
LDU_FT/openstack/pyghmi/_make_ipmi_payload | LDU_FT | [
"<BEGIN>\n## `get_bootdev`",
"Get current boot device override information.",
" :raises: PyghmiException on error\n :returns: dict\n<END>",
"<BEGIN>\n## `set_bootdev`",
"Set boot device to use on next reboot",
" :param bootdev:\n *network -- Request network boot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_ipmi_payload 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 _make_ipmi_payload 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... | This function generates the core ipmi payload that would be
applicable for any channel (including KCS) | "This function generates the core ipmi payload that would be\n applicable for any channel (including KCS)" | 273 | false | openstack/pyghmi | _make_ipmi_payload | 10,608 | |
LDU_FT/stitchfix/pyxley/create_line_plot | LDU_FT | [
"<BEGIN>\n## `set_float`",
"Set a float option.",
" Args:\n option (str): name of option.\n value (float): value of the option.",
" Raises:\n TypeError: Value must be a float.\n<END>",
"<BEGIN>\n## `set_integer`",
"Set an integer option.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_line_plot API.
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_line_plot API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | create a mg line plot
Args:
df (pandas.DataFrame): data to plot | "create a mg line plot\n\n Args:\n df (pandas.DataFrame): data to plot" | 82 | false | stitchfix/pyxley | create_line_plot | 10,609 | |
LDU_FT/tensorflow/lucid/image | LDU_FT | [
"<BEGIN>\n## `SvelteComponent`",
"Display svelte components in iPython.",
" Args:\n name: name of svelte component (must match component filename when built)\n path: path to compile svelte .js file or source svelte .html file.\n (If html file, we try to call svelte and build the file.)",
" Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the image API.
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 image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Display an image.
Args:
array: NumPy array representing the image
fmt: Image format e.g. png, jpeg
domain: Domain of pixel values, inferred from min & max values if None
w: width of output image, scaled using nearest neighbor interpolation.
size unchanged if None | "Display an image.\n\n Args:\n array: NumPy array representing the image\n fmt: Image format e.g. png, jpeg\n domain: Domain of pixel values, inferred from min & max values if None\n w: width of output image, scaled using nearest neighbor interpolation.\n size unchanged if None" | 296 | false | tensorflow/lucid | image | 10,610 | |
LDU_FT/gmr/queries/create | LDU_FT | [
"<BEGIN>\n## `close`",
"Close the connection",
" :raises: ConnectionBusyError\n<END>",
"<BEGIN>\n## `busy`",
"Return if the connection is currently executing a query or is locked\n by a session that still exists.",
" :rtype: bool\n<END>",
"<BEGIN>\n## `free`",
"Remove the lock on ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Create a new pool, with the ability to pass in values to override
the default idle TTL and the default maximum size.
A pool's idle TTL defines the amount of time that a pool can be open
without any sessions before it is removed.
A pool's max size defines the maximum number of connectio... | "Create a new pool, with the ability to pass in values to override\n the default idle TTL and the default maximum size.\n\n A pool's idle TTL defines the amount of time that a pool can be open\n without any sessions before it is removed.\n\n A pool's max size defines the maximum number of co... | 181 | false | gmr/queries | create | 10,611 | |
LDU_FT/Kozea/pygal/compute_logarithmic_scale | LDU_FT | [
"<BEGIN>\n## `erfinv`",
"Approximation of the inverse error function\n https://en.wikipedia.org/wiki/Error_function\n #Approximation_with_elementary_functions\n<END>",
"<BEGIN>\n## `confidence_interval_continuous`",
"Continuous confidence interval from sample size and standard error\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_logarithmic_scale 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 compute_logarithmic_scale API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Compute an optimal scale for logarithmic | "Compute an optimal scale for logarithmic" | 147 | false | Kozea/pygal | compute_logarithmic_scale | 10,612 | |
LDU_FT/bayesimpact/fex/_get_args | LDU_FT | [
"<BEGIN>\n## `run`",
"Run all FeatureExtractors and output results to CSV.\n<END>",
"<BEGIN>\n## `_generate_features`",
"Run all FeatureExtractors and record results in a key-value format.",
" :param feature_extractors: iterable of `FeatureExtractor` objects.\n<END>",
"<BEGIN>\n## `emit`",
"Use t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extract... | Argparse logic lives here.
returns: parsed arguments. | "Argparse logic lives here.\n\n returns: parsed arguments." | 18 | false | bayesimpact/fex | _get_args | 10,613 | |
LDU_FT/melizalab/arf/create_dataset | LDU_FT | [
"<BEGIN>\n## `open_file`",
"Open an ARF file, creating as necessary.",
" Use this instead of h5py.File to ensure that root-level attributes and group\n creation property lists are set correctly.\n<END>",
"<BEGIN>\n## `create_entry`",
"Create a new ARF entry under group, setting required attributes.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_dataset API.
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_dataset API.
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 an ARF dataset under group, setting required attributes
Required arguments:
name -- the name of dataset in which to store the data
data -- the data to store
Data can be of the following types:
* sampled data: an N-D numerical array of measurements
* "simple" event data: a 1-D array... | "Create an ARF dataset under group, setting required attributes\n\n Required arguments:\n name -- the name of dataset in which to store the data\n data -- the data to store\n\n Data can be of the following types:\n\n * sampled data: an N-D numerical array of measurements\n * \"simple\" event data:... | 45 | false | melizalab/arf | create_dataset | 10,614 | |
LDU_FT/GoogleCloudPlatform/python-repo-tools/update_command | LDU_FT | [
"<BEGIN>\n## `read_config`",
"Reads pylintrc config into native ConfigParser object.",
" Args:\n contents (str): The contents of the file containing the INI config.",
" Returns:\n ConfigParser.ConfigParser: The parsed configuration.\n<END>",
"<BEGIN>\n## `load_local_config`",
"Loads th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_command API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Updates all dependencies the specified requirements file. | "Updates all dependencies the specified requirements file." | 57 | false | GoogleCloudPlatform/python-repo-tools | update_command | 10,615 | |
LDU_FT/jleclanche/fireplace/buff | LDU_FT | [
"<BEGIN>\n## `get_spell_damage`",
"Returns the amount of damage \\a amount will do, taking\n\t\tSPELLPOWER and SPELLPOWER_DOUBLE into account.\n<END>",
"<BEGIN>\n## `can_pay_cost`",
"Returns whether the player can pay the resource cost of a card.\n<END>",
"<BEGIN>\n## `pay_cost`",
"Make player pay \\a amo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the buff API.
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 buff API.
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... | Summon \a buff and apply it to \a target
If keyword arguments are given, attempt to set the given
values to the buff. Example:
player.buff(target, health=random.randint(1, 5))
NOTE: Any Card can buff any other Card. The controller of the
Card that buffs the target becomes the controller of the buff. | "Summon \\a buff and apply it to \\a target\n\t\tIf keyword arguments are given, attempt to set the given\n\t\tvalues to the buff. Example:\n\t\tplayer.buff(target, health=random.randint(1, 5))\n\t\tNOTE: Any Card can buff any other Card. The controller of the\n\t\tCard that buffs the target becomes the controller of t... | 52 | false | jleclanche/fireplace | buff | 10,616 | |
LDU_FT/toloco/pyoanda/get_accounts | LDU_FT | [
"<BEGIN>\n## `check`",
"Logic extracted from:\n http://developer.oanda.com/rest-live/orders/#createNewOrder\n<END>",
"<BEGIN>\n## `__get_response`",
"Creates a response object with the given params and option",
" Parameters\n ----------\n url : string\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_accounts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_accounts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get a list of accounts owned by the user.
Parameters
----------
username : string
The name of the user. Note: This is only required on the
sandbox, on production systems your access token will
identify you.
See more:
... | "Get a list of accounts owned by the user.\n\n Parameters\n ----------\n username : string\n The name of the user. Note: This is only required on the\n sandbox, on production systems your access token will\n identify you.\n\n See m... | 46 | false | toloco/pyoanda | get_accounts | 10,617 | |
LDU_FT/gplepage/lsqfit/set | LDU_FT | [
"<BEGIN>\n## `run`",
"Append version number to lsqfit/__init__.py\n<END>",
"<BEGIN>\n## `_reformat`",
"Apply format of ``p`` to data in 1-d array ``buf``.\n<END>",
"<BEGIN>\n## `_unpack_data`",
"Unpack data and prior into ``(x, y, prior, fdata)``.",
" This routine unpacks ``data`` and ``prior`` into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Reset default keyword parameters.
Assigns new default values from dictionary ``kargs`` to the fitter's
keyword parameters. Keywords for the underlying :mod:`lsqfit` fitters
can also be included (or grouped together in dictionary
``fitterargs``).
Returns tuple ``(kargs, oldkarg... | "Reset default keyword parameters.\n\n Assigns new default values from dictionary ``kargs`` to the fitter's\n keyword parameters. Keywords for the underlying :mod:`lsqfit` fitters\n can also be included (or grouped together in dictionary\n ``fitterargs``).\n\n Returns tuple ``(kargs,... | 208 | false | gplepage/lsqfit | set | 10,618 | |
LDU_FT/xolox/python-verboselogs/success | LDU_FT | [
"<BEGIN>\n## `add_log_level`",
"Add a new log level to the :mod:`logging` module.",
" :param value: The log level's number (an integer).\n :param name: The name for the log level (a string).\n<END>",
"<BEGIN>\n## `notice`",
"Log a message with level :data:`NOTICE`. The arguments are interpreted as for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the success API.
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 success API.
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... | Log a message with level :data:`SUCCESS`. The arguments are interpreted as for :func:`logging.debug()`. | "Log a message with level :data:`SUCCESS`. The arguments are interpreted as for :func:`logging.debug()`." | 15 | false | xolox/python-verboselogs | success | 10,619 | |
LDU_FT/xflr6/concepts/rename_property | LDU_FT | [
"<BEGIN>\n## `lattice`",
"Return graphviz source for visualizing the lattice graph.\n<END>",
"<BEGIN>\n## `load`",
"Load and parse serialized objects, properties, bools from file.\n<END>",
"<BEGIN>\n## `dump`",
"Write serialized objects, properties, bools to file.\n<END>",
"<BEGIN>\n## `load_csv`",
"L... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename_property API.
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 rename_property API.
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... | Replace the name of a property by a new one. | "Replace the name of a property by a new one." | 56 | false | xflr6/concepts | rename_property | 10,620 | |
LDU_FT/cogeotiff/rio-tiler/_landsat_parse_scene_id | LDU_FT | [
"<BEGIN>\n## `_meters_per_pixel`",
"Return the pixel resolution for a given mercator tile zoom and lattitude.",
" Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _landsat_parse_scene_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _landsat_parse_scene_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... | Parse Landsat-8 scene id.
Author @perrygeo - http://www.perrygeo.com | "Parse Landsat-8 scene id.\n\n Author @perrygeo - http://www.perrygeo.com" | 137 | false | cogeotiff/rio-tiler | _landsat_parse_scene_id | 10,621 | |
LDU_FT/singularityhub/singularity-python/get_container_contents | LDU_FT | [
"<BEGIN>\n## `get_template`",
"get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>",
"<BEGIN>\n## `container_similarity_vector`",
"container similarity_vector is similar to compare_packages, but intended\n to compare ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_container_contents 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_container_contents API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | get_container_contents will return a list of folders and or files
for a container. The environmental variable SINGULARITY_HUB being set
means that container objects are referenced instead of packages
:param container: the container to get content for
:param gets: a list of file names to return, without ... | "get_container_contents will return a list of folders and or files\n for a container. The environmental variable SINGULARITY_HUB being set\n means that container objects are referenced instead of packages\n :param container: the container to get content for\n :param gets: a list of file names to return, wit... | 135 | false | singularityhub/singularity-python | get_container_contents | 10,622 | |
LDU_FT/maxfischer2781/chainlet/bundle_sequences | LDU_FT | [
"<BEGIN>\n## `skip_pickle_inject`",
"skip global wrapper._raw_slave names used only for pickle support\n<END>",
"<BEGIN>\n## `wraplet_signature`",
"have wrapplets use the signature of the slave\n<END>",
"<BEGIN>\n## `_chain_forks`",
"Detect whether a sequence of elements leads to a fork of streams\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bundle_sequences API.
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 bundle_sequences API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Convert sequence types to bundles
This converter automatically constructs a :py:class:`~.Bundle`
from any :py:class:`tuple`, :py:class:`list` or :py:class:`set`
encountered during linking.
The following two lines produce the same chain:
.. code:: python
a >> [b, c, d] >> e
a >> Bu... | "Convert sequence types to bundles\n\n This converter automatically constructs a :py:class:`~.Bundle`\n from any :py:class:`tuple`, :py:class:`list` or :py:class:`set`\n encountered during linking.\n The following two lines produce the same chain:\n\n .. code:: python\n\n a >> [b, c, d] >> e\n ... | 95 | false | maxfischer2781/chainlet | bundle_sequences | 10,623 | |
LDU_FT/danielfrg/word2vec/generate_response | LDU_FT | [
"<BEGIN>\n## `ix`",
"Returns the index on self.vocab and self.clusters for 'word'\n<END>",
"<BEGIN>\n## `get_cluster`",
"Returns the cluster number for a word in the vocabulary\n<END>",
"<BEGIN>\n## `distance`",
"Compute the distance distance between two vectors or more (all combinations) of words",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Generates a pure python (no numpy) response based on numpy arrays
returned by `self.cosine` and `self.analogy` | "Generates a pure python (no numpy) response based on numpy arrays\n returned by `self.cosine` and `self.analogy`" | 42 | false | danielfrg/word2vec | generate_response | 10,624 | |
LDU_FT/mrcagney/gtfstk/describe | LDU_FT | [
"<BEGIN>\n## `get_stop_times`",
"Return a subset of ``feed.stop_times``.",
" Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date",
" Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the describe API.
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 describe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a DataFrame of various feed indicators and values,
e.g. number of routes.
Specialize some those indicators to the given sample date,
e.g. number of routes active on the date.
Parameters
----------
feed : Feed
sample_date : string
YYYYMMDD date string specifying the date to co... | "Return a DataFrame of various feed indicators and values,\n e.g. number of routes.\n Specialize some those indicators to the given sample date,\n e.g. number of routes active on the date.\n\n Parameters\n ----------\n feed : Feed\n sample_date : string\n YYYYMMDD date string specifying the ... | 474 | false | mrcagney/gtfstk | describe | 10,625 | |
LDU_FT/resonai/ybt/find_project_config_file | LDU_FT | [
"<BEGIN>\n## `norm_name`",
"Return a normalized canonical target name for the `target_name`\n observed in build module `build_module`.",
" A normalized canonical target name is of the form \"<build module>:<name>\",\n where <build module> is the relative normalized path from the project root\n to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_project_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_project_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return absolute path to project-specific config file, if it exists.
:param project_root: Absolute path to project root directory.
A project config file is a file named `YCONFIG_FILE` found at the top
level of the project root dir.
Return `None` if project root dir is not specified,
or if no such ... | "Return absolute path to project-specific config file, if it exists.\n\n :param project_root: Absolute path to project root directory.\n\n A project config file is a file named `YCONFIG_FILE` found at the top\n level of the project root dir.\n\n Return `None` if project root dir is not specified,\n or if... | 284 | false | resonai/ybt | find_project_config_file | 10,626 | |
LDU_FT/CenturyLinkCloud/clc-python-sdk/Change | LDU_FT | [
"<BEGIN>\n## `SetCredentials`",
"Establish API username and password associated with APIv2 commands.\n<END>",
"<BEGIN>\n## `get_session`",
"Start a session with the given parameters",
"\tUse instead of SetCredentials if you need a session object to avoid the use of global credentials.",
"\tReturns a sessi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Change API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Change API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Change existing server object.
One more more fields can be set and method will return with a requests
object for all queued activities. This is a convenience function - all
each of these changes requires a seperate API call. Some API calls are synchronous
(e.g. changing group ID or password) while others are... | "Change existing server object.\n\n\t\tOne more more fields can be set and method will return with a requests\n\t\tobject for all queued activities. This is a convenience function - all\n\t\teach of these changes requires a seperate API call. Some API calls are synchronous\n\t\t(e.g. changing group ID or password) wh... | 402 | false | CenturyLinkCloud/clc-python-sdk | Change | 10,627 | |
LDU_FT/KeplerGO/K2fov/rotateInDeclination | LDU_FT | [
"<BEGIN>\n## `angSepVincenty`",
"Vincenty formula for distances on a sphere\n<END>",
"<BEGIN>\n## `parse_file`",
"Parse a comma-separated file with columns \"ra,dec,magnitude\".\n<END>",
"<BEGIN>\n## `K2onSilicon`",
"Checks whether targets are on silicon during a given campaign.",
" This function wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotateInDeclination 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 rotateInDeclination 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... | Rotation is chosen so a rotation of 90 degrees from zenith
ends up at ra=0, dec=0 | "Rotation is chosen so a rotation of 90 degrees from zenith\n ends up at ra=0, dec=0" | 185 | false | KeplerGO/K2fov | rotateInDeclination | 10,628 | |
LDU_FT/inveniosoftware-attic/invenio-upgrader/pending | LDU_FT | [
"<BEGIN>\n## `has_table`",
"Return True if table exists, False otherwise.\n<END>",
"<BEGIN>\n## `pending`",
"Command for showing upgrades ready to be applied.\n<END>",
"<BEGIN>\n## `applied`",
"Command for showing all upgrades already applied.\n<END>",
"<BEGIN>\n## `release`",
"Create a new release up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pending API.
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 pending API.
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... | Command for showing upgrades ready to be applied. | "Command for showing upgrades ready to be applied." | 59 | false | inveniosoftware-attic/invenio-upgrader | pending | 10,629 | |
LDU_FT/ociu/sphinx-traceability-extension/make_item_ref | LDU_FT | [
"<BEGIN>\n## `purge_items`",
"Clean, if existing, ``item`` entries in ``traceability_all_items``\n environment variable, for all the source docs being purged.",
" This function should be triggered upon ``env-purge-doc`` event.\n<END>",
"<BEGIN>\n## `process_item_nodes`",
"This function should be trigg... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_item_ref API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_item_ref API.
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... | Creates a reference node for an item, embedded in a
paragraph. Reference text adds also a caption if it exists. | "Creates a reference node for an item, embedded in a\n paragraph. Reference text adds also a caption if it exists." | 17 | false | ociu/sphinx-traceability-extension | make_item_ref | 10,630 | |
LDU_FT/Miserlou/Zappa/colorize_log_entry | LDU_FT | [
"<BEGIN>\n## `route_sns_task`",
"Gets SNS Message, deserialises the message,\n imports the function, calls the function with args\n<END>",
"<BEGIN>\n## `run_message`",
"Runs a function defined by a message object with keys:\n 'task_path', 'args', and 'kwargs' used by lambda routing\n and a 'command' ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colorize_log_entry 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 colorize_log_entry 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... | Apply various heuristics to return a colorized version of a string.
If these fail, simply return the string in plaintext. | "Apply various heuristics to return a colorized version of a string.\n If these fail, simply return the string in plaintext." | 312 | false | Miserlou/Zappa | colorize_log_entry | 10,631 | |
LDU_FT/pymc-devs/pymc/stochastic_from_scipy_dist | LDU_FT | [
"<BEGIN>\n## `moral_graph`",
"moral_graph(model,format='raw', prog='dot', path=None)",
" Draws the moral graph for this model and writes it to path with filename name.\n Returns the pydot 'dot' object for further user manipulation.",
" GraphViz and PyDot must be installed to use this function.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stochastic_from_scipy_dist 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 stochastic_from_scipy_dist API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Return a Stochastic subclass made from a particular SciPy distribution. | "Return a Stochastic subclass made from a particular SciPy distribution." | 1,025 | true | pymc-devs/pymc | stochastic_from_scipy_dist | 10,632 | |
LDU_FT/glue-viz/echo/add_callback | LDU_FT | [
"<BEGIN>\n## `add_callback`",
"Attach a callback function to a property in an instance",
" Parameters\n ----------\n instance\n The instance to add the callback to\n prop : str\n Name of callback property in `instance`\n callback : func\n The callback function to add\n ech... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback API.
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 add_callback API.
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... | Add a callback that gets triggered when a callback property of the
class changes.
Parameters
----------
name : str
The instance to add the callback to.
callback : func
The callback function to add
echo_old : bool, optional
If `True`, t... | "Add a callback that gets triggered when a callback property of the\n class changes.\n\n Parameters\n ----------\n name : str\n The instance to add the callback to.\n callback : func\n The callback function to add\n echo_old : bool, optional\n I... | 88 | false | glue-viz/echo | add_callback | 10,633 | |
LDU_FT/Kopachris/seshet/_add_channel_names | LDU_FT | [
"<BEGIN>\n## `_add_channel_names`",
"Add a new channel to self.channels and initialize its user list.",
" Called as event handler for RPL_NAMES events. Do not call directly.\n<END>",
"<BEGIN>\n## `join`",
"Add this user to the channel's user list and add the channel to this\n user's list of jo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_channel_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_channel_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.
Th... | Add a new channel to self.channels and initialize its user list.
Called as event handler for RPL_NAMES events. Do not call directly. | "Add a new channel to self.channels and initialize its user list.\n\n Called as event handler for RPL_NAMES events. Do not call directly." | 49 | false | Kopachris/seshet | _add_channel_names | 10,634 | |
LDU_FT/kontron/python-ipmi/_padd_password | LDU_FT | [
"<BEGIN>\n## `sel_entries`",
"Generator which returns all SEL entries.\n<END>",
"<BEGIN>\n## `initiate_upgrade_action`",
"Initiate Upgrade Action\n components:\n action:\n ACTION_BACKUP_COMPONENT = 0x00\n ACTION_PREPARE_COMPONENT = 0x01\n ACTION_UPLOAD_FOR_UPGRAD... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _padd_password API.
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 _padd_password API.
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... | The password/key is 0 padded to 16-bytes for all specified
authentication types. | "The password/key is 0 padded to 16-bytes for all specified\n authentication types." | 87 | false | kontron/python-ipmi | _padd_password | 10,635 | |
LDU_FT/ngmarchant/oasis/_update_estimate_and_sampler | 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 _update_estimate_and_sampler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_estimate_and_sampler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Update the estimate after querying the label for an item | "Update the estimate after querying the label for an item" | 115 | false | ngmarchant/oasis | _update_estimate_and_sampler | 10,636 | |
LDU_FT/dwavesystems/dwave-cloud-client/decode_qp | LDU_FT | [
"<BEGIN>\n## `ls`",
"List configuration files detected (and/or examined paths).\n<END>",
"<BEGIN>\n## `create`",
"Create and/or update cloud client configuration file.\n<END>",
"<BEGIN>\n## `_ping`",
"Helper method for the ping command that uses `output()` for info output\n and raises `CLIError()` on h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_qp API.
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 decode_qp API.
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... | Decode SAPI response that uses `qp` format, without numpy.
The 'qp' format is the current encoding used for problems and samples.
In this encoding the reply is generally json, but the samples, energy,
and histogram data (the occurrence count of each solution), are all
base64 encoded arrays. | "Decode SAPI response that uses `qp` format, without numpy.\n\n The 'qp' format is the current encoding used for problems and samples.\n In this encoding the reply is generally json, but the samples, energy,\n and histogram data (the occurrence count of each solution), are all\n base64 encoded arrays." | 339 | false | dwavesystems/dwave-cloud-client | decode_qp | 10,637 | |
LDU_FT/fkarb/xltable/value | LDU_FT | [
"<BEGIN>\n## `itersheets`",
"Iterates over the worksheets in the book, and sets the active\n worksheet as the current one before yielding.\n<END>",
"<BEGIN>\n## `to_xlsx`",
"Write workbook to a .xlsx file using xlsxwriter.\n Return a xlsxwriter.workbook.Workbook.",
" :param kwargs: Extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value API.
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 value API.
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... | Set a calculated value for this Expression.
Used when writing formulas using XlsxWriter to give cells
an initial value when the sheet is loaded without being calculated. | "Set a calculated value for this Expression.\n Used when writing formulas using XlsxWriter to give cells\n an initial value when the sheet is loaded without being calculated." | 48 | false | fkarb/xltable | value | 10,638 | |
LDU_FT/ace0/pyrelic/dp | LDU_FT | [
"<BEGIN>\n## `assertSameType`",
"Raises an exception if @b is not an instance of type(@a)\n<END>",
"<BEGIN>\n## `assertType`",
"Asserts that a variable @var is of an @expectedType. Raises a TypeError\n if the assertion fails.\n<END>",
"<BEGIN>\n## `dp`",
"Debugging print. Prints a list of labels and va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dp API.
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 dp API.
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... | Debugging print. Prints a list of labels and values, each on their
own line. | "Debugging print. Prints a list of labels and values, each on their\n own line." | 109 | false | ace0/pyrelic | dp | 10,639 | |
LDU_FT/openstack/proliantutils/get_manager | LDU_FT | [
"<BEGIN>\n## `_exec_ipmitool`",
"Execute the ipmitool command.",
" This uses the lanplus interface to communicate with the BMC device driver.",
" :param driver_info: the ipmitool parameters for accessing a node.\n :param command: the ipmitool command to be executed.\n<END>",
"<BEGIN>\n## `get_nic_c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Given the identity return a HPEManager object
:param identity: The identity of the Manager resource
:returns: The Manager object | "Given the identity return a HPEManager object\n\n :param identity: The identity of the Manager resource\n :returns: The Manager object" | 929 | false | openstack/proliantutils | get_manager | 10,640 | |
LDU_FT/brbsix/subnuker/prerequisites | LDU_FT | [
"<BEGIN>\n## `getch`",
"Request a single character input from the user.\n<END>",
"<BEGIN>\n## `ismatch`",
"Test whether text contains string or matches regex.\n<END>",
"<BEGIN>\n## `parse`",
"Parse command-line arguments. Arguments may consist of any\n combination of directories, files, and options.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prerequisites API.
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 prerequisites API.
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... | Display information about obtaining the aeidon module. | "Display information about obtaining the aeidon module." | 36 | false | brbsix/subnuker | prerequisites | 10,641 | |
LDU_FT/MIT-LCP/wfdb-python/get_sig_segments | LDU_FT | [
"<BEGIN>\n## `find_peaks`",
"Find hard peaks and soft peaks in a signal, defined as follows:",
" - Hard peak: a peak that is either /\\ or \\/\n - Soft peak: a peak that is either /-*\\ or \\-*/\n In this case we define the middle as the peak",
" Parameters\n ----------\n sig : np array\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sig_segments API.
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_sig_segments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get a list of the segment numbers that contain a particular signal
(or a dictionary of segment numbers for a list of signals)
Only works if information about the segments has been read in | "Get a list of the segment numbers that contain a particular signal\n (or a dictionary of segment numbers for a list of signals)\n Only works if information about the segments has been read in" | 538 | false | MIT-LCP/wfdb-python | get_sig_segments | 10,642 | |
LDU_FT/hendrix/hendrix/remove | LDU_FT | [
"<BEGIN>\n## `save_chat_message`",
"kwargs will always include:",
" 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},",
" 'dispatcher': \n # the dispatcher tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API.
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 remove API.
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 ... | Unsubscribe this participant from all topic to which it is subscribed. | "Unsubscribe this participant from all topic to which it is subscribed." | 119 | false | hendrix/hendrix | remove | 10,643 | |
LDU_FT/commonsense/metanl/_morphy_best | LDU_FT | [
"<BEGIN>\n## `unicode_is_punctuation`",
"Test if a token is made entirely of Unicode characters of the following\n classes:",
" - P: punctuation\n - S: symbols\n - Z: separators\n - M: combining marks\n - C: control characters",
" >>> unicode_is_punctuation('word')\n False\n >>> uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _morphy_best API.
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 _morphy_best API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Get the most likely stem for a word using Morphy, once the input has been
pre-processed by morphy_stem(). | "Get the most likely stem for a word using Morphy, once the input has been\n pre-processed by morphy_stem()." | 70 | false | commonsense/metanl | _morphy_best | 10,644 | |
LDU_FT/scidash/sciunit/rec_apply | LDU_FT | [
"<BEGIN>\n## `mean`",
"Compute a total score for each model over all the tests.",
" Uses the `norm_score` attribute, since otherwise direct comparison\n across different kinds of scores would not be possible.\n<END>",
"<BEGIN>\n## `to_html`",
"Extend Pandas built in `to_html` method for render... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rec_apply API.
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 rec_apply API.
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... | Used to determine parent directory n levels up
by repeatedly applying os.path.dirname | "Used to determine parent directory n levels up\n by repeatedly applying os.path.dirname" | 128 | false | scidash/sciunit | rec_apply | 10,645 | |
LDU_FT/ttm/socialLegacy/getFriends | LDU_FT | [
"<BEGIN>\n## `searchTag`",
"Set Twitter search or stream criteria for the selection of tweets\n<END>",
"<BEGIN>\n## `makeRetweetNetwork`",
"Receives tweets, returns directed retweet networks.",
" Without and with isolated nodes.\n<END>",
"<BEGIN>\n## `makeNetwork`",
"Makes graph object from .gdf load... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getFriends API.
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 getFriends API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns user_ids (that you have access) of the friends of your friend with user_ids | "Returns user_ids (that you have access) of the friends of your friend with user_ids" | 45 | false | ttm/socialLegacy | getFriends | 10,646 | |
LDU_FT/BlackEarth/bxml/val_to_css | LDU_FT | [
"<BEGIN>\n## `tempfile`",
"write the docx to a named tmpfile and return the tmpfile filename\n<END>",
"<BEGIN>\n## `match`",
"decorator that allows us to match by expression or by xpath for each transformation method\n<END>",
"<BEGIN>\n## `get_match`",
"for the given elem, return the @match function that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the val_to_css API.
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 val_to_css API.
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... | convert the Word val to a CSS unit
val : The raw Word val
factor : The conversion factor. If font sizes, typically factor=1/2., others factor=1/20.
unit : The CSS unit to which we are converting, default CSS.rem
pt_per_em : The number of CSS.pt per em. 12. is the default, but 'ta... | "convert the Word val to a CSS unit\n val : The raw Word val\n factor : The conversion factor. If font sizes, typically factor=1/2., others factor=1/20.\n unit : The CSS unit to which we are converting, default CSS.rem\n pt_per_em : The number of CSS.pt per em. 12. is the default, bu... | 91 | false | BlackEarth/bxml | val_to_css | 10,647 | |
LDU_FT/sdispater/poetry/solve | LDU_FT | [
"<BEGIN>\n## `path_to_url`",
"Convert a path to a file: URL. The path will be made absolute and have\n quoted path parts.\n<END>",
"<BEGIN>\n## `is_installable_dir`",
"Return True if `path` is a directory containing a setup.py file.\n<END>",
"<BEGIN>\n## `get_requires_for_build_wheel`",
"Returns a lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the solve API.
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 solve API.
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... | Finds a set of dependencies that match the root package's constraints,
or raises an error if no such set is available. | "Finds a set of dependencies that match the root package's constraints,\n or raises an error if no such set is available." | 107 | false | sdispater/poetry | solve | 10,648 | |
LDU_FT/UCL-INGI/INGInious/fast_stats | LDU_FT | [
"<BEGIN>\n## `handle_agent_message`",
"Dispatch messages received from agents to the right handlers\n<END>",
"<BEGIN>\n## `handle_client_message`",
"Dispatch messages received from clients to the right handlers\n<END>",
"<BEGIN>\n## `send_container_update_to_client`",
":param client_addrs: list of clients... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fast_stats API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Compute base statistics about submissions | "Compute base statistics about submissions" | 567 | false | UCL-INGI/INGInious | fast_stats | 10,649 | |
LDU_FT/klmitch/tendril/send_frame | LDU_FT | [
"<BEGIN>\n## `send_frame`",
"Sends a frame to the other end of the connection.\n<END>",
"<BEGIN>\n## `start`",
"Starts the TendrilManager.",
" :param acceptor: If given, specifies a callable that will be\n called with each newly received Tendril;\n that... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_frame API.
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 send_frame API.
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... | Sends a frame to the other end of the connection. | "Sends a frame to the other end of the connection." | 92 | false | klmitch/tendril | send_frame | 10,650 | |
LDU_FT/pywbem/pywbem/IterReferenceInstances | LDU_FT | [
"<BEGIN>\n## `_hash_item`",
"Hash an item (CIM value, CIM object), by delegating to its hash function.",
" The item may be `None`.\n<END>",
"<BEGIN>\n## `_stacklevel_above_module`",
"Return the stack level (with 1 = caller of this function) of the first\n caller that is not defined in the specified mo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IterReferenceInstances 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 IterReferenceInstances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Retrieve the association instances that reference a source instance,
using the Python :term:`py:generator` idiom to return the result.
*New in pywbem 0.10 as experimental and finalized in 0.12.*
This method uses the corresponding pull operations if supported by the
WBEM server or other... | "Retrieve the association instances that reference a source instance,\n using the Python :term:`py:generator` idiom to return the result.\n\n *New in pywbem 0.10 as experimental and finalized in 0.12.*\n\n This method uses the corresponding pull operations if supported by the\n WBEM server o... | 3,983 | true | pywbem/pywbem | IterReferenceInstances | 10,651 | |
LDU_FT/erdc/RAPIDpy/case_insensitive_file_search | LDU_FT | [
"<BEGIN>\n## `generate_single_return_period`",
"This function calculates a single return period for a single reach\n<END>",
"<BEGIN>\n## `generate_return_periods`",
"Generate return period from RAPID Qout file\n<END>",
"<BEGIN>\n## `get_poly_area_geo`",
"Calculates the area in meters squared of the indivi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_insensitive_file_search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the case_insensitive_file_search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Looks for file with pattern with case insensitive search | "Looks for file with pattern with case insensitive search" | 502 | false | erdc/RAPIDpy | case_insensitive_file_search | 10,652 | |
LDU_FT/Grk0/python-libconf/dump | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the contents of ``f`` (a file-like object) to a Python object",
" The returned object is a subclass of ``dict`` that exposes string keys as\n attributes as well.",
" Example:",
" >>> with open('test/example.cfg') as f:\n ... config = libconf.load(f)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Serialize ``cfg`` as a libconfig-formatted stream into ``f``
``cfg`` must be a ``dict`` with ``str`` keys and libconf-supported values
(numbers, strings, booleans, possibly nested dicts, lists, and tuples).
``f`` must be a ``file``-like object with a ``write()`` method. | "Serialize ``cfg`` as a libconfig-formatted stream into ``f``\n\n ``cfg`` must be a ``dict`` with ``str`` keys and libconf-supported values\n (numbers, strings, booleans, possibly nested dicts, lists, and tuples).\n\n ``f`` must be a ``file``-like object with a ``write()`` method." | 53 | false | Grk0/python-libconf | dump | 10,653 | |
LDU_FT/cdeboever3/cdpybio/save | LDU_FT | [
"<BEGIN>\n## `get_region_nt_counts`",
"Get counts of each nucleotide from a bam file for a given region. If R1 and\n R2 reads both overlap a position, only one count will be added. If the R1\n and R2 reads disagree at a position they both overlap, that read pair is not\n used for that position. Can opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Save AnnotatedInteractions object and bed files. The object is stored in
a pickle and the bed files are saved as separate bed files. The object
can be reloaded by reading the pickle using cPickle and the BedTool
objects can be recreated using .load_saved_bts().
Parameters
... | "Save AnnotatedInteractions object and bed files. The object is stored in\n a pickle and the bed files are saved as separate bed files. The object\n can be reloaded by reading the pickle using cPickle and the BedTool\n objects can be recreated using .load_saved_bts().\n \n Paramet... | 387 | false | cdeboever3/cdpybio | save | 10,654 | |
LDU_FT/savvastj/nbashots/heatmap | LDU_FT | [
"<BEGIN>\n## `get_all_player_ids`",
"Returns a pandas DataFrame containing the player IDs used in the\n stats.nba.com API.",
" Parameters\n ----------\n ids : { \"shots\" | \"all_players\" | \"all_data\" }, optional\n Passing in \"shots\" returns a DataFrame that contains the player IDs of\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heatmap API.
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 heatmap API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns an AxesImage object that contains a heatmap.
TODO: Redo some code and explain parameters | "Returns an AxesImage object that contains a heatmap.\n\n TODO: Redo some code and explain parameters" | 77 | false | savvastj/nbashots | heatmap | 10,655 | |
LDU_FT/dpgaspar/Flask-AppBuilder/get_oauth_token_key_name | LDU_FT | [
"<BEGIN>\n## `dict_to_json`",
"Converts a list of dicts from datamodel query results\n to google chart json data.",
" :param xcol:\n The name of a string column to be used has X axis on chart\n :param ycols:\n A list with the names of series cols, that can be used as n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_oauth_token_key_name 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_oauth_token_key_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Returns the token_key name for the oauth provider
if none is configured defaults to oauth_token
this is configured using OAUTH_PROVIDERS and token_key key. | "Returns the token_key name for the oauth provider\n if none is configured defaults to oauth_token\n this is configured using OAUTH_PROVIDERS and token_key key." | 393 | false | dpgaspar/Flask-AppBuilder | get_oauth_token_key_name | 10,656 | |
LDU_FT/xigt/xigt/referrers | LDU_FT | [
"<BEGIN>\n## `expand`",
"Expand a reference expression to individual spans.\n Also works on space-separated ID lists, although a sequence of space\n characters will be considered a delimiter.",
" >>> expand('a1')\n 'a1'\n >>> expand('a1[3:5]')\n 'a1[3:5]'\n >>> expand('a1[3:5+6:7]')\n 'a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the referrers API.
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 referrers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of ids denoting objects (tiers or items) in `igt` that
refer to the given `id`. In other words, if 'b1' refers to 'a1',
then `referrers(igt, 'a1')` returns `['b1']`. | "Return a list of ids denoting objects (tiers or items) in `igt` that\n refer to the given `id`. In other words, if 'b1' refers to 'a1',\n then `referrers(igt, 'a1')` returns `['b1']`." | 19 | false | xigt/xigt | referrers | 10,657 | |
LDU_FT/pantsbuild/pex/pkginfo_unicode | LDU_FT | [
"<BEGIN>\n## `isolated`",
"Returns a chroot for third_party isolated from the ``sys.path``.",
" PEX will typically be installed in site-packages flat alongside many other distributions; as such,\n adding the location of the pex distribution to the ``sys.path`` will typically expose many other\n distributions... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pkginfo_unicode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pkginfo_unicode API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Hack to coax Unicode out of an email Message() - Python 3.3+ | "Hack to coax Unicode out of an email Message() - Python 3.3+" | 385 | false | pantsbuild/pex | pkginfo_unicode | 10,658 | |
LDU_FT/bambinos/bambi/summary | 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 summary API.
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 summary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Returns a DataFrame of summary/diagnostic statistics for the parameters.
Args:
varnames (list): List of variable names to include; if None
(default), all eligible variables are included.
ranefs (bool): Whether or not to include random effects in the
summa... | "Returns a DataFrame of summary/diagnostic statistics for the parameters.\n\n Args:\n varnames (list): List of variable names to include; if None\n (default), all eligible variables are included.\n ranefs (bool): Whether or not to include random effects in the\n ... | 88 | false | bambinos/bambi | summary | 10,659 | |
LDU_FT/atlassian-api/atlassian-python-api/remove_group | LDU_FT | [
"<BEGIN>\n## `clean_draft_pages_from_space`",
"Remove draft pages from space using datetime.now\n :param confluence:\n :param space_key:\n :param count:\n :param date_now:\n :return: int counter\n<END>",
"<BEGIN>\n## `clean_all_draft_pages_from_all_spaces`",
"Remove all draft pages for all spac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_group API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Delete a group by given group parameter
If you delete a group and content is restricted to that group, the content will be hidden from all users
To prevent this, use this parameter to specify a different group to transfer the restrictions
(comments and worklogs only) to
:param name: str... | "Delete a group by given group parameter\n If you delete a group and content is restricted to that group, the content will be hidden from all users\n To prevent this, use this parameter to specify a different group to transfer the restrictions\n (comments and worklogs only) to\n\n :param nam... | 414 | false | atlassian-api/atlassian-python-api | remove_group | 10,660 | |
LDU_FT/Oneiroe/PySimpleAutomata/nfa_intersection | LDU_FT | [
"<BEGIN>\n## `dfa_word_acceptance`",
"Checks if a given **word** is accepted by a DFA,\n returning True/false.",
" The word w is accepted by a DFA if DFA has an accepting run\n on w. Since A is deterministic,\n :math:`w ∈ L(A)` if and only if :math:`ρ(s_0 , w) ∈ F` .",
" :param dict dfa: input ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nfa_intersection API.
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 nfa_intersection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns a NFA that reads the intersection of the NFAs in
input.
Let :math:`A_1 = (Σ,S_1,S_1^0,ρ_1,F_1)` and :math:`A_2 =(Σ,
S_2,S_2^0,ρ_2,F_2)` be two NFAs.
There is a NFA :math:`A_∧` that runs simultaneously both
:math:`A_1` and :math:`A_2` on the input word,
so :math:`L(A_∧) = L(A_1)∩L(A_2)`.... | "Returns a NFA that reads the intersection of the NFAs in\n input.\n\n Let :math:`A_1 = (Σ,S_1,S_1^0,ρ_1,F_1)` and :math:`A_2 =(Σ,\n S_2,S_2^0,ρ_2,F_2)` be two NFAs.\n There is a NFA :math:`A_∧` that runs simultaneously both\n :math:`A_1` and :math:`A_2` on the input word,\n so :math:`L(A_∧) = L(A_1)∩... | 208 | false | Oneiroe/PySimpleAutomata | nfa_intersection | 10,661 | |
LDU_FT/weld-project/weld/_unary_op | LDU_FT | [
"<BEGIN>\n## `to_weld_type`",
"Summary",
" Args:\n weld_type (TYPE): Description\n dim (TYPE): Description",
" Returns:\n TYPE: Description\n<END>",
"<BEGIN>\n## `evaluate`",
"Summary",
" Args:\n verbose (bool, optional): Description\n decode (bool... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unary_op API.
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 _unary_op API.
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... | @unop: str, weld IR for the given function.
@result: output array.
Create a new array, and updates weldobj.weld_code with the code for
unop. | "@unop: str, weld IR for the given function.\n @result: output array.\n\n Create a new array, and updates weldobj.weld_code with the code for\n unop." | 210 | false | weld-project/weld | _unary_op | 10,662 | |
LDU_FT/m32/endesive/get_string_width | LDU_FT | [
"<BEGIN>\n## `load_elements`",
"Initialize the internal element structures\n<END>",
"<BEGIN>\n## `parse_csv`",
"Parse template format csv file and create elements dict\n<END>",
"<BEGIN>\n## `split_multicell`",
"Divide (\\n) a string using a given element width\n<END>",
"<BEGIN>\n## `set_auto_page_break`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_string_width API.
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_string_width API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get width of a string in the current font | "Get width of a string in the current font" | 23 | false | m32/endesive | get_string_width | 10,663 | |
LDU_FT/joshuaduffy/dota2api/get_live_league_games | LDU_FT | [
"<BEGIN>\n## `get_match_history`",
"Returns a dictionary containing a list of the most recent Dota matches",
" :param account_id: (int, optional)\n :param hero_id: (int, optional)\n :param game_mode: (int, optional) see ``ref/modes.json``\n :param skill: (int, optional) see ``ref/ski... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_live_league_games 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_live_league_games 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 dictionary containing a list of ticked games in progress
:return: dictionary of live games, see :doc:`responses </responses>` | "Returns a dictionary containing a list of ticked games in progress\n\n :return: dictionary of live games, see :doc:`responses </responses>`" | 38 | false | joshuaduffy/dota2api | get_live_league_games | 10,664 | |
LDU_FT/davebridges/mousedb/duration | LDU_FT | [
"<BEGIN>\n## `age`",
"Calculates the animals age, relative to the current date (if alive) or the date of death (if not).\n<END>",
"<BEGIN>\n## `breeding_male_location_type`",
"This attribute defines whether a male's current location is the same as the breeding cage to which it belongs.",
" This attri... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duration API.
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 duration API.
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... | Calculates the breeding cage's duration.
This is relative to the current date (if alive) or the date of inactivation (if not).
The duration is formatted in days. | "Calculates the breeding cage's duration.\n\n This is relative to the current date (if alive) or the date of inactivation (if not).\n The duration is formatted in days." | 128 | false | davebridges/mousedb | duration | 10,665 | |
LDU_FT/wooyek/django-powerbank/optgroups | LDU_FT | [
"<BEGIN>\n## `to_python`",
"Convert the input JSON value into python structures, raises\n django.core.exceptions.ValidationError if the data can't be converted.\n<END>",
"<BEGIN>\n## `validate`",
"Check value is a valid JSON string, raise ValidationError on\n error.\n<END>",
"<BEGIN>\n## `get_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optgroups API.
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 optgroups API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Return a list of optgroups for this widget. | "Return a list of optgroups for this widget." | 13 | false | wooyek/django-powerbank | optgroups | 10,666 | |
LDU_FT/keans/lmnotify/set_device | LDU_FT | [
"<BEGIN>\n## `_exec`",
"execute a command at the device using the RESTful API",
" :param str cmd: one of the REST commands, e.g. GET or POST\n :param str url: URL of the REST API the command should be applied to\n :param dict json_data: json data that should be attached to the command\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_device API.
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 set_device API.
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... | set the current device (that will be used for following API calls)
:param dict dev: device that should be used for the API calls
(can be obtained via get_devices function) | "set the current device (that will be used for following API calls)\n\n :param dict dev: device that should be used for the API calls\n (can be obtained via get_devices function)" | 69 | false | keans/lmnotify | set_device | 10,667 | |
LDU_FT/cstatz/maui/__math | LDU_FT | [
"<BEGIN>\n## `slice_local_to_global`",
"Calculate start and stop index for mapping sliced index",
" :param index_slice: sliced index?\n :param axis: current axis to calculate\n :return: slice object as calculated\n<END>",
"<BEGIN>\n## `local_to_global`",
"Calculate local index from glob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __math API.
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 __math API.
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 ... | operator function
:param f: operator.add/sub/mul... used operator
:param x: other object view should be add/sub... with (other View, number, numpy.ndarray, Field)
:return: dictionary (same shape as field.d) with result of operation | "operator function\n :param f: operator.add/sub/mul... used operator\n :param x: other object view should be add/sub... with (other View, number, numpy.ndarray, Field)\n :return: dictionary (same shape as field.d) with result of operation" | 54 | false | cstatz/maui | __math | 10,668 | |
LDU_FT/tarzanjw/python-mysql-binlog-to-blinker/git_ls_files | LDU_FT | [
"<BEGIN>\n## `start_publishing`",
"Start publishing MySQL row-based binlog events to blinker signals",
" Args:\n mysql_settings (dict): information to connect to mysql via pymysql\n **kwargs: The additional kwargs will be passed to\n :py:class:`pymysqlreplication.BinLogStreamReader`.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_ls_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_ls_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Run ``git ls-files`` in the top-level project directory. Arguments go
directly to execution call.
:return: set of file names
:rtype: :class:`set` | "Run ``git ls-files`` in the top-level project directory. Arguments go\n directly to execution call.\n\n :return: set of file names\n :rtype: :class:`set`" | 29 | false | tarzanjw/python-mysql-binlog-to-blinker | git_ls_files | 10,669 | |
LDU_FT/PyconUK/ConferenceScheduler/schedule | LDU_FT | [
"<BEGIN>\n## `hill_climber`",
"Implement a basic hill climbing algorithm.",
" Has two stopping conditions:",
" 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.",
" If acceptance_criteria (a callable) is not None then this is used to obtain\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API.
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 schedule API.
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... | Compute a schedule in schedule form
Parameters
----------
events : list or tuple
of :py:class:`resources.Event` instances
slots : list or tuple
of :py:class:`resources.Slot` instances
solver : pulp.solver
a pulp solver
objective_function : callable
from lp_proble... | "Compute a schedule in schedule form\n\n Parameters\n ----------\n events : list or tuple\n of :py:class:`resources.Event` instances\n slots : list or tuple\n of :py:class:`resources.Slot` instances\n solver : pulp.solver\n a pulp solver\n objective_function : callable\n fr... | 127 | false | PyconUK/ConferenceScheduler | schedule | 10,670 | |
LDU_FT/pescadores/pescador/_activate | LDU_FT | [
"<BEGIN>\n## `setup_data`",
"Load and shape data for training with Keras + Pescador.",
" Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.",
" X_train, y_train : np.ndarrays\n Images and labels for training.",
" X_te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _activate API.
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 _activate API.
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... | ShuffledMux's activate is similar to StochasticMux,
but there is no 'n_active', since all the streams are always available. | "ShuffledMux's activate is similar to StochasticMux,\n but there is no 'n_active', since all the streams are always available." | 103 | false | pescadores/pescador | _activate | 10,671 | |
LDU_FT/stan-dev/pystan/_format_number | LDU_FT | [
"<BEGIN>\n## `lookup`",
"Look up for a Stan function with similar functionality to a Python\n function (or even an R function, see examples). If the function is\n not present on the lookup table, then attempts to find similar one\n and prints the results. This function requires package `pandas`.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_number API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_number API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Format a number as a string while obeying space constraints.
`n_signif_figures` is the minimum number of significant figures expressed
`max_width` is the maximum width in characters allowed | "Format a number as a string while obeying space constraints.\n\n `n_signif_figures` is the minimum number of significant figures expressed\n `max_width` is the maximum width in characters allowed" | 222 | false | stan-dev/pystan | _format_number | 10,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.