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/ReFirmLabs/binwalk/create_rule | LDU_FT | [
"<BEGIN>\n## `process_kwargs`",
"Convenience wrapper around binwalk.core.module.Modules.kwargs.",
" @obj - The class object (an instance of a sub-class of binwalk.core.module.Module).\n @kwargs - The kwargs provided to the object's __init__ method.",
" Returns None.\n<END>",
"<BEGIN>\n## `show_h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_rule API.
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 create_rule API.
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... | Adds a set of rules to the extraction rule list.
@txtrule - Rule string, or list of rule strings, in the format <regular expression>:<file extension>[:<command to run>]
@regex - If rule string is not specified, this is the regular expression string to use.
@extension - If rule string is n... | "Adds a set of rules to the extraction rule list.\n\n @txtrule - Rule string, or list of rule strings, in the format <regular expression>:<file extension>[:<command to run>]\n @regex - If rule string is not specified, this is the regular expression string to use.\n @extension - If rule string... | 211 | false | ReFirmLabs/binwalk | create_rule | 16,573 | |
LDU_FT/useblocks/groundwork/gw_get | LDU_FT | [
"<BEGIN>\n## `set`",
"Sets a new value for a given configuration parameter.",
" If it already exists, an Exception is thrown.\n To overwrite an existing value, set overwrite to True.",
" :param name: Unique name of the parameter\n :param value: Value of the configuration parameter\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gw_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gw_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Getter function to retrieve objects from a given object dictionary.
Used mainly to provide get() inside patterns.
:param object_dict: objects, which must have 'name' and 'plugin' as attribute
:type object_dict: dictionary
:param name: name of the object
:type name: str
:param plugin: plugin na... | "Getter function to retrieve objects from a given object dictionary.\n\n Used mainly to provide get() inside patterns.\n\n :param object_dict: objects, which must have 'name' and 'plugin' as attribute\n :type object_dict: dictionary\n :param name: name of the object\n :type name: str\n :param plugin: ... | 198 | false | useblocks/groundwork | gw_get | 16,574 | |
LDU_FT/slickqa/python-client/findOne | LDU_FT | [
"<BEGIN>\n## `find`",
"You can pass in the appropriate model object from the queries module,\n or a dictionary with the keys and values for the query,\n or a set of key=value parameters.\n<END>",
"<BEGIN>\n## `findOne`",
"Perform a find, with the same options present, but only return a maximum o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the findOne API.
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 findOne API.
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... | Perform a find, with the same options present, but only return a maximum of one result. If find returns
an empty array, then None is returned.
If there are multiple results from find, the one returned depends on the mode parameter. If mode is
FindOneMode.FIRST, then the first result is return... | "Perform a find, with the same options present, but only return a maximum of one result. If find returns\n an empty array, then None is returned.\n\n If there are multiple results from find, the one returned depends on the mode parameter. If mode is\n FindOneMode.FIRST, then the first result is r... | 37 | false | slickqa/python-client | findOne | 16,575 | |
LDU_FT/libtcod/python-tcod/_format_str | LDU_FT | [
"<BEGIN>\n## `_int`",
"return an integer where a single character string may be expected\n<END>",
"<BEGIN>\n## `_describe_bitmask`",
"Returns a bitmask in human readable form.",
" This is a private function, used internally.",
" Args:\n bits (int): The bitmask to be represented.\n tabl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Attempt fast string handing by decoding directly into an array. | "Attempt fast string handing by decoding directly into an array." | 1,050 | true | libtcod/python-tcod | _format_str | 16,576 | |
LDU_FT/icgood/pymap/parse | LDU_FT | [
"<BEGIN>\n## `for_executor`",
"Return a subsystem based on the given executor. If ``executor`` is\n None, use :mod:`asyncio`. If ``executor`` is a\n :class:`concurrent.futures.ThreadPoolExecutor`, use :mod:`threading`.",
" Args:\n executor: The executor in use, if any.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse the given bytes into a command. The basic syntax is a tag
string, a command name, possibly some arguments, and then an endline.
If the command has a complete structure but cannot be parsed, an
:class:`InvalidCommand` is returned.
Args:
buf: The bytes to parse.
... | "Parse the given bytes into a command. The basic syntax is a tag\n string, a command name, possibly some arguments, and then an endline.\n If the command has a complete structure but cannot be parsed, an\n :class:`InvalidCommand` is returned.\n\n Args:\n buf: The bytes to parse.\n... | 298 | false | icgood/pymap | parse | 16,577 | |
LDU_FT/VikParuchuri/percept/create_parser | LDU_FT | [
"<BEGIN>\n## `train`",
"Calculate the standard deviations and means in the training data\n<END>",
"<BEGIN>\n## `predict`",
"Adjust new input by the values in the training data\n<END>",
"<BEGIN>\n## `save`",
"Save an object, and use id_code in the filename\n obj - any object\n id_code - uniqu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_parser API.
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 create_parser API.
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... | Create an OptionParser
prog_name - Name of a command
subcommand - Name of a subcommand | "Create an OptionParser\n prog_name - Name of a command\n subcommand - Name of a subcommand" | 72 | false | VikParuchuri/percept | create_parser | 16,578 | |
LDU_FT/cqlengine/cqlengine/sync_table | LDU_FT | [
"<BEGIN>\n## `create_keyspace`",
"creates a keyspace",
" :param name: name of keyspace to create\n :param strategy_class: keyspace replication strategy class\n :param replication_factor: keyspace replication factor\n :param durable_writes: 1.2 only, write log is bypassed if set to False\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_table API.
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 sync_table API.
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... | Inspects the model and creates / updates the corresponding table and columns.
Note that the attributes removed from the model are not deleted on the database.
They become effectively ignored by (will not show up on) the model. | "Inspects the model and creates / updates the corresponding table and columns.\n\n Note that the attributes removed from the model are not deleted on the database.\n They become effectively ignored by (will not show up on) the model." | 65 | false | cqlengine/cqlengine | sync_table | 16,579 | |
LDU_FT/pyroscope/pyrobase/task_requires | LDU_FT | [
"<BEGIN>\n## `bwrite`",
"Encode a given object to a file or stream.\n<END>",
"<BEGIN>\n## `decode`",
"Decode data in C{self.data} and return deserialized object.",
" @param check_trailer: Raise error if trailing junk is found in data?\n @raise BencodeError: Invalid data.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task_requires API.
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 task_requires API.
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... | A task decorator that ensures a distutils dependency (or a list thereof) is met
before that task is executed. | "A task decorator that ensures a distutils dependency (or a list thereof) is met\n before that task is executed." | 57 | false | pyroscope/pyrobase | task_requires | 16,580 | |
LDU_FT/coagulant/django-twitter-tag/urlize_tweet | LDU_FT | [
"<BEGIN>\n## `enrich`",
"Apply the local presentation logic to the fetched data.\n<END>",
"<BEGIN>\n## `get_user_cache_key`",
"Generate suitable key to cache twitter tag context\n<END>",
"<BEGIN>\n## `get_search_cache_key`",
"Generate suitable key to cache twitter tag context\n<END>",
"<BEGIN>\n## `urli... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the urlize_tweet API.
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 urlize_tweet API.
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... | Turn #hashtag and @username in a text to Twitter hyperlinks,
similar to the ``urlize()`` function in Django. | "Turn #hashtag and @username in a text to Twitter hyperlinks,\n similar to the ``urlize()`` function in Django." | 10 | false | coagulant/django-twitter-tag | urlize_tweet | 16,581 | |
LDU_FT/dossier/dossier.web/v1_label_put | LDU_FT | [
"<BEGIN>\n## `as_multi_dict`",
"Coerce a dictionary to a bottle.MultiDict\n<END>",
"<BEGIN>\n## `set_query_params`",
"Set the query parameters.",
" The query parameters should be a dictionary mapping keys to\n strings or lists of strings.",
" :param query_params: query parameters\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the v1_label_put API.
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 v1_label_put API.
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... | Store a single label.
The route for this endpoint is:
``PUT /dossier/v1/labels/<content_id1>/<content_id2>/<annotator_id>``.
``content_id`` are the ids of the feature collections to
associate. ``annotator_id`` is a string that identifies the
human that created the label. The value of the label sho... | "Store a single label.\n\n The route for this endpoint is:\n ``PUT /dossier/v1/labels/<content_id1>/<content_id2>/<annotator_id>``.\n\n ``content_id`` are the ids of the feature collections to\n associate. ``annotator_id`` is a string that identifies the\n human that created the label. The value of the l... | 223 | false | dossier/dossier.web | v1_label_put | 16,582 | |
LDU_FT/quantopian/empyrical/roll_up_down_capture | LDU_FT | [
"<BEGIN>\n## `_adjust_returns`",
"Returns the returns series adjusted by adjustment_factor. Optimizes for the\n case of adjustment_factor being 0 by returning returns itself, not a copy!",
" Parameters\n ----------\n returns : pd.Series or np.ndarray\n adjustment_factor : pd.Series or np.ndarray ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roll_up_down_capture 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 roll_up_down_capture API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Computes the up/down capture measure over a rolling window.
see documentation for :func:`~empyrical.stats.up_down_capture`.
(pass all args, kwargs required)
Parameters
----------
returns : pd.Series or np.ndarray
Daily returns of the strategy, noncumulative.
- See full explanation i... | "Computes the up/down capture measure over a rolling window.\n see documentation for :func:`~empyrical.stats.up_down_capture`.\n (pass all args, kwargs required)\n\n Parameters\n ----------\n returns : pd.Series or np.ndarray\n Daily returns of the strategy, noncumulative.\n - See full expl... | 253 | false | quantopian/empyrical | roll_up_down_capture | 16,583 | |
LDU_FT/NoneGG/aredis/get_message | LDU_FT | [
"<BEGIN>\n## `merge_result`",
"Merge all items in `res` into a list.",
" This command is used when sending a command to multiple nodes\n and they result from each node should be merged into a single list.\n<END>",
"<BEGIN>\n## `first_key`",
"Returns the first result for the given command.",
" If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get the next message if one is available, otherwise None.
If timeout is specified, the system will wait for `timeout` seconds
before returning. Timeout should be specified as a floating point
number. | "Get the next message if one is available, otherwise None.\n\n If timeout is specified, the system will wait for `timeout` seconds\n before returning. Timeout should be specified as a floating point\n number." | 421 | false | NoneGG/aredis | get_message | 16,584 | |
LDU_FT/BenjaminSchubert/NitPycker/addExpectedFailure | LDU_FT | [
"<BEGIN>\n## `add_result`",
"Adds the given result to the list",
" :param _type: type of the state of the test (TestState.failure, TestState.error, ...)\n :param test: the test\n :param exc_info: additional execution information\n<END>",
"<BEGIN>\n## `addSuccess`",
"Transforms the test ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addExpectedFailure 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 addExpectedFailure 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... | registers as test as expected failure
:param test: test to register
:param err: error the test gave | "registers as test as expected failure\n\n :param test: test to register\n :param err: error the test gave" | 53 | false | BenjaminSchubert/NitPycker | addExpectedFailure | 16,585 | |
LDU_FT/rodynnz/xccdf/update_xml_element | LDU_FT | [
"<BEGIN>\n## `update_xml_element`",
"Updates the xml element contents to matches the instance contents.",
" :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>",
"<BEGIN>\n## `to_xml_string`",
"Exports the element in XML format.",
" :returns: element in XML format.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_xml_element API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_xml_element API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Updates the xml element contents to matches the instance contents.
:returns: Updated XML element.
:rtype: lxml.etree._Element | "Updates the xml element contents to matches the instance contents.\n\n :returns: Updated XML element.\n :rtype: lxml.etree._Element" | 77 | false | rodynnz/xccdf | update_xml_element | 16,586 | |
LDU_FT/Jayin/ETipsService/search_book | LDU_FT | [
"<BEGIN>\n## `_get_electricity_info_html`",
"get html",
" :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>",
"<BEGIN>\n## `get_electricity_info`",
"get electricity info",
" :param apart_id: 栋数\n :param meter_room: 宿舍号\n<END>",
"<BEGIN>\n## `get_wyu_news`",
"获取新闻列... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_book API.
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 search_book API.
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... | 检索图书
:param anywords: 检索关键字
:param page: 页码
:return: 图书列表 | "检索图书\n :param anywords: 检索关键字\n :param page: 页码\n :return: 图书列表" | 26 | false | Jayin/ETipsService | search_book | 16,587 | |
LDU_FT/jaraco/jaraco.mongodb/connect_gridfs | LDU_FT | [
"<BEGIN>\n## `extract_param`",
"From a list of args, extract the one param if supplied,\n returning the value and unused args.",
" >>> extract_param('port', ['foo', '--port=999', 'bar'], type=int)\n (999, ['foo', 'bar'])\n >>> extract_param('port', ['foo', '--port', '999', 'bar'], type=int)\n (99... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect_gridfs API.
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 connect_gridfs API.
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... | Construct a GridFS instance for a MongoDB URI. | "Construct a GridFS instance for a MongoDB URI." | 82 | false | jaraco/jaraco.mongodb | connect_gridfs | 16,588 | |
LDU_FT/fredRos/pypmc/_get_samples | LDU_FT | [
"<BEGIN>\n## `r_value`",
"Calculate the Gelman-Rubin R value (Chapter 2.2 in [GR92]_).",
" The R value can be used to quantify mixing of \"multiple iterative\n simulations\" (e.g. Markov Chains) in parameter space. An R value\n \"close to one\" indicates that all chains explored the same region\n o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_samples API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_samples API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Save N samples from ``self.proposal`` to ``self.samples``
This function does NOT calculate the weights.
Return a reference to this run's samples in ``self.samples``.
If ``trace_sort`` is True, additionally return an array
indicating the responsible component. (MixtureDensity only) | "Save N samples from ``self.proposal`` to ``self.samples``\n This function does NOT calculate the weights.\n\n Return a reference to this run's samples in ``self.samples``.\n If ``trace_sort`` is True, additionally return an array\n indicating the responsible component. (MixtureDensity only)... | 279 | false | fredRos/pypmc | _get_samples | 16,589 | |
LDU_FT/jor-/util/load_with_scipy | LDU_FT | [
"<BEGIN>\n## `hash_key`",
"Return a cache key for the specified hashable arguments.\n<END>",
"<BEGIN>\n## `typed_hash_key`",
"Return a typed cache key for the specified hashable arguments.\n<END>",
"<BEGIN>\n## `attribute_dependend_key`",
"Return a cache key for the specified hashable arguments with addit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_with_scipy API.
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 load_with_scipy API.
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... | Loads data from a netcdf file.
Parameters
----------
file : string or file-like
The name of the netcdf file to open.
data_name : string
The name of the data to extract from the netcdf file.
Returns
-------
data : ndarray
The desired data from the netcdf file as ndar... | "Loads data from a netcdf file.\n\n Parameters\n ----------\n file : string or file-like\n The name of the netcdf file to open.\n data_name : string\n The name of the data to extract from the netcdf file.\n\n Returns\n -------\n data : ndarray\n The desired data from the netcdf... | 12 | false | jor-/util | load_with_scipy | 16,590 | |
LDU_FT/pbrod/numdifftools/fd_derivative | LDU_FT | [
"<BEGIN>\n## `approx_fprime`",
"Gradient of function, or Jacobian if function fun returns 1d array",
" Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fd_derivative API.
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 fd_derivative API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return the n'th derivative for all points using Finite Difference method.
Parameters
----------
fx : vector
function values which are evaluated on x i.e. fx[i] = f(x[i])
x : vector
abscissas on which fx is evaluated. The x values can be arbitrarily
spaced but must be distinct a... | "Return the n'th derivative for all points using Finite Difference method.\n\n Parameters\n ----------\n fx : vector\n function values which are evaluated on x i.e. fx[i] = f(x[i])\n x : vector\n abscissas on which fx is evaluated. The x values can be arbitrarily\n spaced but must be d... | 107 | false | pbrod/numdifftools | fd_derivative | 16,591 | |
LDU_FT/jldbc/pybaseball/division_series_logs | LDU_FT | [
"<BEGIN>\n## `process_win_streak`",
"Convert \"+++\"/\"---\" formatted win/loss streak column into a +/- integer column\n<END>",
"<BEGIN>\n## `split_request`",
"Splits Statcast queries to avoid request timeouts\n<END>",
"<BEGIN>\n## `statcast_pitcher`",
"Pulls statcast pitch-level data from Baseball Savan... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the division_series_logs 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 division_series_logs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Pull Retrosheet Division Series Game Logs | "Pull Retrosheet Division Series Game Logs" | 46 | false | jldbc/pybaseball | division_series_logs | 16,592 | |
LDU_FT/sassoftware/saspy/symget | LDU_FT | [
"<BEGIN>\n## `submit`",
"This method is used to submit any SAS code. It returns the Log and Listing as a python dictionary.",
" - code - the SAS statements you want to execute\n - results - format of results. 'HTML' by default, alternatively 'TEXT'\n - prompt - dict of names:flags to pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symget API.
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 symget API.
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 ... | :param name: name of the macro varable to set:
- name is a character | ":param name: name of the macro varable to set:\n\n - name is a character" | 469 | false | sassoftware/saspy | symget | 16,593 | |
LDU_FT/PaloAltoNetworks/pancloud/xpoll | LDU_FT | [
"<BEGIN>\n## `_credentials_found_in_envars`",
"Check for credentials in envars.",
" Returns:\n bool: ``True`` if at least one is found, otherwise ``False``.\n<END>",
"<BEGIN>\n## `_resolve_credential`",
"Resolve credential from envars or credentials store.",
" Args:\n c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xpoll API.
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 xpoll API.
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... | Retrieve individual logs iteratively in a non-greedy manner.
Generator function to return individual log entries from poll
API request.
Args:
params (dict): Payload/request dictionary.
query_id (str): Specifies the ID of the query job.
sequence_no (int): Spe... | "Retrieve individual logs iteratively in a non-greedy manner.\n\n Generator function to return individual log entries from poll\n API request.\n\n Args:\n params (dict): Payload/request dictionary.\n query_id (str): Specifies the ID of the query job.\n sequence_no (... | 129 | false | PaloAltoNetworks/pancloud | xpoll | 16,594 | |
LDU_FT/mattja/sdeint/stratint | LDU_FT | [
"<BEGIN>\n## `broadcast_to`",
"Broadcast an array to a new shape.",
" Parameters\n ----------\n array : array_like\n The array to broadcast.\n shape : tuple\n The shape of the desired array.\n subok : bool, optional\n If True, then sub-classes will be passed-through, otherwis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stratint API.
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 stratint API.
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... | Numerically integrate Stratonovich equation dy = f(y,t)dt + G(y,t).dW
where y is the d-dimensional state vector, f is a vector-valued function,
G is an d x m matrix-valued function giving the noise coefficients and
dW(t) = (dW_1, dW_2, ... dW_m) is a vector of independent Wiener increments
Args:
... | "Numerically integrate Stratonovich equation dy = f(y,t)dt + G(y,t).dW\n\n where y is the d-dimensional state vector, f is a vector-valued function,\n G is an d x m matrix-valued function giving the noise coefficients and\n dW(t) = (dW_1, dW_2, ... dW_m) is a vector of independent Wiener increments\n\n Args... | 118 | false | mattja/sdeint | stratint | 16,595 | |
LDU_FT/nfcpy/nfcpy/protect | LDU_FT | [
"<BEGIN>\n## `reset_mode`",
"Send a Reset command to set the operation mode to 0.\n<END>",
"<BEGIN>\n## `sense_tta`",
"Activate the RF field and probe for a Type A Target.",
" The RC-S956 can discover all Type A Targets (Type 1 Tag, Type\n 2 Tag, and Type 4A Tag) at 106 kbps. Due to firmware\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the protect API.
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 protect API.
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... | Protect a tag against future write or read access.
:meth:`protect` attempts to make a tag readonly for all
readers if *password* is :const:`None`, writeable only after
authentication if a *password* is provided, and readable only
after authentication if a *password* is provided and the
... | "Protect a tag against future write or read access.\n\n :meth:`protect` attempts to make a tag readonly for all\n readers if *password* is :const:`None`, writeable only after\n authentication if a *password* is provided, and readable only\n after authentication if a *password* is provided an... | 452 | false | nfcpy/nfcpy | protect | 16,596 | |
LDU_FT/venthur/python-debianbts/_parse_status | LDU_FT | [
"<BEGIN>\n## `get_status`",
"Returns a list of Bugreport objects.",
" Given a list of bugnumbers this method returns a list of Bugreport\n objects.",
" Parameters\n ----------\n nrs : int or list of ints\n the bugnumbers",
" Returns\n -------\n bugs : list of Bugreport objects... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a bugreport object from a given status xml element | "Return a bugreport object from a given status xml element" | 35 | false | venthur/python-debianbts | _parse_status | 16,597 | |
LDU_FT/niccokunzmann/hanging_threads/thread2list | LDU_FT | [
"<BEGIN>\n## `start_monitoring`",
"Start monitoring for hanging threads.",
" seconds_frozen - How much time should thread hang to activate\n printing stack trace - default(10)",
" tests_interval - Sleep time of monitoring thread (in milliseconds) \n - default(100)\n<END>",
"<BEGIN>\n## `monitor`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thread2list API.
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 thread2list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return list with string frame representation of each frame of
thread. | "Return list with string frame representation of each frame of \n thread." | 16 | false | niccokunzmann/hanging_threads | thread2list | 16,598 | |
LDU_FT/gpoulter/fablib/debconf_set_selections | LDU_FT | [
"<BEGIN>\n## `default_roles`",
"Decorate task with these roles by default, but override with -R, -H\n<END>",
"<BEGIN>\n## `chown`",
"User sudo to set user and group ownership\n<END>",
"<BEGIN>\n## `chput`",
"Put file and set user and group ownership. Default to use sudo.\n<END>",
"<BEGIN>\n## `diff`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the debconf_set_selections 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 debconf_set_selections API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Given package and map config:(type,value), set selections | "Given package and map config:(type,value), set selections" | 29 | false | gpoulter/fablib | debconf_set_selections | 16,599 | |
LDU_FT/latchset/custodia/getLogger | LDU_FT | [
"<BEGIN>\n## `_load_plugin_class`",
"Load Custodia plugin",
" Entry points are preferred over dotted import path.\n<END>",
"<BEGIN>\n## `get`",
"Lookup value for a PluginOption instance",
" Args:\n po: PluginOption",
" Returns: converted value\n<END>",
"<BEGIN>\n## `parse`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getLogger API.
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 getLogger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create logger with custom exception() method | "Create logger with custom exception() method" | 31 | false | latchset/custodia | getLogger | 16,600 | |
LDU_FT/reincubate/ricloud/prompt_for_choice | LDU_FT | [
"<BEGIN>\n## `error_message_and_exit`",
"Prints error messages in blue, the failed task result and quits.\n<END>",
"<BEGIN>\n## `print_prompt_values`",
"Prints prompt title and choices with a bit of formatting.\n<END>",
"<BEGIN>\n## `prompt_for_input`",
"Prints prompt instruction and does basic input pars... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prompt_for_choice API.
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 prompt_for_choice API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Prints prompt with a list of choices to choose from. | "Prints prompt with a list of choices to choose from." | 50 | false | reincubate/ricloud | prompt_for_choice | 16,601 | |
LDU_FT/erocarrera/pefile/parse_data_directories | LDU_FT | [
"<BEGIN>\n## `is_suspicious`",
"unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>",
"<BEGIN>\n## `is_probably_packed`",
"Returns True is there is a high likelihood that a file is packed or contains compressed data.",
" The sections of the PE f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_data_directories 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 parse_data_directories 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 and process the PE file's data directories.
If the optional argument 'directories' is given, only
the directories at the specified indexes will be parsed.
Such functionality allows parsing of areas of interest
without the burden of having to parse all others.
The directori... | "Parse and process the PE file's data directories.\n\n If the optional argument 'directories' is given, only\n the directories at the specified indexes will be parsed.\n Such functionality allows parsing of areas of interest\n without the burden of having to parse all others.\n The di... | 160 | false | erocarrera/pefile | parse_data_directories | 16,602 | |
LDU_FT/opennode/waldur-core/list | LDU_FT | [
"<BEGIN>\n## `subfield_get`",
"Verbatim copy from:\n https://github.com/django/django/blob/1.9.13/django/db/models/fields/subclassing.py#L38\n<END>",
"<BEGIN>\n## `_preprocess_kwargs`",
"Replace generic key related attribute with filters by object_id and content_type fields\n<END>",
"<BEGIN>\n## `list`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | To get a list of default price list items, run **GET** against */api/default-price-list-items/*
as authenticated user.
Price lists can be filtered by:
- ?key=<string>
- ?item_type=<string> has to be from list of available item_types
(available options: 'flavor', 'storage', ... | "To get a list of default price list items, run **GET** against */api/default-price-list-items/*\n as authenticated user.\n\n Price lists can be filtered by:\n - ?key=<string>\n - ?item_type=<string> has to be from list of available item_types\n (available options: 'flavor', 'sto... | 526 | false | opennode/waldur-core | list | 16,603 | |
LDU_FT/Vagrants/blackbird/_add_arguments | LDU_FT | [
"<BEGIN>\n## `helper_import`",
"Return class or module object.\n if the argument is only a module name and return a module object.\n if the argument is a module and class name, and return a class object.\n<END>",
"<BEGIN>\n## `global_import`",
"This function search sys.path[1:], return specified module.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_arguments API.
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 _add_arguments API.
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... | Add command line arguments to each section in config.
e.x:
before:
[global]
hoge = hoge
after:
{
'global': {
'hoge': 'hoge',
'arguments': {
'debug_mode': True,
... | "Add command line arguments to each section in config.\n e.x:\n before:\n [global]\n hoge = hoge\n\n after:\n {\n 'global': {\n 'hoge': 'hoge',\n 'arguments': {\n 'debug_mode': True,\n ... | 106 | false | Vagrants/blackbird | _add_arguments | 16,604 | |
LDU_FT/amaas-fintech/amaas-core-sdk-python/retrieve_mtm_results | LDU_FT | [
"<BEGIN>\n## `deactivate`",
"Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.",
" :param asset_manager_id:\n :return:\n<END>",
"<BEGIN>\n## `quote_datetime`",
"Force the quote_datetime to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_mtm_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_mtm_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | parameters is a dictionary of all the mtm result filter parameters | "parameters is a dictionary of all the mtm result filter parameters" | 109 | false | amaas-fintech/amaas-core-sdk-python | retrieve_mtm_results | 16,605 | |
LDU_FT/PedalPi/PluginsManager/connect | LDU_FT | [
"<BEGIN>\n## `load`",
"Load the index file and reorder the banks based in order listed in index",
" :param list[Indexable] indexables: Banks that will be reordered based in index file\n :return list[Bank]: Banks reordered\n<END>",
"<BEGIN>\n## `register`",
"Register an observer for it be notif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | ``connect <origin_port> <destination_port>``
connect two plugin audio ports
e.g.::
connect system:capture_1 plugin_0:in
:param pluginsmanager.model.connection.Connection connection: Connection with a valid
:class:`.Output` and :class:`.Input` | "``connect <origin_port> <destination_port>``\n\n connect two plugin audio ports\n\n e.g.::\n\n connect system:capture_1 plugin_0:in\n\n :param pluginsmanager.model.connection.Connection connection: Connection with a valid\n :class:`.Output` and :class:`.Input`" | 139 | false | PedalPi/PluginsManager | connect | 16,606 | |
LDU_FT/zetaops/pyoko/data | LDU_FT | [
"<BEGIN>\n## `find_models_and_delete_search_index`",
"Finds models to execute and these models' exist search indexes are deleted.\n For other operations, necessary models are gathered to list(exec_models)",
" Args:\n model: model to execute\n force(bool): True or False if Tru... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | return (data_dict, key) tuple instead of models instances | "return (data_dict, key) tuple instead of models instances" | 278 | false | zetaops/pyoko | data | 16,607 | |
LDU_FT/cmorisse/ikp3db/extract_object_properties | LDU_FT | [
"<BEGIN>\n## `set_trace`",
"Breaks on the line that invoked this function or at given frame.\n User can then resume execution.",
" To call set_trace() use:",
" .. code-block:: python",
" import ikp3db ; ikp3db.set_trace()",
" :param a_frame: The frame at which to break on.\n :type a_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_object_properties 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 extract_object_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Extracts all properties from an object (eg. f_locals, f_globals,
user dict, instance ...) and returns them as an array of variables. | "Extracts all properties from an object (eg. f_locals, f_globals, \n user dict, instance ...) and returns them as an array of variables." | 109 | false | cmorisse/ikp3db | extract_object_properties | 16,608 | |
LDU_FT/PlaidWeb/Publ/where_entry_category | LDU_FT | [
"<BEGIN>\n## `load_metafile`",
"Load a metadata file from the filesystem\n<END>",
"<BEGIN>\n## `description`",
"Get the textual description of the category\n<END>",
"<BEGIN>\n## `breadcrumb`",
"Get the category hierarchy leading up to this category, including\n root and self.",
" For examp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where_entry_category 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 where_entry_category API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generate a where clause for a particular category | "Generate a where clause for a particular category" | 285 | false | PlaidWeb/Publ | where_entry_category | 16,609 | |
LDU_FT/sarugaku/vistir/colored | LDU_FT | [
"<BEGIN>\n## `is_bytes`",
"Check if a string is a bytes instance",
" :param Union[str, bytes] string: A string that may be string or bytes like\n :return: Whether the provided string is a bytes type or not\n :rtype: bool\n<END>",
"<BEGIN>\n## `fs_encode`",
"Encode a filesystem path to the proper fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the colored API.
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 colored API.
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... | Colorize text using a reimplementation of the colorizer from
https://github.com/pavdmyt/yaspin so that it works on windows.
Available text colors:
red, green, yellow, blue, magenta, cyan, white.
Available text highlights:
on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.... | "Colorize text using a reimplementation of the colorizer from\n https://github.com/pavdmyt/yaspin so that it works on windows.\n\n Available text colors:\n red, green, yellow, blue, magenta, cyan, white.\n\n Available text highlights:\n on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, o... | 54 | false | sarugaku/vistir | colored | 16,610 | |
LDU_FT/tkf/rash/move_where_clause_to_column | LDU_FT | [
"<BEGIN>\n## `concat_expr`",
"Concatenate `conditions` with `operator` and wrap it by ().",
" It returns a string in a list or empty list, if `conditions` is empty.\n<END>",
"<BEGIN>\n## `join`",
"Join `source`.",
" >>> sc = SQLConstructor('main', ['c1', 'c2'])\n >>> sc.join('sub', 'JOIN'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_where_clause_to_column 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 move_where_clause_to_column API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Move whole WHERE clause to a column named `column`. | "Move whole WHERE clause to a column named `column`." | 142 | false | tkf/rash | move_where_clause_to_column | 16,611 | |
LDU_FT/AoiKuiyuyou/AoikLiveReload/get_python_path | LDU_FT | [
"<BEGIN>\n## `main`",
"Main function.",
" :return:\n None.\n<END>",
"<BEGIN>\n## `start_watcher_thread`",
"Start watcher thread.",
" :return:\n Watcher thread object.\n<END>",
"<BEGIN>\n## `run_watcher`",
"Watcher thread's function.",
" :return:\n None.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_python_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_python_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get given virtual environment's `python` program path.
:param venv_path: Virtual environment directory path.
:return: `python` program path. | "Get given virtual environment's `python` program path.\n\n :param venv_path: Virtual environment directory path.\n\n :return: `python` program path." | 216 | false | AoiKuiyuyou/AoikLiveReload | get_python_path | 16,612 | |
LDU_FT/twidi/django-adv-cache-tag/create_content | LDU_FT | [
"<BEGIN>\n## `prepare_params`",
"Prepare the parameters passed to the templatetag\n<END>",
"<BEGIN>\n## `get_expire_time`",
"Return the expire time passed to the templatetag.\n Must be None or an integer.\n<END>",
"<BEGIN>\n## `get_version`",
"Return the stringified version passed to the templateta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Render the template, apply options on it, and save it to the cache. | "Render the template, apply options on it, and save it to the cache." | 34 | false | twidi/django-adv-cache-tag | create_content | 16,613 | |
LDU_FT/mfitzp/padua/apply_experimental_design | LDU_FT | [
"<BEGIN>\n## `remove_rows_matching`",
"Return a ``DataFrame`` with rows where `column` values match `match` are removed.",
" The selected `column` series of values from the supplied Pandas ``DataFrame`` is compared\n to `match`, and those rows that match are removed from the DataFrame.",
" :param df:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_experimental_design 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 apply_experimental_design API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Load the experimental design template from MaxQuant and use it to apply the label names to the data columns.
:param df:
:param f: File path for the experimental design template
:param prefix:
:return: dt | "Load the experimental design template from MaxQuant and use it to apply the label names to the data columns.\n\n :param df:\n :param f: File path for the experimental design template\n :param prefix:\n :return: dt" | 266 | false | mfitzp/padua | apply_experimental_design | 16,614 | |
LDU_FT/Rapptz/discord.py/invoke | LDU_FT | [
"<BEGIN>\n## `_retrieve_messages_before_strategy`",
"Retrieve messages using before parameter.\n<END>",
"<BEGIN>\n## `_retrieve_messages_after_strategy`",
"Retrieve messages using after parameter.\n<END>",
"<BEGIN>\n## `_retrieve_messages_around_strategy`",
"Retrieve messages using around parameter.\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invoke API.
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 invoke API.
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 ... | |coro|
Invokes the command given under the invocation context and
handles all the internal event dispatch mechanisms.
Parameters
-----------
ctx: :class:`.Context`
The invocation context to invoke. | "|coro|\n\n Invokes the command given under the invocation context and\n handles all the internal event dispatch mechanisms.\n\n Parameters\n -----------\n ctx: :class:`.Context`\n The invocation context to invoke." | 1,325 | true | Rapptz/discord.py | invoke | 16,615 | |
LDU_FT/ssato/python-anytemplate/filter_kwargs | LDU_FT | [
"<BEGIN>\n## `fallback_render`",
"Render from given template and context.",
" This is a basic implementation actually does nothing and just returns\n the content of given template file `template`.",
" :param template: Template file path\n :param context: A dict or dict-like object to instantiate g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_kwargs API.
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 filter_kwargs API.
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... | :param keys: A iterable key names to select items
:param kwargs: A dict or dict-like object reprensents keyword args
>>> list(filter_kwargs(("a", "b"), dict(a=1, b=2, c=3, d=4)))
[('a', 1), ('b', 2)] | ":param keys: A iterable key names to select items\n :param kwargs: A dict or dict-like object reprensents keyword args\n\n >>> list(filter_kwargs((\"a\", \"b\"), dict(a=1, b=2, c=3, d=4)))\n [('a', 1), ('b', 2)]" | 156 | false | ssato/python-anytemplate | filter_kwargs | 16,616 | |
LDU_FT/mobiusklein/brainpy/calculate_mass | LDU_FT | [
"<BEGIN>\n## `give_repr`",
"r\"\"\"Patch a class to give it a generic __repr__ method\n that works by inspecting the instance dictionary.",
" Parameters\n ----------\n cls: type\n The class to add a generic __repr__ to.",
" Returns\n -------\n cls: type\n The passed class is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_mass API.
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 calculate_mass API.
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... | Calculates the monoisotopic mass of a composition
Parameters
----------
composition : Mapping
Any Mapping type where keys are element symbols and values are integers
mass_data : dict, optional
A dict with the masses of the chemical elements (the default
value is :py:data:`nist_m... | "Calculates the monoisotopic mass of a composition\n\n Parameters\n ----------\n composition : Mapping\n Any Mapping type where keys are element symbols and values are integers\n mass_data : dict, optional\n A dict with the masses of the chemical elements (the default\n value is :py:dat... | 33 | false | mobiusklein/brainpy | calculate_mass | 16,617 | |
LDU_FT/xflr6/concepts/union | 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 union API.
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 union API.
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... | Return a new definition from the union of the definitions. | "Return a new definition from the union of the definitions." | 56 | false | xflr6/concepts | union | 16,618 | |
LDU_FT/OCHA-DAP/hdx-python-utilities/get_tabular_rows | LDU_FT | [
"<BEGIN>\n## `raisefrom`",
"Call Python 3 raise from or emulate it for Python 2",
" Args:\n exc_type (Any): Type of Exception\n message (str): Error message to display\n exc (BaseException): original exception",
" Returns:\n None\n<END>",
"<BEGIN>\n## `get_session`",
"Set... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_tabular_rows API.
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_tabular_rows API.
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 iterator for reading rows from tabular data. Each row is returned as a dictionary.
Args:
url (str): URL to download
dict_rows (bool): Return dict (requires headers parameter) or list for each row. Defaults to False (list).
**kwargs:
headers (Union[int, List[i... | "Get iterator for reading rows from tabular data. Each row is returned as a dictionary.\n\n Args:\n url (str): URL to download\n dict_rows (bool): Return dict (requires headers parameter) or list for each row. Defaults to False (list).\n **kwargs:\n headers (Union[int,... | 232 | false | OCHA-DAP/hdx-python-utilities | get_tabular_rows | 16,619 | |
LDU_FT/pauleveritt/kaybee/call_builder_init | LDU_FT | [
"<BEGIN>\n## `render`",
"Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>",
"<BEGIN>\n## `in_navitem`",
"Given href of nav item, determine if resource is in it\n<END>",
"<BEGIN>\n## `is_published`",
"Return true if this resource has published date in the past\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_builder_init API.
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 call_builder_init API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | On builder init event, commit registry and do callbacks | "On builder init event, commit registry and do callbacks" | 71 | false | pauleveritt/kaybee | call_builder_init | 16,620 | |
LDU_FT/JIC-CSB/jicimagelib/convex_hull | LDU_FT | [
"<BEGIN>\n## `transformation`",
"Function decorator to turn another function into a transformation.\n<END>",
"<BEGIN>\n## `smooth_gaussian`",
"Returns Gaussian smoothed image.",
" :param image: numpy array or :class:`jicimagelib.image.Image`\n :param sigma: standard deviation\n :returns: :class:`ji... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convex_hull API.
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 convex_hull API.
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... | Region representing the convex hull.
:returns: :class:`jicimagelib.region.Region` | "Region representing the convex hull.\n\n :returns: :class:`jicimagelib.region.Region`" | 91 | false | JIC-CSB/jicimagelib | convex_hull | 16,621 | |
LDU_FT/pgjones/quart/build | LDU_FT | [
"<BEGIN>\n## `get_command`",
"Return the relevant command given the context and name.",
" .. warning::",
" This differs substaintially from Flask in that it allows\n for the inbuilt commands to be overridden.\n<END>",
"<BEGIN>\n## `render_template`",
"Render the template with ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Build this rule into a path using the values given. | "Build this rule into a path using the values given." | 611 | false | pgjones/quart | build | 16,622 | |
LDU_FT/ottogroup/palladium/memory_usage_psutil | LDU_FT | [
"<BEGIN>\n## `apply_kwargs`",
"Call *func* with kwargs, but only those kwargs that it accepts.\n<END>",
"<BEGIN>\n## `args_from_config`",
"Decorator that injects parameters from the configuration.\n<END>",
"<BEGIN>\n## `memory_usage_psutil`",
"Return the current process memory usage in MB.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memory_usage_psutil 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 memory_usage_psutil API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Return the current process memory usage in MB. | "Return the current process memory usage in MB." | 86 | false | ottogroup/palladium | memory_usage_psutil | 16,623 | |
LDU_FT/cldf/segments/rules | LDU_FT | [
"<BEGIN>\n## `tokenize`",
"Tokenize a string (passed as argument or read from stdin)",
" segments [--profile=PATH/TO/PROFILE] tokenize [STRING]\n<END>",
"<BEGIN>\n## `from_file`",
"Read an orthography profile from a metadata file or a default tab-separated profile file.\n<END>",
"<BEGIN>\n## `from_text... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rules API.
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 rules API.
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... | Function to tokenize input string and return output of str with ortho rules
applied.
Parameters
----------
word : str
The input string to be tokenized.
Returns
-------
result : str
Result of the orthography rules applied to the input str. | "Function to tokenize input string and return output of str with ortho rules\n applied.\n\n Parameters\n ----------\n word : str\n The input string to be tokenized.\n\n Returns\n -------\n result : str\n Result of the orthography rules applied to th... | 25 | false | cldf/segments | rules | 16,624 | |
LDU_FT/asphalt-framework/asphalt/get_resource | LDU_FT | [
"<BEGIN>\n## `run_application`",
"Configure logging and start the given root component in the default asyncio event loop.",
" Assuming the root component was started successfully, the event loop will continue running\n until the process is terminated.",
" Initializes the logging system first based on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource API.
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_resource API.
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... | Look up a resource in the chain of contexts.
:param type: type of the requested resource
:param name: name of the requested resource
:return: the requested resource, or ``None`` if none was available | "Look up a resource in the chain of contexts.\n\n :param type: type of the requested resource\n :param name: name of the requested resource\n :return: the requested resource, or ``None`` if none was available" | 143 | false | asphalt-framework/asphalt | get_resource | 16,625 | |
LDU_FT/googlesamples/assistant-sdk-python/close | LDU_FT | [
"<BEGIN>\n## `main`",
"File based sample for the Google Assistant API.",
" Examples:\n $ python -m audiofileinput -i <input file> -o <output file>\n<END>",
"<BEGIN>\n## `process_event`",
"Pretty prints events.",
" Prints all events that occur with two spaces between each new\n conversation a... | 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... | Close the underlying stream and audio interface. | "Close the underlying stream and audio interface." | 72 | false | googlesamples/assistant-sdk-python | close | 16,626 | |
LDU_FT/agusmakmun/djipsum/fake_chars_or_choice | LDU_FT | [
"<BEGIN>\n## `randomCharField`",
"Checking if `field_name` has choices.\n Then, returning random value from it.\n Result of: `available_choices`\n [\n ('project', 'I wanna to talk about project'),\n ('feedback', 'I want to report a bugs or give feedback'),\n ('hello... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fake_chars_or_choice 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 fake_chars_or_choice API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return fake chars or choice it if the `field_name` has choices.
Then, returning random value from it.
This specially for `CharField`.
Usage:
faker.fake_chars_or_choice('field_name')
Example for field:
TYPE_CHOICES = (
('project', 'I wanna to talk a... | "Return fake chars or choice it if the `field_name` has choices.\n Then, returning random value from it.\n This specially for `CharField`.\n\n Usage:\n faker.fake_chars_or_choice('field_name')\n\n Example for field:\n TYPE_CHOICES = (\n ('project', 'I wanna... | 30 | false | agusmakmun/djipsum | fake_chars_or_choice | 16,627 | |
LDU_FT/klmitch/aversion/_parse_version_rule | LDU_FT | [
"<BEGIN>\n## `quoted_split`",
"Split a string on the given separation character, but respecting\n double-quoted sections of the string. Returns an iterator.",
" :param string: The string to split.\n :param sep: The character separating sections of the string.\n :param quotes: A string specifying al... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_version_rule 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 _parse_version_rule 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 a version rule. The first token is the name of the
application implementing that API version. The remaining tokens
are key="quoted value" pairs that specify parameters; these
parameters are ignored by AVersion, but may be used by the
application.
:param loader: An object with a get_app() me... | "Parse a version rule. The first token is the name of the\n application implementing that API version. The remaining tokens\n are key=\"quoted value\" pairs that specify parameters; these\n parameters are ignored by AVersion, but may be used by the\n application.\n\n :param loader: An object with a get... | 47 | false | klmitch/aversion | _parse_version_rule | 16,628 | |
LDU_FT/roycoding/slots/ucb | LDU_FT | [
"<BEGIN>\n## `run`",
"Run MAB test with T trials.",
" Parameters\n ----------\n trials : int\n Number of trials to run.\n strategy : str\n Name of selected strategy.\n parameters : dict\n Parameters for selected strategy.",
" Available... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ucb API.
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 ucb API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run the upper confidence bound MAB selection strategy.
This is the UCB1 algorithm described in
https://homes.di.unimi.it/~cesabian/Pubblicazioni/ml-02.pdf
Parameters
----------
params : None
For API consistency, this function can take a parameters argument,
... | "Run the upper confidence bound MAB selection strategy.\n\n This is the UCB1 algorithm described in\n https://homes.di.unimi.it/~cesabian/Pubblicazioni/ml-02.pdf\n\n Parameters\n ----------\n params : None\n For API consistency, this function can take a parameters argument,... | 55 | false | roycoding/slots | ucb | 16,629 | |
LDU_FT/Genida/dependenpy/as_graph | LDU_FT | [
"<BEGIN>\n## `cast`",
"Cast a set of keys and an array to a Matrix object.\n<END>",
"<BEGIN>\n## `connect_to`",
"Connect this vertex to another one.",
" Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.",
" Returns:\n Edge: th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Create a graph with self as node, cache it, return it.
Args:
depth (int): depth of the graph.
Returns:
Graph: an instance of Graph. | "Create a graph with self as node, cache it, return it.\n\n Args:\n depth (int): depth of the graph.\n\n Returns:\n Graph: an instance of Graph." | 130 | false | Genida/dependenpy | as_graph | 16,630 | |
LDU_FT/Phyks/libbmc/_download_helper | LDU_FT | [
"<BEGIN>\n## `is_valid`",
"Check that a given HAL id is a valid one.",
" :param hal_id: The HAL id to be checked.\n :returns: Boolean indicating whether the HAL id is valid or not.",
" >>> is_valid(\"hal-01258754, version 1\")\n True",
" >>> is_valid(\"hal-01258754\")\n True",
" >>> i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_helper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _download_helper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Handle the download of an URL, using the proxy currently set in \
:mod:`socks`.
:param url: The URL to download.
:returns: A tuple of the raw content of the downloaded data and its \
associated content-type. Returns None if it was \
unable to download the document. | "Handle the download of an URL, using the proxy currently set in \\\n :mod:`socks`.\n\n :param url: The URL to download.\n :returns: A tuple of the raw content of the downloaded data and its \\\n associated content-type. Returns None if it was \\\n unable to download the document.... | 271 | false | Phyks/libbmc | _download_helper | 16,631 | |
LDU_FT/materialsproject/custodian/modify_object | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.",
" Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the modify_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Modify an object that supports pymatgen's as_dict() and from_dict API.
Args:
modification (dict): Modification must be {action_keyword :
settings}. E.g., {'_set': {'Hello':'Universe', 'Bye': 'World'}}
obj (object): Object to modify | "Modify an object that supports pymatgen's as_dict() and from_dict API.\n\n Args:\n modification (dict): Modification must be {action_keyword :\n settings}. E.g., {'_set': {'Hello':'Universe', 'Bye': 'World'}}\n obj (object): Object to modify" | 90 | false | materialsproject/custodian | modify_object | 16,632 | |
LDU_FT/blockcypher/blockcypher-python/put_metadata | LDU_FT | [
"<BEGIN>\n## `script_to_address`",
"Like script_to_address but supports altcoins\n Copied 2015-10-02 from https://github.com/mflaxman/pybitcointools/blob/faf56c53148989ea390238c3c4541a6ae1d601f5/bitcoin/transaction.py#L224-L236\n<END>",
"<BEGIN>\n## `get_address_details`",
"Takes an address and coin_symbol... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_metadata API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Embed metadata using blockcypher's API.
This is not embedded into the bitcoin (or other) blockchain,
and is only stored on blockcypher's servers. | "Embed metadata using blockcypher's API.\n\n This is not embedded into the bitcoin (or other) blockchain,\n and is only stored on blockcypher's servers." | 163 | false | blockcypher/blockcypher-python | put_metadata | 16,633 | |
LDU_FT/atmos-python/atmos/quantity_string | LDU_FT | [
"<BEGIN>\n## `assumes`",
"Stores a function's assumptions as an attribute.\n<END>",
"<BEGIN>\n## `overridden_by_assumptions`",
"Stores what assumptions a function is overridden by as an attribute.\n<END>",
"<BEGIN>\n## `equation_docstring`",
"Creates a decorator that adds a docstring to an equation functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quantity_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quantity_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Takes in an abbreviation for a quantity and a quantity dictionary,
and returns a more descriptive string of the quantity as "name (units)."
Raises ValueError if the name is not in quantity_dict | "Takes in an abbreviation for a quantity and a quantity dictionary,\n and returns a more descriptive string of the quantity as \"name (units).\"\n Raises ValueError if the name is not in quantity_dict" | 126 | false | atmos-python/atmos | quantity_string | 16,634 | |
LDU_FT/pytorch/text/fromvars | LDU_FT | [
"<BEGIN>\n## `load_vectors`",
"Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromvars API.
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 fromvars API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Create a Batch directly from a number of Variables. | "Create a Batch directly from a number of Variables." | 131 | false | pytorch/text | fromvars | 16,635 | |
LDU_FT/trehn/termdown/parse_timedelta | LDU_FT | [
"<BEGIN>\n## `format_seconds`",
"Returns a human-readable string representation of the given amount\n of seconds.\n<END>",
"<BEGIN>\n## `graceful_ctrlc`",
"Makes the decorated function exit with code 1 on CTRL+C.\n<END>",
"<BEGIN>\n## `pad_to_size`",
"Adds whitespace to text to center it within a frame... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_timedelta API.
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 parse_timedelta API.
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... | Parse a string describing a period of time. | "Parse a string describing a period of time." | 12 | false | trehn/termdown | parse_timedelta | 16,636 | |
LDU_FT/ARMmbed/mbed-connector-api-python/getConnectorVersion | LDU_FT | [
"<BEGIN>\n## `getConnectorVersion`",
"GET the current Connector version.",
"\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult\n<END>",
"<BEGIN>\n## `getEndpoints`",
"Get list of all endpoints on the domain.",
"\t\t:param str typeOfEndpoint: Optional filter endpo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getConnectorVersion 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 getConnectorVersion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | GET the current Connector version.
:returns: asyncResult object, populates error and result fields
:rtype: asyncResult | "GET the current Connector version.\n\n\t\t:returns: asyncResult object, populates error and result fields\n\t\t:rtype: asyncResult" | 56 | false | ARMmbed/mbed-connector-api-python | getConnectorVersion | 16,637 | |
LDU_FT/limix/limix-core/opt_hyper | LDU_FT | [
"<BEGIN>\n## `addFixedEffect`",
"set sample and trait designs\n F: NxK sample design\n A: LxP sample design\n REML: REML for this term?\n index: index of which fixed effect to replace. If None, just append.\n<END>",
"<BEGIN>\n## `removeFixedEffect`",
"set sample and tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the opt_hyper API.
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 opt_hyper API.
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... | optimize params
Input:
gpr: GP regression class
params0: dictionary filled with starting hyperparameters
opts: options for optimizer | "optimize params\n\n Input:\n gpr: GP regression class\n params0: dictionary filled with starting hyperparameters\n opts: options for optimizer" | 61 | false | limix/limix-core | opt_hyper | 16,638 | |
LDU_FT/MartinThoma/hwrt/get_possible_splits | LDU_FT | [
"<BEGIN>\n## `classify_segmented_recording`",
"Use this function if you are sure you have a single symbol.",
" Parameters\n ----------\n recording : string\n The recording in JSON format",
" Returns\n -------\n list of dictionaries\n Each dictionary contains the keys 'symbol' a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_possible_splits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_possible_splits 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... | Parameters
----------
n : int
n strokes were make | "Parameters\n ----------\n n : int\n n strokes were make" | 558 | false | MartinThoma/hwrt | get_possible_splits | 16,639 | |
LDU_FT/linkedin/shiv/find_entry_point | LDU_FT | [
"<BEGIN>\n## `get_args`",
"Overrides easy_install.ScriptWriter.get_args",
" This method avoids using pkg_resources to map a named entry_point\n to a callable at invocation time.\n<END>",
"<BEGIN>\n## `clean_pip_env`",
"A context manager for temporarily removing 'PIP_REQUIRE_VIRTUALENV' from the enviro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_entry_point API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_entry_point API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Find a console_script in a site-packages directory.
Console script metadata is stored in entry_points.txt per setuptools
convention. This function searches all entry_points.txt files and
returns the import string for a given console_script argument.
:param site_packages: A path to a site-packages dire... | "Find a console_script in a site-packages directory.\n\n Console script metadata is stored in entry_points.txt per setuptools\n convention. This function searches all entry_points.txt files and\n returns the import string for a given console_script argument.\n\n :param site_packages: A path to a site-packag... | 40 | false | linkedin/shiv | find_entry_point | 16,640 | |
LDU_FT/sci-bots/mpm/freeze | LDU_FT | [
"<BEGIN>\n## `update_plugin_dialog`",
"Launch dialog to track status of update of specified plugin package.",
" .. versionadded:: 0.19",
" .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).",
" Add :data:`update_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the freeze API.
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 freeze API.
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 ... | Parameters
----------
plugins_directory : str
Path to MicroDrop user plugins directory.
Returns
-------
list
List of package strings corresponding to installed plugin versions. | "Parameters\n ----------\n plugins_directory : str\n Path to MicroDrop user plugins directory.\n\n Returns\n -------\n list\n List of package strings corresponding to installed plugin versions." | 181 | false | sci-bots/mpm | freeze | 16,641 | |
LDU_FT/juicer/juicer/push | LDU_FT | [
"<BEGIN>\n## `log_wrap`",
"DRY: Use magic instead of code to get a string for the correct log\n level when calling ``print_log_msg``. Because writing the same\n boilerplate code in each log_XXX def was too painful to commit.\n<END>",
"<BEGIN>\n## `add_repo`",
"Build up repos",
" `name` - Name o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | `cart` - Release cart to push items from
`callback` - Optional callback to call if juicer.utils.upload_rpm succeeds
Pushes the items in a release cart to the pre-release environment. | "`cart` - Release cart to push items from\n `callback` - Optional callback to call if juicer.utils.upload_rpm succeeds\n\n Pushes the items in a release cart to the pre-release environment." | 243 | false | juicer/juicer | push | 16,642 | |
LDU_FT/bwohlberg/sporco/dstep | LDU_FT | [
"<BEGIN>\n## `pyfftw_byte_aligned`",
"Construct a byte-aligned array for efficient use by :mod:`pyfftw`.\n This function is a wrapper for :func:`pyfftw.byte_align`",
" Parameters\n ----------\n array : ndarray\n Input array\n dtype : dtype, optional (default None)\n Output array dtype\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dstep API.
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 dstep API.
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... | Compute dictionary update for training data of preceding
:meth:`xstep`. | "Compute dictionary update for training data of preceding\n :meth:`xstep`." | 1,237 | true | bwohlberg/sporco | dstep | 16,643 | |
LDU_FT/FulcrumTechnologies/pyconfluence/edit_page | LDU_FT | [
"<BEGIN>\n## `load_variables`",
"Load variables from environment variables.\n<END>",
"<BEGIN>\n## `rest`",
"Main function to be called from this module.",
" send a request using method 'req' and to the url. the _rest() function\n will add the base_url to this, so 'url' should be something like '/ips'.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edit_page API.
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 edit_page API.
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... | Update a page in Confluence.
Parameters:
- id: ID of the page you wish to edit.
- name: name you would like to give to the page (usually the same name).
- space: space where the page lives.
- content: XHTML content to be written to the page.
Notes: it is required to try an initial update to find... | "Update a page in Confluence.\n Parameters:\n - id: ID of the page you wish to edit.\n - name: name you would like to give to the page (usually the same name).\n - space: space where the page lives.\n - content: XHTML content to be written to the page.\n Notes: it is required to try an initial update ... | 19 | false | FulcrumTechnologies/pyconfluence | edit_page | 16,644 | |
LDU_FT/inveniosoftware/invenio-communities/oaiset_url | LDU_FT | [
"<BEGIN>\n## `format_item`",
"Render a template to a string with the provided item in context.\n<END>",
"<BEGIN>\n## `index`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\n## `generic_item`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oaiset_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the oaiset_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the OAISet URL for given community.
:returns: URL of corresponding OAISet.
:rtype: str | "Return the OAISet URL for given community.\n\n :returns: URL of corresponding OAISet.\n :rtype: str" | 89 | false | inveniosoftware/invenio-communities | oaiset_url | 16,645 | |
LDU_FT/CloudGenix/sdk-python/jd | LDU_FT | [
"<BEGIN>\n## `jdout`",
"JD Output function. Does quick pretty printing of a CloudGenix Response body. This function returns a string\n instead of directly printing content.",
" **Parameters:**",
" - **api_response:** A CloudGenix-attribute extended `requests.Response` object",
" **Returns:**... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jd API.
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 jd API.
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... | JD (JSON Dump) function. Meant for quick pretty-printing of CloudGenix Response objects.
Example: `jd(cgx_sess.get.sites())`
**Returns:** No Return, directly prints all output. | "JD (JSON Dump) function. Meant for quick pretty-printing of CloudGenix Response objects.\n\n Example: `jd(cgx_sess.get.sites())`\n\n **Returns:** No Return, directly prints all output." | 153 | false | CloudGenix/sdk-python | jd | 16,646 | |
LDU_FT/saulpw/visidata/exceptionCaught | LDU_FT | [
"<BEGIN>\n## `expand_cols_deep`",
"expand all visible columns of containers to the given depth (0=fully)\n<END>",
"<BEGIN>\n## `load_pyobj`",
"Return Sheet object of appropriate type for given sources in `args`.\n<END>",
"<BEGIN>\n## `getPublicAttrs`",
"Return all public attributes (not methods or `_`-pre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exceptionCaught API.
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 exceptionCaught API.
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... | Maintain list of most recent errors and return most recent one. | "Maintain list of most recent errors and return most recent one." | 249 | false | saulpw/visidata | exceptionCaught | 16,647 | |
LDU_FT/helium/helium-python/device_configuration | LDU_FT | [
"<BEGIN>\n## `error_for`",
"Return the appropriate initialized exception class for a response.\n<END>",
"<BEGIN>\n## `device_configuration`",
"Get a specific device configuration.",
" A device can have at most one loaded and one pending device\n configuration. This returns that device_configur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the device_configuration 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 device_configuration 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 a specific device configuration.
A device can have at most one loaded and one pending device
configuration. This returns that device_configuration based on
a given flag.
Keyword Args:
pending(bool): Fetch the pending configuration or return
the loaded o... | "Get a specific device configuration.\n\n A device can have at most one loaded and one pending device\n configuration. This returns that device_configuration based on\n a given flag.\n\n Keyword Args:\n\n pending(bool): Fetch the pending configuration or return\n th... | 223 | false | helium/helium-python | device_configuration | 16,648 | |
LDU_FT/sdispater/backpack/last | LDU_FT | [
"<BEGIN>\n## `avg`",
"Get the average value of a given key.",
" :param key: The key to get the average for\n :type key: mixed",
" :rtype: float or int\n<END>",
"<BEGIN>\n## `chunk`",
"Chunk the underlying collection.",
" :param size: The chunk size\n :type size: int",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the last API.
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 last API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Get the last item of the collection.
:param default: The default value
:type default: mixed | "Get the last item of the collection.\n\n :param default: The default value\n :type default: mixed" | 137 | false | sdispater/backpack | last | 16,649 | |
LDU_FT/drj11/pypng/write_passes | LDU_FT | [
"<BEGIN>\n## `adam7_generate`",
"Generate the coordinates for the reduced scanlines\n of an Adam7 interlaced image\n of size `width` by `height` pixels.",
" Yields a generator for each pass,\n and each pass generator yields a series of (x, y, xstep) triples,\n each one identifying a reduced scanl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_passes API.
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 write_passes API.
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... | Write a PNG image to the output file.
Most users are expected to find the :meth:`write` or
:meth:`write_array` method more convenient.
The rows should be given to this method in the order that
they appear in the output file.
For straightlaced images, this is the usual top to bo... | "Write a PNG image to the output file.\n\n Most users are expected to find the :meth:`write` or\n :meth:`write_array` method more convenient.\n\n The rows should be given to this method in the order that\n they appear in the output file.\n For straightlaced images, this is the usual t... | 153 | false | drj11/pypng | write_passes | 16,650 | |
LDU_FT/brmscheiner/ideogram/getModulePath | LDU_FT | [
"<BEGIN>\n## `traversal`",
"Tree traversal function that generates nodes. For each subtree, the \n deepest node is evaluated first. Then, the next-deepest nodes are \n evaluated until all the nodes in the subtree are generated.\n<END>",
"<BEGIN>\n## `firstPass`",
"Return a dictionary of function definit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getModulePath API.
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 getModulePath API.
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... | Searches for module_name in searchpath and returns the filepath.
If no filepath was found, returns None. | "Searches for module_name in searchpath and returns the filepath.\n If no filepath was found, returns None." | 50 | false | brmscheiner/ideogram | getModulePath | 16,651 | |
LDU_FT/toomore/goristock/list_data | LDU_FT | [
"<BEGIN>\n## `output`",
"re = \"\"\"<table>\n <tr><td>%(name)s</td><td>%(c)s</td><td>%(range)+.2f(%(pp)+.2f%%)</td></tr>\n <tr><td>%(stock_no)s</td><td>%(value)s</td><td>%(time)s</td></tr></table>\"\"\" % {\n<END>",
"<BEGIN>\n## `Rt_display`",
"For real time stock display\n 即時盤用,顯示目... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_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 extract... | 將資料 list 化
return dictionary:
[stock_price]: Closing price (list)
收盤價格
[stock_name]: Stock name (str) and encode form big5 to utf-8
該股名稱,big5 → UTF-8
[data_date]: Stock date (list)
數據日期資訊
[stock... | "將資料 list 化\n return dictionary:\n [stock_price]: Closing price (list)\n 收盤價格\n [stock_name]: Stock name (str) and encode form big5 to utf-8\n 該股名稱,big5 → UTF-8\n [data_date]: Stock date (list)\n 數據日期資訊\n ... | 62 | false | toomore/goristock | list_data | 16,652 | |
LDU_FT/sci-bots/mpm/home_dir | LDU_FT | [
"<BEGIN>\n## `update_plugin_dialog`",
"Launch dialog to track status of update of specified plugin package.",
" .. versionadded:: 0.19",
" .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).",
" Add :data:`update_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the home_dir API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns:
str : Path to home directory (or ``Documents`` directory on Windows). | "Returns:\n\n str : Path to home directory (or ``Documents`` directory on Windows)." | 181 | false | sci-bots/mpm | home_dir | 16,653 | |
LDU_FT/gebn/wood/chunk | LDU_FT | [
"<BEGIN>\n## `_normalise_path`",
"Ensures a path is parsed.",
" :param path: A path string or Path object.\n :return: The path as a Path object.\n<END>",
"<BEGIN>\n## `root`",
"Retrieve a root directory object from a path.",
" :param path: The path string or Path object.\n :return: The created... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunk API.
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 chunk API.
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... | Produce an iterable of interables of a maximum length from a (presumably
longer) iterable. This is useful when only so many elements can be
processed at once, such as an API that limits to n things per request.
:param iterable: The iterable to chunk into iterables of size up to n.
:param n: The maximum... | "Produce an iterable of interables of a maximum length from a (presumably\n longer) iterable. This is useful when only so many elements can be\n processed at once, such as an API that limits to n things per request.\n\n :param iterable: The iterable to chunk into iterables of size up to n.\n :param n: The m... | 70 | false | gebn/wood | chunk | 16,654 | |
LDU_FT/Hundemeier/sacn/move_universe | LDU_FT | [
"<BEGIN>\n## `activate_output`",
"Activates a universe that's then starting to sending every second.\n See http://tsp.esta.org/tsp/documents/docs/E1-31-2016.pdf for more information\n :param universe: the universe to activate\n<END>",
"<BEGIN>\n## `deactivate_output`",
"Deactivates an existing s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the move_universe API.
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 move_universe API.
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... | Moves an sending from one universe to another. All settings are being restored and only the universe changes
:param universe_from: the universe that should be moved
:param universe_to: the target universe. An existing universe will be overwritten | "Moves an sending from one universe to another. All settings are being restored and only the universe changes\n :param universe_from: the universe that should be moved\n :param universe_to: the target universe. An existing universe will be overwritten" | 32 | false | Hundemeier/sacn | move_universe | 16,655 | |
LDU_FT/codenerix/django-codenerix/flatatt | LDU_FT | [
"<BEGIN>\n## `get_groups`",
"<--------------------------------------- 12 columns ------------------------------------>\n <--- 6 columns ---> <--- 6 columns --->\n ------------------------------------------ ------------------------------------------\n |... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatatt API.
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 flatatt API.
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... | Pilfered from `django.forms.utils`:
Convert a dictionary of attributes to a single string.
The returned string will contain a leading space followed by key="value",
XML-style pairs. In the case of a boolean value, the key will appear
without a value. Otherwise, the value is formatted through its own dic... | "Pilfered from `django.forms.utils`:\n Convert a dictionary of attributes to a single string.\n The returned string will contain a leading space followed by key=\"value\",\n XML-style pairs. In the case of a boolean value, the key will appear\n without a value. Otherwise, the value is formatted through its ... | 82 | false | codenerix/django-codenerix | flatatt | 16,656 | |
LDU_FT/ManiacalLabs/PixelWeb/POST | LDU_FT | [
"<BEGIN>\n## `_re_flatten`",
"Turn all capturing groups in a regular expression pattern into\n non-capturing groups.\n<END>",
"<BEGIN>\n## `redirect`",
"Aborts execution and causes a 303 or 302 redirect, depending on\n the HTTP protocol version.\n<END>",
"<BEGIN>\n## `_file_iter_range`",
"Yi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the POST API.
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 POST API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | The values of :attr:`forms` and :attr:`files` combined into a single
:class:`FormsDict`. Values are either strings (form values) or
instances of :class:`cgi.FieldStorage` (file uploads). | "The values of :attr:`forms` and :attr:`files` combined into a single\n :class:`FormsDict`. Values are either strings (form values) or\n instances of :class:`cgi.FieldStorage` (file uploads)." | 100 | false | ManiacalLabs/PixelWeb | POST | 16,657 | |
LDU_FT/openvax/pyensembl/distinct_column_values_at_locus | LDU_FT | [
"<BEGIN>\n## `_write_csv`",
"Parameters\n ----------\n df : pandas.DataFrame",
" csv_path : str",
" chunksize : int\n Number of rows to write at a time. Helps to limit memory\n consumption while writing a CSV.\n<END>",
"<BEGIN>\n## `cached_dataframe`",
"If... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct_column_values_at_locus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distinct_column_values_at_locus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Gather all the distinct values for a property/column at some specified
locus.
Parameters
----------
column : str
Which property are we getting the values of.
feature : str
Which type of entry (e.g. transcript, exon, gene) is the property
asso... | "Gather all the distinct values for a property/column at some specified\n locus.\n\n Parameters\n ----------\n column : str\n Which property are we getting the values of.\n\n feature : str\n Which type of entry (e.g. transcript, exon, gene) is the property\n ... | 234 | false | openvax/pyensembl | distinct_column_values_at_locus | 16,658 | |
LDU_FT/CyberReboot/vent/apply_path | LDU_FT | [
"<BEGIN>\n## `gpu_queue`",
"Queued up containers waiting for GPU resources\n<END>",
"<BEGIN>\n## `file_queue`",
"Processes files that have been added from the rq-worker, starts plugins\n that match the mime type for the new file.\n<END>",
"<BEGIN>\n## `inventory`",
"Return a dictionary of the inventory... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_path API.
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 apply_path API.
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 path to where the repo is and return original path | "Set path to where the repo is and return original path" | 141 | false | CyberReboot/vent | apply_path | 16,659 | |
LDU_FT/pecan/pecan/find_object | LDU_FT | [
"<BEGIN>\n## `route`",
"This function is used to define an explicit route for a path segment.",
" You generally only want to use this in situations where your desired path\n segment is not a valid Python variable/function name.",
" For example, if you wanted to be able to route to:",
" /path/wit... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | 'Walks' the url path in search of an action for which a controller is
implemented and returns that controller object along with what's left
of the remainder. | "'Walks' the url path in search of an action for which a controller is\n implemented and returns that controller object along with what's left\n of the remainder." | 157 | false | pecan/pecan | find_object | 16,660 | |
LDU_FT/ajdavis/mongo-mockup-db/reply_bytes | LDU_FT | [
"<BEGIN>\n## `go`",
"Launch an operation on a thread and get a handle to its future result.",
" >>> from time import sleep\n >>> def print_sleep_print(duration):\n ... sleep(duration)\n ... print('hello from background thread')\n ... sleep(duration)\n ... print('goodbye from ba... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reply_bytes API.
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 reply_bytes API.
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... | Take a `Request` and return an OP_REPLY message as bytes. | "Take a `Request` and return an OP_REPLY message as bytes." | 129 | false | ajdavis/mongo-mockup-db | reply_bytes | 16,661 | |
LDU_FT/splitkeycoffee/pyhottop/set_roast_properties | LDU_FT | [
"<BEGIN>\n## `_generate_config`",
"Generate a configuration that can be sent to the Hottop roaster.",
" Configuration settings need to be represented inside of a byte array\n that is then written to the serial interface. Much of the configuration\n is static, but control settings are also i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_roast_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_roast_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Set the properties of the roast.
:param settings: General settings for the roast setup
:type settings: dict
:returns: None
:raises: InvalidInput | "Set the properties of the roast.\n\n :param settings: General settings for the roast setup\n :type settings: dict\n :returns: None\n :raises: InvalidInput" | 89 | false | splitkeycoffee/pyhottop | set_roast_properties | 16,662 | |
LDU_FT/peterdemin/pip-compile-multi/python_version_matchers | LDU_FT | [
"<BEGIN>\n## `create_lockfile`",
"Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>",
"<BEGIN>\n## `parse_references`",
"Read filename line by line searching for pattern:",
" -r file.in\n or\n --requirement file.in",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the python_version_matchers 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 python_version_matchers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Return set of string representations of current python version | "Return set of string representations of current python version" | 61 | false | peterdemin/pip-compile-multi | python_version_matchers | 16,663 | |
LDU_FT/Metatab/metatab/remove_term | LDU_FT | [
"<BEGIN>\n## `split_term`",
"Split a term in to parent and record term components\n :param term: combined term text\n :return: Tuple of parent and record term\n<END>",
"<BEGIN>\n## `split_term_lower`",
"Like split_term, but also lowercases both parent and record term\n :param term: combin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_term API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_term API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Remove a term from the terms. Must be the identical term, the same object | "Remove a term from the terms. Must be the identical term, the same object" | 102 | false | Metatab/metatab | remove_term | 16,664 | |
LDU_FT/turicas/rows/selected_objects | LDU_FT | [
"<BEGIN>\n## `import_from_json`",
"Import a JSON file or file-like object into a `rows.Table`.",
" If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>",
"<BEGIN>\n## `export_to_json`",
"Export a `ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the selected_objects API.
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 selected_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Filter out objects outside table boundaries | "Filter out objects outside table boundaries" | 123 | false | turicas/rows | selected_objects | 16,665 | |
LDU_FT/peopledoc/workalendar/get_variable_days | LDU_FT | [
"<BEGIN>\n## `get_variable_days`",
"Add Late Summer holiday (First Monday of September)\n<END>",
"<BEGIN>\n## `iso_register`",
"Registers Calendar class as country or region in IsoRegistry.",
" Registered country must set class variables ``iso`` using this decorator.",
" >>> from workalendar.core im... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_variable_days API.
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_variable_days API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Add Late Summer holiday (First Monday of September) | "Add Late Summer holiday (First Monday of September)" | 106 | false | peopledoc/workalendar | get_variable_days | 16,666 | |
LDU_FT/vlukes/dicom2fem/pause | LDU_FT | [
"<BEGIN>\n## `find_map`",
"Find a mapping between common coordinates in x1 and x2, such that\n x1[cmap[:,0]] == x2[cmap[:,1]]\n<END>",
"<BEGIN>\n## `merge_mesh`",
"Merge two meshes in common coordinates found in x1, x2.\n<END>",
"<BEGIN>\n## `fix_double_nodes`",
"Detect and attempt fixing double nodes ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pause API.
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 pause API.
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... | Prints the line number and waits for a keypress.
If you press:
"q" ............. it will call sys.exit()
any other key ... it will continue execution of the program
This is useful for debugging. | "Prints the line number and waits for a keypress.\n\n If you press:\n \"q\" ............. it will call sys.exit()\n any other key ... it will continue execution of the program\n\n This is useful for debugging." | 142 | false | vlukes/dicom2fem | pause | 16,667 | |
LDU_FT/razorpay/razorpay-python/fetch | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetch Card for given Id",
" Args:\n card_id : Id for which card object has to be retrieved",
" Returns:\n Card dict for given card Id\n<END>",
"<BEGIN>\n## `all`",
"Fetch all Virtual Account entities",
" Returns:\n Dictionary ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch API.
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 fetch API.
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... | Fetch Customer for given Id
Args:
customer_id : Id for which customer object has to be retrieved
Returns:
Order dict for given customer Id | "Fetch Customer for given Id\n\n Args:\n customer_id : Id for which customer object has to be retrieved\n\n Returns:\n Order dict for given customer Id" | 159 | false | razorpay/razorpay-python | fetch | 16,668 | |
LDU_FT/pauleveritt/kaybee/get_reference | LDU_FT | [
"<BEGIN>\n## `render`",
"Given a Sphinx builder and context with sphinx_app in it,\n generate HTML\n<END>",
"<BEGIN>\n## `in_navitem`",
"Given href of nav item, determine if resource is in it\n<END>",
"<BEGIN>\n## `is_published`",
"Return true if this resource has published date in the past\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return reference filed under rtype/label
The references are organized by field/label, e.g. category/cat1.
This lets us use a shorthand notation to go the resource, e.g.
ref:category:cat1 instead of folder1/folder2/cat1. | "Return reference filed under rtype/label\n\n The references are organized by field/label, e.g. category/cat1.\n This lets us use a shorthand notation to go the resource, e.g.\n ref:category:cat1 instead of folder1/folder2/cat1." | 71 | false | pauleveritt/kaybee | get_reference | 16,669 | |
LDU_FT/richardkiss/pycoin/coinbase_tx | LDU_FT | [
"<BEGIN>\n## `parse_as_header`",
"Parse the Block header from the file-like object\n<END>",
"<BEGIN>\n## `stream_header_legacy`",
"Stream the block header in the standard way to the file-like object f.\n<END>",
"<BEGIN>\n## `stream_header`",
"Stream the block header in the standard way to the file-like ob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the coinbase_tx API.
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 coinbase_tx API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Create the special "first in block" transaction that includes the mining fees. | "Create the special \"first in block\" transaction that includes the mining fees." | 336 | false | richardkiss/pycoin | coinbase_tx | 16,670 | |
LDU_FT/camsci/meteor-pi/file_generator | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect to a host on a given port.\n If the hostname ends with a colon (`:') followed by a number, and\n there is no port specified, that suffix will be stripped off and the\n number interpreted as the port number to use.\n<END>",
"<BEGIN>\n## `waiting`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Generator for FileRecord
:param sql:
A SQL statement which must return rows describing files.
:param sql_args:
Any variables required to populate the query provided in 'sql'
:return:
A generator which produces FileRecord instances from the supplied SQL, closi... | "Generator for FileRecord\n\n :param sql:\n A SQL statement which must return rows describing files.\n :param sql_args:\n Any variables required to populate the query provided in 'sql'\n :return:\n A generator which produces FileRecord instances from the supplied SQ... | 210 | false | camsci/meteor-pi | file_generator | 16,671 | |
LDU_FT/vanheeringen-lab/gimmemotifs/enr_at_fpr | LDU_FT | [
"<BEGIN>\n## `threshold`",
"Calculate motif score threshold for a given FPR.\n<END>",
"<BEGIN>\n## `values_to_labels`",
"Convert two arrays of values to an array of labels and an array of scores.",
" Parameters\n ----------\n fg_vals : array_like\n The list of values for the positive set.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enr_at_fpr API.
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 enr_at_fpr API.
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... | Computes the enrichment at a specific FPR (default 1%).
Parameters
----------
fg_vals : array_like
The list of values for the positive set.
bg_vals : array_like
The list of values for the negative set.
fpr : float, optional
The FPR (between 0.0 and 1.0).
Retur... | "Computes the enrichment at a specific FPR (default 1%).\n\n Parameters\n ----------\n fg_vals : array_like\n The list of values for the positive set.\n\n bg_vals : array_like\n The list of values for the negative set.\n \n fpr : float, optional\n The FPR (between 0.0 and 1.0).\n ... | 677 | false | vanheeringen-lab/gimmemotifs | enr_at_fpr | 16,672 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.