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/mongodb/mongo-python-driver/with_options | LDU_FT | [
"<BEGIN>\n## `_arguments_repr`",
"Representation of the arguments used to create this object.\n<END>",
"<BEGIN>\n## `with_options`",
"Make a copy of this CodecOptions, overriding some options::",
" >>> from bson.codec_options import DEFAULT_CODEC_OPTIONS\n >>> DEFAULT_CODEC_OPTIONS.tz_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_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 extr... | Make a copy of this CodecOptions, overriding some options::
>>> from bson.codec_options import DEFAULT_CODEC_OPTIONS
>>> DEFAULT_CODEC_OPTIONS.tz_aware
False
>>> options = DEFAULT_CODEC_OPTIONS.with_options(tz_aware=True)
>>> options.tz_aware
True... | "Make a copy of this CodecOptions, overriding some options::\n\n >>> from bson.codec_options import DEFAULT_CODEC_OPTIONS\n >>> DEFAULT_CODEC_OPTIONS.tz_aware\n False\n >>> options = DEFAULT_CODEC_OPTIONS.with_options(tz_aware=True)\n >>> options.tz_aware\n ... | 908 | false | mongodb/mongo-python-driver | with_options | 29,973 | |
LDU_FT/limpyd/redis-limpyd-jobs/set_logger | LDU_FT | [
"<BEGIN>\n## `_parse_queues`",
"Parse the given parameter and return a list of queues.\n The parameter must be a list/tuple of strings, or a string with queues\n separated by a comma.\n<END>",
"<BEGIN>\n## `_assert_correct_model`",
"Helper that asserts the model_to_check is the model_reference o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logger API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_logger API.
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... | Prepare the logger, using self.logger_name and self.logger_level | "Prepare the logger, using self.logger_name and self.logger_level" | 122 | false | limpyd/redis-limpyd-jobs | set_logger | 29,974 | |
LDU_FT/ska-sa/katcp-python/handle_inform | LDU_FT | [
"<BEGIN>\n## `request_time`",
"Return the current time in ms since the Unix Epoch.\n<END>",
"<BEGIN>\n## `request_raw_reverse`",
"A raw request handler to demonstrate the calling convention if\n @request decoraters are not used. Reverses the message arguments.\n<END>",
"<BEGIN>\n## `transform_future`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_inform API.
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 handle_inform API.
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... | Dispatch an inform message to the appropriate method.
Parameters
----------
msg : Message object
The inform message to dispatch. | "Dispatch an inform message to the appropriate method.\n\n Parameters\n ----------\n msg : Message object\n The inform message to dispatch." | 905 | false | ska-sa/katcp-python | handle_inform | 29,975 | |
LDU_FT/etscrivner/nose-perfdump/get_total_time | LDU_FT | [
"<BEGIN>\n## `precmd`",
"Parse the command on the given line.",
" :param line: The raw input line\n :type line: str\n<END>",
"<BEGIN>\n## `connect`",
"Create a new connection to the SQLite3 database.",
" :param dbname: The database name\n :type dbname: str\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_time API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_total_time API.
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 total time taken across all results.
:rtype: float | "Returns the total time taken across all results.\n \n :rtype: float" | 28 | false | etscrivner/nose-perfdump | get_total_time | 29,976 | |
LDU_FT/conchoecia/gloTK/str_ripper | LDU_FT | [
"<BEGIN>\n## `meraculous_runner`",
"Check to make sure that the allAssembliesDir has been created, if not,\n make it. This will only execute for the first time an assembly has been\n run in this directory.",
" Run the directory from allAssembliesDir. The self.callString instance\n at... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_ripper API.
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 str_ripper API.
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... | Got this code from here:
http://stackoverflow.com/questions/6116978/python-replace-multiple-strings
This method takes a set of strings, A, and removes all whole
elements of set A from string B.
Input: text string to strip based on instance attribute self.censor
Output: a stripp... | "Got this code from here:\n http://stackoverflow.com/questions/6116978/python-replace-multiple-strings\n\n This method takes a set of strings, A, and removes all whole\n elements of set A from string B.\n\n Input: text string to strip based on instance attribute self.censor\n Output: ... | 73 | false | conchoecia/gloTK | str_ripper | 29,977 | |
LDU_FT/johnwheeler/flask-ask/play | LDU_FT | [
"<BEGIN>\n## `list`",
"return list of purchasable and not entitled products\n<END>",
"<BEGIN>\n## `_find_tide_info`",
"Algorithm to find the 2 high tides for the day, the first of which is smaller and occurs\n mid-day, the second of which is larger and typically in the evening.\n<END>",
"<BEGIN>\n## `pl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the play API.
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 play API.
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... | Sends a Play Directive to begin playback and replace current and enqueued streams. | "Sends a Play Directive to begin playback and replace current and enqueued streams." | 92 | false | johnwheeler/flask-ask | play | 29,978 | |
LDU_FT/adamcharnock/swiftwind/_is_finished | LDU_FT | [
"<BEGIN>\n## `get_amount_normal`",
"Get the amount due on the given billing cycle",
" For regular recurring costs this is simply `fixed_amount`. For\n one-off costs this is the portion of `fixed_amount` for the given\n billing_cycle.\n<END>",
"<BEGIN>\n## `get_amount_arrears_balance`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_finished API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_finished API.
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... | Have the specified number of billing cycles been completed?
If so, we should not be enacting this RecurringCost. | "Have the specified number of billing cycles been completed?\n\n If so, we should not be enacting this RecurringCost." | 49 | false | adamcharnock/swiftwind | _is_finished | 29,979 | |
LDU_FT/relwell/corenlp-xml-lib/governor | LDU_FT | [
"<BEGIN>\n## `mentions`",
"Returns mentions",
" :return: list of mentions\n :rtype: list\n<END>",
"<BEGIN>\n## `sentence`",
"The sentence related to this mention",
" :getter: returns the sentence this mention relates to\n :type: corenlp_xml.document.Sentence\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the governor API.
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 governor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Registers a node as governing this node
:param dep_type: The dependency type
:type dep_type: str
:param node:
:return: self, provides fluent interface
:rtype: corenlp_xml.dependencies.DependencyNode | "Registers a node as governing this node\n\n :param dep_type: The dependency type\n :type dep_type: str\n :param node:\n\n :return: self, provides fluent interface\n :rtype: corenlp_xml.dependencies.DependencyNode" | 87 | false | relwell/corenlp-xml-lib | governor | 29,980 | |
LDU_FT/fgmacedo/django-export-action/_can_change_or_view | LDU_FT | [
"<BEGIN>\n## `_get_field_by_name`",
"Compatible with old API of model_class._meta.get_field_by_name(field_name)\n<END>",
"<BEGIN>\n## `_get_remote_field`",
"Compatible with Django 1.8~1.10 ('related' was renamed to 'remote_field')\n<END>",
"<BEGIN>\n## `_get_all_field_names`",
"100% compatible version of ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _can_change_or_view 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 _can_change_or_view 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... | Return True iff `user` has either change or view permission
for `model`. | "Return True iff `user` has either change or view permission\n for `model`." | 27 | false | fgmacedo/django-export-action | _can_change_or_view | 29,981 | |
LDU_FT/hitchtest/hitchserve/_match_service | LDU_FT | [
"<BEGIN>\n## `run`",
"Run subcommand.",
" Args:\n shell (Optional[bool]): Run command using shell (default False)\n ignore_errors (Optional[bool]): If the command has a non-zero return code, don't raise an exception (default False)\n stdin (Optional[bool]): Plug input fro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _match_service API.
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 _match_service API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return line if line matches this service's name, return None otherwise. | "Return line if line matches this service's name, return None otherwise." | 35 | false | hitchtest/hitchserve | _match_service | 29,982 | |
LDU_FT/jdoda/sdl2hl/has_intersection | LDU_FT | [
"<BEGIN>\n## `was_init`",
"This function returns the subsystems which have previously been initialized.",
" Returns:\n Set[InitFlag]: Flags indicating which subsystems have been initialized.\n<END>",
"<BEGIN>\n## `load_bmp`",
"Load a surface from a file.",
" Args:\n path (str):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_intersection API.
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 has_intersection API.
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 whether this rectangle intersects with another rectangle.
Args:
other (Rect): The rectangle to test intersection with.
Returns:
bool: True if there is an intersection, False otherwise. | "Return whether this rectangle intersects with another rectangle.\n\n Args:\n other (Rect): The rectangle to test intersection with.\n\n Returns:\n bool: True if there is an intersection, False otherwise." | 134 | false | jdoda/sdl2hl | has_intersection | 29,983 | |
LDU_FT/scivision/histutils/getserialnum | LDU_FT | [
"<BEGIN>\n## `cp_parents`",
"This function requires Python >= 3.6.",
" This acts like bash cp --parents in Python\n inspiration from\n http://stackoverflow.com/questions/15329223/copy-a-file-into-a-directory-with-its-original-leading-directories-appended",
" example\n source: /tmp/e/f\n dest... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getserialnum API.
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 getserialnum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This function assumes the serial number of the camera is in a particular place in the filename.
Yes, this is a little lame, but it's how the original 2011 image-writing program worked, and I've
carried over the scheme rather than appending bits to dozens of TB of files. | "This function assumes the serial number of the camera is in a particular place in the filename.\n Yes, this is a little lame, but it's how the original 2011 image-writing program worked, and I've\n carried over the scheme rather than appending bits to dozens of TB of files." | 58 | false | scivision/histutils | getserialnum | 29,984 | |
LDU_FT/collectiveacuity/labPack/check_instance_status | LDU_FT | [
"<BEGIN>\n## `_delete`",
"a helper method for non-blocking deletion of files\r",
" :param _file_path: string with path to file to remove \r\n :param _method_title: string with name of method calling _delete\r\n :param _record_key: string with name of record key to delete\r\n :return:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_instance_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_instance_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | a method to wait until AWS instance reports an OK status
:param instance_id: string of instance id on AWS
:param wait: [optional] boolean to wait for instance while initializing
:return: True | "a method to wait until AWS instance reports an OK status\n\n :param instance_id: string of instance id on AWS\n :param wait: [optional] boolean to wait for instance while initializing\n :return: True" | 886 | false | collectiveacuity/labPack | check_instance_status | 29,985 | |
LDU_FT/thiderman/doge/get | LDU_FT | [
"<BEGIN>\n## `get`",
"Get one item. This will rotate the deque one step. Repeated gets will\n return different items.\n<END>",
"<BEGIN>\n## `shuffle`",
"Shuffle the deque",
" Deques themselves do not support this, so this will make all items into\n a list, shuffle that list, clear the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get one item and prepare to get an item with lower
rank on the next call. | "Get one item and prepare to get an item with lower\n rank on the next call." | 17 | false | thiderman/doge | get | 29,986 | |
LDU_FT/erget/StereoVision/rectify | LDU_FT | [
"<BEGIN>\n## `get_frames_singleimage`",
"Get current left and right frames from a single image,\n by splitting the image in half.\n<END>",
"<BEGIN>\n## `show_frames`",
"Show current frames from cameras.",
" ``wait`` is the wait interval in milliseconds before the window closes.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rectify API.
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 rectify API.
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... | Rectify frames passed as (left, right) pair of OpenCV Mats.
Remapping is done with nearest neighbor for speed. | "Rectify frames passed as (left, right) pair of OpenCV Mats.\n\n Remapping is done with nearest neighbor for speed." | 83 | false | erget/StereoVision | rectify | 29,987 | |
LDU_FT/cloudtools/stacker/_diff_stack | LDU_FT | [
"<BEGIN>\n## `handle`",
"Returns the value of a key for a given hook in hook_data.",
" Format of value:",
" <hook_name>::<key>\n<END>",
"<BEGIN>\n## `resolve_variables`",
"Given a list of variables, resolve all of them.",
" Args:\n variables (list of :class:`stacker.variables... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _diff_stack API.
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 _diff_stack API.
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... | Handles the diffing a stack in CloudFormation vs our config | "Handles the diffing a stack in CloudFormation vs our config" | 733 | false | cloudtools/stacker | _diff_stack | 29,988 | |
LDU_FT/wavefrontHQ/python-client/update_notificant | LDU_FT | [
"<BEGIN>\n## `display`",
"Sets the display of this Message.",
" The form of display for this message # noqa: E501",
" :param display: The display of this Message. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `scope`",
"Sets the scope of this Message.",
" The audience sco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_notificant API.
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 update_notificant API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Update a specific notification target # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_notificant(id, async_req=True)
>>> result = thread.get()
... | "Update a specific notification target # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.update_notificant(id, async_req=True)\n >>> result = thread.get()\n\... | 954 | false | wavefrontHQ/python-client | update_notificant | 29,989 | |
LDU_FT/iamjarret/pystockfish/_get_info_pv | LDU_FT | [
"<BEGIN>\n## `move`",
"Advance game by single move, if possible.",
" @return: logical indicator if move was performed.\n<END>",
"<BEGIN>\n## `setposition`",
"Move list is a list of moves (i.e. ['e2e4', 'e7e5', ...]) each entry as a string. Moves must be in full algebraic notation.\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_info_pv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_info_pv API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Helper function for _bestmove_get_info.
Extracts "pv" field from bestmove's info and returns move sequence in UCI notation. | "Helper function for _bestmove_get_info.\n\n Extracts \"pv\" field from bestmove's info and returns move sequence in UCI notation." | 25 | false | iamjarret/pystockfish | _get_info_pv | 29,990 | |
LDU_FT/Python-Tools/aioorm/model_to_dict | LDU_FT | [
"<BEGIN>\n## `drop_model_tables`",
"Drop tables for all given models (in the right order).\n<END>",
"<BEGIN>\n## `model_to_dict`",
"Convert a model instance (and any related objects) to a dictionary.\n :param bool recurse: Whether foreign-keys should be recursed.\n :param bool backrefs: Whether lists of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the model_to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Convert a model instance (and any related objects) to a dictionary.
:param bool recurse: Whether foreign-keys should be recursed.
:param bool backrefs: Whether lists of related objects should be recursed.
:param only: A list (or set) of field instances indicating which fields
should be included.
... | "Convert a model instance (and any related objects) to a dictionary.\n :param bool recurse: Whether foreign-keys should be recursed.\n :param bool backrefs: Whether lists of related objects should be recursed.\n :param only: A list (or set) of field instances indicating which fields\n should be included... | 11 | false | Python-Tools/aioorm | model_to_dict | 29,991 | |
LDU_FT/Apitax/Apitax/get_driver_script_catalog | LDU_FT | [
"<BEGIN>\n## `get_driver_blacklist`",
"Retrieve the blacklist in the driver",
" Retrieve the blacklist in the driver # noqa: E501",
" :param driver: The driver to use for the request. ie. github\n :type driver: str",
" :rtype: Response\n<END>",
"<BEGIN>\n## `get_driver_config`",
"Retrieve th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_driver_script_catalog 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 get_driver_script_catalog API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Retrieve the script catalog
Retrieve the script catalog # noqa: E501
:param name: Get status of a driver with this name
:type name: str
:rtype: Response | "Retrieve the script catalog\n\n Retrieve the script catalog # noqa: E501\n\n :param name: Get status of a driver with this name\n :type name: str\n\n :rtype: Response" | 137 | false | Apitax/Apitax | get_driver_script_catalog | 29,992 | |
LDU_FT/mar10/pyftpsync/_interactive_resolve | LDU_FT | [
"<BEGIN>\n## `match_path`",
"Return True if `path` matches `match` and `exclude` options.\n<END>",
"<BEGIN>\n## `_compare_file`",
"Byte compare two files (early out on first difference).\n<END>",
"<BEGIN>\n## `_tick`",
"Write progress info and move cursor to beginning of line.\n<END>",
"<BEGIN>\n## `_sy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _interactive_resolve 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 _interactive_resolve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return 'local', 'remote', or 'skip' to use local, remote resource or skip. | "Return 'local', 'remote', or 'skip' to use local, remote resource or skip." | 122 | false | mar10/pyftpsync | _interactive_resolve | 29,993 | |
LDU_FT/tweepy/tweepy/prev | LDU_FT | [
"<BEGIN>\n## `get_authorization_url`",
"Get the authorization URL to redirect the user\n<END>",
"<BEGIN>\n## `get_access_token`",
"After user has authorized the request token, get access token\n with user supplied verifier.\n<END>",
"<BEGIN>\n## `get_xauth_access_token`",
"Get an access token from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prev API.
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 prev API.
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... | Fetch a set of items with IDs greater than current set. | "Fetch a set of items with IDs greater than current set." | 54 | false | tweepy/tweepy | prev | 29,994 | |
LDU_FT/jilljenn/tryalgo/predictive_text | LDU_FT | [
"<BEGIN>\n## `three_partition`",
"partition a set of integers in 3 parts of same total value",
" :param x: table of non negative values\n :returns: triplet of the integers encoding the sets, or None otherwise\n :complexity: :math:`O(2^{2n})`\n<END>",
"<BEGIN>\n## `freivalds`",
"Tests matrix product... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predictive_text API.
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 predictive_text API.
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... | Predictive text for mobile phones
:param dic: associates weights to words from [a-z]*
:returns: a dictionary associating to words from [2-9]*
a corresponding word from the dictionary with highest weight
:complexity: linear in total word length | "Predictive text for mobile phones\n\n :param dic: associates weights to words from [a-z]*\n :returns: a dictionary associating to words from [2-9]*\n a corresponding word from the dictionary with highest weight\n :complexity: linear in total word length" | 423 | false | jilljenn/tryalgo | predictive_text | 29,995 | |
LDU_FT/ratt-ru/PyMORESANE/gpu_a_trous | LDU_FT | [
"<BEGIN>\n## `iuwt_decomposition`",
"This function serves as a handler for the different implementations of the IUWT decomposition. It allows the\n different methods to be used almost interchangeably.",
" INPUTS:\n in1 (no default): Array on which the decomposition is to be perfor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gpu_a_trous API.
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 gpu_a_trous API.
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... | Simple convenience function so that the a trous kernels can be easily accessed by any function. | "Simple convenience function so that the a trous kernels can be easily accessed by any function." | 125 | false | ratt-ru/PyMORESANE | gpu_a_trous | 29,996 | |
LDU_FT/pudo/jsongraph/get | LDU_FT | [
"<BEGIN>\n## `base_uri`",
"Resolution base for JSON schema. Also used as the default\n graph ID for RDF.\n<END>",
"<BEGIN>\n## `resolver`",
"Resolver for JSON Schema references. This can be based around a\n file or HTTP-based resolution base URI.\n<END>",
"<BEGIN>\n## `store`",
"Backend stor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Construct a single object based on its ID. | "Construct a single object based on its ID." | 52 | false | pudo/jsongraph | get | 29,997 | |
LDU_FT/mamrhein/identifiers/elements | LDU_FT | [
"<BEGIN>\n## `calc_check_digit`",
"Calculate and return the GS1 check digit.\n<END>",
"<BEGIN>\n## `company_prefix`",
"Return the identifier's company prefix part.\n<END>",
"<BEGIN>\n## `elements`",
"Return the identifier's elements as tuple.\n<END>",
"<BEGIN>\n## `separated`",
"Return a string repres... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the elements API.
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 elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return the IBAN's Country Code, check digits, Bank Identifier and
Bank Account Number as tuple. | "Return the IBAN's Country Code, check digits, Bank Identifier and\n Bank Account Number as tuple." | 19 | false | mamrhein/identifiers | elements | 29,998 | |
LDU_FT/Yelp/uwsgi_metrics/timer | LDU_FT | [
"<BEGIN>\n## `initialize`",
"Initialize metrics, must be invoked at least once prior to invoking any\n other method.\n<END>",
"<BEGIN>\n## `emit`",
"Serialize metrics to the memory mapped buffer.\n<END>",
"<BEGIN>\n## `view`",
"Get a dictionary representation of current metrics.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timer API.
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 timer API.
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... | Record a timing delta:
::
start_time_s = time.time()
do_some_operation()
end_time_s = time.time()
delta_s = end_time_s - start_time_s
delta_ms = delta_s * 1000
timer(__name__, 'my_timer', delta_ms) | "Record a timing delta:\n ::\n\n start_time_s = time.time()\n do_some_operation()\n end_time_s = time.time()\n delta_s = end_time_s - start_time_s\n delta_ms = delta_s * 1000\n timer(__name__, 'my_timer', delta_ms)" | 32 | false | Yelp/uwsgi_metrics | timer | 29,999 | |
LDU_FT/vbwagner/ctypescrypto/add_cert | LDU_FT | [
"<BEGIN>\n## `digest`",
"Method digest is redefined to return keyed MAC value instead of\n just digest.\n<END>",
"<BEGIN>\n## `bytes`",
"Returns num bytes of cryptographically strong pseudo-random\n bytes. If checkc_result is True, raises error if PRNG is not\n seeded enough\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_cert API.
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 add_cert API.
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... | Explicitely adds certificate to set of trusted in the store
@param cert - X509 object to add | "Explicitely adds certificate to set of trusted in the store\n @param cert - X509 object to add" | 119 | false | vbwagner/ctypescrypto | add_cert | 30,000 | |
LDU_FT/KnuVerse/knuverse-sdk-python/enrollment_resource | LDU_FT | [
"<BEGIN>\n## `_auth`",
"Makes sure the request has a valid authorization jwt before calling the wrapped function.\n It does this by checking the timestamp of the last jwt and if > 10 minutes have elapsed,\n it refreshes it's existing jwt from the server.\n Args:\n f: Function to wr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrollment_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enrollment_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Get Client Enrollment Data. Uses GET to /enrollments/<client> interface.
:Args:
* *client*: (str) Client's ID
* *audio*: (boolean) If True then the enrollment audio is returned.
:Returns: (dictionary) Look `here <https://cloud.knuverse.com/docs/api/#api-Enrollments-Get_enrollme... | "Get Client Enrollment Data. Uses GET to /enrollments/<client> interface.\n\n :Args:\n * *client*: (str) Client's ID\n * *audio*: (boolean) If True then the enrollment audio is returned.\n :Returns: (dictionary) Look `here <https://cloud.knuverse.com/docs/api/#api-Enrollments-Get_en... | 138 | false | KnuVerse/knuverse-sdk-python | enrollment_resource | 30,001 | |
LDU_FT/falkr/stmpy/stop_timer | LDU_FT | [
"<BEGIN>\n## `get_graphviz_dot`",
"Return the graph of the state machine.",
" The format is the dot format for Graphviz, and can be directly used as input\n to Graphviz.",
" To learn more about Graphviz, visit https://graphviz.gitlab.io.",
" **Display in Jupyter Notebook**\n Install Python su... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop_timer API.
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_timer API.
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... | Stop a timer.
If the timer is not active, nothing happens. | "Stop a timer.\n\n If the timer is not active, nothing happens." | 47 | false | falkr/stmpy | stop_timer | 30,002 | |
LDU_FT/projectshift/shift-schema/validate | LDU_FT | [
"<BEGIN>\n## `validate`",
"Validate\n Perform value validation against validation settings and return\n error object.",
" :param value: list, value to check\n :param model: parent model being validated\n :param context: object or None, validation co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
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... | Validate
Perform value validation and return result
:param value: value to check
:param model: parent model being validated
:param context: object or None, validation context
:return: shiftschema.results.Error | "Validate\n Perform value validation and return result\n\n :param value: value to check\n :param model: parent model being validated\n :param context: object or None, validation context\n :return: shiftschema.results.Error" | 135 | false | projectshift/shift-schema | validate | 30,003 | |
LDU_FT/crm416/semantic/extractDates | LDU_FT | [
"<BEGIN>\n## `parseUnits`",
"Carries out a conversion (represented as a string) and returns the\n result as a human-readable string.",
" Args:\n inp (str): Text representing a unit conversion, which should\n include a magnitude, a description of the initial units,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extractDates API.
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 extractDates API.
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... | Extract semantic date information from an input string.
This is a convenience method which would only be used if
you'd rather not initialize a DateService object.
Args:
inp (str): The input string to be parsed.
tz: An optional Pytz timezone. All datetime objects returned will
be... | "Extract semantic date information from an input string.\n This is a convenience method which would only be used if\n you'd rather not initialize a DateService object.\n\n Args:\n inp (str): The input string to be parsed.\n tz: An optional Pytz timezone. All datetime objects returned will\n ... | 75 | false | crm416/semantic | extractDates | 30,004 | |
LDU_FT/pytest-dev/pytest-xdist/_reschedule | LDU_FT | [
"<BEGIN>\n## `has_pending`",
"Return True if there are pending test items.",
" This indicates that collection has finished and nodes are still\n processing test items, so this can be thought of as\n \"the scheduler is active\".\n<END>",
"<BEGIN>\n## `add_node`",
"Add a new node to the s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reschedule API.
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 _reschedule API.
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... | Maybe schedule new items on the node.
If there are any globally pending work units left then this will check
if the given node should be given any more tests. | "Maybe schedule new items on the node.\n\n If there are any globally pending work units left then this will check\n if the given node should be given any more tests." | 92 | false | pytest-dev/pytest-xdist | _reschedule | 30,005 | |
LDU_FT/razorpay/razorpay-python/issue | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetch Card for given Id",
" Args:\n card_id : Id for which card object has to be retrieved",
" Returns:\n Card dict for given card Id\n<END>",
"<BEGIN>\n## `all`",
"Fetch all Virtual Account entities",
" Returns:\n Dictionary ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the issue API.
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 issue API.
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... | Issues an invoice in draft state
Args:
invoice_id : Id for delete the invoice
Returns:
Its response is the invoice entity, similar to create/update API response. Its status now would be issued. | "Issues an invoice in draft state\n\n Args:\n invoice_id : Id for delete the invoice\n Returns:\n Its response is the invoice entity, similar to create/update API response. Its status now would be issued." | 159 | false | razorpay/razorpay-python | issue | 30,006 | |
LDU_FT/bsolomon1124/pyfinance/corr_heatmap | LDU_FT | [
"<BEGIN>\n## `value`",
"Compute option value according to BSM model.\n<END>",
"<BEGIN>\n## `implied_vol`",
"Get implied vol at the specified price using an iterative approach.\r",
" There is no closed-form inverse of BSM-value as a function of sigma,\r\n so start at an anchoring volatility lev... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the corr_heatmap API.
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 corr_heatmap API.
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... | Wrapper around seaborn.heatmap for visualizing correlation matrix.
Parameters
----------
x : DataFrame
Underlying data (not a correlation matrix)
mask_half : bool, default True
If True, mask (whiteout) the upper right triangle of the matrix
All other parameters passed to sea... | "Wrapper around seaborn.heatmap for visualizing correlation matrix.\r\n\r\n Parameters\r\n ----------\r\n x : DataFrame\r\n Underlying data (not a correlation matrix)\r\n mask_half : bool, default True\r\n If True, mask (whiteout) the upper right triangle of the matrix\r\n All other paramet... | 372 | false | bsolomon1124/pyfinance | corr_heatmap | 30,007 | |
LDU_FT/obsrvbl/flowlogs-reader/action_ipset | LDU_FT | [
"<BEGIN>\n## `aggregated_records`",
"Yield dicts that correspond to aggregates of the flow records given by\n the sequence of FlowRecords in `all_records`. Skips incomplete records.\n This will consume the `all_records` iterator, and requires enough memory to\n be able to read it entirely.\n `key_fiel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_ipset API.
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 action_ipset API.
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... | Show the set of IPs seen in Flow Log records. | "Show the set of IPs seen in Flow Log records." | 10 | false | obsrvbl/flowlogs-reader | action_ipset | 30,008 | |
LDU_FT/aws/aws-dynamodb-encryption-python/dictionary_validator | LDU_FT | [
"<BEGIN>\n## `encrypt_item`",
"Demonstrate use of EncryptedTable to transparently encrypt an item.\n<END>",
"<BEGIN>\n## `to_str`",
"Takes an input str or bytes object and returns an equivalent str object.",
" :param data: Input data\n :type data: str or bytes\n :returns: Data normalized to str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dictionary_validator 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 dictionary_validator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Validator for ``attrs`` that performs deep type checking of dictionaries. | "Validator for ``attrs`` that performs deep type checking of dictionaries." | 175 | false | aws/aws-dynamodb-encryption-python | dictionary_validator | 30,009 | |
LDU_FT/Synerty/pytmpdir/open | LDU_FT | [
"<BEGIN>\n## `pathNames`",
"Path Names",
" @return: A list of path + name of each file, relative to the root\n directory.\n<END>",
"<BEGIN>\n## `paths`",
"Paths",
" @return: A list of the paths, effectively a list of relative\n directory names.\n<END>",
"<BEGIN>\n## `getFile`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
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 open API.
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... | Open
Pass arguments and return open file.
@param append: Open for writing, appending to the end of the file if
it exists. Default as False.
@param write: Open for writing, truncating the file first. Default
as False.
@type append: Boolean
@type write: Boolean
... | "Open\n\n Pass arguments and return open file.\n\n @param append: Open for writing, appending to the end of the file if\n it exists. Default as False.\n @param write: Open for writing, truncating the file first. Default\n as False.\n @type append: Boolean\n @type write... | 76 | false | Synerty/pytmpdir | open | 30,010 | |
LDU_FT/bmuller/kademlia/check_dht_value_type | LDU_FT | [
"<BEGIN>\n## `add_node`",
"Add a C{Node} to the C{KBucket}. Return True if successful,\n False if the bucket is full.",
" If the bucket is full, keep track of node in a replacement list,\n per section 4.1 of the paper.\n<END>",
"<BEGIN>\n## `lonely_buckets`",
"Get all of the buckets th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_dht_value_type 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_dht_value_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Checks to see if the type of the value is a valid type for
placing in the dht. | "Checks to see if the type of the value is a valid type for\n placing in the dht." | 62 | false | bmuller/kademlia | check_dht_value_type | 30,011 | |
LDU_FT/taleinat/fuzzysearch/has_near_match_generic_ngrams | LDU_FT | [
"<BEGIN>\n## `find_near_matches_no_deletions_ngrams`",
"search for near-matches of subsequence in sequence",
" This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):",
" * the maximum allowed number of chara... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_near_match_generic_ngrams 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 has_near_match_generic_ngrams API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | search for near-matches of subsequence in sequence
This searches for near-matches, where the nearly-matching parts of the
sequence must meet the following limitations (relative to the subsequence):
* the maximum allowed number of character substitutions
* the maximum allowed number of new characters i... | "search for near-matches of subsequence in sequence\n\n This searches for near-matches, where the nearly-matching parts of the\n sequence must meet the following limitations (relative to the subsequence):\n\n * the maximum allowed number of character substitutions\n * the maximum allowed number of new chara... | 51 | false | taleinat/fuzzysearch | has_near_match_generic_ngrams | 30,012 | |
LDU_FT/kigawas/eciespy/decrypt | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt with eth public key",
" Parameters\n ----------\n receiver_pubhex: str\n Receiver's ethereum public key hex string\n msg: bytes\n Data to encrypt",
" Returns\n -------\n bytes\n Encrypted data\n<END>",
"<BEGIN>\n## `decrypt`",
"De... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API.
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 decrypt API.
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... | Decrypt with eth private key
Parameters
----------
receiver_pubhex: str
Receiver's ethereum private key hex string
msg: bytes
Data to decrypt
Returns
-------
bytes
Plain text | "Decrypt with eth private key\n\n Parameters\n ----------\n receiver_pubhex: str\n Receiver's ethereum private key hex string\n msg: bytes\n Data to decrypt\n\n Returns\n -------\n bytes\n Plain text" | 27 | false | kigawas/eciespy | decrypt | 30,013 | |
LDU_FT/dossier/dossier.models/build_highlight_objects | LDU_FT | [
"<BEGIN>\n## `run`",
"Generate the report to the given output.",
" :param output: writable file-like object or file path\n<END>",
"<BEGIN>\n## `_generate_report_all`",
"Generate report for all subfolders contained by self.folder_id.\n<END>",
"<BEGIN>\n## `_generate_report_single`",
"Generate repo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_highlight_objects 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 build_highlight_objects API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | converts a dict of pretty_name --> [tuple(string, score), ...] to
`Highlight` objects as specified above. | "converts a dict of pretty_name --> [tuple(string, score), ...] to\n `Highlight` objects as specified above." | 217 | false | dossier/dossier.models | build_highlight_objects | 30,014 | |
LDU_FT/SeattleTestbed/seash/beginning_of_history | LDU_FT | [
"<BEGIN>\n## `_bind_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_bind_exit_key`",
"u\"\"\"setup the mapping from key to call the function.\n<END>",
"<BEGIN>\n## `_get_completions`",
"Return a list of possible completions for the string ending at the point.\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beginning_of_history 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 beginning_of_history API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | u'''Move to the first line in the history. | "u'''Move to the first line in the history." | 281 | false | SeattleTestbed/seash | beginning_of_history | 30,015 | |
LDU_FT/xzased/lvm2py/remove_all_lvs | LDU_FT | [
"<BEGIN>\n## `open`",
"Obtains the lvm, vg_t and lv_t handle. Usually you would never need to use this\n method unless you are doing operations using the ctypes function wrappers in\n conversion.py",
" *Raises:*",
" * HandleError\n<END>",
"<BEGIN>\n## `is_active`",
"Retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_all_lvs API.
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 remove_all_lvs API.
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... | Removes all logical volumes from the volume group.
*Raises:*
* HandleError, CommitError | "Removes all logical volumes from the volume group.\n\n *Raises:*\n\n * HandleError, CommitError" | 189 | false | xzased/lvm2py | remove_all_lvs | 30,016 | |
LDU_FT/benley/butcher/output_files | LDU_FT | [
"<BEGIN>\n## `_metahash`",
"Checksum hash of all the inputs to this rule.",
" Output is invalid until collect_srcs and collect_deps have been run.",
" In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>",
"<BEGIN>\n## `col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_files API.
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 output_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Returns the list of output files from this rule.
Paths are relative to buildroot. | "Returns the list of output files from this rule.\n\n Paths are relative to buildroot." | 118 | false | benley/butcher | output_files | 30,017 | |
LDU_FT/floydhub/floyd-cli/get_by_name | LDU_FT | [
"<BEGIN>\n## `init`",
"Initialize new project at the current path.",
" After this you can run other FloydHub commands like status and run.\n<END>",
"<BEGIN>\n## `status`",
"View status of all jobs in a project.",
" The command also accepts a specific job name.\n<END>",
"<BEGIN>\n## `print_experime... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_by_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | name: can be either <namespace>/<dataset_name> or just <dataset_name>
namespace: if specified, will skip name parsing, defaults to current user's username | "name: can be either <namespace>/<dataset_name> or just <dataset_name>\n namespace: if specified, will skip name parsing, defaults to current user's username" | 84 | false | floydhub/floyd-cli | get_by_name | 30,018 | |
LDU_FT/cloudmesh-cmd3/cmd3/do_use | LDU_FT | [
"<BEGIN>\n## `do_clear`",
"Usage:\n clear",
" Clears the screen.\n<END>",
"<BEGIN>\n## `do_banner`",
"::",
" Usage:\n banner [-c CHAR] [-n WIDTH] [-i INDENT] [-r COLOR] TEXT",
" Arguments:\n TEXT The text message from which to creat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_use API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_use API.
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 ... | ::
USAGE:
use list lists the available scopes
use add SCOPE adds a scope <scope>
use delete SCOPE removes the <scope>
use without parameters allows an
interactive s... | "::\n \n USAGE:\n\n use list lists the available scopes\n\n use add SCOPE adds a scope <scope>\n\n use delete SCOPE removes the <scope>\n\n use without parameters allows an\n i... | 184 | false | cloudmesh-cmd3/cmd3 | do_use | 30,019 | |
LDU_FT/APSL/transmanager/get_languages | LDU_FT | [
"<BEGIN>\n## `create_translation_tasks`",
"Creates the translations tasks from the instance and its translatable children",
" :param instance:\n :return:\n<END>",
"<BEGIN>\n## `update_task`",
"Updates a task as done if we have a new value for this alternative language",
" :param diffe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_languages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_languages API.
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... | Get all the languages except the main.
Try to get in order:
1.- item languages
2.- model languages
3.- application model languages
# 4.- default languages
:param master:
:param include_main:
:return: | "Get all the languages except the main.\n\n Try to get in order:\n 1.- item languages\n 2.- model languages\n 3.- application model languages\n # 4.- default languages\n\n :param master:\n :param include_main:\n :return:" | 92 | false | APSL/transmanager | get_languages | 30,020 | |
LDU_FT/latchset/jwcrypto/deserialize | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt according to the selected encryption and hashing\n functions.",
" :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext",
" Returns a dictionary with the computed data.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
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 deserialize API.
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... | Deserialize a JWE token.
NOTE: Destroys any current status and tries to import the raw
JWE provided.
:param raw_jwe: a 'raw' JWE token (JSON Encoded or Compact
notation) string.
:param key: A (:class:`jwcrypto.jwk.JWK`) decryption key or a password
string (optional).
... | "Deserialize a JWE token.\n\n NOTE: Destroys any current status and tries to import the raw\n JWE provided.\n\n :param raw_jwe: a 'raw' JWE token (JSON Encoded or Compact\n notation) string.\n :param key: A (:class:`jwcrypto.jwk.JWK`) decryption key or a password\n string (op... | 101 | false | latchset/jwcrypto | deserialize | 30,021 | |
LDU_FT/ungarj/tilematrix/tile_x_size | LDU_FT | [
"<BEGIN>\n## `tile`",
"Return Tile object of this TilePyramid.",
" - zoom: zoom level\n - row: tile matrix row\n - col: tile matrix column\n<END>",
"<BEGIN>\n## `matrix_width`",
"Tile matrix width (number of columns) at zoom level.",
" - zoom: zoom level\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tile_x_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tile_x_size API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Width of a tile in SRID units at zoom level.
- zoom: zoom level | "Width of a tile in SRID units at zoom level.\n\n - zoom: zoom level" | 71 | false | ungarj/tilematrix | tile_x_size | 30,022 | |
LDU_FT/Sanji-IO/sanji/to_response | LDU_FT | [
"<BEGIN>\n## `add`",
"Add a object\n Args:\n Object: Object will be added\n Returns:\n Object: Object with id\n Raises:\n TypeError: If add object is not a dict\n MultipleInvalid: If input object is invaild\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_response API.
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 to_response API.
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... | transform message to response message
Notice: this method will return a deepcopy | "transform message to response message\n Notice: this method will return a deepcopy" | 45 | false | Sanji-IO/sanji | to_response | 30,023 | |
LDU_FT/frasertweedale/ledgertools/choose | LDU_FT | [
"<BEGIN>\n## `apply`",
"Manufacture decorator that filters return value with given function.",
" ``filter``:\n Callable that takes a single parameter.\n<END>",
"<BEGIN>\n## `format_outpat`",
"Format an outpat for the given transaction.",
" Format the given output filename pattern. The pattern ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choose API.
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 choose API.
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 ... | Prompts the user to choose one item from a list.
The default, if provided, is an index; the item of that index will
be returned. | "Prompts the user to choose one item from a list.\n\n The default, if provided, is an index; the item of that index will\n be returned." | 82 | false | frasertweedale/ledgertools | choose | 30,024 | |
LDU_FT/ewiger/mlab/_get | LDU_FT | [
"<BEGIN>\n## `saveVarsInMat`",
"Hacky convinience function to dump a couple of python variables in a\n .mat file. See `awmstools.saveVars`.\n<END>",
"<BEGIN>\n## `_make_proxy`",
"Creates a proxy for a variable.",
" XXX create and cache nested proxies also here.\n<END>",
"<BEGIN>\n## `_do`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | r"""Directly access a variable in matlab space.
This should normally not be used by user code. | "r\"\"\"Directly access a variable in matlab space.\n\n This should normally not be used by user code." | 247 | false | ewiger/mlab | _get | 30,025 | |
LDU_FT/wikimedia/ores/score | LDU_FT | [
"<BEGIN>\n## `redis_from_url`",
"Converts a redis URL used by celery into a `redis.Redis` object.\n<END>",
"<BEGIN>\n## `process_model_scores`",
"Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the score API.
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 score API.
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... | Genetate scores for model applied to a sequence of revisions.
:Parameters:
context : str
The name of the context -- usually the database name of a wiki
models : `iterable`
The names of a models to apply
revids : `iterable`
A se... | "Genetate scores for model applied to a sequence of revisions.\n\n :Parameters:\n context : str\n The name of the context -- usually the database name of a wiki\n models : `iterable`\n The names of a models to apply\n revids : `iterable`\n ... | 52 | false | wikimedia/ores | score | 30,026 | |
LDU_FT/bpsmith/tia/on_event | LDU_FT | [
"<BEGIN>\n## `sma`",
"If n is 0 then return the ltd mean; else return the n day mean\n<END>",
"<BEGIN>\n## `true_range`",
"http://en.wikipedia.org/wiki/Average_true_range\n The greatest of the following:\n - Current High less the current Low\n - Current High less the previous Close (absolute value)\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_event API.
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 on_event API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | this is invoked from in response to COM PumpWaitingMessages - different thread | "this is invoked from in response to COM PumpWaitingMessages - different thread" | 226 | false | bpsmith/tia | on_event | 30,027 | |
LDU_FT/rshipp/python-dshield/asnum | LDU_FT | [
"<BEGIN>\n## `_get`",
"Get and return data from the API.",
" :returns: A str, list, or dict, depending on the input values and API data.\n<END>",
"<BEGIN>\n## `backscatter`",
"Returns possible backscatter data.",
" This report only includes \"syn ack\" data and is summarized by source port.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the asnum API.
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 asnum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a summary of the information our database holds for a
particular ASNUM (similar to /asdetailsascii.html) with return limit.
:param limit: number of records to be returned (max 2000) | "Returns a summary of the information our database holds for a\n particular ASNUM (similar to /asdetailsascii.html) with return limit.\n\n :param limit: number of records to be returned (max 2000)" | 52 | false | rshipp/python-dshield | asnum | 30,028 | |
LDU_FT/toastdriven/alligator/get_connection | LDU_FT | [
"<BEGIN>\n## `run_forever`",
"Causes the worker to run either forever or until the\n ``Worker.max_tasks`` are reached.\n<END>",
"<BEGIN>\n## `to_call`",
"Sets the function & its arguments to be called when the task is\n processed.",
" Ex::",
" task.to_call(my_function, 1, '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_connection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns a ``StrictRedis`` connection instance. | "Returns a ``StrictRedis`` connection instance." | 181 | false | toastdriven/alligator | get_connection | 30,029 | |
LDU_FT/rosshamish/hexgrid/direction_to_tile | LDU_FT | [
"<BEGIN>\n## `location`",
"Returns a formatted string representing the coordinate. The format depends on the\n coordinate type.",
" Tiles look like: 1, 12\n Nodes look like: (1 NW), (12 S)\n Edges look like: (1 NW), (12 SE)",
" :param hexgrid_type: hexgrid.TILE, hexgrid.NODE, hexgrid.EDGE\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direction_to_tile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the direction_to_tile API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Convenience method wrapping tile_tile_offset_to_direction. Used to get the direction
of the offset between two tiles. The tiles must be adjacent.
:param from_tile_id: tile identifier, int
:param to_tile_id: tile identifier, int
:return: direction from from_tile to to_tile, str | "Convenience method wrapping tile_tile_offset_to_direction. Used to get the direction\n of the offset between two tiles. The tiles must be adjacent.\n\n :param from_tile_id: tile identifier, int\n :param to_tile_id: tile identifier, int\n :return: direction from from_tile to to_tile, str" | 49 | false | rosshamish/hexgrid | direction_to_tile | 30,030 | |
LDU_FT/yahoo/TensorFlowOnSpark/ProcessXMLAnnotation | LDU_FT | [
"<BEGIN>\n## `start`",
"Create a new multiprocess.Manager (or return existing one).",
" Args:\n :authkey: string authorization key\n :queues: *INTERNAL_USE*\n :mode: 'local' indicates that the manager will only be accessible from the same host, otherwise remotely accessible.",
" Returns:\n A TFM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ProcessXMLAnnotation 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 ProcessXMLAnnotation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Process a single XML file containing a bounding box. | "Process a single XML file containing a bounding box." | 483 | false | yahoo/TensorFlowOnSpark | ProcessXMLAnnotation | 30,031 | |
LDU_FT/ConsenSys/mythril-classic/minimize | LDU_FT | [
"<BEGIN>\n## `_get_account`",
"Get account by address.",
" :param address:\n :return:\n<END>",
"<BEGIN>\n## `_get_block_hash`",
"Get block hash by block number.",
" :param number:\n :return:\n<END>",
"<BEGIN>\n## `_get_head_block`",
"Get head block header.",
" :ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the minimize API.
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 minimize API.
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... | In solving this solver will try to minimize the passed expression.
:param element: | "In solving this solver will try to minimize the passed expression.\n\n :param element:" | 376 | false | ConsenSys/mythril-classic | minimize | 30,032 | |
LDU_FT/IntegralDefense/urlfinderlib/_tokenize | LDU_FT | [
"<BEGIN>\n## `_tokenize`",
"This function tokenizes the input bytes based on some common characters. It returns\n the tokens in ASCII format.\n<END>",
"<BEGIN>\n## `_ascii_find_urls`",
"This function finds URLs inside of ASCII bytes.\n<END>",
"<BEGIN>\n## `_html_find_urls`",
"This function finds UR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _tokenize API.
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 _tokenize API.
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... | This function tokenizes the input bytes based on some common characters. It returns
the tokens in ASCII format. | "This function tokenizes the input bytes based on some common characters. It returns\n the tokens in ASCII format." | 15 | false | IntegralDefense/urlfinderlib | _tokenize | 30,033 | |
LDU_FT/nitmir/django-cas-server/common | LDU_FT | [
"<BEGIN>\n## `clean_deleted_sessions`",
"remove old :class:`FederateSLO` object for which the session do not exists anymore\n<END>",
"<BEGIN>\n## `send_mails`",
"For each new django-cas-server version, if the current instance is not up to date\n send one mail to ``settings.ADMINS``.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the common API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Common part execute uppon GET and POST request
:return:
* The returned value of :meth:`authenticated` if the user is authenticated and
not requesting for authentication or if the authentication has just been renewed
* The returned value of :meth:`not_authen... | "Common part execute uppon GET and POST request\n\n :return:\n * The returned value of :meth:`authenticated` if the user is authenticated and\n not requesting for authentication or if the authentication has just been renewed\n * The returned value of :meth:`not_... | 182 | false | nitmir/django-cas-server | common | 30,034 | |
LDU_FT/gouthambs/Flask-Blogging/_serialise_posts_and_tags_from_joined_rows | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Initialize the engine.",
" :param app: The app to use\n :type app: Object\n :param storage: The blog storage instance that implements the\n :type storage: Object\n :param cache: (Optional) A Flask-Cache object to enable caching\n :type cache: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialise_posts_and_tags_from_joined_rows API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialise_posts_and_tags_from_joined_rows API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indic... | Translates multiple rows of joined post and tag information
into the dictionary format expected by flask-blogging.
There will be one row per post/tag pairing. | "Translates multiple rows of joined post and tag information\n into the dictionary format expected by flask-blogging.\n There will be one row per post/tag pairing." | 53 | false | gouthambs/Flask-Blogging | _serialise_posts_and_tags_from_joined_rows | 30,035 | |
LDU_FT/wikimedia/ores/build_v2_context_model_map | LDU_FT | [
"<BEGIN>\n## `redis_from_url`",
"Converts a redis URL used by celery into a `redis.Redis` object.\n<END>",
"<BEGIN>\n## `process_model_scores`",
"Generates a score map for a set of models based on a `root_cache`.\n This method performs no substantial IO, but may incur substantial CPU\n usage.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_v2_context_model_map 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 build_v2_context_model_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | {
"scores": {
"<context>": {
"<model_name>": {
"version": "<model_version>",
"info": <model_info>
}
},
"<context>": {
"<model_name>": {
"version": "<model_version>",
... | "{\n \"scores\": {\n \"<context>\": {\n \"<model_name>\": {\n \"version\": \"<model_version>\",\n \"info\": <model_info>\n }\n },\n \"<context>\": {\n \"<model_name>\": {\n \"ver... | 52 | false | wikimedia/ores | build_v2_context_model_map | 30,036 | |
LDU_FT/limpyd/redis-limpyd-extensions/_delete_dynamic_versions | LDU_FT | [
"<BEGIN>\n## `get_name_for`",
"Return the name for the current dynamic field, accepting a limpyd\n instance for the dynamic part\n<END>",
"<BEGIN>\n## `_attach_to_model`",
"Check that the model can handle dynamic fields\n<END>",
"<BEGIN>\n## `pattern`",
"Return the pattern used to check if a field ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete_dynamic_versions 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 _delete_dynamic_versions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Call the `delete` method of all dynamic versions of the current field
found in the inventory then clean the inventory. | "Call the `delete` method of all dynamic versions of the current field\n found in the inventory then clean the inventory." | 46 | false | limpyd/redis-limpyd-extensions | _delete_dynamic_versions | 30,037 | |
LDU_FT/dropbox/pyannotate/argument_kind | LDU_FT | [
"<BEGIN>\n## `parse_json`",
"Deserialize a JSON file containing runtime collected types.",
" The input JSON is expected to to have a list of RawEntry items.\n<END>",
"<BEGIN>\n## `tokenize`",
"Translate a type comment into a list of tokens.\n<END>",
"<BEGIN>\n## `generate_annotations_json_string`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the argument_kind API.
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 argument_kind API.
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 the kind of an argument, based on one or more descriptions of the argument.
Return None if every item does not have the same kind. | "Return the kind of an argument, based on one or more descriptions of the argument.\n\n Return None if every item does not have the same kind." | 93 | false | dropbox/pyannotate | argument_kind | 30,038 | |
LDU_FT/pbrod/numdifftools/_complex_even | LDU_FT | [
"<BEGIN>\n## `approx_fprime`",
"Gradient of function, or Jacobian if function fun returns 1d array",
" Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _complex_even API.
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 _complex_even API.
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... | Calculate Hessian with complex-step derivative approximation
The stepsize is the same for the complex and the finite difference part | "Calculate Hessian with complex-step derivative approximation\n\n The stepsize is the same for the complex and the finite difference part" | 107 | false | pbrod/numdifftools | _complex_even | 30,039 | |
LDU_FT/ambitioninc/django-query-builder/count | LDU_FT | [
"<BEGIN>\n## `get_sql`",
"Generates the JOIN sql for the join tables and join condition",
" :rtype: str\n :return: the JOIN sql for the join tables and join condition\n<END>",
"<BEGIN>\n## `set_left_table`",
"Sets the left table for this join clause. If no table is specified, the first table\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count API.
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 count API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns a COUNT of the query by wrapping the query and performing a COUNT
aggregate of the specified field
:param field: the field to pass to the COUNT aggregate. Defaults to '*'
:type field: str
:return: The number of rows that the query will return
:rtype: int | "Returns a COUNT of the query by wrapping the query and performing a COUNT\n aggregate of the specified field\n\n :param field: the field to pass to the COUNT aggregate. Defaults to '*'\n :type field: str\n\n :return: The number of rows that the query will return\n :rtype: int" | 251 | false | ambitioninc/django-query-builder | count | 30,040 | |
LDU_FT/majerteam/sqla_inspect/_get_formatted_val | LDU_FT | [
"<BEGIN>\n## `get_info_field`",
"Return the info attribute of the given property\n<END>",
"<BEGIN>\n## `add_formatter`",
"Add a formatter to the registry\n if key_specific is provided, this formatter will only be used for some\n specific exports\n<END>",
"<BEGIN>\n## `render`",
"Write to the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_formatted_val 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_formatted_val 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 formatted value of the attribute "attribute" of the obj "obj"
regarding the column's description
:param obj obj: The instance we manage
:param str attribute: The string defining the path to access the end
attribute we want to manage
:param dict column: The column desc... | "Return the formatted value of the attribute \"attribute\" of the obj \"obj\"\n regarding the column's description\n\n :param obj obj: The instance we manage\n :param str attribute: The string defining the path to access the end\n attribute we want to manage\n :param dict column: The ... | 132 | false | majerteam/sqla_inspect | _get_formatted_val | 30,041 | |
LDU_FT/pyviz/param/inspect_value | LDU_FT | [
"<BEGIN>\n## `get_setup_version`",
"Helper for use in setup.py to get the current version from either\n git describe or the .version file (if available).",
" Set pkgname to the package name if it is different from the\n repository name.",
" To ensure git information is included in a git archive, a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_value API.
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 inspect_value API.
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 the current value of the named attribute without modifying it.
Same as getattr() except for Dynamic parameters, which have their
last generated value returned. | "Return the current value of the named attribute without modifying it.\n\n Same as getattr() except for Dynamic parameters, which have their\n last generated value returned." | 258 | false | pyviz/param | inspect_value | 30,042 | |
LDU_FT/glormph/msstitch/set_feature_generator | LDU_FT | [
"<BEGIN>\n## `parse_input`",
"Build peptide table has no input file (though it has a lookup),\n which is why we set it to outfile name so the infile fetching\n and outfile creating wont error.\n<END>",
"<BEGIN>\n## `set_feature_generator`",
"Generates proteins with quant from the lookup table\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_feature_generator 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 set_feature_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generates proteins with quant from the lookup table | "Generates proteins with quant from the lookup table" | 233 | false | glormph/msstitch | set_feature_generator | 30,043 | |
LDU_FT/hfaran/piazza-api/user_login | LDU_FT | [
"<BEGIN>\n## `user_login`",
"Login with email, password and get back a session cookie",
" :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication\n<END>",
"<BEGIN>\n## `demo_login`",
"Authe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_login API.
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 user_login API.
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... | Login with email, password and get back a session cookie
:type email: str
:param email: The email used for authentication
:type password: str
:param password: The password used for authentication | "Login with email, password and get back a session cookie\n\n :type email: str\n :param email: The email used for authentication\n :type password: str\n :param password: The password used for authentication" | 100 | false | hfaran/piazza-api | user_login | 30,044 | |
LDU_FT/getsentry/raven-python/extract_auth_vars | LDU_FT | [
"<BEGIN>\n## `async_send`",
"Spawn an async request to a remote webserver.\n<END>",
"<BEGIN>\n## `send`",
"Sends a request to a remote webserver using HTTP POST.\n<END>",
"<BEGIN>\n## `extract_auth_vars`",
"raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_auth_vars API.
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 extract_auth_vars API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | raven-js will pass both Authorization and X-Sentry-Auth depending on the browser
and server configurations. | "raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server configurations." | 126 | false | getsentry/raven-python | extract_auth_vars | 30,045 | |
LDU_FT/ionelmc/python-cogen/process | LDU_FT | [
"<BEGIN>\n## `run_op`",
"Handle the operation:",
" * if coro is in STATE_RUNNING, send or throw the given op\r",
" * if coro is in STATE_NEED_INIT, call the init function and if it\r\n doesn't return a generator, set STATE_COMPLETED and set the result\r\n to whatever the functi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process API.
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 process API.
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... | Add the calling coro in a waiting for signal queue. | "Add the calling coro in a waiting for signal queue." | 175 | false | ionelmc/python-cogen | process | 30,046 | |
LDU_FT/ellmetha/django-machina/get_success_url | LDU_FT | [
"<BEGIN>\n## `recurseforumcontents`",
"Iterates over the content nodes and renders the contained forum block for each node.\n<END>",
"<BEGIN>\n## `forum_list`",
"Renders the considered forum list.",
" This will render the given list of forums by respecting the order and the depth of each\n forum in th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_success_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_success_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Returns the URL to redirect the user to upon valid form processing. | "Returns the URL to redirect the user to upon valid form processing." | 293 | false | ellmetha/django-machina | get_success_url | 30,047 | |
LDU_FT/hhromic/python-oslom-runner/run | LDU_FT | [
"<BEGIN>\n## `run_in_memory`",
"Run OSLOM with an in-memory list of edges, return in-memory results.\n<END>",
"<BEGIN>\n## `main`",
"Main interface function for the command line.\n<END>",
"<BEGIN>\n## `get_int_id`",
"Get a unique 32 bits signed integer for the given string Id.\n<END>",
"<BEGIN>\n## `sto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run OSLOM and wait for the process to finish. | "Run OSLOM and wait for the process to finish." | 16 | false | hhromic/python-oslom-runner | run | 30,048 | |
LDU_FT/Venti-/pubcode/_validate_charset | LDU_FT | [
"<BEGIN>\n## `width`",
"Return the barcodes width in modules for a given data and character set combination.",
" :param add_quiet_zone: Whether quiet zone should be included in the width.",
" :return: Width of barcode in modules, which for images translates to pixels.\n<END>",
"<BEGIN>\n## `_v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_charset API.
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 _validate_charset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Validate that the charset is correct and throw an error if it isn't. | "Validate that the charset is correct and throw an error if it isn't." | 30 | false | Venti-/pubcode | _validate_charset | 30,049 | |
LDU_FT/guaix-ucm/pyemir/median_spectrum_from_rectified_image | LDU_FT | [
"<BEGIN>\n## `merge2images`",
"Merge 2 EMIR images, averaging the common region.",
" Parameters\n ----------\n hdu1 : HDUList object\n Input image #1.\n hdu2 : HDUList object\n Input image #2.\n debugplot : int\n Determines whether intermediate computations and/or plots\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the median_spectrum_from_rectified_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the median_spectrum_from_rectified_image API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Median spectrum and line peaks from rectified image.
In order to avoid the line ghosts, the line peaks are identified
independently in the upper and lower halves of the rectified
image. The final peaks correspond to lines that appear in both
spectra.
Parameters
--------... | "Median spectrum and line peaks from rectified image.\n\n In order to avoid the line ghosts, the line peaks are identified\n independently in the upper and lower halves of the rectified\n image. The final peaks correspond to lines that appear in both\n spectra.\n\n Parameters\n ... | 282 | false | guaix-ucm/pyemir | median_spectrum_from_rectified_image | 30,050 | |
LDU_FT/Nukesor/pueue/read | LDU_FT | [
"<BEGIN>\n## `clean`",
"Clean queue items from a previous session.",
" In case a previous session crashed and there are still some running\n entries in the queue ('running', 'stopping', 'killing'), we clean those\n and enqueue them again.\n<END>",
"<BEGIN>\n## `clear`",
"Remove all comp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Read the queue of the last pueue session or set `self.queue = {}`. | "Read the queue of the last pueue session or set `self.queue = {}`." | 104 | false | Nukesor/pueue | read | 30,051 | |
LDU_FT/Cadasta/django-tutelary/has_permission | LDU_FT | [
"<BEGIN>\n## `permission_required`",
"Permission checking decorator -- works like the\n ``permission_required`` decorator in the default Django\n authentication system, except that it takes a sequence of actions\n to check, an object must be supplied, and the user must have\n permission to perform all... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_permission API.
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_permission API.
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... | Permission checking for "normal" Django. | "Permission checking for \"normal\" Django." | 50 | false | Cadasta/django-tutelary | has_permission | 30,052 | |
LDU_FT/dottedmag/pychm/GetEncoding | LDU_FT | [
"<BEGIN>\n## `LoadCHM`",
"Loads a CHM archive.\n This function will also call GetArchiveInfo to obtain information\n such as the index file name and the topics file. It returns 1 on\n success, and 0 if it fails.\n<END>",
"<BEGIN>\n## `CloseCHM`",
"Closes the CHM archive.\n This fun... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetEncoding API.
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 GetEncoding API.
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... | Returns a string that can be used with the codecs python package
to encode or decode the files in the chm archive. If an error is
found, or if it is not possible to find the encoding, None is
returned. | "Returns a string that can be used with the codecs python package\n to encode or decode the files in the chm archive. If an error is\n found, or if it is not possible to find the encoding, None is\n returned." | 24 | false | dottedmag/pychm | GetEncoding | 30,053 | |
LDU_FT/cytoscape/py2cytoscape/getMapping | LDU_FT | [
"<BEGIN>\n## `to_networkx`",
"Return this network in NetworkX graph object.",
" :return: Network as NetworkX graph object\n<END>",
"<BEGIN>\n## `to_dataframe`",
"Return this network in pandas DataFrame.",
" :return: Network as DataFrame. This is equivalent to SIF.\n<END>",
"<BEGIN>\n## `a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getMapping API.
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 getMapping API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns the Visual Mapping assigned to the Visual Property specified by the `name` and `vp` parameters.
The types of mapping available in Cytoscape are explained in depth [here](http://manual.cytoscape.org/en/stable/Styles.html#how-mappings-work). An example of the data format for each is included belo... | "Returns the Visual Mapping assigned to the Visual Property specified by the `name` and `vp` parameters.\n \n The types of mapping available in Cytoscape are explained in depth [here](http://manual.cytoscape.org/en/stable/Styles.html#how-mappings-work). An example of the data format for each is included b... | 598 | false | cytoscape/py2cytoscape | getMapping | 30,054 | |
LDU_FT/riquito/richinput/detect | LDU_FT | [
"<BEGIN>\n## `get_rich_char`",
"Iterator that returns the next meaningful input given to a terminal,\n whenever a key is pressed.\n `term` is an instance of terminfo.Term, needed to understand what the\n escape sequences mean.",
" The yielded value will be one of\n - PrintableChar\n - ControlK... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the detect API.
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 detect API.
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 ... | str_params = '%(%' + \
r'|[-+*/m&\|cisl^=><AO!~]|p[1-9]|[Pg][a-zA-Z]' + \
r'|((:?[-+# ])?([0-9]+(\.[0-9]+)?)?[doxXs])' + \
r"|('c'|\{[0-9]+\})" + \
r"|(\?.*?;)" + \
')' | "str_params = '%(%' + \\\n r'|[-+*/m&\\|cisl^=><AO!~]|p[1-9]|[Pg][a-zA-Z]' + \\\n r'|((:?[-+# ])?([0-9]+(\\.[0-9]+)?)?[doxXs])' + \\\n r\"|('c'|\\{[0-9]+\\})\" + \\\n r\"|(\\?.*?;)\" + \\\n ')'" | 17 | false | riquito/richinput | detect | 30,055 | |
LDU_FT/fananimi/pyzk/delete_user | LDU_FT | [
"<BEGIN>\n## `make_commkey`",
"take a password and session_id and scramble them to send to the machine.\n copied from commpro.c - MakeKey\n<END>",
"<BEGIN>\n## `__create_tcp_top`",
"witch the complete packet set top header\n<END>",
"<BEGIN>\n## `__create_header`",
"Puts a the parts that make up a packe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_user API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | delete specific user by uid or user_id
:param uid: user ID that are generated from device
:param user_id: your own user ID
:return: bool | "delete specific user by uid or user_id\n\n :param uid: user ID that are generated from device\n :param user_id: your own user ID\n :return: bool" | 77 | false | fananimi/pyzk | delete_user | 30,056 | |
LDU_FT/sassoftware/saspy/phreg | LDU_FT | [
"<BEGIN>\n## `submit`",
"This method is used to submit any SAS code. It returns the Log and Listing as a python dictionary.",
" - code - the SAS statements you want to execute\n - results - format of results. 'HTML' by default, alternatively 'TEXT'\n - prompt - dict of names:flags to pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the phreg API.
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 phreg API.
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... | Python method to call the PHREG procedure
Documentation link:
https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statug_phreg_syntax.htm&locale=en
:param data: SASdata object or string. This parameter is required.
:parm assess: The assess ... | "Python method to call the PHREG procedure\n\n Documentation link:\n https://go.documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=statug&docsetTarget=statug_phreg_syntax.htm&locale=en\n\n :param data: SASdata object or string. This parameter is required.\n :parm assess: The ... | 469 | false | sassoftware/saspy | phreg | 30,057 | |
LDU_FT/scott-griffiths/bitstring/equal | LDU_FT | [
"<BEGIN>\n## `offsetcopy`",
"Return a copy of a ByteStore with the newoffset.",
" Not part of public interface.\n<END>",
"<BEGIN>\n## `equal`",
"Return True if ByteStores a == b.",
" Not part of public interface.\n<END>",
"<BEGIN>\n## `structparser`",
"Parse struct-like format string token into ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the equal API.
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 equal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return True if ByteStores a == b.
Not part of public interface. | "Return True if ByteStores a == b.\n\n Not part of public interface." | 251 | false | scott-griffiths/bitstring | equal | 30,058 | |
LDU_FT/stbraun/fuzzing/step_impl07 | LDU_FT | [
"<BEGIN>\n## `step_impl03`",
"Check assertions.",
" :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl`",
"Check assertions.",
" :param max_modified: maximum expected number of modifications.\n :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl06`",
"Execute fuzzer.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the step_impl07 API.
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 step_impl07 API.
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... | Check assertions.
:param len_list: expected number of variants.
:param context: test context. | "Check assertions.\n\n :param len_list: expected number of variants.\n :param context: test context." | 79 | false | stbraun/fuzzing | step_impl07 | 30,059 | |
LDU_FT/nickoala/telepot/sendPhoto | LDU_FT | [
"<BEGIN>\n## `answer`",
"Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sendPhoto API.
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 sendPhoto API.
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... | See: https://core.telegram.org/bots/api#sendphoto
:param photo:
- string: ``file_id`` for a photo existing on Telegram servers
- string: HTTP URL of a photo from the Internet
- file-like object: obtained by ``open(path, 'rb')``
- tuple: (filename, file-like objec... | "See: https://core.telegram.org/bots/api#sendphoto\n\n :param photo:\n - string: ``file_id`` for a photo existing on Telegram servers\n - string: HTTP URL of a photo from the Internet\n - file-like object: obtained by ``open(path, 'rb')``\n - tuple: (filename, file-lik... | 312 | false | nickoala/telepot | sendPhoto | 30,060 | |
LDU_FT/sony/nnabla/load_parameters | LDU_FT | [
"<BEGIN>\n## `convert`",
"All functions are replaced with the same `new` function.",
" Args:\n vroot (:obj:`Variable`): NNabla Variable\n entry_variables (:obj:`Variable`): Entry variable from which the conversion starts.\n<END>",
"<BEGIN>\n## `convert`",
"All functions are repl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_parameters API.
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 load_parameters API.
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... | Load parameters from a file with the specified format.
Args:
path : path or file object | "Load parameters from a file with the specified format.\n\n Args:\n path : path or file object" | 870 | false | sony/nnabla | load_parameters | 30,061 | |
LDU_FT/mdsol/rwslib/build | LDU_FT | [
"<BEGIN>\n## `format_date_argument`",
"Take a date as either a datetime.date/datetime or a string and return it as a iso8601 formatted value\n :param Union[datetime.date, datetime.datetime] date_element: passed argument\n :rtype str\n :return:\n<END>",
"<BEGIN>\n## `dataset`",
"Qualify the dataset_na... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build API.
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 build API.
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... | Build XML by appending to builder
:Example:
<StudyEventData StudyEventOID="SCREENING" StudyEventRepeatKey="1" TransactionType="Update"> | "Build XML by appending to builder\n :Example:\n <StudyEventData StudyEventOID=\"SCREENING\" StudyEventRepeatKey=\"1\" TransactionType=\"Update\">" | 120 | false | mdsol/rwslib | build | 30,062 | |
LDU_FT/inveniosoftware-contrib/invenio-classifier/get_keywords_from_text | LDU_FT | [
"<BEGIN>\n## `get_acronyms`",
"Find acronyms and expansions from the fulltext.",
" If needed, acronyms can already contain a dictionary of previously found\n acronyms that will be merged with the current results.\n<END>",
"<BEGIN>\n## `_add_expansion_to_acronym_dict`",
"Add an acronym to the dictiona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keywords_from_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_keywords_from_text API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Extract keywords from the list of strings.
:param text_lines: list of strings (will be normalized before being
joined into one string)
:param taxonomy_name: string, name of the taxonomy_name
:param output_mode: string - text|html|marcxml|raw
:param output_limit: int
:param spires: boolean, ... | "Extract keywords from the list of strings.\n\n :param text_lines: list of strings (will be normalized before being\n joined into one string)\n :param taxonomy_name: string, name of the taxonomy_name\n :param output_mode: string - text|html|marcxml|raw\n :param output_limit: int\n :param spires: b... | 178 | false | inveniosoftware-contrib/invenio-classifier | get_keywords_from_text | 30,063 | |
LDU_FT/elsampsa/valkka-live/flags | LDU_FT | [
"<BEGIN>\n## `run`",
"After the fork. Now the process starts running\n<END>",
"<BEGIN>\n## `preRun_`",
"Create the shared memory client immediately after fork\n<END>",
"<BEGIN>\n## `run`",
"After the fork. Now the process starts running\n<END>",
"<BEGIN>\n## `activate_`",
"Shared mem info is given. N... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flags API.
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 flags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Returns the item flags for the given index. | "Returns the item flags for the given index." | 135 | false | elsampsa/valkka-live | flags | 30,064 | |
LDU_FT/portfors-lab/sparkle/setComponents | LDU_FT | [
"<BEGIN>\n## `purgeDeletedWidgets`",
"Finds old references to stashed fields and deletes them\n<END>",
"<BEGIN>\n## `set_calibration`",
"See :meth:`AbstractAcquisitionRunner<sparkle.run.abstract_acquisition.AbstractAcquisitionRunner.set_calibration>`\n<END>",
"<BEGIN>\n## `set_current_stim_parameter`",
"S... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setComponents API.
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 setComponents API.
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... | Clears and sets the components contained in this widget
:param components: list of documentation for subclasses of AbStractStimulusComponents
:type Components: list<dict> | "Clears and sets the components contained in this widget\n\n :param components: list of documentation for subclasses of AbStractStimulusComponents\n :type Components: list<dict>" | 834 | false | portfors-lab/sparkle | setComponents | 30,065 | |
LDU_FT/gbiggs/rtsprofile/save_xml | LDU_FT | [
"<BEGIN>\n## `parse_xml_node`",
"Parse an xml.dom Node object representing a message sending object\n into this object.\n<END>",
"<BEGIN>\n## `parse_yaml`",
"Parse a YAML speficication of a message sending object into this\n object.\n<END>",
"<BEGIN>\n## `save_xml`",
"Save this message_sendi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_xml API.
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 save_xml API.
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... | Save this location into an xml.dom.Element object. | "Save this location into an xml.dom.Element object." | 166 | false | gbiggs/rtsprofile | save_xml | 30,066 | |
LDU_FT/bapakode/OmMongo/validate_wrap | LDU_FT | [
"<BEGIN>\n## `setdefault`",
"if the ``name`` is set, return its value. Otherwse set ``name`` to\n ``value`` and return ``value``\n<END>",
"<BEGIN>\n## `ascending`",
"Add a descending index for ``name`` to this index.",
" :param name: Name to be used in the index\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_wrap API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_wrap API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Checks that the type of ``value`` is correct as well as validating
the elements of value | "Checks that the type of ``value`` is correct as well as validating\n the elements of value" | 248 | false | bapakode/OmMongo | validate_wrap | 30,067 | |
LDU_FT/inspirehep/inspire-schemas/add_native_name | LDU_FT | [
"<BEGIN>\n## `filter_empty_parameters`",
"Decorator that is filtering empty parameters.",
" :param func: function that you want wrapping\n :type func: function\n<END>",
"<BEGIN>\n## `author_id_normalize_and_schema`",
"Detect and normalize an author UID schema.",
" Args:\n uid (string): a U... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_native_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_native_name API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Add native name.
Args:
:param name: native name for the current author.
:type name: string | "Add native name.\n\n Args:\n :param name: native name for the current author.\n :type name: string" | 290 | false | inspirehep/inspire-schemas | add_native_name | 30,068 | |
LDU_FT/aerkalov/ebooklib/write_epub | LDU_FT | [
"<BEGIN>\n## `write_epub`",
"Creates epub file with the content defined in EpubBook.",
" >>> ebooklib.write_epub('book.epub', book)",
" :Args:\n - name: file name for the output file\n - book: instance of EpubBook\n - options: extra opions as dictionary (optional)\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_epub API.
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 write_epub API.
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... | Creates epub file with the content defined in EpubBook.
>>> ebooklib.write_epub('book.epub', book)
:Args:
- name: file name for the output file
- book: instance of EpubBook
- options: extra opions as dictionary (optional) | "Creates epub file with the content defined in EpubBook.\n\n >>> ebooklib.write_epub('book.epub', book)\n\n :Args:\n - name: file name for the output file\n - book: instance of EpubBook\n - options: extra opions as dictionary (optional)" | 66 | false | aerkalov/ebooklib | write_epub | 30,069 | |
LDU_FT/ericsomdahl/python-bittrex/get_order | LDU_FT | [
"<BEGIN>\n## `_api_query`",
"Queries Bittrex",
" :param request_url: fully-formed URL to request\n :type options: dict\n :return: JSON response from Bittrex\n :rtype : dict\n<END>",
"<BEGIN>\n## `get_market_summary`",
"Used to get the last 24 hour summary of all active\n e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extract... | Used to get details of buy or sell order
Endpoint:
1.1 /account/getorder
2.0 /key/orders/getorder
:param uuid: uuid of buy or sell order
:type uuid: str
:return:
:rtype : dict | "Used to get details of buy or sell order\n\n Endpoint:\n 1.1 /account/getorder\n 2.0 /key/orders/getorder\n\n :param uuid: uuid of buy or sell order\n :type uuid: str\n :return:\n :rtype : dict" | 58 | false | ericsomdahl/python-bittrex | get_order | 30,070 | |
LDU_FT/Microsoft/LightGBM/json_default_with_numpy | LDU_FT | [
"<BEGIN>\n## `check_dependicies`",
"Check the dynamic symbol versions.",
" Parameters\n ----------\n objdump_string : string\n The dynamic symbol table entries of the file (result of `objdump -T` command).\n<END>",
"<BEGIN>\n## `_objective_function_wrapper`",
"Decorate an objective function.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the json_default_with_numpy 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 json_default_with_numpy 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 numpy classes to JSON serializable objects. | "Convert numpy classes to JSON serializable objects." | 379 | false | Microsoft/LightGBM | json_default_with_numpy | 30,071 | |
LDU_FT/ianepperson/telnetsrvlib/inputcooker_store_queue | LDU_FT | [
"<BEGIN>\n## `inputcooker_store_queue`",
"Put the cooked data in the input queue (no locking needed)\n<END>",
"<BEGIN>\n## `streamserver_handle`",
"Translate this class for use in a StreamServer\n<END>",
"<BEGIN>\n## `check_channel_shell_request`",
"Request to start a shell on the given channel\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inputcooker_store_queue 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 inputcooker_store_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Put the cooked data in the input queue (no locking needed) | "Put the cooked data in the input queue (no locking needed)" | 45 | false | ianepperson/telnetsrvlib | inputcooker_store_queue | 30,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.