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/shaypal5/pdutil/df_to_html
LDU_FT
[ "<BEGIN>\n## `df_string`", "Return a nicely formatted string for the given dataframe.", " Arguments\n ---------\n df : pandas.DataFrame\n A dataframe object.\n percentage_columns : iterable\n A list of cloumn names to be displayed with a percentage sign.", " Returns\n -------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the df_to_html API. 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 df_to_html API. 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 a nicely formatted HTML code string for the given dataframe. Arguments --------- df : pandas.DataFrame A dataframe object. percentage_columns : iterable A list of cloumn names to be displayed with a percentage sign. Returns ------- str A nicely formatted stri...
"Return a nicely formatted HTML code string for the given dataframe.\n\n Arguments\n ---------\n df : pandas.DataFrame\n A dataframe object.\n percentage_columns : iterable\n A list of cloumn names to be displayed with a percentage sign.\n\n Returns\n -------\n str\n A nicely f...
37
false
shaypal5/pdutil
df_to_html
31,473
LDU_FT/pyupio/changelogs/get_urls
LDU_FT
[ "<BEGIN>\n## `get_releases`", "Gets all releases from pypi meta data.\n :param data: dict, meta data\n :return: list, str releases\n<END>", "<BEGIN>\n## `get_urls`", "Gets URLs to changelogs.\n :param session: requests Session instance\n :param name: str, package name\n :param data: dict, meta ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_urls API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Gets URLs to changelogs. :param session: requests Session instance :param name: str, package name :param data: dict, meta data :param find_changelogs_fn: function, find_changelogs :return: tuple, (set(changelog URLs), set(repo URLs))
"Gets URLs to changelogs.\n :param session: requests Session instance\n :param name: str, package name\n :param data: dict, meta data\n :param find_changelogs_fn: function, find_changelogs\n :return: tuple, (set(changelog URLs), set(repo URLs))"
58
false
pyupio/changelogs
get_urls
31,474
LDU_FT/tBaxter/tango-comments/post_comment
LDU_FT
[ "<BEGIN>\n## `next_redirect`", "Handle the \"where should I go next?\" part of comment views.", " The next value could be a\n ``?next=...`` GET arg or the URL of a given view (``fallback``). See\n the view modules for examples.", " Returns an ``HttpResponseRedirect``.\n<END>", "<BEGIN>\n## `conf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_comment API. 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 post_comment API. 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...
Post a comment. HTTP POST is required.
"Post a comment.\n\n HTTP POST is required."
66
false
tBaxter/tango-comments
post_comment
31,475
LDU_FT/jlmadurga/permabots/delete
LDU_FT
[ "<BEGIN>\n## `process`", "Render value_template of the parameter using context.", " :param context: Processing context\n<END>", "<BEGIN>\n## `post`", "Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Delete existing handler --- responseMessages: - code: 401 message: Not authenticated
"Delete existing handler\n ---\n responseMessages:\n - code: 401\n message: Not authenticated"
152
false
jlmadurga/permabots
delete
31,476
LDU_FT/almarklein/pyelastix/_get_fixed_params
LDU_FT
[ "<BEGIN>\n## `get_elastix_exes`", "Get the executables for elastix and transformix. Raises an error\n if they cannot be found.\n<END>", "<BEGIN>\n## `_clear_dir`", "Remove a directory and it contents. Ignore any failures.\n<END>", "<BEGIN>\n## `get_tempdir`", "Get the temporary directory where pyelasti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fixed_params API. 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_fixed_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Parameters that the user has no influence on. Mostly chosen bases on the input images.
"Parameters that the user has no influence on. Mostly chosen\n bases on the input images."
37
false
almarklein/pyelastix
_get_fixed_params
31,477
LDU_FT/benfred/implicit/recommend
LDU_FT
[ "<BEGIN>\n## `download_file`", "Simple wrapper around urlretrieve that uses tqdm to display a progress\n bar of download progress\n<END>", "<BEGIN>\n## `extract_gcc_binaries`", "Try to find GCC on OSX for OpenMP support.\n<END>", "<BEGIN>\n## `set_gcc`", "Try to use GCC on OSX for OpenMP support.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recommend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recommend API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
returns the best N recommendations for a user given its id
"returns the best N recommendations for a user given its id"
87
false
benfred/implicit
recommend
31,478
LDU_FT/rcsb/mmtf-python/decode_chain_list
LDU_FT
[ "<BEGIN>\n## `add_atom_data`", "Add the atomic data to the DataTransferInterface.\n :param data_api the data api from where to get the data\n :param data_setters the class to push the data to\n :param atom_nams the list of atom names for the group\n :param element_names the list of element names for t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_chain_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_chain_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...
Convert a list of bytes to a list of strings. Each string is of length mmtf.CHAIN_LEN :param in_bytes: the input bytes :return the decoded list of strings
"Convert a list of bytes to a list of strings. Each string is of length mmtf.CHAIN_LEN\n\n :param in_bytes: the input bytes\n :return the decoded list of strings"
130
false
rcsb/mmtf-python
decode_chain_list
31,479
LDU_FT/jxtech/wechatpy/get_login_info
LDU_FT
[ "<BEGIN>\n## `add_articles`", "新增永久图文素材\n 详情请参考\n https://mp.weixin.qq.com/wiki?id=mp1494572718_WzHIY", " :param articles: 图文素材数组\n :type articles: list[dict]\n :return: 返回的 JSON 数据包\n<END>", "<BEGIN>\n## `add`", "新增其它类型永久素材\n 详情请参考\n http://mp.weixin.qq.com/...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_login_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_login_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
获取企业号登录用户信息 详情请参考 https://qydev.weixin.qq.com/wiki/index.php?title=获取企业号登录用户信息 :param provider_access_token: 服务提供商的 accesstoken :param auth_code: OAuth 2.0 授权企业号管理员登录产生的 code :return: 返回的 JSON 数据包
"获取企业号登录用户信息\n\n 详情请参考\n https://qydev.weixin.qq.com/wiki/index.php?title=获取企业号登录用户信息\n\n :param provider_access_token: 服务提供商的 accesstoken\n :param auth_code: OAuth 2.0 授权企业号管理员登录产生的 code\n :return: 返回的 JSON 数据包"
813
false
jxtech/wechatpy
get_login_info
31,480
LDU_FT/nschloe/matplotlib2tikz/mpl_color2xcolor
LDU_FT
[ "<BEGIN>\n## `_get_ticks`", "Gets a {'x','y'}, a number of ticks and ticks labels, and returns the\n necessary axis options for the given configuration.\n<END>", "<BEGIN>\n## `_is_colorbar_heuristic`", "Find out if the object is in fact a color bar.\n<END>", "<BEGIN>\n## `_mpl_cmap2pgf_cmap`", "Convert...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mpl_color2xcolor API. 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 mpl_color2xcolor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Translates a matplotlib color specification into a proper LaTeX xcolor.
"Translates a matplotlib color specification into a proper LaTeX xcolor."
81
false
nschloe/matplotlib2tikz
mpl_color2xcolor
31,481
LDU_FT/MKLab-ITI/reveal-graph-embedding/write_average_score_row
LDU_FT
[ "<BEGIN>\n## `read_adjacency_matrix`", "Reads an edge list in csv format and returns the adjacency matrix in SciPy Sparse COOrdinate format.", " Inputs: - file_path: The path where the adjacency matrix is stored.\n - separator: The delimiter among values (e.g. \",\", \"\\t\", \" \")", " Out...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_average_score_row 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 write_average_score_row API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Simple utility function that writes an average score row in a file designated by a file pointer. Inputs: - fp: A file pointer. - score_name: What it says on the tin. - scores: An array of average score values corresponding to each of the training set percentages.
"Simple utility function that writes an average score row in a file designated by a file pointer.\n\n Inputs: - fp: A file pointer.\n - score_name: What it says on the tin.\n - scores: An array of average score values corresponding to each of the training set percentages."
151
false
MKLab-ITI/reveal-graph-embedding
write_average_score_row
31,482
LDU_FT/MisterY/gnucash-portfolio/get_total_paid
LDU_FT
[ "<BEGIN>\n## `get_next_occurrence`", "Calculates the next occurrence date for scheduled transaction.\n Mimics the recurrenceNextInstance() function from GnuCash.\n Still not fully complete but handles the main cases I use.\n<END>", "<BEGIN>\n## `handle_friday`", "Extracted the calculation for when the n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_paid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_paid API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Returns the total amount paid, in currency, for the stocks owned
"Returns the total amount paid, in currency, for the stocks owned"
157
false
MisterY/gnucash-portfolio
get_total_paid
31,483
LDU_FT/Clarify/clarify_python/_get_first_bundle_list
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_first_bundle_list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_first_bundle_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....
Get a list of available bundles. 'limit' may be None, which implies API default. If not None, must be > 1. 'embed_items' True will embed item data in the result. 'embed_tracks' True will embed track data in the embedded items. 'embed_metadata' True will embed metadata in the em...
"Get a list of available bundles.\n\n 'limit' may be None, which implies API default. If not None,\n must be > 1.\n 'embed_items' True will embed item data in the result.\n 'embed_tracks' True will embed track data in the embedded items.\n 'embed_metadata' True will embed metadata in...
137
false
Clarify/clarify_python
_get_first_bundle_list
31,484
LDU_FT/pinax/django-user-accounts/do_user_display
LDU_FT
[ "<BEGIN>\n## `user_post_save`", "After User.save is called we check to see if it was a created user. If so,\n we check if the User object wants account creation. If all passes we\n create an Account object.", " We only run on user creation to avoid having to check for existence on\n each call to Use...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_user_display API. 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 do_user_display API. 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...
Example usage:: {% user_display user %} or if you need to use in a {% blocktrans %}:: {% user_display user as user_display} {% blocktrans %}{{ user_display }} has sent you a gift.{% endblocktrans %}
"Example usage::\n\n {% user_display user %}\n\n or if you need to use in a {% blocktrans %}::\n\n {% user_display user as user_display}\n {% blocktrans %}{{ user_display }} has sent you a gift.{% endblocktrans %}"
16
false
pinax/django-user-accounts
do_user_display
31,485
LDU_FT/frnsys/broca/tokenize
LDU_FT
[ "<BEGIN>\n## `train_doc2vec`", "Train a doc2vec model on a list of files.\n<END>", "<BEGIN>\n## `_doc2vec_doc_stream`", "Generator to feed sentences to the dov2vec model.\n<END>", "<BEGIN>\n## `estimate_eps`", "Estimates possible eps values (to be used with DBSCAN)\n for a given distance matrix by look...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tokenize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Tokenizes a document, using a lemmatizer. Args: | doc (str) -- the text document to process. Returns: | list -- the list of tokens.
"Tokenizes a document, using a lemmatizer.\n\n Args:\n | doc (str) -- the text document to process.\n\n Returns:\n | list -- the list of tokens."
125
false
frnsys/broca
tokenize
31,486
LDU_FT/venmo/slouch/command
LDU_FT
[ "<BEGIN>\n## `_dual_decorator`", "This is a decorator that converts a paramaterized decorator for\n no-param use.", " source: http://stackoverflow.com/questions/3888158\n<END>", "<BEGIN>\n## `help`", "Usage: help [<command>]", " With no arguments, print the form of all supported commands.\n Wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
A decorator to convert a function to a command. A command's docstring must be a docopt usage string. See docopt.org for what it supports. Commands receive three arguments: * opts: a dictionary output by docopt * bot: the Bot instance handling the command (eg for storing st...
"A decorator to convert a function to a command.\n\n A command's docstring must be a docopt usage string.\n See docopt.org for what it supports.\n\n Commands receive three arguments:\n\n * opts: a dictionary output by docopt\n * bot: the Bot instance handling the command (eg for s...
39
false
venmo/slouch
command
31,487
LDU_FT/codelv/enaml-native/fetch
LDU_FT
[ "<BEGIN>\n## `init_layout`", "Initialize the layout of the toolkit widget.", " This method is called during the bottom-up pass. This method\n should initialize the layout of the widget. The child widgets\n will be fully initialized and layed out when this is called.\n<END>", "<BEGIN>\n## ...
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 the given url and fire the callback when ready. Optionally pass a `streaming_callback` to handle data from large requests. Parameters ---------- url: string The url to access. callback: callable The callback to invoke when th...
"Fetch the given url and fire the callback when ready. Optionally\n pass a `streaming_callback` to handle data from large requests.\n \n Parameters\n ----------\n url: string\n The url to access.\n callback: callable\n The callback to invok...
573
false
codelv/enaml-native
fetch
31,488
LDU_FT/Nachtfeuer/pipeline/provide_temporary_scripts_path
LDU_FT
[ "<BEGIN>\n## `calculate_columns`", "Find all row names and the maximum column widths.", " Args:\n columns (dict): the keys are the column name and the value the max length.", " Returns:\n dict: column names (key) and widths (value).\n<END>", "<BEGIN>\n## `calculate_row_format`", "Calcu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provide_temporary_scripts_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the provide_temporary_scripts_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
When configured trying to ensure that path does exist.
"When configured trying to ensure that path does exist."
196
false
Nachtfeuer/pipeline
provide_temporary_scripts_path
31,489
LDU_FT/Iotic-Labs/py-IoticAgent/set_description
LDU_FT
[ "<BEGIN>\n## `_notify_thing_lid_change`", "Used by Thing instances to indicate that a rename operation has happened\n<END>", "<BEGIN>\n## `register_catchall_feeddata`", "Registers a callback that is called for all feeddata your Thing receives", " `Example`", " #!python\n def f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_description API. 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 set_description API. 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...
Sets the `description` metadata property on your Thing/Point. Only one description is allowed per language, so any other descriptions in this language are removed before adding this one Raises `ValueError` containing an error message if the parameters fail validation `description` (mandatory)...
"Sets the `description` metadata property on your Thing/Point. Only one description is allowed per language,\n so any other descriptions in this language are removed before adding this one\n\n Raises `ValueError` containing an error message if the parameters fail validation\n\n `description` (mand...
643
false
Iotic-Labs/py-IoticAgent
set_description
31,490
LDU_FT/mdsol/rwslib/make_element
LDU_FT
[ "<BEGIN>\n## `format_date_argument`", "Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>", "<BEGIN>\n## `dataset`", "Qualify the dataset_na...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_element API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Make an element with this tag and text content
"Make an element with this tag and text content"
120
false
mdsol/rwslib
make_element
31,491
LDU_FT/skylander86/uriutils/uri_exists_wait
LDU_FT
[ "<BEGIN>\n## `join`", "Similar to :func:`os.path.join` but returns a storage object instead.", " :param str path: path to join on to this object's URI\n :returns: a storage object\n :rtype: BaseURI\n<END>", "<BEGIN>\n## `list_dir`", "Non-recursive file listing.", " :returns: A ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uri_exists_wait API. 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 uri_exists_wait API. 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...
Block / waits until URI exists. :param str uri: URI to check existence :param float timeout: Number of seconds before timing out :param float interval: Calls :func:`uri_exists` every ``interval`` seconds :param dict storage_args: Keyword arguments to pass to the underlying storage object :returns: ...
"Block / waits until URI exists.\n\n :param str uri: URI to check existence\n :param float timeout: Number of seconds before timing out\n :param float interval: Calls :func:`uri_exists` every ``interval`` seconds\n :param dict storage_args: Keyword arguments to pass to the underlying storage object\n :re...
37
false
skylander86/uriutils
uri_exists_wait
31,492
LDU_FT/kennydo/nyaalib/_get_page_content
LDU_FT
[ "<BEGIN>\n## `extract_url_query_parameter`", "Given a URL (ex: \"http://www.test.com/path?query=3\") and a parameter\n (ex: \"query\"), return the value as a list\n :param url: a `str` URL\n :param parameter: the URL query we went to extract\n :return: a `list` of values for the given query name in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_page_content API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_page_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...
Given a :class:`requests.Response`, return the :class:`xml.etree.Element` of the content `div`. :param response: a :class:`requests.Response` to parse :returns: the :class:`Element` of the first content `div` or `None`
"Given a :class:`requests.Response`, return the\n :class:`xml.etree.Element` of the content `div`.\n\n :param response: a :class:`requests.Response` to parse\n :returns: the :class:`Element` of the first content `div` or `None`"
14
false
kennydo/nyaalib
_get_page_content
31,493
LDU_FT/Naught0/asyncurban/_get
LDU_FT
[ "<BEGIN>\n## `_get`", "Helper method to reduce some boilerplate with :module:`aiohttp`.", " Args:\n term: The term to search for. Optional if doing a random search.\n random: Whether the search should return a random word.", " Returns:\n The JSON response from th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Helper method to reduce some boilerplate with :module:`aiohttp`. Args: term: The term to search for. Optional if doing a random search. random: Whether the search should return a random word. Returns: The JSON response from the API. ...
"Helper method to reduce some boilerplate with :module:`aiohttp`.\n \n Args:\n term: The term to search for. Optional if doing a random search.\n random: Whether the search should return a random word.\n \n Returns:\n The JSON response from the API.\n ...
26
false
Naught0/asyncurban
_get
31,494
LDU_FT/ui/django-post_office/get_available_backends
LDU_FT
[ "<BEGIN>\n## `get_upload_path`", "Overriding to store the original filename\n<END>", "<BEGIN>\n## `get_prep_value`", "We need to accomodate queries where a single email,\n or list of email addresses is supplied as arguments. For example:", " - Email.objects.filter(to='mail@example.com')\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_backends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_available_backends API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns a dictionary of defined backend classes. For example: { 'default': 'django.core.mail.backends.smtp.EmailBackend', 'locmem': 'django.core.mail.backends.locmem.EmailBackend', }
"Returns a dictionary of defined backend classes. For example:\n {\n 'default': 'django.core.mail.backends.smtp.EmailBackend',\n 'locmem': 'django.core.mail.backends.locmem.EmailBackend',\n }"
40
false
ui/django-post_office
get_available_backends
31,495
LDU_FT/rackerlabs/fleece/call_proxy_api
LDU_FT
[ "<BEGIN>\n## `build_wsgi_environ_from_event`", "Create a WSGI environment from the proxy integration event.\n<END>", "<BEGIN>\n## `wsgi_handler`", "lambda handler function.\n This function runs the WSGI app with it and collects its response, then\n translates the response back into the format expected b...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_proxy_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_proxy_api API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Make a request against the API defined by this app. Return any result from the API call as a dict that is expected by the AWS_PROXY type integration in API Gateway. :param dict event: Dictionary containing the entire request payload passed to the Lambda function handler...
"Make a request against the API defined by this app.\n\n Return any result from the API call as a dict that is expected by the\n AWS_PROXY type integration in API Gateway.\n\n :param dict event:\n Dictionary containing the entire request payload passed to the\n Lambda function...
108
false
rackerlabs/fleece
call_proxy_api
31,496
LDU_FT/monim67/django-bootstrap-datepicker-plus/_calculate_format
LDU_FT
[ "<BEGIN>\n## `format_value`", "Return a value as it should appear when rendered in a template.", " Missing method of django.forms.widgets.Widget class\n<END>", "<BEGIN>\n## `get_context`", "Missing method of django.forms.widgets.Widget class.\n<END>", "<BEGIN>\n## `render`", "Render the widget as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_format API. 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 _calculate_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Calculate and Return the datetime format.
"Calculate and Return the datetime format."
24
false
monim67/django-bootstrap-datepicker-plus
_calculate_format
31,497
LDU_FT/Shapeways/coyote_framework/is_subdomain
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_subdomain API. 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 is_subdomain API. 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...
Tests if a hostname is a subdomain of a reference hostname e.g. www.domain.com is subdomain of reference @param domain: Domain to test if it is a subdomain @param reference: Reference "parent" domain
"Tests if a hostname is a subdomain of a reference hostname\n e.g. www.domain.com is subdomain of reference\n\n @param domain: Domain to test if it is a subdomain\n @param reference: Reference \"parent\" domain"
370
false
Shapeways/coyote_framework
is_subdomain
31,498
LDU_FT/curious-containers/cc-core/directory_listing_content_check
LDU_FT
[ "<BEGIN>\n## `brief_exception_text`", "Returns the Exception class and the message of the exception as string.", " :param exception: The exception to format\n :param secret_values: Values to hide in output\n<END>", "<BEGIN>\n## `print_exception`", "Prints the exception message and the name of the exce...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the directory_listing_content_check 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 directory_listing_content_check API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Checks if a given listing is present under the given directory path. :param directory_path: The path to the base directory :param listing: The listing to check :return: None if no errors could be found, otherwise a string describing the error
"Checks if a given listing is present under the given directory path.\n\n :param directory_path: The path to the base directory\n :param listing: The listing to check\n :return: None if no errors could be found, otherwise a string describing the error"
96
false
curious-containers/cc-core
directory_listing_content_check
31,499
LDU_FT/danidee10/Staticfy/replace_lines
LDU_FT
[ "<BEGIN>\n## `get_asset_location`", "Get Asset Location.", " Remove leading slash e.g '/static/images.jpg' ==> static/images.jpg\n Also, if the url is also prefixed with static, it would be removed.\n e.g static/image.jpg ==> image.jpg\n<END>", "<BEGIN>\n## `transform`", "The actual transformat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_lines API. 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 replace_lines API. 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...
Replace lines in the old file with the transformed lines.
"Replace lines in the old file with the transformed lines."
14
false
danidee10/Staticfy
replace_lines
31,500
LDU_FT/orbingol/NURBS-Python/animate
LDU_FT
[ "<BEGIN>\n## `bspline_to_nurbs`", "Converts non-rational parametric shapes to rational ones.", " :param obj: B-Spline shape\n :type obj: BSpline.Curve, BSpline.Surface or BSpline.Volume\n :return: NURBS shape\n :rtype: NURBS.Curve, NURBS.Surface or NURBS.Volume\n :raises: TypeError\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the animate API. 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 animate API. 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...
Animates the surface. This function only animates the triangulated surface. There will be no other elements, such as control points grid or bounding box. Keyword arguments: * ``colormap``: applies colormap to the surface Colormaps are a visualization feature of Matplotlib....
"Animates the surface.\n\n This function only animates the triangulated surface. There will be no other elements, such as control points\n grid or bounding box.\n\n Keyword arguments:\n * ``colormap``: applies colormap to the surface\n\n Colormaps are a visualization feature of Ma...
809
false
orbingol/NURBS-Python
animate
31,501
LDU_FT/tamasgal/km3pipe/drain
LDU_FT
[ "<BEGIN>\n## `count_multiplicities`", "Calculate an array of multiplicities and corresponding coincidence IDs", " Note that this algorithm does not take care about DOM IDs, so it has to\n be fed with DOM hits.", " Parameters\n ----------\n times: array[float], shape=(n,)\n Hit times for ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drain API. 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 drain API. 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...
Execute _drain while trapping KeyboardInterrupt
"Execute _drain while trapping KeyboardInterrupt"
418
false
tamasgal/km3pipe
drain
31,502
LDU_FT/locationlabs/mockredis/range
LDU_FT
[ "<BEGIN>\n## `_execute_lua`", "Sets KEYS and ARGV alongwith redis.call() function in lua globals\n and executes the lua redis script\n<END>", "<BEGIN>\n## `_import_lua`", "Import lua and dependencies.", " :param load_dependencies: should Lua library dependencies be loaded?\n :raises: Ru...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range API. 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 range API. 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 (score, member) pairs between min and max ranks.
"Return (score, member) pairs between min and max ranks."
76
false
locationlabs/mockredis
range
31,503
LDU_FT/blockstack-packages/blockstack-gpg/gpg_sign
LDU_FT
[ "<BEGIN>\n## `make_gpg_home`", "Make GPG keyring dir for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `get_gpg_home`", "Get the GPG keyring directory for a particular application.\n Return the path.\n<END>", "<BEGIN>\n## `make_gpg_tmphome`", "Make a temporary directory to hold ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpg_sign API. 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 gpg_sign API. 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...
Sign a file on disk. @sender_key_info should be a dict with { 'key_id': ... 'key_data': ... 'app_name': ... } Return {'status': True, 'sig': ...} on success Return {'error': ...} on error
"Sign a file on disk.\n @sender_key_info should be a dict with\n {\n 'key_id': ...\n 'key_data': ...\n 'app_name': ...\n }\n Return {'status': True, 'sig': ...} on success\n Return {'error': ...} on error"
54
false
blockstack-packages/blockstack-gpg
gpg_sign
31,504
LDU_FT/anjos/rrbob/add_bias
LDU_FT
[ "<BEGIN>\n## `normalize`", "Applies the given norm to the input data set", " Parameters:", " X (numpy.ndarray): A 3D numpy ndarray in which the rows represent examples\n while the columns, features of the data set you want to normalize. Every\n depth corresponds to data for a particular class", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_bias API. 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 add_bias API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Helper function to add a bias column to the input array X Parameters: X (numpy.ndarray): The input data matrix. This must be a numpy.ndarray with 2 dimension wheres every row corresponds to one example of the data set, every column, one different feature. Returns: numpy.ndarray: The same i...
"Helper function to add a bias column to the input array X\n\n\n Parameters:\n\n X (numpy.ndarray): The input data matrix. This must be a numpy.ndarray\n with 2 dimension wheres every row corresponds to one example of the data\n set, every column, one different feature.\n\n\n Returns:\n\n numpy.ndarra...
38
false
anjos/rrbob
add_bias
31,505
LDU_FT/tweepy/tweepy/get
LDU_FT
[ "<BEGIN>\n## `get_authorization_url`", "Get the authorization URL to redirect the user\n<END>", "<BEGIN>\n## `get_access_token`", "After user has authorized the request token, get access token\n with user supplied verifier.\n<END>", "<BEGIN>\n## `get_xauth_access_token`", "Get an access token from ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Given a key, returns an element from the redis table
"Given a key, returns an element from the redis table"
54
false
tweepy/tweepy
get
31,506
LDU_FT/denniskempin/safetynet/_ValidateValue
LDU_FT
[ "<BEGIN>\n## `_ValidateValue`", "Validate a single value with type_check.\n<END>", "<BEGIN>\n## `_ParseTypeCheckString`", "Convert string version of a type_check into a python instance.", " Type checks can be either defined directly in python code or in a string.\n The syntax is exactly the same since we ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ValidateValue API. 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 _ValidateValue API. 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...
Validate a single value with type_check.
"Validate a single value with type_check."
27
false
denniskempin/safetynet
_ValidateValue
31,507
LDU_FT/APSL/transmanager/_get_translated_field_names
LDU_FT
[ "<BEGIN>\n## `create_translation_tasks`", "Creates the translations tasks from the instance and its translatable children", " :param instance:\n :return:\n<END>", "<BEGIN>\n## `update_task`", "Updates a task as done if we have a new value for this alternative language", " :param diffe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_translated_field_names 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 _get_translated_field_names API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Get the instance translatable fields :return:
"Get the instance translatable fields\n\n :return:"
92
false
APSL/transmanager
_get_translated_field_names
31,508
LDU_FT/UDST/urbansim/has_constant_expr
LDU_FT
[ "<BEGIN>\n## `log_start_finish`", "A context manager to log messages with \"start: \" and \"finish: \"\n prefixes before and after a block.", " Parameters\n ----------\n msg : str\n Will be prefixed with \"start: \" and \"finish: \".\n logger : logging.Logger\n level : int, optional\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_constant_expr API. 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 has_constant_expr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Report whether a model expression has constant specific term. That is, a term explicitly specying whether the model should or should not include a constant. (e.g. '+ 1' or '- 1'.) Parameters ---------- expr : str Model expression to check. Returns ------- has_constant : bool
"Report whether a model expression has constant specific term.\n That is, a term explicitly specying whether the model should or\n should not include a constant. (e.g. '+ 1' or '- 1'.)\n\n Parameters\n ----------\n expr : str\n Model expression to check.\n\n Returns\n -------\n has_consta...
461
false
UDST/urbansim
has_constant_expr
31,509
LDU_FT/holgern/pyedflib/set_number_of_annotation_signals
LDU_FT
[ "<BEGIN>\n## `short_path`", "Return relative or absolute path name, whichever is shortest.\n<END>", "<BEGIN>\n## `get_all_dict`", "Return a copy of the __all__ dict with irrelevant items removed.\n<END>", "<BEGIN>\n## `compare`", "Return sets of objects only in __all__, refguide, or completely missing.\n<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_number_of_annotation_signals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_number_of_annotation_signals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Sets the number of annotation signals. The default value is 1 This function is optional and can be called only after opening a file in writemode and before the first sample write action Normally you don't need to change the default value. Only when the number of annotations you want to w...
"Sets the number of annotation signals. The default value is 1\n This function is optional and can be called only after opening a file in writemode\n and before the first sample write action\n Normally you don't need to change the default value. Only when the number of annotations\n you want...
135
false
holgern/pyedflib
set_number_of_annotation_signals
31,510
LDU_FT/python-cmd2/cmd2/span
LDU_FT
[ "<BEGIN>\n## `rmrf`", "Silently remove a list of directories or files\n<END>", "<BEGIN>\n## `livehtml`", "Launch webserver on http://localhost:8000 with rendered documentation\n<END>", "<BEGIN>\n## `validatetag`", "Check to make sure that a tag exists for the current HEAD and it looks like a valid version...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the span API. 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 span API. 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 an index or slice of the History list, :param span: string containing an index or a slice :return: a list of HistoryItems This method can accommodate input in any of these forms: a -a a..b or a:b a.. or a: ..a or :a ...
"Return an index or slice of the History list,\n\n :param span: string containing an index or a slice\n :return: a list of HistoryItems\n\n This method can accommodate input in any of these forms:\n\n a\n -a\n a..b or a:b\n a.. or a:\n ..a or :...
425
false
python-cmd2/cmd2
span
31,511
LDU_FT/notifiers/notifiers/_get_environs
LDU_FT
[ "<BEGIN>\n## `handle_oneof`", "Custom handle of `oneOf` JSON schema validator. Tried to match primitive type and see if it should be allowed\n to be passed multiple timns into a command", " :param oneof_schema: `oneOf` JSON schema\n :return: Tuple of :class:`click.ParamType`, ``multiple`` flag and ``d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_environs API. 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_environs API. 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...
Fetches set environment variables if such exist, via the :func:`~notifiers.utils.helpers.dict_from_environs` Searches for `[PREFIX_NAME]_[PROVIDER_NAME]_[ARGUMENT]` for each of the arguments defined in the schema :param prefix: The environ prefix to use. If not supplied, uses the default :retur...
"Fetches set environment variables if such exist, via the :func:`~notifiers.utils.helpers.dict_from_environs`\n Searches for `[PREFIX_NAME]_[PROVIDER_NAME]_[ARGUMENT]` for each of the arguments defined in the schema\n\n :param prefix: The environ prefix to use. If not supplied, uses the default\n :...
95
false
notifiers/notifiers
_get_environs
31,512
LDU_FT/bpsmith/tia/hurst_exponent
LDU_FT
[ "<BEGIN>\n## `sma`", "If n is 0 then return the ltd mean; else return the n day mean\n<END>", "<BEGIN>\n## `true_range`", "http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hurst_exponent API. 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 hurst_exponent API. 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...
describe the prices http://www.quantstart.com/articles/Basics-of-Statistical-Mean-Reversion-Testing H = the hurts exponent H < 0.5 - mean reverting H = 0.5 - geometric brownian motion (aka random) H > 0.5 - trending series
"describe the prices\n http://www.quantstart.com/articles/Basics-of-Statistical-Mean-Reversion-Testing\n H = the hurts exponent\n H < 0.5 - mean reverting\n H = 0.5 - geometric brownian motion (aka random)\n H > 0.5 - trending series"
226
false
bpsmith/tia
hurst_exponent
31,513
LDU_FT/ntoll/microfs/get_serial
LDU_FT
[ "<BEGIN>\n## `find_microbit`", "Returns a tuple representation of the port and serial number for a\n connected micro:bit device. If no device is connected the tuple will be\n (None, None).\n<END>", "<BEGIN>\n## `get_serial`", "Detect if a micro:bit is connected and return a serial object to talk to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serial API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serial API. 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...
Detect if a micro:bit is connected and return a serial object to talk to it.
"Detect if a micro:bit is connected and return a serial object to talk to\n it."
34
false
ntoll/microfs
get_serial
31,514
LDU_FT/TUNE-Archive/freight_forwarder/offload_all_service_containers
LDU_FT
[ "<BEGIN>\n## `commercial_invoice`", ":param action:\n :param data_center:\n :param environment:\n :param transport_service:\n :param tagging_scheme:\n :return:\n<END>", "<BEGIN>\n## `deploy_containers`", "Deploy containers to specific container ship.\n 'restart_policy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offload_all_service_containers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offload_all_service_containers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Deletes all containers related to the service.
"Deletes all containers related to the service."
132
false
TUNE-Archive/freight_forwarder
offload_all_service_containers
31,515
LDU_FT/20c/facsimile/find_datafile
LDU_FT
[ "<BEGIN>\n## `find_datafile`", "find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)\n<END>", "<BEGIN>\n## `load_datafile`", "find datafile and load them from c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_datafile API. 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 find_datafile API. 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...
find all matching data files in search_path returns array of tuples (codec_object, filename)
"find all matching data files in search_path\n returns array of tuples (codec_object, filename)"
24
false
20c/facsimile
find_datafile
31,516
LDU_FT/hadrianl/huobi/get_ticker
LDU_FT
[ "<BEGIN>\n## `async_request`", "异步并发请求\n :param reqs: 请求列表\n :return:\n<END>", "<BEGIN>\n## `get_kline`", "获取KLine\n :param symbol\n :param period: 可选值:{1min, 5min, 15min, 30min, 60min, 1day, 1mon, 1week, 1year }\n :param size: 可选值: [1,2000]\n :return:\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ticker API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ticker API. 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...
获取历史ticker :param symbol: :param size: 可选[1,2000] :return:
"获取历史ticker\n :param symbol:\n :param size: 可选[1,2000]\n :return:"
108
false
hadrianl/huobi
get_ticker
31,517
LDU_FT/pvlib/pvlib-python/angstrom_alpha
LDU_FT
[ "<BEGIN>\n## `systemdef`", "Generates a dict of system parameters used throughout a simulation.", " Parameters\n ----------", " meta : dict\n meta dict either generated from a TMY file using readtmy2 or\n readtmy3, or a dict containing at least the following fields:", " ===...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the angstrom_alpha API. 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 angstrom_alpha API. 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...
r""" Calculate Angstrom alpha exponent. Parameters ---------- aod1 : numeric first aerosol optical depth lambda1 : numeric wavelength in nanometers corresponding to ``aod1`` aod2 : numeric second aerosol optical depth lambda2 : numeric wavelength in nanometer...
"r\"\"\"\n Calculate Angstrom alpha exponent.\n\n Parameters\n ----------\n aod1 : numeric\n first aerosol optical depth\n lambda1 : numeric\n wavelength in nanometers corresponding to ``aod1``\n aod2 : numeric\n second aerosol optical depth\n lambda2 : numeric\n wavelen...
1,499
true
pvlib/pvlib-python
angstrom_alpha
31,518
LDU_FT/luismsgomes/stringology/ed
LDU_FT
[ "<BEGIN>\n## `llcs`", "length of the longest common sequence", " This implementation takes O(len(s1) * len(s2)) time and\n O(min(len(s1), len(s2))) space.", " Use only with short strings.", " >>> llcs('a.b.cd','!a!b!c!!!d!')\n 4\n<END>", "<BEGIN>\n## `lcsr`", "longest common sequence rati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ed API. 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 ed API. 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...
edit distance >>> ed('', ''), ed('a', 'a'), ed('','a'), ed('a', ''), ed('a!a', 'a.a') (0, 0, 1, 1, 1) This implementation takes only O(min(|s1|,|s2|)) space.
"edit distance\n\n >>> ed('', ''), ed('a', 'a'), ed('','a'), ed('a', ''), ed('a!a', 'a.a')\n (0, 0, 1, 1, 1)\n\n This implementation takes only O(min(|s1|,|s2|)) space."
29
false
luismsgomes/stringology
ed
31,519
LDU_FT/ooici/elasticpy/numeric_range
LDU_FT
[ "<BEGIN>\n## `ids`", "http://www.elasticsearch.org/guide/reference/query-dsl/ids-filter.html\nFilters documents that only have the provided ids. Note, this filter does not require the _id field to be indexed since it works using the _uid field.\n<END>", "<BEGIN>\n## `geo_bounding_box`", "http://www.elasticsea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numeric_range API. 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 numeric_range API. 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...
http://www.elasticsearch.org/guide/reference/query-dsl/numeric-range-filter.html Filters documents with fields that have values within a certain numeric range. Similar to range filter, except that it works only with numeric values, and the filter execution works differently.
"http://www.elasticsearch.org/guide/reference/query-dsl/numeric-range-filter.html\n Filters documents with fields that have values within a certain numeric range. Similar to range filter, except that it works only with numeric values, and the filter execution works differently."
89
false
ooici/elasticpy
numeric_range
31,520
LDU_FT/PlaidWeb/Pushl/send_webmention
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Get a feed", " Arguments:", " config -- the configuration\n url -- The URL of the feed", " retval -- a tuple of feed,previous_version,changed\n<END>", "<BEGIN>\n## `archive_namespace`", "Returns the known namespace of the RFC5005 extension, if any\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_webmention API. 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 send_webmention API. 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...
send a webmention from an entry to a URL
"send a webmention from an entry to a URL"
38
false
PlaidWeb/Pushl
send_webmention
31,521
LDU_FT/diging/tethne/edge_history
LDU_FT
[ "<BEGIN>\n## `to_dxgmml`", "Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.", " Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the edge_history API. 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 edge_history API. 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...
Returns a dictionary of attribute vales for each Graph in the :class:`.GraphCollection` for a single edge. Parameters ---------- source : str Identifier for source node. target : str Identifier for target node. attribute : str The attr...
"Returns a dictionary of attribute vales for each Graph in the\n :class:`.GraphCollection` for a single edge.\n\n Parameters\n ----------\n source : str\n Identifier for source node.\n target : str\n Identifier for target node.\n attribute : str\n ...
497
false
diging/tethne
edge_history
31,522
LDU_FT/MonashBI/arcana/_get_labels
LDU_FT
[ "<BEGIN>\n## `satisfy`", "Checks whether the given requirements are satisfiable within the given\n execution context", " Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>", "<BEGIN>\n## `connect`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_labels API. 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_labels API. 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...
Returns the labels for the XNAT subject and sessions given the frequency and provided IDs.
"Returns the labels for the XNAT subject and sessions given\n the frequency and provided IDs."
275
false
MonashBI/arcana
_get_labels
31,523
LDU_FT/candango/firenado/load_yaml_config_file
LDU_FT
[ "<BEGIN>\n## `get_handlers`", "Returns the handlers defined on the static_maps.yml file located\n at the app config directory.", " Returns: An array of static handlers to be added to the app.\n<END>", "<BEGIN>\n## `sig_handler`", "Handle the signal sent to the process\n :param sig: Sig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_yaml_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_yaml_config_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns the parsed structure from a yaml config file. :param path: Path where the yaml file is located. :return: The yaml configuration represented by the yaml file.
"Returns the parsed structure from a yaml config file.\n\n :param path: Path where the yaml file is located.\n :return: The yaml configuration represented by the yaml file."
66
false
candango/firenado
load_yaml_config_file
31,524
LDU_FT/ttinies/sc2players/update
LDU_FT
[ "<BEGIN>\n## `attrs`", "provide a copy of this player's attributes as a dictionary\n<END>", "<BEGIN>\n## `simpleAttrs`", "provide a copy of this player's attributes as a dictionary, but with objects flattened into a string representation of the object\n<END>", "<BEGIN>\n## `_validateAttrs`", "prove that a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
update attributes initialized with the proper type
"update attributes initialized with the proper type"
32
false
ttinies/sc2players
update
31,525
LDU_FT/IndicoDataSolutions/IndicoIo-python/analyze_text
LDU_FT
[ "<BEGIN>\n## `analyze_image`", "Given input image, returns the results of specified image apis. Possible apis\r\n include: ['fer', 'facial_features', 'image_features']\r", " Example usage:\r", " .. code-block:: python\r", " >>> import indicoio\r\n >>> import numpy as np\r\n >>> fa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the analyze_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Given input text, returns the results of specified text apis. Possible apis include: [ 'text_tags', 'political', 'sentiment', 'language' ] Example usage: .. code-block:: python >>> import indicoio >>> text = 'Monday: Delightful with mostly sunny skies. Highs in the low 70s.' ...
"Given input text, returns the results of specified text apis. Possible apis\r\n include: [ 'text_tags', 'political', 'sentiment', 'language' ]\r\n\r\n Example usage:\r\n\r\n .. code-block:: python\r\n\r\n >>> import indicoio\r\n >>> text = 'Monday: Delightful with mostly sunny skies. Highs in the ...
148
false
IndicoDataSolutions/IndicoIo-python
analyze_text
31,526
LDU_FT/django-treebeard/django-treebeard/add_sibling
LDU_FT
[ "<BEGIN>\n## `get_foreign_keys`", "Get foreign keys and models they refer to, so we can pre-process\n the data for load_bulk\n<END>", "<BEGIN>\n## `_process_foreign_keys`", "For each foreign key try to load the actual object so load_bulk\n doesn't fail trying to load an int where django expects ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_sibling API. 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 add_sibling API. 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 new node as a sibling to the current node object.
"Adds a new node as a sibling to the current node object."
194
false
django-treebeard/django-treebeard
add_sibling
31,527
LDU_FT/SUNCAT-Center/CatHub/read_energies
LDU_FT
[ "<BEGIN>\n## `molecules2symbols`", "Take a list of molecules and return just a list of atomic\n symbols, possibly adding hydrogen\n<END>", "<BEGIN>\n## `construct_reference_system`", "Take a list of symbols and construct gas phase\n references system, when possible avoiding O2.\n Candidates can be re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_energies API. 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 read_energies API. 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...
Match adsorbate structures with reaction entries
"Match adsorbate structures with reaction entries"
178
false
SUNCAT-Center/CatHub
read_energies
31,528
LDU_FT/MisterY/asset-allocation/load_tree_from_db
LDU_FT
[ "<BEGIN>\n## `get_symbols_with_positive_balances`", "Identifies all the securities with positive balances\n<END>", "<BEGIN>\n## `__get_pricedb_session`", "Provides initialization and access to module-level session\n<END>", "<BEGIN>\n## `format`", "Returns the view-friendly output of the aa model\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_tree_from_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_tree_from_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Reads the asset allocation data only, and constructs the AA tree
"Reads the asset allocation data only, and constructs the AA tree"
56
false
MisterY/asset-allocation
load_tree_from_db
31,529
LDU_FT/sampsyo/confuse/convert
LDU_FT
[ "<BEGIN>\n## `namespace_to_dict`", "If obj is argparse.Namespace or optparse.Values we'll return\n a dict representation of it, else return the original object.", " Redefine this method if using other parsers.", " :param obj: *\n :return:\n :rtype: dict or *\n<END>", "<BEGIN>\n## `_package_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Check that the value is an int or a float.
"Check that the value is an int or a float."
79
false
sampsyo/confuse
convert
31,530
LDU_FT/ergo/ziggurat_foundations/delete
LDU_FT
[ "<BEGIN>\n## `run_migrations_offline`", "Run migrations in 'offline' mode.", " This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.", " Calls to context.exec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete API. 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 delete API. 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 ...
Deletes the object via session, this will permanently delete the object from storage on commit :param db_session: :return:
"Deletes the object via session, this will permanently delete the\n object from storage on commit\n\n :param db_session:\n :return:"
229
false
ergo/ziggurat_foundations
delete
31,531
LDU_FT/MacHu-GWU/crawl_zillow-project/browse_home_listpage_url
LDU_FT
[ "<BEGIN>\n## `user_process`", ":param input_data:\n :return: output_data, list of next model instance. For example, if\n model is :class:`~crawl_zillow.model.State`, then next model is\n :class:`~crawl_zillow.model.County`.\n<END>", "<BEGIN>\n## `get_html`", "Use Google Cached Url.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the browse_home_listpage_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the browse_home_listpage_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Construct an url of home list page by state, county, zipcode, street. Example: - https://www.zillow.com/browse/homes/ca/ - https://www.zillow.com/browse/homes/ca/los-angeles-county/ - https://www.zillow.com/browse/homes/ca/los-angeles-county/91001/ - https://www.zillow.com/brow...
"Construct an url of home list page by state, county, zipcode, street.\n\n Example:\n\n - https://www.zillow.com/browse/homes/ca/\n - https://www.zillow.com/browse/homes/ca/los-angeles-county/\n - https://www.zillow.com/browse/homes/ca/los-angeles-county/91001/\n - https://www.zillow....
27
false
MacHu-GWU/crawl_zillow-project
browse_home_listpage_url
31,532
LDU_FT/inveniosoftware-contrib/record-recommender/_fetch_pageviews
LDU_FT
[ "<BEGIN>\n## `_is_download`", "Check if file ending is considered as download.\n<END>", "<BEGIN>\n## `fetch`", "Fetch PageViews and Downloads from Elasticsearch.\n<END>", "<BEGIN>\n## `_fetch_pageviews`", "Fetch PageViews from Elasticsearch.", " :param time_from: Staring at timestamp.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_pageviews API. 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 _fetch_pageviews API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Fetch PageViews from Elasticsearch. :param time_from: Staring at timestamp. :param time_to: To timestamp
"Fetch PageViews from Elasticsearch.\n\n :param time_from: Staring at timestamp.\n :param time_to: To timestamp"
55
false
inveniosoftware-contrib/record-recommender
_fetch_pageviews
31,533
LDU_FT/wndhydrnt/python-oauth2/by_identifier
LDU_FT
[ "<BEGIN>\n## `fetch_by_code`", "Returns data belonging to an authorization code from redis or\n ``None`` if no data was found.", " See :class:`oauth2.store.AuthCodeStore`.\n<END>", "<BEGIN>\n## `save_code`", "Stores the data belonging to an authorization code token in redis.", " See :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_identifier API. 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 by_identifier API. 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...
Authenticates a client by its identifier. :param request: The incoming request :type request: oauth2.web.Request :return: The identified client :rtype: oauth2.datatype.Client :raises: :class OAuthInvalidNoRedirectError:
"Authenticates a client by its identifier.\n\n :param request: The incoming request\n :type request: oauth2.web.Request\n\n :return: The identified client\n :rtype: oauth2.datatype.Client\n\n :raises: :class OAuthInvalidNoRedirectError:"
165
false
wndhydrnt/python-oauth2
by_identifier
31,534
LDU_FT/rbarrois/restricted_pkg/full_url
LDU_FT
[ "<BEGIN>\n## `full_url`", "The full URL, including username/password.\n<END>", "<BEGIN>\n## `fill`", "Fill data from a given configuration section.", " Args:\n config (configparser): the configuration file\n section (str): the section to use\n<END>", "<BEGIN>\n## `prompt_auth`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_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 extracte...
The full URL, including username/password.
"The full URL, including username/password."
22
false
rbarrois/restricted_pkg
full_url
31,535
LDU_FT/nabetama/slacky/history
LDU_FT
[ "<BEGIN>\n## `create`", "https://api.slack.com/methods/channels.create\n<END>", "<BEGIN>\n## `history`", "https://api.slack.com/methods/channels.history\n<END>", "<BEGIN>\n## `info`", "https://api.slack.com/methods/channels.info\n<END>", "<BEGIN>\n## `invite`", "https://api.slack.com/methods/channels....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the history API. 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 history API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
https://api.slack.com/methods/groups.history
"https://api.slack.com/methods/groups.history"
60
false
nabetama/slacky
history
31,536
LDU_FT/robertdfrench/psychic-disco/deploy
LDU_FT
[ "<BEGIN>\n## `_apply_args_to_func`", "Unpacks the argparse Namespace object and applies its\n contents as normal arguments to the function func\n<END>", "<BEGIN>\n## `subcommand`", "Define a subcommand for the psychic_disco function\n Expects functions to supply a list of their arguments\n Converts t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deploy API. 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 deploy API. 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 ...
If package is none, use `deployment_package.default()`
"If package is none, use `deployment_package.default()`"
10
false
robertdfrench/psychic-disco
deploy
31,537
LDU_FT/polysquare/cmake-ast/_lookup_enum_in_ns
LDU_FT
[ "<BEGIN>\n## `run`", "Set up language runtimes and pass control to python project script.\n<END>", "<BEGIN>\n## `_node`", "Return an _AbstractSyntaxTreeNode with some elements defaulted.\n<END>", "<BEGIN>\n## `_recurse`", "Recursive print worker - recurses the AST and prints each node.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lookup_enum_in_ns 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 _lookup_enum_in_ns API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return the attribute of namespace corresponding to value.
"Return the attribute of namespace corresponding to value."
66
false
polysquare/cmake-ast
_lookup_enum_in_ns
31,538
LDU_FT/alphagov/performanceplatform-collector/to_datetime
LDU_FT
[ "<BEGIN>\n## `parse_time_range`", "Convert the start/end datetimes specified by the user, specifically:\n - truncate any minutes/seconds\n - for a missing end time, use start + 24 hours\n - for a missing start time, use end - 24 hours\n - for missing start and end, use the last 24 hours\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_datetime API. 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 to_datetime API. 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...
Extract the first date from 'key' matching YYYY-MM-DD or YYYY-MM, and convert to datetime.
"Extract the first date from 'key' matching YYYY-MM-DD\n or YYYY-MM, and convert to datetime."
56
false
alphagov/performanceplatform-collector
to_datetime
31,539
LDU_FT/ksbg/sparklanes/set_spark
LDU_FT
[ "<BEGIN>\n## `build_lane_from_yaml`", "Builds a `sparklanes.Lane` object from a YAML definition file.", " Parameters\n ----------\n path: str\n Path to the YAML definition file", " Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_spark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_spark API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Creates and initializes a new `SparkSession`. Argument signature is copied from `pyspark.sql.SparkSession <https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.SparkSession>`_.
"Creates and initializes a new `SparkSession`. Argument signature is copied from\n `pyspark.sql.SparkSession\n <https://spark.apache.org/docs/latest/api/python/pyspark.sql.html#pyspark.sql.SparkSession>`_."
62
false
ksbg/sparklanes
set_spark
31,540
LDU_FT/agoragames/leaderboard-python/remove_member_from
LDU_FT
[ "<BEGIN>\n## `pool`", "Fetch a redis conenction pool for the unique combination of host\n and port. Will create a new one if there isn't one already.\n<END>", "<BEGIN>\n## `rank_member`", "Rank a member in the leaderboard.", " @param member [String] Member name.\n @param score [float] M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_member_from 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 remove_member_from 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...
Remove the optional member data for a given member in the named leaderboard. @param leaderboard_name [String] Name of the leaderboard. @param member [String] Member name.
"Remove the optional member data for a given member in the named leaderboard.\n\n @param leaderboard_name [String] Name of the leaderboard.\n @param member [String] Member name."
180
false
agoragames/leaderboard-python
remove_member_from
31,541
LDU_FT/Kortemme-Lab/klab/convert
LDU_FT
[ "<BEGIN>\n## `retrieve`", "Creates a PDBML object by using a cached copy of the files if they exists or by retrieving the files from the RCSB.\n<END>", "<BEGIN>\n## `parse_deprecation`", "Checks to see if the PDB file has been deprecated and, if so, what the new ID is.\n<END>", "<BEGIN>\n## `parse_atoms`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API. 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 convert API. 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...
Uses the NCBI IP Converter API to converts a list of publication IDs in the same format e.g. DOI identifiers to another format e.g. PubMed identifiers. ids is a list of IDs of the type from_type e.g. a from_type of 'doi' specifies DOI identifiers. The function returns a Python dict with the mappings...
"Uses the NCBI IP Converter API to converts a list of publication IDs in the same format e.g. DOI identifiers to\n another format e.g. PubMed identifiers.\n ids is a list of IDs of the type from_type e.g. a from_type of 'doi' specifies DOI identifiers.\n The function returns a Python dict with the mapp...
725
false
Kortemme-Lab/klab
convert
31,542
LDU_FT/videntity/django-djmongo/write_mongo
LDU_FT
[ "<BEGIN>\n## `httpauth_login_required`", "Put this decorator before your view to check if the user is logged in\n via httpauth and return a JSON 401 error if he/she is not.\n<END>", "<BEGIN>\n## `ip_verification_required`", "Put this decorator before your view to check if the function is coming from an...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_mongo API. 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 write_mongo API. 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...
Write a document to the collection. Return a response_dict containing the written record. Method functions as both insert or update based on update parameter
"Write a document to the collection. Return a response_dict containing\n the written record. Method functions as both insert or update based on update\n parameter"
24
false
videntity/django-djmongo
write_mongo
31,543
LDU_FT/git-afsantos/bonsai/_add_catch
LDU_FT
[ "<BEGIN>\n## `_build_for_statement`", "NOTE: this is not a complete implementation of for loop parsing.\n Turns out for loops allow a number of wacky things going on,\n such as declaring a variable in place of a condition.\n These more peculiar cases are not covered. See\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_catch API. 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 _add_catch API. 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...
Add a catch block (exception variable declaration and block) to this try block structure.
"Add a catch block (exception variable declaration and block)\n to this try block structure."
111
false
git-afsantos/bonsai
_add_catch
31,544
LDU_FT/ofa/django-bouncy/approve_subscription
LDU_FT
[ "<BEGIN>\n## `grab_keyfile`", "Function to acqure the keyfile", " SNS keys expire and Amazon does not promise they will use the same key\n for all SNS requests. So we need to keep a copy of the cert in our\n cache\n<END>", "<BEGIN>\n## `verify_notification`", "Function to verify notification came f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the approve_subscription 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 approve_subscription API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Function to approve a SNS subscription with Amazon We don't do a ton of verification here, past making sure that the endpoint we're told to go to to verify the subscription is on the correct host
"Function to approve a SNS subscription with Amazon\n\n We don't do a ton of verification here, past making sure that the endpoint\n we're told to go to to verify the subscription is on the correct host"
21
false
ofa/django-bouncy
approve_subscription
31,545
LDU_FT/aerkalov/ebooklib/add_item
LDU_FT
[ "<BEGIN>\n## `write_epub`", "Creates epub file with the content defined in EpubBook.", " >>> ebooklib.write_epub('book.epub', book)", " :Args:\n - name: file name for the output file\n - book: instance of EpubBook\n - options: extra opions as dictionary (optional)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Add additional item to the book. If not defined, media type and chapter id will be defined for the item. :Args: - item: Item instance
"Add additional item to the book. If not defined, media type and chapter id will be defined\n for the item.\n\n :Args:\n - item: Item instance"
66
false
aerkalov/ebooklib
add_item
31,546
LDU_FT/inveniosoftware/kwalitee/_get_git_author
LDU_FT
[ "<BEGIN>\n## `_get_files_modified`", "Get the list of modified files that are Python or Jinja2.\n<END>", "<BEGIN>\n## `_get_git_author`", "Return the git author from the git variables.\n<END>", "<BEGIN>\n## `_prepare_commit_msg`", "Prepare the commit message in tmp_file.", " It will build the commit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_git_author API. 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_git_author API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Return the git author from the git variables.
"Return the git author from the git variables."
77
false
inveniosoftware/kwalitee
_get_git_author
31,547
LDU_FT/pyviz/geoviews/find_geom
LDU_FT
[ "<BEGIN>\n## `coord_to_dimension`", "Converts an iris coordinate to a HoloViews dimension.\n<END>", "<BEGIN>\n## `sort_coords`", "Sorts a list of DimCoords trying to ensure that\n dates and pressure levels appear first and the\n longitude and latitude appear last in the correct\n order.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_geom API. 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 find_geom API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns the index of a geometry in a list of geometries avoiding expensive equality checks of `in` operator.
"Returns the index of a geometry in a list of geometries avoiding\n expensive equality checks of `in` operator."
106
false
pyviz/geoviews
find_geom
31,548
LDU_FT/Titan-C/slaveparticles/reset
LDU_FT
[ "<BEGIN>\n## `destruct`", "Fermion annihilation operator in matrix representation for a indexed\n particle in a bounded N-particles fermion fock space\n<END>", "<BEGIN>\n## `plot_degbandshalffill`", "Plot of Quasiparticle weight for degenerate\n half-filled bands, showing the Mott transition\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Resets the system into the last known state as given by the input values
"Resets the system into the last known state as given by the input\n values"
78
false
Titan-C/slaveparticles
reset
31,549
LDU_FT/toastdriven/alligator/drop_all
LDU_FT
[ "<BEGIN>\n## `run_forever`", "Causes the worker to run either forever or until the\n ``Worker.max_tasks`` are reached.\n<END>", "<BEGIN>\n## `to_call`", "Sets the function & its arguments to be called when the task is\n processed.", " Ex::", " task.to_call(my_function, 1, '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_all API. 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 drop_all API. 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...
Drops all the task in the queue. :param queue_name: The name of the queue. Usually handled by the ``Gator`` instance. :type queue_name: string
"Drops all the task in the queue.\n\n :param queue_name: The name of the queue. Usually handled by the\n ``Gator`` instance.\n :type queue_name: string"
181
false
toastdriven/alligator
drop_all
31,550
LDU_FT/cartologic/cartoview/setup_geoserver
LDU_FT
[ "<BEGIN>\n## `session`", "Creates a context with an open SQLAlchemy session.\n<END>", "<BEGIN>\n## `get_path_permission`", "on platforms that do not support symbolic links,\n lstat is an alias for stat()\n so we return a tuple of both\n<END>", "<BEGIN>\n## `_robust_rmtree`", "Try to delete paths rob...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_geoserver API. 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 setup_geoserver API. 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...
Prepare a testing instance of GeoServer.
"Prepare a testing instance of GeoServer."
10
false
cartologic/cartoview
setup_geoserver
31,551
LDU_FT/holtjma/msbwt/recoverString
LDU_FT
[ "<BEGIN>\n## `extendSeed`", "This function is intended to be an interactive technique for constructing transcripts, probably to be released\n in a future version of msbwt\n @param bwtFN - the filename of the BWT to load\n @param seedKmer - the seed sequence to use for construction\n @p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recoverString API. 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 recoverString API. 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...
This will return the string that starts at the given index @param strIndex - the index of the string we want to recover @return - string that we found starting at the specified '$' index
"This will return the string that starts at the given index\n @param strIndex - the index of the string we want to recover\n @return - string that we found starting at the specified '$' index"
84
false
holtjma/msbwt
recoverString
31,552
LDU_FT/dswah/pyGAM/sample
LDU_FT
[ "<BEGIN>\n## `validate_callback_data`", "wraps a callback's method to pull the desired arguments from the vars dict\n also checks to ensure the method's arguments are in the vars dict", " Parameters\n ----------\n method : callable", " Returns\n -------\n validated callable\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sample API. 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 sample API. 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 ...
Simulate from the posterior of the coefficients and smoothing params. Samples are drawn from the posterior of the coefficients and smoothing parameters given the response in an approximate way. The GAM must already be fitted before calling this method; if the model has not been fitted, ...
"Simulate from the posterior of the coefficients and smoothing params.\n\n Samples are drawn from the posterior of the coefficients and smoothing\n parameters given the response in an approximate way. The GAM must\n already be fitted before calling this method; if the model has not\n been fi...
770
false
dswah/pyGAM
sample
31,553
LDU_FT/Locu/chronology/uuid_from_kronos_time
LDU_FT
[ "<BEGIN>\n## `is_remote_allowed`", "Check if `remote` is allowed to make a CORS request.\n<END>", "<BEGIN>\n## `endpoint`", "Returns a decorator which when applied a function, causes that function to\n serve `url` and only allows the HTTP methods in `methods`\n<END>", "<BEGIN>\n## `get_seconds`", "Conver...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the uuid_from_kronos_time 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 uuid_from_kronos_time 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 UUID with the specified time. If `lowest` is true, return the lexicographically first UUID for the specified time.
"Generate a UUID with the specified time.\n If `lowest` is true, return the lexicographically first UUID for the specified\n time."
156
false
Locu/chronology
uuid_from_kronos_time
31,554
LDU_FT/rbaier/python-urltools/_clean_netloc
LDU_FT
[ "<BEGIN>\n## `_get_public_suffix_list`", "Return a set containing all Public Suffixes.", " If the env variable PUBLIC_SUFFIX_LIST does not point to a local copy of the\n public suffix list it is downloaded into memory each time urltools is\n imported.\n<END>", "<BEGIN>\n## `normalize`", "Normalize ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_netloc API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_netloc API. 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...
Remove trailing '.' and ':' and tolower. >>> _clean_netloc('eXample.coM:') 'example.com'
"Remove trailing '.' and ':' and tolower.\n\n >>> _clean_netloc('eXample.coM:')\n 'example.com'"
37
false
rbaier/python-urltools
_clean_netloc
31,555
LDU_FT/idlesign/django-sitecats/enable_category_lists_editor
LDU_FT
[ "<BEGIN>\n## `get_category_lists`", "Returns a list of CategoryList objects, associated with\n this model instance.", " :param dict|None init_kwargs:\n :param list|None additional_parents_aliases:\n :rtype: list|CategoryRequestHandler\n :return:\n<END>", "<BEGIN>\n## `enable...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_category_lists_editor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_category_lists_editor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Enables editor functionality for categories of this object. :param Request request: Django request object :param dict editor_init_kwargs: Keyword args to initialize category lists editor with. See CategoryList.enable_editor() :param list additional_parents_aliases: Aliases of catego...
"Enables editor functionality for categories of this object.\n\n :param Request request: Django request object\n :param dict editor_init_kwargs: Keyword args to initialize category lists editor with.\n See CategoryList.enable_editor()\n :param list additional_parents_aliases: Aliases of ...
73
false
idlesign/django-sitecats
enable_category_lists_editor
31,556
LDU_FT/buildinspace/peru/read_tree_updating_working_copy
LDU_FT
[ "<BEGIN>\n## `_find_plugin_dir`", "Find the directory containing the plugin definition for the given type.\n Do this by searching all the paths where plugins can live for a dir that\n matches the type name.\n<END>", "<BEGIN>\n## `_get_plugin_install_dirs`", "Return all the places on the filesystem where...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_tree_updating_working_copy 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 read_tree_updating_working_copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
This method relies on the current working copy being clean with respect to the current index. The benefit of this over checkout_missing_files_from_index(), is that is clean up files that get deleted between the current tree and the new one. Without force, this raises an error rather than...
"This method relies on the current working copy being clean with\n respect to the current index. The benefit of this over\n checkout_missing_files_from_index(), is that is clean up files that get\n deleted between the current tree and the new one. Without force, this\n raises an error rather...
75
false
buildinspace/peru
read_tree_updating_working_copy
31,557
LDU_FT/radjkarl/fancyWidgets/updateDisplayLabel
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updateDisplayLabel 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 updateDisplayLabel 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...
Update the display label to reflect the value of the parameter.
"Update the display label to reflect the value of the parameter."
48
false
radjkarl/fancyWidgets
updateDisplayLabel
31,558
LDU_FT/wmayner/pyphi/cause_repertoire
LDU_FT
[ "<BEGIN>\n## `memory_full`", "Check if the memory is too full for further caching.\n<END>", "<BEGIN>\n## `cache`", "Memory-limited cache decorator.", " ``maxmem`` is a float between 0 and 100, inclusive, specifying the maximum\n percentage of physical memory that the cache can use.", " If ``typed...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cause_repertoire API. 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 cause_repertoire API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Return the cause repertoire of a mechanism over a purview. Args: mechanism (tuple[int]): The mechanism for which to calculate the cause repertoire. purview (tuple[int]): The purview over which to calculate the cause repertoire. Returns: ...
"Return the cause repertoire of a mechanism over a purview.\n\n Args:\n mechanism (tuple[int]): The mechanism for which to calculate the\n cause repertoire.\n purview (tuple[int]): The purview over which to calculate the\n cause repertoire.\n\n Returns:\...
914
false
wmayner/pyphi
cause_repertoire
31,559
LDU_FT/Hironsan/anago/load_data_and_labels
LDU_FT
[ "<BEGIN>\n## `download`", "Download a trained weights, config and preprocessor.", " Args:\n url (str): target url.\n<END>", "<BEGIN>\n## `load_data_and_labels`", "Loads data and label from a file.", " Args:\n filename (str): path to the file.\n encoding (str): file encoding form...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_data_and_labels 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 load_data_and_labels API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Loads data and label from a file. Args: filename (str): path to the file. encoding (str): file encoding format. The file format is tab-separated values. A blank line is required at the end of a sentence. For example: ``` EU B-ORG rejects O G...
"Loads data and label from a file.\n\n Args:\n filename (str): path to the file.\n encoding (str): file encoding format.\n\n The file format is tab-separated values.\n A blank line is required at the end of a sentence.\n\n For example:\n ```\n EU\tB-ORG\n rejec...
98
false
Hironsan/anago
load_data_and_labels
31,560
LDU_FT/theonion/django-bulbs/get_sponsored_special_coverages
LDU_FT
[ "<BEGIN>\n## `save`", "Kicks off celery task to re-save associated special coverages to percolator", " :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>", "<BEGIN>\n## `get_field_info`", "This method is basically a m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_sponsored_special_coverages 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 get_sponsored_special_coverages API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
:returns: Django query for all active special coverages with active campaigns.
":returns: Django query for all active special coverages with active campaigns."
277
false
theonion/django-bulbs
get_sponsored_special_coverages
31,561
LDU_FT/goldmann/docker-squash/_marker_files
LDU_FT
[ "<BEGIN>\n## `_validate_number_of_layers`", "Makes sure that the specified number of layers to squash\n is a valid number\n<END>", "<BEGIN>\n## `_prepare_tmp_directory`", "Creates temporary directory that is used to work on layers\n<END>", "<BEGIN>\n## `_layers_to_squash`", "Prepares a list of laye...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _marker_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _marker_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Searches for marker files in the specified archive. Docker marker files are files taht have the .wh. prefix in the name. These files mark the corresponding file to be removed (hidden) when we start a container from the image.
"Searches for marker files in the specified archive.\n\n Docker marker files are files taht have the .wh. prefix in the name.\n These files mark the corresponding file to be removed (hidden) when\n we start a container from the image."
34
false
goldmann/docker-squash
_marker_files
31,562
LDU_FT/ibm-watson-data-lab/ibmseti/compamp_to_spectrogram
LDU_FT
[ "<BEGIN>\n## `header`", "This returns the first header in the data file\n<END>", "<BEGIN>\n## `headers`", "This returns all headers in the data file. There should be one for each\n half_frame in the file (typically 129).\n<END>", "<BEGIN>\n## `_packed_data`", "Returns the bit-packed data extracted from...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compamp_to_spectrogram 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 compamp_to_spectrogram API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns spectrogram, with each row containing the measured power spectrum for a XX second time sample. Using this function is shorthand for: aca = ibmseti.compamp.Compamp(raw_data) power = ibmseti.dsp.complex_to_power(aca.complex_data(), aca.header()['over_sampling']) spectrogram = ibmseti.dsp.resh...
"Returns spectrogram, with each row containing the measured power spectrum for a XX second time sample.\n\n Using this function is shorthand for:\n aca = ibmseti.compamp.Compamp(raw_data)\n power = ibmseti.dsp.complex_to_power(aca.complex_data(), aca.header()['over_sampling'])\n spectrogram = ibmseti.ds...
138
false
ibm-watson-data-lab/ibmseti
compamp_to_spectrogram
31,563
LDU_FT/yougov/pmxbot/wchoice
LDU_FT
[ "<BEGIN>\n## `attach`", "Given a function and a namespace of possible parameters,\n\tbind any params matching the signature of the function\n\tto that function.\n<END>", "<BEGIN>\n## `init_config`", "Install the config dict as pmxbot.config, setting overrides,\n\tand return the result.\n<END>", "<BEGIN>\n##...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wchoice API. 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 wchoice API. 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...
Given a dictionary of word: proportion, return a word randomly selected from the keys weighted by proportion. >>> wchoice({'a': 0, 'b': 1}) 'b' >>> choices = [wchoice({'a': 1, 'b': 2}) for x in range(1000)] Statistically speaking, choices should be .5 a:b >>> ratio = choices.count('a') / choices.count('b') >>>...
"Given a dictionary of word: proportion, return a word randomly selected\n\tfrom the keys weighted by proportion.\n\n\t>>> wchoice({'a': 0, 'b': 1})\n\t'b'\n\t>>> choices = [wchoice({'a': 1, 'b': 2}) for x in range(1000)]\n\n\tStatistically speaking, choices should be .5 a:b\n\t>>> ratio = choices.count('a') / choices....
128
false
yougov/pmxbot
wchoice
31,564
LDU_FT/wiredrive/wtframework/switch_to_window
LDU_FT
[ "<BEGIN>\n## `print_debug`", "Print if and only if the debug flag is set true in the config.yaml file.", " Args:\n args : var args of print arguments.\n<END>", "<BEGIN>\n## `print_time`", "Print the current elapsed time.", " Kwargs:\n message (str) : Message to prefix the time ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the switch_to_window API. 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 switch_to_window API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Utility method for switching between windows. It will search through currently open windows, then switch to the window matching the provided PageObject class. Args: page_class (PageObject): Page class to search for/instantiate. webdriver (WebDriver): Selenium webdriver. ...
"Utility method for switching between windows. It will search through currently open \n windows, then switch to the window matching the provided PageObject class.\n\n Args:\n page_class (PageObject): Page class to search for/instantiate.\n webdriver (WebDriver): Selenium webdriver.\...
236
false
wiredrive/wtframework
switch_to_window
31,565
LDU_FT/django-fluent/django-fluent-blogs/blog_reverse
LDU_FT
[ "<BEGIN>\n## `formfield_for_dbfield`", "Allow formfield_overrides to contain field names too.\n<END>", "<BEGIN>\n## `published`", "Return only published entries for the current site.\n<END>", "<BEGIN>\n## `authors`", "Return the entries written by the given usernames\n When multiple tags are provid...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the blog_reverse API. 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 blog_reverse API. 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...
Reverse a URL to the blog, taking various configuration options into account. This is a compatibility function to allow django-fluent-blogs to operate stand-alone. Either the app can be hooked in the URLconf directly, or it can be added as a pagetype of *django-fluent-pages*.
"Reverse a URL to the blog, taking various configuration options into account.\n\n This is a compatibility function to allow django-fluent-blogs to operate stand-alone.\n Either the app can be hooked in the URLconf directly, or it can be added as a pagetype of *django-fluent-pages*."
54
false
django-fluent/django-fluent-blogs
blog_reverse
31,566
LDU_FT/jplusplus/statscraper/measures
LDU_FT
[ "<BEGIN>\n## `initiate_browser`", "The button for expanded detailed options. This\n also happens to be a good indicator as to wheter\n all content is loaded.\n<END>", "<BEGIN>\n## `_fetch_dimensions`", "Declaring available dimensions like this is not mandatory,\n but nice, especially if ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the measures API. 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 measures API. 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...
Get a list of the measuers of this datatable Measures can be "Antal Besök inom 7 dagar", "Måluppfyllelse vårdgarantin", etc
"Get a list of the measuers of this datatable\n Measures can be \"Antal Besök inom 7 dagar\",\n \"Måluppfyllelse vårdgarantin\", etc"
57
false
jplusplus/statscraper
measures
31,567
LDU_FT/buzzfeed/caliendo/register_suite
LDU_FT
[ "<BEGIN>\n## `increment`", "Static method used to increment the depth of a context belonging to 'method'", " :param function method: A method with a context", " :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>", "<BEGIN>\n## `skip_once`", "Indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_suite API. 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 register_suite API. 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...
Call this method in a module containing a test suite. The stack trace from which call descriptor hashes are derived will be truncated at this module.
"Call this method in a module containing a test suite. The stack trace from\n which call descriptor hashes are derived will be truncated at this module."
177
false
buzzfeed/caliendo
register_suite
31,568
LDU_FT/ctuning/ck/init
LDU_FT
[ "<BEGIN>\n## `call_ck`", "Input: {\n Input for CK\n }", " Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0", " (stdout) - stdout, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
Input: {} Output: { return - return code = 0, if successful > 0, if error (error) - error text if return > 0 }
"Input: {}\n\n Output: {\n return - return code = 0, if successful\n > 0, if error\n (error) - error text if return > 0\n }"
640
false
ctuning/ck
init
31,569
LDU_FT/scanny/python-pptx/new_cxnSp
LDU_FT
[ "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -42.42 to int 60000 per degree,\n normalized to positive value.\n<END>", "<BEGIN>\n## `convert_to_xml`", "Convert signed angle float like -427.42 to int 60000 per degree.", " Value is normalized to a positive value less than 360 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_cxnSp API. 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 new_cxnSp API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return a new ``<p:cxnSp>`` element tree configured as a base connector.
"Return a new ``<p:cxnSp>`` element tree configured as a base\n connector."
990
false
scanny/python-pptx
new_cxnSp
31,570
LDU_FT/timothycrosley/deprecated.frosted/run_deferred
LDU_FT
[ "<BEGIN>\n## `node_name`", "Convenience function: Returns node.id, or node.name, or None\n<END>", "<BEGIN>\n## `names`", "Return a list of the names referenced by this binding.\n<END>", "<BEGIN>\n## `unusedAssignments`", "Return a generator for the assignments which have not been used.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_deferred API. 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 run_deferred API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Run the callables in deferred using their associated scope stack.
"Run the callables in deferred using their associated scope stack."
41
false
timothycrosley/deprecated.frosted
run_deferred
31,571
LDU_FT/SITools2/pySitools2_1.0/getParameterByType
LDU_FT
[ "<BEGIN>\n## `__parseResponseServer`", "Parses the response of the server.\n Exception\n ---------\n A Sitools2Exception is raised when the server does not send back a success.\n<END>", "<BEGIN>\n## `__parseResponseServer`", "Parses the server response.\n Input\n -----\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getParameterByType 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 getParameterByType 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...
Searchs a parameter by type and returns it.
"Searchs a parameter by type and returns it."
41
false
SITools2/pySitools2_1.0
getParameterByType
31,572