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/learningequality/iceqube/update_job_progress
LDU_FT
[ "<BEGIN>\n## `wait_for_job_update`", "Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.", " :param job_id: the job's job_id to monitor for changes.\n :pa...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_job_progress 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 update_job_progress 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...
Update the job given by job_id's progress info. :type total_progress: int :type progress: int :type job_id: str :param job_id: The id of the job to update :param progress: The current progress achieved by the job :param total_progress: The total progress achievable by the...
"Update the job given by job_id's progress info.\n :type total_progress: int\n :type progress: int\n :type job_id: str\n :param job_id: The id of the job to update\n :param progress: The current progress achieved by the job\n :param total_progress: The total progress achievable...
93
false
learningequality/iceqube
update_job_progress
31,373
LDU_FT/MolSSI-BSE/basis_set_exchange/prune_shell
LDU_FT
[ "<BEGIN>\n## `read_gbasis`", "Reads gbasis-formatted file data and converts it to a dictionary with the\n usual BSE fields", " Note that the gbasis format does not store all the fields we\n have, so some fields are left blank\n<END>", "<BEGIN>\n## `read_molcas`", "Reads molcas-formatted fi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune_shell API. 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 prune_shell API. 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...
Removes exact duplicates of primitives, and condenses duplicate exponents into general contractions Also removes primitives if all coefficients are zero
"Removes exact duplicates of primitives, and condenses duplicate exponents\n into general contractions\n\n Also removes primitives if all coefficients are zero"
408
false
MolSSI-BSE/basis_set_exchange
prune_shell
31,374
LDU_FT/google/importlab/resolve_all
LDU_FT
[ "<BEGIN>\n## `convert_to_path`", "Converts \".module\" to \"./module\", \"..module\" to \"../module\", etc.\n<END>", "<BEGIN>\n## `infer_module_name`", "Convert a python filename to a module relative to pythonpath.\n<END>", "<BEGIN>\n## `get_absolute_name`", "Joins a package name and a relative name.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_all API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Resolves a list of imports. Yields filenames.
"Resolves a list of imports.\n\n Yields filenames."
65
false
google/importlab
resolve_all
31,375
LDU_FT/KyleJamesWalker/yamlsettings/rebase
LDU_FT
[ "<BEGIN>\n## `conform_query`", "Converts the query string from a target uri, uses\n cls.default_query to populate default arguments.", " :param query: Unparsed query string\n :type query: urllib.parse.unsplit(uri).query\n :returns: Dictionary of parsed values, everything in cls.defau...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebase API. 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 rebase API. 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 ...
Use yaml_dict as self's new base and update with existing reverse of update.
"Use yaml_dict as self's new base and update with existing\n reverse of update."
46
false
KyleJamesWalker/yamlsettings
rebase
31,376
LDU_FT/Aula13/poloniex/moveOrder
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 moveOrder API. 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 moveOrder API. 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...
Cancels an order and places a new one of the same type in a single atomic transaction, meaning either both operations will succeed or both will fail. Required POST parameters are "orderNumber" and "rate"; you may optionally specify "amount" if you wish to change the amount of the new ...
"Cancels an order and places a new one of the same type in a single\n atomic transaction, meaning either both operations will succeed or both\n will fail. Required POST parameters are \"orderNumber\" and \"rate\"; you\n may optionally specify \"amount\" if you wish to change the amount of\n ...
37
false
Aula13/poloniex
moveOrder
31,377
LDU_FT/viveksck/changepoint/estimate_cp
LDU_FT
[ "<BEGIN>\n## `estimate_cp`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `estimate_cp_pval`", "Estimate changepoints in a time series by using R.\n<END>", "<BEGIN>\n## `get_ts_stats_significance`", "Returns the statistics, pvalues and the actual number of bootstrap\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the estimate_cp API. 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 estimate_cp API. 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...
Estimate changepoints in a time series by using R.
"Estimate changepoints in a time series by using R."
28
false
viveksck/changepoint
estimate_cp
31,378
LDU_FT/pulumi/pulumi/deserialize_property
LDU_FT
[ "<BEGIN>\n## `do_rpc`", "Wraps a given RPC function by producing an awaitable function suitable to be run in the asyncio\n event loop. The wrapped function catches all unhandled exceptions and reports them to the exception\n future, which consumers can await upon to listen for unhandled exceptions."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Deserializes a single protobuf value (either `Struct` or `ListValue`) into idiomatic Python values.
"Deserializes a single protobuf value (either `Struct` or `ListValue`) into idiomatic\n Python values."
98
false
pulumi/pulumi
deserialize_property
31,379
LDU_FT/The-Politico/politico-civic-election-night/get_serializer_context
LDU_FT
[ "<BEGIN>\n## `get_images`", "Object of images serialized by tag name.\n<END>", "<BEGIN>\n## `get_override_votes`", "Votes entered into backend.\n Only used if ``override_ap_votes = True``.\n<END>", "<BEGIN>\n## `get_queryset`", "Returns a queryset of all executive offices holding an election on\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_serializer_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Adds ``election_day`` to serializer context.
"Adds ``election_day`` to serializer context."
62
false
The-Politico/politico-civic-election-night
get_serializer_context
31,380
LDU_FT/awslabs/sockeye/call_moses_tokenizer
LDU_FT
[ "<BEGIN>\n## `check_arg_compatibility`", "Check if some arguments are incompatible with each other.", " :param args: Arguments as returned by argparse.\n<END>", "<BEGIN>\n## `check_resume`", "Check if we should resume a broken training run.", " :param args: Arguments as returned by argparse.\n :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_moses_tokenizer 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 call_moses_tokenizer API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Call Moses tokenizer. :param workspace_dir: Workspace third-party directory where Moses tokenizer is checked out. :param input_fname: Path of raw input file, plain text or gzipped. :param output_fname: Path of tokenized output file, gzipped. :param lang_code: Language code f...
"Call Moses tokenizer.\n\n :param workspace_dir: Workspace third-party directory where Moses\n tokenizer is checked out.\n :param input_fname: Path of raw input file, plain text or gzipped.\n :param output_fname: Path of tokenized output file, gzipped.\n :param lang_code: Language...
1,056
true
awslabs/sockeye
call_moses_tokenizer
31,381
LDU_FT/tmbo/questionary/checkbox
LDU_FT
[ "<BEGIN>\n## `default_values_of`", "Return the defaults of the function `func`.\n<END>", "<BEGIN>\n## `required_arguments`", "Return all arguments of a function that do not have a default value.\n<END>", "<BEGIN>\n## `text`", "Prompt the user to enter a free text message.", " This question type ca...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the checkbox API. 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 checkbox API. 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...
Ask the user to select from a list of items. This is a multiselect, the user can choose one, none or many of the items. Args: message: Question text choices: Items shown in the selection, this can contain `Choice` or or `Separator` objects or simple items as strings. Pass...
"Ask the user to select from a list of items.\n\n This is a multiselect, the user can choose one, none or many of the\n items.\n\n Args:\n message: Question text\n\n choices: Items shown in the selection, this can contain `Choice` or\n or `Separator` objects or simple items as str...
84
false
tmbo/questionary
checkbox
31,382
LDU_FT/CityOfZion/neo-python/mute_stdio
LDU_FT
[ "<BEGIN>\n## `Clone`", "Clone self.", " Returns:\n AccountState:\n<END>", "<BEGIN>\n## `FromReplica`", "Get AccountState object from a replica.\n Args:\n replica (obj): must have ScriptHash, IsFrozen, Votes and Balances members.", " Returns:\n AccountS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mute_stdio API. 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 mute_stdio API. 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...
Intended to temporarily mute messages by applying a `BlockAll` filter. Use in combination with `unmute_stdio()`
"Intended to temporarily mute messages by applying a `BlockAll` filter.\n Use in combination with `unmute_stdio()`"
962
false
CityOfZion/neo-python
mute_stdio
31,383
LDU_FT/The-Politico/politico-civic-ap-loader/get_race
LDU_FT
[ "<BEGIN>\n## `process_result`", "Processes top-level (state) results for candidate races, loads data\n into the database and sends alerts for winning results.\n<END>", "<BEGIN>\n## `get_division`", "Gets the Division object for the given row of election results.\n<END>", "<BEGIN>\n## `get_office`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_race API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_race API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Gets the Race object for the given row of election results. In order to get the race, we must know the office. This function will get the office as well. The only way to know if a Race is a special is based on the string of the `racetype` field from the AP data.
"Gets the Race object for the given row of election results.\n\n In order to get the race, we must know the office. This function\n will get the office as well.\n\n The only way to know if a Race is a special is based on the string\n of the `racetype` field from the AP data."
36
false
The-Politico/politico-civic-ap-loader
get_race
31,384
LDU_FT/polysquare/polysquare-generic-file-linter/_line_suppresses_error_code
LDU_FT
[ "<BEGIN>\n## `create`", "Create a Dictionary at spellchecker_cache_path with technical words.\n<END>", "<BEGIN>\n## `_comment_type_from_line`", "Return the \"comment header\" (' * ', '# ', 'rem ', '// ', '/* ').", " This header goes before the content of a start of the\n line in a replacement.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _line_suppresses_error_code 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 _line_suppresses_error_code API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Check if line contains necessary content to suppress code. A line suppresses code if it is in the format suppress(code1,code2) etc.
"Check if line contains necessary content to suppress code.\n\n A line suppresses code if it is in the format suppress(code1,code2) etc."
143
false
polysquare/polysquare-generic-file-linter
_line_suppresses_error_code
31,385
LDU_FT/oemof/oemof.db/get_weather
LDU_FT
[ "<BEGIN>\n## `get_polygon_from_nuts`", "r\"\"\"A one-line summary that does not use variable names or the\n function name.", " Several sentences providing an extended description. Refer to\n variables using back-ticks, e.g. `var`.", " Parameters\n ----------\n var1 : array_like\n Arra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_weather API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_weather API. 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...
r""" Get the weather data for the given geometry and create an oemof weather object.
"r\"\"\"\n Get the weather data for the given geometry and create an oemof\n weather object."
82
false
oemof/oemof.db
get_weather
31,386
LDU_FT/pasztorpisti/json-cfg/load_utf_text_file
LDU_FT
[ "<BEGIN>\n## `default_number_converter`", "Converts the string representation of a json number into its python object equivalent, an\n int, long, float or whatever type suits.\n<END>", "<BEGIN>\n## `load_utf_text_file`", "Loads the specified text file and tries to decode it using one of the UTF encodings.\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_utf_text_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 load_utf_text_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...
Loads the specified text file and tries to decode it using one of the UTF encodings. :param file_: The path to the loadable text file or a file-like object with a read() method. :param default_encoding: The encoding to be used if the file doesn't have a BOM prefix. :param use_utf8_strings: Ignored in case o...
"Loads the specified text file and tries to decode it using one of the UTF encodings.\n :param file_: The path to the loadable text file or a file-like object with a read() method.\n :param default_encoding: The encoding to be used if the file doesn't have a BOM prefix.\n :param use_utf8_strings: Ignored in ca...
39
false
pasztorpisti/json-cfg
load_utf_text_file
31,387
LDU_FT/willhardy/django-seo/_monkey_inline
LDU_FT
[ "<BEGIN>\n## `_populate`", "Populate this list by calling populate(), but only once.\n<END>", "<BEGIN>\n## `_register_admin`", "Register model in the admin, ignoring any previously registered models.\n Alternatively it could be used in the future to replace a previously \n registered model.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _monkey_inline API. 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 _monkey_inline API. 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...
Monkey patch the inline onto the given admin_class instance.
"Monkey patch the inline onto the given admin_class instance."
36
false
willhardy/django-seo
_monkey_inline
31,388
LDU_FT/macbre/elasticsearch-query/get_aggregations
LDU_FT
[ "<BEGIN>\n## `format_index`", ":type prefix str\n :type timestamp int\n :type sep str\n :rtype: str\n<END>", "<BEGIN>\n## `format_timestamp`", "Format the UTC timestamp for Elasticsearch\n eg. 2014-07-09T08:37:18.000Z", " @see https://docs.python.org/2/library/time.html#ti...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aggregations API. 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_aggregations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns aggregations (rows count + percentile stats) for a given query This is basically the same as the following pseudo-SQL query: SELECT PERCENTILE(stats_field, 75) FROM query GROUP BY group_by LIMIT size https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-aggregations-bucket...
"Returns aggregations (rows count + percentile stats) for a given query\n\n This is basically the same as the following pseudo-SQL query:\n SELECT PERCENTILE(stats_field, 75) FROM query GROUP BY group_by LIMIT size\n\n https://www.elastic.co/guide/en/elasticsearch/reference/5.5/search-aggregations-...
30
false
macbre/elasticsearch-query
get_aggregations
31,389
LDU_FT/ansible/ansible-runner/open_fifo_write
LDU_FT
[ "<BEGIN>\n## `get_contents`", "Loads the contents of the file specified by path", " Args:\n path (string): The relative or absolute path to the file to\n be loaded. If the path is relative, then it is combined\n with the base_path to generate a full path string",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_fifo_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open_fifo_write API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
open_fifo_write opens the fifo named pipe in a new thread. This blocks the thread until an external process (such as ssh-agent) reads data from the pipe.
"open_fifo_write opens the fifo named pipe in a new thread.\n This blocks the thread until an external process (such as ssh-agent)\n reads data from the pipe."
83
false
ansible/ansible-runner
open_fifo_write
31,390
LDU_FT/shmir/PyIxExplorer/start_capture
LDU_FT
[ "<BEGIN>\n## `read_stats`", "Read port statistics from chassis.", " :param stats: list of requested statistics to read, if empty - read all statistics.\n<END>", "<BEGIN>\n## `read_stats`", "Read stream statistics from chassis.", " :param stats: list of requested statistics to read, if empty ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_capture API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_capture API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Start capture on ports. :param ports: list of ports to start capture on, if empty start on all ports.
"Start capture on ports.\n\n :param ports: list of ports to start capture on, if empty start on all ports."
91
false
shmir/PyIxExplorer
start_capture
31,391
LDU_FT/adfinis-sygroup/freeze/recursive_sort
LDU_FT
[ "<BEGIN>\n## `freeze`", "Freeze tries to convert any data-structure in a hierarchy of tuples.\n Tuples are comparable/sortable/hashable, you can use this with\n with recursive_sort(). freeze has no recursion detection.", " :param data_structure: The structure to convert.", " >>> recursive_sort(f...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recursive_sort API. 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 recursive_sort API. 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...
Sort a recursive data_structure. :param data_structure: The structure to convert. data_structure must be already sortable or you must use freeze() or dump(). The function will work with many kinds of input. Dictionaries will be converted to lists of tuples. >>> _py2_to_py3(vformat(recursive_sor...
"Sort a recursive data_structure.\n\n :param data_structure: The structure to convert.\n\n data_structure must be already sortable or you must use freeze() or dump().\n The function will work with many kinds of input. Dictionaries will be\n converted to lists of tuples.\n\n >>> _py2_to_py3(vformat(recu...
53
false
adfinis-sygroup/freeze
recursive_sort
31,392
LDU_FT/eddiejessup/agaro/get_average_measure
LDU_FT
[ "<BEGIN>\n## `get_average_measure`", "Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.", " Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_average_measure API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_average_measure 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...
Calculate a measure of a model in an output directory, averaged over all times when the model is at steady-state. Parameters ---------- dirname: str Output directory measure_func: function Function which takes a :class:`Model` instance as a single argument, and returns the m...
"Calculate a measure of a model in an output directory, averaged over\n all times when the model is at steady-state.\n\n Parameters\n ----------\n dirname: str\n Output directory\n measure_func: function\n Function which takes a :class:`Model` instance as a single argument,\n and ret...
62
false
eddiejessup/agaro
get_average_measure
31,393
LDU_FT/dfm/george/computed
LDU_FT
[ "<BEGIN>\n## `computed`", "Has the processes been computed since the last update of the kernel?\n<END>", "<BEGIN>\n## `parse_samples`", "Parse a list of samples to make sure that it has the correct\n dimensions.", " :param t: ``(nsamples,)`` or ``(nsamples, ndim)``\n The list of sam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the computed API. 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 computed API. 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...
Has the processes been computed since the last update of the kernel?
"Has the processes been computed since the last update of the kernel?"
111
false
dfm/george
computed
31,394
LDU_FT/portfoliome/foil/inject_nulls
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inject_nulls API. 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 inject_nulls API. 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...
Insert None as value for missing fields.
"Insert None as value for missing fields."
89
false
portfoliome/foil
inject_nulls
31,395
LDU_FT/joeyespo/grip/patch
LDU_FT
[ "<BEGIN>\n## `_get_style_urls`", "Gets the specified resource and parses all style URLs and their\n assets in the form of the specified patterns.\n<END>", "<BEGIN>\n## `_cache_contents`", "Fetches the given URLs and caches their contents\n and their assets in the given directory.\n<END>", "<BE...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API. 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 patch API. 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...
Processes the HTML rendered by the GitHub API, patching any inconsistencies from the main site.
"Processes the HTML rendered by the GitHub API, patching\n any inconsistencies from the main site."
77
false
joeyespo/grip
patch
31,396
LDU_FT/hannes-brt/hebel/cublasSgemm
LDU_FT
[ "<BEGIN>\n## `parameters`", "A property that returns all of the model's parameters.\n<END>", "<BEGIN>\n## `parameters`", "Used to set all of the model's parameters to new values.", " **Parameters:**", " value : array_like\n New values for the model parameters. Must be of length\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cublasSgemm API. 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 cublasSgemm API. 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...
Matrix-matrix product for real general matrix.
"Matrix-matrix product for real general matrix."
372
false
hannes-brt/hebel
cublasSgemm
31,397
LDU_FT/Fuyukai/ConfigMaster/load_from_dict
LDU_FT
[ "<BEGIN>\n## `initial_populate`", "Populate a newly created config object with data.", " If it was populated, this returns True. If it wasn't, this returns False.", " It is recommended to run a .dump() and .reload() after running this.\n<END>", "<BEGIN>\n## `apply_defaults`", "Applies defaul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_from_dict API. 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 load_from_dict API. 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...
Loads key/values from dicts or list into the ConfigKey. :param data: The data object to load. This can be a dict, or a list of key/value tuples. :param overwrite: Should the ConfigKey overwrite data already in it?
"Loads key/values from dicts or list into the ConfigKey.\n :param data: The data object to load.\n This can be a dict, or a list of key/value tuples.\n :param overwrite: Should the ConfigKey overwrite data already in it?"
32
false
Fuyukai/ConfigMaster
load_from_dict
31,398
LDU_FT/DerMitch/fritzbox-smarthome/get_switch_actors
LDU_FT
[ "<BEGIN>\n## `login`", "Try to login and set the internal session id.", " Please note:\n - Any failed login resets all existing session ids, even of\n other users.\n - SIDs expire after some time\n<END>", "<BEGIN>\n## `calculate_response`", "Calculate response for the challenge...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_switch_actors API. 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_switch_actors API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Get information about all actors This needs 1+(5n) requests where n = number of actors registered Deprecated, use get_actors instead. Returns a dict: [ain] = { 'name': Name of actor, 'state': Powerstate (boolean) 'present': Connected to server? (boo...
"Get information about all actors\n\n This needs 1+(5n) requests where n = number of actors registered\n\n Deprecated, use get_actors instead.\n\n Returns a dict:\n [ain] = {\n 'name': Name of actor,\n 'state': Powerstate (boolean)\n 'present': Connected to s...
35
false
DerMitch/fritzbox-smarthome
get_switch_actors
31,399
LDU_FT/serhatbolsu/robotframework-appiumlibrary/wait_until_page_contains
LDU_FT
[ "<BEGIN>\n## `zoom`", "Zooms in on an element a certain amount.\n<END>", "<BEGIN>\n## `swipe`", "Swipe from one point to another point, for an optional duration.\r", " Args:\r\n - start_x - x-coordinate at which to start\r\n - start_y - y-coordinate at which to start\r\n - off...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait_until_page_contains 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 wait_until_page_contains API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Waits until `text` appears on current page. Fails if `timeout` expires before the text appears. See `introduction` for more information about `timeout` and its default value. `error` can be used to override the default error message. See also `Wait Until Page Does Not Contain`...
"Waits until `text` appears on current page.\n\n Fails if `timeout` expires before the text appears. See\n `introduction` for more information about `timeout` and its\n default value.\n\n `error` can be used to override the default error message.\n\n See also `Wait Until Page Does Not...
217
false
serhatbolsu/robotframework-appiumlibrary
wait_until_page_contains
31,400
LDU_FT/QunarOPS/qg.core/_sanitize_mod_params
LDU_FT
[ "<BEGIN>\n## `import_class`", "Returns a class from a string including module and class.\n<END>", "<BEGIN>\n## `import_object_ns`", "Tries to import object from default namespace.", " Imports a class and return an instance of it, first by trying\n to find the class in a default namespace, then failing...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sanitize_mod_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 _sanitize_mod_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. ...
Sanitize the object being modded with this Message. - Add support for modding 'None' so translation supports it - Trim the modded object, which can be a large dictionary, to only those keys that would actually be used in a translation - Snapshot the object being modded, in case the mess...
"Sanitize the object being modded with this Message.\n\n - Add support for modding 'None' so translation supports it\n - Trim the modded object, which can be a large dictionary, to only\n those keys that would actually be used in a translation\n - Snapshot the object being modded, in case th...
74
false
QunarOPS/qg.core
_sanitize_mod_params
31,401
LDU_FT/20c/xbahn/connect
LDU_FT
[ "<BEGIN>\n## `disconnect`", "Close all connections that are set on this wire\n<END>", "<BEGIN>\n## `send_and_wait`", "Send a message and block until a response is received. Return response message\n<END>", "<BEGIN>\n## `wire`", "Wires the link to a connection. Can be called multiple\n times to set ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
connect and return a connection instance from url arguments: - url (str): xbahn connection url
"connect and return a connection instance from url\n\n arguments:\n - url (str): xbahn connection url"
119
false
20c/xbahn
connect
31,402
LDU_FT/orb-framework/orb/lower
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 lower API. 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 lower API. 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...
Returns a new query for this instance with Query.Function.Lower as a function option. :return <Query>
"Returns a new query for this instance with Query.Function.Lower as\n a function option.\n \n :return <Query>"
608
false
orb-framework/orb
lower
31,403
LDU_FT/dcos/shakedown/run_dcos_command
LDU_FT
[ "<BEGIN>\n## `get_tasks`", "Get a list of tasks, optionally filtered by task id.\n The task_id can be the abbrevated. Example: If a task named 'sleep' is\n scaled to 3 in marathon, there will be be 3 tasks starting with 'sleep.'", " :param task_id: task ID\n :type task_id: str\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_dcos_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_dcos_command API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Run `dcos {command}` via DC/OS CLI :param command: the command to execute :type command: str :param raise_on_error: whether to raise a DCOSException if the return code is nonzero :type raise_on_error: bool :param print_output: whether to print the resulting stdout/stderr from ru...
"Run `dcos {command}` via DC/OS CLI\n\n :param command: the command to execute\n :type command: str\n :param raise_on_error: whether to raise a DCOSException if the return code is nonzero\n :type raise_on_error: bool\n :param print_output: whether to print the resulting stdout/stderr ...
288
false
dcos/shakedown
run_dcos_command
31,404
LDU_FT/asottile/git-code-debt/insert_metric_changes
LDU_FT
[ "<BEGIN>\n## `insert_metric_changes`", "Insert into the metric_changes tables.", " :param metrics: `list` of `Metric` objects\n :param dict metric_mapping: Maps metric names to ids\n :param Commit commit:\n<END>", "<BEGIN>\n## `get_commits`", "Returns a list of Commit objects.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_metric_changes 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 insert_metric_changes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Insert into the metric_changes tables. :param metrics: `list` of `Metric` objects :param dict metric_mapping: Maps metric names to ids :param Commit commit:
"Insert into the metric_changes tables.\n\n :param metrics: `list` of `Metric` objects\n :param dict metric_mapping: Maps metric names to ids\n :param Commit commit:"
21
false
asottile/git-code-debt
insert_metric_changes
31,405
LDU_FT/portfoliome/foil/create_quantiles
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_quantiles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_quantiles API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create quantile start and end boundaries.
"Create quantile start and end boundaries."
89
false
portfoliome/foil
create_quantiles
31,406
LDU_FT/hhromic/python-oslom-runner/run_in_memory
LDU_FT
[ "<BEGIN>\n## `run_in_memory`", "Run OSLOM with an in-memory list of edges, return in-memory results.\n<END>", "<BEGIN>\n## `main`", "Main interface function for the command line.\n<END>", "<BEGIN>\n## `get_int_id`", "Get a unique 32 bits signed integer for the given string Id.\n<END>", "<BEGIN>\n## `sto...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_in_memory API. 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_in_memory API. 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...
Run OSLOM with an in-memory list of edges, return in-memory results.
"Run OSLOM with an in-memory list of edges, return in-memory results."
16
false
hhromic/python-oslom-runner
run_in_memory
31,407
LDU_FT/portfoliome/foil/get_file_listing_sha
LDU_FT
[ "<BEGIN>\n## `_`", "ISO 8601 format. Interprets naive datetime as UTC with zulu suffix.\n<END>", "<BEGIN>\n## `create_key_filter`", "Generate combinations of key, value pairs for each key in properties.", " Examples\n --------\n properties = {'ent': ['geo_rev', 'supply_chain'], 'own', 'fi'}\n >>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_listing_sha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file_listing_sha API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return sha256 string for group of FTP listings.
"Return sha256 string for group of FTP listings."
89
false
portfoliome/foil
get_file_listing_sha
31,408
LDU_FT/rdo-management/python-rdomanager-oscplugin/set_nodes_state
LDU_FT
[ "<BEGIN>\n## `_csv_to_nodes_dict`", "Convert CSV to a list of dicts formatted for os_cloud_config", " Given a CSV file in the format below, convert it into the\n structure expected by os_could_config JSON files.", " pm_type, pm_addr, pm_user, pm_password, mac\n<END>", "<BEGIN>\n## `build_option_par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_nodes_state API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_nodes_state API. 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...
Make all nodes available in the baremetal service for a deployment For each node, make it available unless it is already available or active. Available nodes can be used for a deployment and an active node is already in use. :param baremetal_client: Instance of Ironic client :type baremetal_clien...
"Make all nodes available in the baremetal service for a deployment\n\n For each node, make it available unless it is already available or active.\n Available nodes can be used for a deployment and an active node is already\n in use.\n\n :param baremetal_client: Instance of Ironic client\n :type baremet...
85
false
rdo-management/python-rdomanager-oscplugin
set_nodes_state
31,409
LDU_FT/VisualOps/cli/pull
LDU_FT
[ "<BEGIN>\n## `create_app`", "insert app record when stack run as a app\n<END>", "<BEGIN>\n## `create_container`", "insert container record when create container\n<END>", "<BEGIN>\n## `get_app_data`", "get app data ( include name and app_data )\n<END>", "<BEGIN>\n## `_get_config`", "Get user docker con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API. 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 pull API. 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...
Pulls an repo from any registry. See above documentation for how to configure authenticated access. :type repo: string :param repo: The repository to pull. \ [registryurl://]REPOSITORY_NAME eg:: index.docker.io:MyRepo superaddress.cdn:MyRepo MyRepo ...
"Pulls an repo from any registry. See above documentation for\n how to configure authenticated access.\n\n :type repo: string\n :param repo: The repository to pull. \\\n [registryurl://]REPOSITORY_NAME\n eg::\n\n index.docker.io:MyRepo\n superaddress.cdn:MyRepo\n ...
90
false
VisualOps/cli
pull
31,410
LDU_FT/TkTech/Jawa/get_attribute_classes
LDU_FT
[ "<BEGIN>\n## `_walk`", "A modified os.walk with support for maximum traversal depth.\n<END>", "<BEGIN>\n## `update`", "Add one or more ClassFile sources to the class loader.", " If a given source is a directory path, it is traversed up to the\n maximum set depth and all files under it are adde...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_attribute_classes API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Lookup all builtin Attribute subclasses, load them, and return a dict
"Lookup all builtin Attribute subclasses, load them, and return a dict"
226
false
TkTech/Jawa
get_attribute_classes
31,411
LDU_FT/amoffat/sh/no_interrupt
LDU_FT
[ "<BEGIN>\n## `encode_to_py3bytes_or_py2str`", "takes anything and attempts to return a py2 string or py3 bytes. this\n is typically used when creating command + arguments to be executed via\n os.exec*\n<END>", "<BEGIN>\n## `get_exc_from_name`", "takes an exception name, like:", " ErrorReturnCo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the no_interrupt API. 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 no_interrupt API. 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...
a helper for making system calls immune to EINTR
"a helper for making system calls immune to EINTR"
83
false
amoffat/sh
no_interrupt
31,412
LDU_FT/cytomine/Cytomine-python-client/_add_cytomine_cli_args
LDU_FT
[ "<BEGIN>\n## `download`", "Download the original image.", " Parameters\n ----------\n dest_pattern : str, optional\n Destination path for the downloaded image. \"{X}\" patterns are replaced by the value of X attribute\n if it exists.\n override : bool, optional\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_cytomine_cli_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_cytomine_cli_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Add cytomine CLI args to the ArgumentParser object: cytomine_host, cytomine_public_key, cytomine_private_key and cytomine_verbose. Parameters ---------- argparse: ArgumentParser The argument parser Return ------ argparse: ArgumentParser T...
"Add cytomine CLI args to the ArgumentParser object: cytomine_host, cytomine_public_key, cytomine_private_key and\n cytomine_verbose.\n\n Parameters\n ----------\n argparse: ArgumentParser\n The argument parser\n\n Return\n ------\n argparse: ArgumentParser\n ...
59
false
cytomine/Cytomine-python-client
_add_cytomine_cli_args
31,413
LDU_FT/richardliaw/track/invocation
LDU_FT
[ "<BEGIN>\n## `dfl_local_dir`", "Infers a default local directory, which is DFL_DIR_PARENT/<project name>,\n where the project name is guessed according to the following rules.", " If we detect we're in a repository, the project name is the repository name\n (git only for now).", " If we're not in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the invocation API. 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 invocation API. 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...
reconstructs the invocation for this python program
"reconstructs the invocation for this python program"
32
false
richardliaw/track
invocation
31,414
LDU_FT/PixelwarStudio/PyTree/get_nodes
LDU_FT
[ "<BEGIN>\n## `generate_branches`", "Generates branches with alternative system.", " Args:\n scales (tuple/array): Indicating how the branch/es length/es develop/s from age to age.\n angles (tuple/array): Holding the branch and shift angle in radians.\n shift_angle (float): Holding the ro...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nodes API. 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_nodes API. 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...
Get the tree nodes as list. Returns: list: A 2d-list holding the grown nodes coordinates as tupel for every age. Example: [ [(10, 40)], [(20, 80), (100, 30)], [(100, 90), (120, 40), ...], ... ...
"Get the tree nodes as list.\n\n Returns:\n list: A 2d-list holding the grown nodes coordinates as tupel for every age.\n Example:\n [\n [(10, 40)],\n [(20, 80), (100, 30)],\n [(100, 90), (120, 40), ...],\n ...\n...
63
false
PixelwarStudio/PyTree
get_nodes
31,415
LDU_FT/pyviz/param/_output_from_file
LDU_FT
[ "<BEGIN>\n## `get_setup_version`", "Helper for use in setup.py to get the current version from either\n git describe or the .version file (if available).", " Set pkgname to the package name if it is different from the\n repository name.", " To ensure git information is included in a git archive, a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _output_from_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _output_from_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...
Read the version from a .version file that may exist alongside __init__.py. This file can be generated by piping the following output to file: git describe --long --match v*.*
"Read the version from a .version file that may exist alongside __init__.py.\n\n This file can be generated by piping the following output to file:\n\n git describe --long --match v*.*"
258
false
pyviz/param
_output_from_file
31,416
LDU_FT/OzymandiasTheGreat/python-libinput/size
LDU_FT
[ "<BEGIN>\n## `events`", "Yield events from the internal libinput's queue.", "\t\tYields device events that are subclasses of\n\t\t:class:`~libinput.event.Event`.", "\t\tYields:\n\t\t\t:class:`~libinput.event.Event`: Device event.\n<END>", "<BEGIN>\n## `next_event_type`", "Return the type of the next event...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do...
The physical size of a device in mm, where meaningful. This property is only valid on devices with the required data, i.e. tablets, touchpads and touchscreens. For other devices this property raises :exc:`AssertionError`. Returns: (float, float): (Width, Height) in mm. Raises: AssertionError
"The physical size of a device in mm, where meaningful.\n\n\t\tThis property is only valid on devices with the required data, i.e.\n\t\ttablets, touchpads and touchscreens. For other devices this property\n\t\traises :exc:`AssertionError`.\n\n\t\tReturns:\n\t\t\t(float, float): (Width, Height) in mm.\n\t\tRaises:\n\t\t...
320
false
OzymandiasTheGreat/python-libinput
size
31,417
LDU_FT/dottedmag/pychm/LoadCHM
LDU_FT
[ "<BEGIN>\n## `LoadCHM`", "Loads a CHM archive.\n This function will also call GetArchiveInfo to obtain information\n such as the index file name and the topics file. It returns 1 on\n success, and 0 if it fails.\n<END>", "<BEGIN>\n## `CloseCHM`", "Closes the CHM archive.\n This fun...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the LoadCHM API. 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 LoadCHM API. 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...
Loads a CHM archive. This function will also call GetArchiveInfo to obtain information such as the index file name and the topics file. It returns 1 on success, and 0 if it fails.
"Loads a CHM archive.\n This function will also call GetArchiveInfo to obtain information\n such as the index file name and the topics file. It returns 1 on\n success, and 0 if it fails."
24
false
dottedmag/pychm
LoadCHM
31,418
LDU_FT/pinax/pinax-teams/get_unbound_form
LDU_FT
[ "<BEGIN>\n## `team_required`", "Decorator for views that require a team be supplied wither via a slug in the\n url pattern or already set on the request object from the TeamMiddleware\n<END>", "<BEGIN>\n## `manager_required`", "Decorator for views that require not only a team but also that a user be\n l...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_unbound_form API. 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_unbound_form API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Overrides behavior of FormView.get_form_kwargs when method is POST or PUT
"Overrides behavior of FormView.get_form_kwargs\n when method is POST or PUT"
15
false
pinax/pinax-teams
get_unbound_form
31,419
LDU_FT/cloudnull/cloudlib/getMessage
LDU_FT
[ "<BEGIN>\n## `getLogger`", "Return a logger from a given name.", " If the name does not have a log handler, this will create one for it based\n on the module name which will log everything to a log file in a location\n the executing user will have access to.", " :param name: ``str``\n :return: ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getMessage API. 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 getMessage API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Returns a colorized log message based on the log level. If the platform is windows the original message will be returned without colorization windows escape codes are crazy. :returns: ``str``
"Returns a colorized log message based on the log level.\n\n If the platform is windows the original message will be returned\n without colorization windows escape codes are crazy.\n\n :returns: ``str``"
136
false
cloudnull/cloudlib
getMessage
31,420
LDU_FT/bdauvergne/python-oath/totp
LDU_FT
[ "<BEGIN>\n## `str2hashalgo`", "Convert the name of a hash algorithm as described in the OATH\n specifications, to a python object handling the digest algorithm\n interface, PEP-xxx.", " :param description\n the name of the hash algorithm, example\n :rtype: a hash algorithm clas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the totp API. 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 totp API. 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...
Compute a TOTP value as prescribed by OATH specifications. :param key: the TOTP key given as an hexadecimal string :param format: the output format, can be: - hex, for a variable length hexadecimal format, - hex-notrunc, for a 40 characters hexadecimal no...
"Compute a TOTP value as prescribed by OATH specifications.\n\n :param key:\n the TOTP key given as an hexadecimal string\n :param format:\n the output format, can be:\n - hex, for a variable length hexadecimal format,\n - hex-notrunc, for a 40 characters hexade...
39
false
bdauvergne/python-oath
totp
31,421
LDU_FT/dh1tw/pyhamtools/calculate_sunrise_sunset
LDU_FT
[ "<BEGIN>\n## `get_homecall`", "Strips off country prefixes (HC2/DH1TW) and activity suffixes (DH1TW/P).", " Args:\n callsign (str): Amateur Radio callsign", " Returns:\n str: callsign without country/activity pre/suffixes", " Raises:\n ValueError: No cal...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_sunrise_sunset 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 calculate_sunrise_sunset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
calculates the next sunset and sunrise for a Maidenhead locator at a give date & time Args: locator1 (string): Maidenhead Locator, either 4 or 6 characters calc_date (datetime, optional): Starting datetime for the calculations (UTC) Returns: dict: Containing datetim...
"calculates the next sunset and sunrise for a Maidenhead locator at a give date & time\n\n Args:\n locator1 (string): Maidenhead Locator, either 4 or 6 characters\n calc_date (datetime, optional): Starting datetime for the calculations (UTC)\n\n Returns:\n dict: Containing...
238
false
dh1tw/pyhamtools
calculate_sunrise_sunset
31,422
LDU_FT/inveniosoftware/invenio-records-files/rename
LDU_FT
[ "<BEGIN>\n## `_writable`", "Check that record is in defined status.", " :param method: Method to be decorated.\n :returns: Function decorated.\n<END>", "<BEGIN>\n## `get_version`", "Return specific version ``ObjectVersion`` instance or HEAD.", " :param version_id: Version ID of the object.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rename API. 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 rename API. 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 ...
Rename a file. :param old_key: Old key that holds the object. :param new_key: New key that will hold the object. :returns: The object that has been renamed.
"Rename a file.\n\n :param old_key: Old key that holds the object.\n :param new_key: New key that will hold the object.\n :returns: The object that has been renamed."
42
false
inveniosoftware/invenio-records-files
rename
31,423
LDU_FT/peterbe/django-static/render
LDU_FT
[ "<BEGIN>\n## `staticfile_node`", "For example:\n {% staticfile \"/js/foo.js\" %}\n or\n {% staticfile \"/js/foo.js\" as variable_name %}\n Or for multiples:\n {% staticfile \"/foo.js; /bar.js\" %}\n or\n {% staticfile \"/foo.js; /bar.js\" as variable_name %}\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API. 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 render API. 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 ...
inspect the code and look for files that can be turned into combos. Basically, the developer could type this: {% slimall %} <link href="/one.css"/> <link href="/two.css"/> {% endslimall %} And it should be reconsidered like this: <link href="{% slimfile "/on...
"inspect the code and look for files that can be turned into combos.\n Basically, the developer could type this:\n {% slimall %}\n <link href=\"/one.css\"/>\n <link href=\"/two.css\"/>\n {% endslimall %}\n And it should be reconsidered like this:\n <link href=\"{% ...
13
false
peterbe/django-static
render
31,424
LDU_FT/Nike-Inc/cerberus-python-client/get_categories
LDU_FT
[ "<BEGIN>\n## `throw_if_bad_response`", "Throw an exception if the Cerberus response is not successful.\n<END>", "<BEGIN>\n## `_add_slash`", "if a string doesn't end in a '/' add one\n<END>", "<BEGIN>\n## `_set_token`", "Set the Cerberus token based on auth type\n<END>", "<BEGIN>\n## `get_roles`", "Ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_categories API. 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_categories API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a list of categories that a safe deposit box can belong to
"Return a list of categories that a safe deposit box can belong to"
86
false
Nike-Inc/cerberus-python-client
get_categories
31,425
LDU_FT/MisterWil/abodepy/refresh
LDU_FT
[ "<BEGIN>\n## `map_event_code`", "Map a specific event_code to an event group.\n<END>", "<BEGIN>\n## `desc`", "Get a short description of the automation.\n<END>", "<BEGIN>\n## `_get_numeric_status`", "Extract the numeric value from the statuses object.\n<END>", "<BEGIN>\n## `is_on`", "Get sensor state....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh API. 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 refresh API. 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 a full refresh of all devices and automations.
"Do a full refresh of all devices and automations."
53
false
MisterWil/abodepy
refresh
31,426
LDU_FT/ultrabug/py3status/get_output
LDU_FT
[ "<BEGIN>\n## `load_from_file`", "Return user-written class object from given path.\n<END>", "<BEGIN>\n## `prepare_module`", "Ready the module to get it ready to start.\n<END>", "<BEGIN>\n## `error_output`", "Something is wrong with the module so we want to output the error to\n the i3bar\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_output API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Return the output of the named module. This will be a list.
"Return the output of the named module. This will be a list."
514
false
ultrabug/py3status
get_output
31,427
LDU_FT/j3ffhubb/pymarshal/type_assert_dict
LDU_FT
[ "<BEGIN>\n## `factory`", "desc: >\n Creates a DocStringArg and recursively includes child\n docstrings if they are not JSON types.\n args:\n - name: name\n desc: The name of the argument\n type: str\n - name: desc\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type_assert_dict API. 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 type_assert_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Checks that every key/value in @d is an instance of @kcls: @vcls Will also unmarshal JSON objects to Python objects if the value is an instance of dict and @vcls is a class type Args: d: The dict to type assert kcls: The class to type assert for keys. ...
"Checks that every key/value in @d is an instance of @kcls: @vcls\n\n Will also unmarshal JSON objects to Python objects if\n the value is an instance of dict and @vcls is a class type\n\n Args:\n d: The dict to type assert\n kcls: The class to type assert for k...
63
false
j3ffhubb/pymarshal
type_assert_dict
31,428
LDU_FT/mbj4668/pyang/v_grammar_unique_defs
LDU_FT
[ "<BEGIN>\n## `emit`", "Main control function.", " Set up the top-level parts of the stylesheet, then process\n recursively all nodes in all data trees, and finally emit the\n serialized stylesheet.\n<END>", "<BEGIN>\n## `process_module`", "Process data nodes, RPCs and notifications in a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the v_grammar_unique_defs 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 v_grammar_unique_defs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Verify that all typedefs and groupings are unique Called for every statement. Stores all typedefs in stmt.i_typedef, groupings in stmt.i_grouping
"Verify that all typedefs and groupings are unique\n Called for every statement.\n Stores all typedefs in stmt.i_typedef, groupings in stmt.i_grouping"
291
false
mbj4668/pyang
v_grammar_unique_defs
31,429
LDU_FT/epfl-lts2/pygsp/compute_cheby_coeff
LDU_FT
[ "<BEGIN>\n## `compute_avg_adj_deg`", "r\"\"\"\n Compute the average adjacency degree for each node.", " The average adjacency degree is the average of the degrees of a node and\n its neighbors.", " Parameters\n ----------\n G: Graph\n Graph on which the statistic is extracted\n<END>",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_cheby_coeff 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 compute_cheby_coeff 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...
r""" Compute Chebyshev coefficients for a Filterbank. Parameters ---------- f : Filter Filterbank with at least 1 filter m : int Maximum order of Chebyshev coeff to compute (default = 30) N : int Grid order used to compute quadrature (default = m + 1) ...
"r\"\"\"\n Compute Chebyshev coefficients for a Filterbank.\n\n Parameters\n ----------\n f : Filter\n Filterbank with at least 1 filter\n m : int\n Maximum order of Chebyshev coeff to compute\n (default = 30)\n N : int\n Grid order used to compute quadrature\n (defa...
617
false
epfl-lts2/pygsp
compute_cheby_coeff
31,430
LDU_FT/asweigart/PyMsgBox/alert
LDU_FT
[ "<BEGIN>\n## `alert`", "Displays a simple message box with text and a single OK button. Returns the text of the button clicked on.\n<END>", "<BEGIN>\n## `confirm`", "Displays a message box with OK and Cancel buttons. Number and text of buttons can be customized. Returns the text of the button clicked on.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alert API. 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 alert API. 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...
Displays a simple message box with text and a single OK button. Returns the text of the button clicked on.
"Displays a simple message box with text and a single OK button. Returns the text of the button clicked on."
15
false
asweigart/PyMsgBox
alert
31,431
LDU_FT/robehickman/simple-http-file-sync/pfx_path
LDU_FT
[ "<BEGIN>\n## `lock_access`", "Synchronise access to the user file between processes, this specifies\n which user is allowed write access at the current time\n<END>", "<BEGIN>\n## `can_aquire_user_lock`", "Allow a user to acquire the lock if no other user is currently using it, if the original\n user is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pfx_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pfx_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Prefix a path with the OS path separator if it is not already
"Prefix a path with the OS path separator if it is not already"
60
false
robehickman/simple-http-file-sync
pfx_path
31,432
LDU_FT/chigby/mtg/keyword
LDU_FT
[ "<BEGIN>\n## `expr`", "Top level parsing function.", " An expression is <keyword> <OR> <expr>\n or <keyword> <SEP> <expr>\n or <keyword>\n<END>", "<BEGIN>\n## `keyword`", "Lowest level parsing function.", " A keyword consists of zero or more prefix o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the keyword API. 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 keyword API. 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...
Lowest level parsing function. A keyword consists of zero or more prefix operators (NOT, or COMPARISON) followed by a TEXT, COLOR, or NUMBER block.
"Lowest level parsing function.\n\n A keyword consists of zero or more prefix operators (NOT, or\n COMPARISON) followed by a TEXT, COLOR, or NUMBER block."
13
false
chigby/mtg
keyword
31,433
LDU_FT/jaraco/jaraco.windows/is_reparse_point
LDU_FT
[ "<BEGIN>\n## `CryptUnprotectData`", "Returns a tuple of (description, data) where description is the\n\tthe description that was passed to the CryptProtectData call and\n\tdata is the decrypted result.\n<END>", "<BEGIN>\n## `set_data`", "Use this method to set the data for this blob\n<END>", "<BEGIN>\n## `m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_reparse_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_reparse_point API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Determine if the given path is a reparse point. Return False if the file does not exist or the file attributes cannot be determined.
"Determine if the given path is a reparse point.\n\tReturn False if the file does not exist or the file attributes cannot\n\tbe determined."
119
false
jaraco/jaraco.windows
is_reparse_point
31,434
LDU_FT/nir0s/serv/_get_package_data
LDU_FT
[ "<BEGIN>\n## `generate`", "Create a service.", " `COMMAND` is the path to the executable to run\n<END>", "<BEGIN>\n## `_parse_service_env_vars`", "Return a dict based on `key=value` pair strings.\n<END>", "<BEGIN>\n## `_set_service_name_from_command`", "Set the name of a service according to the comm...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_package_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_package_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...
Iterate over the `init` dir for directories and returns all files within them. Only files within `binaries` and `templates` will be added.
"Iterate over the `init` dir for directories and returns\n all files within them.\n\n Only files within `binaries` and `templates` will be added."
65
false
nir0s/serv
_get_package_data
31,435
LDU_FT/foliant-docs/foliantcontrib.includes/_get_src_file_path
LDU_FT
[ "<BEGIN>\n## `_find_file`", "Find a file in a directory by name. Check subdirectories recursively.", " :param file_name: Name of the file\n :lookup_dir: Starting directory", " :returns: Path to the found file or None if the file was not found\n :raises: FileNotFoundError\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_src_file_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_src_file_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Translate the path of Markdown file that is located inside the temporary working directory into the path of the corresponding Markdown file that is located inside the source directory of Foliant project. :param markdown_file_path: Path to Markdown file that is located inside the temporary worki...
"Translate the path of Markdown file that is located inside the temporary working directory\n into the path of the corresponding Markdown file that is located inside the source directory\n of Foliant project.\n\n :param markdown_file_path: Path to Markdown file that is located inside the temporary ...
49
false
foliant-docs/foliantcontrib.includes
_get_src_file_path
31,436
LDU_FT/SuperCowPowers/workbench/help_dataframe
LDU_FT
[ "<BEGIN>\n## `conn_log_graph`", "Build up a graph (nodes and edges from a Bro conn.log)\n<END>", "<BEGIN>\n## `dns_log_graph`", "Build up a graph (nodes and edges from a Bro dns.log)\n<END>", "<BEGIN>\n## `weird_log_graph`", "Build up a graph (nodes and edges from a Bro weird.log)\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the help_dataframe API. 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 help_dataframe API. 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...
Help for making a DataFrame with Workbench CLI
"Help for making a DataFrame with Workbench CLI"
328
false
SuperCowPowers/workbench
help_dataframe
31,437
LDU_FT/sentinel-hub/sentinelhub-py/_parse_split_shape
LDU_FT
[ "<BEGIN>\n## `_get_utm_code`", "Get UTM code given a zone and direction", " Direction is encoded as NORTH=6, SOUTH=7, while zone is the UTM zone number zero-padded.\n For instance, the code 32604 is returned for zone number 4, north direction.", " :param zone: UTM zone number\n :type zone: int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_split_shape 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 _parse_split_shape 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...
Parses the parameter `split_shape` :param split_shape: The parameter `split_shape` from class initialization :type split_shape: int or (int, int) :return: A tuple of n :rtype: (int, int) :raises: ValueError
"Parses the parameter `split_shape`\n\n :param split_shape: The parameter `split_shape` from class initialization\n :type split_shape: int or (int, int)\n :return: A tuple of n\n :rtype: (int, int)\n :raises: ValueError"
559
false
sentinel-hub/sentinelhub-py
_parse_split_shape
31,438
LDU_FT/cocaine/cocaine-tools/group_create
LDU_FT
[ "<BEGIN>\n## `reelect_app`", "tries to connect to the same app on differnet host from dist-info\n<END>", "<BEGIN>\n## `expr`", "expr ::= term ((AND | OR) term)*\n term ::= factor ((EQ | NE) factor)*\n factor ::= func | const | LPAREN expr RPAREN\n func ::= lit LPAREN expr (,expr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Create routing group. You can optionally specify content for created routing group. It can be either direct JSON expression in single quotes, or path to the json file with settings. Settings itself must be key-value list, where `key` represents application name, and `value` represents its weight. For ...
"Create routing group.\n\n You can optionally specify content for created routing group. It can be either direct JSON\n expression in single quotes, or path to the json file with settings. Settings itself must be\n key-value list, where `key` represents application name, and `value` represents its weight.\n\n ...
127
false
cocaine/cocaine-tools
group_create
31,439
LDU_FT/brbsix/subsystem/parse
LDU_FT
[ "<BEGIN>\n## `devnull`", "Temporarily redirect stdout and stderr to /dev/null.\n<END>", "<BEGIN>\n## `error`", "Display error message via stderr or GUI.\n<END>", "<BEGIN>\n## `failure`", "Display warning message via stderr or GUI.\n<END>", "<BEGIN>\n## `have`", "Determine whether supplied argument is ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Parse command-line arguments. Arguments may consist of any combination of directories, files, and options.
"Parse command-line arguments. Arguments may consist of any\n combination of directories, files, and options."
18
false
brbsix/subsystem
parse
31,440
LDU_FT/PyCQA/astroid/add_from_names_to_locals
LDU_FT
[ "<BEGIN>\n## `_handle_blacklist`", "remove files/directories in the black list", " dirnames/filenames are usually from os.walk\n<END>", "<BEGIN>\n## `load_module_from_name`", "Load a Python module from its name.", " :type dotted_name: str\n :param dotted_name: python name of a module or package",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_from_names_to_locals 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 add_from_names_to_locals API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Store imported names to the locals Resort the locals if coming from a delayed node
"Store imported names to the locals\n\n Resort the locals if coming from a delayed node"
1,051
true
PyCQA/astroid
add_from_names_to_locals
31,441
LDU_FT/lark-parser/lark/expand_kids_by_index
LDU_FT
[ "<BEGIN>\n## `dedup_list`", "Given a list (l) will removing duplicates from the list,\n preserving the original order of the list. Assumes that\n the list entrie are hashable.\n<END>", "<BEGIN>\n## `_parse`", "Parses sentence 's' using CNF grammar 'g'.\n<END>", "<BEGIN>\n## `get_any_nt_unit_rule...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_kids_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_kids_by_index API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Expand (inline) children at the given indices
"Expand (inline) children at the given indices"
55
false
lark-parser/lark
expand_kids_by_index
31,442
LDU_FT/esterhui/pypu/_updateToAdded
LDU_FT
[ "<BEGIN>\n## `_connectToWP`", "Establish the actual TCP connection to Flickr\n<END>", "<BEGIN>\n## `_readMetaAndContent`", "Reads meta data and content from file into WordPressPost() class.\n Returns the class", " If error, returns None\n<END>", "<BEGIN>\n## `GetStatus`", "Scans through al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _updateToAdded API. 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 _updateToAdded API. 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...
Changes to status to 'A' as long as a handler exists, also generates a hash directory - DIR where stuff is happening fn - File name to be added dentry - dictionary entry as returned by GetStatus for this file db - pusher DB for this directory service - None means all serv...
"Changes to status to 'A' as long as a handler exists,\n also generates a hash\n directory - DIR where stuff is happening\n fn - File name to be added\n dentry - dictionary entry as returned by GetStatus for this file\n db - pusher DB for this directory\n service - None means a...
113
false
esterhui/pypu
_updateToAdded
31,443
LDU_FT/unfoldingWord-dev/python-gogs-client/get_branches
LDU_FT
[ "<BEGIN>\n## `json_get`", "Retrieves the key from a parsed_json dictionary, or raises an exception if the\n key is not present\n<END>", "<BEGIN>\n## `append_url`", "Append path to base_url in a sensible way.\n<END>", "<BEGIN>\n## `authenticated_user`", "Returns the user authenticated by ``auth``", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_branches API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Returns the branches in the repository with name ``repo_name`` owned by the user with username ``username``. :param auth.Authentication auth: authentication object :param str username: username of owner of repository containing the branch :param str repo_name: name of the repository wi...
"Returns the branches in the repository with name ``repo_name`` owned by the user\n with username ``username``.\n\n :param auth.Authentication auth: authentication object \n :param str username: username of owner of repository containing the branch\n :param str repo_name: name of the reposit...
123
false
unfoldingWord-dev/python-gogs-client
get_branches
31,444
LDU_FT/Clarify/clarify_python/_get_headers
LDU_FT
[ "<BEGIN>\n## `process_embed`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `process_embed_override`", "Returns an embed field value based on the parameters.\n<END>", "<BEGIN>\n## `get_embedded_items`", "Given a result_collection (returned by a previous API call that\n r...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get all the headers we're going to need: 1. Authorization 2. Content-Type 3. User-agent Note that the User-agent string contains the library name, the libary version, and the python version. This will help us track what people are using, and where we should concentrate ...
"Get all the headers we're going to need:\n\n 1. Authorization\n 2. Content-Type\n 3. User-agent\n\n Note that the User-agent string contains the library name, the\n libary version, and the python version. This will help us track\n what people are using, and where we should con...
137
false
Clarify/clarify_python
_get_headers
31,445
LDU_FT/openstax/cnx-archive/rebuild_collection_tree
LDU_FT
[ "<BEGIN>\n## `redirect_legacy_content`", "Redirect from legacy /content/id/version to new /contents/uuid@version.", " Handles collection context (book) as well.\n<END>", "<BEGIN>\n## `robots`", "Return a simple \"don't index me\" robots.txt file.\n<END>", "<BEGIN>\n## `_get_sql`", "Returns the conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rebuild_collection_tree 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 rebuild_collection_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Create a new tree for the collection based on the old tree. This uses new document ids, replacing old ones.
"Create a new tree for the collection based on the old tree.\n\n This uses new document ids, replacing old ones."
208
false
openstax/cnx-archive
rebuild_collection_tree
31,446
LDU_FT/theelous3/multio/register
LDU_FT
[ "<BEGIN>\n## `register`", "Registers a new library function with the current manager.\n<END>", "<BEGIN>\n## `init`", "Must be called at some point after import and before your event loop\n is run.", " Populates the asynclib instance of _AsyncLib with methods relevant to the\n async library you are ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Registers a new library function with the current manager.
"Registers a new library function with the current manager."
16
false
theelous3/multio
register
31,447
LDU_FT/smnorris/pgdata/pg2ogr
LDU_FT
[ "<BEGIN>\n## `schemas`", "Get a listing of all non-system schemas (prefixed with 'pg_') that\n exist in the database.\n<END>", "<BEGIN>\n## `tables`", "Get a listing of all tables\n - if schema specified on connect, return unqualifed table names in\n that schema\n - in no s...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pg2ogr API. 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 pg2ogr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
A wrapper around ogr2ogr, for quickly dumping a postgis query to file. Suppported formats are ["ESRI Shapefile", "GeoJSON", "FileGDB", "GPKG"] - for GeoJSON, transforms to EPSG:4326 - for Shapefile, consider supplying a column_remap dict - for FileGDB, geom_type is required ...
"A wrapper around ogr2ogr, for quickly dumping a postgis query to file.\n Suppported formats are [\"ESRI Shapefile\", \"GeoJSON\", \"FileGDB\", \"GPKG\"]\n - for GeoJSON, transforms to EPSG:4326\n - for Shapefile, consider supplying a column_remap dict\n - for FileGDB, geom_type is ...
50
false
smnorris/pgdata
pg2ogr
31,448
LDU_FT/kytos/python-openflow/unpack
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unpack API. 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 unpack API. 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 ...
Unpack *buff* into this object. This method will convert a binary data into a readable value according to the attribute format. Args: buff (bytes): Binary buffer. offset (int): Where to begin unpacking. Raises: :exc:`~.exceptions.UnpackException`: I...
"Unpack *buff* into this object.\n\n This method will convert a binary data into a readable value according\n to the attribute format.\n\n Args:\n buff (bytes): Binary buffer.\n offset (int): Where to begin unpacking.\n\n Raises:\n :exc:`~.exceptions.UnpackEx...
348
false
kytos/python-openflow
unpack
31,449
LDU_FT/neithere/monk/translate
LDU_FT
[ "<BEGIN>\n## `_insert_defaults`", "Inserts default values from :attr:`StructuredDictMixin.structure`\n to `self` by merging the two structures\n (see :func:`monk.manipulation.merge_defaults`).\n<END>", "<BEGIN>\n## `opt_key`", "Returns a validator which allows the value to be missing.\n Simil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API. 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 translate API. 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...
Translates given schema from "pythonic" syntax to a validator. Usage:: >>> translate(str) IsA(str) >>> translate('hello') IsA(str, default='hello')
"Translates given schema from \"pythonic\" syntax to a validator.\n\n Usage::\n\n >>> translate(str)\n IsA(str)\n\n >>> translate('hello')\n IsA(str, default='hello')"
64
false
neithere/monk
translate
31,450
LDU_FT/Archived-Object/ligament/register_with_context
LDU_FT
[ "<BEGIN>\n## `register_dependency`", "registers a dependency of data_src -> data_sink\n by placing appropriate entries in provides_for and depends_on\n<END>", "<BEGIN>\n## `build_task`", "Builds a task by name, resolving any dependencies on the way\n<END>", "<BEGIN>\n## `is_build_needed`", "ret...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_with_context 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 register_with_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
registers this build target (exclusively) with a given context
"registers this build target (exclusively) with a given context"
66
false
Archived-Object/ligament
register_with_context
31,451
LDU_FT/bitprophet/ssh/connect
LDU_FT
[ "<BEGIN>\n## `start_client`", "Negotiate a new SSH2 session as a client. This is the first step after\n creating a new L{Transport}. A separate thread is created for protocol\n negotiation.", " If an event is passed in, this method returns immediately. When\n negotiation is done (...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Method automatically called by the run() method of the AgentProxyThread
"Method automatically called by the run() method of the AgentProxyThread"
272
false
bitprophet/ssh
connect
31,452
LDU_FT/pyQode/pyqode.core/_ask_path
LDU_FT
[ "<BEGIN>\n## `on_install`", "Add the folding menu to the editor, on install.", " :param editor: editor instance on which the mode has been installed to.\n<END>", "<BEGIN>\n## `_draw_rect`", "Draw the background rectangle using the current style primitive color\n or foldIndicatorBackground if n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ask_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ask_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Shows a QFileDialog and ask for a save filename. :return: save filename
"Shows a QFileDialog and ask for a save filename.\n\n :return: save filename"
697
false
pyQode/pyqode.core
_ask_path
31,453
LDU_FT/SiLab-Bonn/online_monitor/receive_data
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse an argument string", " http://stackoverflow.com/questions/18160078/\n how-do-you-write-tests-for-the-argparse-portion-of-a-python-module\n<END>", "<BEGIN>\n## `_factory`", "Load a module of a given base class type", " Parameter\n --------\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_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 extr...
Infinite loop via QObject.moveToThread(), does not block event loop
"Infinite loop via QObject.moveToThread(), does not block event loop"
21
false
SiLab-Bonn/online_monitor
receive_data
31,454
LDU_FT/etcher-be/emiz/extra_space_exists
LDU_FT
[ "<BEGIN>\n## `unit_pos_to_spot`", "Translates a unit position to a known parking spot", " Args:\n unit_pos: unit position as Vec2", " Returns: ParkingSpot object\n<END>", "<BEGIN>\n## `_tdec`", "Translates a 4-digit decimal temperature representation", " Ex: 1045 -> -4.5°C 0237 -> 23....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extra_space_exists 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 extra_space_exists 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 True if a space shouldn't exist between two items
"Return True if a space shouldn't exist between two items"
297
false
etcher-be/emiz
extra_space_exists
31,455
LDU_FT/tarbell-project/tarbell/data_json
LDU_FT
[ "<BEGIN>\n## `_get_or_create_config`", "Get or create a Tarbell configuration directory.\n<END>", "<BEGIN>\n## `slughifi`", "High Fidelity slugify - slughifi.py, v 0.1", " Examples :", " >>> text = 'C\\'est déjà l\\'été.'", " >>> slughifi(text)\n 'cest-deja-lete'", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the data_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 extract...
Serve site context as JSON. Useful for debugging.
"Serve site context as JSON. Useful for debugging."
66
false
tarbell-project/tarbell
data_json
31,456
LDU_FT/coleifer/walrus/get_document
LDU_FT
[ "<BEGIN>\n## `get`", "Retreive a value from the cache. In the event the value\n does not exist, return the ``default``.\n<END>", "<BEGIN>\n## `set`", "Cache the given ``value`` in the specified ``key``. If no\n timeout is specified, the default timeout will be used.\n<END>", "<BEGIN>\n## `flus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_document API. 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...
:param document_id: Document unique identifier. :returns: a dictionary containing the document content and any associated metadata.
":param document_id: Document unique identifier.\n :returns: a dictionary containing the document content and\n any associated metadata."
363
false
coleifer/walrus
get_document
31,457
LDU_FT/jwkvam/bowtie/_insert
LDU_FT
[ "<BEGIN>\n## `notify`", "Notify the client.", " The function passed to ``App.respond`` will get called.\n<END>", "<BEGIN>\n## `validate`", "Check that the key is a string or bytestring.", " That's the only valid type of key.\n<END>", "<BEGIN>\n## `pack`", "Encode ``x`` into msgpack with addi...
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...
Insert the component tag into the wrapper html. This ignores other tags already created like ``{socket}``. https://stackoverflow.com/a/11284026/744520
"Insert the component tag into the wrapper html.\n\n This ignores other tags already created like ``{socket}``.\n\n https://stackoverflow.com/a/11284026/744520"
82
false
jwkvam/bowtie
_insert
31,458
LDU_FT/lorien/grab/has_item
LDU_FT
[ "<BEGIN>\n## `get_item`", "Returned item should have specific interface. See module docstring.\n<END>", "<BEGIN>\n## `has_item`", "Test if required item exists in the cache.\n<END>", "<BEGIN>\n## `build_grab_exception`", "Build Grab exception from the pycurl exception", " Args:\n ex - the orig...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_item API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Test if required item exists in the cache.
"Test if required item exists in the cache."
188
false
lorien/grab
has_item
31,459
LDU_FT/mozillazg/baidu-pcs-python-sdk/add_download_task
LDU_FT
[ "<BEGIN>\n## `upload`", "上传单个文件(<2G).", " | 百度PCS服务目前支持最大2G的单个文件上传。\n | 如需支持超大文件(>2G)的断点续传,请参考下面的“分片文件上传”方法。", " :param remote_path: 网盘中文件的保存路径(包含文件名)。\n 必须以 /apps/ 开头。", " .. warning::\n * 路径长度限制为1000;...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_download_task API. 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 add_download_task API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
添加离线下载任务,实现单个文件离线下载. :param source_url: 源文件的URL。 :param remote_path: 下载后的文件保存路径。 .. warning:: * 路径长度限制为1000; * 径中不能包含以下字符:``\\\\ ? | " > < : *``; * 文件名或路径名开头结尾不能是 ``.`` ...
"添加离线下载任务,实现单个文件离线下载.\n\n :param source_url: 源文件的URL。\n :param remote_path: 下载后的文件保存路径。\n\n .. warning::\n * 路径长度限制为1000;\n * 径中不能包含以下字符:``\\\\\\\\ ? | \" > < : *``;\n * 文件名或路径名开头结尾不能是 `...
126
false
mozillazg/baidu-pcs-python-sdk
add_download_task
31,460
LDU_FT/fractalego/parvusdb/substitute_namespace_into_graph
LDU_FT
[ "<BEGIN>\n## `add_line`", "Adds a line to the LISP code to execute", " :param string: The line to add\n :return: None\n<END>", "<BEGIN>\n## `add_graph_to_namespace`", "Adds the variables name to the namespace of the local LISP code", " :param graph: the graph to add to the namespace\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitute_namespace_into_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substitute_namespace_into_graph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co...
Creates a graph from the local namespace of the code (to be used after the execution of the code) :param graph: The graph to use as a recipient of the namespace :return: the updated graph
"Creates a graph from the local namespace of the code (to be used after the execution of the code)\n\n :param graph: The graph to use as a recipient of the namespace\n :return: the updated graph"
36
false
fractalego/parvusdb
substitute_namespace_into_graph
31,461
LDU_FT/mikicz/arca/get_inherit_image
LDU_FT
[ "<BEGIN>\n## `get_or_create_environment`", "Returns the path to the current Python executable.\n<END>", "<BEGIN>\n## `validate_configuration`", "Validates the provided settings.", " * Checks ``inherit_image`` format.\n * Checks ``use_registry_name`` format.\n * Checks that ``apt_depende...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inherit_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...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_inherit_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...
Parses the ``inherit_image`` setting, checks if the image is present locally and pulls it otherwise. :return: Returns the name and the tag of the image. :raise ArcaMisconfiguration: If the image can't be pulled from registries.
"Parses the ``inherit_image`` setting, checks if the image is present locally and pulls it otherwise.\n\n :return: Returns the name and the tag of the image.\n :raise ArcaMisconfiguration: If the image can't be pulled from registries."
196
false
mikicz/arca
get_inherit_image
31,462
LDU_FT/denisenkom/pytds/process_cancel
LDU_FT
[ "<BEGIN>\n## `validate_host`", "Validates host name against certificate", " @param cert: Certificate returned by host\n @param name: Actual host name used for connection\n @return: Returns true if host name matches certificate\n<END>", "<BEGIN>\n## `revert_to_clear`", "Reverts connection back to no...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_cancel API. 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 process_cancel API. 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...
Process the incoming token stream until it finds an end token DONE with the cancel flag set. At that point the connection should be ready to handle a new query. In case when no cancel request is pending this function does nothing.
"Process the incoming token stream until it finds\n an end token DONE with the cancel flag set.\n At that point the connection should be ready to handle a new query.\n\n In case when no cancel request is pending this function does nothing."
210
false
denisenkom/pytds
process_cancel
31,463
LDU_FT/kytos/python-openflow/pack
LDU_FT
[ "<BEGIN>\n## `in_port`", "Retrieve the 'in_port' that generated the PacketIn.", " This method will look for the OXM_TLV with type OFPXMT_OFB_IN_PORT on\n the `oxm_match_fields` field from `match` field and return its value,\n if the OXM exists.", " Returns:\n The integer...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pack API. 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 pack API. 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...
Pack the value as a binary representation. If the passed value (or the self._value) is zero (int), then the pack will assume that the value to be packed is '00:00:00:00:00:00'. Returns bytes: The binary representation. Raises: struct.error: If the value does no...
"Pack the value as a binary representation.\n\n If the passed value (or the self._value) is zero (int), then the pack\n will assume that the value to be packed is '00:00:00:00:00:00'.\n\n Returns\n bytes: The binary representation.\n\n Raises:\n struct.error: If the val...
348
false
kytos/python-openflow
pack
31,464
LDU_FT/kennydo/nyaalib/search
LDU_FT
[ "<BEGIN>\n## `extract_url_query_parameter`", "Given a URL (ex: \"http://www.test.com/path?query=3\") and a parameter\n (ex: \"query\"), return the value as a list\n :param url: a `str` URL\n :param parameter: the URL query we went to extract\n :return: a `list` of values for the given query name in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Get a list of torrents that match the given search term :param terms: the `str` needle :param category: the desired :class:`Category` of the results :param page: the 1-based page to return the result :param sort_key: the :class:`SearchSortKey` of the results list :param order_ke...
"Get a list of torrents that match the given search term\n\n :param terms: the `str` needle\n :param category: the desired :class:`Category` of the results\n :param page: the 1-based page to return the result\n :param sort_key: the :class:`SearchSortKey` of the results list\n :param o...
14
false
kennydo/nyaalib
search
31,465
LDU_FT/openxc/openxc-python/set_passthrough
LDU_FT
[ "<BEGIN>\n## `get`", "Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>", "<BEGIN>\n## `add_source`", "Add a vehicle data source to the instance.", " The Vehicle instance will be set as the callback of the source, and the\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_passthrough API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_passthrough API. 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...
Control the status of CAN message passthrough for a bus. Returns True if the command was successful.
"Control the status of CAN message passthrough for a bus.\n\n Returns True if the command was successful."
94
false
openxc/openxc-python
set_passthrough
31,466
LDU_FT/alpacahq/pylivetrader/can_trade
LDU_FT
[ "<BEGIN>\n## `_deprecated_getitem_method`", "Create a deprecated ``__getitem__`` method that tells users to use\n getattr instead.", " Parameters\n ----------\n name : str\n The name of the object in the warning message.\n attrs : iterable[str]\n The set of allowed attributes.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the can_trade API. 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 can_trade API. 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...
For the given asset or iterable of assets, returns true if all of the following are true: 1) the asset is alive for the session of the current simulation time (if current simulation time is not a market minute, we use the next session) 2) (if we are in minute mode) the asset'...
"For the given asset or iterable of assets, returns true if all of the\n following are true:\n 1) the asset is alive for the session of the current simulation time\n (if current simulation time is not a market minute, we use the next\n session)\n 2) (if we are in minute mode) the ...
81
false
alpacahq/pylivetrader
can_trade
31,467
LDU_FT/empymod/empymod/get_minimum
LDU_FT
[ "<BEGIN>\n## `check_ab`", "r\"\"\"Check source-receiver configuration.", " This check-function is called from one of the modelling routines in\n :mod:`model`. Consult these modelling routines for a detailed description\n of the input parameters.", " Parameters\n ----------\n ab : int\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_minimum API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_minimum API. 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...
r""" Return the current minimum values. Returns ------- min_vals : dict Dictionary of current minimum values with keys - min_freq : float - min_time : float - min_off : float - min_res : float - min_angle : float For a full description...
"r\"\"\"\n Return the current minimum values.\n\n Returns\n -------\n min_vals : dict\n Dictionary of current minimum values with keys\n\n - min_freq : float\n - min_time : float\n - min_off : float\n - min_res : float\n - min_angle : float\n\n For ...
570
false
empymod/empymod
get_minimum
31,468
LDU_FT/mitodl/PyLmod/multi_grade
LDU_FT
[ "<BEGIN>\n## `unravel_sections`", "Unravels section type dictionary into flat list of sections with\n section type set as an attribute.", " Args:\n section_data(dict): Data return from py:method::get_sections", " Returns:\n list: Flat list of sections with ``sectionT...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the multi_grade API. 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 multi_grade API. 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...
Set multiple grades for students. Set multiple student grades for a gradebook. The grades are passed as a list of dictionaries. Each grade dictionary in ``grade_array`` must contain a ``studentId`` and a ``assignmentId``. Options for grade mode are: OVERALL_GRADE = ``1``, ...
"Set multiple grades for students.\n\n Set multiple student grades for a gradebook. The grades are passed\n as a list of dictionaries.\n\n Each grade dictionary in ``grade_array`` must contain a\n ``studentId`` and a ``assignmentId``.\n Options for grade mode are: OVERALL_GRADE = ``1...
190
false
mitodl/PyLmod
multi_grade
31,469
LDU_FT/runfalk/spans/endsbefore
LDU_FT
[ "<BEGIN>\n## `format_sec`", "Format seconds in a more human readable way. It supports units down to\n nanoseconds.", " :param s: Float of seconds to format\n :return: String second representation, like 12.4 us\n<END>", "<BEGIN>\n## `fix_timedelta_repr`", "Account repr change for timedelta in Python...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the endsbefore API. 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 endsbefore API. 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...
Test if this range ends before `other`. `other` may be either range or scalar. This only takes the upper end of the ranges into consideration. If the scalar or the upper end of the given range is less than or equal to this range's upper end, ``True`` is returned. >>> intrange(1, 5)....
"Test if this range ends before `other`. `other` may be either range or\n scalar. This only takes the upper end of the ranges into consideration.\n If the scalar or the upper end of the given range is less than or equal\n to this range's upper end, ``True`` is returned.\n\n >>> intrange(...
137
false
runfalk/spans
endsbefore
31,470
LDU_FT/IBM/ibm-cos-sdk-python-s3transfer/is_stopped
LDU_FT
[ "<BEGIN>\n## `store`", "store a config value in a dictionary, these values are used to populate a trasnfer spec\n validation -- check type, check allowed values and rename if required\n<END>", "<BEGIN>\n## `multi_session`", "convert the multi_session param a number\n<END>", "<BEGIN>\n## `_raw_asp...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_stopped API. 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 is_stopped API. 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...
check whether a transfer is stopped or is being stopped
"check whether a transfer is stopped or is being stopped"
89
false
IBM/ibm-cos-sdk-python-s3transfer
is_stopped
31,471
LDU_FT/jtauber/sebastian/fill
LDU_FT
[ "<BEGIN>\n## `zip`", "zips two sequences unifying the corresponding points.\n<END>", "<BEGIN>\n## `display`", "Return an object that can be used to display this sequence.\n This is used for IPython Notebook.", " :param format: \"png\" or \"svg\"\n<END>", "<BEGIN>\n## `append`", "appends a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill API. 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 fill API. 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...
fills the subsequence of the point with repetitions of its subsequence and sets the ``duration`` of each point.
"fills the subsequence of the point with repetitions of its subsequence and\n sets the ``duration`` of each point."
29
false
jtauber/sebastian
fill
31,472