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/BoboTiG/python-mss/monitors | LDU_FT | [
"<BEGIN>\n## `to_png`",
"Dump data to a PNG file. If `output` is `None`, create no file but return\n the whole PNG data.",
" :param bytes data: RGBRGB...RGB data.\n :param tuple size: The (width, height) pair.\n :param int level: PNG compression level.\n :param str output: Output file name.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the monitors API.
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 monitors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get positions of monitors (see parent class). | "Get positions of monitors (see parent class)." | 62 | false | BoboTiG/python-mss | monitors | 30,973 | |
LDU_FT/isogeo/isogeo-api-py-minsdk/thesaurus | LDU_FT | [
"<BEGIN>\n## `set_base_url`",
"Set Isogeo base URLs according to platform.",
" :param str platform: platform to use. Options:",
" * prod [DEFAULT]\n * qa\n * int\n<END>",
"<BEGIN>\n## `convert_uuid`",
"Convert a metadata UUID to its URI equivalent. And conversely.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thesaurus API.
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 thesaurus API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get a thesaurus.
:param str token: API auth token
:param str thez_id: thesaurus UUID
:param str prot: https [DEFAULT] or http
(use it only for dev and tracking needs). | "Get a thesaurus.\n\n :param str token: API auth token\n :param str thez_id: thesaurus UUID\n :param str prot: https [DEFAULT] or http\n (use it only for dev and tracking needs)." | 154 | false | isogeo/isogeo-api-py-minsdk | thesaurus | 30,974 | |
LDU_FT/bitlabstudio/django-development-fabfile/import_media | LDU_FT | [
"<BEGIN>\n## `require_server`",
"Checks if the user has called the task with a server name.",
" Fabric tasks decorated with this decorator must be called like so::",
" fab <server name> <task name>",
" If no server name is given, the task will not be executed.\n<END>",
"<BEGIN>\n## `run_deplo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_media API.
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 import_media API.
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... | Extracts media dump into your local media root.
Please note that this might overwrite existing local files.
Usage::
fab import_media
fab import_media:filename=foobar.tar.gz | "Extracts media dump into your local media root.\n\n Please note that this might overwrite existing local files.\n\n Usage::\n\n fab import_media\n fab import_media:filename=foobar.tar.gz" | 77 | false | bitlabstudio/django-development-fabfile | import_media | 30,975 | |
LDU_FT/mixcloud/django-experiments/get_form | LDU_FT | [
"<BEGIN>\n## `points_with_surrounding_gaps`",
"This function makes sure that any gaps in the sequence provided have stopper points at their beginning\n and end so a graph will be drawn with correct 0 ranges. This is more efficient than filling in all points\n up to the maximum value. For example:",
" i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_form API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Add the default alternative dropdown with appropriate choices | "Add the default alternative dropdown with appropriate choices" | 40 | false | mixcloud/django-experiments | get_form | 30,976 | |
LDU_FT/viralogic/py-enumerable/select_many | LDU_FT | [
"<BEGIN>\n## `select`",
"Transforms data into different form\n :param func: lambda expression on how to perform transformation\n :return: new Enumerable object containing transformed data\n<END>",
"<BEGIN>\n## `min`",
"Returns the min value of data elements\n :param func: lambda expressio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_many API.
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 select_many API.
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... | Flattens an iterable of iterables returning a new Enumerable
:param func: selector as lambda expression
:return: new Enumerable object | "Flattens an iterable of iterables returning a new Enumerable\n :param func: selector as lambda expression\n :return: new Enumerable object" | 65 | false | viralogic/py-enumerable | select_many | 30,977 | |
LDU_FT/chrisnorman7/confmanager/set | LDU_FT | [
"<BEGIN>\n## `Show`",
"Before we show the frame, we need to add the finishing touches:\n<END>",
"<BEGIN>\n## `apply`",
"Before self.onOk closes the window, it calls this function to sync the config changes from the GUI back to self.config.\n<END>",
"<BEGIN>\n## `displayError`",
"Complain about something t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set API.
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 set API.
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... | set(self, section, option, value = None, title = None, validate = lambda value: None, help = '', control = None, args = [], kwargs = {}, include = True)
Store the value to the configuration with all it's associated data.
* title is the friendly name for the value (will be used for textual labels etc).
* va... | "set(self, section, option, value = None, title = None, validate = lambda value: None, help = '', control = None, args = [], kwargs = {}, include = True)\r\n Store the value to the configuration with all it's associated data.\r\n \r\n * title is the friendly name for the value (will be used for textual labels etc).\... | 22 | false | chrisnorman7/confmanager | set | 30,978 | |
LDU_FT/twilio/twilio-python/update | LDU_FT | [
"<BEGIN>\n## `stream`",
"Streams KeyInstance records from the API as a generator stream.\n This operation lazily loads records as efficiently as possible until the limit\n is reached.\n The results are returned as a generator, so this operation is memory efficient.",
" :param int lim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update the CredentialInstance
:param unicode friendly_name: A string to describe the resource
:param unicode certificate: [APN only] The URL-encoded representation of the certificate
:param unicode private_key: [APN only] URL-encoded representation of the private key
:param bool sandbox... | "Update the CredentialInstance\n\n :param unicode friendly_name: A string to describe the resource\n :param unicode certificate: [APN only] The URL-encoded representation of the certificate\n :param unicode private_key: [APN only] URL-encoded representation of the private key\n :param bool s... | 4,304 | true | twilio/twilio-python | update | 30,979 | |
LDU_FT/ivknv/s3m/connect | LDU_FT | [
"<BEGIN>\n## `normalize_path`",
">>> normalize_path(\"/a/b/c/\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/b/c////////\")\n '/a/b/c'\n >>> normalize_path(\"///a/b/c\")\n '/a/b/c'\n >>> normalize_path(\"/a/././b/../b/c/\")\n '/a/b/c'\n >>> normal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Analogous to sqlite3.connect()
:param path: Path to the database
:param lock_transactions: If `True`, parallel transactions will be blocked
:param lock_timeout: Maximum amount of time the connection is allowed to wait for a lock.
If the timeout i exceeded, :any:`LockTim... | "Analogous to sqlite3.connect()\n\n :param path: Path to the database\n :param lock_transactions: If `True`, parallel transactions will be blocked\n :param lock_timeout: Maximum amount of time the connection is allowed to wait for a lock.\n If the timeout i exceeded, :any:`L... | 27 | false | ivknv/s3m | connect | 30,980 | |
LDU_FT/mkouhei/tonicdnscli/set_json | LDU_FT | [
"<BEGIN>\n## `check_infile`",
"Check text file exisitense.",
" Argument:",
" filename: text file of bulk updating\n<END>",
"<BEGIN>\n## `set_json`",
"Convert text file to JSON.",
" Arguments:",
" domain: domain name of updating target\n action: True ; for PUT/POST HTTP m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Convert text file to JSON.
Arguments:
domain: domain name of updating target
action: True ; for PUT/POST HTTP method
False; for DELETE HTTP method
filename: text file of bulk updating (default is False)
record: json record of updating single record (default ... | "Convert text file to JSON.\n\n Arguments:\n\n domain: domain name of updating target\n action: True ; for PUT/POST HTTP method\n False; for DELETE HTTP method\n filename: text file of bulk updating (default is False)\n record: json record of updating single record ... | 192 | false | mkouhei/tonicdnscli | set_json | 30,981 | |
LDU_FT/awslabs/mxboard/export_scalars | LDU_FT | [
"<BEGIN>\n## `close`",
"Flushes the pending events and closes the writer after it is done.\n<END>",
"<BEGIN>\n## `reopen`",
"Reopens the EventFileWriter.\n Can be called after `close()` to add more events in the same directory.\n The events will go into a new events file.\n Does nothing i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_scalars API.
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 export_scalars API.
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... | Exports to the given path an ASCII file containing all the scalars written
so far by this instance, with the following format:
{writer_id : [[timestamp, step, value], ...], ...} | "Exports to the given path an ASCII file containing all the scalars written\n so far by this instance, with the following format:\n {writer_id : [[timestamp, step, value], ...], ...}" | 113 | false | awslabs/mxboard | export_scalars | 30,982 | |
LDU_FT/viniciuschiele/flask-io/from_query | LDU_FT | [
"<BEGIN>\n## `render`",
"Serializes a Python object into a byte array containing a JSON document.\n :param data: A Python object.\n :param mimetype: The mimetype to render the data.\n :return: A byte array containing a JSON document.\n<END>",
"<BEGIN>\n## `__get_indent`",
"Gets the indent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 extrac... | A decorator that converts a query string into a function parameter based on the specified field.
:param param_name: The parameter which receives the argument.
:param Field field: The field class or instance used to deserialize the request query string to a Python object.
:return: A function | "A decorator that converts a query string into a function parameter based on the specified field.\n\n :param param_name: The parameter which receives the argument.\n :param Field field: The field class or instance used to deserialize the request query string to a Python object.\n :return: A functio... | 77 | false | viniciuschiele/flask-io | from_query | 30,983 | |
LDU_FT/rauenzi/discordbot.py/stop_pages | LDU_FT | [
"<BEGIN>\n## `stop_pages`",
"stops the interactive pagination session\n<END>",
"<BEGIN>\n## `paginate`",
"Actually paginate the entries and run the interactive loop if necessary.\n<END>",
"<BEGIN>\n## `_do`",
"Repeats a command a specified number of times.\n<END>",
"<BEGIN>\n## `disable`",
"Disables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_pages API.
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 stop_pages API.
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... | stops the interactive pagination session | "stops the interactive pagination session" | 52 | false | rauenzi/discordbot.py | stop_pages | 30,984 | |
LDU_FT/mkouhei/bootstrap-py/_check_or_set_default_params | LDU_FT | [
"<BEGIN>\n## `print_licences`",
"Print licenses.",
" :param argparse.Namespace params: parameter\n :param bootstrap_py.classifier.Classifiers metadata: package metadata\n<END>",
"<BEGIN>\n## `check_repository_existence`",
"Check repository existence.",
" :param argparse.Namespace params: paramete... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_or_set_default_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_or_set_default_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Check key and set default vaule when it does not exists. | "Check key and set default vaule when it does not exists." | 28 | false | mkouhei/bootstrap-py | _check_or_set_default_params | 30,985 | |
LDU_FT/Cadair/jupyter_environment_kernels/source_foreign | LDU_FT | [
"<BEGIN>\n## `convert_to_env_data`",
"Converts a list of paths to environments to env_data.",
" env_data is a structure {name -> (ressourcedir, kernel spec)}\n<END>",
"<BEGIN>\n## `validate_IPykernel`",
"Validates that this env contains an IPython kernel and returns info to start it",
" Returns: tup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_foreign API.
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 source_foreign API.
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... | Sources a file written in a foreign shell language. | "Sources a file written in a foreign shell language." | 69 | false | Cadair/jupyter_environment_kernels | source_foreign | 30,986 | |
LDU_FT/desbma/sacad/compare | LDU_FT | [
"<BEGIN>\n## `waitAccessAsync`",
"Wait the needed time before sending a request to honor rate limit.\n<END>",
"<BEGIN>\n## `aiohttp_socket_timeout`",
"Return a aiohttp.ClientTimeout object with only socket timeouts set.\n<END>",
"<BEGIN>\n## `query`",
"Send a GET/POST request or get data from cache, retry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compare API.
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 compare API.
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... | Compare cover relevance/quality.
Return -1 if first is a worst match than second, 1 otherwise, or 0 if cover can't be discriminated.
This code is responsible for comparing two cover results to identify the best one, and is used to sort all results.
It is probably the most important piece of code of this t... | "Compare cover relevance/quality.\n\n Return -1 if first is a worst match than second, 1 otherwise, or 0 if cover can't be discriminated.\n\n This code is responsible for comparing two cover results to identify the best one, and is used to sort all results.\n It is probably the most important piece of code of ... | 63 | false | desbma/sacad | compare | 30,987 | |
LDU_FT/jut-io/jut-python-tools/get_access_token | LDU_FT | [
"<BEGIN>\n## `_print_jobs`",
"internal method to print the provided jobs array in a nice tabular\n format\n<END>",
"<BEGIN>\n## `debug`",
"debug output goes to stderr so you can still redirect the stdout to a file\n or another program. Controlled by the JUT_DEBUG environment variable being\n present\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_access_token API.
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_access_token API.
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 the access token (http://docs.jut.io/api-guide/#unique_171637733),
by either using the direct username, password combination or better yet by
using the authorization grant you generated on jut with the client_id,
client_secret combination
auth_url: auth url for the jut application (defaults to prod... | "get the access token (http://docs.jut.io/api-guide/#unique_171637733),\n by either using the direct username, password combination or better yet by\n using the authorization grant you generated on jut with the client_id,\n client_secret combination\n\n auth_url: auth url for the jut application (defaults t... | 72 | false | jut-io/jut-python-tools | get_access_token | 30,988 | |
LDU_FT/tcalmant/ipopo/__sort_registry | LDU_FT | [
"<BEGIN>\n## `__conn_listener`",
"Connection event listener",
" :param state: The new connection state\n<END>",
"<BEGIN>\n## `__path`",
"Adds the prefix to the given path",
" :param path: Z-Path\n :return: Prefixed Z-Path\n<END>",
"<BEGIN>\n## `create`",
"Creates a ZooKeeper node"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __sort_registry API.
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 __sort_registry API.
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... | Sorts the registry, after the update of the sort key of given service
reference
:param svc_ref: A service reference with a modified sort key | "Sorts the registry, after the update of the sort key of given service\n reference\n\n :param svc_ref: A service reference with a modified sort key" | 1,396 | true | tcalmant/ipopo | __sort_registry | 30,989 | |
LDU_FT/google/grr/_MakeArgs | LDU_FT | [
"<BEGIN>\n## `Column`",
"Iterates over values of a given column.",
" Args:\n column_name: A nome of the column to retrieve the values for.",
" Yields:\n Values of the specified column.",
" Raises:\n KeyError: If given column is not present in the table.\n<END>",
"<BEGIN>\n## `Check... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _MakeArgs API.
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 _MakeArgs API.
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... | Build metadata requests list from collection maps. | "Build metadata requests list from collection maps." | 4,605 | true | google/grr | _MakeArgs | 30,990 | |
LDU_FT/penguinmenac3/starttf/feature_passthrough | LDU_FT | [
"<BEGIN>\n## `easy_train_and_evaluate`",
"Train and evaluate your model without any boilerplate code.",
" 1) Write your data using the starttf.tfrecords.autorecords.write_data method.\n 2) Create your hyper parameter file containing all required fields and then load it using\n starttf.utils.hyper_p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feature_passthrough API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feature_passthrough API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | A feature passthrough layer inspired by yolo9000 and the inverse tiling layer.
It can be proven, that this layer does the same as conv(concat(inverse_tile(early_feat), late_feat)).
This layer has no activation function.
:param early_feat: The early feature layer of shape [batch_size, h * s_x, w * s_y, _].... | "A feature passthrough layer inspired by yolo9000 and the inverse tiling layer.\n\n It can be proven, that this layer does the same as conv(concat(inverse_tile(early_feat), late_feat)).\n This layer has no activation function.\n\n :param early_feat: The early feature layer of shape [batch_size, h * s_x, w * s_... | 120 | false | penguinmenac3/starttf | feature_passthrough | 30,991 | |
LDU_FT/yero13/na3x/regexp | LDU_FT | [
"<BEGIN>\n## `agg_multi_func`",
"Aggregates several functions\n :param values: list of objects (dict)\n :param agg_field: target field to calculate aggregates\n :param agg_funcs: list of aggregate functions\n :param group_by: field used to determine group\n :return: dict {agg_fu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the regexp API.
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 regexp API.
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 ... | Parses input according to pattern
:param input:
:param params:
:return: | "Parses input according to pattern\n :param input:\n :param params:\n :return:" | 82 | false | yero13/na3x | regexp | 30,992 | |
LDU_FT/brutus/wdiffhtml/generate_wdiff | LDU_FT | [
"<BEGIN>\n## `load_from_resource`",
"Returns the contents of a file resource.",
" If the resource exists in the users data directory, it is used instead\n of the default resource.\n<END>",
"<BEGIN>\n## `wdiff`",
"Returns the results of `wdiff` in a HTML compatible format.",
" Needs a :cls:`settings.Set... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_wdiff API.
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 generate_wdiff API.
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 the results from the `wdiff` command as a string.
HTML `<ins>` and `<del>` tags will be used instead of the default markings,
unless *html* is set to `False`.
If *fold_tags* is set, `<ins>` and `<del>` tags are allowed to span line
breaks (option `-n` is not used).
Raises:
subrocess.CalledProc... | "Returns the results from the `wdiff` command as a string.\n\n HTML `<ins>` and `<del>` tags will be used instead of the default markings,\n unless *html* is set to `False`.\n\n If *fold_tags* is set, `<ins>` and `<del>` tags are allowed to span line\n breaks (option `-n` is not used).\n\n Raises:\n\n subrocess... | 42 | false | brutus/wdiffhtml | generate_wdiff | 30,993 | |
LDU_FT/RusticiSoftware/TinCanPython/retrieve_state | LDU_FT | [
"<BEGIN>\n## `_make_cls`",
"If value is not instance of self._cls, converts and returns\n it. Otherwise, returns value.",
" :param value: the thing to make a self._cls from\n :rtype self._cls\n<END>",
"<BEGIN>\n## `_send_request`",
"Establishes connection and returns http response based... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Retrieve state from LRS with the provided parameters
:param activity: Activity object of desired state
:type activity: :class:`tincan.activity.Activity`
:param agent: Agent object of desired state
:type agent: :class:`tincan.agent.Agent`
:param state_id: UUID of desired state
... | "Retrieve state from LRS with the provided parameters\n\n :param activity: Activity object of desired state\n :type activity: :class:`tincan.activity.Activity`\n :param agent: Agent object of desired state\n :type agent: :class:`tincan.agent.Agent`\n :param state_id: UUID of desired s... | 121 | false | RusticiSoftware/TinCanPython | retrieve_state | 30,994 | |
LDU_FT/callowayproject/django-categories/result_tree_list | LDU_FT | [
"<BEGIN>\n## `_process_registry`",
"Given a dictionary, and a registration function, process the registry\n<END>",
"<BEGIN>\n## `register_model`",
"Process for Django 1.7 +\n app: app name/label\n model_name: name of the model\n field_definitions: a string, tuple or list of field configur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_tree_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the result_tree_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 ... | Displays the headers and data list together | "Displays the headers and data list together" | 73 | false | callowayproject/django-categories | result_tree_list | 30,995 | |
LDU_FT/etingof/pysnmp/getInstNamesByIndex | LDU_FT | [
"<BEGIN>\n## `getMibSymbol`",
"Returns MIB variable symbolic identification.",
" Returns\n -------\n str\n MIB module name\n str\n MIB variable symbolic name\n : :py:class:`~pysnmp.proto.rfc1902.ObjectName`\n class instance representing MIB ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getInstNamesByIndex 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 getInstNamesByIndex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Build column instance names from indices | "Build column instance names from indices" | 708 | false | etingof/pysnmp | getInstNamesByIndex | 30,996 | |
LDU_FT/gplepage/lsqfit/dump_p | LDU_FT | [
"<BEGIN>\n## `run`",
"Append version number to lsqfit/__init__.py\n<END>",
"<BEGIN>\n## `_reformat`",
"Apply format of ``p`` to data in 1-d array ``buf``.\n<END>",
"<BEGIN>\n## `_unpack_data`",
"Unpack data and prior into ``(x, y, prior, fdata)``.",
" This routine unpacks ``data`` and ``prior`` into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_p API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_p API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Dump parameter values (``fit.p``) into file ``filename``.
``fit.dump_p(filename)`` saves the best-fit parameter values
(``fit.p``) from a ``nonlinear_fit`` called ``fit``. These values
are recovered using
``p = nonlinear_fit.load_parameters(filename)``
where ``p``'s layout is th... | "Dump parameter values (``fit.p``) into file ``filename``.\n\n ``fit.dump_p(filename)`` saves the best-fit parameter values\n (``fit.p``) from a ``nonlinear_fit`` called ``fit``. These values\n are recovered using\n ``p = nonlinear_fit.load_parameters(filename)``\n where ``p``'s layou... | 208 | false | gplepage/lsqfit | dump_p | 30,997 | |
LDU_FT/Nekroze/partpy/load_file | LDU_FT | [
"<BEGIN>\n## `pretty_print`",
"Print the previous and current line with line numbers and\n a carret under the current character position.",
" Will also print a message if one is given to this exception.\n<END>",
"<BEGIN>\n## `parse`",
"Run the parser over the entire sourestring and return the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 extract... | Read in file contents and set the current string. | "Read in file contents and set the current string." | 80 | false | Nekroze/partpy | load_file | 30,998 | |
LDU_FT/Laufire/ec/reconfigArg | LDU_FT | [
"<BEGIN>\n## `registerExitCall`",
"r\"\"\"Registers an exit call to start the core.",
" The core would be started after the main module is loaded. Ec would be exited from the core.\n<END>",
"<BEGIN>\n## `run`",
"Excecutes the given command while transfering control, till the execution is complete.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reconfigArg API.
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 reconfigArg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | r"""Reconfigures an argument based on its configuration. | "r\"\"\"Reconfigures an argument based on its configuration." | 64 | false | Laufire/ec | reconfigArg | 30,999 | |
LDU_FT/rsmuc/health_monitoring_plugins/check_environment_temperature | LDU_FT | [
"<BEGIN>\n## `check_ups_estimated_minutes_remaining`",
"OID .1.3.6.1.2.1.33.1.2.3.0\n MIB excerpt\n An estimate of the time to battery charge depletion\n under the present load conditions if the utility power\n is off and remains off, or if it were to be lost and\n remain off.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_environment_temperature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_environment_temperature API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | OID .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1
MIB Excerpt
The current temperature reading from the probe displayed
in the units shown in the 'iemStatusProbeTempUnits' OID
(Celsius or Fahrenheit).
Description of unit OID
OID .1.3.6.1.4.1.318.1.1.10.2.3.2.1.5
The temperature scale used to display t... | "OID .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1\n MIB Excerpt\n The current temperature reading from the probe displayed\n in the units shown in the 'iemStatusProbeTempUnits' OID\n (Celsius or Fahrenheit).\n\n Description of unit OID\n OID .1.3.6.1.4.1.318.1.1.10.2.3.2.1.5\n The temperature scale used to ... | 75 | false | rsmuc/health_monitoring_plugins | check_environment_temperature | 31,000 | |
LDU_FT/dwavesystems/dimod/binary_to_spin | LDU_FT | [
"<BEGIN>\n## `sample`",
"Give random samples for a binary quadratic model.",
" Variable assignments are chosen by coin flip.",
" Args:\n bqm (:obj:`.BinaryQuadraticModel`):\n Binary quadratic model to be sampled from.",
" num_reads (int, optional, default=1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the binary_to_spin API.
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 binary_to_spin API.
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... | convert linear, quadratic and offset from binary to spin.
Does no checking of vartype. Copies all of the values into new objects. | "convert linear, quadratic and offset from binary to spin.\n Does no checking of vartype. Copies all of the values into new objects." | 908 | false | dwavesystems/dimod | binary_to_spin | 31,001 | |
LDU_FT/acorg/pymds/_gradient | LDU_FT | [
"<BEGIN>\n## `get`",
"Returns the current version without importing pymds.\n<END>",
"<BEGIN>\n## `_gradient`",
"Compute the gradient.",
" Args:\n diff (`array-like`): [`m`, `m`] matrix. `D` - `d`\n d (`array-like`): [`m`, `m`] matrix.\n coords (`array-like`): [`m`, `n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _gradient API.
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 _gradient API.
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... | Compute the gradient.
Args:
diff (`array-like`): [`m`, `m`] matrix. `D` - `d`
d (`array-like`): [`m`, `m`] matrix.
coords (`array-like`): [`m`, `n`] matrix.
Returns:
`np.array`: Gradient, shape [`m`, `n`]. | "Compute the gradient.\n\n Args:\n diff (`array-like`): [`m`, `m`] matrix. `D` - `d`\n d (`array-like`): [`m`, `m`] matrix.\n coords (`array-like`): [`m`, `n`] matrix.\n\n Returns:\n `np.array`: Gradient, shape [`m`, `n`]." | 60 | false | acorg/pymds | _gradient | 31,002 | |
LDU_FT/wimglenn/advent-of-code-data/get_day_and_year | LDU_FT | [
"<BEGIN>\n## `_get_answer`",
"Note: Answers are only revealed after a correct submission. If you've\n have not already solved the puzzle, AocdError will be raised.\n<END>",
"<BEGIN>\n## `get_data`",
"Get data for day (1-25) and year (>= 2015)\n User's session cookie is needed (puzzle inputs differ b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_day_and_year API.
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_day_and_year API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns tuple (day, year).
Here be dragons!
The correct date is determined with introspection of the call stack, first
finding the filename of the module from which ``aocd`` was imported.
This means your filenames should be something sensible, which identify the
day and year unambiguously. The ex... | "Returns tuple (day, year).\n\n Here be dragons!\n\n The correct date is determined with introspection of the call stack, first\n finding the filename of the module from which ``aocd`` was imported.\n\n This means your filenames should be something sensible, which identify the\n day and year unambiguousl... | 14 | false | wimglenn/advent-of-code-data | get_day_and_year | 31,003 | |
LDU_FT/ThePlasmaRailgun/py-rolldice/safe_power | LDU_FT | [
"<BEGIN>\n## `safe_power`",
"Same power of a ^ b\n :param a: Number a\n :param b: Number b\n :return: a ^ b\n<END>",
"<BEGIN>\n## `rabin_miller`",
"Performs a rabin-miller primality test",
" :param p: Number to test\n :return: Bool of whether num is prime\n<END>",
"<BEGIN>\n## `zero_width_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_power API.
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 safe_power API.
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... | Same power of a ^ b
:param a: Number a
:param b: Number b
:return: a ^ b | "Same power of a ^ b\n :param a: Number a\n :param b: Number b\n :return: a ^ b" | 41 | false | ThePlasmaRailgun/py-rolldice | safe_power | 31,004 | |
LDU_FT/nens/turn/follow | LDU_FT | [
"<BEGIN>\n## `draw`",
"Return a Serial number for this resource queue, after bootstrapping.\n<END>",
"<BEGIN>\n## `announce`",
"Announce an indicator change on both channels.\n<END>",
"<BEGIN>\n## `bump`",
"Fix indicator in case of unnanounced departments.\n<END>",
"<BEGIN>\n## `lock`",
"Lock a resour... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the follow API.
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 follow API.
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 ... | Follow publications involved with resources. | "Follow publications involved with resources." | 19 | false | nens/turn | follow | 31,005 | |
LDU_FT/lago-project/lago/_get_unused_nets | LDU_FT | [
"<BEGIN>\n## `expose`",
"Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.",
" Args:\n func(types.FunctionType/types.MethodType): function to decorate",
" Returns:\n None\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_unused_nets API.
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_unused_nets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return a list of nets that used only by the vms in vms_to_stop
Args:
vms_to_stop (list of str): The names of the requested vms
Returns
list of virt.Network: net objects that used only by
vms in vms_to_stop
Raises:
utils.LagoUserException: If a ... | "Return a list of nets that used only by the vms in vms_to_stop\n Args:\n vms_to_stop (list of str): The names of the requested vms\n Returns\n list of virt.Network: net objects that used only by\n vms in vms_to_stop\n Raises:\n utils.LagoUserExceptio... | 718 | false | lago-project/lago | _get_unused_nets | 31,006 | |
LDU_FT/RedFantom/ttkwidgets/cget | LDU_FT | [
"<BEGIN>\n## `_grid_widgets`",
"Puts the two whole widgets in the correct position depending on compound.\n<END>",
"<BEGIN>\n## `_on_click`",
"Function bound to event of selection in the Combobox, calls callback if callable",
" :param event: Tkinter event\n<END>",
"<BEGIN>\n## `left_press`",
"Cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cget API.
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 cget API.
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... | Query widget option.
:param key: option name
:type key: str
:return: value of the option
To get the list of options for this widget, call the method :meth:`~ScaleEntry.keys`. | "Query widget option.\n\n :param key: option name\n :type key: str\n :return: value of the option\n\n To get the list of options for this widget, call the method :meth:`~ScaleEntry.keys`." | 429 | false | RedFantom/ttkwidgets | cget | 31,007 | |
LDU_FT/fitnr/twitter_bot_utils/read_json | LDU_FT | [
"<BEGIN>\n## `read_csv`",
"Scrape a twitter archive csv, yielding tweet text.",
" Args:\n directory (str): CSV file or (directory containing tweets.csv).\n field (str): Field with the tweet's text (default: text).\n fieldnames (list): The column names for a csv with no header. Must conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Scrape a twitter archive file.
Inspiration from https://github.com/mshea/Parse-Twitter-Archive | "Scrape a twitter archive file.\n Inspiration from https://github.com/mshea/Parse-Twitter-Archive" | 56 | false | fitnr/twitter_bot_utils | read_json | 31,008 | |
LDU_FT/nameko/nameko/make_nameko_helper | LDU_FT | [
"<BEGIN>\n## `run_services`",
"Serves a number of services for a contextual block.\n The caller can specify a number of service classes then serve them either\n stopping (default) or killing them on exiting the contextual block.",
" Example::",
" with run_services(config, Foobar, Spam) as runn... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_nameko_helper 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 make_nameko_helper 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... | Create a fake module that provides some convenient access to nameko
standalone functionality for interactive shell usage. | "Create a fake module that provides some convenient access to nameko\n standalone functionality for interactive shell usage." | 155 | false | nameko/nameko | make_nameko_helper | 31,009 | |
LDU_FT/gregreen/dustmaps/serialize_quantity | LDU_FT | [
"<BEGIN>\n## `ascii2h5`",
"Converts from the original ASCII format of the Chen+ (2014) 3D dust map to\n the HDF5 format.",
" Args:\n dat_fname (:obj:`str`): Filename of the original ASCII .dat file.\n h5_fname (:obj:`str`): Output filename to write the resulting HDF5 file to.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize_quantity 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 serialize_quantity 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... | Serializes an :obj:`astropy.units.Quantity`, for JSONification.
Args:
o (:obj:`astropy.units.Quantity`): :obj:`Quantity` to be serialized.
Returns:
A dictionary that can be passed to :obj:`json.dumps`. | "Serializes an :obj:`astropy.units.Quantity`, for JSONification.\n\n Args:\n o (:obj:`astropy.units.Quantity`): :obj:`Quantity` to be serialized.\n\n Returns:\n A dictionary that can be passed to :obj:`json.dumps`." | 220 | false | gregreen/dustmaps | serialize_quantity | 31,010 | |
LDU_FT/internetarchive/brozzler/accept_reject_or_neither | LDU_FT | [
"<BEGIN>\n## `elapsed`",
"Returns elapsed crawl time as a float in seconds.",
" This metric includes all the time that a site was in active rotation,\n including any time it spent waiting for its turn to be brozzled.",
" In contrast `Site.active_brozzling_time` only counts time when a\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the accept_reject_or_neither 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 accept_reject_or_neither API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Returns `True` (accepted), `False` (rejected), or `None` (no decision).
`None` usually means rejected, unless `max_hops_off` comes into play. | "Returns `True` (accepted), `False` (rejected), or `None` (no decision).\n\n `None` usually means rejected, unless `max_hops_off` comes into play." | 110 | false | internetarchive/brozzler | accept_reject_or_neither | 31,011 | |
LDU_FT/tanghaibao/jcvi/range_piles | LDU_FT | [
"<BEGIN>\n## `patience_sort`",
"Patience sort an iterable, xs.",
" This function generates a series of pairs (x, pile), where \"pile\"\n is the 0-based index of the pile \"x\" should be placed on top of.\n Elements of \"xs\" must be less-than comparable.\n<END>",
"<BEGIN>\n## `longest_monotonic_subse... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range_piles API.
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 range_piles API.
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... | Return piles of intervals that overlap. The piles are only interrupted by
regions of zero coverage.
>>> ranges = [Range("2", 0, 1, 3, 0), Range("2", 1, 4, 3, 1), Range("3", 5, 7, 3, 2)]
>>> list(range_piles(ranges))
[[0, 1], [2]] | "Return piles of intervals that overlap. The piles are only interrupted by\n regions of zero coverage.\n\n >>> ranges = [Range(\"2\", 0, 1, 3, 0), Range(\"2\", 1, 4, 3, 1), Range(\"3\", 5, 7, 3, 2)]\n >>> list(range_piles(ranges))\n [[0, 1], [2]]" | 3,304 | true | tanghaibao/jcvi | range_piles | 31,012 | |
LDU_FT/tisimst/pyDOE/fracfact | LDU_FT | [
"<BEGIN>\n## `pbdesign`",
"Generate a Plackett-Burman design\r",
" Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r",
" Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fracfact API.
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 fracfact API.
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... | Create a 2-level fractional-factorial design with a generator string.
Parameters
----------
gen : str
A string, consisting of lowercase, uppercase letters or operators "-"
and "+", indicating the factors of the experiment
Returns
-------
H : 2d-array
... | "Create a 2-level fractional-factorial design with a generator string.\r\n \r\n Parameters\r\n ----------\r\n gen : str\r\n A string, consisting of lowercase, uppercase letters or operators \"-\"\r\n and \"+\", indicating the factors of the experiment\r\n \r\n Returns\r\n -------\r\n ... | 96 | false | tisimst/pyDOE | fracfact | 31,013 | |
LDU_FT/ThomasChiroux/attowiki/view_cancel_edit | LDU_FT | [
"<BEGIN>\n## `_delta_dir`",
"returns the relative path of the current directory to the git\n repository.\n This path will be added the 'filename' path to find the file.\n It current_dir is the git root, this function returns an empty string.",
" Keyword Arguments:\n <none>",
" Returns:\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the view_cancel_edit API.
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 view_cancel_edit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Cancel the edition of an existing page.
Then render the last modification status
.. note:: this is a bottle view
if no page name is given, do nothing (it may leave some .tmp. files in
the directory).
Keyword Arguments:
:name: (str) -- name of the page (OPTIONAL)
Returns:
bot... | "Cancel the edition of an existing page.\n\n Then render the last modification status\n\n .. note:: this is a bottle view\n\n if no page name is given, do nothing (it may leave some .tmp. files in\n the directory).\n\n Keyword Arguments:\n :name: (str) -- name of the page (OPTIONAL)\n\n Returns... | 102 | false | ThomasChiroux/attowiki | view_cancel_edit | 31,014 | |
LDU_FT/sys-git/certifiable/load_value_from_schema | LDU_FT | [
"<BEGIN>\n## `load_value_from_schema`",
"Load a value from a schema defined string.\n<END>",
"<BEGIN>\n## `parse_value`",
"Convert a string received on the command-line into\n a value or None.",
" :param str v:\n The value to parse.\n :param parser:\n The fallback callable to load the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_value_from_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_value_from_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Load a value from a schema defined string. | "Load a value from a schema defined string." | 100 | false | sys-git/certifiable | load_value_from_schema | 31,015 | |
LDU_FT/baguette-io/baguette-messaging/main_callback | LDU_FT | [
"<BEGIN>\n## `to_json`",
"Convert a model into a json using the playhouse shortcut.\n<END>",
"<BEGIN>\n## `run`",
"Consume the event stream.\n :param timeout: Duration of the connection timeout.\n :type timeout: int\n :param limit: Number of events to consume.\n :type limit: int\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Main callback called when an event is received from an entry point.
:returns: The entry point's callback.
:rtype: function
:raises NotImplementedError: When the entrypoint doesn't have the required attributes. | "Main callback called when an event is received from an entry point.\n\n :returns: The entry point's callback.\n :rtype: function\n :raises NotImplementedError: When the entrypoint doesn't have the required attributes." | 44 | false | baguette-io/baguette-messaging | main_callback | 31,016 | |
LDU_FT/Hironsan/anago/token_to_id | LDU_FT | [
"<BEGIN>\n## `download`",
"Download a trained weights, config and preprocessor.",
" Args:\n url (str): target url.\n<END>",
"<BEGIN>\n## `load_data_and_labels`",
"Loads data and label from a file.",
" Args:\n filename (str): path to the file.\n encoding (str): file encoding form... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the token_to_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the token_to_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get the token_id of given token.
Args:
token (str): token from vocabulary.
Returns:
int: int id of token. | "Get the token_id of given token.\n\n Args:\n token (str): token from vocabulary.\n\n Returns:\n int: int id of token." | 98 | false | Hironsan/anago | token_to_id | 31,017 | |
LDU_FT/tgbugs/pyontutils/add_triple | LDU_FT | [
"<BEGIN>\n## `build_transgenic_lines`",
"init class | \"transgenic_line_source_name\":\"stock_number\" a Class\n add superClass | rdfs:subClassOf ilxtr:transgenicLine\n add *order* | ilxtr:useObjectProperty ilxtr:<order>\n add name | rdfs:label \"name\"\n add def ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_triple API.
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_triple API.
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 entity property to an existing entity | "Adds an entity property to an existing entity" | 301 | false | tgbugs/pyontutils | add_triple | 31,018 | |
LDU_FT/ariebovenberg/snug/_asyncio_send | LDU_FT | [
"<BEGIN>\n## `check_response`",
"raise a descriptive exception on a \"bad request\" response\n<END>",
"<BEGIN>\n## `_urllib_send`",
"Send a request with an :mod:`urllib` opener\n<END>",
"<BEGIN>\n## `handle_errors`",
"raise a descriptive exception on a \"bad request\" response\n<END>",
"<BEGIN>\n## `exe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _asyncio_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _asyncio_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 ext... | A rudimentary HTTP client using :mod:`asyncio` | "A rudimentary HTTP client using :mod:`asyncio`" | 37 | false | ariebovenberg/snug | _asyncio_send | 31,019 | |
LDU_FT/divio/djangocms-text-ckeditor/_plugin_tags_to_html | LDU_FT | [
"<BEGIN>\n## `get_editor_widget`",
"Returns the Django form Widget to be used for\n the text area\n<END>",
"<BEGIN>\n## `get_form_class`",
"Returns a subclass of Form to be used by this plugin\n<END>",
"<BEGIN>\n## `_plugin_tags_to_html`",
"Convert plugin object 'tags' into the form for public site... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plugin_tags_to_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _plugin_tags_to_html API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Convert plugin object 'tags' into the form for public site.
context is the template context to use, placeholder is the placeholder name | "Convert plugin object 'tags' into the form for public site.\n\n context is the template context to use, placeholder is the placeholder name" | 11 | false | divio/djangocms-text-ckeditor | _plugin_tags_to_html | 31,020 | |
LDU_FT/SecurityInnovation/PGPy/revoker | LDU_FT | [
"<BEGIN>\n## `decrypt_sk`",
"The value \"m\" in the above formulas is derived from the session key\n as follows. First, the session key is prefixed with a one-octet\n algorithm identifier that specifies the symmetric encryption\n algorithm used to encrypt the following Symmetrically Encrypte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the revoker API.
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 revoker API.
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... | Generate a signature that specifies another key as being valid for revoking this key.
:param revoker: The :py:obj:`PGPKey` to specify as a valid revocation key.
:type revoker: :py:obj:`PGPKey`
:raises: :py:exc:`~pgpy.errors.PGPError` if the key is passphrase-protected and has not been unlocked
... | "Generate a signature that specifies another key as being valid for revoking this key.\n\n :param revoker: The :py:obj:`PGPKey` to specify as a valid revocation key.\n :type revoker: :py:obj:`PGPKey`\n :raises: :py:exc:`~pgpy.errors.PGPError` if the key is passphrase-protected and has not been unlo... | 197 | false | SecurityInnovation/PGPy | revoker | 31,021 | |
LDU_FT/mieubrisse/wunderpy2/get_list_subtasks | LDU_FT | [
"<BEGIN>\n## `get_endpoint_obj`",
"Tiny helper function that gets used all over the place to join the object ID to the endpoint and run a GET request, returning the result\n<END>",
"<BEGIN>\n## `update_endpoint_obj`",
"Helper method to ease the repetitiveness of updating an... SO VERY DRY ",
" (That's a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_list_subtasks API.
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_list_subtasks API.
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 subtasks for the list with given ID | "Gets subtasks for the list with given ID" | 94 | false | mieubrisse/wunderpy2 | get_list_subtasks | 31,022 | |
LDU_FT/chibisov/drf-extensions/_prepare_pyshell_blocks | LDU_FT | [
"<BEGIN>\n## `get_etags_and_matchers`",
"Get the etags from the header and perform a validation against the required preconditions.\n<END>",
"<BEGIN>\n## `evaluate_preconditions`",
"Evaluate whether the precondition for the request is met.\n<END>",
"<BEGIN>\n## `_regex_from_encoded_pattern`",
"foo' -> ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_pyshell_blocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_pyshell_blocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Ensure that Python interactive shell sessions are put in
code blocks -- even if not properly indented. | "Ensure that Python interactive shell sessions are put in\n code blocks -- even if not properly indented." | 55 | false | chibisov/drf-extensions | _prepare_pyshell_blocks | 31,023 | |
LDU_FT/alerta/alerta/is_blackout | LDU_FT | [
"<BEGIN>\n## `get_severity`",
"Get severity of correlated alert. Used to determine previous severity.\n<END>",
"<BEGIN>\n## `is_flapping`",
"Return true if alert severity has changed more than X times in Y seconds\n<END>",
"<BEGIN>\n## `dedup_alert`",
"Update alert status, service, value, text, timeout an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_blackout API.
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 is_blackout API.
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... | Does this alert match a blackout period? | "Does this alert match a blackout period?" | 34 | false | alerta/alerta | is_blackout | 31,024 | |
LDU_FT/AndrewAnnex/SpiceyPy/appndc | LDU_FT | [
"<BEGIN>\n## `_distribution_info`",
"Creates the distribution name and the expected extension for the\n CSPICE package and returns it.",
" :return (distribution, extension) tuple where distribution is the best\n guess from the strings available within the platform_urls list\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the appndc API.
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 appndc API.
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 ... | Append an item to a character cell.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/appndc_c.html
:param item: The item to append.
:type item: str or list
:param cell: The cell to append to.
:type cell: spiceypy.utils.support_types.SpiceCell | "Append an item to a character cell.\n\n http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/appndc_c.html\n\n :param item: The item to append.\n :type item: str or list\n :param cell: The cell to append to.\n :type cell: spiceypy.utils.support_types.SpiceCell" | 2,164 | true | AndrewAnnex/SpiceyPy | appndc | 31,025 | |
LDU_FT/MacHu-GWU/rolex-project/year_interval | LDU_FT | [
"<BEGIN>\n## `add_seconds`",
"Returns a time that n seconds after a time.",
" :param datetimestr: a datetime object or a datetime str\n :param n: number of seconds, value can be negative",
" **中文文档**",
" 返回给定日期N秒之后的时间。\n<END>",
"<BEGIN>\n## `add_months`",
"Returns a time that n months after ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the year_interval API.
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 year_interval API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Return a start datetime and end datetime of a year.
:param milliseconds: Minimum time resolution.
:param return_string: If you want string instead of datetime, set True
Usage Example::
>>> start, end = rolex.year_interval(2007)
>>> start
datetime(2007, 1, 1, 0, 0, 0)
>>> ... | "Return a start datetime and end datetime of a year.\n\n :param milliseconds: Minimum time resolution.\n :param return_string: If you want string instead of datetime, set True\n\n Usage Example::\n\n >>> start, end = rolex.year_interval(2007)\n >>> start\n datetime(2007, 1, 1, 0, 0, 0)\n\n... | 103 | false | MacHu-GWU/rolex-project | year_interval | 31,026 | |
LDU_FT/dschep/lambda-decorators/secrets_manager | LDU_FT | [
"<BEGIN>\n## `before`",
"Run a function before the handler is invoked, is passed the event & context\n and must return an event & context too.",
" Usage::",
" >>> # to create a reusable decorator\n >>> @before\n ... def print_request_id(event, context):\n ... print(contex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the secrets_manager API.
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 secrets_manager API.
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 secrets from the `AWS Secrets Manager <https://aws.amazon.com/secrets-manager/>`_.
Secrets are added to a dictionary named ``secrets`` on the context object.
This requires your lambda to have the ``secretsmanager:GetSecretValue`` permission for the
requested secret and ``kms:Decrypt`` for any keys use... | "Get secrets from the `AWS Secrets Manager <https://aws.amazon.com/secrets-manager/>`_.\n\n Secrets are added to a dictionary named ``secrets`` on the context object.\n\n This requires your lambda to have the ``secretsmanager:GetSecretValue`` permission for the\n requested secret and ``kms:Decrypt`` for any ke... | 69 | false | dschep/lambda-decorators | secrets_manager | 31,027 | |
LDU_FT/renweizhukov/pytwis/_check_password | LDU_FT | [
"<BEGIN>\n## `_is_loggedin`",
"Check if a user is logged-in by verifying the input authentication secret.",
" Parameters\n ----------\n auth_secret: str\n The authentication secret of a logged-in user.",
" Returns\n -------\n bool\n True if the a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_password API.
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 _check_password API.
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... | Check the strength of a password.
A password is considered strong if
8 characters length or more
1 digit or more
1 uppercase letter or more
1 lowercase letter or more
1 symbol (excluding whitespace characters) or more
Parameters
------... | "Check the strength of a password.\n A password is considered strong if\n 8 characters length or more\n 1 digit or more\n 1 uppercase letter or more\n 1 lowercase letter or more\n 1 symbol (excluding whitespace characters) or more\n\n Parameters\n ... | 108 | false | renweizhukov/pytwis | _check_password | 31,028 | |
LDU_FT/mabuchilab/QNET/delegate_to_method | LDU_FT | [
"<BEGIN>\n## `isdisjoint`",
"Check whether two Hilbert spaces are disjoint (do not have any\n common local factors). Note that `FullSpace` is *not* disjoint with any\n other Hilbert space, while `TrivialSpace` *is* disjoint with any other\n HilbertSpace (even itself)\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delegate_to_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delegate_to_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Create a simplification rule that delegates the instantiation to the
method `mtd` of the operand (if defined) | "Create a simplification rule that delegates the instantiation to the\n method `mtd` of the operand (if defined)" | 1,017 | false | mabuchilab/QNET | delegate_to_method | 31,029 | |
LDU_FT/bennylope/smartystreets.py/stringify | LDU_FT | [
"<BEGIN>\n## `chunker`",
"Generates n-sized chunks from the list l\n<END>",
"<BEGIN>\n## `post`",
"Executes most of the request.",
" The parallelism parameter is useful to avoid swamping the API service with calls. Thus\n the entire set of requests won't be all made at once, but in chunked gro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stringify API.
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 stringify API.
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... | Ensure all values in the dictionary are strings, except for the value for `candidate` which
should just be an integer.
:param data: a list of addresses in dictionary format
:return: the same list with all values except for `candidate` count as a string | "Ensure all values in the dictionary are strings, except for the value for `candidate` which\n should just be an integer.\n\n :param data: a list of addresses in dictionary format\n :return: the same list with all values except for `candidate` count as a string" | 35 | false | bennylope/smartystreets.py | stringify | 31,030 | |
LDU_FT/box/flaky/_increment_flaky_attribute | LDU_FT | [
"<BEGIN>\n## `flaky`",
"Decorator used to mark a test as \"flaky\". When used in conjuction with\n the flaky nosetests plugin, will cause the decorated test to be retried\n until min_passes successes are achieved out of up to max_runs test runs.",
" :param max_runs:\n The maximum number of times... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _increment_flaky_attribute 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 _increment_flaky_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Increments the value of an attribute on a flaky test.
:param test_item:
The test callable on which to set the attribute
:type test_item:
`callable` or :class:`nose.case.Test` or :class:`Function`
:param flaky_attribute:
The name of the attribute to set
... | "Increments the value of an attribute on a flaky test.\n\n :param test_item:\n The test callable on which to set the attribute\n :type test_item:\n `callable` or :class:`nose.case.Test` or :class:`Function`\n :param flaky_attribute:\n The name of the attribute to se... | 56 | false | box/flaky | _increment_flaky_attribute | 31,031 | |
LDU_FT/Kane610/axis/process_raw | LDU_FT | [
"<BEGIN>\n## `session_request`",
"Do HTTP/S request and return response as a string.\n<END>",
"<BEGIN>\n## `get_event_list`",
"Get a dict of supported events from device.\n<END>",
"<BEGIN>\n## `_prepare_event`",
"Converts event instances to a relevant dictionary.\n<END>",
"<BEGIN>\n## `process_raw`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_raw API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Pre-process raw string.
Prepare parameters to work with APIItems. | "Pre-process raw string.\n\n Prepare parameters to work with APIItems." | 55 | false | Kane610/axis | process_raw | 31,032 | |
LDU_FT/juju/charm-helpers/configure_rmq_ssl_on | LDU_FT | [
"<BEGIN>\n## `get_ubuntu_release_from_sentry`",
"Get Ubuntu release codename from sentry unit.",
" :param sentry_unit: amulet sentry/service unit pointer\n :returns: list of strings - release codename, failure message\n<END>",
"<BEGIN>\n## `validate_services`",
"Validate that lists of commands... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the configure_rmq_ssl_on 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 configure_rmq_ssl_on API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Turn ssl charm config option on, with optional non-default
ssl port specification. Confirm that it is enabled on every
unit.
:param sentry_units: list of sentry units
:param deployment: amulet deployment object pointer
:param port: amqp port, use defaults if None
:param... | "Turn ssl charm config option on, with optional non-default\n ssl port specification. Confirm that it is enabled on every\n unit.\n\n :param sentry_units: list of sentry units\n :param deployment: amulet deployment object pointer\n :param port: amqp port, use defaults if None\n ... | 1,689 | true | juju/charm-helpers | configure_rmq_ssl_on | 31,033 | |
LDU_FT/knagra/farnsworth/normalize_ranking | LDU_FT | [
"<BEGIN>\n## `anonymous_login_view`",
"View for an admin to log her/himself out and login the anonymous user.\n<END>",
"<BEGIN>\n## `end_anonymous_session_view`",
"End the anonymous session if the user is a superuser.\n<END>",
"<BEGIN>\n## `list_managers_view`",
"Show a list of manager positions with link... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_ranking API.
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 normalize_ranking API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Normalize rankings by reducing them to the simplest
order. E.g.:
If the rankings for 2 choices are -244 and 4,
this function will normalize them to 0 and 1,
respectively.
Parameters: ranking_tuples should be an iterable
of tuples of fo... | "Normalize rankings by reducing them to the simplest\n order. E.g.:\n If the rankings for 2 choices are -244 and 4,\n this function will normalize them to 0 and 1,\n respectively.\n Parameters: ranking_tuples should be an iterable\n of tuple... | 150 | false | knagra/farnsworth | normalize_ranking | 31,034 | |
LDU_FT/aacanakin/glim/make_app | LDU_FT | [
"<BEGIN>\n## `import_source`",
"Function imports a module given full path",
" Args\n ----\n module (string): the module name\n path (string): the full path of module\n pass_errors(boolean): the switch for function\n to skip errors or not.",
" Returns\n -------\n module (module): the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_app API.
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 make_app API.
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... | Function creates an app given environment | "Function creates an app given environment" | 74 | false | aacanakin/glim | make_app | 31,035 | |
LDU_FT/Xion/taipan/is_direct_subclass | LDU_FT | [
"<BEGIN>\n## `decorator`",
"Decorator for decorators (sic), written either as classes or functions.",
" In either case, the decorator ``decor`` must be \"doubly-callable\":",
" * for classes, this means implementing ``__call__`` method\n in addition to possible ``__init__``\n * for f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_direct_subclass 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 is_direct_subclass API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Check whether given class is a direct subclass of the other.
:param class_: Class to check
:param of: Superclass to check against
:return: Boolean result of the test
.. versionadded:: 0.0.4 | "Check whether given class is a direct subclass of the other.\n\n :param class_: Class to check\n :param of: Superclass to check against\n\n :return: Boolean result of the test\n\n .. versionadded:: 0.0.4" | 396 | false | Xion/taipan | is_direct_subclass | 31,036 | |
LDU_FT/LuminosoInsight/ordered-set/pop | LDU_FT | [
"<BEGIN>\n## `is_iterable`",
"Are we being asked to look up a list of things, instead of a single thing?\n We check for the `__iter__` attribute so that this can cover types that\n don't have to be known by this module, such as NumPy arrays.",
" Strings, however, should be considered as atomic values t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pop API.
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 pop API.
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... | Remove and return the last element from the set.
Raises KeyError if the set is empty.
Example:
>>> oset = OrderedSet([1, 2, 3])
>>> oset.pop()
3 | "Remove and return the last element from the set.\n\n Raises KeyError if the set is empty.\n\n Example:\n >>> oset = OrderedSet([1, 2, 3])\n >>> oset.pop()\n 3" | 42 | false | LuminosoInsight/ordered-set | pop | 31,037 | |
LDU_FT/StorjOld/plowshare-wrapper/upload_to_host | LDU_FT | [
"<BEGIN>\n## `_run_command`",
"Wrapper to pass command to plowshare.",
" :param command: The command to pass to plowshare.\n :type command: str\n :param **kwargs: Additional keywords passed into\n :type **kwargs: dict\n :returns: Object containing either output of plowshare co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_to_host API.
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 upload_to_host API.
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... | Upload a file to the given host.
This method relies on 'plowup' being installed on the system.
If it succeeds, this method returns a dictionary with the host name,
and the final URL. Otherwise, it returns a dictionary with the
host name and an error flag.
:param filename: The f... | "Upload a file to the given host.\n\n This method relies on 'plowup' being installed on the system.\n If it succeeds, this method returns a dictionary with the host name,\n and the final URL. Otherwise, it returns a dictionary with the\n host name and an error flag.\n\n :param filenam... | 32 | false | StorjOld/plowshare-wrapper | upload_to_host | 31,038 | |
LDU_FT/klmitch/turnstile/limits_hydrate | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>",
"<BEGIN>\n## `add_preprocessor`",
"Define a preprocessor to run after the arguments are parsed and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the limits_hydrate API.
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 limits_hydrate API.
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... | Helper function to hydrate a list of limits.
:param db: A database handle.
:param lims: A list of limit strings, as retrieved from the
database. | "Helper function to hydrate a list of limits.\n\n :param db: A database handle.\n :param lims: A list of limit strings, as retrieved from the\n database." | 208 | false | klmitch/turnstile | limits_hydrate | 31,039 | |
LDU_FT/turicas/rows/load_schema | LDU_FT | [
"<BEGIN>\n## `import_from_json`",
"Import a JSON file or file-like object into a `rows.Table`.",
" If a file-like object is provided it MUST be open in text (non-binary) mode\n on Python 3 and could be open in both binary or text mode on Python 2.\n<END>",
"<BEGIN>\n## `export_to_json`",
"Export a `ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Load schema from file in any of the supported formats
The table must have at least the fields `field_name` and `field_type`.
`context` is a `dict` with field_type as key pointing to field class, like:
{"text": rows.fields.TextField, "value": MyCustomField} | "Load schema from file in any of the supported formats\n\n The table must have at least the fields `field_name` and `field_type`.\n `context` is a `dict` with field_type as key pointing to field class, like:\n {\"text\": rows.fields.TextField, \"value\": MyCustomField}" | 123 | false | turicas/rows | load_schema | 31,040 | |
LDU_FT/bootphon/h5features/_get_item_position | LDU_FT | [
"<BEGIN>\n## `init_group`",
"Initializes a HDF5 group compliant with the stored data.",
" This method creates the datasets 'items', 'labels', 'features'\n and 'index' and leaves them empty.",
" :param h5py.Group group: The group to initializes.\n :param float chunk_size: The size o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_item_position API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_item_position API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return a tuple of (start, end) indices of an item from its index. | "Return a tuple of (start, end) indices of an item from its index." | 119 | false | bootphon/h5features | _get_item_position | 31,041 | |
LDU_FT/striglia/stockfighter/cancel_order | LDU_FT | [
"<BEGIN>\n## `_load_data`",
"Internal method for querying the GM api for currently running levels\n and storing that state.\n<END>",
"<BEGIN>\n## `heartbeat`",
"Check The API Is Up.",
" https://starfighter.readme.io/docs/heartbeat\n<END>",
"<BEGIN>\n## `venue_healthcheck`",
"Check A Venue ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cancel_order API.
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 cancel_order API.
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... | Cancel An Order
https://starfighter.readme.io/docs/cancel-an-order | "Cancel An Order\n\n https://starfighter.readme.io/docs/cancel-an-order" | 29 | false | striglia/stockfighter | cancel_order | 31,042 | |
LDU_FT/tensorflow/datasets/brightness | LDU_FT | [
"<BEGIN>\n## `_decode_image`",
"Reads and decodes an image from a file object as a Numpy array.",
" The SUN dataset contains images in several formats (despite the fact that\n all of them have .jpg extension). Some of them are:\n - BMP (RGB)\n - PNG (grayscale, RGBA, RGB interlaced)\n - JPEG (RGB)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the brightness API.
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 brightness API.
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... | Change brightness of images.
Args:
x: numpy array, uncorrupted image, assumed to have uint8 pixel in [0,255].
severity: integer, severity of corruption.
Returns:
numpy array, image with uint8 pixels in [0,255]. Changed brightness. | "Change brightness of images.\n\n Args:\n x: numpy array, uncorrupted image, assumed to have uint8 pixel in [0,255].\n severity: integer, severity of corruption.\n\n Returns:\n numpy array, image with uint8 pixels in [0,255]. Changed brightness." | 609 | false | tensorflow/datasets | brightness | 31,043 | |
LDU_FT/samjabrahams/anchorhub/validate_overwrite_different_input_output | 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 validate_overwrite_different_input_output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_overwrite_different_input_output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | Make sure that if overwrite is set to False, the input and output folders
are not set to the same location.
:param opts: a namespace containing the attributes 'overwrite', 'input',
and 'output'
:raises ValidationException: if 'input' and 'output' point to the same
directory and 'overwrite' ... | "Make sure that if overwrite is set to False, the input and output folders\n are not set to the same location.\n\n :param opts: a namespace containing the attributes 'overwrite', 'input',\n and 'output'\n :raises ValidationException: if 'input' and 'output' point to the same\n directory and 'over... | 148 | false | samjabrahams/anchorhub | validate_overwrite_different_input_output | 31,044 | |
LDU_FT/ga4gh/ga4gh-common/requireExecutables | LDU_FT | [
"<BEGIN>\n## `getPathOfExecutable`",
"Returns the full path of the executable, or None if the executable\n can not be found.\n<END>",
"<BEGIN>\n## `requireExecutables`",
"Check that all of the given executables are on the path.\n If at least one of them is not, exit the script and inform\n the user o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the requireExecutables 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 requireExecutables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Check that all of the given executables are on the path.
If at least one of them is not, exit the script and inform
the user of the missing requirement(s). | "Check that all of the given executables are on the path.\n If at least one of them is not, exit the script and inform\n the user of the missing requirement(s)." | 20 | false | ga4gh/ga4gh-common | requireExecutables | 31,045 | |
LDU_FT/antonybholmes/libdna/_read_mask | LDU_FT | [
"<BEGIN>\n## `fasta`",
"Prints a fasta representation of a sequence.",
" Parameters\n ----------\n l : tuple (str, int, int)\n location chr, start, and end\n mask : str, optional\n Either 'upper', 'lower', or 'n'. If 'lower', poor quality bases \n wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_mask API.
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 _read_mask API.
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... | Reads mask from 1 bit file to convert bases to identify poor quality
bases that will either be converted to lowercase or 'N'. In the
2 bit file, 'N' or any other invalid base is written as 'A'.
Therefore the 'N' mask file is required to correctly identify where
invalid bases are.
... | "Reads mask from 1 bit file to convert bases to identify poor quality\n bases that will either be converted to lowercase or 'N'. In the\n 2 bit file, 'N' or any other invalid base is written as 'A'.\n Therefore the 'N' mask file is required to correctly identify where\n invalid bases are.\n ... | 44 | false | antonybholmes/libdna | _read_mask | 31,046 | |
LDU_FT/neithere/eav-django/_filter_by_simple_schema | LDU_FT | [
"<BEGIN>\n## `clean_name`",
"Avoid name clashes between static and dynamic attributes.\n<END>",
"<BEGIN>\n## `save`",
"Saves this ``form``'s cleaned_data into model instance ``self.instance``\n and related EAV attributes.",
" Returns ``instance``.\n<END>",
"<BEGIN>\n## `get_field_and_lookup`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filter_by_simple_schema 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 _filter_by_simple_schema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Filters given entity queryset by an attribute which is linked to given
schema and has given value in the field for schema's datatype. | "Filters given entity queryset by an attribute which is linked to given\n schema and has given value in the field for schema's datatype." | 37 | false | neithere/eav-django | _filter_by_simple_schema | 31,047 | |
LDU_FT/NLeSC/noodles/pass_result | LDU_FT | [
"<BEGIN>\n## `coroutine`",
"A sink should be send `None` first, so that the coroutine arrives\n at the `yield` position. This wrapper takes care that this is done\n automatically when the coroutine is started.\n<END>",
"<BEGIN>\n## `maybe`",
"Calls `f` in a try/except block, returning a `Fail` object if... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pass_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pass_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Creates a pull stream receiving results, storing them in the database,
then sending them on. At this stage, the database may return a list of
attached jobs which also need to be sent on to the scheduler. | "Creates a pull stream receiving results, storing them in the database,\n then sending them on. At this stage, the database may return a list of\n attached jobs which also need to be sent on to the scheduler." | 293 | false | NLeSC/noodles | pass_result | 31,048 | |
LDU_FT/sephii/zipch/get_municipalities | LDU_FT | [
"<BEGIN>\n## `extract_csv`",
"Extract the first CSV file found in the given ``zip_path`` ZIP file to the\n ``destination`` file. Raises :class:`LookupError` if no CSV file can be\n found in the ZIP.\n<END>",
"<BEGIN>\n## `download`",
"Download the zipcodes CSV file. If ``overwrite`` is set to False, the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_municipalities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_municipalities API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return the list of unique municipalities, sorted by name. | "Return the list of unique municipalities, sorted by name." | 12 | false | sephii/zipch | get_municipalities | 31,049 | |
LDU_FT/fedelemantuano/tika-app-python/sanitize | LDU_FT | [
"<BEGIN>\n## `_command_template`",
"Template for Tika app commands",
" Args:\n switches (list): list of switches to Tika app Jar\n objectInput (object): file object/standard input to analyze",
" Return:\n Standard output data (unicode Python 2, str Python 3)\n<EN... | 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... | NFC is the normalization form recommended by W3C. | "NFC is the normalization form recommended by W3C." | 27 | false | fedelemantuano/tika-app-python | sanitize | 31,050 | |
LDU_FT/wandb/client/from_torch_layers | LDU_FT | [
"<BEGIN>\n## `load_emacs_open_in_editor_bindings`",
"Pressing C-X C-E will open the buffer in an external editor.\n<END>",
"<BEGIN>\n## `load_extra_emacs_page_navigation_bindings`",
"Key bindings, for scrolling up and down through pages.\n This are separate bindings, because GNU readline doesn't have them.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_torch_layers API.
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 from_torch_layers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Recover something like neural net layers from PyTorch Module's and the
compute graph from a Variable.
Example output for a multi-layer RNN. We confusingly assign shared embedding values
to the encoder, but ordered next to the decoder.
rnns.0.linear.module.weight_raw rnns.0
rnns... | "Recover something like neural net layers from PyTorch Module's and the\n compute graph from a Variable.\n\n Example output for a multi-layer RNN. We confusingly assign shared embedding values\n to the encoder, but ordered next to the decoder.\n\n rnns.0.linear.module.weight_raw rnns.0\n ... | 1,104 | true | wandb/client | from_torch_layers | 31,051 | |
LDU_FT/hmmlearn/hmmlearn/_check_input_symbols | LDU_FT | [
"<BEGIN>\n## `log_multivariate_normal_density`",
"Compute the log probability under a multivariate Gaussian distribution.\n Parameters\n ----------\n X : array_like, shape (n_samples, n_features)\n List of n_features-dimensional data points. Each row corresponds to a\n single data point.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_input_symbols 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_input_symbols API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check if ``X`` is a sample from a Multinomial distribution.
That is ``X`` should be an array of non-negative integers from
range ``[min(X), max(X)]``, such that each integer from the range
occurs in ``X`` at least once.
For example ``[0, 0, 2, 1, 3, 1, 1]`` is a valid sample from a
... | "Check if ``X`` is a sample from a Multinomial distribution.\n\n That is ``X`` should be an array of non-negative integers from\n range ``[min(X), max(X)]``, such that each integer from the range\n occurs in ``X`` at least once.\n\n For example ``[0, 0, 2, 1, 3, 1, 1]`` is a valid sample fro... | 108 | false | hmmlearn/hmmlearn | _check_input_symbols | 31,052 | |
LDU_FT/sveetch/django-icomoon/parse_manifest | LDU_FT | [
"<BEGIN>\n## `extend_webfont_settings`",
"Validate a webfont settings and optionally fill missing ``csspart_path``\n option.",
" Args:\n webfont_settings (dict): Webfont settings (an item value from\n ``settings.ICOMOON_WEBFONTS``).",
" Returns:\n dict: Webfont settings\n<END... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_manifest API.
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 parse_manifest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Open manifest JSON file and build icon map
Args:
fp (string or fileobject): Either manifest filepath to open or
manifest File object.
Returns:
dict: Webfont icon map. Contains:
* ``class_name``: Builded icon classname with prefix configured
... | "Open manifest JSON file and build icon map\n\n Args:\n fp (string or fileobject): Either manifest filepath to open or\n manifest File object.\n\n Returns:\n dict: Webfont icon map. Contains:\n\n * ``class_name``: Builded icon classname with prefix configure... | 18 | false | sveetch/django-icomoon | parse_manifest | 31,053 | |
LDU_FT/ThePlasmaRailgun/py-rolldice/roll_dice | LDU_FT | [
"<BEGIN>\n## `safe_power`",
"Same power of a ^ b\n :param a: Number a\n :param b: Number b\n :return: a ^ b\n<END>",
"<BEGIN>\n## `rabin_miller`",
"Performs a rabin-miller primality test",
" :param p: Number to test\n :return: Bool of whether num is prime\n<END>",
"<BEGIN>\n## `zero_width_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the roll_dice API.
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 roll_dice API.
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... | Rolls dice in dice notation with advanced syntax used according to tinyurl.com/pydice
:param roll: Roll in dice notation
:return: Result of roll, and an explanation string | "Rolls dice in dice notation with advanced syntax used according to tinyurl.com/pydice\n\n :param roll: Roll in dice notation\n :return: Result of roll, and an explanation string" | 41 | false | ThePlasmaRailgun/py-rolldice | roll_dice | 31,054 | |
LDU_FT/CalebBell/fluids/convert_flow_coefficient | LDU_FT | [
"<BEGIN>\n## `ccor`",
"/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODELS\n * ALT - altitude\n * R - target ratio\n * H1 - transition scale length\n * ZH - altitude of 1/2 R\n */\n<END>",
"<BEGIN>\n## `ccor2`",
"/* CHEMISTRY/DISSOCIATION CORRECTION FOR MSIS MODE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_flow_coefficient 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 convert_flow_coefficient API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Convert from one flow coefficient scale to another; supports the `Kv`
`Cv`, and `Av` scales.
Other scales are `Qn` and `Cg`, but clear definitions have yet to be
found.
Parameters
----------
flow_coefficient : float
Value of the flow coefficient to be converted, expressed in th... | "Convert from one flow coefficient scale to another; supports the `Kv`\n `Cv`, and `Av` scales.\n \n Other scales are `Qn` and `Cg`, but clear definitions have yet to be\n found.\n \n Parameters\n ----------\n flow_coefficient : float\n Value of the flow coefficient to be converted, expre... | 3,613 | true | CalebBell/fluids | convert_flow_coefficient | 31,055 | |
LDU_FT/vpelletier/python-ioctl-opt/IOC | LDU_FT | [
"<BEGIN>\n## `IOC`",
"dir\n One of IOC_NONE, IOC_WRITE, IOC_READ, or IOC_READ|IOC_WRITE.\n Direction is from the application's point of view, not kernel's.\n size (14-bits unsigned integer)\n Size of the buffer passed to ioctl's \"arg\" argument.\n<END>",
"<BEGIN>\n## `IOC_TYPECHECK`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the IOC API.
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 IOC API.
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... | dir
One of IOC_NONE, IOC_WRITE, IOC_READ, or IOC_READ|IOC_WRITE.
Direction is from the application's point of view, not kernel's.
size (14-bits unsigned integer)
Size of the buffer passed to ioctl's "arg" argument. | "dir\n One of IOC_NONE, IOC_WRITE, IOC_READ, or IOC_READ|IOC_WRITE.\n Direction is from the application's point of view, not kernel's.\n size (14-bits unsigned integer)\n Size of the buffer passed to ioctl's \"arg\" argument." | 13 | false | vpelletier/python-ioctl-opt | IOC | 31,056 | |
LDU_FT/openvax/mhcnames/parse_classi_or_classii_allele_name | LDU_FT | [
"<BEGIN>\n## `parse_substring`",
"Extract substring of letters for which predicate is True\n<END>",
"<BEGIN>\n## `parse_mouse_allele_name`",
"Parses mouse MHc alleles such as H2-Kd, H-2-Db, H2-IAb.\n Returns pair of (gene, allele_code).\n<END>",
"<BEGIN>\n## `infer_alpha_chain`",
"Given a parsed beta c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_classi_or_classii_allele_name 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 parse_classi_or_classii_allele_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Handle different forms of both single and alpha-beta allele names.
Alpha-beta alleles may look like:
DPA10105-DPB110001
HLA-DPA1*01:05-DPB1*100:01
hla-dpa1*0105-dpb1*10001
dpa1*0105-dpb1*10001
HLA-DPA1*01:05/DPB1*100:01
Other class II alleles may look like:
DRB1_0102
DRB101:02
... | "Handle different forms of both single and alpha-beta allele names.\n Alpha-beta alleles may look like:\n\n DPA10105-DPB110001\n HLA-DPA1*01:05-DPB1*100:01\n hla-dpa1*0105-dpb1*10001\n dpa1*0105-dpb1*10001\n HLA-DPA1*01:05/DPB1*100:01\n\n Other class II alleles may look like:\n\n DRB1_0102\n ... | 29 | false | openvax/mhcnames | parse_classi_or_classii_allele_name | 31,057 | |
LDU_FT/instaloader/instaloader/download_stories | LDU_FT | [
"<BEGIN>\n## `save_structure_to_file`",
"Saves a :class:`Post`, :class:`Profile` or :class:`StoryItem` to a '.json' or '.json.xz' file such that it can\n later be loaded by :func:`load_structure_from_file`.",
" If the specified filename ends in '.xz', the file will be LZMA compressed. Otherwise, a pretty-... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download_stories API.
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 download_stories API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Download available stories from user followees or all stories of users whose ID are given.
Does not mark stories as seen.
To use this, one needs to be logged in
:param userids: List of user IDs or Profiles to be processed in terms of downloading their stories
:param fast_update: If true... | "Download available stories from user followees or all stories of users whose ID are given.\n Does not mark stories as seen.\n To use this, one needs to be logged in\n\n :param userids: List of user IDs or Profiles to be processed in terms of downloading their stories\n :param fast_update: I... | 227 | false | instaloader/instaloader | download_stories | 31,058 | |
LDU_FT/hozn/stravalib/delete_subscription | LDU_FT | [
"<BEGIN>\n## `logged_in`",
"Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>",
"<BEGIN>\n## `unmarshal`",
"Convert the value from parsed JSON structure to native python representation.",
" By default this will leave the value as-is since the JS... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_subscription 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 delete_subscription 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... | Unsubscribe from webhook events for an existing subscription.
http://strava.github.io/api/partner/v3/events/#delete-a-subscription
:param subscription_id: ID of subscription to remove.
:type subscription_id: int
:param client_id: application's ID, obtained during registration
... | "Unsubscribe from webhook events for an existing subscription.\n\n http://strava.github.io/api/partner/v3/events/#delete-a-subscription\n\n :param subscription_id: ID of subscription to remove.\n :type subscription_id: int\n\n :param client_id: application's ID, obtained during registration\... | 367 | false | hozn/stravalib | delete_subscription | 31,059 | |
LDU_FT/KelSolaar/Manager/initialized | LDU_FT | [
"<BEGIN>\n## `name`",
"Setter for **self.__name** attribute.",
" :param value: Attribute value.\n :type value: unicode\n<END>",
"<BEGIN>\n## `activated`",
"Setter for **self.__activated** attribute.",
" :param value: Attribute value.\n :type value: bool\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the initialized API.
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 initialized API.
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... | Setter for **self.__initialized** attribute.
:param value: Attribute value.
:type value: bool | "Setter for **self.__initialized** attribute.\n\n :param value: Attribute value.\n :type value: bool" | 133 | false | KelSolaar/Manager | initialized | 31,060 | |
LDU_FT/mfcloud/python-zvm-sdk/generate_iucv_authfile | LDU_FT | [
"<BEGIN>\n## `getConsole`",
"Get the virtual machine's console output.",
" Input:\n Request Handle with the following properties:\n function - 'CMDVM'\n subfunction - 'CMD'\n userid - userid of the virtual machine",
" Output:\n Request Handle updated with t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_iucv_authfile 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 generate_iucv_authfile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Generate the iucv_authorized_userid file | "Generate the iucv_authorized_userid file" | 643 | false | mfcloud/python-zvm-sdk | generate_iucv_authfile | 31,061 | |
LDU_FT/KartikTalwar/Duolingo/_compute_dependency_order | LDU_FT | [
"<BEGIN>\n## `_login`",
"Authenticate through ``https://www.duolingo.com/login``.\n<END>",
"<BEGIN>\n## `get_activity_stream`",
"Get user's activity stream from\n ``https://www.duolingo.com/stream/<user_id>?before=<date> if before\n date is given or else\n ``https://www.duolingo.com/activ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_dependency_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _compute_dependency_order API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Add a field to each skill indicating the order it was learned
based on the skill's dependencies. Multiple skills will have the same
position if they have the same dependencies. | "Add a field to each skill indicating the order it was learned\n based on the skill's dependencies. Multiple skills will have the same\n position if they have the same dependencies." | 41 | false | KartikTalwar/Duolingo | _compute_dependency_order | 31,062 | |
LDU_FT/davenquinn/Attitude/centered | LDU_FT | [
"<BEGIN>\n## `bingham_pdf`",
"From the *Encyclopedia of Paleomagnetism*",
" From Onstott, 1980:\n Vector resultant: R is analogous to eigenvectors\n of T.\n Eigenvalues are analogous to |R|/N.\n<END>",
"<BEGIN>\n## `report`",
"Outputs a standalone HTML 'report card' for a\n measurement (or se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the centered API.
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 centered API.
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... | Centers coordinate distribution with respect to its
mean on all three axes. This is used as the input to
the regression model, so it can be converted easily
into radial coordinates. | "Centers coordinate distribution with respect to its\n mean on all three axes. This is used as the input to\n the regression model, so it can be converted easily\n into radial coordinates." | 138 | false | davenquinn/Attitude | centered | 31,063 | |
LDU_FT/IBM-Cloud/gp-python-client/__has_language | LDU_FT | [
"<BEGIN>\n## `__get_user_env_vars`",
"Return the user defined environment variables\n<END>",
"<BEGIN>\n## `__parse_vcap_services_env_var`",
"Parse the ``VCAP_SERVICES`` env var and search for the necessary\r\n values\n<END>",
"<BEGIN>\n## `__get_language_match`",
"Compares ``languageCode`` to the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __has_language API.
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 __has_language API.
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 ``True`` if the bundle has the language, ``False`` otherwise | "Returns ``True`` if the bundle has the language, ``False`` otherwise" | 71 | false | IBM-Cloud/gp-python-client | __has_language | 31,064 | |
LDU_FT/RiotGames/cloud-inquisitor/to_json | LDU_FT | [
"<BEGIN>\n## `options`",
"Returns metadata information required for User Creation\n<END>",
"<BEGIN>\n## `run`",
"Update the cache of all DNS entries and perform checks",
" Args:\n *args: Optional list of arguments\n **kwargs: Optional list of keyword arguments",
" Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Exports the object to a JSON friendly dict
Returns:
Dict representation of the object | "Exports the object to a JSON friendly dict\n\n Returns:\n Dict representation of the object" | 693 | false | RiotGames/cloud-inquisitor | to_json | 31,065 | |
LDU_FT/goshuirc/irc/topic | LDU_FT | [
"<BEGIN>\n## `sort_prefixes`",
"Returns a sorted list of prefixes.",
" Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>",
"<BEGIN>\n## `parse_modes`",
"Return a modelist.",
" Args:\n params (list of str): Para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the topic API.
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 topic API.
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... | Requests or sets the topic for the given channel. | "Requests or sets the topic for the given channel." | 97 | false | goshuirc/irc | topic | 31,066 | |
LDU_FT/jonathf/chaospy/flatten | LDU_FT | [
"<BEGIN>\n## `call`",
"Evaluate a polynomial along specified axes.",
" Args:\n poly (Poly):\n Input polynomial.\n args (numpy.ndarray):\n Argument to be evaluated. Masked values keeps the variable intact.",
" Returns:\n (Poly, numpy.ndarray):\n If ma... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flatten API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Flatten a shapeable quantity.
Args:
vari (chaospy.poly.base.Poly, numpy.ndarray):
Shapeable input quantity.
Returns:
(chaospy.poly.base.Poly, numpy.ndarray):
Same type as ``vari`` with `len(Q.shape)==1`.
Examples:
>>> P = chaospy.reshape(chaospy.prange(4), ... | "Flatten a shapeable quantity.\n\n Args:\n vari (chaospy.poly.base.Poly, numpy.ndarray):\n Shapeable input quantity.\n\n Returns:\n (chaospy.poly.base.Poly, numpy.ndarray):\n Same type as ``vari`` with `len(Q.shape)==1`.\n\n Examples:\n >>> P = chaospy.reshape(chaospy... | 713 | false | jonathf/chaospy | flatten | 31,067 | |
LDU_FT/oanda/v20-python/market | LDU_FT | [
"<BEGIN>\n## `from_dict`",
"Instantiate a new Trade from a dict (generally from loading a JSON\n response). The data used to instantiate the Trade is a shallow copy of\n the dict passed in, with any complex child types instantiated\n appropriately.\n<END>",
"<BEGIN>\n## `from_dict`",
"Ins... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the market API.
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 market API.
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 ... | Shortcut to create a Market Order in an Account
Args:
accountID : The ID of the Account
kwargs : The arguments to create a MarketOrderRequest
Returns:
v20.response.Response containing the results from submitting
the request | "Shortcut to create a Market Order in an Account\n\n Args:\n accountID : The ID of the Account\n kwargs : The arguments to create a MarketOrderRequest\n\n Returns:\n v20.response.Response containing the results from submitting\n the request" | 225 | false | oanda/v20-python | market | 31,068 | |
LDU_FT/raiden-network/raiden-contracts/common_options | LDU_FT | [
"<BEGIN>\n## `check_permission_safety`",
"Check if the file at the given path is safe to use as a state file.",
" This checks that group and others have no permissions on the file and that the current user is\n the owner.\n<END>",
"<BEGIN>\n## `get_private_key`",
"Open a JSON-encoded private key and r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common_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 ex... | A decorator that combines commonly appearing @click.option decorators. | "A decorator that combines commonly appearing @click.option decorators." | 76 | false | raiden-network/raiden-contracts | common_options | 31,069 | |
LDU_FT/pief/python-netsnmpagent/start | LDU_FT | [
"<BEGIN>\n## `b`",
"Encodes Unicode strings to byte strings, if necessary.\n<END>",
"<BEGIN>\n## `LogMsg`",
"Writes a formatted log message with a timestamp to stdout.\n<END>",
"<BEGIN>\n## `UpdateSNMPObjs`",
"Function that does the actual data update.\n<END>",
"<BEGIN>\n## `UpdateSNMPObjsAsync`",
"St... | 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... | Starts the agent. Among other things, this means connecting
to the master agent, if configured that way. | "Starts the agent. Among other things, this means connecting\n\t\t to the master agent, if configured that way." | 13 | false | pief/python-netsnmpagent | start | 31,070 | |
LDU_FT/HDI-Project/BTB/_generate_grid | LDU_FT | [
"<BEGIN>\n## `tune_pipeline`",
"Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.",
" Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _generate_grid API.
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 _generate_grid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get the all possible values for each of the tunables. | "Get the all possible values for each of the tunables." | 75 | false | HDI-Project/BTB | _generate_grid | 31,071 | |
LDU_FT/jwodder/javaproperties/dumps | LDU_FT | [
"<BEGIN>\n## `load_xml`",
"r\"\"\"\n Parse the contents of the file-like object ``fp`` as an XML properties file\n and return a `dict` of the key-value pairs.",
" Beyond basic XML well-formedness, `load_xml` only checks that the root\n element is named \"``properties``\" and that all of its ``<entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API.
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 dumps API.
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... | Convert the mapping to a text string in simple line-oriented
``.properties`` format.
If the instance was originally created from a file or string with
`PropertiesFile.load()` or `PropertiesFile.loads()`, then the output
will include the comments and whitespace from the original input, a... | "Convert the mapping to a text string in simple line-oriented\n ``.properties`` format.\n\n If the instance was originally created from a file or string with\n `PropertiesFile.load()` or `PropertiesFile.loads()`, then the output\n will include the comments and whitespace from the original in... | 115 | false | jwodder/javaproperties | dumps | 31,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.