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/inveniosoftware-attic/invenio-utils/autodiscover_modules | LDU_FT | [
"<BEGIN>\n## `get_callable_signature_as_string`",
"Return a string representing a callable.",
" It is executed as if it would have been declared on the prompt.",
" >>> def foo(arg1, arg2, arg3='val1', arg4='val2', *args, **argd):\n ... pass\n >>> get_callable_signature_as_string(foo)\n def ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autodiscover_modules 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 autodiscover_modules API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Autodiscover function follows the pattern used by Celery.
:param packages: List of package names to auto discover modules in.
:type packages: list of str
:param related_name_re: Regular expression used to match modules names.
:type related_name_re: str
:param ignore_exceptions: Ignore exception whe... | "Autodiscover function follows the pattern used by Celery.\n\n :param packages: List of package names to auto discover modules in.\n :type packages: list of str\n :param related_name_re: Regular expression used to match modules names.\n :type related_name_re: str\n :param ignore_exceptions: Ignore except... | 424 | false | inveniosoftware-attic/invenio-utils | autodiscover_modules | 6,773 | |
LDU_FT/SoCo/SoCo/_get_music_services_data | LDU_FT | [
"<BEGIN>\n## `_post`",
"Try 3 times to request the content.",
" :param headers: The HTTP headers\n :type headers: dict\n :param body: The body of the HTTP post\n :type body: str\n :param retries: The number of times to retry before giving up\n :type retries: int\n :param timeout: The time t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_music_services_data 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 _get_music_services_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Parse raw account data xml into a useful python datastructure.
Returns:
dict: Each key is a service_type, and each value is a
`dict` containing relevant data. | "Parse raw account data xml into a useful python datastructure.\n\n Returns:\n dict: Each key is a service_type, and each value is a\n `dict` containing relevant data." | 663 | false | SoCo/SoCo | _get_music_services_data | 6,774 | |
LDU_FT/DMSC-Instrument-Data/lewis/_bind_device | LDU_FT | [
"<BEGIN>\n## `get_submodules`",
"This function imports all sub-modules of the supplied module and returns a dictionary\n with module names as keys and the sub-module objects as values. If the supplied parameter\n is not a module object, a RuntimeError is raised.",
" :param module: Module object from wh... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bind_device API.
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 _bind_device API.
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... | This method implements ``_bind_device`` from :class:`~lewis.core.devices.InterfaceBase`.
It binds Cmd and Var definitions to implementations in Interface and Device. | "This method implements ``_bind_device`` from :class:`~lewis.core.devices.InterfaceBase`.\n It binds Cmd and Var definitions to implementations in Interface and Device." | 198 | false | DMSC-Instrument-Data/lewis | _bind_device | 6,775 | |
LDU_FT/dmlc/gluon-nlp/save_params | LDU_FT | [
"<BEGIN>\n## `train`",
"Train textCNN model for sentiment analysis.\n<END>",
"<BEGIN>\n## `embedding`",
"Get tokens, tokens embedding",
" Parameters\n ----------\n sentences : List[str]\n sentences for encoding.\n oov_way : str, default avg.\n use **avg**, *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_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 extra... | Save the model parameter, marked by step_num. | "Save the model parameter, marked by step_num." | 801 | false | dmlc/gluon-nlp | save_params | 6,776 | |
LDU_FT/mrname/haralyzer/filter_entries | LDU_FT | [
"<BEGIN>\n## `get_load_times`",
"Just a ``list`` of the load times of a certain asset type for each page",
" :param asset_type: ``str`` of the asset type to return load times for\n<END>",
"<BEGIN>\n## `get_stdev`",
"Returns the standard deviation for a set of a certain asset type.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter_entries API.
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_entries API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns a ``list`` of entry objects based on the filter criteria.
:param request_type: ``str`` of request type (i.e. - GET or POST)
:param content_type: ``str`` of regex to use for finding content type
:param status_code: ``int`` of the desired status code
:param http_version: ``str`` o... | "Returns a ``list`` of entry objects based on the filter criteria.\n\n :param request_type: ``str`` of request type (i.e. - GET or POST)\n :param content_type: ``str`` of regex to use for finding content type\n :param status_code: ``int`` of the desired status code\n :param http_version: ``s... | 72 | false | mrname/haralyzer | filter_entries | 6,777 | |
LDU_FT/uberVU/mongo-oplogreplay/insert | LDU_FT | [
"<BEGIN>\n## `insert`",
"Perform a single insert operation.",
" {'docid': ObjectId('4e95ae77a20e6164850761cd'),\n 'ns': u'mydb.tweets',\n 'raw': {u'h': -1469300750073380169L,\n u'ns': u'mydb.tweets',\n u'o': {u'_id': ObjectId('4e95ae77a2... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Perform a single insert operation.
{'docid': ObjectId('4e95ae77a20e6164850761cd'),
'ns': u'mydb.tweets',
'raw': {u'h': -1469300750073380169L,
u'ns': u'mydb.tweets',
u'o': {u'_id': ObjectId('4e95ae77a20e6164850761cd'),
... | "Perform a single insert operation.\n\n {'docid': ObjectId('4e95ae77a20e6164850761cd'),\n 'ns': u'mydb.tweets',\n 'raw': {u'h': -1469300750073380169L,\n u'ns': u'mydb.tweets',\n u'o': {u'_id': ObjectId('4e95ae77a20e6164850761cd'),\n ... | 18 | false | uberVU/mongo-oplogreplay | insert | 6,778 | |
LDU_FT/openvax/varcode/to_dataframe | LDU_FT | [
"<BEGIN>\n## `translate_codon`",
"Translate a single codon into a single amino acid or stop '*'",
" Parameters\n ----------\n codon : str\n Expected to be of length 3\n aa_pos : int\n Codon/amino acid offset into the protein (starting from 0)\n<END>",
"<BEGIN>\n## `translate`",
"Tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Build a DataFrame from this variant collection | "Build a DataFrame from this variant collection" | 344 | false | openvax/varcode | to_dataframe | 6,779 | |
LDU_FT/mrcagney/gtfstk/linestring_to_utm | LDU_FT | [
"<BEGIN>\n## `get_stop_times`",
"Return a subset of ``feed.stop_times``.",
" Parameters\n ----------\n feed : Feed\n date : string\n YYYYMMDD date string restricting the output to trips active\n on the date",
" Returns\n -------\n DataFrame\n Subset of ``feed.stop_tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the linestring_to_utm API.
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 linestring_to_utm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Given a Shapely LineString in WGS84 coordinates,
convert it to the appropriate UTM coordinates.
If ``inverse``, then do the inverse. | "Given a Shapely LineString in WGS84 coordinates,\n convert it to the appropriate UTM coordinates.\n If ``inverse``, then do the inverse." | 474 | false | mrcagney/gtfstk | linestring_to_utm | 6,780 | |
LDU_FT/larsyencken/csvdiff/patch_records | LDU_FT | [
"<BEGIN>\n## `apply`",
"Transform the records with the patch. May fail if the records do not\n match those expected in the patch.\n<END>",
"<BEGIN>\n## `create`",
"Diff two sets of records, using the index columns as the primary key for\n both datasets.\n<END>",
"<BEGIN>\n## `_compare_rows`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch_records API.
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 patch_records API.
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... | Apply the patch to the sequence of records, returning the transformed
records. | "Apply the patch to the sequence of records, returning the transformed\n records." | 28 | false | larsyencken/csvdiff | patch_records | 6,781 | |
LDU_FT/sernst/cauldron/load_shared_data | LDU_FT | [
"<BEGIN>\n## `set_executing`",
"Toggle whether or not the current thread is executing a step file. This\n will only apply when the current thread is a CauldronThread. This function\n has no effect when run on a Main thread.",
" :param on:\n Whether or not the thread should be annotated as execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_shared_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 load_shared_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 ... | Load shared data from a JSON file stored on disk | "Load shared data from a JSON file stored on disk" | 534 | false | sernst/cauldron | load_shared_data | 6,782 | |
LDU_FT/inveniosoftware/kwalitee/check_file | LDU_FT | [
"<BEGIN>\n## `_get_files_modified`",
"Get the list of modified files that are Python or Jinja2.\n<END>",
"<BEGIN>\n## `_get_git_author`",
"Return the git author from the git variables.\n<END>",
"<BEGIN>\n## `_prepare_commit_msg`",
"Prepare the commit message in tmp_file.",
" It will build the commit ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_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 check_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... | Perform static analysis on the given file.
.. seealso::
- :data:`.SUPPORTED_FILES`
- :func:`.check_pep8`
- :func:`.check_pydocstyle`
- and :func:`.check_license`
:param filename: path of file to check.
:type filename: str
:return: errors sorted by line number or None i... | "Perform static analysis on the given file.\n\n .. seealso::\n\n - :data:`.SUPPORTED_FILES`\n - :func:`.check_pep8`\n - :func:`.check_pydocstyle`\n - and :func:`.check_license`\n\n :param filename: path of file to check.\n :type filename: str\n :return: errors sorted by line numb... | 77 | false | inveniosoftware/kwalitee | check_file | 6,783 | |
LDU_FT/inveniosoftware/invenio-i18n/set_locale | LDU_FT | [
"<BEGIN>\n## `get_locale`",
"Get locale.",
" Searches for locale in the following the order:",
" - User has specified a concrete language in the query string.\n - Current session has a language set.\n - User has a language set in the profile.\n - Headers of the HTTP request.\n - Default lang... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_locale API.
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_locale API.
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 Babel localization in request context.
:param ln: Language identifier. | "Set Babel localization in request context.\n\n :param ln: Language identifier." | 27 | false | inveniosoftware/invenio-i18n | set_locale | 6,784 | |
LDU_FT/drewsonne/aws-autodiscovery-templater/_process_reservations | LDU_FT | [
"<BEGIN>\n## `run`",
"Entrypoint to kick off the job to generate the templater\n :return:\n<END>",
"<BEGIN>\n## `generate_output_file`",
"Generate a function to send the content to the file specified in 'path'\n :param path:\n :return:\n<END>",
"<BEGIN>\n## `generate_file_template_load`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_reservations 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 _process_reservations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Given a dict with the structure of a response from boto3.ec2.describe_instances(...),
find the public/private ips.
:param reservations:
:return: | "Given a dict with the structure of a response from boto3.ec2.describe_instances(...),\n find the public/private ips.\n :param reservations:\n :return:" | 14 | false | drewsonne/aws-autodiscovery-templater | _process_reservations | 6,785 | |
LDU_FT/MonashBI/arcana/save | LDU_FT | [
"<BEGIN>\n## `satisfy`",
"Checks whether the given requirements are satisfiable within the given\n execution context",
" Parameter\n ---------\n requirements : list(Requirement)\n List of requirements to check whether they are satisfiable\n<END>",
"<BEGIN>\n## `connect`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Saves the provenance object to a JSON file, optionally including
checksums for inputs and outputs (which are initially produced mid-
run) to insert during the write
Parameters
----------
path : str
Path to save the generated JSON file
inputs : dict[str, str |... | "Saves the provenance object to a JSON file, optionally including\n checksums for inputs and outputs (which are initially produced mid-\n run) to insert during the write\n\n Parameters\n ----------\n path : str\n Path to save the generated JSON file\n inputs : dict[s... | 275 | false | MonashBI/arcana | save | 6,786 | |
LDU_FT/pyvisa/pyvisa/terminate | LDU_FT | [
"<BEGIN>\n## `pass_control`",
"Tell the GPIB device at the specified address to become controller in charge (CIC).",
" Corresponds to viGpibPassControl function of the VISA library.",
" :param primary_address: Primary address of the GPIB device to which you want to pass control.\n :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the terminate API.
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 terminate API.
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... | Requests a VISA session to terminate normal execution of an operation.
Corresponds to viTerminate function of the VISA library.
:param library: the visa library wrapped by ctypes.
:param session: Unique logical identifier to a session.
:param degree: Constants.NULL
:param job_id: Specifies an oper... | "Requests a VISA session to terminate normal execution of an operation.\n\n Corresponds to viTerminate function of the VISA library.\n\n :param library: the visa library wrapped by ctypes.\n :param session: Unique logical identifier to a session.\n :param degree: Constants.NULL\n :param job_id: Specifies... | 529 | false | pyvisa/pyvisa | terminate | 6,787 | |
LDU_FT/python-diamond/Diamond/get_collectors_from_module | LDU_FT | [
"<BEGIN>\n## `utc_to_local`",
":param utc_dt: datetime in UTC\n :return: datetime in the local timezone\n<END>",
"<BEGIN>\n## `get_zones`",
":param auth_kwargs:\n :param region: region to get the availability zones for\n :return: list of availability zones\n<END>",
"<BEGIN>\n## `publish_delayed_met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_collectors_from_module 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 get_collectors_from_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Locate all of the collector classes within a given module | "Locate all of the collector classes within a given module" | 454 | false | python-diamond/Diamond | get_collectors_from_module | 6,788 | |
LDU_FT/EasyPost/pystalk/_re_establish_use_watch | LDU_FT | [
"<BEGIN>\n## `from_uri`",
"Construct a synchronous Beanstalk Client from a URI.",
" The URI may be of the form beanstalk://host:port or beanstalkd://host:port",
" IPv6 literals must be wrapped in brackets as per RFC 2732.\n<END>",
"<BEGIN>\n## `_re_establish_use_watch`",
"Call after a close/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _re_establish_use_watch 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 _re_establish_use_watch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Call after a close/re-connect.
Automatically re-establishes the USE and WATCH configs previously setup. | "Call after a close/re-connect.\n\n Automatically re-establishes the USE and WATCH configs previously setup." | 85 | false | EasyPost/pystalk | _re_establish_use_watch | 6,789 | |
LDU_FT/cronofy/pycronofy/get_smart_invite | LDU_FT | [
"<BEGIN>\n## `format_event_time`",
"Accepts either an ISO 8601 string, a dict with a time and tzid OR a datetime object.\n Must be in UTC format:",
" 2016-01-31T12:33:00Z\n 2016-01-31T12:33:00UTC\n 2016-01-31T12:33:00+00:00",
" https://en.wikipedia.org/wiki/ISO_8601",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_smart_invite API.
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_smart_invite API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Gets the details for a smart invite.
:param string smart_invite_id: - A String uniquely identifying the event for your
application (note: this is NOT an ID generated by Cronofy).
:param string recipient_email: - The email address for the recipient to get details ... | "Gets the details for a smart invite.\n\n :param string smart_invite_id: - A String uniquely identifying the event for your\n application (note: this is NOT an ID generated by Cronofy).\n :param string recipient_email: - The email address for the recipient to get det... | 111 | false | cronofy/pycronofy | get_smart_invite | 6,790 | |
LDU_FT/numberoverzero/bloop/enable_ttl | LDU_FT | [
"<BEGIN>\n## `ordered`",
"Return sorted version of nested dicts/lists for comparing.",
" Modified from:\n http://stackoverflow.com/a/25851972\n<END>",
"<BEGIN>\n## `dump_key`",
"dump the hash (and range, if there is one) key(s) of an object into\n a dynamo-friendly format.",
" returns {dynamo_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable_ttl API.
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 enable_ttl API.
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... | Calls UpdateTimeToLive on the table according to model.Meta["ttl"]
:param table_name: The name of the table to enable the TTL setting on
:param model: The model to get TTL settings from | "Calls UpdateTimeToLive on the table according to model.Meta[\"ttl\"]\n\n :param table_name: The name of the table to enable the TTL setting on\n :param model: The model to get TTL settings from" | 288 | false | numberoverzero/bloop | enable_ttl | 6,791 | |
LDU_FT/trentm/cmdln/do_list | LDU_FT | [
"<BEGIN>\n## `mkmanpage`",
"Return man page content for the given `cmdln.Cmdln` subclass name.\n<END>",
"<BEGIN>\n## `do_crush`",
"${cmd_name}: crush your enemies!",
" ${cmd_usage}\n ${cmd_option_list}\n C.f. Conan the Barbarian.\n<END>",
"<BEGIN>\n## `do_add`",
"Put files and direc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | List directory entries in the repository.
usage:
list [TARGET...]
List each TARGET file and the contents of each TARGET directory as
they exist in the repository. If TARGET is a working copy path, the
corresponding repository URL will be used.
The ... | "List directory entries in the repository.\n\n usage:\n list [TARGET...]\n \n List each TARGET file and the contents of each TARGET directory as\n they exist in the repository. If TARGET is a working copy path, the\n corresponding repository URL will be used.\n \n ... | 207 | false | trentm/cmdln | do_list | 6,792 | |
LDU_FT/python-bugzilla/python-bugzilla/build_query | LDU_FT | [
"<BEGIN>\n## `_request_helper`",
"A helper method to assist in making a request and provide a parsed\n response.\n<END>",
"<BEGIN>\n## `open_without_clobber`",
"Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_query API.
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 build_query API.
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... | Build a query string from passed arguments. Will handle
query parameter differences between various bugzilla versions.
Most of the parameters should be self-explanatory. However,
if you want to perform a complex query, and easy way is to
create it with the bugzilla web UI, copy the enti... | "Build a query string from passed arguments. Will handle\n query parameter differences between various bugzilla versions.\n\n Most of the parameters should be self-explanatory. However,\n if you want to perform a complex query, and easy way is to\n create it with the bugzilla web UI, copy th... | 184 | false | python-bugzilla/python-bugzilla | build_query | 6,793 | |
LDU_FT/zero-os/0-core/prepare_migration_target | LDU_FT | [
"<BEGIN>\n## `stdout`",
"The job stdout\n :return: string or None\n<END>",
"<BEGIN>\n## `stderr`",
"The job stderr\n :return: string or None\n<END>",
"<BEGIN>\n## `exists`",
"Returns true if the job is still running or zero-os still knows about this job ID",
" After a job is finishe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_migration_target 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 prepare_migration_target API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | :param name: Name of the kvm domain that will be migrated
:param port: A dict of host_port: container_port pairs
Example:
`port={8080: 80, 7000:7000}`
Only supported if default network is used
:param nics: Configure the attached nics to... | ":param name: Name of the kvm domain that will be migrated\n :param port: A dict of host_port: container_port pairs\n Example:\n `port={8080: 80, 7000:7000}`\n Only supported if default network is used\n :param nics: Configure the attached n... | 236 | false | zero-os/0-core | prepare_migration_target | 6,794 | |
LDU_FT/edx/edx-django-release-util/apply_all | LDU_FT | [
"<BEGIN>\n## `dump_migration_session_state`",
"Serialize a migration session state to yaml using nicer formatting",
" Args:\n raw: object to serialize\n Returns: string (of yaml)",
" Specifically, this forces the \"output\" member of state step dicts (e.g.\n state[0]['output']) to use block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_all API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Applies all Django model migrations at once, recording the result. | "Applies all Django model migrations at once, recording the result." | 31 | false | edx/edx-django-release-util | apply_all | 6,795 | |
LDU_FT/amperser/proselint/check_exclamations_ppm | LDU_FT | [
"<BEGIN>\n## `check`",
"Flag offensive words based on the GLAAD reference guide.\n<END>",
"<BEGIN>\n## `score`",
"Compute the linter's score on the corpus.",
" Proselint's score reflects the desire to have a linter that catches many\n errors, but which takes false alarms seriously. It is better not to... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_exclamations_ppm 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 check_exclamations_ppm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Make sure that the exclamation ppm is under 30. | "Make sure that the exclamation ppm is under 30." | 94 | false | amperser/proselint | check_exclamations_ppm | 6,796 | |
LDU_FT/DsixTools/python-smeftrunner/wc_dict2lha | LDU_FT | [
"<BEGIN>\n## `load`",
"Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>",
"<BEGIN>\n## `lha2matrix`",
"Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wc_dict2lha API.
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 wc_dict2lha API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convert a a dictionary of Wilson coefficients into
a dictionary that pylha can convert into a DSixTools WC output file. | "Convert a a dictionary of Wilson coefficients into\n a dictionary that pylha can convert into a DSixTools WC output file." | 58 | false | DsixTools/python-smeftrunner | wc_dict2lha | 6,797 | |
LDU_FT/Metatab/geoid/allval | LDU_FT | [
"<BEGIN>\n## `base62_decode`",
"Decode a Base X encoded string into the number",
" Arguments:\n - `string`: The encoded string\n - `alphabet`: The alphabet to use for encoding\n Stolen from: http://stackoverflow.com/a/1119769/1144479\n<END>",
"<BEGIN>\n## `augment`",
"Call the augment() method f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the allval API.
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 allval API.
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 ... | Convert the last value to zero. This form represents the entire higher summary level at the granularity
of the lower summary level. For example, for a county, it means 'All counties in the state' | "Convert the last value to zero. This form represents the entire higher summary level at the granularity\n of the lower summary level. For example, for a county, it means 'All counties in the state'" | 40 | false | Metatab/geoid | allval | 6,798 | |
LDU_FT/onnx/onnx/_serialize | LDU_FT | [
"<BEGIN>\n## `run_node`",
"Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Serialize a in-memory proto to bytes
@params
proto is a in-memory proto, such as a ModelProto, TensorProto, etc
@return
Serialized proto in bytes | "Serialize a in-memory proto to bytes\n\n @params\n proto is a in-memory proto, such as a ModelProto, TensorProto, etc\n\n @return\n Serialized proto in bytes" | 72 | false | onnx/onnx | _serialize | 6,799 | |
LDU_FT/mdickinson/bigfloat/y1 | LDU_FT | [
"<BEGIN>\n## `build`",
"Build the bigfloat library for in-place testing.\n<END>",
"<BEGIN>\n## `_quotient_exponent`",
"Given two positive finite MPFR instances x and y,\n find the exponent of x / y; that is, the unique\n integer e such that 2**(e-1) <= x / y < 2**e.\n<END>",
"<BEGIN>\n## `mpfr_floordi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the y1 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the y1 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | Return the value of the second kind Bessel function of order 1 at x. | "Return the value of the second kind Bessel function of order 1 at x." | 273 | false | mdickinson/bigfloat | y1 | 6,800 | |
LDU_FT/trendels/rhino/get | LDU_FT | [
"<BEGIN>\n## `parse_etag_header`",
"Parse a header containing one or more ETags or a wildcard ('*').",
" Returns the string '*' or a list of ETags as (weak, etag) tuples.\n `weak` is the prefix designating a weak ETag, or the empty string.\n `etag` is the ETag (including quotes) with the weak prefix st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Returns the first value for a key.
If `type` is not None, the value will be converted by calling
`type` with the value as argument. If type() raises `ValueError`, it
will be treated as if the value didn't exist, and `default` will be
returned instead. | "Returns the first value for a key.\n\n If `type` is not None, the value will be converted by calling\n `type` with the value as argument. If type() raises `ValueError`, it\n will be treated as if the value didn't exist, and `default` will be\n returned instead." | 158 | false | trendels/rhino | get | 6,801 | |
LDU_FT/samjabrahams/anchorhub/print_no_files_found | LDU_FT | [
"<BEGIN>\n## `get`",
"Extract the specified AnchorHub tag, as well as the portion of the\n line that should be converted from the ATX style Markdown header.",
" :param file_lines: List of strings corresponding to lines in a text file\n :param index: index of file_lines corresponding to the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_no_files_found 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 print_no_files_found API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Prints message that no files were found in the input directory with the
given list of extensions.
:param opts: Namespace object created from command-line arguments. Must
have the attributes 'extensions' and 'input' | "Prints message that no files were found in the input directory with the\n given list of extensions.\n\n :param opts: Namespace object created from command-line arguments. Must\n have the attributes 'extensions' and 'input'" | 148 | false | samjabrahams/anchorhub | print_no_files_found | 6,802 | |
LDU_FT/bokeh/bokeh/is_valid | LDU_FT | [
"<BEGIN>\n## `notify_owner`",
"A decorator for mutating methods of property container classes\n that notifies owners of the property container about mutating changes.",
" Args:\n func (callable) : the container method to wrap in a notification",
" Returns:\n wrapped method",
" Exam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
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 is_valid API.
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... | Whether the value passes validation
Args:
value (obj) : the value to validate against this property type
Returns:
True if valid, False otherwise | "Whether the value passes validation\n\n Args:\n value (obj) : the value to validate against this property type\n\n Returns:\n True if valid, False otherwise" | 2,090 | true | bokeh/bokeh | is_valid | 6,803 | |
LDU_FT/zalando/patroni/_query | LDU_FT | [
"<BEGIN>\n## `create_connection`",
"This method is trying to establish connection with one of the zookeeper nodes.\n Somehow strategy \"fail earlier and retry more often\" works way better comparing to\n the original strategy \"try to connect with specified timeout\".\n Since we want... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _query API.
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 _query API.
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 ... | We are always using the same cursor, therefore this method is not thread-safe!!!
You can call it from different threads only if you are holding explicit `AsyncExecutor` lock,
because the main thread is always holding this lock when running HA cycle. | "We are always using the same cursor, therefore this method is not thread-safe!!!\n You can call it from different threads only if you are holding explicit `AsyncExecutor` lock,\n because the main thread is always holding this lock when running HA cycle." | 228 | false | zalando/patroni | _query | 6,804 | |
LDU_FT/F-Secure/see/unsubscribe | LDU_FT | [
"<BEGIN>\n## `create`",
"Creates a virtual network according to the given configuration.",
" @param hypervisor: (libvirt.virConnect) connection to libvirt hypervisor.\n @param identifier: (str) UUID for the virtual network.\n @param configuration: (dict) network configuration.",
" @return: (libvir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the unsubscribe API.
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 unsubscribe API.
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... | Unsubscribes the Handler from the given Event.
Both synchronous and asynchronous handlers are removed.
@param event: (str|see.Event) event to which the handler is subscribed.
@param handler: (callable) function or method to unsubscribe. | "Unsubscribes the Handler from the given Event.\n Both synchronous and asynchronous handlers are removed.\n\n @param event: (str|see.Event) event to which the handler is subscribed.\n @param handler: (callable) function or method to unsubscribe." | 130 | false | F-Secure/see | unsubscribe | 6,805 | |
LDU_FT/pymupdf/PyMuPDF/abs_unit | LDU_FT | [
"<BEGIN>\n## `_Widget_fontdict`",
"Turns the above font definitions into a dictionary. Assumes certain line breaks and spaces.\n<END>",
"<BEGIN>\n## `getTextlength`",
"Calculate length of a string for a given built-in font.",
" Args:\n fontname: name of the font.\n fontsize: size of font in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abs_unit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abs_unit API.
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... | Return unit vector of a point with positive coordinates. | "Return unit vector of a point with positive coordinates." | 282 | false | pymupdf/PyMuPDF | abs_unit | 6,806 | |
LDU_FT/rigetti/pyquil/add_decoherence_noise | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_decoherence_noise API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_decoherence_noise API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Add generic damping and dephasing noise to a program.
This high-level function is provided as a convenience to investigate the effects of a
generic noise model on a program. For more fine-grained control, please investigate
the other methods available in the ``pyquil.noise`` module.
In an attempt to c... | "Add generic damping and dephasing noise to a program.\n\n This high-level function is provided as a convenience to investigate the effects of a\n generic noise model on a program. For more fine-grained control, please investigate\n the other methods available in the ``pyquil.noise`` module.\n\n In an attem... | 1,152 | true | rigetti/pyquil | add_decoherence_noise | 6,807 | |
LDU_FT/MacHu-GWU/single_file_module-project/find_n_nearest | LDU_FT | [
"<BEGIN>\n## `use`",
"Change the hash algorithm you gonna use.\n<END>",
"<BEGIN>\n## `of_bytes`",
"Use default hash method to return hash value of bytes.",
" :type py_bytes: binary_type\n :param py_bytes: a binary object\n<END>",
"<BEGIN>\n## `of_text`",
"Use default hash method to return ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_n_nearest API.
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 find_n_nearest API.
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... | Find n nearest point within certain distance from a point.
:param lat: latitude of center point.
:param lng: longitude of center point.
:param n: max number of record to return.
:param radius: only search point within ``radius`` distance.
**中文文档** | "Find n nearest point within certain distance from a point.\n\n :param lat: latitude of center point.\n :param lng: longitude of center point.\n :param n: max number of record to return.\n :param radius: only search point within ``radius`` distance.\n\n **中文文档**" | 297 | false | MacHu-GWU/single_file_module-project | find_n_nearest | 6,808 | |
LDU_FT/madedotcom/photon-pump/iter | LDU_FT | [
"<BEGIN>\n## `NewEvent`",
"Build the data structure for a new event.",
" Args:\n type: An event type.\n id: The uuid identifier for the event.\n data: A dict containing data for the event. These data\n must be json serializable.\n metadata: A dict containing metadata ab... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the iter API.
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 iter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read through a stream of events until the end and then stop.
Args:
stream: The name of the stream to read.
direction: Controls whether to read forward or backward through the
stream. Defaults to StreamDirection.Forward
from_event: The sequence number of the fi... | "Read through a stream of events until the end and then stop.\n\n Args:\n stream: The name of the stream to read.\n direction: Controls whether to read forward or backward through the\n stream. Defaults to StreamDirection.Forward\n from_event: The sequence number of... | 94 | false | madedotcom/photon-pump | iter | 6,809 | |
LDU_FT/Richienb/quilt/convertbinary | LDU_FT | [
"<BEGIN>\n## `userinput`",
"Get the input of the user via a universally secure method.",
" :type prompttext: string\n :param prompttext: The text to display while receiving the data.",
" :type times: integer\n :param times: The amount of times to ask the user. If value is not 1, a list will be ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convertbinary API.
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 convertbinary API.
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... | Convert text to binary form or backwards.
:type value: string
:param value: The text or the binary text
:type argument: string
:param argument: The action to perform on the value. Can be "to" or "from". | "Convert text to binary form or backwards.\n\n :type value: string\n :param value: The text or the binary text\n\n :type argument: string\n :param argument: The action to perform on the value. Can be \"to\" or \"from\"." | 210 | false | Richienb/quilt | convertbinary | 6,810 | |
LDU_FT/hootnot/oanda-api-v20/abstractclass | LDU_FT | [
"<BEGIN>\n## `dyndoc_insert`",
"docstring_insert - a decorator to insert API-docparts dynamically.\n<END>",
"<BEGIN>\n## `endpoint`",
"endpoint - decorator to manipulate the REST-service endpoint.",
" The endpoint decorator sets the endpoint and the method for the class\n to access the REST-service.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abstractclass API.
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 abstractclass API.
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... | abstractclass - class decorator.
make sure the class is abstract and cannot be used on it's own.
@abstractclass
class A(object):
def __init__(self, *args, **kwargs):
# logic
pass
class B(A):
pass
a = A() # results in an AssertionError
b = B() # wor... | "abstractclass - class decorator.\n\n make sure the class is abstract and cannot be used on it's own.\n\n @abstractclass\n class A(object):\n def __init__(self, *args, **kwargs):\n # logic\n pass\n\n class B(A):\n pass\n\n a = A() # results in an AssertionError\n ... | 42 | false | hootnot/oanda-api-v20 | abstractclass | 6,811 | |
LDU_FT/d11wtq/dockerpty/start | LDU_FT | [
"<BEGIN>\n## `before_all`",
"Pulls down busybox:latest before anything is tested.\n<END>",
"<BEGIN>\n## `after_scenario`",
"Cleans up docker containers used as test fixtures after test completes.\n<END>",
"<BEGIN>\n## `set_blocking`",
"Set the given file-descriptor blocking or non-blocking.",
" Retur... | 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 d... | 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 d... | Start trapping WINCH signals and resizing the PTY.
This method saves the previous WINCH handler so it can be restored on
`stop()`. | "Start trapping WINCH signals and resizing the PTY.\n\n This method saves the previous WINCH handler so it can be restored on\n `stop()`." | 66 | false | d11wtq/dockerpty | start | 6,812 | |
LDU_FT/Skyscanner/pycfmodel/wildcard_allowed_principals | LDU_FT | [
"<BEGIN>\n## `set_generic_keys`",
"Sets all the key value pairs that were not set manually in __init__.\n<END>",
"<BEGIN>\n## `star_resource_statements`",
"Find statements with a resources that is a * or has a * in it.\n<END>",
"<BEGIN>\n## `wildcard_allowed_actions`",
"Find statements which allow wildcar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wildcard_allowed_principals 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 wildcard_allowed_principals API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Find statements which allow wildcard principals.
A pattern can be specified for the wildcard principal | "Find statements which allow wildcard principals.\n\n A pattern can be specified for the wildcard principal" | 16 | false | Skyscanner/pycfmodel | wildcard_allowed_principals | 6,813 | |
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 peer.
:param peer: Peer to send message to.
:param latitude: Latitude of the location.
:param longitude: Longitude of the location.
:param reply: Message object or message_id to reply to.
:param on_success: Callback to call when call is complete.
:type r... | "Send location to peer.\n :param peer: Peer to send message to.\n :param latitude: Latitude of the location.\n :param longitude: Longitude of the location.\n :param reply: Message object or message_id to reply to.\n :param on_success: Callback to call when call is complete.\n\n ... | 94 | false | datamachine/twx | send_location | 6,814 | |
LDU_FT/hickeroar/simplebayes/untrain | LDU_FT | [
"<BEGIN>\n## `train_token`",
"Trains a particular token (increases the weight/count of it)",
" :param word: the token we're going to train\n :type word: str\n :param count: the number of occurances in the sample\n :type count: int\n<END>",
"<BEGIN>\n## `untrain_token`",
"Untrains... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the untrain API.
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 untrain API.
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... | Untrains a category with a sample of text
:param category: the name of the category we want to train
:type category: str
:param text: the text we want to untrain the category with
:type text: str | "Untrains a category with a sample of text\n\n :param category: the name of the category we want to train\n :type category: str\n :param text: the text we want to untrain the category with\n :type text: str" | 40 | false | hickeroar/simplebayes | untrain | 6,815 | |
LDU_FT/bitcraze/crazyflie-lib-python/receive_packet | LDU_FT | [
"<BEGIN>\n## `set_group_mask`",
"Set the group mask that the Crazyflie belongs to",
" :param group_mask: mask for which groups this CF belongs to\n<END>",
"<BEGIN>\n## `takeoff`",
"vertical takeoff from current x-y position to given height",
" :param absolute_height_m: absolut (m)\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_packet API.
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 receive_packet API.
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... | Receive a packet though the link. This call is blocking but will
timeout and return None if a timeout is supplied. | "Receive a packet though the link. This call is blocking but will\n timeout and return None if a timeout is supplied." | 312 | false | bitcraze/crazyflie-lib-python | receive_packet | 6,816 | |
LDU_FT/tshlabs/tunic/install | LDU_FT | [
"<BEGIN>\n## `_is_iterable`",
"Ensure that a value is iterable and not some sort of string\n<END>",
"<BEGIN>\n## `download_url`",
"Download the given URL with wget to the provided path. The command is\n run via Fabric on the current remote machine. Therefore, the destination\n path should be for the rem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Install target packages into a virtual environment.
If the virtual environment for the given release ID does not
exist on the remote system, it will be created. The virtual
environment will be created according to the standard Tunic
directory structure (see :doc:`design`).
If `... | "Install target packages into a virtual environment.\n\n If the virtual environment for the given release ID does not\n exist on the remote system, it will be created. The virtual\n environment will be created according to the standard Tunic\n directory structure (see :doc:`design`).\n\n ... | 73 | false | tshlabs/tunic | install | 6,817 | |
LDU_FT/nephila/djangocms-page-tags/get_title_tags | LDU_FT | [
"<BEGIN>\n## `get_cache_key`",
"Create the cache key for the current page and tag type\n<END>",
"<BEGIN>\n## `get_page_tags`",
"Retrieves all the tags for a Page instance.",
" :param page: a Page instance",
" :return: list or queryset of attached tags\n :type: List\n<END>",
"<BEGIN>\n## `page_h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_title_tags API.
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_title_tags API.
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... | Retrieves all the tags for a Title (given as page and language).
This function does not use fallbacks to retrieve title object.
:param page: a Page instance
:param lang: a language code
:return: list or queryset of attached tags
:type: List | "Retrieves all the tags for a Title (given as page and language).\n This function does not use fallbacks to retrieve title object.\n\n :param page: a Page instance\n :param lang: a language code\n\n :return: list or queryset of attached tags\n :type: List" | 26 | false | nephila/djangocms-page-tags | get_title_tags | 6,818 | |
LDU_FT/randomir/plucky/merge | LDU_FT | [
"<BEGIN>\n## `rewrap`",
"Inplace constructor. Depending on `self.inplace`, rewrap `obj`, or\n just update internal vars, possibly including the `obj`.\n<END>",
"<BEGIN>\n## `_filtered_list`",
"Iterate over `self.obj` list, extracting `selector` from each\n element. The `selector` can be a simple... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
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 merge API.
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... | Immutable merge ``a`` structure with ``b`` using binary operator ``op``
on leaf nodes. All nodes at, or below, ``max_depth`` are considered to be
leaf nodes.
Merged structure is returned, input data structures are not modified.
If ``recurse_list=True``, leaf lists of equal length will be merged on a
... | "Immutable merge ``a`` structure with ``b`` using binary operator ``op``\n on leaf nodes. All nodes at, or below, ``max_depth`` are considered to be\n leaf nodes.\n\n Merged structure is returned, input data structures are not modified.\n\n If ``recurse_list=True``, leaf lists of equal length will be merged... | 33 | false | randomir/plucky | merge | 6,819 | |
LDU_FT/inasafe/inasafe/hazards_for_layer | LDU_FT | [
"<BEGIN>\n## `dict`",
"dictionary representation of the metadata.",
" :return: dictionary representation of the metadata\n :rtype: dict\n<END>",
"<BEGIN>\n## `xml`",
"xml representation of the metadata.",
" :return: xml representation of the metadata\n :rtype: ElementTree.Eleme... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hazards_for_layer API.
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 hazards_for_layer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get hazard categories form layer_geometry_key.
:param layer_geometry_key: The geometry id
:type layer_geometry_key: str
:returns: List of hazard
:rtype: list | "Get hazard categories form layer_geometry_key.\n\n :param layer_geometry_key: The geometry id\n :type layer_geometry_key: str\n\n :returns: List of hazard\n :rtype: list" | 4,163 | true | inasafe/inasafe | hazards_for_layer | 6,820 | |
LDU_FT/davidchua/pymessenger/send_image_url | LDU_FT | [
"<BEGIN>\n## `send_attachment`",
"Send an attachment to the specified recipient using local path.\n Input:\n recipient_id: recipient id to send to\n attachment_type: type of attachment (image, video, audio, file)\n attachment_path: Path of attachment\n Output:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_image_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_image_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Send an image to specified recipient using URL.
Image must be PNG or JPEG or GIF (more might be supported).
https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment
Input:
recipient_id: recipient id to send to
image_url: url of image to ... | "Send an image to specified recipient using URL.\n Image must be PNG or JPEG or GIF (more might be supported).\n https://developers.facebook.com/docs/messenger-platform/send-api-reference/image-attachment\n Input:\n recipient_id: recipient id to send to\n image_url: url of ima... | 31 | false | davidchua/pymessenger | send_image_url | 6,821 | |
LDU_FT/datascopeanalytics/traces/distribution | LDU_FT | [
"<BEGIN>\n## `duration_to_number`",
"If duration is already a numeric type, then just return\n duration. If duration is a timedelta, return a duration in\n seconds.",
" TODO: allow for multiple types of units.\n<END>",
"<BEGIN>\n## `convert_args_to_list`",
"Convert all iterable pairs of inputs into... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distribution API.
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 distribution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Calculate the distribution of values over the given time range from
`start` to `end`.
Args:
start (orderable, optional): The lower time bound of
when to calculate the distribution. By default, the
first time point will be used.
end (orderable, o... | "Calculate the distribution of values over the given time range from\n `start` to `end`.\n\n Args:\n\n start (orderable, optional): The lower time bound of\n when to calculate the distribution. By default, the\n first time point will be used.\n\n end (or... | 73 | false | datascopeanalytics/traces | distribution | 6,822 | |
LDU_FT/tensorflow/hub/save_graph_to_file | LDU_FT | [
"<BEGIN>\n## `export`",
"Exports a ModuleSpec with weights taken from a checkpoint.",
" This is an helper to export modules directly from a ModuleSpec\n without having to create a session and set the variables to the\n intended values.",
" Example usage:",
" ```python\n spec = hub.create_m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_graph_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_graph_to_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Saves an graph to file, creating a valid quantized one if necessary. | "Saves an graph to file, creating a valid quantized one if necessary." | 488 | false | tensorflow/hub | save_graph_to_file | 6,823 | |
LDU_FT/insilicolife/micti/FDR_BH | LDU_FT | [
"<BEGIN>\n## `FDR_BH`",
"Benjamini-Hochberg p-value correction for multiple hypothesis testing.\n<END>",
"<BEGIN>\n## `logpdf_diagonal_gaussian`",
"Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x.\n A multivariate Gaussian distribution with a diagonal ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FDR_BH API.
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 FDR_BH API.
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 ... | Benjamini-Hochberg p-value correction for multiple hypothesis testing. | "Benjamini-Hochberg p-value correction for multiple hypothesis testing." | 20 | false | insilicolife/micti | FDR_BH | 6,824 | |
LDU_FT/barryp/py-amqplib/basic_get | LDU_FT | [
"<BEGIN>\n## `_textlist`",
"Returns a list of text strings contained within an element and its sub-elements.",
" Helpful for extracting text from prose-oriented XML (such as XHTML or DocBook).\n<END>",
"<BEGIN>\n## `_reindent`",
"Remove the existing indentation from each line of a chunk of\n text, s, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the basic_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | direct access to a queue
This method provides a direct access to the messages in a
queue using a synchronous dialogue that is designed for
specific types of application where synchronous functionality
is more important than performance.
PARAMETERS:
queue: shortstr
... | "direct access to a queue\n\n This method provides a direct access to the messages in a\n queue using a synchronous dialogue that is designed for\n specific types of application where synchronous functionality\n is more important than performance.\n\n PARAMETERS:\n queue: s... | 449 | false | barryp/py-amqplib | basic_get | 6,825 | |
LDU_FT/6809/MC6809/instruction_ADD16 | LDU_FT | [
"<BEGIN>\n## `instruction_RTS`",
"Program control is returned from the subroutine to the calling program.\n The return address is pulled from the stack.",
" source code forms: RTS",
" CC bits \"HNZVC\": -----\n<END>",
"<BEGIN>\n## `instruction_BSR_JSR`",
"Program control is transferre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instruction_ADD16 API.
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 instruction_ADD16 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Adds the 16-bit memory value into the 16-bit accumulator
source code forms: ADDD P
CC bits "HNZVC": -aaaa | "Adds the 16-bit memory value into the 16-bit accumulator\n\n source code forms: ADDD P\n\n CC bits \"HNZVC\": -aaaa" | 224 | false | 6809/MC6809 | instruction_ADD16 | 6,826 | |
LDU_FT/lavr/flask-emails/options | LDU_FT | [
"<BEGIN>\n## `init_app`",
"'Initialize' flask application.\n It creates EmailsConfig object and saves it in app.extensions.",
" You don't have to call this method directly.",
" :param app: Flask application object\n :return: Just created :meth:`~EmailsConfig` object\n<END>",
"<BEGIN>\n## `send`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the options API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Reads all EMAIL_ options and set default values. | "Reads all EMAIL_ options and set default values." | 15 | false | lavr/flask-emails | options | 6,827 | |
LDU_FT/MarcAureleCoste/sqla-filters/_get_relation | LDU_FT | [
"<BEGIN>\n## `filter`",
"Define the filter function that every node must to implement.",
" :param query: The sqlalchemy query.\n :type query: Query",
" :param entity: The entity model.\n :type entity: type",
" :return: The filtered query.\n :rtype: Tuple[Query, Any]... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_relation API.
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_relation API.
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... | Transform the list of relation to list of class.
:param related_mode: The model of the query.
:type related_mode: type
:param relations: The relation list get from the `_extract_relations`.
:type relations: List[str]
:return: Tuple with the list of relations (class) and the se... | "Transform the list of relation to list of class.\n\n :param related_mode: The model of the query.\n :type related_mode: type\n\n :param relations: The relation list get from the `_extract_relations`.\n :type relations: List[str]\n\n :return: Tuple with the list of relations (class) a... | 32 | false | MarcAureleCoste/sqla-filters | _get_relation | 6,828 | |
LDU_FT/ContextLab/quail/r2z | LDU_FT | [
"<BEGIN>\n## `analyze`",
"General analysis function that groups data by subject/list number and performs analysis.",
" Parameters\n ----------\n egg : Egg data object\n The data to be analyzed",
" subjgroup : list of strings or ints\n String/int variables indicating how to group over... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the r2z API.
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 r2z API.
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... | Function that calculates the Fisher z-transformation
Parameters
----------
r : int or ndarray
Correlation value
Returns
----------
result : int or ndarray
Fishers z transformed correlation value | "Function that calculates the Fisher z-transformation\n\n Parameters\n ----------\n r : int or ndarray\n Correlation value\n\n Returns\n ----------\n result : int or ndarray\n Fishers z transformed correlation value" | 201 | false | ContextLab/quail | r2z | 6,829 | |
LDU_FT/larryng/narwal/submitted | LDU_FT | [
"<BEGIN>\n## `get`",
"Sends a GET request to a reddit path determined by ``args``. Basically ``.get('foo', 'bar', 'baz')`` will GET http://www.reddit.com/foo/bar/baz/.json. ``kwargs`` supplied will be passed to :meth:`requests.get` after having ``user_agent`` and ``cookies`` injected. Injection only occurs if ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the submitted API.
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 submitted API.
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... | GETs user's submissions. Calls :meth:`narwal.Reddit.user_submitted`.
:param limit: max number of submissions to get | "GETs user's submissions. Calls :meth:`narwal.Reddit.user_submitted`.\n \n :param limit: max number of submissions to get" | 147 | false | larryng/narwal | submitted | 6,830 | |
LDU_FT/Microsoft/malmo/getCorner | LDU_FT | [
"<BEGIN>\n## `angvel`",
"Use sigmoid function to choose a delta that will help smoothly steer from current angle to target angle.\n<END>",
"<BEGIN>\n## `pointTo`",
"Steer towards the target pitch/yaw, return True when within the given tolerance threshold.\n<END>",
"<BEGIN>\n## `download`",
"Download Malmo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getCorner API.
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 getCorner API.
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 part of the XML string that defines the requested corner | "Return part of the XML string that defines the requested corner" | 80 | false | Microsoft/malmo | getCorner | 6,831 | |
LDU_FT/reillysiemens/layabout/_create_slack_with_token | LDU_FT | [
"<BEGIN>\n## `channel_to_id`",
"Surely there's a better way to do this...\n<END>",
"<BEGIN>\n## `send_message`",
"Prompt for and send a message to a channel.\n<END>",
"<BEGIN>\n## `_format_parameter_error_message`",
"Format an error message for missing positional arguments.",
" Args:\n name: T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_slack_with_token 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 _create_slack_with_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Create a :obj:`SlackClient` with a provided token. | "Create a :obj:`SlackClient` with a provided token." | 27 | false | reillysiemens/layabout | _create_slack_with_token | 6,832 | |
LDU_FT/twisted/mantissa/routeAnswer | LDU_FT | [
"<BEGIN>\n## `createUser`",
"Create a new, blank user account with the given name and domain and, if\n specified, with the given password.",
" @type localpart: C{unicode}\n @param localpart: The local portion of the username. ie, the\n C{'alice'} in C{'alice@example.com'}.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the routeAnswer API.
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 routeAnswer API.
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... | Implement L{IMessageRouter.routeMessage} by synchronously locating an
account via L{axiom.userbase.LoginSystem.accountByAddress}, and
delivering a response to it by calling a method on it and returning a
deferred containing its answer. | "Implement L{IMessageRouter.routeMessage} by synchronously locating an\n account via L{axiom.userbase.LoginSystem.accountByAddress}, and\n delivering a response to it by calling a method on it and returning a\n deferred containing its answer." | 1,120 | true | twisted/mantissa | routeAnswer | 6,833 | |
LDU_FT/fatiando/pooch/is_available | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new :class:`~pooch.Pooch` with sensible defaults to fetch data files.",
" If a version string is given, the Pooch will be versioned, meaning that the local\n storage folder and the base URL depend on the project version. This is necessary\n if your users have multiple ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_available API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_available API.
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... | Check availability of a remote file without downloading it.
Use this method when working with large files to check if they are available for
download.
Parameters
----------
fname : str
The file name (relative to the *base_url* of the remote data storage) to
... | "Check availability of a remote file without downloading it.\n\n Use this method when working with large files to check if they are available for\n download.\n\n Parameters\n ----------\n fname : str\n The file name (relative to the *base_url* of the remote data storage) to... | 69 | false | fatiando/pooch | is_available | 6,834 | |
LDU_FT/tcpcloud/python-aptly/_get_source_snapshots | LDU_FT | [
"<BEGIN>\n## `_publish_match`",
"Check if publish name matches list of names or regex patterns\n<END>",
"<BEGIN>\n## `get_repo_information`",
"fill two dictionnaries : one containing all the packages for every repository\n and the second one associating to every component of every publish its repos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_source_snapshots 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_source_snapshots API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get list of source snapshot names of given snapshot
TODO: we have to decide by description at the moment | "Get list of source snapshot names of given snapshot\n\n TODO: we have to decide by description at the moment" | 18 | false | tcpcloud/python-aptly | _get_source_snapshots | 6,835 | |
LDU_FT/interedition/collatex/_nbOperations | LDU_FT | [
"<BEGIN>\n## `collate`",
":type graph: VariantGraph\n :type collation: Collation\n<END>",
"<BEGIN>\n## `align`",
"Every step we have 3 choices:\n 1) Move pointer witness a --> omission\n 2) Move pointer witness b --> addition\n 3) Move pointer of both witness a/b --> match\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nbOperations API.
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 _nbOperations API.
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... | Exact number of atomic operations in _radixPass. | "Exact number of atomic operations in _radixPass." | 138 | false | interedition/collatex | _nbOperations | 6,836 | |
LDU_FT/zeaphoo/budoc/indent | LDU_FT | [
"<BEGIN>\n## `import_module`",
"Imports a module. A single point of truth for importing modules to\n be documented by `pydoc`. In particular, it makes sure that the top\n module in `module_name` can be imported by using only the paths in\n `pydoc.import_path`.",
" If a module has already been import... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the indent API.
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 indent API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Inserts `spaces` after each string of new lines in `s`
and before the start of the string. | "Inserts `spaces` after each string of new lines in `s`\n and before the start of the string." | 54 | false | zeaphoo/budoc | indent | 6,837 | |
LDU_FT/Riminder/python-riminder-api/add | LDU_FT | [
"<BEGIN>\n## `strtobytes`",
"Take a str and transform it into a byte array.\n<END>",
"<BEGIN>\n## `_get_fct_number_of_arg`",
"Get the number of argument of a fuction.\n<END>",
"<BEGIN>\n## `list`",
"Retreive all profiles that match the query param.",
" Args:\n date_end: <string> REQU... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
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 add API.
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... | Use the api to add a new profile using profile_data. | "Use the api to add a new profile using profile_data." | 29 | false | Riminder/python-riminder-api | add | 6,838 | |
LDU_FT/deployed/django-emailtemplates/get_help_values | LDU_FT | [
"<BEGIN>\n## `send_email`",
"Shortcut function for EmailFromTemplate class",
" @return: None\n<END>",
"<BEGIN>\n## `send_email`",
"Sends email to recipient based on self object parameters.",
" @param fail_silently: When it’s False, msg.send() will raise an smtplib.SMTPException if an error occur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_help_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_help_values API.
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... | Returns dict of help_context values (example values submitted in `EmailRegistry.register()` method). | "Returns dict of help_context values (example values submitted in `EmailRegistry.register()` method)." | 26 | false | deployed/django-emailtemplates | get_help_values | 6,839 | |
LDU_FT/biocommons/hgvs/_get_tgt_length | LDU_FT | [
"<BEGIN>\n## `_expose_rule_functions`",
"add parse functions for public grammar rules",
" Defines a function for each public grammar rule, based on\n introspecting the grammar. For example, the `c_interval` rule\n is exposed as a method `parse_c_interval` and used like this::",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tgt_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_tgt_length API.
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... | Get the total length of the whole reference sequence | "Get the total length of the whole reference sequence" | 210 | false | biocommons/hgvs | _get_tgt_length | 6,840 | |
LDU_FT/tisimst/mcerp/Weibull | LDU_FT | [
"<BEGIN>\n## `correlate`",
"Force a correlation matrix on a set of statistically distributed objects.\r\n This function works on objects in-place.\r",
" Parameters\r\n ----------\r\n params : array\r\n An array of of uv objects.\r\n corrmat : 2d-array\r\n The correlation matrix to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Weibull API.
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 Weibull API.
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 Weibull random variate
Parameters
----------
lamda : scalar
The scale parameter
k : scalar
The shape parameter | "A Weibull random variate\n \n Parameters\n ----------\n lamda : scalar\n The scale parameter\n k : scalar\n The shape parameter" | 166 | false | tisimst/mcerp | Weibull | 6,841 | |
LDU_FT/python/core-workflow/parse | LDU_FT | [
"<BEGIN>\n## `f`",
"Basic support for 3.6's f-strings, in 3.5!",
" Formats \"s\" using appropriate globals and locals\n dictionaries. This f-string:\n f\"hello a is {a}\"\n simply becomes\n f(\"hello a is {a}\")\n In other words, just throw parentheses around the\n string, and you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parses a string. Appends a list of blurb ENTRIES to self, as tuples:
(metadata, body)
metadata is a dict. body is a string. | "Parses a string. Appends a list of blurb ENTRIES to self, as tuples:\n (metadata, body)\n metadata is a dict. body is a string." | 71 | false | python/core-workflow | parse | 6,842 | |
LDU_FT/dmort27/panphon/_read_table | LDU_FT | [
"<BEGIN>\n## `fts`",
"Return features corresponding to segment as list of (value,\n feature) tuples",
" Args:\n segment (unicode): segment for which features are to be returned as\n Unicode string",
" Returns:\n list: None if `segment` c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_table API.
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 _read_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Read the data from data/ipa_all.csv into self.segments, a
list of 2-tuples of unicode strings and sets of feature tuples and
self.seg_dict, a dictionary mapping from unicode segments and sets of
feature tuples. | "Read the data from data/ipa_all.csv into self.segments, a\n list of 2-tuples of unicode strings and sets of feature tuples and\n self.seg_dict, a dictionary mapping from unicode segments and sets of\n feature tuples." | 112 | false | dmort27/panphon | _read_table | 6,843 | |
LDU_FT/hendrix/hendrix/DjangoStaticResource | LDU_FT | [
"<BEGIN>\n## `save_chat_message`",
"kwargs will always include:",
" 'data': \n # will always be exactly what your client sent on the socket\n # in this case...\n {u'message': u'hi', u'sender': u'anonymous', u'channel': u'homepage'},",
" 'dispatcher': \n # the dispatcher tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DjangoStaticResource 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 DjangoStaticResource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | takes an app level file dir to find the site root and servers static files
from static
Usage:
[...in app.resource...]
from hendrix.resources import DjangoStaticResource
StaticResource = DjangoStaticResource('/abspath/to/static/folder')
... OR ...
StaticResource = DjangoSt... | "takes an app level file dir to find the site root and servers static files\n from static\n Usage:\n [...in app.resource...]\n from hendrix.resources import DjangoStaticResource\n StaticResource = DjangoStaticResource('/abspath/to/static/folder')\n ... OR ...\n StaticResource = ... | 119 | false | hendrix/hendrix | DjangoStaticResource | 6,844 | |
LDU_FT/cherrypy/cheroot/send | LDU_FT | [
"<BEGIN>\n## `respond`",
"Process the current request.",
" From :pep:`333`:",
" The start_response callable must not actually transmit\n the response headers. Instead, it must store them for the\n server or gateway to transmit only after the first\n iteration... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send some part of message to the socket. | "Send some part of message to the socket." | 143 | false | cherrypy/cheroot | send | 6,845 | |
LDU_FT/boppreh/keyboard/_setup_name_tables | LDU_FT | [
"<BEGIN>\n## `is_modifier`",
"Returns True if `key` is a scan code or name of a modifier key.\n<END>",
"<BEGIN>\n## `key_to_scan_codes`",
"Returns a list of scan codes associated with this key (name or scan code).\n<END>",
"<BEGIN>\n## `parse_hotkey`",
"Parses a user-provided hotkey into nested tuples rep... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _setup_name_tables 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 _setup_name_tables 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... | Ensures the scan code/virtual key code/name translation tables are
filled. | "Ensures the scan code/virtual key code/name translation tables are\n filled." | 158 | false | boppreh/keyboard | _setup_name_tables | 6,846 | |
LDU_FT/cuzzo/iw_parse/get_quality | LDU_FT | [
"<BEGIN>\n## `get_quality`",
"Gets the quality of a network / cell.\n @param string cell\n A network / cell from iwlist scan.",
" @return string\n The quality of the network.\n<END>",
"<BEGIN>\n## `get_signal_level`",
"Gets the signal level of a network / cell.\n @param string cell\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_quality API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_quality API.
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... | Gets the quality of a network / cell.
@param string cell
A network / cell from iwlist scan.
@return string
The quality of the network. | "Gets the quality of a network / cell.\n @param string cell\n A network / cell from iwlist scan.\n\n @return string\n The quality of the network." | 25 | false | cuzzo/iw_parse | get_quality | 6,847 | |
LDU_FT/common-workflow-language/workflow-service/get_version | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Determines the version of a .py, .wdl, or .cwl file.\n<END>",
"<BEGIN>\n## `wf_info`",
"Returns the version of the file and the file extension.",
" Assumes that the file path is to the file directly ie, ends with a valid file extension.Supports checking local\n files as w... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Determines the version of a .py, .wdl, or .cwl file. | "Determines the version of a .py, .wdl, or .cwl file." | 53 | false | common-workflow-language/workflow-service | get_version | 6,848 | |
LDU_FT/ahawker/ulid/parse | LDU_FT | [
"<BEGIN>\n## `datetime`",
"Creates a :class:`~datetime.datetime` instance (assumes UTC) from the Unix time value of the timestamp\n with millisecond precision.",
" :return: Timestamp in datetime form.\n :rtype: :class:`~datetime.datetime`\n<END>",
"<BEGIN>\n## `new`",
"Create a new :cla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Create a new :class:`~ulid.ulid.ULID` instance from the given value.
.. note:: This method should only be used when the caller is trying to parse a ULID from
a value when they're unsure what format/primitive type it will be given in.
:param value: ULID value of any supported type
:type value: :class:`... | "Create a new :class:`~ulid.ulid.ULID` instance from the given value.\n\n .. note:: This method should only be used when the caller is trying to parse a ULID from\n a value when they're unsure what format/primitive type it will be given in.\n\n :param value: ULID value of any supported type\n :type value: :... | 72 | false | ahawker/ulid | parse | 6,849 | |
LDU_FT/tgbugs/pyontutils/get_equiv_inter | LDU_FT | [
"<BEGIN>\n## `build_transgenic_lines`",
"init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_equiv_inter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_equiv_inter API.
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... | get equivelant classes where curie is in an intersection | "get equivelant classes where curie is in an intersection" | 301 | false | tgbugs/pyontutils | get_equiv_inter | 6,850 | |
LDU_FT/cnelson/python-fleet/_request | LDU_FT | [
"<BEGIN>\n## `_set_options_from_file`",
"Parses a unit file and updates self._data['options']",
" Args:\n file_handle (file): a file-like object (supporting read()) containing a unit",
" Returns:\n True: The file was successfuly parsed and options were updated",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Make a request with automatic pagination handling
Args:
method (str): A dot delimited string indicating the method to call. Example: 'Machines.List'
*args: Passed directly to the method being called.
**kwargs: Passed directly to the method being called.
... | "Make a request with automatic pagination handling\n\n Args:\n method (str): A dot delimited string indicating the method to call. Example: 'Machines.List'\n *args: Passed directly to the method being called.\n **kwargs: Passed directly to the method being called.\n ... | 89 | false | cnelson/python-fleet | _request | 6,851 | |
LDU_FT/byt3bl33d3r/CrackMapExec/add_computer | LDU_FT | [
"<BEGIN>\n## `add_computer`",
"Check if this host has already been added to the database, if not add it in.\n<END>",
"<BEGIN>\n## `remove_credentials`",
"Removes a credential ID from the database\n<END>",
"<BEGIN>\n## `options`",
"SERVER IP of the SMB server\n NAME LNK file name\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_computer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_computer API.
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... | Check if this host has already been added to the database, if not add it in. | "Check if this host has already been added to the database, if not add it in." | 77 | false | byt3bl33d3r/CrackMapExec | add_computer | 6,852 | |
LDU_FT/mathandy/svgpathtools/points_in_each_seg | LDU_FT | [
"<BEGIN>\n## `big_bounding_box`",
"Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>",
"<BEGIN>\n## `disvg`",
"Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the points_in_each_seg 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 points_in_each_seg 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... | Compute seg.point(t) for each seg in path and each t in tvals. | "Compute seg.point(t) for each seg in path and each t in tvals." | 252 | false | mathandy/svgpathtools | points_in_each_seg | 6,853 | |
LDU_FT/swevm/scaleio-py/volumes | LDU_FT | [
"<BEGIN>\n## `get`",
"Returns a `list` of all the `System` objects to the cluster. Updates every time - no caching.\n :return: a `list` of all the `System` objects known to the cluster.\n :rtype: list\n<END>",
"<BEGIN>\n## `set_sds_name`",
"Set name for SDS\n :param name: Name of SDS\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the volumes API.
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 volumes API.
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... | Returns a `list` of all the `Volume` known to the cluster. Updates every time - no caching.
:return: a `list` of all the `Volume` known to the cluster.
:rtype: list | "Returns a `list` of all the `Volume` known to the cluster. Updates every time - no caching.\n :return: a `list` of all the `Volume` known to the cluster.\n :rtype: list" | 113 | false | swevm/scaleio-py | volumes | 6,854 | |
LDU_FT/wohlgejm/accountable/transitions | LDU_FT | [
"<BEGIN>\n## `configure`",
"Initial configuration. Used to specify your username, password and domain.\n Configuration is stored in ~/.accountable/config.yaml.\n<END>",
"<BEGIN>\n## `issuetypes`",
"List all issue types. Optional parameter to list issue types by a given\n project.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transitions API.
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 transitions API.
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... | List all possible transitions for a given issue. | "List all possible transitions for a given issue." | 22 | false | wohlgejm/accountable | transitions | 6,855 | |
LDU_FT/ramses-tech/ramses/generate_resource | LDU_FT | [
"<BEGIN>\n## `get_existing_model`",
"Try to find existing model class named `model_name`.",
" :param model_name: String name of the model class.\n<END>",
"<BEGIN>\n## `prepare_relationship`",
"Create referenced model if it doesn't exist.",
" When preparing a relationship, we check to see if the mode... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_resource API.
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_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Perform complete one resource configuration process
This function generates: ACL, view, route, resource, database
model for a given `raml_resource`. New nefertari resource is
attached to `parent_resource` class which is an instance of
`nefertari.resource.Resource`.
Things to consider:
* Top-... | "Perform complete one resource configuration process\n\n This function generates: ACL, view, route, resource, database\n model for a given `raml_resource`. New nefertari resource is\n attached to `parent_resource` class which is an instance of\n `nefertari.resource.Resource`.\n\n Things to consider:\n ... | 180 | false | ramses-tech/ramses | generate_resource | 6,856 | |
LDU_FT/WoLpH/python-statsd/send | LDU_FT | [
"<BEGIN>\n## `send`",
"Send the data over UDP while taking the sample_rate in account",
" The sample rate should be a number between `0` and `1` which indicates\n the probability that a message will be sent. The sample_rate is also\n communicated to `statsd` so it knows what multiplier to u... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
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 send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send the data to statsd via self.connection
:keyword subname: The subname to report the data to (appended to the
client name)
:type subname: str
:keyword value: The raw value to send | "Send the data to statsd via self.connection\n\n :keyword subname: The subname to report the data to (appended to the\n client name)\n :type subname: str\n :keyword value: The raw value to send" | 67 | false | WoLpH/python-statsd | send | 6,857 | |
LDU_FT/dr4ke616/pinky/find_common | LDU_FT | [
"<BEGIN>\n## `handle_stop_command`",
"Kill the running service\n :param srv: `str` containing the service to kill\n passed in as underscore_case\n<END>",
"<BEGIN>\n## `get_machine`",
"Returns the number of the machine which key gets sent to.\n<END>",
"<BEGIN>\n## `find_common`",
"Find co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_common API.
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 find_common API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Find common parts in thelist items ex: 'ab' for ['abcd','abce','abf']
requires an ordered list | "Find common parts in thelist items ex: 'ab' for ['abcd','abce','abf']\n requires an ordered list" | 12 | false | dr4ke616/pinky | find_common | 6,858 | |
LDU_FT/rfk/threading2/from_thread | LDU_FT | [
"<BEGIN>\n## `process_affinity`",
"Get or set the CPU affinity set for the current process.",
" This will affect all future threads spawned by this process. It is\n implementation-defined whether it will also affect previously-spawned\n threads.\n<END>",
"<BEGIN>\n## `acquire`",
"Attempt to acquir... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_thread API.
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 from_thread API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convert a vanilla thread object into an instance of this class.
This method "upgrades" a vanilla thread object to an instance of this
extended class. You might need to call this if you obtain a reference
to a thread by some means other than (a) creating it, or (b) from the
methods of ... | "Convert a vanilla thread object into an instance of this class.\n\n This method \"upgrades\" a vanilla thread object to an instance of this\n extended class. You might need to call this if you obtain a reference\n to a thread by some means other than (a) creating it, or (b) from the \n met... | 24 | false | rfk/threading2 | from_thread | 6,859 | |
LDU_FT/jtmoulia/switchboard-python/main | LDU_FT | [
"<BEGIN>\n## `main`",
"Create, connect, and block on the Lamson worker.\n<END>",
"<BEGIN>\n## `received_new`",
"As new messages arrive, deliver them to the lamson relay.\n<END>",
"<BEGIN>\n## `_isPromise`",
"A utility function to determine if the specified\n object is a promise using \"duck typing\".\n... | 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... | Create, connect, and block on the listener worker. | "Create, connect, and block on the listener worker." | 35 | false | jtmoulia/switchboard-python | main | 6,860 | |
LDU_FT/log2timeline/dfvfs/_GetMemberForOffset | LDU_FT | [
"<BEGIN>\n## `comparable`",
"str: comparable representation of the path specification.\n<END>",
"<BEGIN>\n## `GetFormatSpecification`",
"Retrieves the format specification.",
" Returns:\n FormatSpecification: format specification or None if the format cannot\n be defined by a specification ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _GetMemberForOffset 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 _GetMemberForOffset 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... | Finds the member whose data includes the provided offset.
Args:
offset (int): offset in the uncompressed data to find the
containing member for.
Returns:
gzipfile.GzipMember: gzip file member or None if not available.
Raises:
ValueError: if the provided offset is outside of th... | "Finds the member whose data includes the provided offset.\n\n Args:\n offset (int): offset in the uncompressed data to find the\n containing member for.\n\n Returns:\n gzipfile.GzipMember: gzip file member or None if not available.\n\n Raises:\n ValueError: if the provided offset is ou... | 1,933 | true | log2timeline/dfvfs | _GetMemberForOffset | 6,861 | |
LDU_FT/pcdinh/greenclock/schedule | LDU_FT | [
"<BEGIN>\n## `wait_until`",
"Calculates the number of seconds that the process needs to sleep\n<END>",
"<BEGIN>\n## `schedule`",
"ts = Scheduler('my_task')\n ts.schedule(every(seconds=10), handle_message, \"Every 10 seconds\")\n ts.schedule(every(seconds=30), fetch_url, url=\"http://yahoo.com\",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the schedule API.
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 schedule API.
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... | ts = Scheduler('my_task')
ts.schedule(every(seconds=10), handle_message, "Every 10 seconds")
ts.schedule(every(seconds=30), fetch_url, url="http://yahoo.com", section="stock_ticker")
ts.run_forever() | "ts = Scheduler('my_task')\n ts.schedule(every(seconds=10), handle_message, \"Every 10 seconds\")\n ts.schedule(every(seconds=30), fetch_url, url=\"http://yahoo.com\", section=\"stock_ticker\")\n ts.run_forever()" | 13 | false | pcdinh/greenclock | schedule | 6,862 | |
LDU_FT/steffann/pylisp/sanitize | LDU_FT | [
"<BEGIN>\n## `from_bytes`",
"Look at the type of the message, instantiate the correct class and\n let it parse the message.\n<END>",
"<BEGIN>\n## `sanitize`",
"Check if the current settings conform to the LISP specifications and\n fix them where possible.\n<END>",
"<BEGIN>\n## `calculate_authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sanitize API.
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 sanitize API.
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... | Check if the current settings conform to the LISP specifications and
fix them where possible. | "Check if the current settings conform to the LISP specifications and\n fix them where possible." | 85 | false | steffann/pylisp | sanitize | 6,863 | |
LDU_FT/CartoDB/cartoframes/vmap | LDU_FT | [
"<BEGIN>\n## `get_scheme_cartocss`",
"Get TurboCARTO CartoCSS based on input parameters\n<END>",
"<BEGIN>\n## `custom`",
"Create a custom scheme.",
" Args:\n colors (list of str): List of hex values for styling data\n bins (int, optional): Number of bins to style by. If not given, the\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vmap API.
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 vmap API.
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... | CARTO VL-powered interactive map
Args:
layers (list of Layer-types): List of layers. One or more of
:py:class:`Layer <cartoframes.contrib.vector.Layer>`,
:py:class:`QueryLayer <cartoframes.contrib.vector.QueryLayer>`, or
:py:class:`LocalLayer <cartoframes.contrib.vector.LocalL... | "CARTO VL-powered interactive map\n\n Args:\n layers (list of Layer-types): List of layers. One or more of\n :py:class:`Layer <cartoframes.contrib.vector.Layer>`,\n :py:class:`QueryLayer <cartoframes.contrib.vector.QueryLayer>`, or\n :py:class:`LocalLayer <cartoframes.contrib.vector... | 217 | false | CartoDB/cartoframes | vmap | 6,864 | |
LDU_FT/delfick/gitmit/relpath_for | LDU_FT | [
"<BEGIN>\n## `relpath_for`",
"Find the relative path from here from the parent_dir\n<END>",
"<BEGIN>\n## `find`",
"Find all the files we want to find commit times for, and any extra files\n under symlinks.",
" Then find the commit times for those files and return a dictionary of\n {rela... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the relpath_for API.
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 relpath_for API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Find the relative path from here from the parent_dir | "Find the relative path from here from the parent_dir" | 57 | false | delfick/gitmit | relpath_for | 6,865 | |
LDU_FT/DasIch/argvard/parse | LDU_FT | [
"<BEGIN>\n## `from_string`",
"Returns a :class:`Signature` object based on the given `string`. If\n `option` is `True`, repetitions or optional patterns will not be\n allowed.",
" If the `string` cannot be parsed, :exc:`InvalidSignature` is raised.\n<END>",
"<BEGIN>\n## `usage`",
"A usa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parses the given `argv` and returns a dictionary mapping argument names
to the values found in `argv`. | "Parses the given `argv` and returns a dictionary mapping argument names\n to the values found in `argv`." | 31 | false | DasIch/argvard | parse | 6,866 | |
LDU_FT/RIPE-NCC/ripe-atlas-cousteau/add_option | LDU_FT | [
"<BEGIN>\n## `update_get_params`",
"Update HTTP GET params with the given fields that user wants to fetch.\n<END>",
"<BEGIN>\n## `_fetch_meta_data`",
"Makes an API call to fetch meta data for the given probe and stores the raw data.\n<END>",
"<BEGIN>\n## `_populate_data`",
"Assing some probe's raw meta da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_option API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_option API.
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... | Adds an option and its value to the class as an attribute and stores it
to the used options set. | "Adds an option and its value to the class as an attribute and stores it\n to the used options set." | 62 | false | RIPE-NCC/ripe-atlas-cousteau | add_option | 6,867 | |
LDU_FT/kstaniek/condoor/a_capture_show_configuration_failed | LDU_FT | [
"<BEGIN>\n## `_prepare_patterns`",
"Return two dictionaries: compiled and text prompts.\n<END>",
"<BEGIN>\n## `_platform_patterns`",
"Return all the patterns for specific platform.\n<END>",
"<BEGIN>\n## `pattern`",
"Return the pattern defined by the key string specific to the platform.",
" :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the a_capture_show_configuration_failed 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 a_capture_show_configuration_failed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Capture the show configuration failed result. | "Capture the show configuration failed result." | 229 | false | kstaniek/condoor | a_capture_show_configuration_failed | 6,868 | |
LDU_FT/simonw/datasette/expand_foreign_keys | LDU_FT | [
"<BEGIN>\n## `fail_if_publish_binary_not_installed`",
"Exit (with error message) if ``binary` isn't installed\n<END>",
"<BEGIN>\n## `path_from_row_pks`",
"Generate an optionally URL-quoted unique identifier\n for a row from its primary keys.\n<END>",
"<BEGIN>\n## `detect_fts`",
"Detect if table has... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_foreign_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the expand_foreign_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Returns dict mapping (column, value) -> label | "Returns dict mapping (column, value) -> label" | 36 | false | simonw/datasette | expand_foreign_keys | 6,869 | |
LDU_FT/riga/law/notify | LDU_FT | [
"<BEGIN>\n## `full_parser`",
"Returns the full *ArgumentParser* used by the luigi ``CmdlineParser``. The returned instance is\n cached.\n<END>",
"<BEGIN>\n## `root_task_parser`",
"Returns a new *ArgumentParser* instance that only contains paremeter actions of the root task.\n The returned instance is ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notify API.
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 notify API.
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 ... | notify(on_success=True, on_failure=True, **kwargs)
Wraps a bound method of a task and guards its execution. Information about the execution (task
name, duration, etc) is collected and dispatched to all notification transports registered on
wrapped task via adding :py:class:`law.NotifyParameter` parameters. ... | "notify(on_success=True, on_failure=True, **kwargs)\n Wraps a bound method of a task and guards its execution. Information about the execution (task\n name, duration, etc) is collected and dispatched to all notification transports registered on\n wrapped task via adding :py:class:`law.NotifyParameter` paramete... | 279 | false | riga/law | notify | 6,870 | |
LDU_FT/agoragames/kairos/_condense | LDU_FT | [
"<BEGIN>\n## `_resolve_time`",
"Resolve the time in seconds of a configuration value.\n<END>",
"<BEGIN>\n## `step_size`",
"Return the time in seconds of a step. If a begin and end timestamp,\n return the time in seconds between them after adjusting for what buckets\n they alias to. If t1 and t0 resolve ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _condense API.
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 _condense API.
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... | Condense by returning the last real value of the gauge. | "Condense by returning the last real value of the gauge." | 74 | false | agoragames/kairos | _condense | 6,871 | |
LDU_FT/pawelad/pymonzo/_parse_special_fields | LDU_FT | [
"<BEGIN>\n## `_parse_special_fields`",
"Helper method that parses special fields to Python objects",
" :param data: response from Monzo API request\n :type data: dict\n<END>",
"<BEGIN>\n## `_save_token_on_disk`",
"Helper function that saves the token on disk\n<END>",
"<BEGIN>\n## `_get_oauth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_special_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_special_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.
... | Helper method that parses special fields to Python objects
:param data: response from Monzo API request
:type data: dict | "Helper method that parses special fields to Python objects\n\n :param data: response from Monzo API request\n :type data: dict" | 40 | false | pawelad/pymonzo | _parse_special_fields | 6,872 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.