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/Aula13/poloniex/marginSell
LDU_FT
[ "<BEGIN>\n## `clear`", "Release the semaphore of all of its bounds, setting the internal\n counter back to its original bind limit. Notify an equivalent amount\n of threads that they can run.\n<END>", "<BEGIN>\n## `_api_wrapper`", "API function decorator that performs rate limiting and error che...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the marginSell API. 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 marginSell API. 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...
Places a margin sell order in a given market. Parameters and output are the same as for the marginBuy method.
"Places a margin sell order in a given market. Parameters and output\n are the same as for the marginBuy method."
37
false
Aula13/poloniex
marginSell
14,373
LDU_FT/cloudmesh/cloudmesh-common/flatten
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API. 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 flatten API. 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...
flattens the dict into a one dimensional dictionary :param d: multidimensional dict :param parent_key: replaces from the parent key :param sep: the separation character used when fattening. the default is __ :return: the flattened dict
"flattens the dict into a one dimensional dictionary\n\n :param d: multidimensional dict\n :param parent_key: replaces from the parent key\n :param sep: the separation character used when fattening. the default is __\n :return: the flattened dict"
203
false
cloudmesh/cloudmesh-common
flatten
14,374
LDU_FT/LuminosoInsight/langcodes/resolve_name
LDU_FT
[ "<BEGIN>\n## `parse_tag`", "Parse the syntax of a language tag, without looking up anything in the\n registry, yet. Returns a list of (type, value) tuples indicating what\n information will need to be looked up.\n<END>", "<BEGIN>\n## `parse_subtags`", "Parse everything that comes after the language tag:...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_name API. 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 resolve_name API. 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 a name, and a number of possible values it could resolve to, find the single value it should resolve to, in the following way: - Apply the priority order - If names with the highest priority all agree, use that name - If there is disagreement that can be resolved by AMBIGUOUS_PREFERENCES, u...
"Given a name, and a number of possible values it could resolve to,\n find the single value it should resolve to, in the following way:\n\n - Apply the priority order\n - If names with the highest priority all agree, use that name\n - If there is disagreement that can be resolved by AMBIGUOUS_PREFERENCES,\n...
236
false
LuminosoInsight/langcodes
resolve_name
14,375
LDU_FT/CartoDB/cartoframes/_combine_bounds
LDU_FT
[ "<BEGIN>\n## `get_scheme_cartocss`", "Get TurboCARTO CartoCSS based on input parameters\n<END>", "<BEGIN>\n## `custom`", "Create a custom scheme.", " Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _combine_bounds API. 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 _combine_bounds API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Takes two bounding boxes dicts and gives a new bbox that encompasses them both
"Takes two bounding boxes dicts and gives a new bbox that encompasses\n them both"
217
false
CartoDB/cartoframes
_combine_bounds
14,376
LDU_FT/rackerlabs/rackspace-python-neutronclient/list_service_profiles
LDU_FT
[ "<BEGIN>\n## `_extract_service_catalog`", "Set the client's service catalog from the response data.\n<END>", "<BEGIN>\n## `exception_handler_v20`", "Exception handler for API v2.0 client.", " This routine generates the appropriate Neutron exception according to\n the contents of the response body.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_service_profiles 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 list_service_profiles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Fetches a list of all Neutron service flavor profiles.
"Fetches a list of all Neutron service flavor profiles."
289
false
rackerlabs/rackspace-python-neutronclient
list_service_profiles
14,377
LDU_FT/spotify/docker_interface/add_argument
LDU_FT
[ "<BEGIN>\n## `abspath`", "Create an absolute path.", " Parameters\n ----------\n path : str\n absolute or relative path with respect to `ref`\n ref : str or None\n reference path if `path` is relative", " Returns\n -------\n path : str\n absolute path", " Raises\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_argument API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_argument API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Add an argument to the `parser` based on a schema definition. Parameters ---------- parser : argparse.ArgumentParser parser to add an argument to path : str path in the configuration document to add an argument for name : str or None name of t...
"Add an argument to the `parser` based on a schema definition.\n\n Parameters\n ----------\n parser : argparse.ArgumentParser\n parser to add an argument to\n path : str\n path in the configuration document to add an argument for\n name : str or None\n ...
82
false
spotify/docker_interface
add_argument
14,378
LDU_FT/pricingassistant/mrq/check_auth
LDU_FT
[ "<BEGIN>\n## `group_iter`", "Given an iterator, it returns sub-lists made of n items.\n (except the last that can have len < n)\n<END>", "<BEGIN>\n## `memoize`", "Memoization decorator for a function taking one or more arguments.\n<END>", "<BEGIN>\n## `memoize_single_argument`", "Memoization decorator ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_auth API. 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 check_auth API. 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...
This function is called to check if a username / password combination is valid.
"This function is called to check if a username /\n password combination is valid."
123
false
pricingassistant/mrq
check_auth
14,379
LDU_FT/bpython/curtsies/split
LDU_FT
[ "<BEGIN>\n## `tictactoe`", "Put two strategies to a classic battle of wits.\n<END>", "<BEGIN>\n## `memo`", "Return a function like f that remembers and reuses results of past calls.\n<END>", "<BEGIN>\n## `max_play`", "Play like Spock, except breaking ties by drunk_value.\n<END>", "<BEGIN>\n## `drunk_val...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split API. 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 split API. 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...
Split based on seperator, optionally using a regex Capture groups are ignored in regex, the whole pattern is matched and used to split the original FmtStr.
"Split based on seperator, optionally using a regex\n\n Capture groups are ignored in regex, the whole pattern is matched\n and used to split the original FmtStr."
163
false
bpython/curtsies
split
14,380
LDU_FT/dfujim/bdata/_get_area_data
LDU_FT
[ "<BEGIN>\n## `_get_area_data`", "Get histogram list based on area type. \n List pattern: [type1_hel+,type2_hel+,type1_hel-,type2_hel-]\n where type1/2 = F/B or R/L in that order.\n<END>", "<BEGIN>\n## `_get_asym_comb`", "Find the combined asymmetry for slr runs. Elegant 4-counter method.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_area_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_area_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Get histogram list based on area type. List pattern: [type1_hel+,type2_hel+,type1_hel-,type2_hel-] where type1/2 = F/B or R/L in that order.
"Get histogram list based on area type. \n List pattern: [type1_hel+,type2_hel+,type1_hel-,type2_hel-]\n where type1/2 = F/B or R/L in that order."
58
false
dfujim/bdata
_get_area_data
14,381
LDU_FT/juju/python-libjuju/FinishActions
LDU_FT
[ "<BEGIN>\n## `get_charm_series`", "Inspects the charm directory at ``path`` and returns a default\n series from its metadata.yaml (the first item in the 'series' list).", " Returns None if no series can be determined.\n<END>", "<BEGIN>\n## `cares_about`", "Return True if this observer \"cares about\" ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FinishActions API. 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 FinishActions API. 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...
results : typing.Sequence[~ActionExecutionResult] Returns -> typing.Sequence[~ErrorResult]
"results : typing.Sequence[~ActionExecutionResult]\n Returns -> typing.Sequence[~ErrorResult]"
672
false
juju/python-libjuju
FinishActions
14,382
LDU_FT/edwards-lab/libGWAS/get_next_line
LDU_FT
[ "<BEGIN>\n## `load_genotypes`", "This really just intializes the file by opening it up.\n<END>", "<BEGIN>\n## `process_genotypes`", "Parse pedigree line and remove excluded individuals from geno", " Translates alleles into numerical genotypes (0, 1, 2) counting\n number of minor alleles.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_line API. 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_next_line API. 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...
If we reach the end of the file, we simply open the next, until we \ run out of archives to process
"If we reach the end of the file, we simply open the next, until we \\\n run out of archives to process"
142
false
edwards-lab/libGWAS
get_next_line
14,383
LDU_FT/Basic-Components/msgpack-rpc-protocol/_response_handler
LDU_FT
[ "<BEGIN>\n## `add_status_code`", "用于将mprpc的标准异常注册到`_mprpc_exceptions`的装饰器.", " Parameters:\n code (int): - 标准状态码\n Return:\n (Callable): - 装饰函数\n<END>", "<BEGIN>\n## `abort`", "根据状态码创建一个异常.", " Parameters:\n status_code (int): - 错误的状态码\n ID (str): - 任务的ID号,通常是一个uuid,默认...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _response_handler API. 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 _response_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
监听响应数据的协程函数.`connect`被调用后会被创建为一个协程并放入事件循环.
"监听响应数据的协程函数.`connect`被调用后会被创建为一个协程并放入事件循环."
202
false
Basic-Components/msgpack-rpc-protocol
_response_handler
14,384
LDU_FT/abilian/abilian-core/get_image
LDU_FT
[ "<BEGIN>\n## `require_flush`", "Decorator for methods that need to query security.", " It ensures all security related operations are flushed to DB, but\n avoids unneeded flushes.\n<END>", "<BEGIN>\n## `query_pa_no_flush`", "Query for a :class:`PermissionAssignment` using `session` without any\n `f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return an image for the given content, only if it already exists in the image cache.
"Return an image for the given content, only if it already exists in\n the image cache."
429
false
abilian/abilian-core
get_image
14,385
LDU_FT/GoogleCloudPlatform/appengine-mapreduce/to_json_str
LDU_FT
[ "<BEGIN>\n## `_validate_filters`", "Validate user supplied filters.", " Validate filters are on existing properties and filter values\n have valid semantics.", " Args:\n filters: user supplied filters. Each filter should be a list or tuple of\n format (<property_name_as_str>, <query_opera...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json_str API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Convert data to json string representation. Returns: json representation as string.
"Convert data to json string representation.\n\n Returns:\n json representation as string."
766
false
GoogleCloudPlatform/appengine-mapreduce
to_json_str
14,386
LDU_FT/vmalloc/dessert/_format_lines
LDU_FT
[ "<BEGIN>\n## `_read_pyc`", "Possibly read a pytest pyc containing rewritten code.", " Return rewritten code if successful or None if not.\n<END>", "<BEGIN>\n## `_saferepr`", "Get a safe repr of an object for assertion error messages.", " The assertion formatting (util.format_explanation()) requires\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_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 _format_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...
Format the individual lines This will replace the '{', '}' and '~' characters of our mini formatting language with the proper 'where ...', 'and ...' and ' + ...' text, taking care of indentation along the way. Return a list of formatted lines.
"Format the individual lines\n\n This will replace the '{', '}' and '~' characters of our mini\n formatting language with the proper 'where ...', 'and ...' and ' +\n ...' text, taking care of indentation along the way.\n\n Return a list of formatted lines."
41
false
vmalloc/dessert
_format_lines
14,387
LDU_FT/aarongarrett/inspyred/partially_matched_crossover
LDU_FT
[ "<BEGIN>\n## `mutator`", "Return an inspyred mutator function based on the given function.", " This function generator takes a function that operates on only\n one candidate to produce a single mutated candidate. The generator \n handles the iteration over each candidate in the set to be mutated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the partially_matched_crossover 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 partially_matched_crossover API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Return the offspring of partially matched crossover on the candidates. This function performs partially matched crossover (PMX). This type of crossover assumes that candidates are composed of discrete values that are permutations of a given set (typically integers). It produces offspring that are thems...
"Return the offspring of partially matched crossover on the candidates.\n\n This function performs partially matched crossover (PMX). This type of\n crossover assumes that candidates are composed of discrete values that\n are permutations of a given set (typically integers). It produces offspring\n that are...
390
false
aarongarrett/inspyred
partially_matched_crossover
14,388
LDU_FT/bitlabstudio/django-libs/send_email
LDU_FT
[ "<BEGIN>\n## `add_form_widget_attr`", "Adds widget attributes to a bound form field.", " This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::", " {% load libs_tags %}\n {% for field in form.fiel...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Sends an email based on templates for subject and body. :param request: The current request instance. :param context: A dictionary of items that should be added to the templates' contexts. :param subject_template: A string representing the path to the template of of the email's subject. ...
"Sends an email based on templates for subject and body.\n\n :param request: The current request instance.\n :param context: A dictionary of items that should be added to the\n templates' contexts.\n :param subject_template: A string representing the path to the template of\n of the email's subje...
101
false
bitlabstudio/django-libs
send_email
14,389
LDU_FT/btr1975/ipaddresstools/all_ip_address_in_subnet
LDU_FT
[ "<BEGIN>\n## `ucast_ip_mask`", "Function to check if a address is unicast and that the CIDR mask is good\n Args:\n ip_addr_and_mask: Unicast IP address and mask in the following format 192.168.1.1/24\n return_tuple: Set to True it returns a IP and mask in a tuple, set to False returns True or Fal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all_ip_address_in_subnet 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 all_ip_address_in_subnet API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Function to return every ip in a subnet :param ip_net: Unicast or Multicast IP address or subnet in the following format 192.168.1.1, 239.1.1.1 :param cidr: CIDR value of 0 to 32 :return: A list of ip address's
"Function to return every ip in a subnet\n :param ip_net: Unicast or Multicast IP address or subnet in the following format 192.168.1.1, 239.1.1.1\n :param cidr: CIDR value of 0 to 32\n :return: \n A list of ip address's"
46
false
btr1975/ipaddresstools
all_ip_address_in_subnet
14,390
LDU_FT/coderholic/pyradio/read_playlist_file
LDU_FT
[ "<BEGIN>\n## `toggleTransparency`", "Toggles theme trasparency.", " force_value will set trasparency if True or False,\n or toggle trasparency if None\n<END>", "<BEGIN>\n## `keypress`", "returns theme_id, save_theme\n return_id\n 0-.. : id in self._theme\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_playlist_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_playlist_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. Th...
Read a csv file Returns: number x - number of stations or -1 - playlist is malformed -2 - playlist not found
"Read a csv file\n Returns: number\n x - number of stations or\n -1 - playlist is malformed\n -2 - playlist not found"
65
false
coderholic/pyradio
read_playlist_file
14,391
LDU_FT/shad7/tvrenamer/list_opts
LDU_FT
[ "<BEGIN>\n## `execute`", "Renames a file based on the name generated using metadata.", " :param str filename: absolute path and filename of original file\n :param str formatted_name: absolute path and new filename\n<END>", "<BEGIN>\n## `get_series_by_name`", "Perform lookup for series", " :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_opts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_opts API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Returns a list of oslo_config options available in the library. The returned list includes all oslo_config options which may be registered at runtime by the library. Each element of the list is a tuple. The first element is the name of the group under which the list of elements in the second element wi...
"Returns a list of oslo_config options available in the library.\n\n The returned list includes all oslo_config options which may be registered\n at runtime by the library.\n Each element of the list is a tuple. The first element is the name of the\n group under which the list of elements in the second elem...
135
false
shad7/tvrenamer
list_opts
14,392
LDU_FT/s0md3v/Photon/remove_regex
LDU_FT
[ "<BEGIN>\n## `zap`", "Extract links from robots.txt and sitemap.xml.\n<END>", "<BEGIN>\n## `requester`", "Handle the requests and return the response body.\n<END>", "<BEGIN>\n## `updater`", "Update the current installation.", " git clones the latest version and merges it with the current directory.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_regex API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_regex API. 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...
Parse a list for non-matches to a regex. Args: urls: iterable of urls regex: string regex to be parsed for Returns: list of strings not matching regex
"Parse a list for non-matches to a regex.\n\n Args:\n urls: iterable of urls\n regex: string regex to be parsed for\n\n Returns:\n list of strings not matching regex"
25
false
s0md3v/Photon
remove_regex
14,393
LDU_FT/jeffrimko/Qprompt/enum_menu
LDU_FT
[ "<BEGIN>\n## `_format_kwargs`", "Decorator to handle formatting kwargs to the proper names expected by\n the associated function. The formats dictionary string keys will be used as\n expected function kwargs and the value list of strings will be renamed to\n the associated key string.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enum_menu API. 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 enum_menu API. 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...
Enumerates the given list of strings into returned menu. **Params**: - menu (Menu) - Existing menu to append. If not provided, a new menu will be created.
"Enumerates the given list of strings into returned menu.\n\n **Params**:\n - menu (Menu) - Existing menu to append. If not provided, a new menu will\n be created."
46
false
jeffrimko/Qprompt
enum_menu
14,394
LDU_FT/tgbugs/pyontutils/add_restriction
LDU_FT
[ "<BEGIN>\n## `build_transgenic_lines`", "init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_restriction API. 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 add_restriction API. 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...
Lift normal triples into restrictions using someValuesFrom.
"Lift normal triples into restrictions using someValuesFrom."
301
false
tgbugs/pyontutils
add_restriction
14,395
LDU_FT/robertmartin8/PyPortfolioOpt/volatility
LDU_FT
[ "<BEGIN>\n## `negative_sharpe`", "Calculate the negative Sharpe ratio of a portfolio", " :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param expected_returns: expected return of each asset\n :type expected_returns: pd.Series\n :param cov_matrix: the covariance matr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the volatility API. 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 volatility API. 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...
Calculate the volatility of a portfolio. This is actually a misnomer because the function returns variance, which is technically the correct objective function when minimising volatility. :param weights: asset weights of the portfolio :type weights: np.ndarray :param cov_matrix: the covariance matr...
"Calculate the volatility of a portfolio. This is actually a misnomer because\n the function returns variance, which is technically the correct objective\n function when minimising volatility.\n\n :param weights: asset weights of the portfolio\n :type weights: np.ndarray\n :param cov_matrix: the covarian...
90
false
robertmartin8/PyPortfolioOpt
volatility
14,396
LDU_FT/inveniosoftware/invenio-records-rest/serialize
LDU_FT
[ "<BEGIN>\n## `build_default_endpoint_prefixes`", "Build the default_endpoint_prefixes map.\n<END>", "<BEGIN>\n## `obj_or_import_string`", "Import string or return object.", " :params value: Import path or class object to instantiate.\n :params default: Default object to return if the import fails.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Serialize a single record and persistent identifier. :param pid: Persistent identifier instance. :param record: Record instance. :param links_factory: Factory function for record links.
"Serialize a single record and persistent identifier.\n\n :param pid: Persistent identifier instance.\n :param record: Record instance.\n :param links_factory: Factory function for record links."
165
false
inveniosoftware/invenio-records-rest
serialize
14,397
LDU_FT/pjuren/pyokit/load
LDU_FT
[ "<BEGIN>\n## `__trim_extensions_dot`", "trim leading dots from extensions and drop any empty strings.\n<END>", "<BEGIN>\n## `__split_genomic_interval_filename`", "Split a filename of the format chrom:start-end.ext or chrom.ext (full chrom).", " :return: tuple of (chrom, start, end) -- 'start' and 'end' are...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Load this data_table from a stream or file. Blank lines in the file are skipped. Any existing values in this dataTable object are cleared before loading the new ones. :param in_fh: load from this stream. Can also be a string, in which case we treat it as a filename and attempt to l...
"Load this data_table from a stream or file.\n\n Blank lines in the file are skipped. Any existing values in this dataTable\n object are cleared before loading the new ones.\n\n :param in_fh: load from this stream. Can also be a string, in which case\n we treat it as a filename and attem...
519
false
pjuren/pyokit
load
14,398
LDU_FT/websocket-client/websocket-client/enableTrace
LDU_FT
[ "<BEGIN>\n## `parse_url`", "parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)", " url: url string.\n<END>", "<BEGIN>\n## `get_proxy_info`", "try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enableTrace API. 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 enableTrace API. 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...
turn on/off the traceability. traceable: boolean value. if set True, traceability is enabled.
"turn on/off the traceability.\n\n traceable: boolean value. if set True, traceability is enabled."
81
false
websocket-client/websocket-client
enableTrace
14,399
LDU_FT/fishtown-analytics/dbt/handle_block
LDU_FT
[ "<BEGIN>\n## `patch`", "Given a ParsedNodePatch, add the new information to the node.\n<END>", "<BEGIN>\n## `build_edges`", "Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Handle a block. The current state of the parser should be after the open block is completed: {% blk foo %}my data {% endblk %} ^ right here
"Handle a block. The current state of the parser should be after the\n open block is completed:\n {% blk foo %}my data {% endblk %}\n ^ right here"
419
false
fishtown-analytics/dbt
handle_block
14,400
LDU_FT/automl/HpBandSter/new_result
LDU_FT
[ "<BEGIN>\n## `get_config`", "Function to sample a new configuration", "\t\t\tThis function is called inside Hyperband to query a new configuration", "\t\t\tParameters:\n\t\t\t-----------\n\t\t\tbudget: float\n\t\t\t\tthe budget for which this configuration is scheduled", "\t\t\treturns: config\n\t\t\t\tshou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the new_result API. 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 new_result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
function to register finished runs Every time a run has finished, this function should be called to register it with the result logger. If overwritten, make sure to call this method from the base class to ensure proper logging. Parameters: ----------- job: hpbandster.distributed.dispatcher.Job o...
"function to register finished runs\n\n\t\t\tEvery time a run has finished, this function should be called\n\t\t\tto register it with the result logger. If overwritten, make\n\t\t\tsure to call this method from the base class to ensure proper\n\t\t\tlogging.\n\n\n\t\t\tParameters:\n\t\t\t-----------\n\t\t\tjob: hpbands...
188
false
automl/HpBandSter
new_result
14,401
LDU_FT/uogbuji/versa/ifexists
LDU_FT
[ "<BEGIN>\n## `link`", "Action function generator to create a link based on the context's current link, or on provided parameters", " :param origin: IRI/string, or list of same; origins for the created relationships.\n If None, the action context provides the parameter.", " :param rel: IRI/string, or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ifexists API. 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 ifexists API. 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...
Action function generator providing an if/then/else type primitive :param test: Expression to be tested to determine the branch path :param value: Expression providing the result if test is true :param alt: Expression providing the result if test is false :return: Versa action function to do the actual ...
"Action function generator providing an if/then/else type primitive\n :param test: Expression to be tested to determine the branch path\n :param value: Expression providing the result if test is true\n :param alt: Expression providing the result if test is false\n :return: Versa action function to do the ac...
146
false
uogbuji/versa
ifexists
14,402
LDU_FT/thespacedoctor/transientNamer/_parse_photometry_data
LDU_FT
[ "<BEGIN>\n## `sources`", "*The results of the search returned as a python list of dictionaries*", " **Usage:**", " .. code-block:: python", " sources = tns.sources\n<END>", "<BEGIN>\n## `spectra`", "*The associated source spectral data*", " **Usage:**", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_photometry_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_photometry_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
*parse photometry data from a row in the tns results content* **Key Arguments:** - ``content`` -- a table row from the TNS results page - ``TNSId`` -- the tns id of the transient **Return:** - ``photData`` -- a list of dictionaries of the photometry data ...
"*parse photometry data from a row in the tns results content*\n\n **Key Arguments:**\n - ``content`` -- a table row from the TNS results page\n - ``TNSId`` -- the tns id of the transient\n\n **Return:**\n - ``photData`` -- a list of dictionaries of the photometry data\n...
132
false
thespacedoctor/transientNamer
_parse_photometry_data
14,403
LDU_FT/intelsdi-x/snap-plugin-lib-py/iteritems
LDU_FT
[ "<BEGIN>\n## `publish`", "Publishes metrics to a file in JSON format.", " This method is called by the Snap deamon during the collection phase\n of the execution of a Snap workflow.", " In this example we are writing the metrics to a file in json format.\n We obtain the path to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iteritems API. 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 iteritems API. 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 an iterator over the items of ConfigMap.
"Returns an iterator over the items of ConfigMap."
69
false
intelsdi-x/snap-plugin-lib-py
iteritems
14,404
LDU_FT/RLBot/RLBot/convert_to_legacy_v3
LDU_FT
[ "<BEGIN>\n## `configure_processes`", "This will update the priority and CPU affinity of the processes owned by bots to try to achieve fairness and\n good performance.", " :param agent_metadata_map: A mapping of player index to agent metadata, including a list of owned process ids.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_legacy_v3 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 convert_to_legacy_v3 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 legacy packet from v3 :param game_tick_packet a game tick packet in the v4 struct format. :param field_info_packet a field info packet in the v4 struct format. Optional. If this is not supplied, none of the boost locations will be filled in.
"Returns a legacy packet from v3\n :param game_tick_packet a game tick packet in the v4 struct format.\n :param field_info_packet a field info packet in the v4 struct format. Optional. If this is not supplied,\n none of the boost locations will be filled in."
181
false
RLBot/RLBot
convert_to_legacy_v3
14,405
LDU_FT/econ-ark/HARK/minimizeNelderMead
LDU_FT
[ "<BEGIN>\n## `calcLogSumChoiceProbs`", "Returns the final optimal value and choice probabilities given the choice\n specific value functions `Vals`. Probabilities are degenerate if sigma == 0.0.\n Parameters\n ----------\n Vals : [numpy.array]\n A numpy.array that holds choice specific values a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimizeNelderMead 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 minimizeNelderMead 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...
Minimizes the objective function using the Nelder-Mead simplex algorithm, starting from an initial parameter guess. Parameters ---------- objectiveFunction : function The function to be minimized. It should take only a single argument, which should be a list representing the parameters...
"Minimizes the objective function using the Nelder-Mead simplex algorithm,\n starting from an initial parameter guess.\n\n Parameters\n ----------\n objectiveFunction : function\n The function to be minimized. It should take only a single argument, which\n should be a list representing the pa...
1,253
true
econ-ark/HARK
minimizeNelderMead
14,406
LDU_FT/fakedrake/overlay_parse/_fit_overlay_lists
LDU_FT
[ "<BEGIN>\n## `rx_int_extra`", "We didn't just match an int but the int is what we need.\n<END>", "<BEGIN>\n## `offset_overlays`", "Generate overlays after offset.\n :param text: The text to be searched.\n :param offset: Match starting that index. If none just search.\n :returns: An overla...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fit_overlay_lists 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 _fit_overlay_lists 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 a list of overlays that start at start.
"Return a list of overlays that start at start."
35
false
fakedrake/overlay_parse
_fit_overlay_lists
14,407
LDU_FT/wikimedia/ores/build_score_request
LDU_FT
[ "<BEGIN>\n## `redis_from_url`", "Converts a redis URL used by celery into a `redis.Redis` object.\n<END>", "<BEGIN>\n## `process_model_scores`", "Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_score_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_score_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Build an :class:`ores.ScoreRequest` from information contained in a request. :Parameters: scoring_system : :class:`ores.ScoringSystem` A scoring system to build request with request : :class:`flask.Request` A web request to extract information from context_name :...
"Build an :class:`ores.ScoreRequest` from information contained in a\n request.\n\n :Parameters:\n scoring_system : :class:`ores.ScoringSystem`\n A scoring system to build request with\n request : :class:`flask.Request`\n A web request to extract information from\n conte...
52
false
wikimedia/ores
build_score_request
14,408
LDU_FT/bmihelac/django-cruds/crud_for_model
LDU_FT
[ "<BEGIN>\n## `crud_url_name`", "Returns url name for given model and action.\n<END>", "<BEGIN>\n## `get_fields`", "Returns ordered dict in format 'field': 'verbose_name'\n<END>", "<BEGIN>\n## `crud_url`", "Shortcut function returns URL for instance or model and action.", " Example::", " crud...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crud_for_model API. 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 crud_for_model API. 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 list of ``url`` items to CRUD a model.
"Returns list of ``url`` items to CRUD a model."
34
false
bmihelac/django-cruds
crud_for_model
14,409
LDU_FT/MoseleyBioinformaticsLab/mwtab/_to_tarfile
LDU_FT
[ "<BEGIN>\n## `read`", "Read data into a :class:`~mwtab.mwtab.MWTabFile` instance.", " :param filehandle: file-like object.\n :type filehandle: :py:class:`io.TextIOWrapper`, :py:class:`gzip.GzipFile`,\n :py:class:`bz2.BZ2File`, :py:class:`zipfile.ZipFile`\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_tarfile API. 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_tarfile API. 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...
Convert files to tar archive. :return: None :rtype: :py:obj:`None`
"Convert files to tar archive.\n :return: None\n :rtype: :py:obj:`None`"
74
false
MoseleyBioinformaticsLab/mwtab
_to_tarfile
14,410
LDU_FT/jpype-project/jpype/find_possible_homes
LDU_FT
[ "<BEGIN>\n## `_javahome_binary`", "for osx > 10.5 we have the nice util /usr/libexec/java_home available. Invoke it and\n return its output. It seems this tool has been removed in osx 10.9.\n<END>", "<BEGIN>\n## `_get_from_registry`", "Retrieves the path to the default Java installation stored in the\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_possible_homes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_possible_homes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Generator that looks for the first-level children folders that could be Java installations, according to their name :param parents: A list of parent directories :return: The possible JVM installation folders
"Generator that looks for the first-level children folders that could be\n Java installations, according to their name\n\n :param parents: A list of parent directories\n :return: The possible JVM installation folders"
46
false
jpype-project/jpype
find_possible_homes
14,411
LDU_FT/briney/abutils/muscle
LDU_FT
[ "<BEGIN>\n## `cluster`", "Perform sequence clustering with CD-HIT.", " Args:", " seqs (list): An iterable of sequences, in any format that `abutils.utils.sequence.Sequence()`\n can handle", " threshold (float): Clustering identity threshold. Default is `0.975`.", " out_f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the muscle API. 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 muscle API. 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 ...
Performs multiple sequence alignment with MUSCLE. Args: sequences (list): Sequences to be aligned. ``sequences`` can be one of four things: 1. a FASTA-formatted string 2. a list of BioPython ``SeqRecord`` objects 3. a list of AbTools ``Sequence`` objects ...
"Performs multiple sequence alignment with MUSCLE.\n\n Args:\n\n sequences (list): Sequences to be aligned. ``sequences`` can be one of four things:\n\n 1. a FASTA-formatted string\n\n 2. a list of BioPython ``SeqRecord`` objects\n\n 3. a list of AbTools ``Sequence`` objects\n...
445
false
briney/abutils
muscle
14,412
LDU_FT/orbeckst/RecSQL/close
LDU_FT
[ "<BEGIN>\n## `make_python_name`", "Returns a unicode string that can be used as a legal python identifier.", " :Arguments:\n *s*\n string\n *default*\n use *default* if *s* is ``None``\n *number_prefix*\n string to prepend if *s* starts with a number\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Clean up (if no more connections to the db exist). * For in-memory: Delete the underlying SQL table from the in-memory database. * For on-disk: save and close connection
"Clean up (if no more connections to the db exist).\n\n * For in-memory: Delete the underlying SQL table from the\n in-memory database.\n\n * For on-disk: save and close connection"
96
false
orbeckst/RecSQL
close
14,413
LDU_FT/thespacedoctor/sherlock/_add_htmids_to_database_table
LDU_FT
[ "<BEGIN>\n## `ingest`", "ingest the veron catalogue into the catalogues database", " See class docstring for usage.\n<END>", "<BEGIN>\n## `_create_dictionary_of_veron`", "create a list of dictionaries containing all the rows in the veron catalogue", " **Return:**\n - ``dictList`` ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_htmids_to_database_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_htmids_to_database_table API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
*Add HTMIDs to database table once all the data has been imported (HTM Levels 10,13,16)* **Usage:** .. code-block:: python self._add_htmids_to_database_table()
"*Add HTMIDs to database table once all the data has been imported (HTM Levels 10,13,16)*\n\n **Usage:**\n\n .. code-block:: python \n\n self._add_htmids_to_database_table()"
348
false
thespacedoctor/sherlock
_add_htmids_to_database_table
14,414
LDU_FT/opengisch/pum/__run_py_file
LDU_FT
[ "<BEGIN>\n## `pg_backup`", "Call the pg_dump command to create a db backup", " Parameters\n ----------\n pg_dump_exe: str\n the pg_dump command path\n exclude_schema: str[]\n list of schemas to be skipped\n<END>", "<BEGIN>\n## `pg_restore`", "Call the pg_res...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __run_py_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __run_py_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Execute the python file at the passed path Parameters ---------- filepath: str the path of the file to execute module_name: str the name of the python module
"Execute the python file at the passed path\n\n Parameters\n ----------\n filepath: str\n the path of the file to execute\n module_name: str\n the name of the python module"
71
false
opengisch/pum
__run_py_file
14,415
LDU_FT/gmr/tredis/bitcount
LDU_FT
[ "<BEGIN>\n## `auth`", "Request for authentication in a password-protected Redis server.\n Redis can be instructed to require a password before allowing clients\n to execute commands. This is done using the ``requirepass`` directive\n in the configuration file.", " If the password doe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bitcount API. 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 bitcount API. 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...
Count the number of set bits (population counting) in a string. By default all the bytes contained in the string are examined. It is possible to specify the counting operation only in an interval passing the additional arguments start and end. Like for the :meth:`~tredis.RedisClient.ge...
"Count the number of set bits (population counting) in a string.\n\n By default all the bytes contained in the string are examined. It is\n possible to specify the counting operation only in an interval passing\n the additional arguments start and end.\n\n Like for the :meth:`~tredis.RedisCl...
523
false
gmr/tredis
bitcount
14,416
LDU_FT/edeposit/edeposit.amqp.storage/check_auth
LDU_FT
[ "<BEGIN>\n## `render_trees`", "Render list of `trees` to HTML.", " Args:\n trees (list): List of :class:`.Tree`.\n path_composer (fn reference): Function used to compose paths from UUID.\n Look at :func:`.compose_tree_path` from :mod:`.web_tools`.", " Returns:\n str: HTML...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_auth API. 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 check_auth API. 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...
This function is used to check `username` and `password` in case that :attr:`.settings.PRIVATE_INDEX` is set to ``True`` (default is ``False``).
"This function is used to check `username` and `password` in case that\n :attr:`.settings.PRIVATE_INDEX` is set to ``True`` (default is ``False``)."
140
false
edeposit/edeposit.amqp.storage
check_auth
14,417
LDU_FT/Bouke/django-two-factor-auth/get_prev_step
LDU_FT
[ "<BEGIN>\n## `mask_phone_number`", "Masks a phone number, only first 3 and last 2 digits visible.", " Examples:", " * `+31 * ******58`", " :param number: str or phonenumber object\n :return: str\n<END>", "<BEGIN>\n## `format_phone_number`", "Formats a phone number in international notation.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_prev_step API. 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_prev_step API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the previous step before the given `step`. If there are no steps available, None will be returned. If the `step` argument is None, the current step will be determined automatically.
"Returns the previous step before the given `step`. If there are no\n steps available, None will be returned. If the `step` argument is\n None, the current step will be determined automatically."
31
false
Bouke/django-two-factor-auth
get_prev_step
14,418
LDU_FT/CitrineInformatics/pypif-sdk/get_url
LDU_FT
[ "<BEGIN>\n## `replace_by_key`", "Replace values that match a key", " Deeply traverses the pif object, looking for `key` and\n replacing values in accordance with `subs`. If `new_key`\n is set, the replaced values are assigned to that key. If\n `remove` is `True`, the old `key` pairs are removed.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted...
Construct the URL of a PIF on a site :param pif: to construct URL for :param dataset: the pif will belong to :param version: of the PIF (default: 1) :param site: for the dataset (default: https://citrination.com) :return: the URL as a string
"Construct the URL of a PIF on a site\n :param pif: to construct URL for\n :param dataset: the pif will belong to\n :param version: of the PIF (default: 1)\n :param site: for the dataset (default: https://citrination.com)\n :return: the URL as a string"
61
false
CitrineInformatics/pypif-sdk
get_url
14,419
LDU_FT/kata198/AdvancedHTMLParser/removeBlocks
LDU_FT
[ "<BEGIN>\n## `getRootNodes`", "getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.", " Note: I...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the removeBlocks API. 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 removeBlocks API. 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...
removeBlock - Removes a list of blocks (the first occurance of each) from the direct children of this node. @param blocks list<str/AdvancedTag> - List of AdvancedTags for tag nodes, else strings for text nodes @return The removed blocks in each slot, or None if None removed. @see...
"removeBlock - Removes a list of blocks (the first occurance of each) from the direct children of this node.\n\n @param blocks list<str/AdvancedTag> - List of AdvancedTags for tag nodes, else strings for text nodes\n\n @return The removed blocks in each slot, or None if None removed.\n\n ...
541
false
kata198/AdvancedHTMLParser
removeBlocks
14,420
LDU_FT/PyAr/fades/consolidate_dependencies
LDU_FT
[ "<BEGIN>\n## `consolidate_dependencies`", "Parse files, get deps and merge them. Deps read later overwrite those read earlier.\n<END>", "<BEGIN>\n## `decide_child_program`", "Decide which the child program really is (if any).\n<END>", "<BEGIN>\n## `detect_inside_virtualenv`", "Tell if fades is running ins...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the consolidate_dependencies 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 consolidate_dependencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Parse files, get deps and merge them. Deps read later overwrite those read earlier.
"Parse files, get deps and merge them. Deps read later overwrite those read earlier."
85
false
PyAr/fades
consolidate_dependencies
14,421
LDU_FT/orb-framework/orb/generate
LDU_FT
[ "<BEGIN>\n## `virtual`", "Allows for defining virtual columns and collectors on models -- these\n are objects that are defined in code and not directly in a data store.", " :param cls:\n :param options:\n :return:\n<END>", "<BEGIN>\n## `dict_factory`", "Converts the cursor information from a SQL...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Generates a new token for this column based on its bit length. This method will not ensure uniqueness in the model itself, that should be checked against the model records in the database first. :return: <str>
"Generates a new token for this column based on its bit length. This method\n will not ensure uniqueness in the model itself, that should be checked against\n the model records in the database first.\n\n :return: <str>"
608
false
orb-framework/orb
generate
14,422
LDU_FT/10gen/mongo-orchestration/__init_config_params
LDU_FT
[ "<BEGIN>\n## `_host`", "Get the Host from the most recent HTTP request.\n<END>", "<BEGIN>\n## `wait_for`", "waits while process starts.\n Args:\n port_num - port number\n timeout - specify how long, in seconds, a command can take before times out.\n return True if process started, r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __init_config_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. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __init_config_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. ...
Conditionally enable options in the Server's config file.
"Conditionally enable options in the Server's config file."
153
false
10gen/mongo-orchestration
__init_config_params
14,423
LDU_FT/django-import-export/django-import-export/export_admin_action
LDU_FT
[ "<BEGIN>\n## `has_import_permission`", "Returns whether a request has import permission.\n<END>", "<BEGIN>\n## `get_import_resource_kwargs`", "Prepares/returns kwargs used when initializing Resource\n<END>", "<BEGIN>\n## `process_import`", "Perform the actual import action (after the user has confirmed th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_admin_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_admin_action API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Exports the selected rows using file_format.
"Exports the selected rows using file_format."
84
false
django-import-export/django-import-export
export_admin_action
14,424
LDU_FT/EconForge/dolo/loadUiType
LDU_FT
[ "<BEGIN>\n## `multidot_old`", "Implements tensor operation : tensor-times-matrices.\n If last dimensions of ten represent multilinear operations of the type : [X1,...,Xk]->B[X1,...,Xk]\n and mats contains matrices or vectors [A1,...Ak] the function returns an array representing operators :\n [X1,...,Xk]-...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadUiType API. 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 loadUiType API. 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...
Pyside lacks the "loadUiType" command, so we have to convert the ui file to py code in-memory first and then execute it in a special frame to retrieve the form_class.
"Pyside lacks the \"loadUiType\" command, so we have to convert the ui file to py code in-memory first\r\n\t\tand then execute it in a special frame to retrieve the form_class."
221
false
EconForge/dolo
loadUiType
14,425
LDU_FT/xapple/plumbing/plot
LDU_FT
[ "<BEGIN>\n## `plot_and_save`", "Used when the plot method defined does not create a figure nor calls save_plot\n Then the plot method has to use self.fig\n<END>", "<BEGIN>\n## `plot`", "An example plot function. You have to subclass this method.\n<END>", "<BEGIN>\n## `count_processors`", "How many ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
An example plot function. You have to subclass this method.
"An example plot function. You have to subclass this method."
150
false
xapple/plumbing
plot
14,426
LDU_FT/theodoregoetz/wernher/ziegler_nichols
LDU_FT
[ "<BEGIN>\n## `control_force`", "represents physical limitation of the control\n<END>", "<BEGIN>\n## `force`", "control force plus the external forces (drag, etc)\n<END>", "<BEGIN>\n## `colorline`", "http://nbviewer.ipython.org/github/dpsanders/matplotlib-examples/blob/master/colorline.ipynb\n http://ma...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ziegler_nichols API. 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 ziegler_nichols API. 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...
ku = ultimate gain tu = period of oscillation at ultimate gain
"ku = ultimate gain\n tu = period of oscillation at ultimate gain"
12
false
theodoregoetz/wernher
ziegler_nichols
14,427
LDU_FT/lappis-unb/salic-ml/common_items
LDU_FT
[ "<BEGIN>\n## `approved_funds`", "Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>", "<BEGIN>\n## `complexidade`", "Returns a value that indicates project health, currently FinancialIndicator\n i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_items API. 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 common_items API. 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 the itens that are common in all the segments, in the format | idSegmento | id planilhaItens |.
"Returns the itens that are common in all the segments,\n in the format | idSegmento | id planilhaItens |."
102
false
lappis-unb/salic-ml
common_items
14,428
LDU_FT/moble/spinsfast/salm2map
LDU_FT
[ "<BEGIN>\n## `ind_lm`", "Convert single index to corresponding (ell, m) pair\n<END>", "<BEGIN>\n## `salm2map`", "Convert mode weights of spin-weighted function to values on a grid", " Parameters\n ----------\n salm : array_like, complex, shape (..., (lmax+1)**2)\n Input array representing mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the salm2map API. 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 salm2map API. 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...
Convert mode weights of spin-weighted function to values on a grid Parameters ---------- salm : array_like, complex, shape (..., (lmax+1)**2) Input array representing mode weights of the spin-weighted function. This array may be multi-dimensional, where initial dimensions may represent dif...
"Convert mode weights of spin-weighted function to values on a grid\n\n Parameters\n ----------\n salm : array_like, complex, shape (..., (lmax+1)**2)\n Input array representing mode weights of the spin-weighted function. This array may be\n multi-dimensional, where initial dimensions may repres...
46
false
moble/spinsfast
salm2map
14,429
LDU_FT/relekang/python-semantic-release/tag_new_version
LDU_FT
[ "<BEGIN>\n## `parse_commit_message`", "Parses a commit message according to the 1.0 version of python-semantic-release. It expects\n a tag of some sort in the commit message and will use the rest of the first line as changelog\n content.", " :param message: A string of a commit message.\n :raises Un...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_new_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_new_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Creates a new tag with the version number prefixed with v. :param version: The version number used in the tag as a string.
"Creates a new tag with the version number prefixed with v.\n\n :param version: The version number used in the tag as a string."
103
false
relekang/python-semantic-release
tag_new_version
14,430
LDU_FT/digidotcom/python-devicecloud/read
LDU_FT
[ "<BEGIN>\n## `_parse_command_response`", "Parse an SCI command response into ElementTree XML", " This is a helper method that takes a Requests Response object\n of an SCI command response and will parse it into an ElementTree Element\n representing the root of the XML response.", " :param response...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API. 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 read API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Read one or more DataPoints from a stream .. warning:: The data points from Device Cloud is a paged data set. When iterating over the result set there could be delays when we hit the end of a page. If this is undesirable, the caller should collect all results into a data stru...
"Read one or more DataPoints from a stream\n\n .. warning::\n The data points from Device Cloud is a paged data set. When iterating over the\n result set there could be delays when we hit the end of a page. If this is undesirable,\n the caller should collect all results into a dat...
366
false
digidotcom/python-devicecloud
read
14,431
LDU_FT/jenisys/parse_type/command_copytree
LDU_FT
[ "<BEGIN>\n## `build_type_dict`", "Builds type dictionary for user-defined type converters,\n used by :mod:`parse` module.\n This requires that each type converter has a \"name\" attribute.", " :param converters: List of type converters (parse_types)\n :return: Type converter dictionary\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command_copytree API. 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 command_copytree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Copy one or more source directory(s) below a destination directory. Parts of the destination directory path are created if needed. Similar to the UNIX command: 'cp -R srcdir destdir'
"Copy one or more source directory(s) below a destination directory.\n Parts of the destination directory path are created if needed.\n Similar to the UNIX command: 'cp -R srcdir destdir'"
115
false
jenisys/parse_type
command_copytree
14,432
LDU_FT/sastrarobotics/pyHerkulex/set_position_p
LDU_FT
[ "<BEGIN>\n## `connect`", "Connect to the Herkulex bus", " Connect to serial port to which Herkulex Servos are attatched", " Args:\n portname (str): The serial port name\n baudrate (int): The serial port baudrate\n Raises:\n SerialException: Error occured while opening serial port...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_position_p API. 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 set_position_p API. 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...
Set the P gain of the position PID Args: pvalue (int): P value
"Set the P gain of the position PID\n\n Args:\n\n pvalue (int): P value"
102
false
sastrarobotics/pyHerkulex
set_position_p
14,433
LDU_FT/pmichali/whodunit/collect_blame_info
LDU_FT
[ "<BEGIN>\n## `build_owner`", "Factory for creating owners, based on --sort option.\n<END>", "<BEGIN>\n## `collect_modules`", "Generator to look for git files in tree. Will handle all lines.\n<END>", "<BEGIN>\n## `collect_blame_info`", "Runs git blame on files, for the specified sets of line ranges.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_blame_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. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the collect_blame_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. Th...
Runs git blame on files, for the specified sets of line ranges. If no line range tuples are provided, it will do all lines.
"Runs git blame on files, for the specified sets of line ranges.\n\n If no line range tuples are provided, it will do all lines."
30
false
pmichali/whodunit
collect_blame_info
14,434
LDU_FT/WhyNotHugo/python-barcode/set_options
LDU_FT
[ "<BEGIN>\n## `build`", "Builds the barcode pattern from `self.ean`.", " :returns: The pattern as string\n :rtype: String\n<END>", "<BEGIN>\n## `build`", "Builds the barcode pattern from `self.ean`.", " :returns: The pattern as string\n :rtype: String\n<END>", "<BEGIN>\n## `ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_options API. 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 set_options API. 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...
Sets the given options as instance attributes (only if they are known). :parameters: options : Dict All known instance attributes and more if the childclass has defined them before this call. :rtype: None
"Sets the given options as instance attributes (only\n if they are known).\n\n :parameters:\n options : Dict\n All known instance attributes and more if the childclass\n has defined them before this call.\n\n :rtype: None"
30
false
WhyNotHugo/python-barcode
set_options
14,435
LDU_FT/ScienceLogic/amiuploader/parse_image_json
LDU_FT
[ "<BEGIN>\n## `validate_args`", "Perform necessary validation checks\n :param args:\n :return:\n<END>", "<BEGIN>\n## `vmdk_to_ami`", "Calls methods to perform vmdk import\n :param args:\n :return:\n<END>", "<BEGIN>\n## `parse_image_json`", "parses response output of AWS describe commands and re...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_image_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_image_json API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
parses response output of AWS describe commands and returns the first (and only) item in array :param text: describe output :return: image json
"parses response output of AWS describe commands and returns the first (and only) item in array\n :param text: describe output\n :return: image json"
34
false
ScienceLogic/amiuploader
parse_image_json
14,436
LDU_FT/andreikop/qutepart/_lastWord
LDU_FT
[ "<BEGIN>\n## `_createAction`", "Create QAction with given parameters and add to the widget\n<END>", "<BEGIN>\n## `clear`", "Clear bookmarks on block range including start and end\n<END>", "<BEGIN>\n## `_onPrevBookmark`", "Previous Bookmark action triggered. Move cursor\n<END>", "<BEGIN>\n## `_onNextBook...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lastWord API. 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 _lastWord API. 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...
Move backward to the start of the word at the end of a string. Return the word
"Move backward to the start of the word at the end of a string.\n Return the word"
303
false
andreikop/qutepart
_lastWord
14,437
LDU_FT/LLNL/certipy/save_x509s
LDU_FT
[ "<BEGIN>\n## `open_tls_file`", "Context to ensure correct file permissions for certs and directories", " Ensures:\n - A containing directory with appropriate permissions\n - Correct file permissions based on what the file is (0o600 for keys\n and 0o644 for certs)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_x509s API. 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 save_x509s API. 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...
Saves the x509 objects to the paths known by this bundle
"Saves the x509 objects to the paths known by this bundle"
50
false
LLNL/certipy
save_x509s
14,438
LDU_FT/Clinical-Genomics/housekeeper/include_version
LDU_FT
[ "<BEGIN>\n## `include`", "Include a bundle of files into the internal space.", " Use bundle name if you simply want to inlcude the latest version.\n<END>", "<BEGIN>\n## `files_ondisk`", "Returns a list of files that are not on disk.\n<END>", "<BEGIN>\n## `add_bundle`", "Build a new bundle version of ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the include_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Include files in existing bundle version.
"Include files in existing bundle version."
12
false
Clinical-Genomics/housekeeper
include_version
14,439
LDU_FT/acrazing/dbapi/login
LDU_FT
[ "<BEGIN>\n## `get_people`", "获取用户信息", " :param user_alias: 用户ID\n :return:\n<END>", "<BEGIN>\n## `build_list_result`", "构建带翻页的列表", " :param results: 已获取的数据列表\n :param xml: 原始页面xml\n :return: {'results': list, 'count': int, 'next_start': int|None}\n 如果count与results长度不同,则有更...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API. 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 login API. 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...
登录 :type username: str :param username: 用户名(手机号或者邮箱) :type password: str :param password: 密码
"登录\n \n :type username: str\n :param username: 用户名(手机号或者邮箱)\n \n :type password: str\n :param password: 密码"
95
false
acrazing/dbapi
login
14,440
LDU_FT/floydhub/floyd-cli/get_data_object
LDU_FT
[ "<BEGIN>\n## `init`", "Initialize new project at the current path.", " After this you can run other FloydHub commands like status and run.\n<END>", "<BEGIN>\n## `status`", "View status of all jobs in a project.", " The command also accepts a specific job name.\n<END>", "<BEGIN>\n## `print_experime...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_data_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Normalize the data_id and query the server. If that is unavailable try the raw ID
"Normalize the data_id and query the server.\n If that is unavailable try the raw ID"
84
false
floydhub/floyd-cli
get_data_object
14,441
LDU_FT/petebachant/PXL/loadhdf
LDU_FT
[ "<BEGIN>\n## `sigmafilter`", "Remove datapoints outside of a specified standard deviation range.\n<END>", "<BEGIN>\n## `psd`", "Compute one-sided power spectral density, subtracting mean automatically.\r", " Parameters\r\n ----------\r\n t : Time array\r\n data : Time series data\r\n window :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loadhdf API. 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 loadhdf API. 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...
Load all data from top level of HDF5 file--similar to how `scipy.io.loadmat` works.
"Load all data from top level of HDF5 file--similar to how\n `scipy.io.loadmat` works."
65
false
petebachant/PXL
loadhdf
14,442
LDU_FT/diging/tethne/concat_list
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 concat_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the concat_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 extra...
Concatenate list elements pair-wise with the delim character Returns the concatenated list Raises index error if lists are not parallel
"Concatenate list elements pair-wise with the delim character\n Returns the concatenated list\n Raises index error if lists are not parallel"
497
false
diging/tethne
concat_list
14,443
LDU_FT/tilde-lab/tilde/meminfo
LDU_FT
[ "<BEGIN>\n## `wrap_cell`", "Cell wrappers\n for customizing the GUI data table", " TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>", "<BEGIN>\n## `meminfo`", "Get the amount of memory and swap, Mebibytes\n<END>", "<BEGIN>\n## `serial_number`", "Get the serial number. Require...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meminfo API. 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 meminfo API. 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...
Get the amount of memory and swap, Mebibytes
"Get the amount of memory and swap, Mebibytes"
68
false
tilde-lab/tilde
meminfo
14,444
LDU_FT/base4sistemas/satcomum/cnpjcpf
LDU_FT
[ "<BEGIN>\n## `dados_qrcode`", "Compila os dados que compõem o QRCode do CF-e-SAT, conforme a\n documentação técnica oficial **Guia para Geração do QRCode pelo Aplicativo\n Comercial**, a partir de uma instância de ``ElementTree`` que represente a\n árvore do XML do CF-e-SAT.", " :param cfe: Instânci...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cnpjcpf API. 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 cnpjcpf API. 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...
Valida um número de CNPJ ou CPF. Veja :func:`cnpj` e/ou :func:`cpf`.
"Valida um número de CNPJ ou CPF. Veja :func:`cnpj` e/ou :func:`cpf`."
61
false
base4sistemas/satcomum
cnpjcpf
14,445
LDU_FT/adobe-apiplatform/umapi-client.py/do
LDU_FT
[ "<BEGIN>\n## `status`", "Return the connection status, both locally and remotely.", " The local connection status is a dictionary that gives:\n * the count of multiple queries sent to the server.\n * the count of single queries sent to the server.\n * the count of actions sent to the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API. 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 do API. 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...
Here for compatibility with legacy clients only - DO NOT USE!!! This is sort of mix of "append" and "insert": it puts commands in the list, with some half smarts about which commands go at the front or back. If you add multiple commands to the back in one call, they will get added sorted by comm...
"Here for compatibility with legacy clients only - DO NOT USE!!!\n This is sort of mix of \"append\" and \"insert\": it puts commands in the list,\n with some half smarts about which commands go at the front or back.\n If you add multiple commands to the back in one call, they will get added sorted...
78
false
adobe-apiplatform/umapi-client.py
do
14,446
LDU_FT/bretth/djset/remove
LDU_FT
[ "<BEGIN>\n## `get`", "Return a value from the environ or keyring\n<END>", "<BEGIN>\n## `set`", "Set the key value pair in a local or global namespace\n<END>", "<BEGIN>\n## `remove`", "Remove key value pair in a local or global namespace.\n<END>", "<BEGIN>\n## `get`", "Return the value for key from the...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove key value pair in a local or global namespace.
"Remove key value pair in a local or global namespace."
14
false
bretth/djset
remove
14,447
LDU_FT/pescadores/pescador/iterate
LDU_FT
[ "<BEGIN>\n## `setup_data`", "Load and shape data for training with Keras + Pescador.", " Returns\n -------\n input_shape : tuple, len=3\n Shape of each sample; adapts to channel configuration of Keras.", " X_train, y_train : np.ndarrays\n Images and labels for training.", " X_te...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iterate API. 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 iterate API. 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...
Note: A ZMQStreamer does not activate its stream, but allows the zmq_worker to do that. Yields ------ data : dict Data drawn from `streamer(max_iter)`.
"Note: A ZMQStreamer does not activate its stream,\n but allows the zmq_worker to do that.\n\n Yields\n ------\n data : dict\n Data drawn from `streamer(max_iter)`."
103
false
pescadores/pescador
iterate
14,448
LDU_FT/recurly/recurly-client-python/create_shipping_address
LDU_FT
[ "<BEGIN>\n## `error_class_for_http_status`", "Return the appropriate `ResponseError` subclass for the given\n HTTP status code.\n<END>", "<BEGIN>\n## `response_doc`", "The XML document received from the service.\n<END>", "<BEGIN>\n## `transaction_error_code`", "The machine-readable error code for a tra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_shipping_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_shipping_address API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Creates a shipping address on an existing account. If you are creating an account, you can embed the shipping addresses with the request
"Creates a shipping address on an existing account. If you are\n creating an account, you can embed the shipping addresses with the\n request"
103
false
recurly/recurly-client-python
create_shipping_address
14,449
LDU_FT/flaviogrossi/sockjs-cyclone/send_message
LDU_FT
[ "<BEGIN>\n## `enable_cache`", "Enable client-side caching for the current request\n<END>", "<BEGIN>\n## `flush`", "Add accumulator to the moving average queue and reset it. For\n example, called by the StatsCollector once per second to calculate\n per-second average.\n<END>", "<BEGIN>\n## `cre...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_message API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Send or queue outgoing message @param msg: Message to send @param stats: If set to True, will update statistics after operation completes
"Send or queue outgoing message\n\n @param msg: Message to send\n\n @param stats: If set to True, will update statistics after operation\n completes"
56
false
flaviogrossi/sockjs-cyclone
send_message
14,450
LDU_FT/elastic/apm-agent-python/_get_stack_info_for_trace
LDU_FT
[ "<BEGIN>\n## `extract_signature`", "Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>", "<BEGIN>\n## `_timed_queue_join`", "implementation of Queue.join which takes a 'timeout' argument", " returns True on s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_stack_info_for_trace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_stack_info_for_trace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
If the stacktrace originates within the elasticapm module, it will skip frames until some other module comes up.
"If the stacktrace originates within the elasticapm module, it will skip\n frames until some other module comes up."
163
false
elastic/apm-agent-python
_get_stack_info_for_trace
14,451
LDU_FT/twisted/twistedchecker/_outputMessages
LDU_FT
[ "<BEGIN>\n## `_isInner`", "Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.", " @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}", " @return: a boolean indicating if the given node is defined as an inner\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _outputMessages API. 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 _outputMessages API. 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...
Map pycodestyle results to messages in pylint, then output them. @param warnings: it should be a list of tuple including line number and message id
"Map pycodestyle results to messages in pylint, then output them.\n\n @param warnings: it should be a list of tuple including\n line number and message id"
146
false
twisted/twistedchecker
_outputMessages
14,452
LDU_FT/totalgood/twip/cat_tweets
LDU_FT
[ "<BEGIN>\n## `lsi`", "Train an LSI model on a \"corpus\" of documnets, like tweets", " Arguments:\n tokenize (callable): Function that returns a sequence of tokens (str) when passed a document (str)\n ram (float): Portion of RAM to limit the document generator from consuming before StopIter...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cat_tweets API. 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 cat_tweets API. 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...
Find json files that were dumped by tweetget and combine them into a single CSV Normalize some (lat/lon)
"Find json files that were dumped by tweetget and combine them into a single CSV\n\n Normalize some (lat/lon)"
144
false
totalgood/twip
cat_tweets
14,453
LDU_FT/mdscruggs/ga/check_genes
LDU_FT
[ "<BEGIN>\n## `eval_fitness`", "Convert a 1-gene chromosome into an integer and calculate its fitness\n by checking it against each required factor.", " return: fitness value\n<END>", "<BEGIN>\n## `translate_chromosome`", "Translate all the genes in a chromosome.", " chromosome: a ``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_genes API. 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 check_genes API. 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...
Assert that every DNA choice is represented by exactly one gene.
"Assert that every DNA choice is represented by exactly one gene."
94
false
mdscruggs/ga
check_genes
14,454
LDU_FT/gbiggs/rtctree/get_terminal_size
LDU_FT
[ "<BEGIN>\n## `build_attr_string`", "Build a string that will turn any ANSI shell output the desired\r\n colour.\r", " attrs should be a list of keys into the term_attributes table.\n<END>", "<BEGIN>\n## `get_num_columns_and_rows`", "Given a list of string widths, a width of the minimum gap to place\r\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_terminal_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_terminal_size API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Finds the width of the terminal, or returns a suitable default value.
"Finds the width of the terminal, or returns a suitable default value."
285
false
gbiggs/rtctree
get_terminal_size
14,455
LDU_FT/odlgroup/odl/inner
LDU_FT
[ "<BEGIN>\n## `is_valid_input_array`", "Test if ``x`` is a correctly shaped point array in R^d.\n<END>", "<BEGIN>\n## `is_valid_input_meshgrid`", "Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>", "<BEGIN>\n## `out_shape_from_meshgrid`", "Get the broadcast output shape from a `meshgrid`.\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inner API. 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 inner API. 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...
Calculate the array-weighted inner product of two elements. Parameters ---------- x1, x2 : `ProductSpaceElement` Elements whose inner product is calculated. Returns ------- inner : float or complex The inner product of the two provided elements.
"Calculate the array-weighted inner product of two elements.\n\n Parameters\n ----------\n x1, x2 : `ProductSpaceElement`\n Elements whose inner product is calculated.\n\n Returns\n -------\n inner : float or complex\n The inner product of the two provided...
4,047
true
odlgroup/odl
inner
14,456
LDU_FT/gmr/tinman/insert_paths
LDU_FT
[ "<BEGIN>\n## `main`", "Invoked by the script installed by setuptools.\n<END>", "<BEGIN>\n## `enable_debug`", "If the cli arg for foreground is set, set the configuration option\n for debug.\n<END>", "<BEGIN>\n## `insert_paths`", "Inserts a base path into the sys.path list if one is specified in\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_paths API. 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 insert_paths API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Inserts a base path into the sys.path list if one is specified in the configuration.
"Inserts a base path into the sys.path list if one is specified in\n the configuration."
270
false
gmr/tinman
insert_paths
14,457
LDU_FT/dhondta/tinyscript/set_step_items
LDU_FT
[ "<BEGIN>\n## `_filtered_actions`", "Get actions filtered on a list of action types.", " :param a_type: argparse.Action instance name (e.g. count, append)\n<END>", "<BEGIN>\n## `_input_arg`", "Ask the user for input of a single argument.", " :param a: argparse.Action instance\n :return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_step_items API. 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 set_step_items API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
This function prepares the stepping items for inclusion in main script's global scope. :param glob: main script's global scope dictionary reference
"This function prepares the stepping items for inclusion in main script's\n global scope.\n \n :param glob: main script's global scope dictionary reference"
74
false
dhondta/tinyscript
set_step_items
14,458
LDU_FT/jgorset/django-respite/find_by_name
LDU_FT
[ "<BEGIN>\n## `parse_content_type`", "Return a tuple of content type and charset.", " :param content_type: A string describing a content type.\n<END>", "<BEGIN>\n## `parse_http_accept_header`", "Return a list of content types listed in the HTTP Accept header\n ordered by quality.", " :param header...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_by_name API. 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 find_by_name API. 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...
Find and return a format by name. :param name: A string describing the name of the format.
"Find and return a format by name.\n\n :param name: A string describing the name of the format."
73
false
jgorset/django-respite
find_by_name
14,459
LDU_FT/junzis/pyModeS/wrongstatus
LDU_FT
[ "<BEGIN>\n## `category`", "Aircraft category number", " Args:\n msg (string): 28 bytes hexadecimal message string", " Returns:\n int: category number\n<END>", "<BEGIN>\n## `callsign`", "Aircraft callsign", " Args:\n msg (string): 28 bytes hexadecimal message string", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrongstatus API. 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 wrongstatus API. 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...
Check if the status bit and field bits are consistency. This Function is used for checking BDS code versions.
"Check if the status bit and field bits are consistency. This Function\n is used for checking BDS code versions."
310
false
junzis/pyModeS
wrongstatus
14,460
LDU_FT/cloudtools/stacker/_build_new_template
LDU_FT
[ "<BEGIN>\n## `handle`", "Returns the value of a key for a given hook in hook_data.", " Format of value:", " <hook_name>::<key>\n<END>", "<BEGIN>\n## `resolve_variables`", "Given a list of variables, resolve all of them.", " Args:\n variables (list of :class:`stacker.variables...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_new_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_new_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Constructs the parameters & contents of a new stack and returns a list(str) representation to be output to the user
"Constructs the parameters & contents of a new stack and returns a\n list(str) representation to be output to the user"
733
false
cloudtools/stacker
_build_new_template
14,461
LDU_FT/falkr/stmpy/_parse_arg_list
LDU_FT
[ "<BEGIN>\n## `get_graphviz_dot`", "Return the graph of the state machine.", " The format is the dot format for Graphviz, and can be directly used as input\n to Graphviz.", " To learn more about Graphviz, visit https://graphviz.gitlab.io.", " **Display in Jupyter Notebook**\n Install Python su...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_arg_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_arg_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 e...
Parses a list of arguments. Arguments are expected to be split by a comma, surrounded by any amount of whitespace. Arguments are then run through Python's eval() method.
"Parses a list of arguments.\n\n Arguments are expected to be split by a comma, surrounded by any amount\n of whitespace. Arguments are then run through Python's eval() method."
47
false
falkr/stmpy
_parse_arg_list
14,462
LDU_FT/CognitionGuidedSurgery/pyclictk/from_xml_node
LDU_FT
[ "<BEGIN>\n## `build_argument_parser`", "creates an argument parser from the given `executable` model.", " An argument '__xml__' for \"--xml\" is added independently.", " :param executable: CLI Model\n :type executable: clictk.model.Executable\n :return:\n<END>", "<BEGIN>\n## `cmdline`", "Gener...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xml_node API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
constructs a CLI.Parameter from an xml node. :param xml_node: :type xml_node: xml.etree.ElementTree.Element :rtype: Executable.Parameter :return:
"constructs a CLI.Parameter from an xml node.\n :param xml_node:\n :type xml_node: xml.etree.ElementTree.Element\n :rtype: Executable.Parameter\n :return:"
14
false
CognitionGuidedSurgery/pyclictk
from_xml_node
14,463
LDU_FT/cloudera/impyla/markPartitionForEvent
LDU_FT
[ "<BEGIN>\n## `drop_database`", "Parameters:\n - name\n - deleteData\n - cascade\n<END>", "<BEGIN>\n## `get_fields`", "Parameters:\n - db_name\n - table_name\n<END>", "<BEGIN>\n## `get_fields_with_environment_context`", "Parameters:\n - db_name\n - table_name\n - environment...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the markPartitionForEvent 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 markPartitionForEvent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Parameters: - db_name - tbl_name - part_vals - eventType
"Parameters:\n - db_name\n - tbl_name\n - part_vals\n - eventType"
206
false
cloudera/impyla
markPartitionForEvent
14,464
LDU_FT/Ehco1996/lazySpider/update_by_id
LDU_FT
[ "<BEGIN>\n## `query`", "根据sql查询\n Args:\n sql: sql 语句 str\n return:\n 成功: 查询的结果\n 失败: -1 并打印返回报错信息\n<END>", "<BEGIN>\n## `save_one_data`", "将一条记录保存到数据库\n Args:\n table: 表名字 str\n data: 记录 dict\n return:\n 成功: 1\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_by_id API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
通过id更新记录 Args: table: 表名字 str data: 记录 dict id_value: id值 return: 成功: 1 失败: -1 并打印返回报错信息 每条记录都以一个字典的形式传进来
"通过id更新记录\n Args:\n table: 表名字 str\n data: 记录 dict\n id_value: id值\n return:\n 成功: 1\n 失败: -1 并打印返回报错信息\n 每条记录都以一个字典的形式传进来"
16
false
Ehco1996/lazySpider
update_by_id
14,465
LDU_FT/sixty-north/cosmic-ray/read_version
LDU_FT
[ "<BEGIN>\n## `handle_new_config`", "usage: cosmic-ray new-config <config-file>", " Create a new config file.\n<END>", "<BEGIN>\n## `handle_init`", "usage: cosmic-ray init <config-file> <session-file>", " Initialize a mutation testing session from a configuration. This\n primarily creates a sessio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_version API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Read the `(version-string, version-info)` from `version_file`.
"Read the `(version-string, version-info)` from `version_file`."
213
false
sixty-north/cosmic-ray
read_version
14,466
LDU_FT/liip/taxi/duration_to_text
LDU_FT
[ "<BEGIN>\n## `round_to_quarter`", "Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>", "<BEGIN>\n## `_timesheets_callback`", "Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duration_to_text API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the duration_to_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 ...
Return the textual representation of the given `duration`. The duration can either be a tuple of :class:`datetime.time` objects, or a simple number. The returned text will be either a hhmm-hhmm string (if the given `duration` is a tuple) or a number.
"Return the textual representation of the given `duration`. The duration can either be a tuple of\n :class:`datetime.time` objects, or a simple number. The returned text will be either a hhmm-hhmm string (if the\n given `duration` is a tuple) or a number."
131
false
liip/taxi
duration_to_text
14,467
LDU_FT/MisterY/gnucash-portfolio/get_income_total
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_income_total API. 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_income_total API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sum of all income = sum of balances of all income accounts.
"Sum of all income = sum of balances of all income accounts."
157
false
MisterY/gnucash-portfolio
get_income_total
14,468
LDU_FT/theislab/scanpy/rank_genes_groups_heatmap
LDU_FT
[ "<BEGIN>\n## `filter_cells`", "Filter cell outliers based on counts and numbers of genes expressed.", " For instance, only keep cells with at least `min_counts` counts or\n `min_genes` genes expressed. This is to filter measurement outliers,\n i.e. “unreliable” observations.", " Only provide one o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_genes_groups_heatmap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rank_genes_groups_heatmap API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
\ Plot ranking of genes using heatmap plot (see `scanpy.api.pl.heatmap`) Parameters ---------- adata : :class:`~anndata.AnnData` Annotated data matrix. groups : `str` or `list` of `str` The groups for which to show the gene ranking. n_genes : `int`, optional (default: 10) ...
"\\\n Plot ranking of genes using heatmap plot (see `scanpy.api.pl.heatmap`)\n\n Parameters\n ----------\n adata : :class:`~anndata.AnnData`\n Annotated data matrix.\n groups : `str` or `list` of `str`\n The groups for which to show the gene ranking.\n n_genes : `int`, optional (default:...
1,142
true
theislab/scanpy
rank_genes_groups_heatmap
14,469
LDU_FT/luismasuelli/python-cantrips/insert
LDU_FT
[ "<BEGIN>\n## `can_take`", "Decorator to make a class allow their instances to generate\n snapshot of themselves.", " Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Inserts an already-created identified object of the expected class.
"Inserts an already-created identified object of the expected class."
51
false
luismasuelli/python-cantrips
insert
14,470
LDU_FT/vsoch/pokemon/scale_image
LDU_FT
[ "<BEGIN>\n## `get_ascii`", "get_ascii will return ascii art for a pokemon based on a name or pid.\n :param pid: the pokemon ID to return\n :param name: the pokemon name to return\n :param return_pokemons: return catches (default False)\n :param message: add a message to the ascii\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scale_image API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Resizes an image preserving the aspect ratio.
"Resizes an image preserving the aspect ratio."
17
false
vsoch/pokemon
scale_image
14,471
LDU_FT/singularitti/scientific-string/match_one_string
LDU_FT
[ "<BEGIN>\n## `strings_to_`", "Convert a list of strings to a list of certain form, specified by *f*.", " :param strings: a list of string\n :param f: a function that converts your string\n :return: type undefined, but specified by `to_type`", " .. doctest::", " >>> strings_to_(['0.333', '...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_one_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_one_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Make sure you know only none or one string will be matched! If you are not sure, use `match_one_pattern` instead. :param pattern: :param s: :param args: :return: .. doctest:: >>> p = "\d+" >>> s = "abc 123 def" >>> match_one_string(p, s, int) 123 >>> print(...
"Make sure you know only none or one string will be matched! If you are not sure, use `match_one_pattern` instead.\n\n :param pattern:\n :param s:\n :param args:\n :return:\n\n .. doctest::\n\n >>> p = \"\\d+\"\n >>> s = \"abc 123 def\"\n >>> match_one_string(p, s, int)\n 123\...
35
false
singularitti/scientific-string
match_one_string
14,472