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/ssato/python-anytemplate/_write_to_filepath
LDU_FT
[ "<BEGIN>\n## `fallback_render`", "Render from given template and context.", " This is a basic implementation actually does nothing and just returns\n the content of given template file `template`.", " :param template: Template file path\n :param context: A dict or dict-like object to instantiate g...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _write_to_filepath 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 _write_to_filepath 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...
:param content: Content string to write to :param output: Output file path
":param content: Content string to write to\n :param output: Output file path"
156
false
ssato/python-anytemplate
_write_to_filepath
23,373
LDU_FT/googlesamples/assistant-sdk-python/write
LDU_FT
[ "<BEGIN>\n## `main`", "File based sample for the Google Assistant API.", " Examples:\n $ python -m audiofileinput -i <input file> -o <output file>\n<END>", "<BEGIN>\n## `process_event`", "Pretty prints events.", " Prints all events that occur with two spaces between each new\n conversation a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted d...
Write bytes to the sink (if currently playing).
"Write bytes to the sink (if currently playing)."
72
false
googlesamples/assistant-sdk-python
write
23,374
LDU_FT/Parsl/libsubmit/get_configs
LDU_FT
[ "<BEGIN>\n## `_status`", "Internal: Do not call. Returns the status list for a list of job_ids", " Args:\n self", " Returns:\n [status...] : Status list of all jobs\n<END>", "<BEGIN>\n## `submit`", "Submits the command onto an Local Resource Manager job of blocksize...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_configs API. 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_configs API. 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...
Compose a dictionary with information for writing the submit script.
"Compose a dictionary with information for writing the submit script."
99
false
Parsl/libsubmit
get_configs
23,375
LDU_FT/keras-rl/keras-rl/get_config
LDU_FT
[ "<BEGIN>\n## `fit`", "Trains the agent on the given environment.", " # Arguments\n env: (`Env` instance): Environment that the agent interacts with. See [Env](#env) for details.\n nb_steps (integer): Number of training steps to be performed.\n action_repetition (integer):...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_config API. 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_config API. 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 configurations of MaxBoltzmannQPolicy # Returns Dict of config
"Return configurations of MaxBoltzmannQPolicy\n\n # Returns\n Dict of config"
113
false
keras-rl/keras-rl
get_config
23,376
LDU_FT/jaumebonet/libconfig/_entry_must_exist
LDU_FT
[ "<BEGIN>\n## `_get_repo`", "Identify the path to the repository origin.\n<END>", "<BEGIN>\n## `_entry_must_exist`", "Evaluate key-subkey existence.", " Checks that the key-subkey combo exists in the\n configuration options.\n<END>", "<BEGIN>\n## `_entry_must_not_exist`", "Evaluate key-subkey non-e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _entry_must_exist API. 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 _entry_must_exist API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Evaluate key-subkey existence. Checks that the key-subkey combo exists in the configuration options.
"Evaluate key-subkey existence.\n\n Checks that the key-subkey combo exists in the\n configuration options."
104
false
jaumebonet/libconfig
_entry_must_exist
23,377
LDU_FT/05bit/peewee-async/update_object
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute *SELECT*, *INSERT*, *UPDATE* or *DELETE* query asyncronously.", " :param query: peewee query instance created with ``Model.select()``,\n ``Model.update()`` etc.\n :return: result depends on query type, it's the same as for sync\n ``query.execute()`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Update object asynchronously. :param obj: object to update :param only: list or tuple of fields to updata, is `None` then all fields updated This function does the same as `Model.save()`_ for already saved object, but it doesn't invoke ``save()`` method on model class. That is impo...
"Update object asynchronously.\n\n :param obj: object to update\n :param only: list or tuple of fields to updata, is `None` then all fields\n updated\n\n This function does the same as `Model.save()`_ for already saved object,\n but it doesn't invoke ``save()`` method on model class. That is\n ...
92
false
05bit/peewee-async
update_object
23,378
LDU_FT/ksbg/sparklanes/validate_schema
LDU_FT
[ "<BEGIN>\n## `build_lane_from_yaml`", "Builds a `sparklanes.Lane` object from a YAML definition file.", " Parameters\n ----------\n path: str\n Path to the YAML definition file", " Returns\n -------\n Lane\n Lane, built according to definition in YAML file\n<END>", "<BEGIN>\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_schema API. 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 validate_schema API. 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...
Validates the schema of a dict Parameters ---------- yaml_def : dict dict whose schema shall be validated branch : bool Indicates whether `yaml_def` is a dict of a top-level lane, or of a branch inside a lane (needed for recursion) Returns ------- bool True ...
"Validates the schema of a dict\n\n Parameters\n ----------\n yaml_def : dict\n dict whose schema shall be validated\n branch : bool\n Indicates whether `yaml_def` is a dict of a top-level lane, or of a branch\n inside a lane (needed for recursion)\n\n Returns\n -------\n bool\...
62
false
ksbg/sparklanes
validate_schema
23,379
LDU_FT/gwww/elkm1/arm
LDU_FT
[ "<BEGIN>\n## `housecode_to_index`", "Convert a X10 housecode to a zero-based index\n<END>", "<BEGIN>\n## `index_to_housecode`", "Convert a zero-based index to a X10 housecode.\n<END>", "<BEGIN>\n## `_check_message_valid`", "Check packet length valid and that checksum is good.\n<END>", "<BEGIN>\n## `zb_e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
(Helper) Arm system at specified level (away, vacation, etc)
"(Helper) Arm system at specified level (away, vacation, etc)"
32
false
gwww/elkm1
arm
23,380
LDU_FT/wal-e/wal-e/_upload_pg_cluster_dir
LDU_FT
[ "<BEGIN>\n## `configure`", "Configure logging.", " Borrowed from logging.basicConfig", " Uses the IndentFormatter instead of the regular Formatter", " Also, opts the caller into Syslog output, unless syslog could not\n be opened for some reason or another, in which case a warning will\n be pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _upload_pg_cluster_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _upload_pg_cluster_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Upload to url_prefix from pg_cluster_dir This function ignores the directory pg_xlog, which contains WAL files and are not generally part of a base backup. Note that this is also lzo compresses the files: thus, the number of pooled processes involves doing a full sequential scan of the...
"Upload to url_prefix from pg_cluster_dir\n\n This function ignores the directory pg_xlog, which contains WAL\n files and are not generally part of a base backup.\n\n Note that this is also lzo compresses the files: thus, the number\n of pooled processes involves doing a full sequential scan...
214
false
wal-e/wal-e
_upload_pg_cluster_dir
23,381
LDU_FT/anomaly/prestans/conforms_to_template_filter
LDU_FT
[ "<BEGIN>\n## `_setup_serializers`", "Auto set the return serializer based on Accept headers\n http://docs.webob.org/en/latest/reference.html#header-getters", " Intersection of requested types and supported types tells us if we\n can in fact respond in one of the request formats\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the conforms_to_template_filter 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 conforms_to_template_filter 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 AttributeFilter conforms to the rules set by the template - If self, has attributes that template_filter does not contain, throw Exception - If sub list found, perform the first check - If self has a value for an attribute, assign to final AttributeFilter - If not found, assig...
"Check AttributeFilter conforms to the rules set by the template\n\n - If self, has attributes that template_filter does not contain, throw Exception\n - If sub list found, perform the first check\n - If self has a value for an attribute, assign to final AttributeFilter\n - If not found,...
99
false
anomaly/prestans
conforms_to_template_filter
23,382
LDU_FT/hkff/FodtlMon/run
LDU_FT
[ "<BEGIN>\n## `eval`", "This method should be always called by subclasses\n :param valuation\n :param trace\n :return: Arguments evaluation\n<END>", "<BEGIN>\n## `eval`", "This method should be override to return some value\n :param valuation\n :param trace\n :return:\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Run main monitor and all sub monitors :param : once :return:
"Run main monitor and all sub monitors\n :param : once\n :return:"
51
false
hkff/FodtlMon
run
23,383
LDU_FT/MacHu-GWU/macro-project/type_string
LDU_FT
[ "<BEGIN>\n## `learn_all_skill`", "在技能编辑界面学会所有的技能。运行脚本前, 将鼠标放在第一个技能的技能等级\n 的数字上, 并选中所有文本。然后运行此脚本, 并在1秒内切回到修改器界面。", " :param level: 技能等级\n :param master_level: 专精等级, 0是普通, 1是专家, 2是大师\n<END>", "<BEGIN>\n## `right_click`", "Right click at ``(x, y)`` on screen for ``n`` times.\n at begin.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the type_string API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Enter strings. **中文文档** 从键盘输入字符串, interval是字符间输入时间间隔, 单位是秒。
"Enter strings.\n\n **中文文档**\n\n 从键盘输入字符串, interval是字符间输入时间间隔, 单位是秒。"
125
false
MacHu-GWU/macro-project
type_string
23,384
LDU_FT/nephila/djangocms-helper/ensure_unicoded_and_unique
LDU_FT
[ "<BEGIN>\n## `run`", "Run commands in a plain django environment", " :param app: application\n :param argv: arguments (default to sys.argv)\n :param extra_args: list of extra arguments\n<END>", "<BEGIN>\n## `cms`", "Run commands in a django cMS environment", " :param app: application\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_unicoded_and_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_unicoded_and_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Iterate over args_list, make it unicode if needed and ensure that there are no duplicates. Returns list of unicoded arguments in the same order.
"Iterate over args_list, make it unicode if needed and ensure that there\n are no duplicates.\n Returns list of unicoded arguments in the same order."
25
false
nephila/djangocms-helper
ensure_unicoded_and_unique
23,385
LDU_FT/frictionlessdata/tableschema-py/ensure_dir
LDU_FT
[ "<BEGIN>\n## `primary_key`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `foreign_keys`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `add_field`", "https://github.com/frictionlessdata/tableschema-py#schema\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Ensure directory exists. Args: path(str): dir path
"Ensure directory exists.\n\n Args:\n path(str): dir path"
38
false
frictionlessdata/tableschema-py
ensure_dir
23,386
LDU_FT/kalekundert/nonstdlib/progress_color
LDU_FT
[ "<BEGIN>\n## `keep_on_one_line`", "Keep all the output generated within a with-block on one line. Whenever a \n new line would be printed, instead reset the cursor to the beginning of the \n line and print the new line without a line break.\n<END>", "<BEGIN>\n## `write_color`", "Write the given colored...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the progress_color API. 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 progress_color API. 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...
Display a simple, colored progress report.
"Display a simple, colored progress report."
28
false
kalekundert/nonstdlib
progress_color
23,387
LDU_FT/aiidateam/aiida-ase/_prepare_for_submission
LDU_FT
[ "<BEGIN>\n## `parse_from_calc`", "Parses the datafolder, stores results.\n This parser for this simple code does simply store in the DB a node\n representing the file of forces in real space\n<END>", "<BEGIN>\n## `get_calculator_impstr`", "Returns the import string for the calculator\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_for_submission 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 _prepare_for_submission API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
This is the routine to be called when you want to create the input files and related stuff with a plugin. :param tempfolder: a aiida.common.folders.Folder subclass where the plugin should put all its files. :param inputdict: a dictionary with the input nodes, ...
"This is the routine to be called when you want to create\n the input files and related stuff with a plugin.\n \n :param tempfolder: a aiida.common.folders.Folder subclass where\n the plugin should put all its files.\n :param inputdict: a dictionary with the input n...
13
false
aiidateam/aiida-ase
_prepare_for_submission
23,388
LDU_FT/msztolcman/versionner/save_version_and_update_files
LDU_FT
[ "<BEGIN>\n## `parse_args`", "Parse input arguments of script.", " :param args: list of parameters\n :type: argparse.Namespace\n :param cfg: configuration storage\n :type: Config\n<END>", "<BEGIN>\n## `_find_project_config_file`", "Find path to project-wide config file\n Search from current wo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_version_and_update_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_version_and_update_files API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Save version to version_file and commit changes if required :param cfg: :param version_file: :param version_to_save: :return:
"Save version to version_file and commit changes if required\n\n :param cfg:\n :param version_file:\n :param version_to_save:\n :return:"
61
false
msztolcman/versionner
save_version_and_update_files
23,389
LDU_FT/SKA-ScienceDataProcessor/integration-prototype/remove
LDU_FT
[ "<BEGIN>\n## `_check_status`", "SDP Status check.", " Do all the tests to determine, if the SDP state is\n \"broken\", what could be the cause, and return a\n suitable status message to be sent back by the calling\n function.\n<END>", "<BEGIN>\n## `allowed_transitions`", "Get target states allow...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Remove a Processing Block from the queue. Args: block_id (str):
"Remove a Processing Block from the queue.\n\n Args:\n block_id (str):"
573
false
SKA-ScienceDataProcessor/integration-prototype
remove
23,390
LDU_FT/HolmesNL/confidence/get
LDU_FT
[ "<BEGIN>\n## `_merge`", "Merges values in place from *right* into *left*.", " :param left: mapping to merge into\n :param right: mapping to merge from\n :param path: `list` of keys processed before (used for error reporting\n only, should only need to be provided by recursive calls)\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Gets a value for the specified path. :param path: the configuration key to fetch a value for, steps separated by the separator supplied to the constructor (default ``.``) :param default: a value to return if no value is found for the supplied path (``None`` is allowe...
"Gets a value for the specified path.\n\n :param path: the configuration key to fetch a value for, steps\n separated by the separator supplied to the constructor (default\n ``.``)\n :param default: a value to return if no value is found for the\n supplied path (``None`` is...
49
false
HolmesNL/confidence
get
23,391
LDU_FT/ayust/kitnirc/load_module
LDU_FT
[ "<BEGIN>\n## `on_line`", "Default handling for incoming lines.", " This handler will automatically manage the following IRC messages:", " PING:\n Responds with a PONG.\n PRIVMSG:\n Dispatches the PRIVMSG event.\n NOTICE:\n Dispatches the NOTICE event.\n MOTDSTART:\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_module API. 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 load_module API. 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...
Attempts to load the specified module. If successful, .loaded_modules[module_name] will be populated, and module_name will be added to the end of .module_ordering as well if it is not already present. Note that this function does NOT call start()/stop() on the module - in general, you d...
"Attempts to load the specified module.\n\n If successful, .loaded_modules[module_name] will be populated, and\n module_name will be added to the end of .module_ordering as well if\n it is not already present. Note that this function does NOT call\n start()/stop() on the module - in general,...
151
false
ayust/kitnirc
load_module
23,392
LDU_FT/sludgedesk/metoffer/text_forecast
LDU_FT
[ "<BEGIN>\n## `guidance_UV`", "Return Met Office guidance regarding UV exposure based on UV index\n<END>", "<BEGIN>\n## `parse_sitelist`", "Return list of Site instances from retrieved sitelist data\n<END>", "<BEGIN>\n## `get_nearest_site`", "Return a string which can be used as \"request\" in calls to loc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_forecast API. 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 text_forecast API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return textual forecast data for regions, national parks or mountain areas. field: metoffer.NATIONAL_PARK Data on national parks metoffer.REGIONAL_FORECAST Regional data (see REGIONS) metoffer.MOUNTAIN_AREA Data on mountain areas ...
"Return textual forecast data for regions, national parks or mountain\n areas.\n \n field:\n metoffer.NATIONAL_PARK Data on national parks\n metoffer.REGIONAL_FORECAST Regional data (see REGIONS)\n metoffer.MOUNTAIN_AREA Data on mountain ar...
33
false
sludgedesk/metoffer
text_forecast
23,393
LDU_FT/saltant-org/saltant-py/list
LDU_FT
[ "<BEGIN>\n## `sync`", "Sync this model with latest data on the saltant server.", " Note that in addition to returning the updated object, it also\n updates the existing object.", " Returns:\n :class:`saltant.models.base_task_type.BaseTaskType`:\n This task type i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
List model instances. Currently this gets *everything* and iterates through all possible pages in the API. This may be unsuitable for production environments with huge databases, so finer grained page support should likely be added at some point. Args: filters (dict...
"List model instances.\n\n Currently this gets *everything* and iterates through all\n possible pages in the API. This may be unsuitable for production\n environments with huge databases, so finer grained page support\n should likely be added at some point.\n\n Args:\n filt...
134
false
saltant-org/saltant-py
list
23,394
LDU_FT/Roastero/freshroastsr700/heat_setting
LDU_FT
[ "<BEGIN>\n## `fan_speed`", "Verifies the value is between 1 and 9 inclusively.\n<END>", "<BEGIN>\n## `heat_setting`", "Verifies that the heat setting is between 0 and 3.\n<END>", "<BEGIN>\n## `heater_level`", "Verifies that the heater_level is between 0 and heater_segments.\n Can only be called ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the heat_setting API. 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 heat_setting API. 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...
Verifies that the heat setting is between 0 and 3.
"Verifies that the heat setting is between 0 and 3."
61
false
Roastero/freshroastsr700
heat_setting
23,395
LDU_FT/cs50/lib50/check_dependencies
LDU_FT
[ "<BEGIN>\n## `push`", "Push to github.com/org/repo=username/slug if tool exists.\n Returns username, commit hash\n<END>", "<BEGIN>\n## `local`", "Create/update local copy of github.com/org/repo/branch.\n Returns path to local copy\n<END>", "<BEGIN>\n## `working_area`", "Copy all files to a temporary...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_dependencies 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 check_dependencies 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...
Check that dependencies are installed: - require git 2.7+, so that credential-cache--daemon ignores SIGHUP https://github.com/git/git/blob/v2.7.0/credential-cache--daemon.c
"Check that dependencies are installed:\n - require git 2.7+, so that credential-cache--daemon ignores SIGHUP\n https://github.com/git/git/blob/v2.7.0/credential-cache--daemon.c"
38
false
cs50/lib50
check_dependencies
23,396
LDU_FT/wbond/asn1crypto/_set_extensions
LDU_FT
[ "<BEGIN>\n## `_pep425_version`", ":return:\n A tuple of integers representing the Python version number\n<END>", "<BEGIN>\n## `_pep425_supports_manylinux`", ":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>", "<BEGIN>\n## `_pep425_get_abi`", ":return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_extensions API. 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_extensions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Sets common named extensions to private attributes and creates a list of critical extensions
"Sets common named extensions to private attributes and creates a list\n of critical extensions"
739
false
wbond/asn1crypto
_set_extensions
23,397
LDU_FT/leonidessaguisagjr/unicodeutil/_to_unicode_scalar_value
LDU_FT
[ "<BEGIN>\n## `preservesurrogates`", "Function for splitting a string into a list of characters, preserving surrogate pairs.", " In python 2, unicode characters above 0x10000 are stored as surrogate pairs. For example, the Unicode character\n u\"\\U0001e900\" is stored as the surrogate pair u\"\\ud83a\\ud...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _to_unicode_scalar_value 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 _to_unicode_scalar_value API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Helper function for converting a character or surrogate pair into a Unicode scalar value e.g. "\ud800\udc00" -> 0x10000 The algorithm can be found in older versions of the Unicode Standard. https://unicode.org/versions/Unicode3.0.0/ch03.pdf, Section 3.7, D28 Unicode scalar value: a number N from 0 to...
"Helper function for converting a character or surrogate pair into a Unicode scalar value e.g.\n \"\\ud800\\udc00\" -> 0x10000\n\n The algorithm can be found in older versions of the Unicode Standard.\n\n https://unicode.org/versions/Unicode3.0.0/ch03.pdf, Section 3.7, D28\n\n Unicode scalar value: a number...
86
false
leonidessaguisagjr/unicodeutil
_to_unicode_scalar_value
23,398
LDU_FT/shaiguitar/snowclient.py/update
LDU_FT
[ "<BEGIN>\n## `tablename_from_link`", "Helper method for URL's that look like /api/now/v1/table/FOO/sys_id etc.\n<END>", "<BEGIN>\n## `list`", "get a collection of records by table name.\n returns a collection of SnowRecord obj.\n<END>", "<BEGIN>\n## `get`", "get a single record by table name and sy...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
update a record via table api, kparams being the dict of PUT params to update. returns a SnowRecord obj.
"update a record via table api, kparams being the dict of PUT params to update.\n returns a SnowRecord obj."
26
false
shaiguitar/snowclient.py
update
23,399
LDU_FT/cjw85/myriad/imap_unordered
LDU_FT
[ "<BEGIN>\n## `make_server`", "Create a manager containing input and output queues, and a function\n to map inputs over. A connecting client can read the stored function,\n apply it to items in the input queue and post back to the output\n queue", " :param function: function to apply to inputs\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the imap_unordered API. 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 imap_unordered API. 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...
A iterator over a set of jobs. :param jobs: the items to pass through our function :param timeout: timeout between polling queues Results are yielded as soon as they are available in the output queue (up to the discretisation provided by timeout). Since the queues can be specif...
"A iterator over a set of jobs.\n\n :param jobs: the items to pass through our function\n :param timeout: timeout between polling queues\n\n Results are yielded as soon as they are available in the output\n queue (up to the discretisation provided by timeout). Since the\n queues can b...
15
false
cjw85/myriad
imap_unordered
23,400
LDU_FT/websocket-client/websocket-client/send_close
LDU_FT
[ "<BEGIN>\n## `parse_url`", "parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)", " url: url string.\n<END>", "<BEGIN>\n## `get_proxy_info`", "try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_close API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
send close data to the server. status: status code to send. see STATUS_XXX. reason: the reason to close. This must be string or bytes.
"send close data to the server.\n\n status: status code to send. see STATUS_XXX.\n\n reason: the reason to close. This must be string or bytes."
81
false
websocket-client/websocket-client
send_close
23,401
LDU_FT/emlazzarin/acrylic/rename
LDU_FT
[ "<BEGIN>\n## `change_sheet`", "Calling this method changes the sheet in anticipation for the\n next time you create an iterator.", " If you change the active sheet while iterating on a UnicodeReader\n instance, it will continue to iterate correctly until completion.\n The next time y...
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 ...
Renames a specific field, and preserves the underlying order.
"Renames a specific field, and preserves the underlying order."
94
false
emlazzarin/acrylic
rename
23,402
LDU_FT/martinpitt/python-dbusmock/Reset
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Reset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Reset the mock object state. Remove all mock objects from the bus and tidy up so the state is as if python-dbusmock had just been restarted. If the mock object was originally created with a template (from the command line, the Python API or by calling AddTemplate over D-Bus), it will be...
"Reset the mock object state.\n\n Remove all mock objects from the bus and tidy up so the state is as if\n python-dbusmock had just been restarted. If the mock object was\n originally created with a template (from the command line, the Python\n API or by calling AddTemplate over D-Bus), it w...
188
false
martinpitt/python-dbusmock
Reset
23,403
LDU_FT/dwavesystems/penaltymodel/_elimination_trees
LDU_FT
[ "<BEGIN>\n## `get_penalty_model`", "Factory function for penaltymodel_maxgap.", " Args:\n specification (penaltymodel.Specification): The specification\n for the desired penalty model.", " Returns:\n :class:`penaltymodel.PenaltyModel`: Penalty model with the given specification....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _elimination_trees 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 _elimination_trees 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...
From Theta and the decision variables, determine the elimination order and the induced trees.
"From Theta and the decision variables, determine the elimination order and the induced\n trees."
186
false
dwavesystems/penaltymodel
_elimination_trees
23,404
LDU_FT/bmweiner/skillful/set_speech_ssml
LDU_FT
[ "<BEGIN>\n## `timestamp`", "Validate timestamp specified by request.", " See `validate.request` for additional info.", " Args:\n stamp: str. Time request was made as ISO 8601 timestamp.\n tolerance: int. Number of seconds request remains valid from timestamp.", " Returns\n bool...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_speech_ssml API. 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_speech_ssml API. 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...
Set response output speech as SSML type. Args: ssml: str. Response speech used when type is 'SSML', should be formatted with Speech Synthesis Markup Language. Cannot exceed 8,000 characters.
"Set response output speech as SSML type.\n\n Args:\n ssml: str. Response speech used when type is 'SSML', should be formatted\n with Speech Synthesis Markup Language. Cannot exceed 8,000\n characters."
94
false
bmweiner/skillful
set_speech_ssml
23,405
LDU_FT/Vital-Fernandez/dazer/clean
LDU_FT
[ "<BEGIN>\n## `linfit`", "Least squares linear fit.", " Fit a straight line `f(x_true) = a + bx` to points `(x_true, y)`. Returns\n coefficients `a` and `b` that minimize the squared error.", " Parameters\n ----------\n x_true : array_like\n one dimensional array of `x_true` data with `n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean API. 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 clean API. 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...
Given the mask, we replace the actual problematic pixels with the masked 5x5 median value. This mimics what is done in L.A.Cosmic, but it's a bit harder to do in python, as there is no readymade masked median. So for now we do a loop... Saturated stars, if calculated, are also masked : they are ...
"Given the mask, we replace the actual problematic pixels with the masked 5x5 median value.\n This mimics what is done in L.A.Cosmic, but it's a bit harder to do in python, as there is no\n readymade masked median. So for now we do a loop...\n Saturated stars, if calculated, are also masked : they ...
228
false
Vital-Fernandez/dazer
clean
23,406
LDU_FT/Huong-nt/flask-rak/stop
LDU_FT
[ "<BEGIN>\n## `copy_func`", "Based on https://stackoverflow.com/a/30714299 (Aaron Hall)\n<END>", "<BEGIN>\n## `find_rak`", "Find our instance of Rak, navigating Local's and possible blueprints.\n<END>", "<BEGIN>\n## `init_app`", "Initializes Ask app by setting configuration variables and maps RAK route to ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API. 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 stop API. 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...
Send signal to stop the current stream playback
"Send signal to stop the current stream playback"
22
false
Huong-nt/flask-rak
stop
23,407
LDU_FT/achimnol/aiotools/apartial
LDU_FT
[ "<BEGIN>\n## `_main_ctxmgr`", "A decorator wrapper for :class:`ServerMainContextManager`", " Usage example:", " .. code:: python", " @aiotools.main\n def mymain():\n server_args = do_init()\n stop_sig = yield server_args\n if stop_sig == signal.SIGINT:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apartial API. 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 apartial API. 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...
Wraps a coroutine function with pre-defined arguments (including keyword arguments). It is an asynchronous version of :func:`functools.partial`.
"Wraps a coroutine function with pre-defined arguments (including keyword\n arguments). It is an asynchronous version of :func:`functools.partial`."
50
false
achimnol/aiotools
apartial
23,408
LDU_FT/Accelize/pycosio/_head
LDU_FT
[ "<BEGIN>\n## `_copy`", "Copies file from source to destination", " Args:\n src (str or file-like object): Source file.\n dst (str or file-like object): Destination file.\n src_is_storage (bool): Source is storage.\n dst_is_storage (bool): Destination is storage.\n<END>", "<BEGIN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _head API. 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 _head API. 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 object HTTP header. Args: client_kwargs (dict): Client arguments. Returns: dict: HTTP header.
"Returns object HTTP header.\n\n Args:\n client_kwargs (dict): Client arguments.\n\n Returns:\n dict: HTTP header."
498
false
Accelize/pycosio
_head
23,409
LDU_FT/ellmetha/django-machina/deconstruct
LDU_FT
[ "<BEGIN>\n## `recurseforumcontents`", "Iterates over the content nodes and renders the contained forum block for each node.\n<END>", "<BEGIN>\n## `forum_list`", "Renders the considered forum list.", " This will render the given list of forums by respecting the order and the depth of each\n forum in th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deconstruct API. 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 deconstruct API. 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...
As outlined in the Django 1.7 documentation, this method tells Django how to take an instance of a new field in order to reduce it to a serialized form. This can be used to configure what arguments need to be passed to the __init__() method of the field in order to re-create it. We use it in ord...
"As outlined in the Django 1.7 documentation, this method tells Django how to take an\n instance of a new field in order to reduce it to a serialized form. This can be used to\n configure what arguments need to be passed to the __init__() method of the field in order to\n re-create it. We use it in...
293
false
ellmetha/django-machina
deconstruct
23,410
LDU_FT/Mindwerks/worldengine/rivermap_update
LDU_FT
[ "<BEGIN>\n## `anti_alias`", "Execute the anti_alias operation steps times on the given map\n<END>", "<BEGIN>\n## `count_neighbours`", "Count how many neighbours of a coordinate are set to one.\n This uses the same principles as anti_alias, compare comments there.\n<END>", "<BEGIN>\n## `_calculate`", "S...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rivermap_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rivermap_update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Update the rivermap with the rainfall that is to become the waterflow
"Update the rivermap with the rainfall that is to become\n the waterflow"
63
false
Mindwerks/worldengine
rivermap_update
23,411
LDU_FT/GPflow/GPflow/scaled_euclid_dist
LDU_FT
[ "<BEGIN>\n## `multivariate_normal`", "Computes the log-density of a multivariate normal.\n :param x : Dx1 or DxN sample(s) for which we want the density\n :param mu : Dx1 or DxN mean(s) of the normal distribution\n :param L : DxD Cholesky decomposition of the covariance matrix\n :return p : (1,) or ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scaled_euclid_dist 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 scaled_euclid_dist 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...
Returns |(X - X2ᵀ)/lengthscales| (L2-norm).
"Returns |(X - X2ᵀ)/lengthscales| (L2-norm)."
589
false
GPflow/GPflow
scaled_euclid_dist
23,412
LDU_FT/google/mobly/_ReadPacket
LDU_FT
[ "<BEGIN>\n## `_parse_logline_timestamp`", "Parses a logline timestamp into a tuple.", " Args:\n t: Timestamp in logline format.", " Returns:\n An iterable of date and time elements in the order of month, day, hour,\n minute, second, microsecond.\n<END>", "<BEGIN>\n## `logline_time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ReadPacket API. 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 _ReadPacket API. 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...
Read a single data record as a string (without length or checksum).
"Read a single data record as a string (without length or checksum)."
593
false
google/mobly
_ReadPacket
23,413
LDU_FT/zalando/patroni/parse_request
LDU_FT
[ "<BEGIN>\n## `create_connection`", "This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_request API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Override parse_request method to enrich basic functionality of `BaseHTTPRequestHandler` class Original class can only invoke do_GET, do_POST, do_PUT, etc method implementations if they are defined. But we would like to have at least some simple routing mechanism, i.e.: GET /uri1/part2 request s...
"Override parse_request method to enrich basic functionality of `BaseHTTPRequestHandler` class\n\n Original class can only invoke do_GET, do_POST, do_PUT, etc method implementations if they are defined.\n But we would like to have at least some simple routing mechanism, i.e.:\n GET /uri1/part2 requ...
228
false
zalando/patroni
parse_request
23,414
LDU_FT/softwarefactory-project/distroinfo/strip_project_url
LDU_FT
[ "<BEGIN>\n## `get_info`", "Get data from distroinfo instance.", " :param apply_tag: apply supplied tag to info\n :param info_dicts: return packages and releases as dicts\n :return: parsed info metadata\n<END>", "<BEGIN>\n## `strip_project_url`", "strip proto:// | openstack/ prefixes and...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_project_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip_project_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
strip proto:// | openstack/ prefixes and .git | -distgit suffixes
"strip proto:// | openstack/ prefixes and .git | -distgit suffixes"
15
false
softwarefactory-project/distroinfo
strip_project_url
23,415
LDU_FT/litters/shrew/_add_documentation_link
LDU_FT
[ "<BEGIN>\n## `unlock_keychain`", "If the user is running via SSH, their Keychain must be unlocked first.\n<END>", "<BEGIN>\n## `save_password`", "Saves the given password in the user's keychain.", " :param entry: The entry in the keychain. This is a caller specific key.\n :param password: The pass...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_documentation_link 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_documentation_link API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
:param list links: List of links to append link of the form "Section: <link>", if link available :param str section: Name of the section (concept, command line options, API reference) :param str variable_name: Variable name in main module that should hold URL to documentation :param str de...
":param list links: List of links to append link of the form \"Section: <link>\", if link available\n :param str section: Name of the section (concept, command line options, API reference)\n :param str variable_name: Variable name in main module that should hold URL to documentation\n :param ...
46
false
litters/shrew
_add_documentation_link
23,416
LDU_FT/b3j0f/annotation/remove_mixin
LDU_FT
[ "<BEGIN>\n## `mixin_function_or_method`", "Mixin a routine into the target.", " :param routine: routine to mix in target.\n :param str name: mixin name. Routine name by default.\n :param bool isbound: If True (False by default), the mixin result is a\n bound method to target.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_mixin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_mixin API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Remove a mixin with name (and reference) from targetand returns the replaced one or None. :param mixedin: a mixedin value or the last defined mixedin if is None (by default). :param bool replace: If True (default), the removed mixedin replaces the current mixin.
"Remove a mixin with name (and reference) from targetand returns the\n replaced one or None.\n\n :param mixedin: a mixedin value or the last defined mixedin if is None\n (by default).\n :param bool replace: If True (default), the removed mixedin replaces\n the current mixin."
84
false
b3j0f/annotation
remove_mixin
23,417
LDU_FT/cgoldberg/sauceclient/get_siblings
LDU_FT
[ "<BEGIN>\n## `get_subaccounts`", "Get a list of sub accounts associated with a parent account.\n<END>", "<BEGIN>\n## `get_siblings`", "Get a list of sibling accounts associated with provided account.\n<END>", "<BEGIN>\n## `get_platforms`", "Get a list of objects describing all the OS and browser platforms...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_siblings API. 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_siblings API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
Get a list of sibling accounts associated with provided account.
"Get a list of sibling accounts associated with provided account."
19
false
cgoldberg/sauceclient
get_siblings
23,418
LDU_FT/moluwole/Bast/run
LDU_FT
[ "<BEGIN>\n## `get_config`", "Gets the config from the os.environ. This is used to create the config dict for use by the ORM\n :return: str, dict\n<END>", "<BEGIN>\n## `check_packages`", "Check if the driver for the user defined host is available. If it is not available, download it using PIP\n :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Checks if value is included within self.given_list. Keyword arguments: value str -- the value of the associated field to compare
"Checks if value is included within self.given_list.\n Keyword arguments:\n value str -- the value of the associated field to compare"
59
false
moluwole/Bast
run
23,419
LDU_FT/20c/twentyc.database/result
LDU_FT
[ "<BEGIN>\n## `set`", "Store data <data> index by key <key>", " Args", " key <string> couchbase document id\n data <dict> data to store\n<END>", "<BEGIN>\n## `dump`", "Retrieve object indexed by <key> and return it serialized\n<END>", "<BEGIN>\n## `Client`", "Return new database client", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return whether a REST couchdb operation was successful or not. On error will raise a RESTException
"Return whether a REST couchdb operation was successful or not.\n\n On error will raise a RESTException"
40
false
20c/twentyc.database
result
23,420
LDU_FT/MartinThoma/mpu/from_json
LDU_FT
[ "<BEGIN>\n## `timing`", "Measure the execution time of a function call and print the result.\n<END>", "<BEGIN>\n## `deprecated`", "Mark functions as deprecated.", " It will result in a warning being emitted when the function is used.\n<END>", "<BEGIN>\n## `get_currency`", "Convert an identifier for a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 from_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...
Create a Currency object from a JSON dump.
"Create a Currency object from a JSON dump."
255
false
MartinThoma/mpu
from_json
23,421
LDU_FT/rosenbrockc/fortpy/short_symbol
LDU_FT
[ "<BEGIN>\n## `setup_regex`", "Sets up the patterns and compiled regex objects for parsing types.\n<END>", "<BEGIN>\n## `parse_signature`", "Parses the specified line as a new version of the signature for 'element'.", " :arg statement: the string that has the new signature.\n :arg element: the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the short_symbol API. 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 short_symbol API. 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...
Gets the symbol for the current cursor *excluding* the last character under the cursor.
"Gets the symbol for the current cursor *excluding* the\n last character under the cursor."
929
false
rosenbrockc/fortpy
short_symbol
23,422
LDU_FT/biocore/mustached-octo-ironman/callback
LDU_FT
[ "<BEGIN>\n## `on_message`", "Accept a message that was published, process and forward", " Parameters\n ----------\n msg : str\n The message sent over the line", " Notes\n -----\n This method only handles messages where `message_type` is \"message\".\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the callback API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Accept a message that was published, process and forward Parameters ---------- msg : tuple, (str, str, str) The message sent over the line. The `tuple` is of the form: (message_type, channel, payload). Notes ----- This method only handles message...
"Accept a message that was published, process and forward\n\n Parameters\n ----------\n msg : tuple, (str, str, str)\n The message sent over the line. The `tuple` is of the form:\n (message_type, channel, payload).\n\n Notes\n -----\n This method only hand...
68
false
biocore/mustached-octo-ironman
callback
23,423
LDU_FT/audreyr/cookiecutter/determine_repo_dir
LDU_FT
[ "<BEGIN>\n## `expand_abbreviations`", "Expand abbreviations in a template name.", " :param template: The project template name.\n :param abbreviations: Abbreviation definitions.\n<END>", "<BEGIN>\n## `repository_has_cookiecutter_json`", "Determine if `repo_directory` contains a `cookiecutter.json` fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_repo_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the determine_repo_dir API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Locate the repository directory from a template reference. Applies repository abbreviations to the template reference. If the template refers to a repository URL, clone it. If the template is a path to a local repository, use it. :param template: A directory containing a project template directory, ...
"Locate the repository directory from a template reference.\n\n Applies repository abbreviations to the template reference.\n If the template refers to a repository URL, clone it.\n If the template is a path to a local repository, use it.\n\n :param template: A directory containing a project template direct...
129
false
audreyr/cookiecutter
determine_repo_dir
23,424
LDU_FT/cloudify-cosmo/repex/handle_path
LDU_FT
[ "<BEGIN>\n## `_get_all_files`", "Get all files for processing.", " This starts iterating from `base_dir` and checks for all files\n that look like `filename_regex` under `path` regex excluding\n all paths under the `excluded_paths` list, whether they are files\n or folders. `excluded_paths` are expl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_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 extra...
Iterate over all chosen files in a path :param dict pathobj: a dict of a specific path in the config :param dict variables: a dict of variables (can be None)
"Iterate over all chosen files in a path\n\n :param dict pathobj: a dict of a specific path in the config\n :param dict variables: a dict of variables (can be None)"
37
false
cloudify-cosmo/repex
handle_path
23,425
LDU_FT/PyMySQL/Tornado-MySQL/execute
LDU_FT
[ "<BEGIN>\n## `executemany`", "Run several data against one query", " PyMySQL can execute bulkinsert for query like 'INSERT ... VALUES (%s)'.\n In other form of queries, just run :meth:`execute` many times.\n<END>", "<BEGIN>\n## `fetchall`", "Fetch all, as per MySQLdb. Pretty useless for large ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API. 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 execute API. 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...
:return: Future[Cursor] :rtype: Future
":return: Future[Cursor]\n :rtype: Future"
56
false
PyMySQL/Tornado-MySQL
execute
23,426
LDU_FT/insomnia-lab/libreant/init_db
LDU_FT
[ "<BEGIN>\n## `get_def_conf`", "return default configurations as simple dict\n<END>", "<BEGIN>\n## `_load_paths`", "Goes recursevly through the given list of paths\n in order to find and pass all preset files to ```_load_preset()```\n<END>", "<BEGIN>\n## `_load_preset`", "load, validate and store a ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_db API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Initialize users database initialize database and create necessary tables to handle users oprations. :param dbURL: database url, as described in :func:`init_proxy`
"Initialize users database\n\n initialize database and create necessary tables\n to handle users oprations.\n\n :param dbURL: database url, as described in :func:`init_proxy`"
150
false
insomnia-lab/libreant
init_db
23,427
LDU_FT/wakatime/wakatime/_fileobj_to_fd
LDU_FT
[ "<BEGIN>\n## `wrap`", "[MS-NLMP] v28.0 2016-07-14", " 3.4.6 GSS_WrapEx()\n Emulates the GSS_Wrap() implementation to sign and seal messages if the correct flags\n are set.", " @param message: The message data that will be wrapped\n @return message: The message that has been ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fileobj_to_fd API. 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 _fileobj_to_fd API. 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 file descriptor from a file object. If given an integer will simply return that integer back.
"Return a file descriptor from a file object. If\n given an integer will simply return that integer back."
623
false
wakatime/wakatime
_fileobj_to_fd
23,428
LDU_FT/bitprophet/ssh/_compute_key
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 _compute_key API. 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 _compute_key API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
id is 'A' - 'F' for the various keys used by ssh
"id is 'A' - 'F' for the various keys used by ssh"
272
false
bitprophet/ssh
_compute_key
23,429
LDU_FT/adamrehn/ue4cli/_getThirdPartyLibs
LDU_FT
[ "<BEGIN>\n## `findArgs`", "Extracts the list of arguments that start with any of the specified prefix values\n<END>", "<BEGIN>\n## `stripArgs`", "Removes any arguments in the supplied list that are contained in the specified blacklist\n<END>", "<BEGIN>\n## `capture`", "Executes a child process and capture...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getThirdPartyLibs 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 _getThirdPartyLibs API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Runs UnrealBuildTool in JSON export mode and extracts the list of third-party libraries
"Runs UnrealBuildTool in JSON export mode and extracts the list of third-party libraries"
120
false
adamrehn/ue4cli
_getThirdPartyLibs
23,430
LDU_FT/ubernostrum/django-registration/get_user
LDU_FT
[ "<BEGIN>\n## `dispatch`", "Check that user signup is allowed before even bothering to\n dispatch or do other processing.\n<END>", "<BEGIN>\n## `get`", "The base activation logic; subclasses should leave this method\n alone and implement activate(), which is called from this\n method.\n<EN...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user API. 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_user API. 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...
Given the verified username, look up and return the corresponding user account if it exists, or raising ``ActivationError`` if it doesn't.
"Given the verified username, look up and return the\n corresponding user account if it exists, or raising\n ``ActivationError`` if it doesn't."
20
false
ubernostrum/django-registration
get_user
23,431
LDU_FT/getnikola/coil/serve_coil_assets
LDU_FT
[ "<BEGIN>\n## `orphans_single`", "Remove all orphans in the site, in the single user-mode.\n<END>", "<BEGIN>\n## `password_hash`", "Hash the password, using bcrypt+sha256.", " .. versionchanged:: 1.1.0", " :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve_coil_assets API. 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 serve_coil_assets API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Serve Coil assets. This is meant to be used ONLY by the internal dev server. Please configure your web server to handle requests to this URL:: /coil_assets/ => coil/data/coil_assets
"Serve Coil assets.\n\n This is meant to be used ONLY by the internal dev server.\n Please configure your web server to handle requests to this URL::\n\n /coil_assets/ => coil/data/coil_assets"
68
false
getnikola/coil
serve_coil_assets
23,432
LDU_FT/robinandeer/puzzle/_format_variant
LDU_FT
[ "<BEGIN>\n## `individual_dict`", "Return a dict with ind_id as key and Individual as values.\n<END>", "<BEGIN>\n## `_get_genes`", "Add the genes for a variant", " Get the hgnc symbols from all transcripts and add them\n to the variant.", " Args:\n variant (dict): A variant ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_variant API. 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 _format_variant API. 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 a puzzle variant from a gemini variant Args: case_id (str): related case id gemini_variant (GeminiQueryRow): The gemini variant individual_objs (list(dict)): A list of Individuals index(int): The index of the variant Returns:...
"Make a puzzle variant from a gemini variant\n\n Args:\n case_id (str): related case id\n gemini_variant (GeminiQueryRow): The gemini variant\n individual_objs (list(dict)): A list of Individuals\n index(int): The index of the variant\n\n ...
306
false
robinandeer/puzzle
_format_variant
23,433
LDU_FT/icometrix/dicom2nifti/apply_scaling
LDU_FT
[ "<BEGIN>\n## `_get_gdcmconv`", "Get the full path to gdcmconv.\n If not found raise error\n<END>", "<BEGIN>\n## `compress_directory`", "This function can be used to convert a folder of jpeg compressed images to an uncompressed ones", " :param dicom_directory: directory of dicom files to compress\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_scaling API. 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 apply_scaling API. 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...
Rescale the data based on the RescaleSlope and RescaleOffset Based on the scaling from pydicomseries :param dicom_headers: dicom headers to use to retreive the scaling factors :param data: the input data
"Rescale the data based on the RescaleSlope and RescaleOffset\n Based on the scaling from pydicomseries\n\n :param dicom_headers: dicom headers to use to retreive the scaling factors\n :param data: the input data"
243
false
icometrix/dicom2nifti
apply_scaling
23,434
LDU_FT/ECESeniorDesign/lazy_record/insert
LDU_FT
[ "<BEGIN>\n## `does_not_mutate`", "Prevents methods from mutating the receiver\n<END>", "<BEGIN>\n## `find_by`", "Find first record subject to restrictions in +kwargs+, raising\n RecordNotFound if no such record exists.\n<END>", "<BEGIN>\n## `first`", "Returns the first record in the query (sorting ...
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 passed +data+ into the table. Raises Invalid if a where clause is present (i.e. no INSERT INTO table WHERE)
"Insert the passed +data+ into the table. Raises Invalid if a where\n clause is present (i.e. no INSERT INTO table WHERE)"
78
false
ECESeniorDesign/lazy_record
insert
23,435
LDU_FT/joke2k/faker/file_path
LDU_FT
[ "<BEGIN>\n## `checksum`", "Calculates the checksum char used for the 16th char.\n Author: Vincenzo Palazzo\n<END>", "<BEGIN>\n## `binary`", "Returns random binary blob.", " Default blob size is 1 Mb.\n<END>", "<BEGIN>\n## `md5`", "Calculates the md5 hash of a given string\n :example 'cf...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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. The extract...
:param category: audio|image|office|text|video :param extension: file extension :param depth: depth of the file (depth >= 0)
":param category: audio|image|office|text|video\n :param extension: file extension\n :param depth: depth of the file (depth >= 0)"
334
false
joke2k/faker
file_path
23,436
LDU_FT/ranaroussi/qtpylib/load_cli_args
LDU_FT
[ "<BEGIN>\n## `load_cli_args`", "Parse command line arguments and return only the non-default ones", " :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>", "<BEGIN>\n## `run`", "Starts the reporting module", " Makes the dashboard web app available vi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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. The ext...
Parse command line arguments and return only the non-default ones :Retruns: dict a dict of any non-default args passed on the command-line.
"Parse command line arguments and return only the non-default ones\n\n :Retruns: dict\n a dict of any non-default args passed on the command-line."
155
false
ranaroussi/qtpylib
load_cli_args
23,437
LDU_FT/peterwittek/ncpol2sdpa/separate_scalar_factor
LDU_FT
[ "<BEGIN>\n## `read_sdpa_out`", "Helper function to parse the output file of SDPA.", " :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the separate_scalar_factor 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 separate_scalar_factor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Construct a monomial with the coefficient separated from an element in a polynomial.
"Construct a monomial with the coefficient separated\n from an element in a polynomial."
217
false
peterwittek/ncpol2sdpa
separate_scalar_factor
23,438
LDU_FT/tethysplatform/condorpy/set_cwd
LDU_FT
[ "<BEGIN>\n## `_get_all_descendants`", "traverses all descendants nodes\n :raises: CircularDependency if self is contained in descendants\n :return: a set containing all descendant nodes\n<END>", "<BEGIN>\n## `set_scheduler`", "Defines the remote scheduler", " Args:\n host (st...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cwd API. 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 set_cwd API. 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...
Decorator to set the specified working directory to execute the function, and then restore the previous cwd.
"Decorator to set the specified working directory to execute the function, and then restore the previous cwd."
52
false
tethysplatform/condorpy
set_cwd
23,439
LDU_FT/NikolayDachev/jadm/save_host_keys
LDU_FT
[ "<BEGIN>\n## `recv`", "Read from the standard output of the forked program.", " :param int size: how many chars should be read", " :return: the length of the read content, as an `int`\n<END>", "<BEGIN>\n## `generate`", "Generate a new private DSS key. This factory function can be used to\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_host_keys API. 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 save_host_keys API. 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...
Save the host keys back to a file. Only the host keys loaded with `load_host_keys` (plus any added directly) will be saved -- not any host keys loaded with `load_system_host_keys`. :param str filename: the filename to save to :raises IOError: if the file could not be written
"Save the host keys back to a file. Only the host keys loaded with\n `load_host_keys` (plus any added directly) will be saved -- not any\n host keys loaded with `load_system_host_keys`.\n\n :param str filename: the filename to save to\n\n :raises IOError: if the file could not be written"
141
false
NikolayDachev/jadm
save_host_keys
23,440
LDU_FT/heuer/segno/score_n3
LDU_FT
[ "<BEGIN>\n## `make`", "\\\n Creates a (Micro) QR Code.", " This is main entry point to create QR Codes and Micro QR Codes.", " Aside from `content`, all parameters are optional and an optimal (minimal)\n (Micro) QR Code with a maximal error correction level (minimum \"M\") is\n generated.", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score_n3 API. 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 score_n3 API. 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...
\ Implements the penalty score feature 3. ISO/IEC 18004:2015(E) -- 7.8.3 Evaluation of data masking results - Table 11 (page 54) ========================================= ======================== ====== Feature Evaluation condition Points =============...
"\\\n Implements the penalty score feature 3.\n\n ISO/IEC 18004:2015(E) -- 7.8.3 Evaluation of data masking results - Table 11 (page 54)\n\n ========================================= ======================== ======\n Feature Evaluation condition Points\n ====...
436
false
heuer/segno
score_n3
23,441
LDU_FT/aiven/pghoard/replication_connection_string_and_slot_using_pgpass
LDU_FT
[ "<BEGIN>\n## `atomic_create_file`", "Open a temporary file for writing, rename to final name when done\n<END>", "<BEGIN>\n## `_stream_blob`", "Streams contents of given key to given fileobj. Data is read sequentially in chunks\n without any seeks. This requires duplicating some functionality of the Azu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replication_connection_string_and_slot_using_pgpass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replication_connection_string_and_slot_using_pgpass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <E...
Like `connection_string_and_slot_using_pgpass` but returns a connection string for a replication connection.
"Like `connection_string_and_slot_using_pgpass` but returns a\n connection string for a replication connection."
66
false
aiven/pghoard
replication_connection_string_and_slot_using_pgpass
23,442
LDU_FT/Crypto-toolbox/bitex/_handle_subscribed
LDU_FT
[ "<BEGIN>\n## `_restart_thread`", "Restarts subscription threads if their connection drops.\n :return:\n<END>", "<BEGIN>\n## `_subscription_thread`", "Thread Method, running the connection for each endpoint.\n :param endpoint:\n :return:\n<END>", "<BEGIN>\n## `start`", "Starts threads....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_subscribed 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 _handle_subscribed 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...
Handles responses to subscribe() commands - registers a channel id with the client and assigns a data handler to it. :param chanId: int, represent channel id as assigned by server :param channel: str, represents channel name
"Handles responses to subscribe() commands - registers a channel id with\n the client and assigns a data handler to it.\n :param chanId: int, represent channel id as assigned by server\n :param channel: str, represents channel name"
79
false
Crypto-toolbox/bitex
_handle_subscribed
23,443
LDU_FT/peterbrittain/asciimatics/update
LDU_FT
[ "<BEGIN>\n## `reset`", "Reset the scene ready for playing.", " :param old_scene: The previous version of this Scene that was running before the\n application reset - e.g. due to a screen resize.\n :param screen: New screen to use if old_scene is not None.\n<END>", "<BEGIN>\n## `add_ef...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Process the animation effect for the specified frame number. :param frame_no: The index of the frame being generated.
"Process the animation effect for the specified frame number.\n\n :param frame_no: The index of the frame being generated."
355
false
peterbrittain/asciimatics
update
23,444
LDU_FT/google/mobly/add_error
LDU_FT
[ "<BEGIN>\n## `_parse_logline_timestamp`", "Parses a logline timestamp into a tuple.", " Args:\n t: Timestamp in logline format.", " Returns:\n An iterable of date and time elements in the order of month, day, hour,\n minute, second, microsecond.\n<END>", "<BEGIN>\n## `logline_time...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_error API. 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 add_error API. 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...
Record an error from expect APIs. This method generates a position stamp for the expect. The stamp is composed of a timestamp and the number of errors recorded so far. Args: error: Exception or signals.ExceptionRecord, the error to add.
"Record an error from expect APIs.\n\n This method generates a position stamp for the expect. The stamp is\n composed of a timestamp and the number of errors recorded so far.\n\n Args:\n error: Exception or signals.ExceptionRecord, the error to add."
593
false
google/mobly
add_error
23,445
LDU_FT/evansde77/dockerstache/replicate_directory_tree
LDU_FT
[ "<BEGIN>\n## `run`", "_run_", " Run the dockerstache process to render templates\n based on the options provided", " If extend_context is passed as options it will be used to\n extend the context with the contents of the dictionary provided\n via context.update(extend_context)\n<END>", "<BEGI...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replicate_directory_tree 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 replicate_directory_tree API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
_replicate_directory_tree_ clone dir structure under input_dir into output dir All subdirs beneath input_dir will be created under output_dir :param input_dir: path to dir tree to be cloned :param output_dir: path to new dir where dir structure will be created
"_replicate_directory_tree_\n\n clone dir structure under input_dir into output dir\n All subdirs beneath input_dir will be created under\n output_dir\n :param input_dir: path to dir tree to be cloned\n :param output_dir: path to new dir where dir structure will\n be created"
45
false
evansde77/dockerstache
replicate_directory_tree
23,446
LDU_FT/xapple/plumbing/get_next_item
LDU_FT
[ "<BEGIN>\n## `plot_and_save`", "Used when the plot method defined does not create a figure nor calls save_plot\n Then the plot method has to use self.fig\n<END>", "<BEGIN>\n## `plot`", "An example plot function. You have to subclass this method.\n<END>", "<BEGIN>\n## `count_processors`", "How many ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next_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 ext...
Gets the next item of an iterable. If the iterable is exhausted, returns None.
"Gets the next item of an iterable.\n If the iterable is exhausted, returns None."
150
false
xapple/plumbing
get_next_item
23,447
LDU_FT/naphatkrit/click-extensions/ensure_obj
LDU_FT
[ "<BEGIN>\n## `private_dir_path`", "Returns the private directory path", " :param str app_name: the name of the app", " :rtype: str\n :returns: directory path\n<END>", "<BEGIN>\n## `ensure_private_dir_exists`", "Ensures that the private directory exists and is a directory.", " :param str app_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_obj API. 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 ensure_obj API. 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...
A decorator that ensures context.obj exists. If it doesn't, a new dict() is created and stored as obj.
"A decorator that ensures context.obj exists. If it doesn't,\n a new dict() is created and stored as obj."
25
false
naphatkrit/click-extensions
ensure_obj
23,448
LDU_FT/awacha/sastool/readmarheader
LDU_FT
[ "<BEGIN>\n## `readB1logfile`", "Read B1 logfile (*.log)", " Inputs:\n filename: the file name", " Output: A dictionary.\n<END>", "<BEGIN>\n## `writeB1logfile`", "Write a header structure into a B1 logfile.", " Inputs:\n filename: name of the file.\n data: header dictionary"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readmarheader API. 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 readmarheader API. 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...
Read a header from a MarResearch .image file.
"Read a header from a MarResearch .image file."
426
false
awacha/sastool
readmarheader
23,449
LDU_FT/booktype/python-ooxml/serialize_image
LDU_FT
[ "<BEGIN>\n## `parse_drawing`", "Parse drawing element.", " We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>", "<BEGIN>\n## `parse_paragraph`", "Parse paragraph element.", " Some other elements could be found inside of paragraph element (math, li...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_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 e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_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 e...
Serialize image element. This is not abstract enough.
"Serialize image element.\n\n This is not abstract enough."
117
false
booktype/python-ooxml
serialize_image
23,450
LDU_FT/jaybaird/python-bloomfilter/fromfile
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a key to this bloom filter. If the key already exists in this\n filter it will return True. Otherwise False.", " >>> b = BloomFilter(capacity=100)\n >>> b.add(\"hello\")\n False\n >>> b.add(\"hello\")\n True\n >>> b.count\n 1\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fromfile API. 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 fromfile API. 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...
Read a bloom filter from file-object `f' serialized with ``BloomFilter.tofile''. If `n' > 0 read only so many bytes.
"Read a bloom filter from file-object `f' serialized with\n ``BloomFilter.tofile''. If `n' > 0 read only so many bytes."
16
false
jaybaird/python-bloomfilter
fromfile
23,451
LDU_FT/wtsi-hgi/consul-lock/validate_key
LDU_FT
[ "<BEGIN>\n## `get_consul_configuration_from_environment`", "Gets configuration on how to connect to Consul from the environment.\n :return: the configuration derived from the environment\n :raises KeyError: if a required environment variable has not been set\n<END>", "<BEGIN>\n## `create_logger`", "Crea...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_key API. 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 validate_key API. 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...
Validates the given key. :param key: the key to validate :raises InvalidKeyError: raised if the given key is invalid
"Validates the given key.\n :param key: the key to validate\n :raises InvalidKeyError: raised if the given key is invalid"
55
false
wtsi-hgi/consul-lock
validate_key
23,452
LDU_FT/bopo/mootdx/block
LDU_FT
[ "<BEGIN>\n## `bars`", "获取实时日K线数据", " :param symbol: 股票代码\n :param category: 数据类别\n :param market: 证券市场\n :param start: 开始位置\n :param offset: 每次获取条数\n :return: pd.dataFrame or None\n<END>", "<BEGIN>\n## `minute_his`", "分时历史数据", " :param market:\n :par...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
获取证券板块信息 :param tofile: :return: pd.dataFrame or None
"获取证券板块信息\n\n :param tofile:\n :return: pd.dataFrame or None"
62
false
bopo/mootdx
block
23,453
LDU_FT/micropython/micropython/exit_dfu
LDU_FT
[ "<BEGIN>\n## `ptr`", "Returns the numbered function (i.e. USART6) for this AF.\n<END>", "<BEGIN>\n## `run_loop`", "Start the loop.", " :param `leds`: Which LEDs to light up upon switch press.\n :type `leds`: sequence of LED objects\n<END>", "<BEGIN>\n## `find_c_file`", "Search vpaths for the c fil...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the exit_dfu API. 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 exit_dfu API. 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...
Exit DFU mode, and start running the program.
"Exit DFU mode, and start running the program."
54
false
micropython/micropython
exit_dfu
23,454
LDU_FT/Toilal/rebulk/raw
LDU_FT
[ "<BEGIN>\n## `formatters`", "Chain formatter functions.\n :param chained_formatters:\n :type chained_formatters:\n :return:\n :rtype:\n<END>", "<BEGIN>\n## `_default_conflict_solver`", "Default conflict solver for matches, shorter matches if they conflicts with longer ones", " :param conflict...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted doc...
Get the raw value of the match, without using hardcoded value nor formatter. :return: :rtype:
"Get the raw value of the match, without using hardcoded value nor formatter.\n :return:\n :rtype:"
174
false
Toilal/rebulk
raw
23,455
LDU_FT/pyslackers/sir-bot-a-lot/_start_plugins
LDU_FT
[ "<BEGIN>\n## `_configure`", "Configure the core of sirbot", " Merge the config with the default core config and configure logging.\n The default logging level is `INFO`\n<END>", "<BEGIN>\n## `_import_plugins`", "Import and register plugin in the plugin manager.", " The pluggy library ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start_plugins API. 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 _start_plugins API. 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...
Start the plugins by priority Start the plugins based on the priority and wait for them to be fully started before starting the next one. This ensure plugins can use a previously started one during startup.
"Start the plugins by priority\n\n Start the plugins based on the priority and wait for them to be fully\n started before starting the next one. This ensure plugins can use\n a previously started one during startup."
27
false
pyslackers/sir-bot-a-lot
_start_plugins
23,456
LDU_FT/mpg-age-bioinformatics/AGEpy/queryBM
LDU_FT
[ "<BEGIN>\n## `checkCytoscapeVersion`", "Checks cytoscape version", " :param host: cytoscape host address, default=cytoscape_host\n :param port: cytoscape port, default=1234", " :returns: cytoscape and api version\n<END>", "<BEGIN>\n## `cytoscape`", "General function for interacting with Cytoscape...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the queryBM API. 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 queryBM API. 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...
Queries BioMart. :param query_attributes: list of attributes to recover from BioMart :param query_dataset: dataset to query :param query_filter: one BioMart filter associated with the items being queried :param query_items: list of items to be queried (must assoiate with given filter) :param query_...
"Queries BioMart.\n\n :param query_attributes: list of attributes to recover from BioMart\n :param query_dataset: dataset to query\n :param query_filter: one BioMart filter associated with the items being queried\n :param query_items: list of items to be queried (must assoiate with given filter)\n :param...
237
false
mpg-age-bioinformatics/AGEpy
queryBM
23,457
LDU_FT/xtrementl/focus/add_block
LDU_FT
[ "<BEGIN>\n## `_new_token`", "Appends new token to token stream.", " `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>", "<BEGIN>\n## `_process_string`", "Process...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_block API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Adds a new block to the AST. `name` Block name. * Raises a ``ValueError`` exception if `name` is invalid or an existing block name matches value provided for `name`.
"Adds a new block to the AST.\n\n `name`\n Block name.\n\n * Raises a ``ValueError`` exception if `name` is invalid or\n an existing block name matches value provided for `name`."
413
false
xtrementl/focus
add_block
23,458
LDU_FT/olsoneric/pedemath/rotate_vec
LDU_FT
[ "<BEGIN>\n## `add_v3`", "Return a new Vec3 containing the sum of our x, y, z, and arg.", " If argument is a float or vec, addt it to our x, y, and z.\n Otherwise, treat it as a Vec3 and add arg.x, arg.y, and arg.z from\n our own x, y, and z.\n<END>", "<BEGIN>\n## `translate_v3`", "Return a new Vec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rotate_vec API. 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 rotate_vec API. 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...
https://code.google.com/p/kri/wiki/Quaternions v + 2.0*cross(q.xyz, cross(q.xyz,v) + q.w*v);
"https://code.google.com/p/kri/wiki/Quaternions\n v + 2.0*cross(q.xyz, cross(q.xyz,v) + q.w*v);"
74
false
olsoneric/pedemath
rotate_vec
23,459
LDU_FT/ivelum/djangoql/p_expression_logical
LDU_FT
[ "<BEGIN>\n## `apply_search`", "Applies search written in DjangoQL mini-language to given queryset\n<END>", "<BEGIN>\n## `get_options`", "Override this method to provide custom suggestion options\n<END>", "<BEGIN>\n## `get_lookup_value`", "Override this method to convert displayed values to lookup values\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_expression_logical 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 p_expression_logical API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
expression : expression logical expression
"expression : expression logical expression"
25
false
ivelum/djangoql
p_expression_logical
23,460
LDU_FT/psss/fmf/_initialize
LDU_FT
[ "<BEGIN>\n## `_initialize`", "Find metadata tree root, detect format version\n<END>", "<BEGIN>\n## `update`", "Update metadata, handle virtual hierarchy\n<END>", "<BEGIN>\n## `get`", "Get attribute value or return default", " Whole data dictionary is returned when no attribute provided.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize API. 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 _initialize API. 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...
Find metadata tree root, detect format version
"Find metadata tree root, detect format version"
28
false
psss/fmf
_initialize
23,461
LDU_FT/awacha/credolib/putlogo
LDU_FT
[ "<BEGIN>\n## `init_dirs`", "Initialize the directiories.", " Inputs:\n rootdir_or_loader: depends on the type:\n str:\n the root directory of the SAXSCtrl/CCT\n software, i.e. where the subfolders ``eval2d``, ``param``,\n ``images``, ``mask`` etc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the putlogo API. 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 putlogo API. 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...
Puts the CREDO logo at the bottom right of the current figure (or the figure given by the ``figure`` argument if supplied).
"Puts the CREDO logo at the bottom right of the current figure (or\n the figure given by the ``figure`` argument if supplied)."
55
false
awacha/credolib
putlogo
23,462
LDU_FT/aio-libs/aiomcache/flush_all
LDU_FT
[ "<BEGIN>\n## `acquire`", "Acquire connection from the pool, or spawn new one\n if pool maxsize permits.", " :return: ``tuple`` (reader, writer)\n<END>", "<BEGIN>\n## `release`", "Releases connection back to the pool.", " :param conn: ``namedtuple`` (reader, writer)\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush_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 extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush_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 extract...
Its effect is to invalidate all existing items immediately
"Its effect is to invalidate all existing items immediately"
50
false
aio-libs/aiomcache
flush_all
23,463
LDU_FT/onicagroup/runway/reverse_deployments
LDU_FT
[ "<BEGIN>\n## `fix_hyphen_commands`", "Update options to match their module names with underscores.\n<END>", "<BEGIN>\n## `calculate_hash_of_files`", "Return a hash of all of the given files at the given root.", " Adapted from stacker.hooks.aws_lambda; used according to its license:\n https://github.co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_deployments 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 reverse_deployments 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...
Reverse deployments and the modules/regions in them.
"Reverse deployments and the modules/regions in them."
130
false
onicagroup/runway
reverse_deployments
23,464
LDU_FT/esterhui/pypu/_update_config_sets
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 _update_config_sets 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_config_sets 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...
Loads set information from file and updates on flickr, only reads first line. Format is comma separated eg. travel, 2010, South Africa, Pretoria If files is None, will update all files in DB, otherwise will only update files that are in the flickr DB and files list
"Loads set information from file and updates on flickr, \n only reads first line. Format is comma separated eg.\n travel, 2010, South Africa, Pretoria\n If files is None, will update all files in DB, otherwise\n will only update files that are in the flickr DB and files list"
113
false
esterhui/pypu
_update_config_sets
23,465
LDU_FT/biplap-sarkar/pylimit/create
LDU_FT
[ "<BEGIN>\n## `get_connection`", "Gets a StrictRedis connection for normal redis or for redis sentinel based upon redis mode in configuration.", " :type is_read_only: bool\n :param is_read_only: In case of redis sentinel, it returns connection to slave", " :return: Returns a StrictRedis co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Creates a rate limiting rule with rate limiting period and attempt limit :param period: Rate limiting period in seconds :type period: int :param limit: Number of attempts permitted by rate limiting within a given period :type limit: int
"Creates a rate limiting rule with rate limiting period and attempt limit\n\n :param period: Rate limiting period in seconds\n :type period: int\n\n :param limit: Number of attempts permitted by rate limiting within a given period\n :type limit: int"
23
false
biplap-sarkar/pylimit
create
23,466
LDU_FT/coursera/courseraoauth2client/_authorize_new_tokens
LDU_FT
[ "<BEGIN>\n## `add_logging_parser`", "Build an argparse argument parser to parse the command line.\n<END>", "<BEGIN>\n## `set_logging_level`", "Computes and sets the logging level from the parsed arguments.\n<END>", "<BEGIN>\n## `authorize`", "Authorizes Coursera's OAuth2 client for using coursera.org API ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _authorize_new_tokens 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 _authorize_new_tokens API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Stands up a new localhost http server and retrieves new OAuth2 access tokens from the Coursera OAuth2 server.
"Stands up a new localhost http server and retrieves new OAuth2 access\n tokens from the Coursera OAuth2 server."
31
false
coursera/courseraoauth2client
_authorize_new_tokens
23,467
LDU_FT/martinpitt/python-dbusmock/AddAccessPoint
LDU_FT
[ "<BEGIN>\n## `AddAdapter`", "Convenience method to add a Bluetooth adapter", " You have to specify a device name which must be a valid part of an object\n path, e. g. \"hci0\", and an arbitrary system name (pretty hostname).", " Returns the new object path.\n<END>", "<BEGIN>\n## `AddDevice`", "Co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the AddAccessPoint API. 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 AddAccessPoint API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Add an access point to an existing WiFi device. You have to specify WiFi Device path, Access Point object name, ssid, hw_address, mode, frequency, rate, strength and security. For valid access point property values, please visit http://projects.gnome.org/NetworkManager/developers/api/09/spec.html#org.f...
"Add an access point to an existing WiFi device.\n\n You have to specify WiFi Device path, Access Point object name,\n ssid, hw_address, mode, frequency, rate, strength and security.\n For valid access point property values, please visit\n http://projects.gnome.org/NetworkManager/developers/api/09/spec.html...
188
false
martinpitt/python-dbusmock
AddAccessPoint
23,468
LDU_FT/mardix/flask-cloudy/get_url
LDU_FT
[ "<BEGIN>\n## `get_file_extension_type`", "Return the group associated to the file\n :param filename:\n :return: str\n<END>", "<BEGIN>\n## `get_driver_class`", "Return the driver class\n :param provider: str - provider name\n :return:\n<END>", "<BEGIN>\n## `get_provider_name`", "Return the prov...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_url API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Return the url :param secure: bool - To use https :param longurl: bool - On local, reference the local path with the domain ie: http://site.com/files/object.png otherwise /files/object.png :return: str
"Return the url \n :param secure: bool - To use https\n :param longurl: bool - On local, reference the local path with the domain\n ie: http://site.com/files/object.png otherwise /files/object.png\n :return: str"
33
false
mardix/flask-cloudy
get_url
23,469
LDU_FT/openstack/networking-cisco/update_port_statuses_cfg
LDU_FT
[ "<BEGIN>\n## `assign_hosting_device_to_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `unassign_hosting_device_from_cfg_agent`", "Make config agent handle an (unassigned) hosting device.\n<END>", "<BEGIN>\n## `update_subports`", "Set port attributes for trunk ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_port_statuses_cfg 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 update_port_statuses_cfg API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Update the operational statuses of a list of router ports. This is called by the Cisco cfg agent to update the status of a list of ports. :param context: contains user information :param port_ids: list of ids of all the ports for the given status :param status: PORT_STATUS_ACTI...
"Update the operational statuses of a list of router ports.\n\n This is called by the Cisco cfg agent to update the status of a list\n of ports.\n\n :param context: contains user information\n :param port_ids: list of ids of all the ports for the given status\n :param status: PORT_STA...
1,517
true
openstack/networking-cisco
update_port_statuses_cfg
23,470
LDU_FT/quantum5/2048/_center_tile
LDU_FT
[ "<BEGIN>\n## `got_score`", "Update the best score if the new score is higher, returning the change.\n<END>", "<BEGIN>\n## `get_position`", "Given dt in [0, 1], return the current position of the tile.\n<END>", "<BEGIN>\n## `_make_tile`", "Renders a tile, according to its value, and background and foregrou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _center_tile API. 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 _center_tile API. 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...
Calculate the centre of a tile given the top-left corner and the size of the image.
"Calculate the centre of a tile given the top-left corner and the size of the image."
26
false
quantum5/2048
_center_tile
23,471
LDU_FT/wylee/runcommands/abs_path
LDU_FT
[ "<BEGIN>\n## `confirm`", "Prompt for confirmation.", " Confirmation can be aborted by typing in a no value instead of one\n of the yes values or with Ctrl-C.", " Args:\n prompt (str): Prompt to present user [\"Really?\"]\n color (string|Color|bool) Color to print prompt string; can be\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abs_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 abs_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...
Get abs. path for ``path``. ``path`` may be a relative or absolute file system path or an asset path. If ``path`` is already an abs. path, it will be returned as is. Otherwise, it will be converted into a normalized abs. path. If ``relative_to`` is passed *and* ``path`` is not absolute, the path w...
"Get abs. path for ``path``.\n\n ``path`` may be a relative or absolute file system path or an asset\n path. If ``path`` is already an abs. path, it will be returned as\n is. Otherwise, it will be converted into a normalized abs. path.\n\n If ``relative_to`` is passed *and* ``path`` is not absolute, the\n ...
111
false
wylee/runcommands
abs_path
23,472