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/angr/angr/get_dependants
LDU_FT
[ "<BEGIN>\n## `_alias_analysis`", "Perform a forward execution and perform alias analysis. Note that this analysis is fast, light-weight, and by no\n means complete. For instance, most arithmetic operations are not supported.", " - Depending on user settings, stack pointer and stack base pointer wi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dependants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_dependants API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return a list of nodes that are control dependent on the given node in the control dependence graph
"Return a list of nodes that are control dependent on the given node in the control dependence graph"
2,448
true
angr/angr
get_dependants
4,873
LDU_FT/adamcharnock/swiftwind/_is_billing_complete
LDU_FT
[ "<BEGIN>\n## `get_amount_normal`", "Get the amount due on the given billing cycle", " For regular recurring costs this is simply `fixed_amount`. For\n one-off costs this is the portion of `fixed_amount` for the given\n billing_cycle.\n<END>", "<BEGIN>\n## `get_amount_arrears_balance`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_billing_complete 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 _is_billing_complete API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Has the specified `fixed_amount` been billed? If so, we should not be enacting this RecurringCost.
"Has the specified `fixed_amount` been billed?\n\n If so, we should not be enacting this RecurringCost."
49
false
adamcharnock/swiftwind
_is_billing_complete
4,874
LDU_FT/qubell/contrib-python-qubell-client/entity
LDU_FT
[ "<BEGIN>\n## `request_upload_secret`", ":return: json with \"keyId\" as secret and \"url\" for posting key\n<END>", "<BEGIN>\n## `entity`", "CLI for tonomi.com using contrib-python-qubell-client", " To enable completion:", " eval \"$(_NOMI_COMPLETE=source nomi)\"\n<END>", "<BEGIN>\n## `import_ap...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the entity API. 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 entity API. 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 ...
CLI for tonomi.com using contrib-python-qubell-client To enable completion: eval "$(_NOMI_COMPLETE=source nomi)"
"CLI for tonomi.com using contrib-python-qubell-client\n\n To enable completion:\n\n eval \"$(_NOMI_COMPLETE=source nomi)\""
112
false
qubell/contrib-python-qubell-client
entity
4,875
LDU_FT/IS-ENES-Data/esgf-pid/make_handle_from_drsid_and_versionnumber
LDU_FT
[ "<BEGIN>\n## `logtrace`", "If esgfpid.defaults.LOG_TRACE_TO_DEBUG, messages are treated\n like debug messages (with an added [trace]).\n Otherwise, they are ignored.\n<END>", "<BEGIN>\n## `logdebug`", "Logs messages as DEBUG,\n unless show=True and esgfpid.defaults.LOG_SHOW_TO_INFO=True,\n (then i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_handle_from_drsid_and_versionnumber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_handle_from_drsid_and_versionnumber API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicat...
Create a handle string for a specific dataset, based on its dataset id and version number, and the prefix passed to the library at initializing. :param drs_id: The dataset id of the dataset. :param version_number: The version number of the dataset (as a string or integer, th...
"Create a handle string for a specific dataset, based\n on its dataset id and version number, and the prefix\n passed to the library at initializing.\n\n :param drs_id: The dataset id of the dataset.\n :param version_number: The version number of the dataset\n (as a string or inte...
67
false
IS-ENES-Data/esgf-pid
make_handle_from_drsid_and_versionnumber
4,876
LDU_FT/maxalbert/tohu/find_field_generator_templates
LDU_FT
[ "<BEGIN>\n## `augment_init_method`", "Replace the existing cls.__init__() method with a new one which\n also initialises the field generators and similar bookkeeping.\n<END>", "<BEGIN>\n## `find_field_generators`", "Return dictionary with the names and instances of\n all tohu.BaseGenerator occurring in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_generator_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_field_generator_templates API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Return dictionary with the names and instances of all tohu.BaseGenerator occurring in the given object's class & instance namespaces.
"Return dictionary with the names and instances of\n all tohu.BaseGenerator occurring in the given\n object's class & instance namespaces."
142
false
maxalbert/tohu
find_field_generator_templates
4,877
LDU_FT/adamrehn/ue4cli/getThirdPartyLibCompilerFlags
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 getThirdPartyLibCompilerFlags 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 getThirdPartyLibCompilerFlags API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc...
Retrieves the compiler flags for building against the Unreal-bundled versions of the specified third-party libraries
"Retrieves the compiler flags for building against the Unreal-bundled versions of the specified third-party libraries"
120
false
adamrehn/ue4cli
getThirdPartyLibCompilerFlags
4,878
LDU_FT/armstrong/armstrong.core.arm_sections/item_related_name
LDU_FT
[ "<BEGIN>\n## `filter_objects_by_section`", "Build a queryset containing all objects in the section subtree.\n<END>", "<BEGIN>\n## `get_section_relations`", "Find every relationship between section and the item model.\n<END>", "<BEGIN>\n## `item_related_name`", "The ManyToMany field on the item class point...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_related_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_related_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
The ManyToMany field on the item class pointing to this class. If there is more than one field, this value will be None.
"The ManyToMany field on the item class pointing to this class.\n\n If there is more than one field, this value will be None."
17
false
armstrong/armstrong.core.arm_sections
item_related_name
4,879
LDU_FT/BD2KGenomics/protect/ascertain_cpu_share
LDU_FT
[ "<BEGIN>\n## `generate_unique_key`", "This module will take a master key and a url, and then make a new key specific to the url, based\n off the master.\n :param str master_key: Path to the master key used for encryption.\n :param str url: Full URL to the potential file location in S3.\n :returns new_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ascertain_cpu_share 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 ascertain_cpu_share 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...
Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat). :param max_cores: The user-specified max :return: The number of cpus allowed for each high-compte job instance :rtype: int
"Ascertain the number of cpus allowed for each high-compte job instance (bwa, star, rsem, phlat).\n\n :param max_cores: The user-specified max\n :return: The number of cpus allowed for each high-compte job instance\n :rtype: int"
510
false
BD2KGenomics/protect
ascertain_cpu_share
4,880
LDU_FT/Shoobx/xmldiff/patch_file
LDU_FT
[ "<BEGIN>\n## `diff_main`", "Find the differences between two texts. Simplifies the problem by\n stripping any common prefix or suffix off the texts before diffing.", " Args:\n text1: Old string to be diffed.\n text2: New string to be diffed.\n checklines: Optional speedup flag. If prese...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
Takes two filenames or streams, one with XML the other a diff
"Takes two filenames or streams, one with XML the other a diff"
146
false
Shoobx/xmldiff
patch_file
4,881
LDU_FT/sryza/spark-timeseries/time_series_rdd_from_observations
LDU_FT
[ "<BEGIN>\n## `fit_model`", "Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_series_rdd_from_observations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_series_rdd_from_observations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ...
Instantiates a TimeSeriesRDD from a DataFrame of observations. An observation is a row containing a timestamp, a string key, and float value. Parameters ---------- dt_index : DateTimeIndex The index of the RDD to create. Observations not contained in this index will be ignored. df : DataFr...
"Instantiates a TimeSeriesRDD from a DataFrame of observations.\n\n An observation is a row containing a timestamp, a string key, and float value.\n\n Parameters\n ----------\n dt_index : DateTimeIndex\n The index of the RDD to create. Observations not contained in this index will be ignored.\n df...
137
false
sryza/spark-timeseries
time_series_rdd_from_observations
4,882
LDU_FT/dvdotsenko/jsonrpc.py/process_method
LDU_FT
[ "<BEGIN>\n## `clean_dict_keys`", "Convert all keys of the dict 'd' to (ascii-)strings.", " :Raises: UnicodeEncodeError\n<END>", "<BEGIN>\n## `json_dumps`", "A rewrap of json.dumps done for one reason - to inject a custom `cls` kwarg", " :param obj:\n :param kwargs:\n :return:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_method API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_method API. 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...
Executes the actual method with args, kwargs provided. This step is broken out of the process_requests flow to allow for ease of overriding the call in your subclass of this class. In some cases it's preferable to make callee aware of the request_id and easily overridable caller method...
"Executes the actual method with args, kwargs provided.\n\n This step is broken out of the process_requests flow to\n allow for ease of overriding the call in your subclass of this class.\n\n In some cases it's preferable to make callee aware of the request_id\n and easily overridable caller...
58
false
dvdotsenko/jsonrpc.py
process_method
4,883
LDU_FT/django-fluent/django-fluent-comments/get_context_data
LDU_FT
[ "<BEGIN>\n## `moderate_model`", "Register a parent model (e.g. ``Blog`` or ``Article``) that should receive comment moderation.", " :param ParentModel: The parent model, e.g. a ``Blog`` or ``Article`` model.\n :param publication_date_field: The field name of a :class:`~django.db.models.DateTimeField` in t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_data API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
The main logic for the inclusion node, analogous to ``@register.inclusion_node``.
"The main logic for the inclusion node, analogous to ``@register.inclusion_node``."
39
false
django-fluent/django-fluent-comments
get_context_data
4,884
LDU_FT/twosigma/marbles/assertCategoricalLevelNotIn
LDU_FT
[ "<BEGIN>\n## `get_stack_info`", "Capture locals, module name, filename, and line number from the\n stacktrace to provide the source of the assertion error and\n formatted note.\n<END>", "<BEGIN>\n## `assertBetween`", "Fail if ``obj`` is not between ``lower`` and ``upper``.", " If ``strict=True`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assertCategoricalLevelNotIn 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 assertCategoricalLevelNotIn API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Fail if ``level`` is in ``levels``. This is equivalent to ``self.assertNotIn(level, levels)``. Parameters ---------- level levels : iterable msg : str If not provided, the :mod:`marbles.mixins` or :mod:`unittest` standard message will be used. ...
"Fail if ``level`` is in ``levels``.\n\n This is equivalent to ``self.assertNotIn(level, levels)``.\n\n Parameters\n ----------\n level\n levels : iterable\n msg : str\n If not provided, the :mod:`marbles.mixins` or\n :mod:`unittest` standard message will ...
199
false
twosigma/marbles
assertCategoricalLevelNotIn
4,885
LDU_FT/saltstack/salt-pylint/process_module
LDU_FT
[ "<BEGIN>\n## `_parse_requirements_file`", "Parse requirements.txt and return list suitable for\n passing to ``install_requires`` parameter in ``setup()``.\n<END>", "<BEGIN>\n## `visit_functiondef`", "Verifies no logger statements inside __virtual__\n<END>", "<BEGIN>\n## `process_module`", "process a mo...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_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 ex...
process a module the module's content is accessible via node.file_stream object
"process a module\n\n the module's content is accessible via node.file_stream object"
26
false
saltstack/salt-pylint
process_module
4,886
LDU_FT/emdb-empiar/ahds/detect_format
LDU_FT
[ "<BEGIN>\n## `detect_format`", "Detect Amira file format (AmiraMesh or HyperSurface)", " :param str fn: file name\n :param int format_bytes: number of bytes in which to search for the format [default: 50]\n :param bool verbose: verbose (default) or not\n :return str file_format: either ``AmiraMesh``...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect_format API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Detect Amira file format (AmiraMesh or HyperSurface) :param str fn: file name :param int format_bytes: number of bytes in which to search for the format [default: 50] :param bool verbose: verbose (default) or not :return str file_format: either ``AmiraMesh`` or ``HyperSurface``
"Detect Amira file format (AmiraMesh or HyperSurface)\n \n :param str fn: file name\n :param int format_bytes: number of bytes in which to search for the format [default: 50]\n :param bool verbose: verbose (default) or not\n :return str file_format: either ``AmiraMesh`` or ``HyperSurface``"
34
false
emdb-empiar/ahds
detect_format
4,887
LDU_FT/matthew-brett/delocate/wheel_libs
LDU_FT
[ "<BEGIN>\n## `back_tick`", "Run command `cmd`, return stdout, or stdout, stderr if `ret_err`", " Roughly equivalent to ``check_output`` in Python 2.7", " Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wheel_libs API. 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 wheel_libs API. 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 analysis of library dependencies with a Python wheel Use this routine for a dump of the dependency tree. Parameters ---------- wheel_fname : str Filename of wheel filt_func : None or callable, optional If None, inspect all files for library dependencies. If callable, ...
"Return analysis of library dependencies with a Python wheel\n\n Use this routine for a dump of the dependency tree.\n\n Parameters\n ----------\n wheel_fname : str\n Filename of wheel\n filt_func : None or callable, optional\n If None, inspect all files for library dependencies. If callabl...
157
false
matthew-brett/delocate
wheel_libs
4,888
LDU_FT/gmr/helper/_remove_debug_handlers
LDU_FT
[ "<BEGIN>\n## `operating_system`", "Return a string identifying the operating system the application\n is running on.", " :rtype: str\n<END>", "<BEGIN>\n## `start`", "Daemonize if the process is not already running.\n<END>", "<BEGIN>\n## `gid`", "Return the group id that the daemon will run with", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_debug_handlers 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 _remove_debug_handlers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Remove any handlers with an attribute of debug_only that is True and remove the references to said handlers from any loggers that are referencing them.
"Remove any handlers with an attribute of debug_only that is True and\n remove the references to said handlers from any loggers that are\n referencing them."
77
false
gmr/helper
_remove_debug_handlers
4,889
LDU_FT/kislyuk/ensure/is_
LDU_FT
[ "<BEGIN>\n## `ensure_annotations`", "Decorator to be used on functions with annotations. Runs type checks to enforce annotations. Raises\n :class:`EnsureError` if any argument passed to *f* is not of the type specified by the annotation. Also raises\n :class:`EnsureError` if the return value of *f* is not o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_ API. 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 is_ API. 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...
Ensures :attr:`subject` is *other* (object identity check).
"Ensures :attr:`subject` is *other* (object identity check)."
81
false
kislyuk/ensure
is_
4,890
LDU_FT/zhexiao/ezhost/spark_install
LDU_FT
[ "<BEGIN>\n## `install_config_kafka`", "install and config kafka\n :return:\n<END>", "<BEGIN>\n## `install_config_elastic`", "install and config elasticsearch\n :return:\n<END>", "<BEGIN>\n## `install_config_logstash`", "install and config logstash\n :return:\n<END>", "<BEGIN>\n## `i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the spark_install API. 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 spark_install API. 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...
download and install spark :return:
"download and install spark\n :return:"
22
false
zhexiao/ezhost
spark_install
4,891
LDU_FT/sprockets/sprockets.mixins.http/_http_req_user_agent
LDU_FT
[ "<BEGIN>\n## `append_response`", "Append the response to the stack of responses.", " :param tornado.httpclient.HTTPResponse response: The HTTP response\n<END>", "<BEGIN>\n## `body`", "Returns the HTTP response body, deserialized if possible.", " :rtype: mixed\n<END>", "<BEGIN>\n## `links`"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _http_req_user_agent 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 _http_req_user_agent API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Return the User-Agent value to specify in HTTP requests, defaulting to ``service/version`` if configured in the application settings, or if used in a consumer, it will attempt to obtain a user-agent from the consumer's process. If it can not auto-set the User-Agent, it defaults to ``spro...
"Return the User-Agent value to specify in HTTP requests, defaulting\n to ``service/version`` if configured in the application settings,\n or if used in a consumer, it will attempt to obtain a user-agent from\n the consumer's process. If it can not auto-set the User-Agent, it\n defaults to `...
35
false
sprockets/sprockets.mixins.http
_http_req_user_agent
4,892
LDU_FT/Shapeways/coyote_framework/assert_in
LDU_FT
[ "<BEGIN>\n## `get_login_form_component`", "Initializes and returns the login form component", " @rtype: LoginForm\n @return: Initialized component\n<END>", "<BEGIN>\n## `objectify`", "Converts a dictionary into a named tuple (shallow)\n<END>", "<BEGIN>\n## `create_directory`", "Creates a d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_in API. 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 assert_in API. 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...
Calls smart_assert, but creates its own assertion closure using the expected and provided values with the 'in' operator
"Calls smart_assert, but creates its own assertion closure using\n the expected and provided values with the 'in' operator"
370
false
Shapeways/coyote_framework
assert_in
4,893
LDU_FT/jmurty/xml4h/filter
LDU_FT
[ "<BEGIN>\n## `ignore_whitespace_text_nodes`", "Find and delete any text nodes containing nothing but whitespace in\n in the given node and its descendents.", " This is useful for cleaning up excess low-value text nodes in a\n document DOM after parsing a pretty-printed XML document.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. 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 filter API. 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 ...
Apply filters to the set of nodes in this list. :param local_name: a local name used to filter the nodes. :type local_name: string or None :param name: a name used to filter the nodes. :type name: string or None :param ns_uri: a namespace URI used to filter the nodes. ...
"Apply filters to the set of nodes in this list.\n\n :param local_name: a local name used to filter the nodes.\n :type local_name: string or None\n :param name: a name used to filter the nodes.\n :type name: string or None\n :param ns_uri: a namespace URI used to filter the nodes.\n ...
155
false
jmurty/xml4h
filter
4,894
LDU_FT/btr1975/persistentdatatools/csv_to_dict
LDU_FT
[ "<BEGIN>\n## `verify_file_exists`", "Function to verify if a file exists\n Args:\n file_name: The name of file to check\n file_location: The location of the file, derive from the os module", " Returns: returns boolean True or False\n<END>", "<BEGIN>\n## `file_name_increase`", "Function t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csv_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the csv_to_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Function to import a csv as a dictionary Args: file_name: The name of the csv file file_location: The location of the file, derive from the os module Returns: returns a dictionary
"Function to import a csv as a dictionary\n Args:\n file_name: The name of the csv file\n file_location: The location of the file, derive from the os module\n\n Returns: returns a dictionary"
56
false
btr1975/persistentdatatools
csv_to_dict
4,895
LDU_FT/ShadowBlip/Neteria/retransmit
LDU_FT
[ "<BEGIN>\n## `listen`", "Starts the client listener to listen for server responses.", " Args:\n None", " Returns:\n None\n<END>", "<BEGIN>\n## `retransmit`", "Processes messages that have been delivered from the transport\n protocol.", " Args:\n dat...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retransmit API. 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 retransmit API. 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...
Processes messages that have been delivered from the transport protocol. Args: data (dict): A dictionary containing the packet data to resend. Returns: None Examples: >>> data {'method': 'REGISTER', 'address': ('192.168.0.20', 40080)}
"Processes messages that have been delivered from the transport\n protocol.\n\n Args:\n data (dict): A dictionary containing the packet data to resend.\n\n Returns:\n None\n\n Examples:\n >>> data\n {'method': 'REGISTER', 'address': ('192.168.0.20', 40080)...
122
false
ShadowBlip/Neteria
retransmit
4,896
LDU_FT/thilux/tvdb_client/query_param_string_from_option_args
LDU_FT
[ "<BEGIN>\n## `__get_header_with_auth`", "This private method returns the HTTP heder filled with the Authorization information with the user token.\n The token validity is monitored whenever this function is called, so according to the swagger page of TheTVDB\n (https://api.thetvdb.com/swagger) the t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_param_string_from_option_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query_param_string_from_option_args API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it...
From a dictionary of arguments to query string parameters, loops through ad arguments list and makes a query string. :param a2q_dict: a dictionary containing argument_name > query string parameter name. :param args_dict: a dictionary containing the argument_name > argument_value :return: a query string.
"From a dictionary of arguments to query string parameters, loops through ad arguments list and makes a query string.\n :param a2q_dict: a dictionary containing argument_name > query string parameter name.\n :param args_dict: a dictionary containing the argument_name > argument_value\n :return: a query string....
58
false
thilux/tvdb_client
query_param_string_from_option_args
4,897
LDU_FT/ivelum/djangoql/introspect
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 introspect API. 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 introspect API. 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...
Start with given model and recursively walk through its relationships. Returns a dict with all model labels and their fields found.
"Start with given model and recursively walk through its relationships.\n\n Returns a dict with all model labels and their fields found."
25
false
ivelum/djangoql
introspect
4,898
LDU_FT/aeguana/PyFileMaker/doScript
LDU_FT
[ "<BEGIN>\n## `key_dict`", "Returns dict from_dict['unicode_save_field'] = 'original key with unicode'\n<END>", "<BEGIN>\n## `makeFMData`", "Returns FMData structure which is initialized by given dictionary\n<END>", "<BEGIN>\n## `_setMaxRecords`", "Specifies the maximum number of records you want returned ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the doScript API. 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 doScript API. 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...
This function executes the script for given layout for the current db.
"This function executes the script for given layout for the current db."
52
false
aeguana/PyFileMaker
doScript
4,899
LDU_FT/awacha/credolib/filter_headers
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 filter_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Filter already loaded headers against some criterion. The criterion function must accept a single argument, which is an instance of sastool.classes2.header.Header, or one of its subclasses. The function must return True if the header is to be kept or False if it needs to be discarded. All manipulations...
"Filter already loaded headers against some criterion.\n\n The criterion function must accept a single argument, which is an instance\n of sastool.classes2.header.Header, or one of its subclasses. The function\n must return True if the header is to be kept or False if it needs to be\n discarded. All manipul...
55
false
awacha/credolib
filter_headers
4,900
LDU_FT/chinapnr/fishbase/join_url_params
LDU_FT
[ "<BEGIN>\n## `string`", "获取一个字符串的 MD5 值", " :param:\n * s: (string) 需要进行 hash 的字符串\n * salt: (string) 随机字符串,默认为 None\n :return:\n * result: (string) 32 位小写 MD5 值\n<END>", "<BEGIN>\n## `file`", "获取一个文件的 MD5 值", " :param:\n * filename: (string...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the join_url_params API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
根据传入的键值对,拼接 url 后面 ? 的参数,比如 ?key1=value1&key2=value2 :param: * dic: (dict) 参数键值对 :return: * result: (string) 拼接好的参数 举例如下:: print('--- splice_url_params demo ---') dic1 = {'key1': 'value1', 'key2': 'value2'} print(splice_url_params(dic1)) print('---') 执...
"根据传入的键值对,拼接 url 后面 ? 的参数,比如 ?key1=value1&key2=value2\n\n :param:\n * dic: (dict) 参数键值对\n :return:\n * result: (string) 拼接好的参数\n\n 举例如下::\n\n print('--- splice_url_params demo ---')\n dic1 = {'key1': 'value1', 'key2': 'value2'}\n print(splice_url_params(dic1))\n print(...
448
false
chinapnr/fishbase
join_url_params
4,901
LDU_FT/sixty-north/added-value/update
LDU_FT
[ "<BEGIN>\n## `make_repr_node`", "Render a Python object to text using the repr() function.", " :param rawtext: Text being replaced with link node.\n :param app: Sphinx application context\n :param prefixed_name: The dotted Python name for obj.\n :param obj: The Python object to be rendered to text.\...
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 with an ordered iterable of items. Args: iterable: An ordered iterable of items. The relative order of the items in this iterable will be respected in the TopoSet (in the absence of cycles).
"Update with an ordered iterable of items.\n\n Args:\n iterable: An ordered iterable of items. The relative\n order of the items in this iterable will be respected\n in the TopoSet (in the absence of cycles)."
66
false
sixty-north/added-value
update
4,902
LDU_FT/openstates/billy/legislator_inactive
LDU_FT
[ "<BEGIN>\n## `decimal_format`", "Format a decimal.Decimal like to 2 decimal places.\n<END>", "<BEGIN>\n## `notification_preference`", "Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>", "<BEGIN>\n## `committee_object`", "If the commi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the legislator_inactive 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 legislator_inactive 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...
Context: - vote_preview_row_template - old_roles - abbr - metadata - legislator - sources - sponsored_bills - legislator_votes - has_votes - nav_active Templates: - billy/web/public/legislator.html - billy/web/public/vo...
"Context:\n - vote_preview_row_template\n - old_roles\n - abbr\n - metadata\n - legislator\n - sources\n - sponsored_bills\n - legislator_votes\n - has_votes\n - nav_active\n\n Templates:\n - billy/web/public/legislator.html\n - bill...
168
false
openstates/billy
legislator_inactive
4,903
LDU_FT/opencivicdata/pupa/save_object
LDU_FT
[ "<BEGIN>\n## `items_differ`", "check whether or not jsonitems and dbitems differ\n<END>", "<BEGIN>\n## `resolve_json_id`", "Given an id found in scraped JSON, return a DB id for the object.", " params:\n json_id: id from json\n allow_no_match: just return None...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_object API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Save object to disk as JSON. Generally shouldn't be called directly.
"Save object to disk as JSON.\n\n Generally shouldn't be called directly."
48
false
opencivicdata/pupa
save_object
4,904
LDU_FT/MillionIntegrals/vel/initialize
LDU_FT
[ "<BEGIN>\n## `histogram_info`", "Return extra information about histogram\n<END>", "<BEGIN>\n## `sample`", "Sample from a greedy strategy with given q-value histogram\n<END>", "<BEGIN>\n## `sample_forward_transitions`", "Sample transitions from replay buffer with _forward steps_.\n That is, instead...
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 extrac...
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 extrac...
Initialize policy gradient from reinforcer settings
"Initialize policy gradient from reinforcer settings"
279
false
MillionIntegrals/vel
initialize
4,905
LDU_FT/bslatkin/dpxdt/register
LDU_FT
[ "<BEGIN>\n## `add`", "Adds a work item to a queue.", " Args:\n queue_name: Name of the queue to add the work item to.\n payload: Optional. Payload that describes the work to do as a string.\n If not a string and content_type is not provided, then this\n function assumes th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracte...
Registers this module as a worker with the given coordinator.
"Registers this module as a worker with the given coordinator."
180
false
bslatkin/dpxdt
register
4,906
LDU_FT/croach/django-simple-rest/to_html
LDU_FT
[ "<BEGIN>\n## `calculate_signature`", "Calculates the signature for the given request data.\n<END>", "<BEGIN>\n## `to_json`", "Serializes a python object as JSON", " This method uses the DJangoJSONEncoder to to ensure that python objects\n such as Decimal objects are properly serialized. It can also se...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_html API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Serializes a python object as HTML This method uses the to_json method to turn the given data object into formatted JSON that is displayed in an HTML page. If pygments in installed, syntax highlighting will also be applied to the JSON.
"Serializes a python object as HTML\n\n This method uses the to_json method to turn the given data object into\n formatted JSON that is displayed in an HTML page. If pygments in installed,\n syntax highlighting will also be applied to the JSON."
24
false
croach/django-simple-rest
to_html
4,907
LDU_FT/twitterdev/search-tweets-python/gen_rule_payload
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_rule_payload API. 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 gen_rule_payload API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Generates the dict or json payload for a PowerTrack rule. Args: pt_rule (str): The string version of a powertrack rule, e.g., "beyonce has:geo". Accepts multi-line strings for ease of entry. results_per_call (int): number of tweets or counts returned per API call. Th...
"Generates the dict or json payload for a PowerTrack rule.\n\n Args:\n pt_rule (str): The string version of a powertrack rule,\n e.g., \"beyonce has:geo\". Accepts multi-line strings\n for ease of entry.\n results_per_call (int): number of tweets or counts returned per API\n ...
88
false
twitterdev/search-tweets-python
gen_rule_payload
4,908
LDU_FT/romanz/trezor-agent/parse_config
LDU_FT
[ "<BEGIN>\n## `create_default_options_getter`", "Return current TTY and DISPLAY settings for GnuPG pinentry.\n<END>", "<BEGIN>\n## `write`", "Send and flush a single line to the subprocess' stdin.\n<END>", "<BEGIN>\n## `expect`", "Read a line and return it without required prefix.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extr...
Parse config file into a list of Identity objects.
"Parse config file into a list of Identity objects."
235
false
romanz/trezor-agent
parse_config
4,909
LDU_FT/sebdah/dynamic-dynamodb/main
LDU_FT
[ "<BEGIN>\n## `get_consumed_read_units_percent`", "Returns the number of consumed read units in percent", " :type table_name: str\n :param table_name: Name of the DynamoDB table\n :type lookback_window_start: int\n :param lookback_window_start: Relative start time for the CloudWatch metric\n :type...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
Main function called from dynamic-dynamodb
"Main function called from dynamic-dynamodb"
191
false
sebdah/dynamic-dynamodb
main
4,910
LDU_FT/thiagopbueno/rddl2tf/asin
LDU_FT
[ "<BEGIN>\n## `constant`", "Returns a constant `value` TensorFluent with given `dtype`.", " Args:\n value: The constant value.\n dtype: The output's data type.", " Returns:\n A constant TensorFluent.\n<END>", "<BEGIN>\n## `Bernoulli`", "Returns a TensorFluent ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asin API. 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 asin API. 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...
Returns a TensorFluent for the arcsin function. Args: x: The input fluent. Returns: A TensorFluent wrapping the arcsin function.
"Returns a TensorFluent for the arcsin function.\n\n Args:\n x: The input fluent.\n\n Returns:\n A TensorFluent wrapping the arcsin function."
297
false
thiagopbueno/rddl2tf
asin
4,911
LDU_FT/vimalloc/flask-jwt-extended/jwt_optional
LDU_FT
[ "<BEGIN>\n## `decode_token`", "Returns the decoded token (python dict) from an encoded JWT. This does all\n the checks to insure that the decoded token is valid before returning it.", " :param encoded_token: The encoded JWT to decode into a python dict.\n :param csrf_value: Expected CSRF double submit ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the jwt_optional API. 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 jwt_optional API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extr...
A decorator to optionally protect a Flask endpoint If an access token in present in the request, this will call the endpoint with :func:`~flask_jwt_extended.get_jwt_identity` having the identity of the access token. If no access token is present in the request, this endpoint will still be called, but ...
"A decorator to optionally protect a Flask endpoint\n\n If an access token in present in the request, this will call the endpoint\n with :func:`~flask_jwt_extended.get_jwt_identity` having the identity\n of the access token. If no access token is present in the request,\n this endpoint will still be called,...
71
false
vimalloc/flask-jwt-extended
jwt_optional
4,912
LDU_FT/poulp/zenipy/file_selection
LDU_FT
[ "<BEGIN>\n## `message`", "Display a simple message", " :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: clos...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_selection API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_selection API. 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...
Open a file selection window :param multiple: allow multiple file selection :type multiple: bool :param directory: only directory selection :type directory: bool :param save: save mode :type save: bool :param confirm_overwrite: confirm when a file is overwritten :type confirm_overwrite:...
"Open a file selection window\n\n :param multiple: allow multiple file selection\n :type multiple: bool\n :param directory: only directory selection\n :type directory: bool\n :param save: save mode\n :type save: bool\n :param confirm_overwrite: confirm when a file is overwritten\n :type confirm_...
33
false
poulp/zenipy
file_selection
4,913
LDU_FT/dcaune/perseus-lib-python-common/__build_author_name_expr
LDU_FT
[ "<BEGIN>\n## `convert_image_to_rgb_mode`", "Convert the specified image instance to RGB mode.", " @param image: a Python Library Image (PIL) instance to convert its\n pixel format to RGB, discarding the alpha channel.", " @param fill_color: color to be used to fill transparent pixels when\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __build_author_name_expr 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 __build_author_name_expr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Build the name of the author of a message as described in the Internet Message Format specification: https://tools.ietf.org/html/rfc5322#section-3.6.2 @param author_name: complete name of the originator of the message. @param author_email_address: address of the mailbox to which the author of the...
"Build the name of the author of a message as described in the Internet\n Message Format specification: https://tools.ietf.org/html/rfc5322#section-3.6.2\n\n\n @param author_name: complete name of the originator of the message.\n\n @param author_email_address: address of the mailbox to which the author\n ...
498
false
dcaune/perseus-lib-python-common
__build_author_name_expr
4,914
LDU_FT/dlintott/gns3-converter/make_qemu_dirs
LDU_FT
[ "<BEGIN>\n## `setup_argparse`", "Setup the argparse argument parser", " :return: instance of argparse\n :rtype: ArgumentParser\n<END>", "<BEGIN>\n## `do_conversion`", "Convert the topology", " :param dict topology_def: Dict containing topology file and snapshot bool.\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_qemu_dirs API. 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 make_qemu_dirs API. 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...
Create Qemu VM working directories if required :param int max_qemu_id: Number of directories to create :param str output_dir: Output directory :param str topology_name: Topology name
"Create Qemu VM working directories if required\n\n :param int max_qemu_id: Number of directories to create\n :param str output_dir: Output directory\n :param str topology_name: Topology name"
140
false
dlintott/gns3-converter
make_qemu_dirs
4,915
LDU_FT/boundlessgeo/lib-qgis-commons/setPluginSetting
LDU_FT
[ "<BEGIN>\n## `get_oauth_authcfg`", "Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>", "<BEGIN>\n## `setup_oauth`", "Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>", "<BEG...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setPluginSetting API. 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 setPluginSetting API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Sets the value of a plugin setting. :param name: the name of the setting. It is not the full path, but just the last name of it :param value: the value to set for the plugin setting :param namespace: The namespace. If not passed or None, the namespace will be inferred from the caller method. Normally, ...
"Sets the value of a plugin setting.\n\n :param name: the name of the setting. It is not the full path, but just the last name of it\n :param value: the value to set for the plugin setting\n :param namespace: The namespace. If not passed or None, the namespace will be inferred from\n the caller method. Norm...
72
false
boundlessgeo/lib-qgis-commons
setPluginSetting
4,916
LDU_FT/akfullfo/taskforce/_start
LDU_FT
[ "<BEGIN>\n## `_format`", "Returns the response tuple according to the selected format.\n A format is available if the method \"_format_xxx\" is callable.\n The default format is json.\n<END>", "<BEGIN>\n## `version`", "Return the taskforce version.", " Supports standard options.\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _start API. 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 _start API. 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 ...
Start a task, which may involve starting zero or more processes. This is indicated as an internal method because tasks are really only ever marked as startable by the configuration. Any task that should be running and is not will be started during regular manage() calls. A task set to...
"Start a task, which may involve starting zero or more processes.\n\n This is indicated as an internal method because tasks are really\n only ever marked as startable by the configuration. Any task\n that should be running and is not will be started during regular\n manage() calls. A task ...
290
false
akfullfo/taskforce
_start
4,917
LDU_FT/devision-io/metasdk/batch_update
LDU_FT
[ "<BEGIN>\n## `get_feed`", "Получение настроек для фида\n :param datasource_id: идентификатор фида\n :return: FeedDataSource\n<END>", "<BEGIN>\n## `get_data`", "Сохранение медиафайла\n :param task:\n :param media_metadata:\n :param file_suffix:\n :param callback:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the batch_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 extr...
Для массовой вставки умеренных объемов 1-5к записей за вызов :param command: SQL insert or updtae :param rows: list of dict :return: dict
"Для массовой вставки умеренных объемов 1-5к записей за вызов\n\n :param command: SQL insert or updtae\n :param rows: list of dict\n :return: dict"
88
false
devision-io/metasdk
batch_update
4,918
LDU_FT/edx/pa11ycrawler/is_sequence_start_page
LDU_FT
[ "<BEGIN>\n## `make_parser`", "Returns an argparse instance for this script.\n<END>", "<BEGIN>\n## `main`", "Validates script arguments and calls the render_html() function with them.\n<END>", "<BEGIN>\n## `wcag_refs`", "Given a `code` from pa11y, return a list of the WCAG references.\n These references...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_sequence_start_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_sequence_start_page API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Does this URL represent the first page in a section sequence? E.g. /courses/{coursename}/courseware/{block_id}/{section_id}/1 This will return the same page as the pattern /courses/{coursename}/courseware/{block_id}/{section_id}.
"Does this URL represent the first page in a section sequence? E.g.\n /courses/{coursename}/courseware/{block_id}/{section_id}/1\n This will return the same page as the pattern\n /courses/{coursename}/courseware/{block_id}/{section_id}."
56
false
edx/pa11ycrawler
is_sequence_start_page
4,919
LDU_FT/rtfd/sphinx-autoapi/_resolve_placeholder
LDU_FT
[ "<BEGIN>\n## `load`", "Load objects from the filesystem into the ``paths`` dictionary.\n<END>", "<BEGIN>\n## `read_file`", "Read file input into memory, returning deserialized objects", " :param path: Path of file to read\n :param \\**kwargs:\n * ignore (``list``): List of file patt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _resolve_placeholder 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 _resolve_placeholder API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Resolve a placeholder to the given original object. :param placeholder: The placeholder to resolve, in place. :type placeholder: dict :param original: The object that the placeholder represents. :type original: dict
"Resolve a placeholder to the given original object.\n\n :param placeholder: The placeholder to resolve, in place.\n :type placeholder: dict\n :param original: The object that the placeholder represents.\n :type original: dict"
169
false
rtfd/sphinx-autoapi
_resolve_placeholder
4,920
LDU_FT/eventbrite/pysoa/harakiri
LDU_FT
[ "<BEGIN>\n## `dict_to_hashable`", "Takes a dict and returns an immutable, hashable version of that dict that can be used as a key in dicts or as a\n set value. Any two dicts passed in with the same content are guaranteed to return the same value. Any two dicts\n passed in with different content are guarante...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the harakiri API. 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 harakiri API. 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...
Handles the reception of a timeout signal indicating that a request has been processing for too long, as defined by the Harakiri settings.
"Handles the reception of a timeout signal indicating that a request has been processing for too long, as\n defined by the Harakiri settings."
178
false
eventbrite/pysoa
harakiri
4,921
LDU_FT/yero13/na3x/agg_single_func
LDU_FT
[ "<BEGIN>\n## `agg_multi_func`", "Aggregates several functions\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregates\n :param agg_funcs: list of aggregate functions\n :param group_by: field used to determine group\n :return: dict {agg_fu...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the agg_single_func API. 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 agg_single_func API. 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...
Aggregates single function :param values: list of objects (dict) :param agg_field: target field to calculate aggregate :param agg_func: aggregate function :param group_by: field used to determine group :return: aggregated value
"Aggregates single function\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregate\n :param agg_func: aggregate function\n :param group_by: field used to determine group\n :return: aggregated value"
82
false
yero13/na3x
agg_single_func
4,922
LDU_FT/pasztorpisti/py-flags/unique
LDU_FT
[ "<BEGIN>\n## `unique`", "A decorator for flags classes to forbid flag aliases.\n<END>", "<BEGIN>\n## `unique_bits`", "A decorator for flags classes to forbid declaring flags with overlapping bits.\n<END>", "<BEGIN>\n## `process_inline_members_definition`", ":param members: this can be any of the following...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unique API. 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 unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
A decorator for flags classes to forbid flag aliases.
"A decorator for flags classes to forbid flag aliases."
14
false
pasztorpisti/py-flags
unique
4,923
LDU_FT/tensorflow/lucid/create_opengl_context
LDU_FT
[ "<BEGIN>\n## `SvelteComponent`", "Display svelte components in iPython.", " Args:\n name: name of svelte component (must match component filename when built)\n path: path to compile svelte .js file or source svelte .html file.\n (If html file, we try to call svelte and build the file.)", " Return...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_opengl_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_opengl_context API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Create offscreen OpenGL context and make it current. Users are expected to directly use EGL API in case more advanced context management is required. Args: surface_size: (width, height), size of the offscreen rendering surface.
"Create offscreen OpenGL context and make it current.\n\n Users are expected to directly use EGL API in case more advanced\n context management is required.\n\n Args:\n surface_size: (width, height), size of the offscreen rendering surface."
296
false
tensorflow/lucid
create_opengl_context
4,924
LDU_FT/SmileyChris/easy-thumbnails/_set_image
LDU_FT
[ "<BEGIN>\n## `default`", "Easy-thumbnails' default name processor.", " For example: ``source.jpg.100x100_q80_crop_upscale.jpg``\n<END>", "<BEGIN>\n## `alias`", "Generate filename based on thumbnail alias name (option ``THUMBNAIL_ALIASES``).", " For example: ``source.jpg.medium_large.jpg``\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_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 extrac...
Set the image for this file. This also caches the dimensions of the image.
"Set the image for this file.\n\n This also caches the dimensions of the image."
218
false
SmileyChris/easy-thumbnails
_set_image
4,925
LDU_FT/talkincode/toughlib/websafe
LDU_FT
[ "<BEGIN>\n## `make_sign`", ">>> make_sign(\"123456\",[1,'2',u'中文'])\n '33C9065427EECA3490C5642C99165145'\n<END>", "<BEGIN>\n## `check_sign`", ">>> check_sign(\"123456\",dict(code=1,s='2',msg=u'中文',sign='33C9065427EECA3490C5642C99165145'))\n True\n<END>", "<BEGIN>\n## `make_message`", ">>> js...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the websafe API. 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 websafe API. 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...
r"""Converts `val` so that it is safe for use in Unicode HTML. >>> websafe("<'&\">") u'&lt;&#39;&amp;&quot;&gt;' >>> websafe(None) u'' >>> websafe(u'\u203d') u'\u203d' >>> websafe('\xe2\x80\xbd') u'\u203d'
"r\"\"\"Converts `val` so that it is safe for use in Unicode HTML.\n\n >>> websafe(\"<'&\\\">\")\n u'&lt;&#39;&amp;&quot;&gt;'\n >>> websafe(None)\n u''\n >>> websafe(u'\\u203d')\n u'\\u203d'\n >>> websafe('\\xe2\\x80\\xbd')\n u'\\u203d'"
35
false
talkincode/toughlib
websafe
4,926
LDU_FT/vilmibm/done/_initSymbols
LDU_FT
[ "<BEGIN>\n## `interp`", "This method takes a list of SQL snippets and returns a SQL statement and\n a list of bind variables to be passed to the DB API's execute method.\n<END>", "<BEGIN>\n## `esc`", "Returns the given object in the appropriate wrapper class from esc_types.py.", " In most case...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initSymbols API. 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 _initSymbols API. 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...
Helper function to initialize the single character constants and other symbols needed.
"Helper function to initialize the single character constants\n and other symbols needed."
80
false
vilmibm/done
_initSymbols
4,927
LDU_FT/tjvr/kurt/copy
LDU_FT
[ "<BEGIN>\n## `_workaround_no_stage_specific_variables`", "Make Stage-specific variables global (move them to Project).\n<END>", "<BEGIN>\n## `register`", "Register a new :class:`KurtPlugin`.", " Once registered, the plugin can be used by :class:`Project`, when:", " * :attr:`Project.load` see...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API. 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 copy API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a new Project instance, deep-copying all the attributes.
"Return a new Project instance, deep-copying all the attributes."
171
false
tjvr/kurt
copy
4,928
LDU_FT/evocell/rabifier/summarize
LDU_FT
[ "<BEGIN>\n## `check`", "Check if data and third party tools are available", " :raises: RuntimeError\n<END>", "<BEGIN>\n## `generate_non_rabs`", "Shrink the non-Rab DB size by reducing sequence redundancy.\n<END>", "<BEGIN>\n## `run_cmd`", "Runs an external command", " :param list cmd: Comman...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the summarize API. 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 summarize API. 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...
G protein annotation summary in a text format :return: A string summary of the annotation :rtype: str
"G protein annotation summary in a text format\n\n :return: A string summary of the annotation\n :rtype: str"
32
false
evocell/rabifier
summarize
4,929
LDU_FT/OpenAgInitiative/openag_python/get_user_info
LDU_FT
[ "<BEGIN>\n## `create_farm`", "Create a farm. Creates a farm named FARM_NAME on the currently selected\n cloud server. You can use the `openag cloud select_farm` command to start\n mirroring data into it.\n<END>", "<BEGIN>\n## `list_farms`", "List all farms you can manage. If you have selected a farm alr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_user_info API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Returns the document representing the currently logged in user on the server
"Returns the document representing the currently logged in user on the\n server"
89
false
OpenAgInitiative/openag_python
get_user_info
4,930
LDU_FT/spyder-ide/spyder-kernels/get_var_properties
LDU_FT
[ "<BEGIN>\n## `get_numpy_dtype`", "Return NumPy data type associated to obj\n Return None if NumPy is not available\n or if obj is not a NumPy array or scalar\n<END>", "<BEGIN>\n## `address`", "Return object address as a string: '<classname @ address>\n<END>", "<BEGIN>\n## `get_size`", "Return size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_var_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_var_properties API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Get some properties of the variables in the current namespace
"Get some properties of the variables in the current\n namespace"
125
false
spyder-ide/spyder-kernels
get_var_properties
4,931
LDU_FT/svenkreiss/pysparkling/reduceByKey
LDU_FT
[ "<BEGIN>\n## `get_fs`", "Find the file system implementation for this path.\n<END>", "<BEGIN>\n## `awaitTermination`", "Wait for context to stop.", " :param float timeout: in seconds\n<END>", "<BEGIN>\n## `binaryRecordsStream`", "Monitor a directory and process all binary files.", " File...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduceByKey API. 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 reduceByKey API. 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...
Apply reduceByKey to every RDD. :param func: reduce function to apply :param int numPartitions: number of partitions :rtype: DStream
"Apply reduceByKey to every RDD.\n\n :param func: reduce function to apply\n :param int numPartitions: number of partitions\n :rtype: DStream"
109
false
svenkreiss/pysparkling
reduceByKey
4,932
LDU_FT/liamw9534/bt-manager/_property_change_event_handler
LDU_FT
[ "<BEGIN>\n## `translate_to_dbus_type`", "Helper function to map values from their native Python types\n to Dbus types.", " :param type typeof: Target for type conversion e.g., 'dbus.Dictionary'\n :param value: Value to assign using type 'typeof'\n :return: 'value' converted to type 'typeof'\n :rt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _property_change_event_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _property_change_event_handler API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con...
Handler for property change event. We catch certain state transitions in order to trigger media transport acquisition/release
"Handler for property change event. We catch certain state\n transitions in order to trigger media transport\n acquisition/release"
66
false
liamw9534/bt-manager
_property_change_event_handler
4,933
LDU_FT/Photonios/pyasar/__extract_directory
LDU_FT
[ "<BEGIN>\n## `extract`", "Extracts the contents of the archive to the specifed directory.", " Args:\n destination (str):\n Path to an empty directory to extract the files to.\n<END>", "<BEGIN>\n## `__extract_directory`", "Extracts a single directory to the specified director...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __extract_directory 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 __extract_directory 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...
Extracts a single directory to the specified directory on disk. Args: path (str): Relative (to the root of the archive) path of the directory to extract. files (dict): A dictionary of files from a *.asar file header. destinat...
"Extracts a single directory to the specified directory on disk.\n\n Args:\n path (str):\n Relative (to the root of the archive) path of the directory\n to extract.\n\n files (dict):\n A dictionary of files from a *.asar file header.\n\n ...
21
false
Photonios/pyasar
__extract_directory
4,934
LDU_FT/welchbj/sublemon/one
LDU_FT
[ "<BEGIN>\n## `spawn`", "Spawn the command wrapped in this object as a subprocess.\n<END>", "<BEGIN>\n## `wait_done`", "Coroutine to wait for subprocess run completion.", " Returns:\n The exit code of the subprocess.\n<END>", "<BEGIN>\n## `_poll`", "Check the status of the wrapped runni...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the one API. 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 one API. 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...
Spin up some subprocesses, sleep, and echo a message for this coro.
"Spin up some subprocesses, sleep, and echo a message for this coro."
35
false
welchbj/sublemon
one
4,935
LDU_FT/briancappello/flask-unchained/_openapi_redoc
LDU_FT
[ "<BEGIN>\n## `create`", "Create an instance of a model.", " :param instance: The created model instance.\n :param errors: Any errors.\n :return: The created model instance, or a dictionary of errors.\n<END>", "<BEGIN>\n## `patch`", "Partially update a model instance.", " :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _openapi_redoc API. 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 _openapi_redoc API. 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...
Expose OpenAPI spec with ReDoc The ReDoc script URL can be specified as ``API_REDOC_SOURCE_URL``
"Expose OpenAPI spec with ReDoc\n\n The ReDoc script URL can be specified as ``API_REDOC_SOURCE_URL``"
597
false
briancappello/flask-unchained
_openapi_redoc
4,936
LDU_FT/pyros-dev/pyros-common/update
LDU_FT
[ "<BEGIN>\n## `start`", "Startup of the node.\n :param join: optionally wait for the process to end (default : True)\n :return: None\n<END>", "<BEGIN>\n## `setup`", "Dynamically reset the interface to expose the services / topics / params whose names are passed as args\n The interface clas...
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 function to call from a looping thread. Note : the interface is lazily constructed here :param timedelta: the time past since the last update call
"Update function to call from a looping thread.\n Note : the interface is lazily constructed here\n :param timedelta: the time past since the last update call"
34
false
pyros-dev/pyros-common
update
4,937
LDU_FT/jazzband/django-axes/is_user_attempt_whitelisted
LDU_FT
[ "<BEGIN>\n## `get_cool_off`", "Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.", " The return value is either None or timedelta.", " Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_user_attempt_whitelisted 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 is_user_attempt_whitelisted API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu...
Check if the given request or credentials refer to a whitelisted username. A whitelisted user has the magic ``nolockout`` property set. If the property is unknown or False or the user can not be found, this implementation fails gracefully and returns True.
"Check if the given request or credentials refer to a whitelisted username.\n\n A whitelisted user has the magic ``nolockout`` property set.\n\n If the property is unknown or False or the user can not be found,\n this implementation fails gracefully and returns True."
94
false
jazzband/django-axes
is_user_attempt_whitelisted
4,938
LDU_FT/carsongee/flask-htpasswd/check_basic_auth
LDU_FT
[ "<BEGIN>\n## `init_app`", "Find and configure the user database from specified file\n<END>", "<BEGIN>\n## `check_basic_auth`", "This function is called to check if a username /\n password combination is valid via the htpasswd file.\n<END>", "<BEGIN>\n## `generate_token`", "assumes user exists in ht...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_basic_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_basic_auth API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
This function is called to check if a username / password combination is valid via the htpasswd file.
"This function is called to check if a username /\n password combination is valid via the htpasswd file."
15
false
carsongee/flask-htpasswd
check_basic_auth
4,939
LDU_FT/datamachine/twx/send_location
LDU_FT
[ "<BEGIN>\n## `_ige`", "Given a key, given an iv, and message\n do whatever operation asked in the operation field.\n Operation will be checked for: \"decrypt\" and \"encrypt\" strings.\n Returns the message encrypted/decrypted.\n message must be a multiple by 16 bytes (for division in 16 byte bloc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_location API. 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 send_location API. 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...
Send location to this peer. :param latitude: Latitude of the location. :param longitude: Longitude of the location. :param reply: Message object. :param on_success: Callback to call when call is complete. :type reply: int or Message
"Send location to this peer.\n :param latitude: Latitude of the location.\n :param longitude: Longitude of the location.\n :param reply: Message object.\n :param on_success: Callback to call when call is complete.\n\n :type reply: int or Message"
94
false
datamachine/twx
send_location
4,940
LDU_FT/iterative/dvc/_read_metrics
LDU_FT
[ "<BEGIN>\n## `_get_remote`", "The config file is stored in a way that allows you to have a\n cache for each remote.", " This is needed when specifying external outputs\n (as they require you to have an external cache location).", " Imagine a config file like the following:", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_metrics API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_metrics API. 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 the content of each metric file and format it. Args: metrics (list): List of metric touples branch (str): Branch to look up for metrics. Returns: A dict mapping keys with metrics path name and content. For example: {'metric.csv': ("value_mse deviation_mse data_...
"Read the content of each metric file and format it.\n\n Args:\n metrics (list): List of metric touples\n branch (str): Branch to look up for metrics.\n\n Returns:\n A dict mapping keys with metrics path name and content.\n For example:\n\n {'metric.csv': (\"value_mse deviation...
269
false
iterative/dvc
_read_metrics
4,941
LDU_FT/mozilla/amo-validator/system_error
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the system_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the system_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 extr...
Add an error message for an unexpected exception in validator code, and move it to the front of the error message list. If `exc_info` is supplied, the error will be logged. If the error is a validation timeout, it is re-raised unless `msg_id` is "validation_timeout".
"Add an error message for an unexpected exception in validator\n code, and move it to the front of the error message list. If\n `exc_info` is supplied, the error will be logged.\n\n If the error is a validation timeout, it is re-raised unless\n `msg_id` is \"validation_timeout\"."
94
false
mozilla/amo-validator
system_error
4,942
LDU_FT/mozilla/amo-validator/prepare_package
LDU_FT
[ "<BEGIN>\n## `decode`", "Decode data employing some charset detection and including unicode BOM\n stripping.\n<END>", "<BEGIN>\n## `get_context`", "Returns a tuple containing the context for a line\n<END>", "<BEGIN>\n## `_format_line`", "Formats a line from the data to be the appropriate length\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_package API. 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 prepare_package API. 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...
Prepares a file-based package for validation. timeout is the number of seconds before validation is aborted. If timeout is -1 then no timeout checking code will run.
"Prepares a file-based package for validation.\n\n timeout is the number of seconds before validation is aborted.\n If timeout is -1 then no timeout checking code will run."
94
false
mozilla/amo-validator
prepare_package
4,943
LDU_FT/bjodah/pyneqsys/from_callback
LDU_FT
[ "<BEGIN>\n## `rms`", "Returns root mean square value of f(x, params)\n<END>", "<BEGIN>\n## `solve_series`", "Solve system for a set of parameters in which one is varied", " Parameters\n ----------\n x0 : array_like\n Guess (subject to ``self.post_processors``)\n params...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 ext...
Generate a SymbolicSys instance from a callback. Parameters ---------- cb : callable Should have the signature ``cb(x, p, backend) -> list of exprs``. nx : int Number of unknowns, when not given it is deduced from ``kwargs['names']``. nparams : int ...
"Generate a SymbolicSys instance from a callback.\n\n Parameters\n ----------\n cb : callable\n Should have the signature ``cb(x, p, backend) -> list of exprs``.\n nx : int\n Number of unknowns, when not given it is deduced from ``kwargs['names']``.\n nparams : i...
60
false
bjodah/pyneqsys
from_callback
4,944
LDU_FT/alphagov/performanceplatform-collector/generate_crontab
LDU_FT
[ "<BEGIN>\n## `parse_time_range`", "Convert the start/end datetimes specified by the user, specifically:\n - truncate any minutes/seconds\n - for a missing end time, use start + 24 hours\n - for a missing start time, use end - 24 hours\n - for missing start and end, use the last 24 hours\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_crontab API. 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 generate_crontab API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Returns a crontab with jobs from job path It replaces jobs previously generated by this function It preserves jobs not generated by this function
"Returns a crontab with jobs from job path\n\n It replaces jobs previously generated by this function\n It preserves jobs not generated by this function"
56
false
alphagov/performanceplatform-collector
generate_crontab
4,945
LDU_FT/brinkframework/brink/wrap
LDU_FT
[ "<BEGIN>\n## `fields`", "Provides an iterable for all model fields.\n<END>", "<BEGIN>\n## `wrap`", "Wraps and consumes an arbitrary dictionary into the model.\n<END>", "<BEGIN>\n## `validate`", "Validates all field values for the model.\n<END>", "<BEGIN>\n## `save`", "Persists the model to the databas...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap API. 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 wrap API. 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...
Wraps and consumes an arbitrary dictionary into the model.
"Wraps and consumes an arbitrary dictionary into the model."
18
false
brinkframework/brink
wrap
4,946
LDU_FT/Azure/azure-multiapi-storage-python/insert_or_merge_entity
LDU_FT
[ "<BEGIN>\n## `_extract_encryption_metadata`", "Extracts the encryption metadata from the given entity, setting them to be utf-8 strings.\n If no encryption metadata is present, will return None for all return values unless\n require_encryption is true, in which case the method will throw.", " :param en...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_or_merge_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert_or_merge_entity API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Adds an insert or merge entity operation to the batch. See :func:`~azure.storage.table.tableservice.TableService.insert_or_merge_entity` for more information on insert or merge operations. The operation will not be executed until the batch is committed. :param entity: The...
"Adds an insert or merge entity operation to the batch. See \n :func:`~azure.storage.table.tableservice.TableService.insert_or_merge_entity` for more \n information on insert or merge operations.\n\n The operation will not be executed until the batch is committed.\n\n :param entity:\n ...
364
false
Azure/azure-multiapi-storage-python
insert_or_merge_entity
4,947
LDU_FT/tchellomello/raincloudy/find_program_status
LDU_FT
[ "<BEGIN>\n## `_assign_zones`", "Assign all RainCloudyFaucetZone managed by faucet.\n<END>", "<BEGIN>\n## `_set_watering_time`", "Private method to set watering_time per zone.\n<END>", "<BEGIN>\n## `_set_rain_delay`", "Generic method to set auto_watering program.\n<END>", "<BEGIN>\n## `_set_auto_watering...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_program_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_program_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. T...
Find on the HTML document if zoneX has the configuration of the auto-schedule/program (auto_watering) enabled. # expected result if enabled #<input checked="checked" class="switch" id="id_zone2_program_toggle" \ name="zone2_program_toggle" onchange="submit()" type="checkbox"/> # expected resul...
"Find on the HTML document if zoneX has the configuration\n of the auto-schedule/program (auto_watering) enabled.\n\n # expected result if enabled\n #<input checked=\"checked\" class=\"switch\" id=\"id_zone2_program_toggle\" \\\n name=\"zone2_program_toggle\" onchange=\"submit()\" type=\"checkbox\"/>\n\...
37
false
tchellomello/raincloudy
find_program_status
4,948
LDU_FT/chrisjsewell/jsonextended/flattennd
LDU_FT
[ "<BEGIN>\n## `apply_unitschema`", "apply the unit schema to the data", " Parameters\n ----------\n data : dict\n uschema : dict\n units schema to apply\n as_quantity : bool\n if true, return values as pint.Quantity objects\n raise_outerr : bool\n raise error if a unit cann...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flattennd API. 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 flattennd API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
get nested dict as {key:dict,...}, where key is tuple/string of all-n levels of nested keys Parameters ---------- d : dict levels : int the number of levels to leave unflattened key_as_tuple : bool whether keys are list of nested keys or delimited string of nested keys delim...
"get nested dict as {key:dict,...},\n where key is tuple/string of all-n levels of nested keys\n\n Parameters\n ----------\n d : dict\n levels : int\n the number of levels to leave unflattened\n key_as_tuple : bool\n whether keys are list of nested keys or delimited string of nested keys...
347
false
chrisjsewell/jsonextended
flattennd
4,949
LDU_FT/ngmarchant/oasis/verify_identifiers
LDU_FT
[ "<BEGIN>\n## `update`", "Update the posterior and estimates after a label is sampled", " Parameters\n ----------\n ell : int\n sampled label: 0 or 1", " k : int\n index of stratum where label was sampled\n<END>", "<BEGIN>\n## `_sample_item`", "Sample an it...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_identifiers 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 verify_identifiers 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...
Ensure that identifiers has a compatible length and that its elements are unique
"Ensure that identifiers has a compatible length and that its elements\n are unique"
115
false
ngmarchant/oasis
verify_identifiers
4,950
LDU_FT/SeabornGames/RequestClient/_pre_process_call
LDU_FT
[ "<BEGIN>\n## `reinstantiate_endpoints`", "This will re-instantiate the endpoints with the connection this time\n :param endpoint: Endpoint object to instantiate the sub endpoint in.\n :return: None\n<END>", "<BEGIN>\n## `_pre_process_call`", "This is called by the method_decorator within...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pre_process_call API. 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 _pre_process_call API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
This is called by the method_decorator within the Endpoint. The point is to capture a slot for the endpoint.method to put it's final _calls. It also allows for some special new arguments that will be extracted before the endpoint is called :param name: str of the name of the end...
"This is called by the method_decorator within the Endpoint.\n The point is to capture a slot for the endpoint.method to put\n it's final _calls.\n It also allows for some special new arguments that will be extracted\n before the endpoint is called\n\n :param name: str of the name of ...
148
false
SeabornGames/RequestClient
_pre_process_call
4,951
LDU_FT/n1analytics/python-paillier/extract
LDU_FT
[ "<BEGIN>\n## `generate_keypair`", "Generate a paillier private key.", " Output as JWK to given output file. Use \"-\" to output the private key to\n stdout. See the extract command to extract the public component of the\n private key.", " Note:\n The default ID text includes the current tim...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract API. 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 extract API. 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...
Extract public key from private key. Given INPUT a private paillier key file as generated by generate, extract the public key portion to OUTPUT. Use "-" to output to stdout.
"Extract public key from private key.\n\n Given INPUT a private paillier key file as generated by generate, extract the\n public key portion to OUTPUT.\n\n Use \"-\" to output to stdout."
169
false
n1analytics/python-paillier
extract
4,952
LDU_FT/sosreport/sos/lsmod
LDU_FT
[ "<BEGIN>\n## `build_query_cmd`", "Builds the command needed to invoke the pgsql query as the postgres\n user.\n The query requires significant quoting work to satisfy both the\n shell and postgres parsing requirements. Note that this will generate\n a large amount of quoting in sos log...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lsmod API. 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 lsmod API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a list of kernel module names as strings.
"Return a list of kernel module names as strings."
286
false
sosreport/sos
lsmod
4,953
LDU_FT/aegirhall/console-menu/append_item
LDU_FT
[ "<BEGIN>\n## `set_border_style`", "Set the border style using the specified MenuBorderStyle instance.\n :param border_style: the instance of MenuBorderStyle to use for border style formatting.\n<END>", "<BEGIN>\n## `set_border_style_type`", "Set the border style using the specified border style type. T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_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 extra...
Add an item to the end of the menu before the exit item. Args: item (MenuItem): The item to be added.
"Add an item to the end of the menu before the exit item.\n\n Args:\n item (MenuItem): The item to be added."
107
false
aegirhall/console-menu
append_item
4,954
LDU_FT/chop-dbhi/varify-data-warehouse/compute_allele_frequencies
LDU_FT
[ "<BEGIN>\n## `read`", "Reads up to size bytes, but always completes the last line.\n<END>", "<BEGIN>\n## `readline`", "The size is ignored since a complete line must be read.\n<END>", "<BEGIN>\n## `process_line`", "Process a single record. This assumes only a single sample output.\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_allele_frequencies 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 compute_allele_frequencies API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Computes the allele frequencies across all samples in this cohort.
"Computes the allele frequencies across all samples in this cohort."
53
false
chop-dbhi/varify-data-warehouse
compute_allele_frequencies
4,955
LDU_FT/twisted/epsilon/connectTo
LDU_FT
[ "<BEGIN>\n## `main`", "Create a private key and a certificate and write them to a file.\n<END>", "<BEGIN>\n## `setTimeout`", "Change the timeout period", " @type period: C{int} or C{NoneType}\n @param period: The period, in seconds, to change the timeout to, or\n C{None} to disable the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connectTo API. 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 connectTo API. 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...
Set the name of the route which will be added to outgoing boxes.
"Set the name of the route which will be added to outgoing boxes."
217
false
twisted/epsilon
connectTo
4,956
LDU_FT/Aula13/poloniex/clear
LDU_FT
[ "<BEGIN>\n## `clear`", "Release the semaphore of all of its bounds, setting the internal\n counter back to its original bind limit. Notify an equivalent amount\n of threads that they can run.\n<END>", "<BEGIN>\n## `_api_wrapper`", "API function decorator that performs rate limiting and error che...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API. 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 clear API. 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...
Release the semaphore of all of its bounds, setting the internal counter back to its original bind limit. Notify an equivalent amount of threads that they can run.
"Release the semaphore of all of its bounds, setting the internal\n counter back to its original bind limit. Notify an equivalent amount\n of threads that they can run."
37
false
Aula13/poloniex
clear
4,957
LDU_FT/envi-idl/envipyengine/tasks
LDU_FT
[ "<BEGIN>\n## `task`", "Returns an ENVI Py Engine Task object. See ENVI Py Engine Task for examples.", " :param task_name: The name of the task to retrieve.\n :return: An ENVI Py Engine Task object.\n<END>", "<BEGIN>\n## `tasks`", "Returns a list of all tasks known to the engine.", " :...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tasks API. 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 tasks API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Returns a list of all tasks known to the engine. :return: A list of task names.
"Returns a list of all tasks known to the engine.\n\n :return: A list of task names."
42
false
envi-idl/envipyengine
tasks
4,958
LDU_FT/dschreij/python-mediadecoder/fps
LDU_FT
[ "<BEGIN>\n## `get_frame`", "Callback function for the audio stream. Don't use directly.\n<END>", "<BEGIN>\n## `queue`", "Sets the audioqueue.", "\t\tParameters\n\t\t----------\n\t\tvalue : queue.Queue\n\t\t\tThe buffer from which audioframes are received.\n<END>", "<BEGIN>\n## `loop`", "Indicates whethe...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fps API. 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 fps API. 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...
Sets the frames per second of the current movie the clock is used for. Parameters ---------- value : float The fps value.
"Sets the frames per second of the current movie the clock is used for.\n\n\t\tParameters\n\t\t----------\n\t\tvalue : float\n\t\t\tThe fps value."
75
false
dschreij/python-mediadecoder
fps
4,959
LDU_FT/jopohl/urh/find_candidates
LDU_FT
[ "<BEGIN>\n## `bootstrap_modulator`", "Set initial parameters for default modulator if it was not edited by user previously\n :return:\n<END>", "<BEGIN>\n## `modulate_data`", ":param buffer: Buffer in which the modulated data shall be written, initialized with zeros\n :return:\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_candidates API. 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 find_candidates API. 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...
Find candidate addresses using LCS algorithm perform a scoring based on how often a candidate appears in a longer candidate Input is something like ------------------------ ['1b6033', '1b6033fd57', '701b603378e289', '20701b603378e289000c62', '1b603300', '78e289757e', '7078e2891b...
"Find candidate addresses using LCS algorithm\n perform a scoring based on how often a candidate appears in a longer candidate\n\n Input is something like\n ------------------------\n ['1b6033', '1b6033fd57', '701b603378e289', '20701b603378e289000c62',\n '1b603300', '78e289757e', '707...
149
false
jopohl/urh
find_candidates
4,960
LDU_FT/biocommons/bioutils/_fetch_seq_ncbi
LDU_FT
[ "<BEGIN>\n## `fetch_seq`", "Fetches sequences and subsequences from NCBI eutils and Ensembl\n REST interfaces.", " :param string ac: accession of sequence to fetch\n :param int start_i: start position of *interbase* interval\n :param int end_i: end position of *interbase* interval", " **IMPORTA...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fetch_seq_ncbi API. 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 _fetch_seq_ncbi API. 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...
Fetch sequences from NCBI using the eutils interface. An interbase interval may be optionally provided with start_i and end_i. NCBI eutils will return just the requested subsequence, which might greatly reduce payload sizes (especially with chromosome-scale sequences). The request includes `tool` ...
"Fetch sequences from NCBI using the eutils interface.\n\n An interbase interval may be optionally provided with start_i and\n end_i. NCBI eutils will return just the requested subsequence,\n which might greatly reduce payload sizes (especially with\n chromosome-scale sequences).\n\n The request includes...
172
false
biocommons/bioutils
_fetch_seq_ncbi
4,961
LDU_FT/bigchaindb/bigchaindb-driver/prepare_create_transaction
LDU_FT
[ "<BEGIN>\n## `info`", "Retrieves information of the node being connected to via the\n root endpoint ``'/'``.", " Args:\n headers (dict): Optional headers to pass to the request.", " Returns:\n dict: Details of the node that this instance is connected\n to....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_create_transaction 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 prepare_create_transaction API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Prepares a ``"CREATE"`` transaction payload, ready to be fulfilled. Args: signers (:obj:`list` | :obj:`tuple` | :obj:`str`): One or more public keys representing the issuer(s) of the asset being created. recipients (:obj:`list` | :obj:`tuple` | :obj:`str`, optional): ...
"Prepares a ``\"CREATE\"`` transaction payload, ready to be\n fulfilled.\n\n Args:\n signers (:obj:`list` | :obj:`tuple` | :obj:`str`): One\n or more public keys representing the issuer(s) of the asset\n being created.\n recipients (:obj:`list` | :obj:`tuple` | :obj:`str`, opti...
169
false
bigchaindb/bigchaindb-driver
prepare_create_transaction
4,962
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_provincie_adapter
LDU_FT
[ "<BEGIN>\n## `range_return`", "Determine what range of objects to return.", " Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.", " :rtype: list\n<END>", "<BEGIN>\n## `set_http_caching`", "Set an HTTP Cache Control heade...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_provincie_adapter 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 item_provincie_adapter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Adapter for rendering a object of :class:`crabpy.gateway.crab.Provincie` to json.
"Adapter for rendering a object of\n :class:`crabpy.gateway.crab.Provincie` to json."
72
false
OnroerendErfgoed/crabpy_pyramid
item_provincie_adapter
4,963
LDU_FT/ev3dev/ev3dev-lang-python/ramp_up_sp
LDU_FT
[ "<BEGIN>\n## `list_motors`", "This is a generator function that enumerates all tacho motors that match\n the provided arguments.", " Parameters:\n name_pattern: pattern that device name should match.\n For example, 'motor*'. Default value: '*'.\n keyword arguments: used for matchi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ramp_up_sp API. 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 ramp_up_sp API. 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...
Writing sets the ramp up setpoint. Reading returns the current value. Units are in milliseconds and must be positive. When set to a non-zero value, the motor speed will increase from 0 to 100% of `max_speed` over the span of this setpoint. The actual ramp time is the ratio of the difference betw...
"Writing sets the ramp up setpoint. Reading returns the current value. Units\n are in milliseconds and must be positive. When set to a non-zero value, the\n motor speed will increase from 0 to 100% of `max_speed` over the span of this\n setpoint. The actual ramp time is the ratio of the difference ...
452
false
ev3dev/ev3dev-lang-python
ramp_up_sp
4,964
LDU_FT/alorence/pysvg-py3/quote_attrib
LDU_FT
[ "<BEGIN>\n## `getAllElementsOfHirarchy`", "returns ALL elements of the complete hirarchy as a flat list\n<END>", "<BEGIN>\n## `getElementByID`", "returns an element with the specific id and the position of that element within the svg elements array\n<END>", "<BEGIN>\n## `getElementsByType`", "retrieves al...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quote_attrib API. 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 quote_attrib API. 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...
Transforms characters between xml notation and python notation.
"Transforms characters between xml notation and python notation."
75
false
alorence/pysvg-py3
quote_attrib
4,965
LDU_FT/klen/django-netauth/fill_extra_fields
LDU_FT
[ "<BEGIN>\n## `merge_accounts`", "Attach NetID account to regular django\n account and then redirect user. In this situation\n user dont have to fill extra fields because he filled\n them when first account (request.user) was created.", " Note that self.indentity must be already set i...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill_extra_fields API. 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 fill_extra_fields API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Try to fetch extra data from provider, if this data is enough to validate settings.EXTRA_FORM then call save method of form class and login the user. The extra parameter can be some complex object this is why we use method function 'extra_data' to extract data from this object. ...
"Try to fetch extra data from provider, if this data is enough\n to validate settings.EXTRA_FORM then call save method of form\n class and login the user.\n\n The extra parameter can be some complex object\n this is why we use method function 'extra_data' to\n extract data from this o...
29
false
klen/django-netauth
fill_extra_fields
4,966
LDU_FT/JukeboxPipeline/jukebox-core/get_chunk
LDU_FT
[ "<BEGIN>\n## `restrictable`", "Decorator for :class:`Reftrack` methods.\n A decorated method will check if its restriction with :meth:`Reftrack.is_restricted`\n and raises a :class:`RestrictionError` if it is restricted.", " :param m: The :class:`Reftrack` method to wrap\n :type m: :class:`Reftrack`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_chunk API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Return the chunkattr of obj formatted with the chunkfomat specified in the constructor If the attr is None then ``None`` is returned not the string ``\'None\'``. :param obj: the fileinfo with information. :type obj: :class:`FileInfo` :returns: the chunk or None :rtype: str|None ...
"Return the chunkattr of obj formatted with the chunkfomat specified in the constructor\n If the attr is None then ``None`` is returned not the string ``\\'None\\'``.\n\n :param obj: the fileinfo with information.\n :type obj: :class:`FileInfo`\n :returns: the chunk or None\n :rtype: ...
1,529
true
JukeboxPipeline/jukebox-core
get_chunk
4,967
LDU_FT/consbio/gis-metadata-parser/convert_parser_to
LDU_FT
[ "<BEGIN>\n## `convert_parser_to`", ":return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type\n is a type, an instance of it must contain a update method. The update method must also process\n the set of properties supported by MetadataParser for the conversion t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_parser_to API. 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 convert_parser_to API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
:return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type is a type, an instance of it must contain a update method. The update method must also process the set of properties supported by MetadataParser for the conversion to have any affect. :param parser: the pa...
":return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type\n is a type, an instance of it must contain a update method. The update method must also process\n the set of properties supported by MetadataParser for the conversion to have any affect.\n :param parser: th...
122
false
consbio/gis-metadata-parser
convert_parser_to
4,968
LDU_FT/AustralianSynchrotron/lightflow/eval
LDU_FT
[ "<BEGIN>\n## `is_connected`", "Returns the connection status of the data store.", " Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>", "<BEGIN>\n## `connect`", "Establishes a connection to the MongoDB server.", " Use the MongoProxy library in ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the eval API. 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 eval API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
Return a new object in which callable parameters have been evaluated. Native types are not touched and simply returned, while callable methods are executed and their return value is returned. Args: data (MultiTaskData): The data object that has been passed from the ...
"Return a new object in which callable parameters have been evaluated.\n\n Native types are not touched and simply returned, while callable methods are\n executed and their return value is returned.\n\n Args:\n data (MultiTaskData): The data object that has been passed from the\n ...
404
false
AustralianSynchrotron/lightflow
eval
4,969
LDU_FT/hozn/stravalib/get_starred_segments
LDU_FT
[ "<BEGIN>\n## `logged_in`", "Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>", "<BEGIN>\n## `unmarshal`", "Convert the value from parsed JSON structure to native python representation.", " By default this will leave the value as-is since the JS...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_starred_segments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_starred_segments API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Returns a summary representation of the segments starred by the authenticated user. Pagination is supported. http://strava.github.io/api/v3/segments/#starred :param limit: (optional), limit number of starred segments returned. :type limit: int :return: An iterator of :class:`...
"Returns a summary representation of the segments starred by the\n authenticated user. Pagination is supported.\n\n http://strava.github.io/api/v3/segments/#starred\n\n :param limit: (optional), limit number of starred segments returned.\n :type limit: int\n\n :return: An iterator of...
367
false
hozn/stravalib
get_starred_segments
4,970
LDU_FT/spyder-ide/spyder-kernels/str_to_timedelta
LDU_FT
[ "<BEGIN>\n## `get_numpy_dtype`", "Return NumPy data type associated to obj\n Return None if NumPy is not available\n or if obj is not a NumPy array or scalar\n<END>", "<BEGIN>\n## `address`", "Return object address as a string: '<classname @ address>\n<END>", "<BEGIN>\n## `get_size`", "Return size o...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_timedelta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_timedelta API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Convert a string to a datetime.timedelta value. The following strings are accepted: - 'datetime.timedelta(1, 5, 12345)' - 'timedelta(1, 5, 12345)' - '(1, 5, 12345)' - '1, 5, 12345' - '1' if there are less then three parameters, the missing parameters are assumed to...
"Convert a string to a datetime.timedelta value.\n\n The following strings are accepted:\n\n - 'datetime.timedelta(1, 5, 12345)'\n - 'timedelta(1, 5, 12345)'\n - '(1, 5, 12345)'\n - '1, 5, 12345'\n - '1'\n\n if there are less then three parameters, the missing parameters are\n ...
125
false
spyder-ide/spyder-kernels
str_to_timedelta
4,971
LDU_FT/EpistasisLab/tpot/auto_select_categorical_features
LDU_FT
[ "<BEGIN>\n## `auto_select_categorical_features`", "Make a feature mask of categorical features in X.", " Features with less than 10 unique values are considered categorical.", " Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_select_categorical_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the auto_select_categorical_features API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c...
Make a feature mask of categorical features in X. Features with less than 10 unique values are considered categorical. Parameters ---------- X : array-like or sparse matrix, shape=(n_samples, n_features) Dense array or sparse matrix. threshold : int Maximum number of unique values...
"Make a feature mask of categorical features in X.\n\n Features with less than 10 unique values are considered categorical.\n\n Parameters\n ----------\n X : array-like or sparse matrix, shape=(n_samples, n_features)\n Dense array or sparse matrix.\n\n threshold : int\n Maximum number of un...
249
false
EpistasisLab/tpot
auto_select_categorical_features
4,972