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/twisted/axiom/existingInStore | LDU_FT | [
"<BEGIN>\n## `upgradeProcessor1to2`",
"Batch processors stopped polling at version 2, so they no longer needed the\n idleInterval attribute. They also gained a scheduled attribute which\n tracks their interaction with the scheduler. Since they stopped polling,\n we also set them up as a timed event her... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the existingInStore API.
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 existingInStore API.
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... | Create and return a new instance from a row from the store. | "Create and return a new instance from a row from the store." | 479 | false | twisted/axiom | existingInStore | 31,973 | |
LDU_FT/titusz/epubcheck/validate | LDU_FT | [
"<BEGIN>\n## `validate`",
"Minimal validation.",
" :return bool: True if valid else False\n<END>",
"<BEGIN>\n## `create_parser`",
"Creat a commandline parser for epubcheck",
" :return Argumentparser:\n<END>",
"<BEGIN>\n## `main`",
"Command line app main function.",
" :param list | None argv... | 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... | Minimal validation.
:return bool: True if valid else False | "Minimal validation.\n\n :return bool: True if valid else False" | 20 | false | titusz/epubcheck | validate | 31,974 | |
LDU_FT/tjcsl/ion/is_almost_full | LDU_FT | [
"<BEGIN>\n## `student_visible`",
"Return a list of groups that are student-visible.\n<END>",
"<BEGIN>\n## `stdev`",
"r\"\"\"Calculate standard deviation of data x[]:\n std = sqrt(\\sum_i (x_i - mean)^2 \\over n-1)\n https://wiki.python.org/moin/NumericAndScientificRecipes\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_almost_full API.
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 is_almost_full API.
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 whether the activity is almost full (>90%). | "Return whether the activity is almost full (>90%)." | 407 | false | tjcsl/ion | is_almost_full | 31,975 | |
LDU_FT/ucsb-cs-education/hairball/output_results | LDU_FT | [
"<BEGIN>\n## `main`",
"The entrypoint for the hairball command installed via setup.py.\n<END>",
"<BEGIN>\n## `path_to_key`",
"Return the sha1sum (key) belonging to the file at filepath.\n<END>",
"<BEGIN>\n## `key_to_path`",
"Return the fullpath to the file with sha1sum key.\n<END>",
"<BEGIN>\n## `load`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_results API.
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 output_results API.
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... | Output whether or not each attribute was correctly initialized.
Attributes that were not modified at all are considered to be properly
initialized. | "Output whether or not each attribute was correctly initialized.\n\n Attributes that were not modified at all are considered to be properly\n initialized." | 90 | false | ucsb-cs-education/hairball | output_results | 31,976 | |
LDU_FT/openxc/openxc-python/get | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the latest measurement for the given class or None if nothing\n has been received from the vehicle.\n<END>",
"<BEGIN>\n## `add_source`",
"Add a vehicle data source to the instance.",
" The Vehicle instance will be set as the callback of the source, and the\n ... | 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... | Return the latest measurement for the given class or None if nothing
has been received from the vehicle. | "Return the latest measurement for the given class or None if nothing\n has been received from the vehicle." | 94 | false | openxc/openxc-python | get | 31,977 | |
LDU_FT/developersociety/django-glitter/_publish | LDU_FT | [
"<BEGIN>\n## `get_templates`",
"Return a list of templates usable by a model.\n<END>",
"<BEGIN>\n## `attach`",
"Registers the given layout(s) classes\n admin site:",
" @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>",
"<BEGIN>\n## `get_formset`",
"Default user to the cur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _publish API.
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 _publish API.
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... | Process a publish action on the related object, returns a boolean if a change is made.
Only objects where a version change is needed will be updated. | "Process a publish action on the related object, returns a boolean if a change is made.\n\n Only objects where a version change is needed will be updated." | 80 | false | developersociety/django-glitter | _publish | 31,978 | |
LDU_FT/aganezov/bg/merge | LDU_FT | [
"<BEGIN>\n## `add_edge`",
"Adds a new edge to the current tree with specified characteristics",
" Forbids addition of an edge, if a parent node is not present\n Forbids addition of an edge, if a child node already exists",
" :param node1_name: name of the parent node, to which an edge sha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Merges two given instances of :class`BreakpointGraph` into a new one, that gather all available information from both supplied objects.
Depending of a ``merge_edges`` flag, while merging of two dat structures is occurring, edges between similar vertices can be merged during the creation of a result :class`Brea... | "Merges two given instances of :class`BreakpointGraph` into a new one, that gather all available information from both supplied objects.\n\n Depending of a ``merge_edges`` flag, while merging of two dat structures is occurring, edges between similar vertices can be merged during the creation of a result :class`B... | 226 | false | aganezov/bg | merge | 31,979 | |
LDU_FT/maciejkula/glove-python/set_gcc | LDU_FT | [
"<BEGIN>\n## `read_analogy_file`",
"Read the analogy task test set from a file.\n<END>",
"<BEGIN>\n## `analogy_rank_score`",
"Calculate the analogy rank score for the given set of analogies.",
" A rank of zero denotes a perfect score; with random word vectors\n we would expect a rank of 0.5.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_gcc API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_gcc API.
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... | Try to find and use GCC on OSX for OpenMP support. | "Try to find and use GCC on OSX for OpenMP support." | 27 | false | maciejkula/glove-python | set_gcc | 31,980 | |
LDU_FT/awslabs/mxboard/add_histogram | LDU_FT | [
"<BEGIN>\n## `close`",
"Flushes the pending events and closes the writer after it is done.\n<END>",
"<BEGIN>\n## `reopen`",
"Reopens the EventFileWriter.\n Can be called after `close()` to add more events in the same directory.\n The events will go into a new events file.\n Does nothing i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_histogram API.
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 add_histogram API.
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... | Add histogram data to the event file.
Note: This function internally calls `asnumpy()` if `values` is an MXNet NDArray.
Since `asnumpy()` is a blocking function call, this function would block the main
thread till it returns. It may consequently affect the performance of async execution
... | "Add histogram data to the event file.\n\n Note: This function internally calls `asnumpy()` if `values` is an MXNet NDArray.\n Since `asnumpy()` is a blocking function call, this function would block the main\n thread till it returns. It may consequently affect the performance of async execution\n ... | 113 | false | awslabs/mxboard | add_histogram | 31,981 | |
LDU_FT/pyGrowler/Growler/path_split | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new prototype object with the argument as the source\n prototype.",
" .. Note:",
" This does not `initialize` the newly created object any\n more than setting its prototype.\n Calling the __init__ method is usually unnecessary as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_split API.
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 path_split API.
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... | Splits a path into the part matching this middleware and the part remaining.
If path does not exist, it returns a pair of None values.
If the regex matches the entire pair, the second item in returned tuple is None.
Args:
path (str): The url to split
Returns:
Tu... | "Splits a path into the part matching this middleware and the part remaining.\n If path does not exist, it returns a pair of None values.\n If the regex matches the entire pair, the second item in returned tuple is None.\n\n Args:\n path (str): The url to split\n\n Returns:\n ... | 203 | false | pyGrowler/Growler | path_split | 31,982 | |
LDU_FT/PyconUK/ConferenceScheduler/event_schedule_difference | LDU_FT | [
"<BEGIN>\n## `hill_climber`",
"Implement a basic hill climbing algorithm.",
" Has two stopping conditions:",
" 1. Maximum number of iterations;\n 2. A known lower bound, a none is passed then this is not used.",
" If acceptance_criteria (a callable) is not None then this is used to obtain\n a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_schedule_difference 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 event_schedule_difference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Compute the difference between two schedules from an event perspective
Parameters
----------
old_schedule : list or tuple
of :py:class:`resources.ScheduledItem` objects
new_schedule : list or tuple
of :py:class:`resources.ScheduledItem` objects
Returns
-------
list
... | "Compute the difference between two schedules from an event perspective\n\n\n Parameters\n ----------\n old_schedule : list or tuple\n of :py:class:`resources.ScheduledItem` objects\n new_schedule : list or tuple\n of :py:class:`resources.ScheduledItem` objects\n\n Returns\n -------\n ... | 127 | false | PyconUK/ConferenceScheduler | event_schedule_difference | 31,983 | |
LDU_FT/ynop/audiomate/total_duration | LDU_FT | [
"<BEGIN>\n## `load`",
"Load and return the corpus from the given path.",
" Args:\n path (str): Path to the data set to load.",
" Returns:\n Corpus: The loaded corpus",
" Raises:\n IOError: When the data set is invalid, for example because required files ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total_duration API.
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 total_duration API.
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 the total amount of audio summed over all utterances in the corpus in seconds. | "Return the total amount of audio summed over all utterances in the corpus in seconds." | 619 | false | ynop/audiomate | total_duration | 31,984 | |
LDU_FT/Garee/pytodoist/sync | LDU_FT | [
"<BEGIN>\n## `login`",
"Login to Todoist.",
" :param email: The user's email address.\n :type email: str\n :param password: The user's password.\n :type password: str\n :return: The HTTP response to the request.\n :rtype: :class:`requests.Response`",
" >>> from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
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 sync API.
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... | Synchronize the user's data with the Todoist server.
This function will pull data from the Todoist server and update the
state of the user object such that they match. It does not *push* data
to Todoist. If you want to do that use
:func:`pytodoist.todoist.User.update`.
:param r... | "Synchronize the user's data with the Todoist server.\n\n This function will pull data from the Todoist server and update the\n state of the user object such that they match. It does not *push* data\n to Todoist. If you want to do that use\n :func:`pytodoist.todoist.User.update`.\n\n ... | 237 | false | Garee/pytodoist | sync | 31,985 | |
LDU_FT/lotabout/pymustache/compiled | LDU_FT | [
"<BEGIN>\n## `lookup`",
"lookup the value of the var_name on the stack of contexts",
" :var_name: TODO\n :contexts: TODO\n :returns: None if not found\n<END>",
"<BEGIN>\n## `delimiters_to_re`",
"convert delimiters to corresponding regular expressions\n<END>",
"<BEGIN>\n## `is_standalone`",
"che... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compiled API.
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 compiled API.
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... | Compile a template into token tree
:template: TODO
:delimiters: TODO
:returns: the root token | "Compile a template into token tree\n\n :template: TODO\n :delimiters: TODO\n :returns: the root token" | 12 | false | lotabout/pymustache | compiled | 31,986 | |
LDU_FT/carlosp420/dataset-creator/_validate_outgroup | LDU_FT | [
"<BEGIN>\n## `split_data`",
"Splits the list of SeqRecordExpanded objects into lists, which are\n kept into a bigger list.",
" If the file_format is Nexus, then it is only partitioned by gene. If it\n is FASTA, then it needs partitioning by codon positions if required.",
" Example:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _validate_outgroup 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 _validate_outgroup 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... | All voucher codes in our datasets have dashes converted to underscores. | "All voucher codes in our datasets have dashes converted to underscores." | 54 | false | carlosp420/dataset-creator | _validate_outgroup | 31,987 | |
LDU_FT/romanvm/python-web-pdb/flush | LDU_FT | [
"<BEGIN>\n## `compress`",
"Compress route return data with gzip compression\n<END>",
"<BEGIN>\n## `set_trace`",
"Start the debugger",
" This method suspends execution of the current script\n and starts a PDB debugging session. The web-interface is opened\n on the specified port (default: ``5555``).... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the flush API.
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 flush API.
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... | Wait until history is read but no more than 10 cycles
in case a browser session is closed. | "Wait until history is read but no more than 10 cycles\n in case a browser session is closed." | 38 | false | romanvm/python-web-pdb | flush | 31,988 | |
LDU_FT/singularityhub/singularity-python/extract_guts | LDU_FT | [
"<BEGIN>\n## `get_template`",
"get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>",
"<BEGIN>\n## `container_similarity_vector`",
"container similarity_vector is similar to compare_packages, but intended\n to compare ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_guts API.
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 extract_guts API.
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 the file guts from an in memory tarfile. The file is not closed.
This should not be done for large images. | "extract the file guts from an in memory tarfile. The file is not closed.\n This should not be done for large images." | 135 | false | singularityhub/singularity-python | extract_guts | 31,989 | |
LDU_FT/marteinn/AtomicPress/_clean_post_content | LDU_FT | [
"<BEGIN>\n## `remove_dir`",
"Remove folder. Based on https://gist.github.com/artlogic/2632647.\n<END>",
"<BEGIN>\n## `generate_image_from_url`",
"Downloads and saves a image from url into a file.\n<END>",
"<BEGIN>\n## `get_months_apart`",
"Get amount of months between dates\n http://stackoverflow.com/a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _clean_post_content 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 _clean_post_content 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... | Replace import path with something relative to blog. | "Replace import path with something relative to blog." | 13 | false | marteinn/AtomicPress | _clean_post_content | 31,990 | |
LDU_FT/chrippa/ds4drv/write_event | LDU_FT | [
"<BEGIN>\n## `setup`",
"Check if the bluetooth controller is available.\n<END>",
"<BEGIN>\n## `find_device`",
"Scan for bluetooth devices and return a DS4 device if found.\n<END>",
"<BEGIN>\n## `start`",
"Starts the timer.",
" If the callback returns True the timer will be restarted.\n<END>",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_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 extra... | Writes a event to the device, if it has changed. | "Writes a event to the device, if it has changed." | 29 | false | chrippa/ds4drv | write_event | 31,991 | |
LDU_FT/QInfer/python-qinfer/est_update_covariance | LDU_FT | [
"<BEGIN>\n## `h`",
"r\"\"\"\n Returns the step size to be used in numerical differentiation with \n respect to the model parameters.",
" The step size is given as a vector with length ``n_modelparams`` so \n that each model parameter can be weighted independently.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the est_update_covariance 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 est_update_covariance API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns the covariance of the gaussian noise process for one
unit step. In the case where the covariance is being learned,
the expected covariance matrix is returned.
:param modelparams: Shape `(n_models, n_modelparams)` shape array
of model parameters. | "Returns the covariance of the gaussian noise process for one \n unit step. In the case where the covariance is being learned,\n the expected covariance matrix is returned.\n \n :param modelparams: Shape `(n_models, n_modelparams)` shape array\n of model parameters." | 362 | false | QInfer/python-qinfer | est_update_covariance | 31,992 | |
LDU_FT/hfaran/piazza-api/pin_post | 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 pin_post API.
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 pin_post API.
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... | Pin post
:type post: dict|str|int
:param post: Either the post dict returned by another API method, or
the `cid` field of that post.
:returns: True if it is successful. False otherwise | "Pin post\n\n :type post: dict|str|int\n :param post: Either the post dict returned by another API method, or\n the `cid` field of that post.\n :returns: True if it is successful. False otherwise" | 100 | false | hfaran/piazza-api | pin_post | 31,993 | |
LDU_FT/intiocean/pyinter/open | LDU_FT | [
"<BEGIN>\n## `_add`",
"Add a interval to the underlying IntervalSet data store. This does not perform any tests as we assume that\n any requirements have already been checked and that this function is being called by an internal function such\n as union(), intersection() or add().\n :param ot... | 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... | Helper function to construct an interval object with open lower and upper.
For example:
>>> open(100.2, 800.9)
(100.2, 800.9) | "Helper function to construct an interval object with open lower and upper.\n\n For example:\n\n >>> open(100.2, 800.9)\n (100.2, 800.9)" | 41 | false | intiocean/pyinter | open | 31,994 | |
LDU_FT/aichaos/rivescript-python/current_user | LDU_FT | [
"<BEGIN>\n## `format_message`",
"Format a user's message for safe processing.",
" This runs substitutions on the message and strips out any remaining\n symbols (depending on UTF-8 mode).",
" :param str msg: The user's message.\n :param bool botreply: Whether this formatting is bein... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the current_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 extr... | Retrieve the user ID of the current user talking to your bot.
This is mostly useful inside of a Python object macro to get the user
ID of the person who caused the object macro to be invoked (i.e. to
set a variable for that user from within the object).
This will return ``None`` if use... | "Retrieve the user ID of the current user talking to your bot.\n\n This is mostly useful inside of a Python object macro to get the user\n ID of the person who caused the object macro to be invoked (i.e. to\n set a variable for that user from within the object).\n\n This will return ``None``... | 218 | false | aichaos/rivescript-python | current_user | 31,995 | |
LDU_FT/DallasMorningNews/django-datafreezer/generate_matching_datasets | LDU_FT | [
"<BEGIN>\n## `clean`",
"Verifies that beginning date is before ending date.\n<END>",
"<BEGIN>\n## `get_success_url`",
"Ensure the user-originating redirection URL is safe.\n<END>",
"<BEGIN>\n## `form_valid`",
"Security check complete. Log the user in.\n<END>",
"<BEGIN>\n## `map_hubs_to_verticals`",
"R... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_matching_datasets 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 generate_matching_datasets API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Return datasets that match data_slug (tag). | "Return datasets that match data_slug (tag)." | 63 | false | DallasMorningNews/django-datafreezer | generate_matching_datasets | 31,996 | |
LDU_FT/ranaroussi/qtpylib/get_max_contracts_allowed | LDU_FT | [
"<BEGIN>\n## `load_cli_args`",
"Parse command line arguments and return only the non-default ones",
" :Retruns: dict\n a dict of any non-default args passed on the command-line.\n<END>",
"<BEGIN>\n## `run`",
"Starts the reporting module",
" Makes the dashboard web app available vi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_max_contracts_allowed 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_max_contracts_allowed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Get maximum contracts allowed to trade
baed on required margin per contract and
current account balance (futures only)
:Parameters:
overnight : bool
Calculate based on Overnight margin (set to ``False`` to use Intraday margin req.)
:Retruns:
cont... | "Get maximum contracts allowed to trade\n baed on required margin per contract and\n current account balance (futures only)\n\n :Parameters:\n overnight : bool\n Calculate based on Overnight margin (set to ``False`` to use Intraday margin req.)\n\n :Retruns:\n ... | 155 | false | ranaroussi/qtpylib | get_max_contracts_allowed | 31,997 | |
LDU_FT/resync/resync/delete_resource | LDU_FT | [
"<BEGIN>\n## `read`",
"Read sitemap from a URI including handling sitemapindexes.",
" If index_only is True then individual sitemaps references in a sitemapindex\n will not be read. This will result in no resources being returned and is\n useful only to read the metadata and links listed in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_resource API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Delete copy of resource in filename on local system.
Will only actually do the deletion if allow_deletion is True. Regardless
of whether the deletion occurs, self.last_timestamp will be updated
if the resource.timestamp is later than the current value.
Returns the number of files actua... | "Delete copy of resource in filename on local system.\n\n Will only actually do the deletion if allow_deletion is True. Regardless\n of whether the deletion occurs, self.last_timestamp will be updated\n if the resource.timestamp is later than the current value.\n\n Returns the number of file... | 322 | false | resync/resync | delete_resource | 31,998 | |
LDU_FT/kalefranz/auxlib/call_each | LDU_FT | [
"<BEGIN>\n## `import_and_wrap_deprecated`",
"Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>",
"<BEGIN>\n## `deprecate_module_with_proxy`",
"Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call_each API.
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 call_each API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Calls each element of sequence to invoke the side effect.
Args:
seq:
Returns: None | "Calls each element of sequence to invoke the side effect.\n\n Args:\n seq:\n\n Returns: None" | 107 | false | kalefranz/auxlib | call_each | 31,999 | |
LDU_FT/zulily/pudl/samaccountname | LDU_FT | [
"<BEGIN>\n## `group`",
"Produces a single, populated ADGroup object through the object factory.\n Does not populate attributes for the caller instance.",
" sAMAccountName may not be present in group objects in modern AD schemas.\n Searching by common name and object class (group) may be an ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the samaccountname API.
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 samaccountname API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Retrieve the sAMAccountName for a specific DistinguishedName
:param str base_dn: The base DN to search within
:param list distinguished_name: The base DN to search within
:param list attributes: Object attributes to populate, defaults to all
:return: A populated ADUser object
:... | "Retrieve the sAMAccountName for a specific DistinguishedName\n\n :param str base_dn: The base DN to search within\n :param list distinguished_name: The base DN to search within\n :param list attributes: Object attributes to populate, defaults to all\n\n :return: A populated ADUser object\n ... | 61 | false | zulily/pudl | samaccountname | 32,000 | |
LDU_FT/hammerlab/stanity/psisloo | LDU_FT | [
"<BEGIN>\n## `psisloo`",
"r\"\"\"PSIS leave-one-out log predictive densities.",
" Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the psisloo API.
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 psisloo API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | r"""PSIS leave-one-out log predictive densities.
Computes the log predictive densities given posterior samples of the log
likelihood terms :math:`p(y_i|\theta^s)` in input parameter `log_lik`.
Returns a sum of the leave-one-out log predictive densities `loo`,
individual leave-one-out log predictive den... | "r\"\"\"PSIS leave-one-out log predictive densities.\n\n Computes the log predictive densities given posterior samples of the log\n likelihood terms :math:`p(y_i|\\theta^s)` in input parameter `log_lik`.\n Returns a sum of the leave-one-out log predictive densities `loo`,\n individual leave-one-out log pred... | 46 | false | hammerlab/stanity | psisloo | 32,001 | |
LDU_FT/yoannMoreau/landsat_theia/search | LDU_FT | [
"<BEGIN>\n## `single_download`",
"Download single image from Landsat on Google Storage\n Arguments:\n row - string in this format xxx, e.g. 003\n path - string in this format xxx, e.g. 003\n name - zip file name without .tar.bz e.g. LT81360082013127LGN01\n sat_ty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
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 search API.
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 ... | The main method of Search class. It searches tTheia Landsat API
Returns python dictionary
Arguments:
start_date -- date string. format: YYYY-MM-DD
end_date -- date string. format: YYYY-MM-DD
limit -- integer specigying the maximum results return.
... | "The main method of Search class. It searches tTheia Landsat API\n Returns python dictionary\n \n Arguments:\n start_date -- date string. format: YYYY-MM-DD\n end_date -- date string. format: YYYY-MM-DD\n limit -- integer specigying the maximum results return.\n ... | 11 | false | yoannMoreau/landsat_theia | search | 32,002 | |
LDU_FT/user-cont/colin/layers_path | LDU_FT | [
"<BEGIN>\n## `run`",
"Runs the sanity checks for the target.",
" :param timeout: timeout per-check (in seconds)\n :param skips: name of checks to skip\n :param target: str (image name, ostree or dockertar)\n or ImageTarget\n or path/file-like object for dockerfile\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the layers_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the layers_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Directory with all the layers (docker save). | "Directory with all the layers (docker save)." | 114 | false | user-cont/colin | layers_path | 32,003 | |
LDU_FT/danpoland/pyramid-restful-framework/check_permissions | LDU_FT | [
"<BEGIN>\n## `parse_requested_expands`",
"Extracts the value of the expand query string parameter from a request.\n Supports comma separated lists.",
" :param query_key: The name query string parameter.\n :param request: Request instance.\n :return: List of strings representing the values of the exp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_permissions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Check if the request should be permitted.
Raises an appropriate exception if the request is not permitted.
:param request: Pyramid Request object. | "Check if the request should be permitted.\n Raises an appropriate exception if the request is not permitted.\n\n :param request: Pyramid Request object." | 70 | false | danpoland/pyramid-restful-framework | check_permissions | 32,004 | |
LDU_FT/jrabbit/hitman/growl | LDU_FT | [
"<BEGIN>\n## `put_a_hit_out`",
"Download a feed's most recent enclosure that we don't have\n<END>",
"<BEGIN>\n## `selective_download`",
"Note: RSS feeds are counted backwards, default newest is 0, the most recent.\n<END>",
"<BEGIN>\n## `resolve_name`",
"Takes a given input from a user and finds the url fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the growl API.
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 growl API.
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... | send native notifications where supported. Growl is gone. | "send native notifications where supported. Growl is gone." | 20 | false | jrabbit/hitman | growl | 32,005 | |
LDU_FT/aio-libs/aioredis/pattern | LDU_FT | [
"<BEGIN>\n## `create_sentinel`",
"Creates Redis Sentinel client.",
" `sentinels` is a list of sentinel nodes.\n<END>",
"<BEGIN>\n## `execute`",
"Execute Sentinel command.",
" It will be prefixed with SENTINEL automatically.\n<END>",
"<BEGIN>\n## `master`",
"Returns a dictionary containing th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pattern API.
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 pattern API.
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... | Create a pattern channel.
Returns ``_Sender`` object implementing
:class:`~aioredis.abc.AbcChannel`. | "Create a pattern channel.\n\n Returns ``_Sender`` object implementing\n :class:`~aioredis.abc.AbcChannel`." | 496 | false | aio-libs/aioredis | pattern | 32,006 | |
LDU_FT/smitchell556/cuttlepool/_get | LDU_FT | [
"<BEGIN>\n## `_get`",
"Get a resource from the pool. If timeout is ``None`` waits\n indefinitely.",
" :param timeout: Time in seconds to wait for a resource.\n :type timeout: int\n :return: A resource.\n :rtype: :class:`_ResourceTracker`",
" :raises PoolEmptyError: Wh... | 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... | Get a resource from the pool. If timeout is ``None`` waits
indefinitely.
:param timeout: Time in seconds to wait for a resource.
:type timeout: int
:return: A resource.
:rtype: :class:`_ResourceTracker`
:raises PoolEmptyError: When timeout has elapsed and unable to
... | "Get a resource from the pool. If timeout is ``None`` waits\n indefinitely.\n\n :param timeout: Time in seconds to wait for a resource.\n :type timeout: int\n :return: A resource.\n :rtype: :class:`_ResourceTracker`\n\n :raises PoolEmptyError: When timeout has elapsed and unabl... | 29 | false | smitchell556/cuttlepool | _get | 32,007 | |
LDU_FT/codito/pyqtkeybind/get_modifiers | LDU_FT | [
"<BEGIN>\n## `bind_global_key`",
"An alias for ``bind_key(event_type, ROOT_WINDOW, key_string, cb)``.\n :param event_type: Either 'KeyPress' or 'KeyRelease'.\n :type event_type: str\n :param key_string: A string of the form 'Mod1-Control-a'.\n Namely, a list of zero or more modifier... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_modifiers API.
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_modifiers API.
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... | Takes a ``state`` (typically found in key press or button press events)
and returns a string list representation of the modifiers that were pressed
when generating the event.
:param state: Typically from ``some_event.state``.
:return: List of modifier string representations.
:rtype: [str] | "Takes a ``state`` (typically found in key press or button press events)\n and returns a string list representation of the modifiers that were pressed\n when generating the event.\n\n :param state: Typically from ``some_event.state``.\n :return: List of modifier string representations.\n :rtype: [str]" | 56 | false | codito/pyqtkeybind | get_modifiers | 32,008 | |
LDU_FT/klavinslab/coral/breslauer_corrections | LDU_FT | [
"<BEGIN>\n## `sequence_type`",
"Validates a coral.sequence data type.",
" :param sequence_in: input DNA sequence.\n :type sequence_in: any\n :returns: The material - 'dna', 'rna', or 'peptide'.\n :rtype: str\n :raises: ValueError\n<END>",
"<BEGIN>\n## `pcr`",
"Simulate a PCR.",
" :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the breslauer_corrections 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 breslauer_corrections API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Sum corrections for Breslauer '84 method.
:param seq: sequence for which to calculate corrections.
:type seq: str
:param pars_error: dictionary of error corrections
:type pars_error: dict
:returns: Corrected delta_H and delta_S parameters
:rtype: list of floats | "Sum corrections for Breslauer '84 method.\n\n :param seq: sequence for which to calculate corrections.\n :type seq: str\n :param pars_error: dictionary of error corrections\n :type pars_error: dict\n :returns: Corrected delta_H and delta_S parameters\n :rtype: list of floats" | 364 | false | klavinslab/coral | breslauer_corrections | 32,009 | |
LDU_FT/sryza/spark-timeseries/datetime_at_loc | LDU_FT | [
"<BEGIN>\n## `fit_model`",
"Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the datetime_at_loc API.
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 datetime_at_loc API.
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 timestamp at the given integer location as a Pandas Timestamp. | "Returns the timestamp at the given integer location as a Pandas Timestamp." | 137 | false | sryza/spark-timeseries | datetime_at_loc | 32,010 | |
LDU_FT/user-cont/conu/list_pods | LDU_FT | [
"<BEGIN>\n## `clean`",
"remove the directory we operated on",
" :return: None\n<END>",
"<BEGIN>\n## `initialize`",
"create the directory if needed and configure it",
" :return: None\n<END>",
"<BEGIN>\n## `_set_selinux_context`",
"Set SELinux context or fields using chcon program. Raises ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_pods API.
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 list_pods API.
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... | List all available pods.
:param namespace: str, if not specified list pods for all namespaces
:return: collection of instances of :class:`conu.backend.k8s.pod.Pod` | "List all available pods.\n\n :param namespace: str, if not specified list pods for all namespaces\n :return: collection of instances of :class:`conu.backend.k8s.pod.Pod`" | 487 | false | user-cont/conu | list_pods | 32,011 | |
LDU_FT/savvastj/nbashots/get_game_id | LDU_FT | [
"<BEGIN>\n## `get_all_player_ids`",
"Returns a pandas DataFrame containing the player IDs used in the\n stats.nba.com API.",
" Parameters\n ----------\n ids : { \"shots\" | \"all_players\" | \"all_data\" }, optional\n Passing in \"shots\" returns a DataFrame that contains the player IDs of\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_game_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_game_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns the Game ID associated with the date that is passed in.
Parameters
----------
date : str
The date associated with the game whose Game ID. The date that is
passed in can take on a numeric format of MM/DD/YY (like "01/06/16"
or "01/06/2016") or the expa... | "Returns the Game ID associated with the date that is passed in.\n\n Parameters\n ----------\n date : str\n The date associated with the game whose Game ID. The date that is\n passed in can take on a numeric format of MM/DD/YY (like \"01/06/16\"\n or \"01/06/2016\")... | 77 | false | savvastj/nbashots | get_game_id | 32,012 | |
LDU_FT/ihgazni2/edict/show_vmatrix | LDU_FT | [
"<BEGIN>\n## `pipe_shell_cmds`",
"shell_CMDs = {}\n shell_CMDs[1] = 'netstat -n'\n shell_CMDs[2] = \"awk {'print $6'}\"\n<END>",
"<BEGIN>\n## `_reorder_via_klist`",
"d = {'scheme': 'http', 'path': '/index.php', 'params': 'params', 'query': 'username=query', 'fragment': 'frag', 'username': '', 'p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_vmatrix API.
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 show_vmatrix API.
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... | d = {1: {2: {22: 222}}, 3: {'a': 'b'}}
vm = [[[222]], ['b']]
show_vmatrix(vm) | "d = {1: {2: {22: 222}}, 3: {'a': 'b'}}\n vm = [[[222]], ['b']]\n show_vmatrix(vm)" | 71 | false | ihgazni2/edict | show_vmatrix | 32,013 | |
LDU_FT/astropy/regions/bounding_box | LDU_FT | [
"<BEGIN>\n## `ds9_objects_to_string`",
"Converts a `list` of `~regions.Region` to DS9 region string.",
" Parameters\n ----------\n regions : `list`\n List of `~regions.Region` objects\n coordsys : `str`, optional\n This overrides the coordinate system frame for all regions.\n De... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bounding_box API.
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 bounding_box API.
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... | The minimal bounding box (`~regions.BoundingBox`) enclosing the
exact elliptical region. | "The minimal bounding box (`~regions.BoundingBox`) enclosing the\n exact elliptical region." | 237 | false | astropy/regions | bounding_box | 32,014 | |
LDU_FT/Skyscanner/skyscanner-python-sdk/get_grid_prices_by_date | LDU_FT | [
"<BEGIN>\n## `get_additional_params`",
"Filter to get the additional params needed for polling\n<END>",
"<BEGIN>\n## `get_result`",
"Get all results, no filtering, etc. by creating and polling the\n session.\n<END>",
"<BEGIN>\n## `make_request`",
"Reusable method for performing requests.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_grid_prices_by_date 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_grid_prices_by_date API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | {API_HOST}/apiservices/browsegrid/v1.0/{market}/{currency}/{locale}/
{originPlace}/{destinationPlace}/
{outboundPartialDate}/{inboundPartialDate}
?apiKey={apiKey} | "{API_HOST}/apiservices/browsegrid/v1.0/{market}/{currency}/{locale}/\n {originPlace}/{destinationPlace}/\n {outboundPartialDate}/{inboundPartialDate}\n ?apiKey={apiKey}" | 35 | false | Skyscanner/skyscanner-python-sdk | get_grid_prices_by_date | 32,015 | |
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_metadata_nameid_family_and_full_names | LDU_FT | [
"<BEGIN>\n## `get_module_profile`",
"Get or create a profile from a module and return it.",
" If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_metadata_nameid_family_and_full_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_metadata_nameid_family_and_full_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentatio... | METADATA.pb font.name and font.full_name fields match
the values declared on the name table? | "METADATA.pb font.name and font.full_name fields match\n the values declared on the name table?" | 381 | false | googlefonts/fontbakery | com_google_fonts_check_metadata_nameid_family_and_full_names | 32,016 | |
LDU_FT/mulkieran/justbases/_reverse_rounding_method | LDU_FT | [
"<BEGIN>\n## `xform`",
"Get a number as a string.",
" :param number: a number\n :type number: list of int\n :param int base: the base in which this number is being represented\n :raises BasesValueError: if config is unsuitable for number\n<END>",
"<BEGIN>\n## `_strip_trailing_zeros... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _reverse_rounding_method 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 _reverse_rounding_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Reverse meaning of ``method`` between positive and negative. | "Reverse meaning of ``method`` between positive and negative." | 127 | false | mulkieran/justbases | _reverse_rounding_method | 32,017 | |
LDU_FT/openpaperwork/paperwork-backend/remove_label | LDU_FT | [
"<BEGIN>\n## `examine_rootdir`",
"Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>",
"<BEGIN>\n## `reload_index`",
"Read the index, and load the document list from it",
" Arguments... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_label API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_label API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Remove a label from a doc. Takes care of updating the index | "Remove a label from a doc. Takes care of updating the index" | 171 | false | openpaperwork/paperwork-backend | remove_label | 32,018 | |
LDU_FT/wdecoster/nanoplotter/check_valid_format | LDU_FT | [
"<BEGIN>\n## `check_valid_color`",
"Check if the color provided by the user is valid.",
" If color is invalid the default is returned.\n<END>",
"<BEGIN>\n## `check_valid_format`",
"Check if the specified figure format is valid.",
" If format is invalid the default is returned.\n Probably installa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_valid_format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Check if the specified figure format is valid.
If format is invalid the default is returned.
Probably installation-dependent | "Check if the specified figure format is valid.\n\n If format is invalid the default is returned.\n Probably installation-dependent" | 36 | false | wdecoster/nanoplotter | check_valid_format | 32,019 | |
LDU_FT/singularitti/text-stream/generator_between | LDU_FT | [
"<BEGIN>\n## `_user_input`",
"A helper function which waits for user multi-line input.",
" :return: A string input by user, separated by ``'\\\\n'``.\n<END>",
"<BEGIN>\n## `infile_path`",
"Read-only property.",
" :return: A ``pathlib.PurePath`` object or ``None``.\n<END>",
"<BEGIN>\n## `genera... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generator_between API.
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 generator_between API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Create a generate that iterates the whole content of the file or string, starting from *begin* index,
end by *end* index. **Not byte!**
:param begin: An integer labels the starting index.
:param end: An integer labels the ending index.
:return: An iterator of string. | "Create a generate that iterates the whole content of the file or string, starting from *begin* index,\n end by *end* index. **Not byte!**\n\n :param begin: An integer labels the starting index.\n :param end: An integer labels the ending index.\n :return: An iterator of string." | 18 | false | singularitti/text-stream | generator_between | 32,020 | |
LDU_FT/peterdemin/pip-compile-multi/discover | LDU_FT | [
"<BEGIN>\n## `create_lockfile`",
"Write recursive dependencies list to outfile\n with hard-pinned versions.\n Then fix it.\n<END>",
"<BEGIN>\n## `parse_references`",
"Read filename line by line searching for pattern:",
" -r file.in\n or\n --requirement file.in",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discover API.
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 discover API.
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... | Find all files matching given glob_pattern,
parse them, and return list of environments:
>>> envs = discover("requirements/*.in")
>>> # print(envs)
>>> envs == [
... {'name': 'base', 'refs': set()},
... {'name': 'py27', 'refs': set()},
... {'name': 'test', 'refs': {'base'}},
... | "Find all files matching given glob_pattern,\n parse them, and return list of environments:\n\n >>> envs = discover(\"requirements/*.in\")\n >>> # print(envs)\n >>> envs == [\n ... {'name': 'base', 'refs': set()},\n ... {'name': 'py27', 'refs': set()},\n ... {'name': 'test', 'refs': {'b... | 61 | false | peterdemin/pip-compile-multi | discover | 32,021 | |
LDU_FT/amaas-fintech/amaas-core-sdk-python/clear | LDU_FT | [
"<BEGIN>\n## `deactivate`",
"Is is only possible to deactivate an asset manager if your client_id is also the client_id that was used\n to originally create the asset manager.",
" :param asset_manager_id:\n :return:\n<END>",
"<BEGIN>\n## `quote_datetime`",
"Force the quote_datetime to a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | This method deletes all the data for an asset_manager_id.
It should be used with extreme caution. In production it
is almost always better to Inactivate rather than delete. | "This method deletes all the data for an asset_manager_id.\n It should be used with extreme caution. In production it\n is almost always better to Inactivate rather than delete." | 109 | false | amaas-fintech/amaas-core-sdk-python | clear | 32,022 | |
LDU_FT/mvantellingen/localshop/handle_register_or_upload | LDU_FT | [
"<BEGIN>\n## `get_search_names`",
"Return a list of values to search on when we are looking for a package\n with the given name.",
" This is required to search on both pyramid_debugtoolbar and\n pyramid-debugtoolbar.\n<END>",
"<BEGIN>\n## `alter_old_distutils_request`",
"Alter the request body for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_register_or_upload 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 handle_register_or_upload API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Process a `register` or `upload` comment issued via distutils.
This method is called with the authenticated user. | "Process a `register` or `upload` comment issued via distutils.\n\n This method is called with the authenticated user." | 27 | false | mvantellingen/localshop | handle_register_or_upload | 32,023 | |
LDU_FT/Celeo/Pycord/get_channel_info | LDU_FT | [
"<BEGIN>\n## `parse`",
"Gets the enum for the op code",
" Args:\n op: value of the op code (will be casted to int)",
" Returns:\n The enum that matches the op code\n<END>",
"<BEGIN>\n## `run`",
"Runs the thread",
" This method handles sending the heartbeat to t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_channel_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get a chanel's information by its id
Args:
id: snowflake id of the chanel
Returns:
Dictionary data for the chanel API object
Example:
{
"id": "41771983423143937",
"guild_id": "41771983423143937",
... | "Get a chanel's information by its id\n\n Args:\n id: snowflake id of the chanel\n\n Returns:\n Dictionary data for the chanel API object\n\n Example:\n {\n \"id\": \"41771983423143937\",\n \"guild_id\": \"41771983423143... | 108 | false | Celeo/Pycord | get_channel_info | 32,024 | |
LDU_FT/subdownloader/subdownloader/parse_arguments | LDU_FT | [
"<BEGIN>\n## `do_po`",
"Update all po files with the data in the pot reference file.\n<END>",
"<BEGIN>\n## `configuration_get_default_folder`",
"Return the default folder where user-specific data is stored.\n This depends of the system on which Python is running,\n :return: path to the user-specific con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_arguments API.
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 parse_arguments API.
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... | Parse the program arguments.
:return: argparse.Namespace object with the parsed arguments | "Parse the program arguments.\n :return: argparse.Namespace object with the parsed arguments" | 87 | false | subdownloader/subdownloader | parse_arguments | 32,025 | |
LDU_FT/nickmckay/LiPD-utilities/mv_files | LDU_FT | [
"<BEGIN>\n## `update_dois`",
"Get DOI publication info for a batch of DOIs. This is LiPD-independent and only requires a CSV file with all DOIs\n listed in a single column. The output is LiPD-formatted publication data for each entry.",
" :param str csv_source: Local path to CSV file\n :param bool writ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mv_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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mv_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 extracte... | Move all files from one directory to another
:param str src: Source directory
:param str dst: Destination directory
:return none: | "Move all files from one directory to another\n\n :param str src: Source directory\n :param str dst: Destination directory\n :return none:" | 796 | false | nickmckay/LiPD-utilities | mv_files | 32,026 | |
LDU_FT/pyvisa/pyvisa-sim/_get_triplet | LDU_FT | [
"<BEGIN>\n## `_get_triplet`",
"Return a triplet from a dialogue dictionary.",
" :param dd: Dialogue dictionary.\n :type dd: Dict[str, str]\n :return: (query, response, error response)\n :rtype: (str, str | NoResponse, str | NoResponse)\n<END>",
"<BEGIN>\n## `_load`",
"YAML Parse a file or str an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_triplet API.
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_triplet API.
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... | Return a triplet from a dialogue dictionary.
:param dd: Dialogue dictionary.
:type dd: Dict[str, str]
:return: (query, response, error response)
:rtype: (str, str | NoResponse, str | NoResponse) | "Return a triplet from a dialogue dictionary.\n\n :param dd: Dialogue dictionary.\n :type dd: Dict[str, str]\n :return: (query, response, error response)\n :rtype: (str, str | NoResponse, str | NoResponse)" | 85 | false | pyvisa/pyvisa-sim | _get_triplet | 32,027 | |
LDU_FT/sprockets/sprockets.http/stop | LDU_FT | [
"<BEGIN>\n## `start_server`",
"Create a HTTP server and start it.",
" :param int port_number: the port number to bind the server to\n :param int number_of_procs: number of processes to pass to\n Tornado's ``httpserver.HTTPServer.start``.",
" If the application's ``debug`` setti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Asynchronously stop the application.
:param tornado.ioloop.IOLoop io_loop: loop to run until all
callbacks, timeouts, and queued calls are complete
Call this method to start the application shutdown process.
The IOLoop will be stopped once the application is completely
shut... | "Asynchronously stop the application.\n\n :param tornado.ioloop.IOLoop io_loop: loop to run until all\n callbacks, timeouts, and queued calls are complete\n\n Call this method to start the application shutdown process.\n The IOLoop will be stopped once the application is completely\n ... | 37 | false | sprockets/sprockets.http | stop | 32,028 | |
LDU_FT/seznam/shelter/sigusr2_handler | LDU_FT | [
"<BEGIN>\n## `exitcode`",
"Process exit code. :const:`0` when process exited successfully,\n positive number when exception was occurred, negative number when\n process was signaled and :data:`None` when process has not exited\n yet.\n<END>",
"<BEGIN>\n## `run`",
"Tornado worker which han... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sigusr2_handler API.
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 sigusr2_handler API.
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... | Handle SIGUSR2 signal. Call function which is defined in the
**settings.SIGUSR2_HANDLER**. | "Handle SIGUSR2 signal. Call function which is defined in the\n **settings.SIGUSR2_HANDLER**." | 61 | false | seznam/shelter | sigusr2_handler | 32,029 | |
LDU_FT/arokem/python-matlab-bridge/decode_arr | LDU_FT | [
"<BEGIN>\n## `split_pulls`",
"split a list of closed issues into non-PR Issues and Pull Requests\n<END>",
"<BEGIN>\n## `issues_closed_since`",
"Get all issues closed since a particular point in time. period\n can either be a datetime object, or a timedelta object. In the\n latter case, it is used as a t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_arr API.
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 decode_arr API.
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... | Extract a numpy array from a base64 buffer | "Extract a numpy array from a base64 buffer" | 58 | false | arokem/python-matlab-bridge | decode_arr | 32,030 | |
LDU_FT/rbarrois/volatildap/find_available_port | LDU_FT | [
"<BEGIN>\n## `find_available_port`",
"Find an available port.",
" Simple trick: open a socket to localhost, see what port was allocated.",
" Could fail in highly concurrent setups, though.\n<END>",
"<BEGIN>\n## `ldif_encode`",
"Encode a attribute: value pair for the LDIF format.",
" See RFC2849... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_available_port API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_available_port API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Find an available port.
Simple trick: open a socket to localhost, see what port was allocated.
Could fail in highly concurrent setups, though. | "Find an available port.\n\n Simple trick: open a socket to localhost, see what port was allocated.\n\n Could fail in highly concurrent setups, though." | 16 | false | rbarrois/volatildap | find_available_port | 32,031 | |
LDU_FT/jeffbuttars/upkg/repo_dirlist | LDU_FT | [
"<BEGIN>\n## `exec`",
"todo: Docstring for exec",
" :param args: arg description\n :type args: type description\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `exec`",
"todo: Docstring for exec",
" :param args: arg description\n :type args: type description\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the repo_dirlist API.
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 repo_dirlist API.
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... | List out the directories in the install location(s)
:return:
:rtype: | "List out the directories in the install location(s)\n :return:\n :rtype:" | 76 | false | jeffbuttars/upkg | repo_dirlist | 32,032 | |
LDU_FT/django-haystack/pysolr/safe_urlencode | LDU_FT | [
"<BEGIN>\n## `force_unicode`",
"Forces a bytestring to become a Unicode string.\n<END>",
"<BEGIN>\n## `force_bytes`",
"Forces a Unicode string to become a bytestring.\n<END>",
"<BEGIN>\n## `unescape_html`",
"Removes HTML or XML character references and entities from a text string.",
" @param text The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_urlencode API.
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 safe_urlencode API.
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... | UTF-8-safe version of safe_urlencode
The stdlib safe_urlencode prior to Python 3.x chokes on UTF-8 values
which can't fail down to ascii. | "UTF-8-safe version of safe_urlencode\n\n The stdlib safe_urlencode prior to Python 3.x chokes on UTF-8 values\n which can't fail down to ascii." | 102 | false | django-haystack/pysolr | safe_urlencode | 32,033 | |
LDU_FT/theiviaxx/python-perforce/run | LDU_FT | [
"<BEGIN>\n## `split_ls`",
"Decorator to split files into manageable chunks as not to exceed the windows cmd limit",
" :param func: Function to call for each chunk\n :type func: :py:class:Function\n<END>",
"<BEGIN>\n## `status`",
"The status of the connection to perforce\n<END>",
"<BEGIN>\n## `run`",... | 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... | Runs a p4 command and returns a list of dictionary objects
:param cmd: Command to run
:type cmd: list
:param stdin: Standard Input to send to the process
:type stdin: str
:param marshal_output: Whether or not to marshal the output from the command
:type marshal_output: b... | "Runs a p4 command and returns a list of dictionary objects\n\n :param cmd: Command to run\n :type cmd: list\n :param stdin: Standard Input to send to the process\n :type stdin: str\n :param marshal_output: Whether or not to marshal the output from the command\n :type marshal_o... | 74 | false | theiviaxx/python-perforce | run | 32,034 | |
LDU_FT/alexhayes/django-toolkit/cidr_notation | LDU_FT | [
"<BEGIN>\n## `get_anchor_href`",
"Given HTML markup, return a list of hrefs for each anchor tag.\n<END>",
"<BEGIN>\n## `get_anchor_contents`",
"Given HTML markup, return a list of href inner html for each anchor tag.\n<END>",
"<BEGIN>\n## `expire_cache`",
"Expire a cache item.",
" @param url: The url... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cidr_notation API.
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 cidr_notation API.
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... | Retrieve the cidr notation given an ip address and netmask.
For example:
cidr_notation('12.34.56.78', '255.255.255.248')
Would return: 12.34.56.72/29
@see http://terminalmage.net/2012/06/10/how-to-find-out-the-cidr-notation-for-a-subne-given-an-ip-and-netmask/
@see http://ww... | "Retrieve the cidr notation given an ip address and netmask.\n \n For example:\n \n cidr_notation('12.34.56.78', '255.255.255.248')\n \n Would return: 12.34.56.72/29 \n \n @see http://terminalmage.net/2012/06/10/how-to-find-out-the-cidr-notation-for-a-subne-given-an-ip-and-netmask/\n @see... | 155 | false | alexhayes/django-toolkit | cidr_notation | 32,035 | |
LDU_FT/andreasjansson/head-in-the-clouds/_make_sql_params | LDU_FT | [
"<BEGIN>\n## `create`",
"Create a new base with specified field names\r\n A keyword argument mode can be specified ; it is used if a file\r\n with the base name already exists\r\n - if mode = 'open' : open the existing base, ignore the fields\r\n - if mode = 'override' : erase the exis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_sql_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_sql_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Make a list of strings to pass to an SQL statement
from the dictionary kw with Python types | "Make a list of strings to pass to an SQL statement\r\n from the dictionary kw with Python types" | 101 | false | andreasjansson/head-in-the-clouds | _make_sql_params | 32,036 | |
LDU_FT/launchdarkly/relayCommander/get_flag_record | LDU_FT | [
"<BEGIN>\n## `connection_string_parser`",
"Parse Connection string to extract host and port.",
" :param uri: full URI for redis connection in the form of host:port",
" :returns: list of RedisConnection objects\n<END>",
"<BEGIN>\n## `get_flag_record`",
"Get feature flag record from redis.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_flag_record API.
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_flag_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get feature flag record from redis.
:param feature_key: key for feature flag
:return: value of feature flag key in redis.
:raises: KeyError if key is not found. | "Get feature flag record from redis.\n\n :param feature_key: key for feature flag\n\n :return: value of feature flag key in redis.\n\n :raises: KeyError if key is not found." | 63 | false | launchdarkly/relayCommander | get_flag_record | 32,037 | |
LDU_FT/ljcooke/see/filter | LDU_FT | [
"<BEGIN>\n## `column_width`",
"Return a suitable column width to display one or more strings.\n<END>",
"<BEGIN>\n## `justify_token`",
"Justify a string to fill one or more columns.\n<END>",
"<BEGIN>\n## `display_name`",
"Get the display name of an object.",
" Keyword arguments (all required):",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Filter the results using a pattern.
This accepts a shell-style wildcard pattern (as used by the fnmatch_
module)::
>>> see([]).filter('*op*')
.copy() .pop()
It also accepts a regular expression. This may be a compiled regular
expression (from the re_ mod... | "Filter the results using a pattern.\n\n This accepts a shell-style wildcard pattern (as used by the fnmatch_\n module)::\n\n >>> see([]).filter('*op*')\n .copy() .pop()\n\n It also accepts a regular expression. This may be a compiled regular\n expression (from t... | 43 | false | ljcooke/see | filter | 32,038 | |
LDU_FT/flyingrub/scdl/download | LDU_FT | [
"<BEGIN>\n## `size_in_bytes`",
"Returns the size in bytes from strings such as '5 mb' into 5242880.",
" >>> size_in_bytes('1m')\n 1048576\n >>> size_in_bytes('1.5m')\n 1572864\n >>> size_in_bytes('2g')\n 2147483648\n >>> size_in_bytes(None)\n Traceback (most recent call last):\n r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the download API.
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 download API.
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... | Download user items of dl_type (ie. all, playlists, liked, commented, etc.) | "Download user items of dl_type (ie. all, playlists, liked, commented, etc.)" | 27 | false | flyingrub/scdl | download | 32,039 | |
LDU_FT/bastibe/SoundFile/_prepare_read | LDU_FT | [
"<BEGIN>\n## `read`",
"Provide audio data from a sound file as NumPy array.",
" By default, the whole file is read from the beginning, but the\n position to start reading can be specified with `start` and the\n number of frames to read can be specified with `frames`.\n Alternatively, a range can be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_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 ext... | Seek to start frame and calculate length. | "Seek to start frame and calculate length." | 139 | false | bastibe/SoundFile | _prepare_read | 32,040 | |
LDU_FT/alexhayes/django-toolkit/_build_full_list | LDU_FT | [
"<BEGIN>\n## `get_anchor_href`",
"Given HTML markup, return a list of hrefs for each anchor tag.\n<END>",
"<BEGIN>\n## `get_anchor_contents`",
"Given HTML markup, return a list of href inner html for each anchor tag.\n<END>",
"<BEGIN>\n## `expire_cache`",
"Expire a cache item.",
" @param url: The url... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_full_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _build_full_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Build a full list of pages.
Examples:
>>> _SlicedPaginator(1, 7, 5)._build_full_list()
[1, 2, 3, 4, 5]
>>> _SlicedPaginator(6, 7, 5)._build_full_list()
[3, 4, 5, 6, 7]
>>> _SlicedPaginator(6, 7, 5)._build_full_list()
[3, 4, 5, 6, 7]
>>> import ite... | "Build a full list of pages.\n \n Examples:\n >>> _SlicedPaginator(1, 7, 5)._build_full_list()\n [1, 2, 3, 4, 5]\n >>> _SlicedPaginator(6, 7, 5)._build_full_list()\n [3, 4, 5, 6, 7]\n >>> _SlicedPaginator(6, 7, 5)._build_full_list()\n [3, 4, 5, 6, 7]\n >>> ... | 155 | false | alexhayes/django-toolkit | _build_full_list | 32,041 | |
LDU_FT/svinota/mdns/write_record | LDU_FT | [
"<BEGIN>\n## `to_string`",
"String representation with additional information\n<END>",
"<BEGIN>\n## `answered_by`",
"Returns true if the question is answered by the record\n<END>",
"<BEGIN>\n## `reset_ttl`",
"Sets this record's TTL and created time to that of\n another record.\n<END>",
"<BEGIN>\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_record API.
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 write_record API.
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... | Writes a record (answer, authoritative answer, additional) to
the packet | "Writes a record (answer, authoritative answer, additional) to\n the packet" | 67 | false | svinota/mdns | write_record | 32,042 | |
LDU_FT/clintval/sample-sheet/add_section | LDU_FT | [
"<BEGIN>\n## `_sum_cycles_from_tokens`",
"Sum the total number of cycles over a list of tokens.\n<END>",
"<BEGIN>\n## `template_cycles`",
"The number of cycles dedicated to template.\n<END>",
"<BEGIN>\n## `skip_cycles`",
"The number of cycles dedicated to skips.\n<END>",
"<BEGIN>\n## `total_cycles`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_section API.
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 add_section API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Add a section to the :class:`SampleSheet`. | "Add a section to the :class:`SampleSheet`." | 50 | false | clintval/sample-sheet | add_section | 32,043 | |
LDU_FT/python-constraint/python-constraint/getArcs | LDU_FT | [
"<BEGIN>\n## `process_docstring`",
"Process the docstring for a given python object.\n Note that the list 'lines' is changed in this function. Sphinx\n uses the altered content of the list.\n<END>",
"<BEGIN>\n## `getArcs`",
"Return a dictionary mapping pairs (arcs) of constrained variables",
" @att... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getArcs API.
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 getArcs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a dictionary mapping pairs (arcs) of constrained variables
@attention: Currently unused. | "Return a dictionary mapping pairs (arcs) of constrained variables\n\n @attention: Currently unused." | 57 | false | python-constraint/python-constraint | getArcs | 32,044 | |
LDU_FT/the01/python-floscraper/_browser_init | LDU_FT | [
"<BEGIN>\n## `prepare_headers`",
"Prepare headers object for request (add cache information",
" :param headers: Headers object\n :type headers: dict\n :param cache_info: Cache information to add\n :type cache_info: floscraper.models.CacheInfo\n :return: Prepared headers\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _browser_init API.
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 _browser_init API.
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... | Init the browsing instance if not setup
:rtype: None | "Init the browsing instance if not setup\n\n :rtype: None" | 50 | false | the01/python-floscraper | _browser_init | 32,045 | |
LDU_FT/hover2pi/svo_filters/load_xml | LDU_FT | [
"<BEGIN>\n## `color_gen`",
"Color generator for Bokeh plots",
" Parameters\n ----------\n colormap: str, sequence\n The name of the color map",
" Returns\n -------\n generator\n A generator for the color palette\n<END>",
"<BEGIN>\n## `filters`",
"Get a list of the available... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_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 load_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... | Load the filter from a txt file
Parameters
----------
filepath: str
The filepath for the filter | "Load the filter from a txt file\n\n Parameters\n ----------\n filepath: str\n The filepath for the filter" | 63 | false | hover2pi/svo_filters | load_xml | 32,046 | |
LDU_FT/za-creature/gulpless/changed | LDU_FT | [
"<BEGIN>\n## `handles`",
"Must return a list of files that this handler will produce after\n successfully processing `path`. If the current handler does not operate\n on `path`, None should be returned. If instead `path` should not\n produce output by itself (but should be compiled nonetheles... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the changed API.
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 changed API.
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... | If `path` does not have any parents, it is built. Otherwise, it will
attempt to build every parent of `path` (or their parents). Output file
modification times are taken into account to prevent unnecessary
builds. | "If `path` does not have any parents, it is built. Otherwise, it will\n attempt to build every parent of `path` (or their parents). Output file\n modification times are taken into account to prevent unnecessary\n builds." | 16 | false | za-creature/gulpless | changed | 32,047 | |
LDU_FT/MKLab-ITI/reveal-user-annotation/on_demand_annotation | LDU_FT | [
"<BEGIN>\n## `safe_twitter_request_handler`",
"This is a safe function handler for any twitter request.",
" Inputs: - twitter_api_func: The twython function object to be safely called.\n - call_rate_limit: THe call rate limit for this specific Twitter API function.\n - call_counter: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_demand_annotation 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 on_demand_annotation 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 service that leverages twitter lists for on-demand annotation of popular users.
TODO: Do this. | "A service that leverages twitter lists for on-demand annotation of popular users.\n\n TODO: Do this." | 192 | false | MKLab-ITI/reveal-user-annotation | on_demand_annotation | 32,048 | |
LDU_FT/hkff/FodtlMon/_get_colors | LDU_FT | [
"<BEGIN>\n## `eval`",
"This method should be always called by subclasses\n :param valuation\n :param trace\n :return: Arguments evaluation\n<END>",
"<BEGIN>\n## `eval`",
"This method should be override to return some value\n :param valuation\n :param trace\n :return:\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_colors API.
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_colors API.
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 tuple of two integers representing current colors: (foreground, background). | "Returns a tuple of two integers representing current colors: (foreground, background)." | 51 | false | hkff/FodtlMon | _get_colors | 32,049 | |
LDU_FT/AtomHash/evernode/find_files | LDU_FT | [
"<BEGIN>\n## `exists`",
"Checks if item already exists in database\n<END>",
"<BEGIN>\n## `save`",
"Easy save(insert or update) for db models\n<END>",
"<BEGIN>\n## `trans`",
"Root Example:\r\n Translator()\r\n Translator.trans('messages.hello')\r\n resources/lang/en/messages.lang will ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_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 extrac... | Gets modules routes.py and converts to module imports | "Gets modules routes.py and converts to module imports" | 56 | false | AtomHash/evernode | find_files | 32,050 | |
LDU_FT/BerkeleyAutomation/autolab_core/quaternion_from_axis_angle | LDU_FT | [
"<BEGIN>\n## `copy`",
"Returns a copy of the RigidTransform.",
" Returns\n -------\n :obj:`RigidTransform`\n A deep copy of the RigidTransform.\n<END>",
"<BEGIN>\n## `_check_valid_rotation`",
"Checks that the given rotation matrix is valid.\n<END>",
"<BEGIN>\n## `_check_val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quaternion_from_axis_angle 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 quaternion_from_axis_angle API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Convert axis-angle representation to a quaternion vector.
Parameters
----------
v : :obj:`numpy.ndarray` of float
An axis-angle representation.
Returns
-------
:obj:`numpy.ndarray` of float
A quaternion vector from the axis-angle vector. | "Convert axis-angle representation to a quaternion vector.\n\n Parameters\n ----------\n v : :obj:`numpy.ndarray` of float\n An axis-angle representation.\n\n Returns\n -------\n :obj:`numpy.ndarray` of float\n A quaternion vector from the axis-angle vecto... | 518 | false | BerkeleyAutomation/autolab_core | quaternion_from_axis_angle | 32,051 | |
LDU_FT/amreuland/PyVDF/reads | LDU_FT | [
"<BEGIN>\n## `read`",
"Parse a String and return the data",
" :param f: The file to read\n :type f: file/str\n :returns: A dictionary object containing the parsed data from f\n :raises: SyntaxError - An error occured reading the data.\n<END>",
"<BEGIN>\n## `reads`",
"Parse a String and return th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reads API.
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 reads API.
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... | Parse a String and return the data
:param s: The string to read
:type s: :py:obj:`str`
:returns: A dict object containing the data from s
:raises: SyntaxError - An error occured reading the data. | "Parse a String and return the data\n\n :param s: The string to read\n :type s: :py:obj:`str`\n :returns: A dict object containing the data from s\n :raises: SyntaxError - An error occured reading the data." | 19 | false | amreuland/PyVDF | reads | 32,052 | |
LDU_FT/tehmaze/ipcalc/from_bin | LDU_FT | [
"<BEGIN>\n## `bin`",
"Full-length binary representation of the IP address.",
" >>> ip = IP(\"127.0.0.1\")\n >>> print(ip.bin())\n 01111111000000000000000000000001\n<END>",
"<BEGIN>\n## `info`",
"Show IANA allocation information for the current IP address.",
" >>> ip = IP(\"127.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_bin API.
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 from_bin API.
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... | Initialize a new network from binary notation. | "Initialize a new network from binary notation." | 34 | false | tehmaze/ipcalc | from_bin | 32,053 | |
LDU_FT/Xython/Linq.py/Shift | LDU_FT | [
"<BEGIN>\n## `ChunkBy`",
"[\n {\n 'self': [1, 1, 3, 3, 1, 1],\n 'f': lambda x: x%2,\n 'assert': lambda ret: ret == [[1, 1], [3, 3], [1, 1]]\n }\n ]\n<END>",
"<BEGIN>\n## `GroupBy`",
"[\n {\n 'self': [1, 2, 3],\n 'f': lambda x: x%2... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Shift API.
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 Shift API.
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... | [
{
'self': [1, 2, 3, 4, 5],
'n': 3,
'assert': lambda ret: list(ret) == [4, 5, 1, 2, 3]
}
] | "[\n {\n 'self': [1, 2, 3, 4, 5],\n 'n': 3,\n 'assert': lambda ret: list(ret) == [4, 5, 1, 2, 3]\n }\n ]" | 32 | false | Xython/Linq.py | Shift | 32,054 | |
LDU_FT/BDNYC/astrodbkit/convert_spectrum | LDU_FT | [
"<BEGIN>\n## `dict_tovot`",
"Converts dictionary table **tabdata** to a VOTable with name **tabname**",
" Parameters\n ----------\n tabdata: list\n SQL query dictionary list from running query_dict.execute()\n tabname: str\n The name of the VOTable to be created\n phot: bool\n Para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_spectrum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_spectrum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Converts a SPECTRUM data type stored in the database into a (W,F,E) sequence of arrays.
Parameters
----------
File: str
The URL or filepath of the file to be converted into arrays.
verbose: bool
Whether or not to display some diagnostic information (Default: False)
Returns
----... | "Converts a SPECTRUM data type stored in the database into a (W,F,E) sequence of arrays.\n\n Parameters\n ----------\n File: str\n The URL or filepath of the file to be converted into arrays.\n verbose: bool\n Whether or not to display some diagnostic information (Default: False)\n\n Return... | 166 | false | BDNYC/astrodbkit | convert_spectrum | 32,055 | |
LDU_FT/capless/warrant/_set_attributes | LDU_FT | [
"<BEGIN>\n## `dict_to_cognito`",
":param attributes: Dictionary of User Pool attribute names/values\n :return: list of User Pool attribute formatted dicts: {'Name': <attr_name>, 'Value': <attr_value>}\n<END>",
"<BEGIN>\n## `snake_to_camel`",
":param snake_str: string\n :return: string converted from a s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_attributes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Set user attributes based on response code
:param response: HTTP response from Cognito
:attribute dict: Dictionary of attribute name and values | "Set user attributes based on response code\n :param response: HTTP response from Cognito\n :attribute dict: Dictionary of attribute name and values" | 61 | false | capless/warrant | _set_attributes | 32,056 | |
LDU_FT/alorence/django-modern-rpc/get_handler_classes | LDU_FT | [
"<BEGIN>\n## `_generic_convert_string`",
"Generic method to convert any argument type (string type, list, set, tuple, dict) to an equivalent,\n with string values converted to given 'to_type' (str or unicode).\n This method must be used with Python 2 interpreter only.",
" :param v: The value to convert... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_handler_classes 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 get_handler_classes 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 the list of handlers to use when receiving RPC requests. | "Return the list of handlers to use when receiving RPC requests." | 86 | false | alorence/django-modern-rpc | get_handler_classes | 32,057 | |
LDU_FT/serge-sans-paille/pythran/p_exports | LDU_FT | [
"<BEGIN>\n## `check_specs`",
"Does nothing but raising PythranSyntaxError if specs\n are incompatible with the actual code\n<END>",
"<BEGIN>\n## `check_exports`",
"Does nothing but raising PythranSyntaxError if specs\n references an undefined global\n<END>",
"<BEGIN>\n## `visit_Import`",
"Check if i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the p_exports API.
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 p_exports API.
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... | exports :
| PYTHRAN EXPORT export_list opt_craps exports
| PYTHRAN EXPORT CAPSULE export_list opt_craps exports | "exports :\n | PYTHRAN EXPORT export_list opt_craps exports\n | PYTHRAN EXPORT CAPSULE export_list opt_craps exports" | 547 | false | serge-sans-paille/pythran | p_exports | 32,058 | |
LDU_FT/websocket-client/websocket-client/format | LDU_FT | [
"<BEGIN>\n## `parse_url`",
"parse url and the result is tuple of\n (hostname, port, resource path and the flag of secure mode)",
" url: url string.\n<END>",
"<BEGIN>\n## `get_proxy_info`",
"try to retrieve proxy host and port from environment\n if not provided in options.\n result is (proxy_host... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | format this object to string(byte array) to send data to server. | "format this object to string(byte array) to send data to server." | 81 | false | websocket-client/websocket-client | format | 32,059 | |
LDU_FT/tjvr/kurt/_convert | LDU_FT | [
"<BEGIN>\n## `_workaround_no_stage_specific_variables`",
"Make Stage-specific variables global (move them to Project).\n<END>",
"<BEGIN>\n## `register`",
"Register a new :class:`KurtPlugin`.",
" Once registered, the plugin can be used by :class:`Project`, when:",
" * :attr:`Project.load` see... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert API.
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 _convert API.
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 a new Image instance with the given format.
Returns self if the format is already the same. | "Return a new Image instance with the given format.\n\n Returns self if the format is already the same." | 171 | false | tjvr/kurt | _convert | 32,060 | |
LDU_FT/django-fluent/django-fluent-utils/import_settings_class | LDU_FT | [
"<BEGIN>\n## `import_settings_class`",
"Return the class pointed to be an app setting variable.\n<END>",
"<BEGIN>\n## `import_apps_submodule`",
"Look for a submodule is a series of packages, e.g. \".pagetype_plugins\" in all INSTALLED_APPS.\n<END>",
"<BEGIN>\n## `import_module_or_none`",
"Imports the modu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_settings_class 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 import_settings_class API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the class pointed to be an app setting variable. | "Return the class pointed to be an app setting variable." | 13 | false | django-fluent/django-fluent-utils | import_settings_class | 32,061 | |
LDU_FT/matthew-brett/delocate/rewrite_record | LDU_FT | [
"<BEGIN>\n## `back_tick`",
"Run command `cmd`, return stdout, or stdout, stderr if `ret_err`",
" Roughly equivalent to ``check_output`` in Python 2.7",
" Parameters\n ----------\n cmd : sequence\n command to execute\n ret_err : bool, optional\n If True, return stderr in addition t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rewrite_record API.
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 rewrite_record API.
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... | Rewrite RECORD file with hashes for all files in `wheel_sdir`
Copied from :method:`wheel.bdist_wheel.bdist_wheel.write_record`
Will also unsign wheel
Parameters
----------
bdist_dir : str
Path of unpacked wheel file | "Rewrite RECORD file with hashes for all files in `wheel_sdir`\n\n Copied from :method:`wheel.bdist_wheel.bdist_wheel.write_record`\n\n Will also unsign wheel\n\n Parameters\n ----------\n bdist_dir : str\n Path of unpacked wheel file" | 157 | false | matthew-brett/delocate | rewrite_record | 32,062 | |
LDU_FT/klahnakoski/mo-logs/pairwise | LDU_FT | [
"<BEGIN>\n## `_deep_json_to_string`",
":param value: SOME STRUCTURE\n :param depth: THE MAX DEPTH OF PROPERTIES, DEEPER WILL BE STRING-IFIED\n :return: FLATTER STRUCTURE\n<END>",
"<BEGIN>\n## `read_settings`",
":param filename: Force load a file\n :param defs: arguments you want to accept\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pairwise API.
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 pairwise API.
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... | WITH values = [a, b, c, d, ...]
RETURN [(a, b), (b, c), (c, d), ...] | "WITH values = [a, b, c, d, ...]\n RETURN [(a, b), (b, c), (c, d), ...]" | 74 | false | klahnakoski/mo-logs | pairwise | 32,063 | |
LDU_FT/elifesciences/elife-article/text_from_affiliation_elements | LDU_FT | [
"<BEGIN>\n## `build_contributors`",
"Given a list of authors from the parser, instantiate contributors\n objects and build them\n<END>",
"<BEGIN>\n## `build_datasets`",
"Given datasets in JSON format, build and return a list of dataset objects\n<END>",
"<BEGIN>\n## `build_data_availability`",
"Given da... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_from_affiliation_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the text_from_affiliation_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | format an author affiliation from details | "format an author affiliation from details" | 44 | false | elifesciences/elife-article | text_from_affiliation_elements | 32,064 | |
LDU_FT/inveniosoftware/invenio-communities/request | LDU_FT | [
"<BEGIN>\n## `format_item`",
"Render a template to a string with the provided item in context.\n<END>",
"<BEGIN>\n## `index`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\n## `generic_item`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Request a record acceptance to a community. | "Request a record acceptance to a community." | 89 | false | inveniosoftware/invenio-communities | request | 32,065 | |
LDU_FT/MacHu-GWU/dataIO-project/dump | LDU_FT | [
"<BEGIN>\n## `is_json_file`",
"Parse file extension.",
" - *.json: uncompressed, utf-8 encode json file\n - *.gz: compressed, utf-8 encode json file\n<END>",
"<BEGIN>\n## `load`",
"Load Json from file. If file are not exists, returns ``default``.",
" :param abspath: file path. use absolute path a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump API.
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 dump API.
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... | Dump picklable object to file.
Provides multiple choice to customize the behavior.
:param data: picklable python object.
:type data: dict or list
:param abspath: ``save as`` path, file extension has to be ``.pickle`` or ``.gz``
(for compressed Pickle)
:type abspath: string
:param pk_p... | "Dump picklable object to file.\n Provides multiple choice to customize the behavior.\n\n :param data: picklable python object.\n :type data: dict or list\n\n :param abspath: ``save as`` path, file extension has to be ``.pickle`` or ``.gz``\n (for compressed Pickle)\n :type abspath: string\n\n ... | 115 | false | MacHu-GWU/dataIO-project | dump | 32,066 | |
LDU_FT/thejunglejane/datums/get_or_create | LDU_FT | [
"<BEGIN>\n## `run_migrations_offline`",
"Run migrations in 'offline' mode.",
" This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.",
" Calls to context.exec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_or_create API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | If a record matching the instance already exists in the database, then
return it, otherwise create a new record. | "If a record matching the instance already exists in the database, then\n return it, otherwise create a new record." | 30 | false | thejunglejane/datums | get_or_create | 32,067 | |
LDU_FT/farshidce/touchworks-python/get_clinical_summary | LDU_FT | [
"<BEGIN>\n## `get_token`",
"get the security token by connecting to TouchWorks API\n<END>",
"<BEGIN>\n## `_token_valid`",
"checks if the token cached is valid or has expired by comparing\n the time token was created with current time\n :return: True if token has not expired yet and False is toke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_clinical_summary 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_clinical_summary API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | invokes TouchWorksMagicConstants.ACTION_GET_CLINICAL_SUMMARY action
:param patient_id:
:param section - if one of the following values is specified, Section indicates
which section of clinical data to return. If no Section is specified,
all sections with data are returned. You ca... | "invokes TouchWorksMagicConstants.ACTION_GET_CLINICAL_SUMMARY action\n :param patient_id:\n :param section - if one of the following values is specified, Section indicates\n which section of clinical data to return. If no Section is specified,\n all sections with data are returned. Y... | 72 | false | farshidce/touchworks-python | get_clinical_summary | 32,068 | |
LDU_FT/pzs741/TEDT/drop_stopwords | LDU_FT | [
"<BEGIN>\n## `get_url`",
"获取url地址并根据网页编码格式自动解析",
" Keyword arguments:\n url -- 用户传入地址,头部必须含有http://\n Return:\n 网页源代码(为了下一步预处理方便,所有英文字母转换为小写)\n 网页编解码\n<END>",
"<BEGIN>\n## `html_clean`",
"获取网页源代码并进行预处理",
" Keyword arguments:\n html_code -- 网页源代码,字符... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the drop_stopwords API.
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 drop_stopwords API.
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... | 去停词
Keyword arguments:
list -- 列表类型
Return:
不含停词的list | "去停词\n\n Keyword arguments:\n list -- 列表类型\n Return:\n 不含停词的list" | 91 | false | pzs741/TEDT | drop_stopwords | 32,069 | |
LDU_FT/tisimst/pyDOE/var_regression_matrix | LDU_FT | [
"<BEGIN>\n## `pbdesign`",
"Generate a Plackett-Burman design\r",
" Parameter\r\n ---------\r\n n : int\r\n The number of factors to create a matrix for.\r",
" Returns\r\n -------\r\n H : 2d-array\r\n An orthogonal design matrix with n columns, one for each factor, and\r\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the var_regression_matrix 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 var_regression_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Compute the variance of the 'regression error'.
Parameters
----------
H : 2d-array
The regression matrix
x : 2d-array
The coordinates to calculate the regression error variance at.
model : str
A string of tokens that define the regression model (e.g.
'... | "Compute the variance of the 'regression error'.\r\n \r\n Parameters\r\n ----------\r\n H : 2d-array\r\n The regression matrix\r\n x : 2d-array\r\n The coordinates to calculate the regression error variance at.\r\n model : str\r\n A string of tokens that define the regression mode... | 96 | false | tisimst/pyDOE | var_regression_matrix | 32,070 | |
LDU_FT/marshallward/f90nml/update_chars | LDU_FT | [
"<BEGIN>\n## `write`",
"Save a namelist to disk using either a file object or its file path.",
" File object usage:",
" >>> with open(nml_path, 'w') as nml_file:\n >>> f90nml.write(nml, nml_file)",
" File path usage:",
" >>> f90nml.write(nml, 'data.nml')",
" This function is equiva... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_chars API.
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 update_chars API.
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... | Update the current charters in the tokenizer. | "Update the current charters in the tokenizer." | 98 | false | marshallward/f90nml | update_chars | 32,071 | |
LDU_FT/KenjiTakahashi/td/input | LDU_FT | [
"<BEGIN>\n## `save`",
"@decorator: Saves data after executing :func:.",
" Also performs modifications set as permanent options.\n<END>",
"<BEGIN>\n## `add`",
"Adds new item to the model.",
" Name argument may contain (ref:) syntax, which will be\n stripped down as needed.",
" :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the input API.
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 input API.
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... | Gets user input for given field.
Can be interrupted with ^C.
:field: Field name.
:returns: User input. | "Gets user input for given field.\n\n Can be interrupted with ^C.\n\n :field: Field name.\n :returns: User input." | 82 | false | KenjiTakahashi/td | input | 32,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.