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/zblz/naima/find_ML | LDU_FT | [
"<BEGIN>\n## `memoize`",
"Cache decorator for functions inside model classes\n<END>",
"<BEGIN>\n## `lnprior`",
"Return probability of parameter values according to prior knowledge.\n Parameter limits should be done here through uniform prior ditributions\n<END>",
"<BEGIN>\n## `get_sampler`",
"Generate ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_ML API.
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 find_ML API.
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... | Find Maximum Likelihood parameters as those in the chain with a highest log
probability. | "Find Maximum Likelihood parameters as those in the chain with a highest log\n probability." | 279 | false | zblz/naima | find_ML | 2,973 | |
LDU_FT/coopernurse/barrister/parse_enum | LDU_FT | [
"<BEGIN>\n## `get_checksum`",
"Returns a checksum based on the IDL that ignores comments and \n ordering, but detects changes to types, parameter order, \n and enum values.\n<END>",
"<BEGIN>\n## `contract_from_file`",
"Loads a Barrister IDL JSON from the given file and returns a Contract class",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_enum API.
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 parse_enum API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a docco section for the given enum.
:Parameters:
enum
Parsed IDL enum dict. Keys: 'comment', 'name', 'values' | "Returns a docco section for the given enum.\n\n :Parameters:\n enum\n Parsed IDL enum dict. Keys: 'comment', 'name', 'values'" | 126 | false | coopernurse/barrister | parse_enum | 2,974 | |
LDU_FT/ryan-roemer/django-cloud-browser/document | LDU_FT | [
"<BEGIN>\n## `is_key`",
"Return ``True`` if result is a key object.\n<END>",
"<BEGIN>\n## `parse_bool`",
"Convert ``string`` or ``bool`` to ``bool``.\n<END>",
"<BEGIN>\n## `container_permitted`",
"Return whether or not a container is permitted.",
" :param name: Container name.\n :return: `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the document API.
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 document API.
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... | View single document from path.
:param path: Path to resource, including container as first part of path. | "View single document from path.\n\n :param path: Path to resource, including container as first part of path." | 96 | false | ryan-roemer/django-cloud-browser | document | 2,975 | |
LDU_FT/pqn/neural/__cost | LDU_FT | [
"<BEGIN>\n## `predict`",
"Returns predictions of input test cases.\n<END>",
"<BEGIN>\n## `__cost`",
"Computes activation, cost function, and derivative.\n<END>",
"<BEGIN>\n## `__roll`",
"Converts parameter array back into matrices.\n<END>",
"<BEGIN>\n## `__unroll`",
"Converts parameter matrices into a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __cost API.
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 __cost API.
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 ... | Computes activation, cost function, and derivative. | "Computes activation, cost function, and derivative." | 10 | false | pqn/neural | __cost | 2,976 | |
LDU_FT/aisthesis/pynance/info | LDU_FT | [
"<BEGIN>\n## `optimize`",
"Return parameters for portfolio optimization.",
" Parameters\n ----------\n exp_rets : ndarray\n Vector of expected returns for each investment..\n covs : ndarray\n Covariance matrix for the given investments.",
" Returns\n ---------\n a : ndarray\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Show expiration dates, equity price, quote time.
Returns
-------
self : :class:`~pynance.opt.core.Options`
Returns a reference to the calling object to allow
chaining.
expiries : :class:`pandas.tseries.index.DatetimeIndex`
Examples
--------
... | "Show expiration dates, equity price, quote time.\n\n Returns\n -------\n self : :class:`~pynance.opt.core.Options`\n Returns a reference to the calling object to allow\n chaining.\n\n expiries : :class:`pandas.tseries.index.DatetimeIndex`\n\n Examples\n -... | 231 | false | aisthesis/pynance | info | 2,977 | |
LDU_FT/tmux-python/tmuxp/scan_config_argument | LDU_FT | [
"<BEGIN>\n## `get_config_dir`",
"Return tmuxp configuration directory.",
" ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan_config_argument 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 scan_config_argument API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Validate / translate config name/path values for click config arg.
Wrapper on top of :func:`cli.scan_config`. | "Validate / translate config name/path values for click config arg.\n\n Wrapper on top of :func:`cli.scan_config`." | 161 | false | tmux-python/tmuxp | scan_config_argument | 2,978 | |
LDU_FT/jason-weirather/py-seq-tools/calculate_overlap | LDU_FT | [
"<BEGIN>\n## `sort_ranges`",
"from an array of ranges, make a sorted array of ranges",
" :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>",
"<BEGIN>\n## `merge_ranges`",
"from a list of genomic range or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calculate_overlap API.
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 calculate_overlap API.
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 the array that describes how junctions overlap | "Create the array that describes how junctions overlap" | 449 | false | jason-weirather/py-seq-tools | calculate_overlap | 2,979 | |
LDU_FT/ktbyers/netmiko/enable | LDU_FT | [
"<BEGIN>\n## `show_version`",
"Execute show version command using Netmiko.\n<END>",
"<BEGIN>\n## `main`",
"Use threads and Netmiko to connect to each of the devices. Execute\n 'show version' on each device. Record the amount of time required to do this.\n<END>",
"<BEGIN>\n## `session_preparation`",
"Pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enable API.
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 enable API.
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 ... | Enter enable mode.
:param cmd: Device command to enter enable mode
:type cmd: str
:param pattern: pattern to search for indicating device is waiting for password
:type pattern: str
:param re_flags: Regular expression flags used in conjunction with pattern
:type re_flag... | "Enter enable mode.\n\n :param cmd: Device command to enter enable mode\n :type cmd: str\n\n :param pattern: pattern to search for indicating device is waiting for password\n :type pattern: str\n\n :param re_flags: Regular expression flags used in conjunction with pattern\n :ty... | 532 | false | ktbyers/netmiko | enable | 2,980 | |
LDU_FT/InfoAgeTech/django-core/is_valid_hex | LDU_FT | [
"<BEGIN>\n## `build_link`",
"Builds an html link.",
" :param href: link for the anchor element\n :param text: text for the anchor element\n :param attrs: other attribute kwargs",
" >>> build_link('xyz.com', 'hello', 'big')\n u'<a href=\"xyz.com\" class=\"big\">hello</a>'\n >>> build_link('xy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_hex API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid_hex API.
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... | Boolean indicating of the value is a valid hex value. | "Boolean indicating of the value is a valid hex value." | 206 | false | InfoAgeTech/django-core | is_valid_hex | 2,981 | |
LDU_FT/wal-e/wal-e/delete_with_retention | LDU_FT | [
"<BEGIN>\n## `configure`",
"Configure logging.",
" Borrowed from logging.basicConfig",
" Uses the IndentFormatter instead of the regular Formatter",
" Also, opts the caller into Syslog output, unless syslog could not\n be opened for some reason or another, in which case a warning will\n be pr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_with_retention 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 delete_with_retention API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Retain the num_to_retain most recent backups and delete all data
before them. | "Retain the num_to_retain most recent backups and delete all data\n before them." | 214 | false | wal-e/wal-e | delete_with_retention | 2,982 | |
LDU_FT/productml/blurr/build_expression | LDU_FT | [
"<BEGIN>\n## `run_evaluate`",
"Overrides the base evaluation to set the value to the evaluation result of the value\n expression in the schema\n<END>",
"<BEGIN>\n## `set`",
"Sets the value of a key to a supplied value\n<END>",
"<BEGIN>\n## `increment`",
"Increments the value set against a key. If ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_expression API.
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_expression API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Builds an expression object. Adds an error if expression creation has errors. | "Builds an expression object. Adds an error if expression creation has errors." | 119 | false | productml/blurr | build_expression | 2,983 | |
LDU_FT/concordusapps/alchemist/flush | LDU_FT | [
"<BEGIN>\n## `shell`",
"Runs the command-line client for the specified database.\n<END>",
"<BEGIN>\n## `make_module_class`",
"Takes the module referenced by name and make it a full class.\n<END>",
"<BEGIN>\n## `_component_of`",
"Get the root package or module of the passed module.\n<END>",
"<BEGIN>\n## ... | 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... | Flush the specified names from the specified databases.
This can be highly destructive as it destroys all data. | "Flush the specified names from the specified databases.\n\n This can be highly destructive as it destroys all data." | 27 | false | concordusapps/alchemist | flush | 2,984 | |
LDU_FT/mozilla/build-mar/safejoin | LDU_FT | [
"<BEGIN>\n## `add_signature_block`",
"Add a signature block to marfile, a MarReader object.",
" Productversion and channel are preserved, but any existing signatures are overwritten.",
" Args:\n src_fileobj (file object): The input MAR file to add a signature to\n dest_fileobj (file object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safejoin API.
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 safejoin API.
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... | Safely joins paths together.
The result will always be a subdirectory under `base`, otherwise ValueError
is raised.
Args:
base (str): base path
elements (list of strings): path elements to join to base
Returns:
elements joined to base | "Safely joins paths together.\n\n The result will always be a subdirectory under `base`, otherwise ValueError\n is raised.\n\n Args:\n base (str): base path\n elements (list of strings): path elements to join to base\n\n Returns:\n elements joined to base" | 146 | false | mozilla/build-mar | safejoin | 2,985 | |
LDU_FT/ui/django-post_office/release | LDU_FT | [
"<BEGIN>\n## `get_upload_path`",
"Overriding to store the original filename\n<END>",
"<BEGIN>\n## `get_prep_value`",
"We need to accomodate queries where a single email,\n or list of email addresses is supplied as arguments. For example:",
" - Email.objects.filter(to='mail@example.com')\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API.
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 release API.
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 delete the lock files. Doesn't matter if we fail | "Try to delete the lock files. Doesn't matter if we fail" | 40 | false | ui/django-post_office | release | 2,986 | |
LDU_FT/GuyAllard/markov_clustering/convert_to_adjacency_matrix | LDU_FT | [
"<BEGIN>\n## `is_undirected`",
"Determine if the matrix reprensents a directed graph",
" :param matrix: The matrix to tested\n :returns: boolean\n<END>",
"<BEGIN>\n## `convert_to_adjacency_matrix`",
"Converts transition matrix into adjacency matrix",
" :param matrix: The matrix to be converted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_adjacency_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_adjacency_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Converts transition matrix into adjacency matrix
:param matrix: The matrix to be converted
:returns: adjacency matrix | "Converts transition matrix into adjacency matrix\n\n :param matrix: The matrix to be converted\n :returns: adjacency matrix" | 41 | false | GuyAllard/markov_clustering | convert_to_adjacency_matrix | 2,987 | |
LDU_FT/chop-dbhi/varify-data-warehouse/run_from_argv | LDU_FT | [
"<BEGIN>\n## `read`",
"Reads up to size bytes, but always completes the last line.\n<END>",
"<BEGIN>\n## `readline`",
"The size is ignored since a complete line must be read.\n<END>",
"<BEGIN>\n## `process_line`",
"Process a single record. This assumes only a single sample output.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_from_argv API.
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 run_from_argv API.
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... | Set up any environment changes requested (e.g., Python path and Django
settings), then run this command. | "Set up any environment changes requested (e.g., Python path and Django\n settings), then run this command." | 53 | false | chop-dbhi/varify-data-warehouse | run_from_argv | 2,988 | |
LDU_FT/pydanny-archive/django-uni-form/render_layout | LDU_FT | [
"<BEGIN>\n## `as_uni_form`",
"The original and still very useful way to generate a uni-form form/formset::",
" {% load uni_form_tags %}",
" <form class=\"uniForm\" action=\"post\">\n {% csrf_token %}\n {{ myform|as_uni_form }}\n </form>\n<END>",
"<BEGIN>\n## `as_un... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_layout API.
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 render_layout API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Returns safe html of the rendering of the layout | "Returns safe html of the rendering of the layout" | 36 | false | pydanny-archive/django-uni-form | render_layout | 2,989 | |
LDU_FT/grahame/sedge/get_lines | LDU_FT | [
"<BEGIN>\n## `check_or_confirm_overwrite`",
"Returns True if OK to proceed, False otherwise\n<END>",
"<BEGIN>\n## `cli`",
"Template and share OpenSSH ssh_config(5) files. A preprocessor for\n OpenSSH configurations.\n<END>",
"<BEGIN>\n## `init`",
"Initialise ~./sedge/config file if none exists.\n Go... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | get the lines for this section
visited_set is used to avoid visiting same section
twice, if we've got a diamond in the @is setup | "get the lines for this section\n visited_set is used to avoid visiting same section\n twice, if we've got a diamond in the @is setup" | 14 | false | grahame/sedge | get_lines | 2,990 | |
LDU_FT/square/pylink/release | LDU_FT | [
"<BEGIN>\n## `main`",
"Prints the core's information.",
" Args:\n jlink_serial (str): the J-Link serial number\n device (str): the target CPU",
" Returns:\n Always returns ``0``.",
" Raises:\n JLinkException: on error\n<END>",
"<BEGIN>\n## `acquire`",
"Attempts to acquire a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API.
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 release API.
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... | Cleans up the lockfile if it was acquired.
Args:
self (JLock): the ``JLock`` instance
Returns:
``False`` if the lock was not released or the lock is not acquired,
otherwise ``True``. | "Cleans up the lockfile if it was acquired.\n\n Args:\n self (JLock): the ``JLock`` instance\n\n Returns:\n ``False`` if the lock was not released or the lock is not acquired,\n otherwise ``True``." | 949 | false | square/pylink | release | 2,991 | |
LDU_FT/benvanwerkhoven/kernel_tuner/run_kernel | LDU_FT | [
"<BEGIN>\n## `tune`",
"Find the best performing kernel configuration in the parameter space",
" :params runner: A runner from kernel_tuner.runners\n :type runner: kernel_tuner.runner",
" :param kernel_options: A dictionary with all options for the kernel.\n :type kernel_options: dict",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_kernel API.
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 run_kernel API.
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... | runs the CUDA kernel passed as 'func'
:param func: A PyCuda kernel compiled for this specific kernel configuration
:type func: pycuda.driver.Function
:param gpu_args: A list of arguments to the kernel, order should match the
order in the code. Allowed values are either variables in... | "runs the CUDA kernel passed as 'func'\n\n :param func: A PyCuda kernel compiled for this specific kernel configuration\n :type func: pycuda.driver.Function\n\n :param gpu_args: A list of arguments to the kernel, order should match the\n order in the code. Allowed values are either varia... | 294 | false | benvanwerkhoven/kernel_tuner | run_kernel | 2,992 | |
LDU_FT/stlehmann/pdftools/pdf_remove | LDU_FT | [
"<BEGIN>\n## `pdf_merge`",
"Merge multiple Pdf input files in one output file.\n :param inputs: input files\n :param output: output file\n :param delete: delete input files after completion if true\n<END>",
"<BEGIN>\n## `pdf_rotate`",
"Rotate the given Pdf files clockwise or counter clockwise.\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_remove API.
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 pdf_remove API.
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... | Remove pages from a PDF source file.
:param source: pdf source file
:param pages: list of page numbers or range expressions
:param output: pdf output file | "Remove pages from a PDF source file.\n :param source: pdf source file\n :param pages: list of page numbers or range expressions\n :param output: pdf output file" | 16 | false | stlehmann/pdftools | pdf_remove | 2,993 | |
LDU_FT/chriso/gauged/replace_blocks | LDU_FT | [
"<BEGIN>\n## `insert_keys`",
"Insert keys into a table which assigns an ID\n<END>",
"<BEGIN>\n## `replace_blocks`",
"Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)\n<END>",
"<BEGIN>\n## `remove_namespace`",
"Remove all data ass... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_blocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace_blocks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Replace multiple blocks. blocks must be a list of tuples where
each tuple consists of (namespace, offset, key, data) | "Replace multiple blocks. blocks must be a list of tuples where\n each tuple consists of (namespace, offset, key, data)" | 62 | false | chriso/gauged | replace_blocks | 2,994 | |
LDU_FT/theonion/django-bulbs/get_group_filters | LDU_FT | [
"<BEGIN>\n## `save`",
"Kicks off celery task to re-save associated special coverages to percolator",
" :param args: inline arguments (optional)\n :param kwargs: keyword arguments\n :return: `bulbs.campaigns.Campaign`\n<END>",
"<BEGIN>\n## `get_field_info`",
"This method is basically a m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_group_filters API.
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_group_filters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return es OR filters to include all special coverage group conditions. | "Return es OR filters to include all special coverage group conditions." | 277 | false | theonion/django-bulbs | get_group_filters | 2,995 | |
LDU_FT/fuzeman/PyUPnP/popvalue | LDU_FT | [
"<BEGIN>\n## `twisted_absolute_path`",
"Hack to fix twisted not accepting absolute URIs\n<END>",
"<BEGIN>\n## `configure`",
"Configure Logr",
" @param handler: Logger message handler\n @type handler: logging.Handler or None",
" @param formatter: Logger message Formatter\n @type... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the popvalue API.
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 popvalue API.
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... | D.popvalue(k[,d]) -> v, remove specified key and return the corresponding value.
If key is not found, d is returned if given, otherwise KeyError is raised | "D.popvalue(k[,d]) -> v, remove specified key and return the corresponding value.\n If key is not found, d is returned if given, otherwise KeyError is raised" | 29 | false | fuzeman/PyUPnP | popvalue | 2,996 | |
LDU_FT/archman/beamline/get_rpndict_flag | LDU_FT | [
"<BEGIN>\n## `plotLattice`",
"function plot beamline defined by ``beamlinepatchlist``, which is a set of patches for all elements",
" :param beamlinepatchlist: generated by function ``makeBeamline()``\n :param fignum: figure number, 1 by default\n :param fig_size: figure size, 20 inch by default\n :... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rpndict_flag API.
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_rpndict_flag API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | calculate flag set, the value is True or False,
if rpndict value is not None, flag is True, or False
if set with only one item, i.e. True returns,
means values of rpndict are all valid float numbers,
then finally return True, or False | "calculate flag set, the value is True or False,\n if rpndict value is not None, flag is True, or False\n if set with only one item, i.e. True returns,\n means values of rpndict are all valid float numbers,\n then finally return True, or False" | 318 | false | archman/beamline | get_rpndict_flag | 2,997 | |
LDU_FT/rodynnz/xccdf/load_children | LDU_FT | [
"<BEGIN>\n## `update_xml_element`",
"Updates the xml element contents to matches the instance contents.",
" :returns: Updated XML element.\n :rtype: lxml.etree._Element\n<END>",
"<BEGIN>\n## `to_xml_string`",
"Exports the element in XML format.",
" :returns: element in XML format.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_children API.
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 load_children API.
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... | Load the subelements from the xml_element in its correspondent classes.
:returns: List of child objects.
:rtype: list
:raises CardinalityException: If there is more than one Version child. | "Load the subelements from the xml_element in its correspondent classes.\n\n :returns: List of child objects.\n :rtype: list\n :raises CardinalityException: If there is more than one Version child." | 77 | false | rodynnz/xccdf | load_children | 2,998 | |
LDU_FT/basvandenbroek/gcloud_taskqueue/path | LDU_FT | [
"<BEGIN>\n## `get_items_from_response`",
"Yield :class:`.taskqueue.task.Task` items from response.",
" :type response: dict\n :param response: The JSON API response for a page of tasks.\n<END>",
"<BEGIN>\n## `full_name`",
"Fully-qualified name used in taskqueues / tasks APIs\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | Getter property for the URL path to this Task.
:rtype: string
:returns: The URL path to this task. | "Getter property for the URL path to this Task.\n\n :rtype: string\n :returns: The URL path to this task." | 74 | false | basvandenbroek/gcloud_taskqueue | path | 2,999 | |
LDU_FT/alefnula/tea/__rmfile | LDU_FT | [
"<BEGIN>\n## `smart_text`",
"Return a unicode object representing 's'.\r",
" Treats bytes using the 'encoding' codec.\r",
" If strings_only is True, don't convert (some) non-string-like objects.\n<END>",
"<BEGIN>\n## `smart_bytes`",
"Return a bytes version of 's' encoded as specified in 'encoding'.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __rmfile API.
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 __rmfile API.
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... | Delete a file.
Args:
path (str): Path to the file that needs to be deleted.
Returns:
bool: True if the operation is successful, False otherwise. | "Delete a file.\n\n Args:\n path (str): Path to the file that needs to be deleted.\n\n Returns:\n bool: True if the operation is successful, False otherwise." | 240 | false | alefnula/tea | __rmfile | 3,000 | |
LDU_FT/jameslyons/pycipher/decipher | LDU_FT | [
"<BEGIN>\n## `encipher`",
"Encipher string using Atbash cipher.",
" Example::",
" ciphertext = Atbash().encipher(plaintext) ",
" :param string: The string to encipher.\n :param keep_punct: if true, punctuation and spacing are retained. If false, it is all removed. Default... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decipher API.
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 decipher API.
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... | Decipher string using Bifid cipher according to initialised key. Punctuation and whitespace
are removed from the input.
Example::
plaintext = Bifid('phqgmeaylnofdxkrcvszwbuti',5).decipher(ciphertext)
:param string: The string to decipher.
:returns: The deciphered stri... | "Decipher string using Bifid cipher according to initialised key. Punctuation and whitespace\n are removed from the input.\n\n Example::\n\n plaintext = Bifid('phqgmeaylnofdxkrcvszwbuti',5).decipher(ciphertext) \n\n :param string: The string to decipher.\n :returns: The deciph... | 135 | false | jameslyons/pycipher | decipher | 3,001 | |
LDU_FT/deschler/django-modeltranslation/_get_fieldsets_post_form_or_formset | LDU_FT | [
"<BEGIN>\n## `autodiscover`",
"Auto-discover INSTALLED_APPS translation.py modules and fail silently when\n not present. This forces an import on them to register.\n Also import explicit modules.\n<END>",
"<BEGIN>\n## `register`",
"Registers the given model(s) with the given translation options.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fieldsets_post_form_or_formset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_fieldsets_post_form_or_formset API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates it... | Generic get_fieldsets code, shared by
TranslationAdmin and TranslationInlineModelAdmin. | "Generic get_fieldsets code, shared by\n TranslationAdmin and TranslationInlineModelAdmin." | 122 | false | deschler/django-modeltranslation | _get_fieldsets_post_form_or_formset | 3,002 | |
LDU_FT/peterdemin/pip-compile-multi/filter_sections | 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 filter_sections API.
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 filter_sections API.
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... | Filter through pairs (name, options)
leaving only those that match runtime.
If no requirements sections found, return None.
If some sections found, but none matches current runtime, return empty list. | "Filter through pairs (name, options)\n leaving only those that match runtime.\n\n If no requirements sections found, return None.\n If some sections found, but none matches current runtime, return empty list." | 61 | false | peterdemin/pip-compile-multi | filter_sections | 3,003 | |
LDU_FT/ska-sa/montblanc/source_range_tuple | LDU_FT | [
"<BEGIN>\n## `encode`",
"Produces a numpy array of integers which encode\n the supplied cube dimensions.\n<END>",
"<BEGIN>\n## `decode`",
"Produce a list of dictionaries for each dimension in this transcoder\n<END>",
"<BEGIN>\n## `dl_cub`",
"Download cub archive from cub_url and store it in cub_arc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the source_range_tuple 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 source_range_tuple 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... | Given a range of source numbers, as well as a dictionary
containing the numbers of each source, returns a dictionary
containing tuples of the start and end index
for each source variable type. | "Given a range of source numbers, as well as a dictionary\n containing the numbers of each source, returns a dictionary\n containing tuples of the start and end index\n for each source variable type." | 197 | false | ska-sa/montblanc | source_range_tuple | 3,004 | |
LDU_FT/sashahart/cookies/_parse_response | LDU_FT | [
"<BEGIN>\n## `strip_spaces_and_quotes`",
"Remove invalid whitespace and/or single pair of dquotes and return None\n for empty strings.",
" Used to prepare cookie values, path, and domain attributes in a way which\n tolerates simple formatting mistakes and standards variations.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Turn one or more lines of 'Set-Cookie:' header data into a list of dicts
mapping attribute names to attribute values (as plain strings). | "Turn one or more lines of 'Set-Cookie:' header data into a list of dicts\n mapping attribute names to attribute values (as plain strings)." | 63 | false | sashahart/cookies | _parse_response | 3,005 | |
LDU_FT/20c/vodka/newapp | LDU_FT | [
"<BEGIN>\n## `is_config_container`",
"checks whether v is of type list,dict or Config\n<END>",
"<BEGIN>\n## `check`",
"Checks that the config values specified in key name is\n sane according to config attributes defined as properties\n on this class\n<END>",
"<BEGIN>\n## `validate`",
"Valida... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the newapp API.
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 newapp API.
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 ... | Generates all files for a new vodka app at the specified location.
Will generate to current directory if no path is specified | "Generates all files for a new vodka app at the specified location.\n\n Will generate to current directory if no path is specified" | 56 | false | 20c/vodka | newapp | 3,006 | |
LDU_FT/ellmetha/django-machina/previous_sibling | LDU_FT | [
"<BEGIN>\n## `recurseforumcontents`",
"Iterates over the content nodes and renders the contained forum block for each node.\n<END>",
"<BEGIN>\n## `forum_list`",
"Renders the considered forum list.",
" This will render the given list of forums by respecting the order and the depth of each\n forum in th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the previous_sibling API.
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 previous_sibling API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns the previous sibling of the current node.
The previous sibling is searched in the parent node if we are not considering a top-level
node. Otherwise it is searched inside the list of nodes (which should be sorted by tree ID)
that is associated with the considered tree instance. | "Returns the previous sibling of the current node.\n\n The previous sibling is searched in the parent node if we are not considering a top-level\n node. Otherwise it is searched inside the list of nodes (which should be sorted by tree ID)\n that is associated with the considered tree instance." | 293 | false | ellmetha/django-machina | previous_sibling | 3,007 | |
LDU_FT/jvsteiner/merkletree/add_hash | LDU_FT | [
"<BEGIN>\n## `check_chain`",
"Verify a merkle chain to see if the Merkle root can be reproduced.\n<END>",
"<BEGIN>\n## `check_hex_chain`",
"Verify a merkle chain, with hashes hex encoded, to see if the Merkle root can be reproduced.\n<END>",
"<BEGIN>\n## `add_hash`",
"Add a Node based on a precomputed, he... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Add a Node based on a precomputed, hex encoded, hash value. | "Add a Node based on a precomputed, hex encoded, hash value." | 24 | false | jvsteiner/merkletree | add_hash | 3,008 | |
LDU_FT/has2k1/plotnine/xlabel | LDU_FT | [
"<BEGIN>\n## `iqr`",
"Calculate the IQR for an array of numbers.\n<END>",
"<BEGIN>\n## `freedman_diaconis_bins`",
"Calculate number of hist bins using Freedman-Diaconis rule.\n<END>",
"<BEGIN>\n## `breaks_from_binwidth`",
"Calculate breaks given binwidth",
" Parameters\n ----------\n x_range : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the xlabel API.
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 xlabel API.
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 ... | Determine x-axis label
Parameters
----------
labels : dict
Labels as specified by the user through the ``labs`` or
``xlab`` calls.
Returns
-------
out : str
x-axis label | "Determine x-axis label\n\n Parameters\n ----------\n labels : dict\n Labels as specified by the user through the ``labs`` or\n ``xlab`` calls.\n\n Returns\n -------\n out : str\n x-axis label" | 719 | false | has2k1/plotnine | xlabel | 3,009 | |
LDU_FT/woolfson-group/isambard/tag_ca_geometry | LDU_FT | [
"<BEGIN>\n## `covalent_bonds`",
"Returns all the covalent bonds in a list of `Atom` pairs.",
" Notes\n -----\n Uses information `element_data`, which can be accessed directly\n through this module i.e. `isambard.ampal.interactions.element_data`.",
" Parameters\n ----------\n atoms : [(`At... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag_ca_geometry API.
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 tag_ca_geometry API.
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... | Tags each `Monomer` in the `Assembly` with its helical geometry.
Parameters
----------
force : bool, optional
If True the tag will be run even if `Monomers` are already tagged.
reference_axis : list(numpy.array or tuple or list), optional
Coordinates to feed to g... | "Tags each `Monomer` in the `Assembly` with its helical geometry.\n\n Parameters\n ----------\n force : bool, optional\n If True the tag will be run even if `Monomers` are already tagged.\n reference_axis : list(numpy.array or tuple or list), optional\n Coordinates to f... | 880 | false | woolfson-group/isambard | tag_ca_geometry | 3,010 | |
LDU_FT/J535D165/recordlinkage/add | LDU_FT | [
"<BEGIN>\n## `_map_tril_1d_on_2d`",
"Map 1d indices on lower triangular matrix in 2d.\n<END>",
"<BEGIN>\n## `random_pairs_without_replacement_large_frames`",
"Make a sample of random pairs with replacement\n<END>",
"<BEGIN>\n## `clean`",
"Clean string variables.",
" Clean strings in the Series by rem... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add a index method.
This method is used to add index algorithms. If multiple algorithms
are added, the union of the record pairs from the algorithm is taken.
Parameters
----------
model : list, class
A (list of) index algorithm(s) from
:mod:`recordlinkag... | "Add a index method.\n\n This method is used to add index algorithms. If multiple algorithms\n are added, the union of the record pairs from the algorithm is taken.\n\n Parameters\n ----------\n model : list, class\n A (list of) index algorithm(s) from\n :mod:`re... | 339 | false | J535D165/recordlinkage | add | 3,011 | |
LDU_FT/FNNDSC/med2image/list_i2str | LDU_FT | [
"<BEGIN>\n## `verbosity`",
"get/set the verbosity level.",
" The verbosity level filters messages that are output\n to the console. Only messages tagged with a verbosity\n less-than-or-equal-to the class verbosity are output.",
" This does not affect output to non-console devices\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_i2str API.
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 list_i2str API.
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... | Convert an integer list into a string list. | "Convert an integer list into a string list." | 131 | false | FNNDSC/med2image | list_i2str | 3,012 | |
LDU_FT/neo4j-contrib/neomodel/_object_resolution | LDU_FT | [
"<BEGIN>\n## `set_connection`",
"Sets the connection URL to the address a Neo4j server is set up at\n<END>",
"<BEGIN>\n## `begin`",
"Begins a new transaction, raises SystemError exception if a transaction is in progress\n<END>",
"<BEGIN>\n## `_object_resolution`",
"Performs in place automatic object resol... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _object_resolution 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 _object_resolution 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... | Performs in place automatic object resolution on a set of results
returned by cypher_query.
The function operates recursively in order to be able to resolve Nodes
within nested list structures. Not meant to be called directly,
used primarily by cypher_query.
:param resu... | "Performs in place automatic object resolution on a set of results\n returned by cypher_query.\n\n The function operates recursively in order to be able to resolve Nodes\n within nested list structures. Not meant to be called directly,\n used primarily by cypher_query.\n \n :pa... | 157 | false | neo4j-contrib/neomodel | _object_resolution | 3,013 | |
LDU_FT/Nic30/ipCorePackager/quartus_add_interface_port | LDU_FT | [
"<BEGIN>\n## `tcl_add_fileset_file`",
":param filename: relative filename with .vhdl or .v",
" :return: add_fileset_file command string\n<END>",
"<BEGIN>\n## `_asQuartusTcl`",
"Add interface to Quartus tcl by specified name map",
" :param buff: line buffer for output\n :param version: Qua... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the quartus_add_interface_port 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 quartus_add_interface_port API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Add subinterface to Quartus interface
:param buff: line buffer for output
:param intfName: name of top interface
:param signal: subinterface to create port for
:param logicName: name of port in Quartus | "Add subinterface to Quartus interface\n\n :param buff: line buffer for output\n :param intfName: name of top interface\n :param signal: subinterface to create port for\n :param logicName: name of port in Quartus" | 33 | false | Nic30/ipCorePackager | quartus_add_interface_port | 3,014 | |
LDU_FT/rapidpro/dash/union | LDU_FT | [
"<BEGIN>\n## `intersection`",
"Return the intersection of lists, using the first list to determine item order\n<END>",
"<BEGIN>\n## `union`",
"Return the union of lists, ordering by first seen in any list\n<END>",
"<BEGIN>\n## `filter_dict`",
"Creates a new dict from an existing dict that only has the giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the union API.
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 union API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Return the union of lists, ordering by first seen in any list | "Return the union of lists, ordering by first seen in any list" | 55 | false | rapidpro/dash | union | 3,015 | |
LDU_FT/thunder-project/thunder/fourier | LDU_FT | [
"<BEGIN>\n## `fromrdd`",
"Load images from a Spark RDD.",
" Input RDD must be a collection of key-value pairs\n where keys are singleton tuples indexing images,\n and values are 2d or 3d ndarrays.",
" Parameters\n ----------\n rdd : SparkRDD\n An RDD containing the images.",
" di... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fourier API.
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 fourier API.
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... | Compute statistics of a Fourier decomposition on series data.
Parameters
----------
freq : int
Digital frequency at which to compute coherence and phase | "Compute statistics of a Fourier decomposition on series data.\n\n Parameters\n ----------\n freq : int\n Digital frequency at which to compute coherence and phase" | 420 | false | thunder-project/thunder | fourier | 3,016 | |
LDU_FT/discontinue/django-secure-js-login/decrypt | LDU_FT | [
"<BEGIN>\n## `get_salt`",
"return the user password salt.\n If the user doesn't exist return a pseudo salt.\n<END>",
"<BEGIN>\n## `display_login_info`",
"Create a message, after login.",
" Because this signal receiver will be called **after** auth.models.update_last_login(), the\n user.last_login i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decrypt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | 1. Decrypt a XOR crypted String.
2. Compare the inserted SHA salt-hash checksum. | "1. Decrypt a XOR crypted String.\n 2. Compare the inserted SHA salt-hash checksum." | 30 | false | discontinue/django-secure-js-login | decrypt | 3,017 | |
LDU_FT/SciTools/biggus/_make_nodes | LDU_FT | [
"<BEGIN>\n## `_groups_of_size`",
"Collect data into fixed-length chunks or blocks.\n<END>",
"<BEGIN>\n## `slice_repr`",
"Turn things like `slice(None, 2, -1)` into `:2:-1`.\n<END>",
"<BEGIN>\n## `biggus_chunk`",
"A function that lazily evaluates a biggus.Chunk. This is useful for\n passing through ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_nodes API.
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 _make_nodes API.
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... | Recursive function that returns the dask items for the given array.
NOTE: Currently assuming that all tasks are a tuple, with the second
item being the keys used to index the source of the respective input
array. | "Recursive function that returns the dask items for the given array.\n\n NOTE: Currently assuming that all tasks are a tuple, with the second\n item being the keys used to index the source of the respective input\n array." | 105 | false | SciTools/biggus | _make_nodes | 3,018 | |
LDU_FT/coinbase/coinbase-python/get_report | LDU_FT | [
"<BEGIN>\n## `set_primary`",
"https://developers.coinbase.com/api/v2#set-account-as-primary\n<END>",
"<BEGIN>\n## `modify`",
"https://developers.coinbase.com/api#modify-an-account\n<END>",
"<BEGIN>\n## `get_address`",
"https://developers.coinbase.com/api/v2#show-addresss\n<END>",
"<BEGIN>\n## `get_addre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_report API.
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 get_report API.
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... | https://developers.coinbase.com/api/v2#show-a-report | "https://developers.coinbase.com/api/v2#show-a-report" | 166 | false | coinbase/coinbase-python | get_report | 3,019 | |
LDU_FT/hyde/commando/metarate | LDU_FT | [
"<BEGIN>\n## `getLoggerWithConsoleHandler`",
"Gets a logger object with a pre-initialized console handler.\n<END>",
"<BEGIN>\n## `getLoggerWithNullHandler`",
"Gets the logger initialized with the `logger_name`\n and a NullHandler.\n<END>",
"<BEGIN>\n## `metarate`",
"Set the values object to the functio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metarate API.
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 metarate API.
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... | Set the values object to the function object's namespace | "Set the values object to the function object's namespace" | 14 | false | hyde/commando | metarate | 3,020 | |
LDU_FT/Yipit/eventlib/find_handlers | LDU_FT | [
"<BEGIN>\n## `listen_for_events`",
"Pubsub event listener",
" Listen for events in the pubsub bus and calls the process function\n when somebody comes to play.\n<END>",
"<BEGIN>\n## `get_ip`",
"Return the IP address inside the HTTP_X_FORWARDED_FOR var inside\n the `request` object.",
" The ret... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_handlers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_handlers API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Small helper to find all handlers associated to a given event
If the event can't be found, an empty list will be returned, since
this is an internal function and all validation against the event
name and its existence was already performed. | "Small helper to find all handlers associated to a given event\n\n If the event can't be found, an empty list will be returned, since\n this is an internal function and all validation against the event\n name and its existence was already performed." | 57 | false | Yipit/eventlib | find_handlers | 3,021 | |
LDU_FT/Bystroushaak/BalancedDiscStorage/_create_dir_path | LDU_FT | [
"<BEGIN>\n## `_unpack_zip`",
"Unpack .zip archive in `file_obj` to given `path`. Make sure, that it\n fits into limits (see :attr:`._max_zipfiles` for details).",
" Args:\n file_obj (file): Opened file-like object.\n path (str): Path into which the .zip will be unpacked.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_dir_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _create_dir_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 ... | Create proper filesystem paths for given `file_hash`.
Args:
file_hash (str): Hash of the file for which the path should be
created.
path (str, default None): Recursion argument, don't set this.
hash_list (list, default None): Recursion argument, don't s... | "Create proper filesystem paths for given `file_hash`.\n\n Args:\n file_hash (str): Hash of the file for which the path should be\n created.\n path (str, default None): Recursion argument, don't set this.\n hash_list (list, default None): Recursion argument, ... | 50 | false | Bystroushaak/BalancedDiscStorage | _create_dir_path | 3,022 | |
LDU_FT/dagwieers/vmguestlib/GetMemSharedMB | LDU_FT | [
"<BEGIN>\n## `OpenHandle`",
"Gets a handle for use with other vSphere Guest API functions. The guest library\n handle provides a context for accessing information about the virtual machine.",
" Virtual machine statistics and state data are associated with a particular guest library\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetMemSharedMB API.
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 GetMemSharedMB API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Retrieves the amount of physical memory associated with this virtual
machine that is copy-on-write (COW) shared on the host. | "Retrieves the amount of physical memory associated with this virtual\n machine that is copy-on-write (COW) shared on the host." | 50 | false | dagwieers/vmguestlib | GetMemSharedMB | 3,023 | |
LDU_FT/fulfilio/python-magento/addcomment | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieve customer data",
" :param id: ID of customer\n :param attributes: `List` of attributes needed\n<END>",
"<BEGIN>\n## `search`",
"Retrieve order list by options using search api. Using this result can\n be paginated",
" :param options: Dictionary of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addcomment API.
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 addcomment API.
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... | Add comment to invoice or change its state
:param invoice_increment_id: Invoice ID | "Add comment to invoice or change its state\n\n :param invoice_increment_id: Invoice ID" | 143 | false | fulfilio/python-magento | addcomment | 3,024 | |
LDU_FT/gofed/gofedlib/commit | LDU_FT | [
"<BEGIN>\n## `compare`",
"Compare two snapshots:\n\t\t- return a list of new packages in this snapshot\n\t\t- return a list of new builds in this snapshot",
"\t\t:param snapshot: distribution snapshot\n\t\t:type snapshot: DistributionSnapshot\n<END>",
"<BEGIN>\n## `branches`",
"Return a list of branches fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the commit API.
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 commit API.
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 ... | Get data for a given commit
Raises KeyError if a commit is not found or not parsed.
:param commit: repository commit
:type commit: string | "Get data for a given commit\n\n\t\tRaises KeyError if a commit is not found or not parsed.\n\n\t\t:param commit: repository commit\n\t\t:type commit: string" | 98 | false | gofed/gofedlib | commit | 3,025 | |
LDU_FT/CitrineInformatics/dftparse/_parse_absorption | LDU_FT | [
"<BEGIN>\n## `_parse_refraction`",
"Parse Energy [eV] ref_ind_xx ref_ind_zz extinct_xx extinct_zz\n<END>",
"<BEGIN>\n## `_is_kpoint`",
"Is this line the start of a new k-point block\n<END>",
"<BEGIN>\n## `_parse_kpoint`",
"Parse the k-point and then continue to iterate over the band energies and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_absorption API.
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 _parse_absorption API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parse Energy, Re sigma xx, Re sigma zz, absorp xx, absorp zz | "Parse Energy, Re sigma xx, Re sigma zz, absorp xx, absorp zz" | 25 | false | CitrineInformatics/dftparse | _parse_absorption | 3,026 | |
LDU_FT/dbarsam/python-vsgen/CompileFilesRelative | LDU_FT | [
"<BEGIN>\n## `_import`",
"Internal method to import instance variables data from a dictionary",
" :param dict datadict: The dictionary containing variables values.\n<END>",
"<BEGIN>\n## `from_section`",
"Creates a :class:`~vsgen.project.VSGProject` from a :class:`~configparser.ConfigParser` section."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the CompileFilesRelative 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 CompileFilesRelative API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Returns a generator iterating over the each file in :attr:`ContentFiles` relative to :attr:`ProjectHome` directory. | "Returns a generator iterating over the each file in :attr:`ContentFiles` relative to :attr:`ProjectHome` directory." | 101 | false | dbarsam/python-vsgen | CompileFilesRelative | 3,027 | |
LDU_FT/zeaphoo/reston/get_certificate | LDU_FT | [
"<BEGIN>\n## `get_access_flags_string`",
"Transform an access flags to the corresponding string",
" :param value: the value of the access flags\n :type value: int",
" :rtype: string\n<END>",
"<BEGIN>\n## `get_shorty_idx_value`",
"Return the string associated to the shorty_idx",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_certificate API.
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_certificate API.
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... | Return a certificate object by giving the name in the apk file | "Return a certificate object by giving the name in the apk file" | 152 | false | zeaphoo/reston | get_certificate | 3,028 | |
LDU_FT/jcrobak/parquet-python/dump_metadata | LDU_FT | [
"<BEGIN>\n## `_get_footer_size`",
"Read the footer size in bytes, which is serialized as little endian.\n<END>",
"<BEGIN>\n## `_read_footer`",
"Read the footer from the given file object and returns a FileMetaData object.",
" This method assumes that the fo references a valid parquet file.\n<END>",
"<B... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_metadata API.
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 dump_metadata API.
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... | Dump metadata about the parquet object with the given filename.
Dump human-readable metadata to specified `out`. Optionally dump the row group metadata as well. | "Dump metadata about the parquet object with the given filename.\n\n Dump human-readable metadata to specified `out`. Optionally dump the row group metadata as well." | 71 | false | jcrobak/parquet-python | dump_metadata | 3,029 | |
LDU_FT/mogproject/mog-commons-python/get_single_key | LDU_FT | [
"<BEGIN>\n## `_detect_encoding`",
"Detect the default encoding for the terminal's output.\n :return: string: encoding string\n<END>",
"<BEGIN>\n## `_get_restore_function`",
"Return the binary function for restoring terminal attributes.\n :return: function (signal, frame) => None:\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_single_key API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get a key from a dict which contains just one item. | "Get a key from a dict which contains just one item." | 49 | false | mogproject/mog-commons-python | get_single_key | 3,030 | |
LDU_FT/Mollom/mollom_python/send_feedback | LDU_FT | [
"<BEGIN>\n## `verify_keys`",
"Verify that the public and private key combination is valid; raises MollomAuthenticationError otherwise\n<END>",
"<BEGIN>\n## `check_content`",
"Requests a ham/spam/unsure classification for content.",
" If rechecking or updating previously checked content, the content_i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_feedback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_feedback API.
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... | Sends feedback to Mollom in the case of false negative or false positives.
Keyword arguments:
reason -- Feedback to give. Can be: "approve", "spam", "unwanted".
"approve" -- Report a false positive (legitimate content that was incorrectly classified as spam).
"spam" -- ... | "Sends feedback to Mollom in the case of false negative or false positives. \n \n Keyword arguments:\n reason -- Feedback to give. Can be: \"approve\", \"spam\", \"unwanted\".\n \"approve\" -- Report a false positive (legitimate content that was incorrectly classified as spam).\n ... | 31 | false | Mollom/mollom_python | send_feedback | 3,031 | |
LDU_FT/fracpete/python-weka-wrapper3/fix_config | LDU_FT | [
"<BEGIN>\n## `main`",
"Runs a clusterer from the command-line. Calls JVM start/stop automatically.\n Use -h to see all options.\n<END>",
"<BEGIN>\n## `update_clusterer`",
"Updates the clusterer with the instance.",
" :param inst: the Instance to update the clusterer with\n :type inst: Insta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Fixes the options, if necessary. I.e., it adds all required elements to the dictionary.
:param options: the options to fix
:type options: dict
:return: the (potentially) fixed options
:rtype: dict | "Fixes the options, if necessary. I.e., it adds all required elements to the dictionary.\n\n :param options: the options to fix\n :type options: dict\n :return: the (potentially) fixed options\n :rtype: dict" | 856 | false | fracpete/python-weka-wrapper3 | fix_config | 3,032 | |
LDU_FT/zmathew/django-backbone/get_object_detail | LDU_FT | [
"<BEGIN>\n## `autodiscover`",
"Auto-discover INSTALLED_APPS backbone_api.py modules.\n<END>",
"<BEGIN>\n## `register`",
"Registers the given backbone view class.\n<END>",
"<BEGIN>\n## `queryset`",
"Returns the queryset (along with ordering) to be used when retrieving object(s).\n<END>",
"<BEGIN>\n## `ge... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_detail API.
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_object_detail API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Handles get requests for the details of the given object. | "Handles get requests for the details of the given object." | 23 | false | zmathew/django-backbone | get_object_detail | 3,033 | |
LDU_FT/jazzband/django-axes/get_cool_off_threshold | LDU_FT | [
"<BEGIN>\n## `get_cool_off`",
"Return the login cool off time interpreted from settings.AXES_COOLOFF_TIME.",
" The return value is either None or timedelta.",
" Notice that the settings.AXES_COOLOFF_TIME is either None, timedelta, or integer of hours,\n and this function offers a unified _timedelta o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_cool_off_threshold 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_cool_off_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get threshold for fetching access attempts from the database. | "Get threshold for fetching access attempts from the database." | 94 | false | jazzband/django-axes | get_cool_off_threshold | 3,034 | |
LDU_FT/awslabs/aws-sam-cli/supports_build_in_container | LDU_FT | [
"<BEGIN>\n## `invoke_common_options`",
"Common CLI options shared by \"local invoke\" and \"local start-api\" commands",
" :param f: Callback passed by Click\n<END>",
"<BEGIN>\n## `get_or_default_template_file_name`",
"Default value for the template file name option is more complex than what Click can ha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supports_build_in_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the supports_build_in_container API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Given a workflow config, this method provides a boolean on whether the workflow can run within a container or not.
Parameters
----------
config namedtuple(Capability)
Config specifying the particular build workflow
Returns
-------
tuple(bool, str)
True, if this workflow can be ... | "Given a workflow config, this method provides a boolean on whether the workflow can run within a container or not.\n\n Parameters\n ----------\n config namedtuple(Capability)\n Config specifying the particular build workflow\n\n Returns\n -------\n tuple(bool, str)\n True, if this workf... | 708 | false | awslabs/aws-sam-cli | supports_build_in_container | 3,035 | |
LDU_FT/dedupeio/dedupe/_blockedPairs | LDU_FT | [
"<BEGIN>\n## `getCentroid`",
"Takes in a list of attribute values for a field,\n evaluates the centroid using the comparator,\n & returns the centroid (i.e. the 'best' value for the field)\n<END>",
"<BEGIN>\n## `getCanonicalRep`",
"Given a list of records within a duplicate cluster, constructs a\n ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _blockedPairs API.
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 _blockedPairs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Generate tuples of pairs of records from a block of records
Arguments:
blocks -- an iterable sequence of blocked records | "Generate tuples of pairs of records from a block of records\n\n Arguments:\n\n blocks -- an iterable sequence of blocked records" | 136 | false | dedupeio/dedupe | _blockedPairs | 3,036 | |
LDU_FT/Duke-GCB/lando-messaging/delete_queue | LDU_FT | [
"<BEGIN>\n## `raise_on_major_version_mismatch`",
"Raises error if major version is different. Other wise logs the difference.\n :param work_request: WorkRequest: request that had a different version\n :param local_version: str: our version string that does not match message.version\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Delete a queue with the specified name.
:param queue_name:
:return: | "Delete a queue with the specified name.\n :param queue_name:\n :return:" | 50 | false | Duke-GCB/lando-messaging | delete_queue | 3,037 | |
LDU_FT/aktaylor08/RosbagPandas/prune_topics | LDU_FT | [
"<BEGIN>\n## `buildParser`",
"Builds the parser for reading the command line arguments\n<END>",
"<BEGIN>\n## `parse_series_args`",
"Return which topics and which field keys need to be examined\n for plotting\n<END>",
"<BEGIN>\n## `bag_to_dataframe`",
"Read in a rosbag file and create a pandas data fram... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prune_topics API.
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 prune_topics API.
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... | prune the topics. If include is None add all to the set of topics to
use if include is a string regex match that string,
if it is a list use the list
If exclude is None do nothing, if string remove the topics with regex,
if it is a list remove those topics | "prune the topics. If include is None add all to the set of topics to\n use if include is a string regex match that string,\n if it is a list use the list\n\n If exclude is None do nothing, if string remove the topics with regex,\n if it is a list remove those topics" | 28 | false | aktaylor08/RosbagPandas | prune_topics | 3,038 | |
LDU_FT/kivy/python-for-android/shorten_string | LDU_FT | [
"<BEGIN>\n## `dist_dir`",
"The dist dir at which to place the finished distribution.\n<END>",
"<BEGIN>\n## `check_recipe_choices`",
"Checks what recipes are being built to see which of the alternative\n and optional dependencies are being used,\n and returns a list of these.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shorten_string API.
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 shorten_string API.
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... | make limited length string in form:
"the string is very lo...(and 15 more)" | "make limited length string in form:\n \"the string is very lo...(and 15 more)\"" | 404 | false | kivy/python-for-android | shorten_string | 3,039 | |
LDU_FT/Kane610/deconz/async_event_handler | LDU_FT | [
"<BEGIN>\n## `async_load_parameters`",
"Load deCONZ parameters.",
" Returns lists of indices of which devices was added.\n<END>",
"<BEGIN>\n## `async_put_state`",
"Set state of object in deCONZ.",
" Field is a string representing a specific device in deCONZ\n e.g. field='/lights/1/sta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_event_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the async_event_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Receive event from websocket and identifies where the event belong.
{
"t": "event",
"e": "changed",
"r": "sensors",
"id": "12",
"state": { "buttonevent": 2002 }
} | "Receive event from websocket and identifies where the event belong.\n\n {\n \"t\": \"event\",\n \"e\": \"changed\",\n \"r\": \"sensors\",\n \"id\": \"12\",\n \"state\": { \"buttonevent\": 2002 }\n }" | 56 | false | Kane610/deconz | async_event_handler | 3,040 | |
LDU_FT/bjodah/pyodesys/predefined | LDU_FT | [
"<BEGIN>\n## `_is_autonomous`",
"Whether the expressions for the dependent variables are autonomous.",
" Note that the system may still behave as an autonomous system on the interface\n of :meth:`integrate` due to use of pre-/post-processors.\n<END>",
"<BEGIN>\n## `symmetricsys`",
"A factory function ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predefined API.
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 predefined API.
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... | Integrate with user chosen output.
Parameters
----------
integrator : str
See :meth:`integrate`.
y0 : array_like
See :meth:`integrate`.
xout : array_like
params : array_like
See :meth:`integrate`.
\*\*kwargs:
See :m... | "Integrate with user chosen output.\n\n Parameters\n ----------\n integrator : str\n See :meth:`integrate`.\n y0 : array_like\n See :meth:`integrate`.\n xout : array_like\n params : array_like\n See :meth:`integrate`.\n \\*\\*kwargs:\n ... | 113 | false | bjodah/pyodesys | predefined | 3,041 | |
LDU_FT/jeffrimko/Auxly/has | LDU_FT | [
"<BEGIN>\n## `silent`",
"Calls the given shell command. Output will not be displayed. Returns the\n status code.",
" **Examples**:\n ::\n auxly.shell.silent(\"ls\")\n<END>",
"<BEGIN>\n## `has`",
"Returns true if the give shell command is available.",
" **Examples**:\n ::\n aux... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has API.
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 has API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Returns true if the give shell command is available.
**Examples**:
::
auxly.shell.has("ls") # True | "Returns true if the give shell command is available.\n\n **Examples**:\n ::\n auxly.shell.has(\"ls\") # True" | 65 | false | jeffrimko/Auxly | has | 3,042 | |
LDU_FT/wilson-eft/wilson/Fierz_to_EOS_lep | LDU_FT | [
"<BEGIN>\n## `alpha_s`",
"3-loop computation of alpha_s for f flavours\n with initial condition alpha_s(MZ) = 0.1185\n<END>",
"<BEGIN>\n## `m_b`",
"r\"\"\"Get running b quark mass in the MSbar scheme at the scale `scale`\n in the theory with `f` dynamical quark flavours starting from $m_b(m_b)$\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the Fierz_to_EOS_lep API.
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 Fierz_to_EOS_lep API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | From semileptonic Fierz basis to EOS semileptonic basis for Class V.
C should be the corresponding leptonic Fierz basis and
`ddll` should be of the form 'sbl_enu_tau', 'dbl_munu_e' etc. | "From semileptonic Fierz basis to EOS semileptonic basis for Class V.\n C should be the corresponding leptonic Fierz basis and\n `ddll` should be of the form 'sbl_enu_tau', 'dbl_munu_e' etc." | 216 | false | wilson-eft/wilson | Fierz_to_EOS_lep | 3,043 | |
LDU_FT/pantsbuild/pants/_make_rule | LDU_FT | [
"<BEGIN>\n## `load_file_contents`",
"Loads config from the given string payloads.",
" A handful of seed values will be set to act as if specified in the loaded config file's DEFAULT\n section, and be available for use in substitutions. The caller may override some of these\n seed values.",
" :par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_rule API.
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 _make_rule API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | A @decorator that declares that a particular static function may be used as a TaskRule.
As a special case, if the output_type is a subclass of `Goal`, the `Goal.Options` for the `Goal`
are registered as dependency Optionables.
:param type output_type: The return/output type for the Rule. This must be a concrete... | "A @decorator that declares that a particular static function may be used as a TaskRule.\n\n As a special case, if the output_type is a subclass of `Goal`, the `Goal.Options` for the `Goal`\n are registered as dependency Optionables.\n\n :param type output_type: The return/output type for the Rule. This must be a co... | 3,372 | true | pantsbuild/pants | _make_rule | 3,044 | |
LDU_FT/nicferrier/md/getrawpartid | LDU_FT | [
"<BEGIN>\n## `_list`",
"Do structured list output.",
" Sorts the list by date, possibly reversed, filtered from 'since'.",
" The returned list is: foldername, message key, message object\n<END>",
"<BEGIN>\n## `ls`",
"Do standard text list of the folder to the stream.",
" 'foldername... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getrawpartid API.
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 getrawpartid API.
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... | Get a specific part from the message and print it raw. | "Get a specific part from the message and print it raw." | 135 | false | nicferrier/md | getrawpartid | 3,045 | |
LDU_FT/simonw/datasette/execute | LDU_FT | [
"<BEGIN>\n## `fail_if_publish_binary_not_installed`",
"Exit (with error message) if ``binary` isn't installed\n<END>",
"<BEGIN>\n## `path_from_row_pks`",
"Generate an optionally URL-quoted unique identifier\n for a row from its primary keys.\n<END>",
"<BEGIN>\n## `detect_fts`",
"Detect if table has... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute API.
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 execute API.
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... | Executes sql against db_name in a thread | "Executes sql against db_name in a thread" | 36 | false | simonw/datasette | execute | 3,046 | |
LDU_FT/hvac/hvac/lookup_token | LDU_FT | [
"<BEGIN>\n## `read_init_status`",
"Read the initialization status of Vault.",
" Supported methods:\n GET: /sys/init. Produces: 200 application/json",
" :return: The JSON response of the request.\n :rtype: dict\n<END>",
"<BEGIN>\n## `initialize`",
"Initialize a new Vault.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | GET /auth/token/lookup/<token>
GET /auth/token/lookup-accessor/<token-accessor>
GET /auth/token/lookup-self
:param token:
:type token: str.
:param accessor:
:type accessor: str.
:param wrap_ttl:
:type wrap_ttl: int.
:return:
:rtype: | "GET /auth/token/lookup/<token>\n\n GET /auth/token/lookup-accessor/<token-accessor>\n\n GET /auth/token/lookup-self\n\n :param token:\n :type token: str.\n :param accessor:\n :type accessor: str.\n :param wrap_ttl:\n :type wrap_ttl: int.\n :return:\n ... | 856 | false | hvac/hvac | lookup_token | 3,047 | |
LDU_FT/EnergieID/smappy/actuator_off | LDU_FT | [
"<BEGIN>\n## `authenticated`",
"Decorator to check if Smappee's access token has expired.\n If it has, use the refresh token to request a new access token\n<END>",
"<BEGIN>\n## `urljoin`",
"Join terms together with forward slashes",
" Parameters\n ----------\n parts",
" Returns\n -------... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the actuator_off API.
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 actuator_off API.
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... | Turn actuator off
Parameters
----------
service_location_id : int
actuator_id : int
duration : int, optional
300,900,1800 or 3600 , specifying the time in seconds the actuator
should be turned on. Any other value results in turning on for an
u... | "Turn actuator off\n\n Parameters\n ----------\n service_location_id : int\n actuator_id : int\n duration : int, optional\n 300,900,1800 or 3600 , specifying the time in seconds the actuator\n should be turned on. Any other value results in turning on for an\n ... | 87 | false | EnergieID/smappy | actuator_off | 3,048 | |
LDU_FT/Loudr/pale/pale_webapp2_request_handler_generator | LDU_FT | [
"<BEGIN>\n## `py_doc_trim`",
"Trim a python doc string.",
" This example is nipped from https://www.python.org/dev/peps/pep-0257/,\n which describes how to conventionally format and trim docstrings.",
" It has been modified to replace single newlines with a space, but leave\n multiple consecutive ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pale_webapp2_request_handler_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pale_webapp2_request_handler_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Generate a webapp2.RequestHandler class for the pale endpoint.
webapp2 handles requests with subclasses of the RequestHandler class,
instead of using functions like Flask, so we need to generate a new class
for each pale endpoint. | "Generate a webapp2.RequestHandler class for the pale endpoint.\n\n webapp2 handles requests with subclasses of the RequestHandler class,\n instead of using functions like Flask, so we need to generate a new class\n for each pale endpoint." | 107 | false | Loudr/pale | pale_webapp2_request_handler_generator | 3,049 | |
LDU_FT/thumbor/thumbor/getGraphicsControlExt | LDU_FT | [
"<BEGIN>\n## `instance`",
"Cache threadpool since context is\n recreated for each request\n<END>",
"<BEGIN>\n## `main`",
"Runs thumbor server with the specified arguments.\n<END>",
"<BEGIN>\n## `mime`",
"Retrieves mime metadata if available\n :return:\n<END>",
"<BEGIN>\n## `client`",
"Ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getGraphicsControlExt 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 getGraphicsControlExt API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | getGraphicsControlExt(duration=0.1, dispose=2)
Graphics Control Extension. A sort of header at the start of
each image. Specifies duration and transparancy.
Dispose
-------
* 0 - No disposal specified.
* 1 - Do not dispose. The graphic is to be left in place.
... | "getGraphicsControlExt(duration=0.1, dispose=2)\n\n Graphics Control Extension. A sort of header at the start of\n each image. Specifies duration and transparancy.\n\n Dispose\n -------\n * 0 - No disposal specified.\n * 1 - Do not dispose. The graphic is to be left in plac... | 61 | false | thumbor/thumbor | getGraphicsControlExt | 3,050 | |
LDU_FT/IBMStreams/pypi.streamsx/_initialize_rest | LDU_FT | [
"<BEGIN>\n## `get_application_configuration`",
"Get a named application configuration.",
" An application configuration is a named set of securely stored properties\n where each key and its value in the property set is a string.",
" An application configuration object is used to store information tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _initialize_rest API.
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 _initialize_rest API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Used to initialize the View object on first use. | "Used to initialize the View object on first use." | 651 | false | IBMStreams/pypi.streamsx | _initialize_rest | 3,051 | |
LDU_FT/frostming/marko/make_elements | LDU_FT | [
"<BEGIN>\n## `camel_to_snake_case`",
"Takes a camelCased string and converts to snake_case.\n<END>",
"<BEGIN>\n## `is_paired`",
"Check if the text only contains:\n 1. blackslash escaped parentheses, or\n 2. parentheses paired.\n<END>",
"<BEGIN>\n## `match_prefix`",
"Check if the line starts with giv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Make elements from a list of parsed tokens.
It will turn all unmatched holes into fallback elements.
:param tokens: a list of parsed tokens.
:param text: the original tet.
:param start: the offset of where parsing starts. Defaults to the start of text.
:param end: the offset of where parsing ends. ... | "Make elements from a list of parsed tokens.\n It will turn all unmatched holes into fallback elements.\n\n :param tokens: a list of parsed tokens.\n :param text: the original tet.\n :param start: the offset of where parsing starts. Defaults to the start of text.\n :param end: the offset of where parsing... | 49 | false | frostming/marko | make_elements | 3,052 | |
LDU_FT/kcallin/mqtt-codec/encode_bytes | LDU_FT | [
"<BEGIN>\n## `encode_bytes`",
"Encode a buffer length followed by the bytes of the buffer\n itself.",
" Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encode_bytes API.
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 encode_bytes API.
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... | Encode a buffer length followed by the bytes of the buffer
itself.
Parameters
----------
src_buf: bytes
Source bytes to be encoded. Function asserts that
0 <= len(src_buf) <= 2**16-1.
dst_file: file
File-like object with write method.
Returns
-------
int
... | "Encode a buffer length followed by the bytes of the buffer\n itself.\n\n Parameters\n ----------\n src_buf: bytes\n Source bytes to be encoded. Function asserts that\n 0 <= len(src_buf) <= 2**16-1.\n dst_file: file\n File-like object with write method.\n\n Returns\n -------\n... | 116 | false | kcallin/mqtt-codec | encode_bytes | 3,053 | |
LDU_FT/svinota/mdns/request | 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 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... | Returns true if the service could be discovered on the
network, and updates this object with details discovered. | "Returns true if the service could be discovered on the\n network, and updates this object with details discovered." | 67 | false | svinota/mdns | request | 3,054 | |
LDU_FT/gwastro/pycbc/return_search_summary | LDU_FT | [
"<BEGIN>\n## `compute_u_val_for_sky_loc_stat`",
"The max-over-sky location detection statistic maximizes over a phase,\n an amplitude and the ratio of F+ and Fx, encoded in a variable called u.\n Here we return the value of u for the given indices.\n<END>",
"<BEGIN>\n## `compute_max_snr_over_sky_loc_stat_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the return_search_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 return_search_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.
... | Function to create a SearchSummary object where all columns are populated
but all are set to values that test False (ie. strings to '', floats/ints
to 0, ...). This avoids errors when you try to create a table containing
columns you don't care about, but which still need populating. NOTE: This
will also... | "Function to create a SearchSummary object where all columns are populated\n but all are set to values that test False (ie. strings to '', floats/ints\n to 0, ...). This avoids errors when you try to create a table containing\n columns you don't care about, but which still need populating. NOTE: This\n will... | 4,120 | true | gwastro/pycbc | return_search_summary | 3,055 | |
LDU_FT/timothydmorton/VESPA/A_brighter | LDU_FT | [
"<BEGIN>\n## `from_df`",
"Builds TripleOrbitPopulation from DataFrame",
" ``DataFrame`` objects must be of appropriate form to pass\n to :func:`OrbitPopulation.from_df`.",
" :param df_long, df_short:\n :class:`pandas.DataFrame` objects to pass to\n :func:`OrbitPopula... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the A_brighter API.
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 A_brighter API.
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... | Instances where star A is brighter than (B+C) | "Instances where star A is brighter than (B+C)" | 495 | false | timothydmorton/VESPA | A_brighter | 3,056 | |
LDU_FT/haikuginger/beekeeper/optional_names | LDU_FT | [
"<BEGIN>\n## `merge`",
"Take two copies of a variable and reconcile them. var1 is assumed\n to be the higher-level variable, and so will be overridden by var2\n where such becomes necessary.\n<END>",
"<BEGIN>\n## `has_value_of_type`",
"Does the variable both have the given type and\n have a varia... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the optional_names API.
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 optional_names API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get a list of the variables that are defined, but not required | "Get a list of the variables that are defined, but not required" | 66 | false | haikuginger/beekeeper | optional_names | 3,057 | |
LDU_FT/ShadowBlip/Neteria/handle_message_registered | LDU_FT | [
"<BEGIN>\n## `listen`",
"Starts the client listener to listen for server responses.",
" Args:\n None",
" Returns:\n None\n<END>",
"<BEGIN>\n## `retransmit`",
"Processes messages that have been delivered from the transport\n protocol.",
" Args:\n dat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_message_registered 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_message_registered API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Processes messages that have been delivered by a registered client.
Args:
msg (string): The raw packet data delivered from the listener. This
data will be unserialized and then processed based on the packet's
method.
host (tuple): The (address, host) tuple of the sou... | "Processes messages that have been delivered by a registered client.\n\n Args:\n msg (string): The raw packet data delivered from the listener. This\n data will be unserialized and then processed based on the packet's\n method.\n host (tuple): The (address, host) tuple of ... | 122 | false | ShadowBlip/Neteria | handle_message_registered | 3,058 | |
LDU_FT/sunt05/SuPy/init_supy | LDU_FT | [
"<BEGIN>\n## `_path_insensitive`",
"Recursive part of path_insensitive to do the work.\n<END>",
"<BEGIN>\n## `url_is_alive`",
"Checks that a given URL is reachable.\n :param url: A URL\n :rtype: bool\n<END>",
"<BEGIN>\n## `form_option`",
"generate option name based suffix for URL",
" :param str... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_supy API.
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 init_supy API.
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... | Initialise supy by loading initial model states.
Parameters
----------
path_init : str
Path to a file that can initialise SuPy, which can be either of the follows:
* SUEWS :ref:`RunControl.nml<suews:RunControl.nml>`: a namelist file for SUEWS configurations
* SuPy `df_state.... | "Initialise supy by loading initial model states.\n\n Parameters\n ----------\n path_init : str\n Path to a file that can initialise SuPy, which can be either of the follows:\n * SUEWS :ref:`RunControl.nml<suews:RunControl.nml>`: a namelist file for SUEWS configurations\n * SuPy `d... | 143 | false | sunt05/SuPy | init_supy | 3,059 | |
LDU_FT/HDI-Project/BTB/_candidates_from_grid | LDU_FT | [
"<BEGIN>\n## `tune_pipeline`",
"Tunes a specified pipeline with the\n specified tuner for TUNING_BUDGET_PER_ITER (3) iterations.",
" Params:\n X: np.array of X training data\n y: np.array of y training data\n X_val: np.array of X validation data\n y_val: np.array of y validatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _candidates_from_grid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _candidates_from_grid API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get unused candidates from the grid or parameters. | "Get unused candidates from the grid or parameters." | 75 | false | HDI-Project/BTB | _candidates_from_grid | 3,060 | |
LDU_FT/opengridcc/opengrid/add | LDU_FT | [
"<BEGIN>\n## `add`",
"Add the path of a data set to the list of available sets",
" NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame",
" Parameters\n ----------\n path : str\n<END>",
"<BEGIN>\n## `unpack`",
"Unpacks a data set to a Pandas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add the path of a data set to the list of available sets
NOTE: a data set is assumed to be a pickled
and gzip compressed Pandas DataFrame
Parameters
----------
path : str | "Add the path of a data set to the list of available sets\n\n NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame\n\n Parameters\n ----------\n path : str" | 84 | false | opengridcc/opengrid | add | 3,061 | |
LDU_FT/mswart/pyopenmensa/addMeal | LDU_FT | [
"<BEGIN>\n## `extractDate`",
"Tries to extract a date from a given :obj:`str`.",
" :param str text: Input date. A :obj:`datetime.date` object is passed\n thought without modification.\n :rtype: :obj:`datetime.date`\n<END>",
"<BEGIN>\n## `convertPrice`",
"Helper function to convert ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the addMeal API.
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 addMeal API.
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... | Same as :py:meth:`.BaseBuilder.addMeal` but uses
helper functions to convert input parameters into needed types.
Meals names are auto-shortend to the allowed 250 characters.
The following paramer is new:
:param roles: Is passed as role parameter to :func:`buildPrices` | "Same as :py:meth:`.BaseBuilder.addMeal` but uses\n helper functions to convert input parameters into needed types.\n Meals names are auto-shortend to the allowed 250 characters.\n The following paramer is new:\n\n :param roles: Is passed as role parameter to :func:`buildPri... | 43 | false | mswart/pyopenmensa | addMeal | 3,062 | |
LDU_FT/Bogdanp/dramatiq/get_result | LDU_FT | [
"<BEGIN>\n## `consume`",
"Create a new consumer for a queue.",
" Parameters:\n queue_name(str): The queue to consume.\n prefetch(int): The number of messages to prefetch.\n timeout(int): The idle timeout in milliseconds.",
" Returns:\n Consumer: A consumer tha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a result from the backend.
Warning:
Sub-second timeouts are not respected by this backend.
Parameters:
message(Message)
block(bool): Whether or not to block until a result is set.
timeout(int): The maximum amount of time, in ms, to wait for
a res... | "Get a result from the backend.\n\n Warning:\n Sub-second timeouts are not respected by this backend.\n\n Parameters:\n message(Message)\n block(bool): Whether or not to block until a result is set.\n timeout(int): The maximum amount of time, in ms, to wait for\n ... | 219 | false | Bogdanp/dramatiq | get_result | 3,063 | |
LDU_FT/getsentry/raven-python/transform | LDU_FT | [
"<BEGIN>\n## `async_send`",
"Spawn an async request to a remote webserver.\n<END>",
"<BEGIN>\n## `send`",
"Sends a request to a remote webserver using HTTP POST.\n<END>",
"<BEGIN>\n## `extract_auth_vars`",
"raven-js will pass both Authorization and X-Sentry-Auth depending on the browser\n and server co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform API.
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 transform API.
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... | Primary function which handles recursively transforming
values via their serializers | "Primary function which handles recursively transforming\n values via their serializers" | 126 | false | getsentry/raven-python | transform | 3,064 | |
LDU_FT/EnigmaBridge/client.py/to_bytes | LDU_FT | [
"<BEGIN>\n## `to_bytes`",
"Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)",
" :param x: string (does nothing), bytearray, array with numbers\n :return:\n<END>",
"<BEGIN>\n## `to_long`",
"Converts input to a long number (arbitrary precision python long)\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_bytes API.
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 to_bytes API.
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... | Converts input to a byte string.
Typically used in PyCrypto as an argument (e.g., key, iv)
:param x: string (does nothing), bytearray, array with numbers
:return: | "Converts input to a byte string.\n Typically used in PyCrypto as an argument (e.g., key, iv)\n\n :param x: string (does nothing), bytearray, array with numbers\n :return:" | 107 | false | EnigmaBridge/client.py | to_bytes | 3,065 | |
LDU_FT/klen/pylama/run | LDU_FT | [
"<BEGIN>\n## `run`",
"MCCabe code checking.",
" :return list: List of errors.\n<END>",
"<BEGIN>\n## `split_csp_str`",
"Split comma separated string into unique values, keeping their order.",
" :returns: list of splitted values\n<END>",
"<BEGIN>\n## `parse_linters`",
"Initialize choosen linte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Run a shell command.
:return str: Stdout | "Run a shell command.\n\n :return str: Stdout" | 81 | false | klen/pylama | run | 3,066 | |
LDU_FT/richardchien/nonebot/send | LDU_FT | [
"<BEGIN>\n## `handle_cancellation`",
"If the input is a string of cancellation word, finish the command session.\n<END>",
"<BEGIN>\n## `on_command`",
"Decorator to register a function as a command.",
" :param name: command name (e.g. 'echo' or ('random', 'number'))\n :param aliases: aliases of command... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send a message ignoring failure by default. | "Send a message ignoring failure by default." | 105 | false | richardchien/nonebot | send | 3,067 | |
LDU_FT/davidmogar/cucco/_load_stop_words | LDU_FT | [
"<BEGIN>\n## `_load_from_file`",
"Load a config file from the given path.",
" Load all normalizations from the config file received as\n argument. It expects to find a YAML file with a list of\n normalizations and arguments under the key 'normalizations'.",
" Args:\n pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_stop_words API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_stop_words API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Load stop words into __stop_words set.
Stop words will be loaded according to the language code
received during instantiation.
Args:
language: Language code.
Returns:
A boolean indicating whether a file was loaded. | "Load stop words into __stop_words set.\n\n Stop words will be loaded according to the language code\n received during instantiation.\n\n Args:\n language: Language code.\n\n Returns:\n A boolean indicating whether a file was loaded." | 103 | false | davidmogar/cucco | _load_stop_words | 3,068 | |
LDU_FT/persephone-tools/persephone/total_duration | LDU_FT | [
"<BEGIN>\n## `handle_unhandled_exception`",
"Handler for unhandled exceptions that will write to the logs\n<END>",
"<BEGIN>\n## `write_transcriptions`",
"Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.",
" Args:\n utterances: A list o... | 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... | Get the duration of an entire list of utterances in milliseconds
Args:
utterances: The list of utterance we are finding the duration of | "Get the duration of an entire list of utterances in milliseconds\n Args:\n utterances: The list of utterance we are finding the duration of" | 219 | false | persephone-tools/persephone | total_duration | 3,069 | |
LDU_FT/contains-io/typet/metaclass | LDU_FT | [
"<BEGIN>\n## `_get_bases`",
"Get the base and meta classes to use in creating a subclass.",
" Args:\n type_: The type to subclass.",
" Returns:\n A tuple containing two values: a base class, and a metaclass.\n<END>",
"<BEGIN>\n## `_instantiate`",
"Instantiate the object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the metaclass API.
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 metaclass API.
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... | Create the class using all metaclasses.
Args:
metaclasses: A tuple of metaclasses that will be used to generate and
replace a specified class.
Returns:
A decorator that will recreate the class using the specified
metaclasses. | "Create the class using all metaclasses.\n\n Args:\n metaclasses: A tuple of metaclasses that will be used to generate and\n replace a specified class.\n\n Returns:\n A decorator that will recreate the class using the specified\n metaclasses." | 78 | false | contains-io/typet | metaclass | 3,070 | |
LDU_FT/johntruckenbrodt/spatialist/reproject | LDU_FT | [
"<BEGIN>\n## `hdr`",
"write ENVI header files",
" Parameters\n ----------\n data: str or dict\n the file or dictionary to get the info from\n filename: str\n the HDR file to write",
" Returns\n -------\n<END>",
"<BEGIN>\n## `__hdr2dict`",
"read a HDR file into a dictionary\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reproject API.
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 reproject API.
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... | in-memory reprojection
Parameters
----------
projection: int, str or :osgeo:class:`osr.SpatialReference`
the target CRS. See :func:`spatialist.auxil.crsConvert`.
Returns
------- | "in-memory reprojection\n\n Parameters\n ----------\n projection: int, str or :osgeo:class:`osr.SpatialReference`\n the target CRS. See :func:`spatialist.auxil.crsConvert`.\n\n Returns\n -------" | 227 | false | johntruckenbrodt/spatialist | reproject | 3,071 | |
LDU_FT/jedie/DragonPy/get_filename_block_as_codepoints | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_filename_block_as_codepoints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_filename_block_as_codepoints API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | TODO: Support tokenized BASIC. Now we only create ASCII BASIC. | "TODO: Support tokenized BASIC. Now we only create ASCII BASIC." | 223 | false | jedie/DragonPy | get_filename_block_as_codepoints | 3,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.