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/docker/docker-py/pull | LDU_FT | [
"<BEGIN>\n## `compare_version`",
"Compare docker versions",
" >>> v1 = '1.9'\n >>> v2 = '1.10'\n >>> compare_version(v1, v2)\n 1\n >>> compare_version(v2, v1)\n -1\n >>> compare_version(v2, v2)\n 0\n<END>",
"<BEGIN>\n## `datetime_to_timestamp`",
"Convert a UTC datetime to a Unix time... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pull API.
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 pull API.
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... | Pull an image of the given name and return it. Similar to the
``docker pull`` command.
If no tag is specified, all tags from that repository will be
pulled.
If you want to get the raw pull output, use the
:py:meth:`~docker.api.image.ImageApiMixin.pull` method in the
low-... | "Pull an image of the given name and return it. Similar to the\n ``docker pull`` command.\n If no tag is specified, all tags from that repository will be\n pulled.\n\n If you want to get the raw pull output, use the\n :py:meth:`~docker.api.image.ImageApiMixin.pull` method in the\n ... | 998 | false | docker/docker-py | pull | 14,973 | |
LDU_FT/rsgalloway/grit/get_environ | LDU_FT | [
"<BEGIN>\n## `assemble_WSGI_git_app`",
"Assembles basic WSGI-compatible application providing functionality of git-http-backend.\r",
" content_path (Defaults to '.' = \"current\" directory)\r\n The path to the folder that will be the root of served files. Accepts relative paths.\r",
" uri_marker ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environ API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_environ API.
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... | Create WSGI environ entries to be merged into each request. | "Create WSGI environ entries to be merged into each request." | 222 | false | rsgalloway/grit | get_environ | 14,974 | |
LDU_FT/demurgos/py-pathmatch/translate | LDU_FT | [
"<BEGIN>\n## `process_tokens`",
"u\"\"\"\n Iterate other tokens to find strings and ensure that they are prefixed.\n :param tokens:\n :return:\n<END>",
"<BEGIN>\n## `_parse_bracket_expression`",
"u\"\"\"",
" :type pattern: text_type\n :param pattern:\n :param start:\n :retur... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the translate API.
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 translate API.
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... | u"""
Returns a Python regular expression allowing to match
:return: | "u\"\"\"\n Returns a Python regular expression allowing to match\n :return:" | 29 | false | demurgos/py-pathmatch | translate | 14,975 | |
LDU_FT/rycus86/ghost-client/execute_post | LDU_FT | [
"<BEGIN>\n## `get_page`",
":param page_number: The page number to fetch (1-indexed)\n :return: The requested page fetched from the API for the query\n<END>",
"<BEGIN>\n## `list`",
"Fetch a list of resources from the API.",
" :param kwargs: Parameters for the request\n (see from and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Execute an HTTP POST request against the API endpoints.
This method is meant for internal use.
:param resource: The last part of the URI
:param kwargs: Additional parameters for the HTTP call (`request` library)
:return: The HTTP response as JSON or `GhostException` if unsuccessful | "Execute an HTTP POST request against the API endpoints.\n This method is meant for internal use.\n\n :param resource: The last part of the URI\n :param kwargs: Additional parameters for the HTTP call (`request` library)\n :return: The HTTP response as JSON or `GhostException` if unsuccessfu... | 55 | false | rycus86/ghost-client | execute_post | 14,976 | |
LDU_FT/spacetelescope/drizzlepac/_writeImage | LDU_FT | [
"<BEGIN>\n## `check_and_get_data`",
"Verify that all specified files are present. If not, retrieve them from MAST.",
" Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.",
" Returns\n =======\n total_input... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _writeImage API.
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 _writeImage API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Writes out the result of the combination step.
The header of the first 'outsingle' file in the
association parlist is used as the header of the
new image.
Parameters
----------
dataArray : arr
Array of data to be written to a fits.PrimaryHDU object
i... | "Writes out the result of the combination step.\n The header of the first 'outsingle' file in the\n association parlist is used as the header of the\n new image.\n\n Parameters\n ----------\n dataArray : arr\n Array of data to be written to a fits.PrimaryHDU object\n... | 1,138 | true | spacetelescope/drizzlepac | _writeImage | 14,977 | |
LDU_FT/MAVENSDC/PyTplot/get_ylimits | LDU_FT | [
"<BEGIN>\n## `del_data`",
"This function will delete tplot variables that are already stored in memory. ",
" Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ",
" Returns:\n N... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ylimits API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ylimits API.
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... | This function will get extract the y-limits from the Tplot Variables stored in memory.
Parameters:
name : str
Name of the tplot variable
trg : list, optional
The time range that you would like to look in
Returns:
ymin : float
The mini... | "This function will get extract the y-limits from the Tplot Variables stored in memory. \n \n Parameters:\n name : str \n Name of the tplot variable\n trg : list, optional\n The time range that you would like to look in\n \n Returns:\n ymin : float\n ... | 155 | false | MAVENSDC/PyTplot | get_ylimits | 14,978 | |
LDU_FT/emilydolson/avida-spatial-tools/plot_phens_circles | LDU_FT | [
"<BEGIN>\n## `gen_gradient`",
"Returns a line of text to add to an environment file, initializing a\n gradient resource with the specified\n name (string), inflow(int), radius(int), and location (tuple of ints)\n<END>",
"<BEGIN>\n## `gen_res`",
"Returns a line of text to add to an environment file, init... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_phens_circles 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 plot_phens_circles 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... | Plots phenotypes represented as concentric circles. Each circle represents
one task that the phenotype can perform, with larger circles representing
more complex tasks.
Arguments: phen_grid - a 2D array of strings representing binary numbers
kwargs:
palette - a seaborn palette (list of ... | "Plots phenotypes represented as concentric circles. Each circle represents\n one task that the phenotype can perform, with larger circles representing\n more complex tasks.\n\n Arguments: phen_grid - a 2D array of strings representing binary numbers\n\n kwargs:\n palette - a seaborn palette (... | 189 | false | emilydolson/avida-spatial-tools | plot_phens_circles | 14,979 | |
LDU_FT/bionikspoon/pureyaml/_lt_from_le | LDU_FT | [
"<BEGIN>\n## `_gt_from_lt`",
"Return a > b. Computed by @total_ordering from (not a < b) and (a != b).\n<END>",
"<BEGIN>\n## `_le_from_lt`",
"Return a <= b. Computed by @total_ordering from (a < b) or (a == b).\n<END>",
"<BEGIN>\n## `_ge_from_lt`",
"Return a >= b. Computed by @total_ordering from (not ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _lt_from_le API.
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 _lt_from_le API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a < b. Computed by @total_ordering from (a <= b) and (a != b). | "Return a < b. Computed by @total_ordering from (a <= b) and (a != b)." | 70 | false | bionikspoon/pureyaml | _lt_from_le | 14,980 | |
LDU_FT/vatlab/SoS/interrupt_kernel_hack | LDU_FT | [
"<BEGIN>\n## `process_request`",
"port is the open port at the worker, num_pending is the num_pending of stack.\n A non-zero num_pending means that the worker is pending on something while\n looking for new job, so the worker should not be killed.\n<END>",
"<BEGIN>\n## `check_workers`",
"Kill wo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the interrupt_kernel_hack 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 interrupt_kernel_hack API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Sends the interrupt signal to the remote kernel. This side steps the
(non-functional) ipython interrupt mechanisms.
Only works on posix. | "Sends the interrupt signal to the remote kernel. This side steps the\n (non-functional) ipython interrupt mechanisms.\n Only works on posix." | 193 | false | vatlab/SoS | interrupt_kernel_hack | 14,981 | |
LDU_FT/estnltk/estnltk/get_children | LDU_FT | [
"<BEGIN>\n## `templatesCollector`",
"leaves related articles and wikitables in place\n<END>",
"<BEGIN>\n## `assert_legal_arguments`",
"Assert that PrettyPrinter arguments are correct.",
" Raises\n ------\n ValueError\n In case there are unknown arguments or a single layer is mapped to more t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extr... | Recursively collects and returns all subtrees of given tree (if no
arguments are given), or, alternatively, collects and returns subtrees
satisfying some specific criteria (pre-specified in the arguments);
Parameters
-----------
depth_limit : in... | "Recursively collects and returns all subtrees of given tree (if no \n arguments are given), or, alternatively, collects and returns subtrees \n satisfying some specific criteria (pre-specified in the arguments);\n \n Parameters\n -----------\n depth_lim... | 1,003 | false | estnltk/estnltk | get_children | 14,982 | |
LDU_FT/brutus/wtforms-html5/read_file | LDU_FT | [
"<BEGIN>\n## `set_required`",
"Returns *render_kw* with *required* set if the field is required.",
" Sets the *required* key if the `required` flag is set for the field (this\n is mostly the case if it is set by validators). The `required` attribute\n is used by browsers to indicate a required field.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Returns the contents of *filename* (UTF-8).
If *prepend_paths* is set, join those before the *fielname*.
If it is `True`, prepend the path to `setup.py`. | "Returns the contents of *filename* (UTF-8).\n\n If *prepend_paths* is set, join those before the *fielname*.\n If it is `True`, prepend the path to `setup.py`." | 35 | false | brutus/wtforms-html5 | read_file | 14,983 | |
LDU_FT/astropy/astropy-healpix/level_ipix_to_uniq | LDU_FT | [
"<BEGIN>\n## `healpix_to_lonlat`",
"Convert HEALPix indices (optionally with offsets) to longitudes/latitudes",
" Parameters\n ----------\n healpix_index : `~numpy.ndarray`\n 1-D array of HEALPix indices\n dx, dy : `~numpy.ndarray`, optional\n 1-D arrays of offs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the level_ipix_to_uniq 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 level_ipix_to_uniq 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... | Convert a level and HEALPix index into a uniq number representing the cell.
This function is the inverse of `uniq_to_level_ipix`.
Parameters
----------
level : int
The level of the HEALPix cell
ipix : int
The index of the HEALPix cell
Returns
-------
uniq : int
... | "Convert a level and HEALPix index into a uniq number representing the cell.\n\n This function is the inverse of `uniq_to_level_ipix`.\n\n Parameters\n ----------\n level : int\n The level of the HEALPix cell\n ipix : int\n The index of the HEALPix cell\n\n Returns\n -------\n uniq... | 177 | false | astropy/astropy-healpix | level_ipix_to_uniq | 14,984 | |
LDU_FT/sveetch/boussole/post_process | LDU_FT | [
"<BEGIN>\n## `clean`",
"Filter given settings to keep only key names available in\n ``DEFAULT_SETTINGS``.",
" Args:\n settings (dict): Loaded settings.",
" Returns:\n dict: Settings object filtered.\n<END>",
"<BEGIN>\n## `set_settings`",
"Set every given settings... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Perform post processing methods on settings according to their
definition in manifest.
Post process methods are implemented in their own method that have the
same signature:
* Get arguments: Current settings, item name and item value;
* Return item value possibly patched;
... | "Perform post processing methods on settings according to their\n definition in manifest.\n\n Post process methods are implemented in their own method that have the\n same signature:\n\n * Get arguments: Current settings, item name and item value;\n * Return item value possibly patche... | 289 | false | sveetch/boussole | post_process | 14,985 | |
LDU_FT/apriha/lineage/plot_chromosomes | LDU_FT | [
"<BEGIN>\n## `detect_build`",
"Detect build of SNPs.",
" Use the coordinates of common SNPs to identify the build / assembly of a genotype file\n that is being loaded.",
" Notes\n -----\n rs3094315 : plus strand in 36, 37, and 38\n rs11928389 : plus strand in 36, minus strand in 37 and 38\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_chromosomes API.
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 plot_chromosomes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Plots chromosomes with designated markers.
Parameters
----------
one_chrom_match : list of dicts
segments to highlight on the chromosomes representing one shared chromosome
two_chrom_match : list of dicts
segments to highlight on the chromosomes representing two shared chromosomes
c... | "Plots chromosomes with designated markers.\n\n Parameters\n ----------\n one_chrom_match : list of dicts\n segments to highlight on the chromosomes representing one shared chromosome\n two_chrom_match : list of dicts\n segments to highlight on the chromosomes representing two shared chromosom... | 183 | false | apriha/lineage | plot_chromosomes | 14,986 | |
LDU_FT/testing-cabal/mock/assert_called_once_with | LDU_FT | [
"<BEGIN>\n## `_get_signature_object`",
"Given an arbitrary, possibly callable object, try to create a suitable\n signature object.\n Return a (reduced func, signature) tuple, or None.\n<END>",
"<BEGIN>\n## `_instance_callable`",
"Given an object, return True if the object is callable.\n For classes, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assert_called_once_with 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 assert_called_once_with API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | assert that the mock was called exactly once and with the specified
arguments. | "assert that the mock was called exactly once and with the specified\n arguments." | 30 | false | testing-cabal/mock | assert_called_once_with | 14,987 | |
LDU_FT/openpaperwork/paperwork-backend/__label_cmp | LDU_FT | [
"<BEGIN>\n## `examine_rootdir`",
"Examine the rootdir.\n Calls on_new_doc(doc), on_doc_modified(doc), on_doc_deleted(docid)\n every time a new, modified, or deleted document is found\n<END>",
"<BEGIN>\n## `reload_index`",
"Read the index, and load the document list from it",
" Arguments... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __label_cmp API.
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 __label_cmp API.
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... | Comparaison function. Can be used to sort labels alphabetically. | "Comparaison function. Can be used to sort labels alphabetically." | 171 | false | openpaperwork/paperwork-backend | __label_cmp | 14,988 | |
LDU_FT/Stewori/pytypes/get_class_that_defined_method | LDU_FT | [
"<BEGIN>\n## `_outter_split`",
"Splits only at delims that are at outter-most level regarding\n openers/closers pairs.\n Unchecked requirements:\n Only supports length-1 delim, openers and closers.\n delim must not be member of openers or closers.\n len(openers) == len(closers) or closers == None\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_that_defined_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_class_that_defined_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Determines the class owning the given method. | "Determines the class owning the given method." | 187 | false | Stewori/pytypes | get_class_that_defined_method | 14,989 | |
LDU_FT/mattaustin/django-storages-s3upload/get_validate_upload_form_kwargs | LDU_FT | [
"<BEGIN>\n## `_generate_processed_key_name`",
"Returns a key name to use after processing based on timestamp and\n upload key name.\n<END>",
"<BEGIN>\n## `clean_bucket_name`",
"Validates that the bucket name in the provided data matches the\n bucket name from the storage backend.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_validate_upload_form_kwargs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_validate_upload_form_kwargs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Return the keyword arguments for instantiating the form for validating
the upload. | "Return the keyword arguments for instantiating the form for validating\n the upload." | 23 | false | mattaustin/django-storages-s3upload | get_validate_upload_form_kwargs | 14,990 | |
LDU_FT/pteichman/cobe/learn | LDU_FT | [
"<BEGIN>\n## `join`",
"Capitalize the first alpha character in the reply and the\n first alpha character that follows one of [.?!] and a\n space.\n<END>",
"<BEGIN>\n## `start_batch_learning`",
"Begin a series of batch learn operations. Data will not be\n committed to the database until st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the learn API.
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 learn API.
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... | Learn a string of text. If the input is not already
Unicode, it will be decoded as utf-8. | "Learn a string of text. If the input is not already\n Unicode, it will be decoded as utf-8." | 18 | false | pteichman/cobe | learn | 14,991 | |
LDU_FT/mozilla/crontabber/with_resource_connection_as_argument | LDU_FT | [
"<BEGIN>\n## `toposort`",
"Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_resource_connection_as_argument API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_resource_connection_as_argument API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | a class decorator for Crontabber Apps. This decorator will a class a
_run_proxy method that passes a databsase connection as a context manager
into the CronApp's run method. The connection will automatically be closed
when the ConApp's run method ends.
In order for this dectorator to function properl... | "a class decorator for Crontabber Apps. This decorator will a class a\n _run_proxy method that passes a databsase connection as a context manager\n into the CronApp's run method. The connection will automatically be closed\n when the ConApp's run method ends.\n\n In order for this dectorator to function p... | 59 | false | mozilla/crontabber | with_resource_connection_as_argument | 14,992 | |
LDU_FT/ioos/compliance-checker/is_timeseries_profile_single_station | LDU_FT | [
"<BEGIN>\n## `is_opendap`",
"Returns True if the URL is a valid OPeNDAP URL",
" :param str url: URL for a remote OPeNDAP endpoint\n<END>",
"<BEGIN>\n## `datetime_is_iso`",
"Attempts to parse a date formatted in ISO 8601 format\n<END>",
"<BEGIN>\n## `kvp_convert`",
"Converts a list of string attribute... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_timeseries_profile_single_station API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_timeseries_profile_single_station API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Returns true if the variable is a time-series profile that represents a
single station and each profile is the same length.
:param netCDF4.Dataset nc: An open netCDF dataset
:param str variable: name of the variable to check | "Returns true if the variable is a time-series profile that represents a\n single station and each profile is the same length.\n\n :param netCDF4.Dataset nc: An open netCDF dataset\n :param str variable: name of the variable to check" | 624 | false | ioos/compliance-checker | is_timeseries_profile_single_station | 14,993 | |
LDU_FT/skulumani/kinematics/rot1 | LDU_FT | [
"<BEGIN>\n## `rand`",
"Random vector from the n-Sphere",
" This function will return a random vector which is an element of the n-Sphere.\n The n-Sphere is defined as a vector in R^n+1 with a norm of one. ",
" Basically, we'll find a random vector in R^n+1 and normalize it. \n This uses the method... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rot1 API.
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 rot1 API.
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... | Euler rotation about first axis
This computes the rotation matrix associated with a rotation about the first
axis. It will output matrices assuming column or row format vectors.
For example, to transform a vector from reference frame b to reference frame a:
Column Vectors : a = rot1(angle, 'c').dot(... | "Euler rotation about first axis\n\n This computes the rotation matrix associated with a rotation about the first\n axis. It will output matrices assuming column or row format vectors. \n\n For example, to transform a vector from reference frame b to reference frame a:\n\n Column Vectors : a = rot1(angle, '... | 59 | false | skulumani/kinematics | rot1 | 14,994 | |
LDU_FT/inveniosoftware/invenio-records/validate | LDU_FT | [
"<BEGIN>\n## `validate`",
"r\"\"\"Validate record according to schema defined in ``$schema`` key.",
" :Keyword Arguments:\n * **format_checker** --\n A ``format_checker`` is an instance of class\n :class:`jsonschema.FormatChecker` containing business logic to\n v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Validate data using schema with ``JSONResolver``. | "Validate data using schema with ``JSONResolver``." | 55 | false | inveniosoftware/invenio-records | validate | 14,995 | |
LDU_FT/google/transitfeed/GetServicePeriodsActiveEachDate | LDU_FT | [
"<BEGIN>\n## `GetClosestPoint`",
"Returns the point on the great circle segment ab closest to x.\n<END>",
"<BEGIN>\n## `Norm2`",
"Returns the L_2 (Euclidean) norm of self.\n<END>",
"<BEGIN>\n## `Plus`",
"Returns a new point which is the pointwise sum of self and other.\n<END>",
"<BEGIN>\n## `Minus`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetServicePeriodsActiveEachDate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetServicePeriodsActiveEachDate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | Return a list of tuples (date, [period1, period2, ...]).
For each date in the range [date_start, date_end) make list of each
ServicePeriod object which is active.
Args:
date_start: The first date in the list, a date object
date_end: The first date after the list, a date object
Returns:
... | "Return a list of tuples (date, [period1, period2, ...]).\n\n For each date in the range [date_start, date_end) make list of each\n ServicePeriod object which is active.\n\n Args:\n date_start: The first date in the list, a date object\n date_end: The first date after the list, a date object\n\n R... | 708 | false | google/transitfeed | GetServicePeriodsActiveEachDate | 14,996 | |
LDU_FT/Mangopay/mangopay2-python-sdk/memoize | LDU_FT | [
"<BEGIN>\n## `python_2_unicode_compatible`",
"A decorator that defines __unicode__ and __str__ methods under Python 2.\n Under Python 3 it does nothing.",
" To support Python 2 and 3 with a single code base, define a __str__ method\n returning text and apply this decorator to the class.\n<END>",
"<BE... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the memoize API.
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 memoize API.
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... | Wrap a function so that results for any argument tuple are stored in
'cache'. Note that the args to the function must be usable as dictionary
keys.
Only the first num_args are considered when creating the key. | "Wrap a function so that results for any argument tuple are stored in\n 'cache'. Note that the args to the function must be usable as dictionary\n keys.\n Only the first num_args are considered when creating the key." | 12 | false | Mangopay/mangopay2-python-sdk | memoize | 14,997 | |
LDU_FT/boronine/discipline/save_object | LDU_FT | [
"<BEGIN>\n## `word`",
"This function generates a fake word by creating between two and three\n random syllables and then joining them together.\n<END>",
"<BEGIN>\n## `save_object`",
"Save an object with Discipline",
" Only argument is a Django object. This function saves the object\n (r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Save an object with Discipline
Only argument is a Django object. This function saves the object
(regardless of whether it already exists or not) and registers with
Discipline, creating a new Action object. Do not use obj.save()! | "Save an object with Discipline\n\n Only argument is a Django object. This function saves the object\n (regardless of whether it already exists or not) and registers with\n Discipline, creating a new Action object. Do not use obj.save()!" | 49 | false | boronine/discipline | save_object | 14,998 | |
LDU_FT/rongcloud/server-sdk-python/setUserPushTag | LDU_FT | [
"<BEGIN>\n## `getToken`",
"获取 Token 方法 方法\n @param userId:用户 Id,最大长度 64 字节.是用户在 App 中的唯一标识码,必须保证在同一个 App 内不重复,重复的用户 Id 将被当作是同一用户。(必传)\n @param name:用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称.用户名称,最大长度 128 字节.用来在 Push 推送时显示用户的名称。(必传)\n @param portraitUri:用户头像 URI,最大长度 1024 字节.用来在 Push 推送时显示用户的头像。... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setUserPushTag API.
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 setUserPushTag API.
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... | 添加 Push 标签方法 方法
@param userTag:用户标签。
@return code:返回码,200 为正常。
@return errorMessage:错误信息。 | "添加 Push 标签方法 方法\n @param userTag:用户标签。\n\t \n @return code:返回码,200 为正常。\n @return errorMessage:错误信息。" | 93 | false | rongcloud/server-sdk-python | setUserPushTag | 14,999 | |
LDU_FT/pybel/pybel/is_causal_central | LDU_FT | [
"<BEGIN>\n## `postpend_location`",
"Rip off the closing parentheses and adds canonicalized modification.",
" I did this because writing a whole new parsing model for the data would be sad and difficult",
" :param bel_string: BEL string representing node\n :param dict location_model: A dictionary cont... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_causal_central API.
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 is_causal_central API.
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 true if the node is neither a causal sink nor a causal source.
- Does have causal in edges(s)
- Does have causal out edge(s) | "Return true if the node is neither a causal sink nor a causal source.\n\n - Does have causal in edges(s)\n - Does have causal out edge(s)" | 1,164 | true | pybel/pybel | is_causal_central | 15,000 | |
LDU_FT/booktype/python-ooxml/parse_comments | LDU_FT | [
"<BEGIN>\n## `parse_drawing`",
"Parse drawing element.",
" We don't do much with drawing element. We can find embeded image but we don't do more than that.\n<END>",
"<BEGIN>\n## `parse_paragraph`",
"Parse paragraph element.",
" Some other elements could be found inside of paragraph element (math, li... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_comments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_comments API.
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... | Parse comments document.
Comments are defined in file 'comments.xml' | "Parse comments document.\n\n Comments are defined in file 'comments.xml'" | 117 | false | booktype/python-ooxml | parse_comments | 15,001 | |
LDU_FT/nint8835/jigsaw/reload_plugin | LDU_FT | [
"<BEGIN>\n## `load_manifests`",
"Loads all plugin manifests on the plugin path\n<END>",
"<BEGIN>\n## `load_manifest`",
"Loads a plugin manifest from a given path",
" :param path: The folder to load the plugin manifest from\n<END>",
"<BEGIN>\n## `load_plugin`",
"Loads a plugin from the given manif... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reload_plugin API.
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 reload_plugin API.
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... | Reloads a given plugin
:param name: The name of the plugin
:param args: The args to pass to the plugin | "Reloads a given plugin\n\n :param name: The name of the plugin\n :param args: The args to pass to the plugin" | 25 | false | nint8835/jigsaw | reload_plugin | 15,002 | |
LDU_FT/NuGrid/NuGridPy/reset_filter | LDU_FT | [
"<BEGIN>\n## `_obsolete_plot_iso_abund_marco`",
"Interface to plot average over mass_range.",
" Parameters\n ----------\n directory : string\n Location of h5 file to plot. Needed for plot_tools.\n name_h5_file : string\n Name of h5 file. Needed for plot_tools.\n mass_range : list\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reset_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Resets the filter and goes back to initialized value. This
routine also resets the style if you have changed it. | "Resets the filter and goes back to initialized value. This\n routine also resets the style if you have changed it." | 713 | false | NuGrid/NuGridPy | reset_filter | 15,003 | |
LDU_FT/SeabornGames/Meta/trace_error | LDU_FT | [
"<BEGIN>\n## `function_arguments`",
"This returns a list of all arguments\n :param func: callable object\n :return: list of str of the arguments for the function\n<END>",
"<BEGIN>\n## `function_defaults`",
"This returns a list of the default arguments\n :param func: callable object\n :return: ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trace_error API.
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 trace_error API.
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... | This will return the line number and line text of the last error
:param function_index: int to tell what frame to look from
:return: int, str of the line number and line text | "This will return the line number and line text of the last error\n :param function_index: int to tell what frame to look from\n :return: int, str of the line number and line text" | 43 | false | SeabornGames/Meta | trace_error | 15,004 | |
LDU_FT/20c/facsimile/load_datafile | LDU_FT | [
"<BEGIN>\n## `find_datafile`",
"find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)\n<END>",
"<BEGIN>\n## `load_datafile`",
"find datafile and load them from c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_datafile API.
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_datafile API.
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... | find datafile and load them from codec
TODO only does the first one
kwargs:
default = if passed will return that on failure instead of throwing | "find datafile and load them from codec\n TODO only does the first one\n kwargs:\n default = if passed will return that on failure instead of throwing" | 24 | false | 20c/facsimile | load_datafile | 15,005 | |
LDU_FT/20c/munge/get_nested | LDU_FT | [
"<BEGIN>\n## `find_datafile`",
"find all matching data files in search_path\n search_path: path of directories to load from\n codecs: allow to override from list of installed\n returns array of tuples (codec_object, filename)\n<END>",
"<BEGIN>\n## `load_datafile`",
"find datafile and load them from c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_nested API.
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_nested API.
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 nested value, returns None if path does not exist | "get a nested value, returns None if path does not exist" | 25 | false | 20c/munge | get_nested | 15,006 | |
LDU_FT/jamieleshaw/lurklib/_nick | LDU_FT | [
"<BEGIN>\n## `find`",
"Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>",
"<BEGIN>\n## `send`",
"Send a raw string with the CR-LF appended to it.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _nick API.
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 _nick API.
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... | Sets your nick.
Required arguments:
* nick - New nick. | "Sets your nick.\n Required arguments:\n * nick - New nick." | 112 | false | jamieleshaw/lurklib | _nick | 15,007 | |
LDU_FT/hydpy-dev/hydpy/enumeration | LDU_FT | [
"<BEGIN>\n## `xml_replace`",
"Read the content of an XML template file (XMLT), apply the given\n `replacements` to its substitution markers, and write the result into\n an XML file with the same name but ending with `xml` instead of `xmlt`.",
" First, we write an XMLT file, containing a regular HTML c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the enumeration API.
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 enumeration API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return an enumeration string based on the given values.
The following four examples show the standard output of function
|enumeration|:
>>> from hydpy.core.objecttools import enumeration
>>> enumeration(('text', 3, []))
'text, 3, and []'
>>> enumeration(('text', 3))
'text and 3'
>>> en... | "Return an enumeration string based on the given values.\n\n The following four examples show the standard output of function\n |enumeration|:\n\n >>> from hydpy.core.objecttools import enumeration\n >>> enumeration(('text', 3, []))\n 'text, 3, and []'\n >>> enumeration(('text', 3))\n 'text and 3'\... | 3,847 | true | hydpy-dev/hydpy | enumeration | 15,008 | |
LDU_FT/blueset/ehForwarderBot/self | LDU_FT | [
"<BEGIN>\n## `self`",
"Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.",
" Returns:\n EFBChat: This object.\n<END>",
"<BEGIN>\n## `system`",
"Set the chat as a ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the self API.
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 self API.
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... | Set the chat as yourself.
In this context, "yourself" means the user behind the master channel.
Every channel should relate this to the corresponding target.
Returns:
EFBChat: This object. | "Set the chat as yourself.\n In this context, \"yourself\" means the user behind the master channel.\n Every channel should relate this to the corresponding target.\n\n Returns:\n EFBChat: This object." | 66 | false | blueset/ehForwarderBot | self | 15,009 | |
LDU_FT/dgovil/PySignal/connect | LDU_FT | [
"<BEGIN>\n## `emit`",
"Calls all the connected slots with the provided args and kwargs unless block is activated\n<END>",
"<BEGIN>\n## `connect`",
"Connects the signal to any callable object\n<END>",
"<BEGIN>\n## `register`",
"Registers a given signal\n :param name: the signal to register\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Connects the signal to any callable object | "Connects the signal to any callable object" | 13 | false | dgovil/PySignal | connect | 15,010 | |
LDU_FT/spacetelescope/drizzlepac/rd2xy | LDU_FT | [
"<BEGIN>\n## `check_and_get_data`",
"Verify that all specified files are present. If not, retrieve them from MAST.",
" Parameters\n ----------\n input_list : list\n List of one or more calibrated fits images that will be used for catalog generation.",
" Returns\n =======\n total_input... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rd2xy API.
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 rd2xy API.
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... | Primary interface to perform coordinate transformations from
pixel to sky coordinates using STWCS and full distortion models
read from the input image header. | "Primary interface to perform coordinate transformations from\n pixel to sky coordinates using STWCS and full distortion models\n read from the input image header." | 1,138 | true | spacetelescope/drizzlepac | rd2xy | 15,011 | |
LDU_FT/jaybaird/python-bloomfilter/intersection | LDU_FT | [
"<BEGIN>\n## `add`",
"Adds a key to this bloom filter. If the key already exists in this\n filter it will return True. Otherwise False.",
" >>> b = BloomFilter(capacity=100)\n >>> b.add(\"hello\")\n False\n >>> b.add(\"hello\")\n True\n >>> b.count\n 1\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intersection API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Calculates the intersection of the two underlying bitarrays and returns
a new bloom filter object. | "Calculates the intersection of the two underlying bitarrays and returns\n a new bloom filter object." | 16 | false | jaybaird/python-bloomfilter | intersection | 15,012 | |
LDU_FT/disqus/overseer/post_to_twitter | LDU_FT | [
"<BEGIN>\n## `post_to_twitter`",
"Update twitter status, i.e., post a tweet\n<END>",
"<BEGIN>\n## `truncatechars`",
"Truncates a string after a certain number of chars.",
" Argument: Number of chars to truncate after.\n<END>",
"<BEGIN>\n## `handler500`",
"500 error handler.",
" Templates: `500.h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post_to_twitter API.
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 post_to_twitter API.
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... | Update twitter status, i.e., post a tweet | "Update twitter status, i.e., post a tweet" | 24 | false | disqus/overseer | post_to_twitter | 15,013 | |
LDU_FT/molmod/molmod/get_length | LDU_FT | [
"<BEGIN>\n## `atom_criteria`",
"An auxiliary function to construct a dictionary of Criteria\n<END>",
"<BEGIN>\n## `_check_symbols`",
"the size must be the same as the length of the array numbers and all elements must be strings\n<END>",
"<BEGIN>\n## `from_geometry`",
"Construct a MolecularGraph object bas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_length API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Return the length of a bond between n1 and n2 of type bond_type
Arguments:
| ``n1`` -- the atom number of the first atom in the bond
| ``n2`` -- the atom number of the second atom the bond
Optional argument:
| ``bond_type`` -- the type of bond [default=B... | "Return the length of a bond between n1 and n2 of type bond_type\n\n Arguments:\n | ``n1`` -- the atom number of the first atom in the bond\n | ``n2`` -- the atom number of the second atom the bond\n\n Optional argument:\n | ``bond_type`` -- the type of bond [d... | 657 | false | molmod/molmod | get_length | 15,014 | |
LDU_FT/ehuggett/send-cli/encrypt_metadata | LDU_FT | [
"<BEGIN>\n## `api_params`",
"Change the download limit for a file hosted on a Send Server\n<END>",
"<BEGIN>\n## `api_download`",
"Given a Send url, download and return the encrypted data and metadata\n<END>",
"<BEGIN>\n## `sign_nonce`",
"sign the server nonce from the WWW-Authenticate header with an authK... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the encrypt_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 ... | Encrypt file metadata with the same method as the Send browser/js client | "Encrypt file metadata with the same method as the Send browser/js client" | 22 | false | ehuggett/send-cli | encrypt_metadata | 15,015 | |
LDU_FT/rainwoodman/kdcount/update_sums | LDU_FT | [
"<BEGIN>\n## `compute_sum_values`",
"Return the sum1_ij and sum2_ij values given\n the input indices and data instances.",
" Notes\n -----\n This is called in `Binning.update_sums` to compute\n the `sum1` and `sum2` contributions for indices `(i,j)`",
" Parameters\n ----------\n i,j : ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_sums API.
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 update_sums API.
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... | The main function that digitizes the pair counts,
calls bincount for the appropriate `sum1` and `sum2`
values, and adds them to the input arrays,
will modify sum1, sum2, N, and centers_sum inplace. | "The main function that digitizes the pair counts,\n calls bincount for the appropriate `sum1` and `sum2`\n values, and adds them to the input arrays,\n\n will modify sum1, sum2, N, and centers_sum inplace." | 69 | false | rainwoodman/kdcount | update_sums | 15,016 | |
LDU_FT/abseil/abseil-py/log_if | LDU_FT | [
"<BEGIN>\n## `_register_bounds_validator_if_needed`",
"Enforces lower and upper bounds for numeric flags.",
" Args:\n parser: NumericParser (either FloatParser or IntegerParser), provides lower\n and upper bounds, and help text to display.\n name: str, name of the flag\n flag_values: FlagValues... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_if API.
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 log_if API.
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 ... | Logs 'msg % args' at level 'level' only if condition is fulfilled. | "Logs 'msg % args' at level 'level' only if condition is fulfilled." | 432 | false | abseil/abseil-py | log_if | 15,017 | |
LDU_FT/firstprayer/monsql/value_to_sql_str | LDU_FT | [
"<BEGIN>\n## `MonSQL`",
"Initialize and return a Database instance\n<END>",
"<BEGIN>\n## `build_select`",
"Given a Query obj, return the corresponding sql\n<END>",
"<BEGIN>\n## `build_insert`",
"Given the table_name and the data, return the sql to insert the data\n<END>",
"<BEGIN>\n## `set_foreign_key_c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_to_sql_str API.
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 value_to_sql_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | transform a python variable to the appropriate representation in SQL | "transform a python variable to the appropriate representation in SQL" | 76 | false | firstprayer/monsql | value_to_sql_str | 15,018 | |
LDU_FT/bachya/pyflunearyou/status_by_coordinates | LDU_FT | [
"<BEGIN>\n## `adjust_status`",
"Apply status mapping to a raw API result.\n<END>",
"<BEGIN>\n## `status_by_coordinates`",
"Return the CDC status for the provided latitude/longitude.\n<END>",
"<BEGIN>\n## `status_by_state`",
"Return the CDC status for the specified state.\n<END>",
"<BEGIN>\n## `status_by... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the status_by_coordinates 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 status_by_coordinates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the CDC status for the provided latitude/longitude. | "Return the CDC status for the provided latitude/longitude." | 22 | false | bachya/pyflunearyou | status_by_coordinates | 15,019 | |
LDU_FT/kronenthaler/mod-pbxproj/remove_framework_search_paths | LDU_FT | [
"<BEGIN>\n## `has_child`",
"Checks if the given child id\n :param child: The id to check if it's a child of the group\n :return: True if the given id it's a child of this group, False otherwise\n<END>",
"<BEGIN>\n## `add_file`",
"Adds a file to the project, taking care of the type of the file an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_framework_search_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_framework_search_paths API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Removes the given search paths from the FRAMEWORK_SEARCH_PATHS section of the target on the configurations
:param paths: A string or array of strings
:param target_name: Target name or list of target names to remove the flag from or None for every target
:param configuration_name: Configuration ... | "Removes the given search paths from the FRAMEWORK_SEARCH_PATHS section of the target on the configurations\n :param paths: A string or array of strings\n :param target_name: Target name or list of target names to remove the flag from or None for every target\n :param configuration_name: Configurat... | 71 | false | kronenthaler/mod-pbxproj | remove_framework_search_paths | 15,020 | |
LDU_FT/jic-dtool/dtool-http/cli | LDU_FT | [
"<BEGIN>\n## `publish`",
"Return access URL to HTTP enabled (published) dataset.",
" Exits with error code 1 if the dataset_uri is not a dataset.\n Exits with error code 2 if the dataset cannot be HTTP enabled.\n<END>",
"<BEGIN>\n## `cli`",
"Command line utility to HTTP enable (publish) a dataset.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cli API.
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 cli API.
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... | Command line utility for serving datasets in a directory over HTTP. | "Command line utility for serving datasets in a directory over HTTP." | 27 | false | jic-dtool/dtool-http | cli | 15,021 | |
LDU_FT/MIT-LCP/wfdb-python/_check_item_type | LDU_FT | [
"<BEGIN>\n## `find_peaks`",
"Find hard peaks and soft peaks in a signal, defined as follows:",
" - Hard peak: a peak that is either /\\ or \\/\n - Soft peak: a peak that is either /-*\\ or \\-*/\n In this case we define the middle as the peak",
" Parameters\n ----------\n sig : np array\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_item_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_item_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Check the item's type against a set of allowed types.
Vary the print message regarding whether the item can be None.
Helper to `BaseRecord.check_field`.
Parameters
----------
item : any
The item to check.
field_name : str
The field name.
allowed_types : iterable
Iter... | "Check the item's type against a set of allowed types.\n Vary the print message regarding whether the item can be None.\n Helper to `BaseRecord.check_field`.\n\n Parameters\n ----------\n item : any\n The item to check.\n field_name : str\n The field name.\n allowed_types : iterable\n... | 538 | false | MIT-LCP/wfdb-python | _check_item_type | 15,022 | |
LDU_FT/wbond/asn1crypto/_as_chunk | LDU_FT | [
"<BEGIN>\n## `_pep425_version`",
":return:\n A tuple of integers representing the Python version number\n<END>",
"<BEGIN>\n## `_pep425_supports_manylinux`",
":return:\n A boolean indicating if the machine can use manylinux1 packages\n<END>",
"<BEGIN>\n## `_pep425_get_abi`",
":return:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _as_chunk API.
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 _as_chunk API.
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... | A method to return a chunk of data that can be combined for
constructed method values
:return:
A native Python value that can be added together. Examples include
byte strings, unicode strings or tuples. | "A method to return a chunk of data that can be combined for\n constructed method values\n\n :return:\n A native Python value that can be added together. Examples include\n byte strings, unicode strings or tuples." | 739 | false | wbond/asn1crypto | _as_chunk | 15,023 | |
LDU_FT/TheHive-Project/Cortex-Analyzers/is_reserved | LDU_FT | [
"<BEGIN>\n## `auth_string`",
"Authenticate based on username and token which is base64-encoded\n<END>",
"<BEGIN>\n## `api_related`",
"Find related objects through SoltraEdge API\n<END>",
"<BEGIN>\n## `tlp_classifiers`",
"Classifier between Cortex and Soltra.\n Soltra uses name-TLP, and Cortex \"val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_reserved API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_reserved API.
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... | Test if the address is otherwise IETF reserved.
Returns:
A boolean, True if the address is within one of the
reserved IPv6 Network ranges. | "Test if the address is otherwise IETF reserved.\n\n Returns:\n A boolean, True if the address is within one of the\n reserved IPv6 Network ranges." | 328 | false | TheHive-Project/Cortex-Analyzers | is_reserved | 15,024 | |
LDU_FT/IndicoDataSolutions/IndicoIo-python/pdf_preprocess | LDU_FT | [
"<BEGIN>\n## `analyze_image`",
"Given input image, returns the results of specified image apis. Possible apis\r\n include: ['fer', 'facial_features', 'image_features']\r",
" Example usage:\r",
" .. code-block:: python\r",
" >>> import indicoio\r\n >>> import numpy as np\r\n >>> fa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pdf_preprocess API.
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 pdf_preprocess API.
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... | Load pdfs from local filepath if not already b64 encoded | "Load pdfs from local filepath if not already b64 encoded" | 148 | false | IndicoDataSolutions/IndicoIo-python | pdf_preprocess | 15,025 | |
LDU_FT/AliLozano/django-messages-extends/persistant_debug | LDU_FT | [
"<BEGIN>\n## `_get`",
"Gets a single list of messages from all storage backends.\n<END>",
"<BEGIN>\n## `_store`",
"Stores the messages, returning any unstored messages after trying all\n backends.",
" For each storage backend, any messages not stored are passed on to the\n next backend.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the persistant_debug API.
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 persistant_debug API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Adds a persistant message with the ``DEBUG`` level. | "Adds a persistant message with the ``DEBUG`` level." | 28 | false | AliLozano/django-messages-extends | persistant_debug | 15,026 | |
LDU_FT/pyroscope/pyrocore/guarded | LDU_FT | [
"<BEGIN>\n## `resolve_slashed`",
"Resolve symlinked directories if they end in a '/',\n remove trailing '/' otherwise.\n<END>",
"<BEGIN>\n## `guarded`",
"Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode.\n<END>",
"<BEGIN>\n## `_make_it_so`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the guarded API.
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 guarded API.
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... | Catch exceptions thrown by filesystem calls, and don't really
execute them in dry-run mode. | "Catch exceptions thrown by filesystem calls, and don't really\n execute them in dry-run mode." | 247 | false | pyroscope/pyrocore | guarded | 15,027 | |
LDU_FT/edx/edx-celeryutils/apply_chord | LDU_FT | [
"<BEGIN>\n## `mark_resolved`",
"Mark the specified task as resolved in the FailedTask table.",
" If more than one record exists with the specified task id, they will all be\n marked resolved.\n<END>",
"<BEGIN>\n## `_truncate_to_field`",
"Shorten data to fit in the specified model field.",
" If th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the apply_chord API.
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 apply_chord API.
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... | u"""
Instantiate a linking ChordData object before executing subtasks.
Parameters
----------
header: a list of incomplete subtask signatures, with partial
different-per-instance arguments already set.
partial_args: list of same-per-instance subtask argume... | "u\"\"\"\n Instantiate a linking ChordData object before executing subtasks.\n\n Parameters\n ----------\n header: a list of incomplete subtask signatures, with partial\n different-per-instance arguments already set.\n partial_args: list of same-per-instance sub... | 33 | false | edx/edx-celeryutils | apply_chord | 15,028 | |
LDU_FT/expfactory/expfactory/get_next | LDU_FT | [
"<BEGIN>\n## `get_experiments`",
"get_experiments will return loaded json for all valid experiments from an experiment folder\n :param base: full path to the base folder with experiments inside\n :param load: if True, returns a list of loaded config.json objects. If False (default) returns the paths to the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_next API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | return the name of the next experiment, depending on the user's
choice to randomize. We don't remove any experiments here, that is
done on finish, in the case the user doesn't submit data (and
thus finish). A return of None means the user has completed the
battery of experime... | "return the name of the next experiment, depending on the user's\n choice to randomize. We don't remove any experiments here, that is\n done on finish, in the case the user doesn't submit data (and\n thus finish). A return of None means the user has completed the\n battery of exp... | 128 | false | expfactory/expfactory | get_next | 15,029 | |
LDU_FT/koheimiya/extheano/_get_keys_defdict | LDU_FT | [
"<BEGIN>\n## `_extract_updater`",
"Get the update and reset the buffer.\n Return `None` if there is no update.\n<END>",
"<BEGIN>\n## `_get_keys_defdict`",
"Get the keys and the default dictionary of the given function's\n arguments\n<END>",
"<BEGIN>\n## `compile_with_value`",
"Compile the fu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_keys_defdict API.
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_keys_defdict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Get the keys and the default dictionary of the given function's
arguments | "Get the keys and the default dictionary of the given function's\n arguments" | 10 | false | koheimiya/extheano | _get_keys_defdict | 15,030 | |
LDU_FT/kolypto/py-flask-jsontools/get_entity_loaded_propnames | LDU_FT | [
"<BEGIN>\n## `jsonapi`",
"Declare the view as a JSON API method",
" This converts view return value into a :cls:JsonResponse.",
" The following return types are supported:\n - tuple: a tuple of (response, status, headers)\n - any other object is converted to JSON\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_entity_loaded_propnames 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 get_entity_loaded_propnames API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Get entity property names that are loaded (e.g. won't produce new queries)
:param entity: Entity
:type entity: sqlalchemy.ext.declarative.api.DeclarativeMeta
:returns: Set of entity property names
:rtype: set | "Get entity property names that are loaded (e.g. won't produce new queries)\n\n :param entity: Entity\n :type entity: sqlalchemy.ext.declarative.api.DeclarativeMeta\n :returns: Set of entity property names\n :rtype: set" | 22 | false | kolypto/py-flask-jsontools | get_entity_loaded_propnames | 15,031 | |
LDU_FT/cournape/audiolab/write_frames | LDU_FT | [
"<BEGIN>\n## `info_factory`",
"Create a system_info class.",
" Parameters\n ----------\n name : str\n name of the library\n libnames : seq\n list of libraries to look for\n headers : seq\n list of headers to look for\n classname : str\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_frames API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_frames API.
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... | write data to file.
:Parameters:
input : ndarray
array containing data to write.
nframes : int
number of frames to write.
Notes
-----
- One column is one channel (one row per channel after 0.9)
- updates the write pointer... | "write data to file.\n\n :Parameters:\n input : ndarray\n array containing data to write.\n nframes : int\n number of frames to write.\n\n Notes\n -----\n\n - One column is one channel (one row per channel after 0.9)\n - updates the ... | 24 | false | cournape/audiolab | write_frames | 15,032 | |
LDU_FT/contentful/contentful.py/content_type | LDU_FT | [
"<BEGIN>\n## `incoming_references`",
"Fetches all entries referencing the entry",
" API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset",
" :param client Client instance\n :param query: (optional) Dict with... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Fetches a Content Type by ID.
API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-type/get-a-single-content-type
:param content_type_id: The ID of the target Content Type.
:param query: (optional) Dict with API options.
... | "Fetches a Content Type by ID.\n\n API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/content-types/content-type/get-a-single-content-type\n\n :param content_type_id: The ID of the target Content Type.\n :param query: (optional) Dict with API optio... | 71 | false | contentful/contentful.py | content_type | 15,033 | |
LDU_FT/cdgriffith/puremagic/from_file | LDU_FT | [
"<BEGIN>\n## `_max_lengths`",
"The length of the largest magic string + its offset\n<END>",
"<BEGIN>\n## `_confidence`",
"Rough confidence based on string length and file extension\n<END>",
"<BEGIN>\n## `_identify_all`",
"Attempt to identify 'data' by its magic numbers\n<END>",
"<BEGIN>\n## `_magic`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Opens file, attempts to identify content based
off magic number and will return the file extension.
If mime is True it will return the mime type instead.
:param filename: path to file
:param mime: Return mime, not extension
:return: guessed extension or mime | "Opens file, attempts to identify content based\n off magic number and will return the file extension.\n If mime is True it will return the mime type instead.\n\n :param filename: path to file\n :param mime: Return mime, not extension\n :return: guessed extension or mime" | 23 | false | cdgriffith/puremagic | from_file | 15,034 | |
LDU_FT/edx/edx-django-release-util/_get_current_migration_state | LDU_FT | [
"<BEGIN>\n## `dump_migration_session_state`",
"Serialize a migration session state to yaml using nicer formatting",
" Args:\n raw: object to serialize\n Returns: string (of yaml)",
" Specifically, this forces the \"output\" member of state step dicts (e.g.\n state[0]['output']) to use block... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_current_migration_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_current_migration_state API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Extract the most recent migrations from the relevant apps.
If no migrations have been performed, return 'zero' as the most recent migration for the app.
This should only be called from list_migrations(). | "Extract the most recent migrations from the relevant apps.\n If no migrations have been performed, return 'zero' as the most recent migration for the app.\n\n This should only be called from list_migrations()." | 31 | false | edx/edx-django-release-util | _get_current_migration_state | 15,035 | |
LDU_FT/GoogleCloudPlatform/appengine-pipelines/_callback_internal | LDU_FT | [
"<BEGIN>\n## `_get_task_target`",
"Get the default target for a pipeline task.",
" Current version id format is: user_defined_version.minor_version_number\n Current module id is just the module's name. It could be \"default\"",
" Returns:\n A complete target name is of format version.module. If module i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _callback_internal 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 _callback_internal 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... | Used to execute callbacks on asynchronous pipelines. | "Used to execute callbacks on asynchronous pipelines." | 222 | false | GoogleCloudPlatform/appengine-pipelines | _callback_internal | 15,036 | |
LDU_FT/bids-standard/pybids/check_path_matches_patterns | LDU_FT | [
"<BEGIN>\n## `apply_transformations`",
"Apply all transformations to the variables in the collection.",
" Args:\n transformations (list): List of transformations to apply.\n select (list): Optional list of names of variables to retain after all\n transformations are applied.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_path_matches_patterns 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 check_path_matches_patterns API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Check if the path matches at least one of the provided patterns. | "Check if the path matches at least one of the provided patterns." | 372 | false | bids-standard/pybids | check_path_matches_patterns | 15,037 | |
LDU_FT/ggravlingen/pytradfri/first_setup | LDU_FT | [
"<BEGIN>\n## `combine_data`",
"Combines the data for this command with another.\n<END>",
"<BEGIN>\n## `load_json`",
"Load JSON data from a file and return as dict or list.",
" Defaults to returning empty dict if file is not found.\n<END>",
"<BEGIN>\n## `save_json`",
"Save JSON data to a file.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the first_setup API.
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 first_setup API.
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... | This is a guess of the meaning of this value. | "This is a guess of the meaning of this value." | 79 | false | ggravlingen/pytradfri | first_setup | 15,038 | |
LDU_FT/Genida/dependenpy/print_matrix | LDU_FT | [
"<BEGIN>\n## `cast`",
"Cast a set of keys and an array to a Matrix object.\n<END>",
"<BEGIN>\n## `connect_to`",
"Connect this vertex to another one.",
" Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.",
" Returns:\n Edge: th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Print the matrix for self's nodes.
Args:
format (str): output format (csv, json or text).
output (file): file descriptor on which to write.
depth (int): depth of the matrix. | "Print the matrix for self's nodes.\n\n Args:\n format (str): output format (csv, json or text).\n output (file): file descriptor on which to write.\n depth (int): depth of the matrix." | 130 | false | Genida/dependenpy | print_matrix | 15,039 | |
LDU_FT/smarie/python-parsyfiles/parsyfiles_global_config | LDU_FT | [
"<BEGIN>\n## `read_dict_or_list_from_json`",
"Helper method to read a dictionary from a .json file using json library\n :param file_object:\n :return:\n<END>",
"<BEGIN>\n## `get_default_collection_parsers`",
"Utility method to return the default parsers able to parse a dictionary from a file.\n :retu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsyfiles_global_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parsyfiles_global_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | This is the method you should use to configure the parsyfiles library
:param multiple_errors_tb_limit: the traceback size (default is 3) of individual parsers exceptions displayed when
parsyfiles tries several parsing chains and all of them fail.
:param full_paths_in_logs: if True, full file paths will be ... | "This is the method you should use to configure the parsyfiles library\n\n :param multiple_errors_tb_limit: the traceback size (default is 3) of individual parsers exceptions displayed when\n parsyfiles tries several parsing chains and all of them fail.\n :param full_paths_in_logs: if True, full file paths wil... | 504 | false | smarie/python-parsyfiles | parsyfiles_global_config | 15,040 | |
LDU_FT/HewlettPackard/python-hpOneView/restores | LDU_FT | [
"<BEGIN>\n## `get_visual_content`",
"Gets a list of visual content objects describing each rack within the data center. The response aggregates data\n center and rack data with a specified metric (peak24HourTemp) to provide simplified access to display data for\n the data center.",
" Args:\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the restores API.
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 restores API.
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... | Gets the Restores API client.
Returns:
Restores: | "Gets the Restores API client.\n\n Returns:\n Restores:" | 1,297 | true | HewlettPackard/python-hpOneView | restores | 15,041 | |
LDU_FT/cimm-kzn/CGRtools/fix_positions | LDU_FT | [
"<BEGIN>\n## `reset_query_marks`",
"set or reset hyb and neighbors marks to atoms.\n<END>",
"<BEGIN>\n## `implicify_hydrogens`",
"remove explicit hydrogen if possible",
" :return: number of removed hydrogens\n<END>",
"<BEGIN>\n## `explicify_hydrogens`",
"add explicit hydrogens to atoms",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_positions API.
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 fix_positions API.
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... | fix coordinates of molecules in reaction | "fix coordinates of molecules in reaction" | 122 | false | cimm-kzn/CGRtools | fix_positions | 15,042 | |
LDU_FT/diux-dev/ncluster/upload | LDU_FT | [
"<BEGIN>\n## `make_job`",
"Create a job using current backend. Blocks until all tasks are up and initialized.",
" Args:\n name: name of the job\n run_name: name of the run (auto-assigned if empty)\n num_tasks: number of tasks\n install_script: bash-runnable script\n **kwargs:",
" Returns:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload API.
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 upload API.
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 ... | Uploads file to remote instance. If location not specified, dumps it
into default directory. If remote location has files or directories with the
same name, behavior is undefined. | "Uploads file to remote instance. If location not specified, dumps it\n into default directory. If remote location has files or directories with the\n same name, behavior is undefined." | 136 | false | diux-dev/ncluster | upload | 15,043 | |
LDU_FT/Guake/guake/fstyle_changed | LDU_FT | [
"<BEGIN>\n## `mk_tab_context_menu`",
"Create the context menu for a notebook tab\n<END>",
"<BEGIN>\n## `mk_notebook_context_menu`",
"Create the context menu for the notebook\n<END>",
"<BEGIN>\n## `trayicon_toggled`",
"If the gconf var use_trayicon be changed, this method will\n be called and will s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fstyle_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fstyle_changed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | If the gconf var style/font/style be changed, this method
will be called and will change the font style in all terminals
open. | "If the gconf var style/font/style be changed, this method\n will be called and will change the font style in all terminals\n open." | 184 | false | Guake/guake | fstyle_changed | 15,044 | |
LDU_FT/genepattern/genepattern-python/get_child_jobs | LDU_FT | [
"<BEGIN>\n## `GCT`",
"Create a Dataframe with the contents of the GCT file\n<END>",
"<BEGIN>\n## `ODF`",
"Create a Dataframe with the contents of the ODF file",
" For more information on the ODF format see:\n http://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide",
" :o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_child_jobs API.
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_child_jobs API.
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... | Queries the GenePattern server for child jobs of this job, creates GPJob
objects representing each of them and assigns the list of them to the
GPJob.children property. Then return this list. | "Queries the GenePattern server for child jobs of this job, creates GPJob\n objects representing each of them and assigns the list of them to the\n GPJob.children property. Then return this list." | 156 | false | genepattern/genepattern-python | get_child_jobs | 15,045 | |
LDU_FT/hozn/stravalib/deserialize | LDU_FT | [
"<BEGIN>\n## `logged_in`",
"Method called by Strava (redirect) that includes parameters.\n - state\n - code\n - error\n<END>",
"<BEGIN>\n## `unmarshal`",
"Convert the value from parsed JSON structure to native python representation.",
" By default this will leave the value as-is since the JS... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deserialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Creates a new object based on serialized (dict) struct. | "Creates a new object based on serialized (dict) struct." | 367 | false | hozn/stravalib | deserialize | 15,046 | |
LDU_FT/poulp/zenipy/warning | LDU_FT | [
"<BEGIN>\n## `message`",
"Display a simple message",
" :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: clos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the warning API.
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 warning API.
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... | Display a simple warning
:param text: text inside the window
:type text: str
:param title: title of the window
:type title: str
:param width: window width
:type width: int
:param height: window height
:type height: int
:param timeout: close the window after n seconds
:type timeo... | "Display a simple warning\n\n :param text: text inside the window\n :type text: str\n :param title: title of the window\n :type title: str\n :param width: window width\n :type width: int\n :param height: window height\n :type height: int\n :param timeout: close the window after n seconds\n ... | 33 | false | poulp/zenipy | warning | 15,047 | |
LDU_FT/miguelgrinberg/Flask-Migrate/migrate | LDU_FT | [
"<BEGIN>\n## `migrate`",
"Autogenerate a new revision file (Alias for 'revision --autogenerate')\n<END>",
"<BEGIN>\n## `merge`",
"Merge two revisions together, creating a new revision file\n<END>",
"<BEGIN>\n## `history`",
"List changeset scripts in chronological order.\n<END>",
"<BEGIN>\n## `stamp`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the migrate API.
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 migrate API.
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... | Autogenerate a new revision file (Alias for 'revision --autogenerate') | "Autogenerate a new revision file (Alias for 'revision --autogenerate')" | 29 | false | miguelgrinberg/Flask-Migrate | migrate | 15,048 | |
LDU_FT/cakebread/yolk/browse_website | LDU_FT | [
"<BEGIN>\n## `get_metadata`",
"Return dictionary of metadata for given dist",
" @param dist: distribution\n @type dist: pkg_resources Distribution object",
" @returns: dict of metadata or None\n<END>",
"<BEGIN>\n## `add_options`",
"Add command-line options for this plugin.",
" The base p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the browse_website API.
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 browse_website API.
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... | Launch web browser at project's homepage
@param browser: name of web browser to use
@type browser: string
@returns: 0 if homepage found, 1 if no homepage found | "Launch web browser at project's homepage\n\n @param browser: name of web browser to use\n @type browser: string\n\n @returns: 0 if homepage found, 1 if no homepage found" | 165 | false | cakebread/yolk | browse_website | 15,049 | |
LDU_FT/maxfischer2781/include/find_module | LDU_FT | [
"<BEGIN>\n## `disable`",
"Disable an include type",
" :param identifier: module or name of the include type\n :param children_only: disable the include type only for child processes, not the current process",
" The ``identifier`` can be specified in multiple ways to disable an include typ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_module API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Find the appropriate loader for module ``name``
:param fullname: ``__name__`` of the module to import
:type fullname: str
:param path: ``__path__`` of the *parent* package already imported
:type path: str or None | "Find the appropriate loader for module ``name``\n\n :param fullname: ``__name__`` of the module to import\n :type fullname: str\n :param path: ``__path__`` of the *parent* package already imported\n :type path: str or None" | 40 | false | maxfischer2781/include | find_module | 15,050 | |
LDU_FT/acrisci/i3ipc-python/_unpack | LDU_FT | [
"<BEGIN>\n## `_pack`",
"Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>",
"<BEGIN>\n## `_unpack`",
"Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack API.
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 _unpack API.
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... | Unpacks the given byte string and parses the result from JSON.
Returns None on failure and saves data into "self.buffer". | "Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\"." | 69 | false | acrisci/i3ipc-python | _unpack | 15,051 | |
LDU_FT/Azure/msrestazure-for-python/parse_resource_id | LDU_FT | [
"<BEGIN>\n## `get_msi_token`",
"Get MSI token if MSI_ENDPOINT is set.",
" IF MSI_ENDPOINT is not set, will try legacy access through 'http://localhost:{}/oauth2/token'.format(port).",
" If msi_conf is used, must be a dict of one key in [\"client_id\", \"object_id\", \"msi_res_id\"]",
" :param str r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_resource_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_resource_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Parses a resource_id into its various parts.
Returns a dictionary with a single key-value pair, 'name': rid, if invalid resource id.
:param rid: The resource id being parsed
:type rid: str
:returns: A dictionary with with following key/value pairs (if found):
- subscription: Subscr... | "Parses a resource_id into its various parts.\n\n Returns a dictionary with a single key-value pair, 'name': rid, if invalid resource id.\n\n :param rid: The resource id being parsed\n :type rid: str\n :returns: A dictionary with with following key/value pairs (if found):\n\n - subscription: ... | 167 | false | Azure/msrestazure-for-python | parse_resource_id | 15,052 | |
LDU_FT/mozilla-releng/signtool/finddirs | LDU_FT | [
"<BEGIN>\n## `uploadfile`",
"Uploads file (given by `filename`) to server at `baseurl`.",
" `sesson_key` and `nonce` are string values that get passed as POST\n parameters.\n<END>",
"<BEGIN>\n## `is_authenticode_signed`",
"Returns True if the file is signed with authenticode\n<END>",
"<BEGIN>\n## `p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finddirs API.
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 finddirs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Return a list of all the directories under `root` | "Return a list of all the directories under `root`" | 34 | false | mozilla-releng/signtool | finddirs | 15,053 | |
LDU_FT/rstoneback/pysatMagVect/closed_loop_edge_lengths_via_footpoint | LDU_FT | [
"<BEGIN>\n## `add_mag_drift_unit_vectors_ecef`",
"Adds unit vectors expressing the ion drift coordinate system\n organized by the geomagnetic field. Unit vectors are expressed\n in ECEF coordinates.",
" Parameters\n ----------\n inst : pysat.Instrument\n Instrument object that will get uni... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the closed_loop_edge_lengths_via_footpoint 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 closed_loop_edge_lengths_via_footpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates... | Forms closed loop integration along mag field, satrting at input
points and goes through footpoint. At footpoint, steps along vector direction
in both positive and negative directions, then traces back to opposite
footpoint. Back at input location, steps toward those new field lines
(edge_length) along... | "Forms closed loop integration along mag field, satrting at input\n points and goes through footpoint. At footpoint, steps along vector direction\n in both positive and negative directions, then traces back to opposite\n footpoint. Back at input location, steps toward those new field lines \n (edge_length) ... | 108 | false | rstoneback/pysatMagVect | closed_loop_edge_lengths_via_footpoint | 15,054 | |
LDU_FT/CI-WATER/gsshapy/getModelSummaryAsKml | LDU_FT | [
"<BEGIN>\n## `_read`",
"Generic Time Series Read from File Method\n<END>",
"<BEGIN>\n## `_write`",
"Generic Time Series Write to File Method\n<END>",
"<BEGIN>\n## `_createTimeSeriesObjects`",
"Create GSSHAPY TimeSeries and TimeSeriesValue Objects Method\n<END>",
"<BEGIN>\n## `_read`",
"Generic Output ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getModelSummaryAsKml 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 getModelSummaryAsKml API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Retrieve a KML representation of the model. Includes polygonized mask map and vector stream network.
Args:
session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database
path (str, optional): Path to file where KML file will be written. Defa... | "Retrieve a KML representation of the model. Includes polygonized mask map and vector stream network.\n\n Args:\n session (:mod:`sqlalchemy.orm.session.Session`): SQLAlchemy session object bound to PostGIS enabled database\n path (str, optional): Path to file where KML file will be written.... | 537 | false | CI-WATER/gsshapy | getModelSummaryAsKml | 15,055 | |
LDU_FT/brinkframework/brink/use_ws_subhandlers | LDU_FT | [
"<BEGIN>\n## `fields`",
"Provides an iterable for all model fields.\n<END>",
"<BEGIN>\n## `wrap`",
"Wraps and consumes an arbitrary dictionary into the model.\n<END>",
"<BEGIN>\n## `validate`",
"Validates all field values for the model.\n<END>",
"<BEGIN>\n## `save`",
"Persists the model to the databas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the use_ws_subhandlers 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 use_ws_subhandlers 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... | Allows the handler to return any number of **subhandlers** that will be
run in parallel. This makes it much cleaner and easier to write a handler
that both listens for incoming messages on the socket connection, while
also watching a changefeed from RethinkDB.
Example usage ::
@use_ws_subhandl... | "Allows the handler to return any number of **subhandlers** that will be\n run in parallel. This makes it much cleaner and easier to write a handler\n that both listens for incoming messages on the socket connection, while\n also watching a changefeed from RethinkDB.\n\n Example usage ::\n\n @use_ws_... | 18 | false | brinkframework/brink | use_ws_subhandlers | 15,056 | |
LDU_FT/OnroerendErfgoed/crabpy_pyramid/item_deelgemeente_adapter | LDU_FT | [
"<BEGIN>\n## `range_return`",
"Determine what range of objects to return.",
" Will check fot both `Range` and `X-Range` headers in the request and\n set both `Content-Range` and 'X-Content-Range' headers.",
" :rtype: list\n<END>",
"<BEGIN>\n## `set_http_caching`",
"Set an HTTP Cache Control heade... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the item_deelgemeente_adapter 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 item_deelgemeente_adapter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Adapter for rendering a object of
:class:`crabpy.gateway.crab.Deelgemeente` to json. | "Adapter for rendering a object of\n :class:`crabpy.gateway.crab.Deelgemeente` to json." | 72 | false | OnroerendErfgoed/crabpy_pyramid | item_deelgemeente_adapter | 15,057 | |
LDU_FT/brocade/pynos/_bfd_rx | LDU_FT | [
"<BEGIN>\n## `local_asn`",
"Set BGP local ASN.",
" Args:\n local_as (str): Local ASN of NOS deice.\n rbridge_id (str): The rbridge ID of the device on which BGP will be\n configured in a VCS fabric.\n get (bool): Get config instead of editing config. (True,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bfd_rx API.
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 _bfd_rx API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return the BFD minimum receive interval XML.
You should not use this method.
You probably want `BGP.bfd`.
Args:
min_rx (str): BFD receive interval in milliseconds (300, 500, etc)
delete (bool): Remove the configuration if ``True``.
Returns:
XML to b... | "Return the BFD minimum receive interval XML.\n\n You should not use this method.\n You probably want `BGP.bfd`.\n\n Args:\n min_rx (str): BFD receive interval in milliseconds (300, 500, etc)\n delete (bool): Remove the configuration if ``True``.\n\n Returns:\n ... | 711 | false | brocade/pynos | _bfd_rx | 15,058 | |
LDU_FT/tomduck/pandoc-xnos/_extract_modifier | LDU_FT | [
"<BEGIN>\n## `_repeat`",
"Repeats func(...) call until something other than None is returned.\n<END>",
"<BEGIN>\n## `init`",
"Sets or determines the pandoc version. This must be called.",
" The pandoc version is needed for multi-version support.\n See: https://github.com/jgm/pandoc/issues/2640",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_modifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _extract_modifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Extracts the */+/! modifier in front of the Cite at index 'i' of the
element list 'x'. The modifier is stored in 'attrs'. Returns the updated
index 'i'. | "Extracts the */+/! modifier in front of the Cite at index 'i' of the\n element list 'x'. The modifier is stored in 'attrs'. Returns the updated\n index 'i'." | 63 | false | tomduck/pandoc-xnos | _extract_modifier | 15,059 | |
LDU_FT/bovee/Aston/_apply_data | LDU_FT | [
"<BEGIN>\n## `simple_integrate`",
"Integrate each peak naively; without regard to overlap.",
" This is used as the terminal step by most of the other integrators.\n<END>",
"<BEGIN>\n## `drop_integrate`",
"Resolves overlap by breaking at the minimum value.\n<END>",
"<BEGIN>\n## `_integrate_mpwrap`",
"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _apply_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Convenience function for all of the math stuff. | "Convenience function for all of the math stuff." | 89 | false | bovee/Aston | _apply_data | 15,060 | |
LDU_FT/tmux-python/tmuxp/scan_config | 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 API.
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 scan_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 extra... | Return the real config path or raise an exception.
If config is directory, scan for .tmuxp.{yaml,yml,json} in directory. If
one or more found, it will warn and pick the first.
If config is ".", "./" or None, it will scan current directory.
If config is has no path and only a filename, e.g. "myconfig.... | "Return the real config path or raise an exception.\n\n If config is directory, scan for .tmuxp.{yaml,yml,json} in directory. If\n one or more found, it will warn and pick the first.\n\n If config is \".\", \"./\" or None, it will scan current directory.\n\n If config is has no path and only a filename, e.g... | 161 | false | tmux-python/tmuxp | scan_config | 15,061 | |
LDU_FT/SUSE-Enceladus/ipa/generate_public_ssh_key | LDU_FT | [
"<BEGIN>\n## `_get_instance_state`",
"Attempt to retrieve the state of the instance.\n Raises:\n EC2CloudException: If the instance cannot be found.\n<END>",
"<BEGIN>\n## `_get_user_data`",
"Return formatted bash script string.",
" The public ssh key is added by cloud init to the i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_public_ssh_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_public_ssh_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... | Generate SSH public key from private key file. | "Generate SSH public key from private key file." | 143 | false | SUSE-Enceladus/ipa | generate_public_ssh_key | 15,062 | |
LDU_FT/paolodragone/pymzn/run_process | LDU_FT | [
"<BEGIN>\n## `minizinc`",
"Coroutine version of the ``pymzn.minizinc`` function.",
" Parameters\n ----------\n max_queue_size : int\n Maximum number of solutions in the queue between the solution parser and\n the returned solution stream. When the queue is full, the solver\n execut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_process API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Run an external process.
Parameters
----------
*args : list of str
The arguments to pass to the external process. The first argument should
be the executable to call.
input : str or bytes
The input stream to supply to the extenal process.
Return
------
Object wr... | "Run an external process.\n\n Parameters\n ----------\n *args : list of str\n The arguments to pass to the external process. The first argument should\n be the executable to call.\n input : str or bytes\n The input stream to supply to the extenal process.\n\n Return\n ------\n ... | 102 | false | paolodragone/pymzn | run_process | 15,063 | |
LDU_FT/MarkusH/django-osm-field/formfield | LDU_FT | [
"<BEGIN>\n## `formfield`",
":returns: A :class:`~django.forms.FloatField` with ``max_value`` 90 and\n ``min_value`` -90.\n<END>",
"<BEGIN>\n## `formfield`",
":returns: A :class:`~django.forms.FloatField` with ``max_value`` 180 and\n ``min_value`` -180.\n<END>",
"<BEGIN>\n## `formfield`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the formfield API.
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 formfield API.
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... | :returns: A :class:`~django.forms.FloatField` with ``max_value`` 90 and
``min_value`` -90. | ":returns: A :class:`~django.forms.FloatField` with ``max_value`` 90 and\n ``min_value`` -90." | 10 | false | MarkusH/django-osm-field | formfield | 15,064 | |
LDU_FT/bitly/asyncmongo/_collection_names_result | LDU_FT | [
"<BEGIN>\n## `_unpack_response`",
"Unpack a response from the database.",
" Check the response for errors and unpack, returning a dictionary\n containing the response data.",
" :Parameters:\n - `response`: byte string as returned from the database\n - `cursor_id` (optional): cursor_id we se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collection_names_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _collection_names_result API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | callback to for collection names query, filters out collection names | "callback to for collection names query, filters out collection names" | 88 | false | bitly/asyncmongo | _collection_names_result | 15,065 | |
LDU_FT/pletzer/pnumpy/gmdaZeros | LDU_FT | [
"<BEGIN>\n## `getStringPartition`",
"Get the string representation of the current partition\n @return string like \":-1,0:2\"\n<END>",
"<BEGIN>\n## `getPrimeFactors`",
"Get all the prime factor of given integer\n @param n integer\n @return list [1, ..., n]\n<END>",
"<BEGIN>\n## `getNeighborProc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gmdaZeros API.
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 gmdaZeros API.
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... | ghosted distributed array zero constructor
@param shape the shape of the array
@param dtype the numpy data type
@param numGhosts the number of ghosts (>= 0) | "ghosted distributed array zero constructor\n @param shape the shape of the array\n @param dtype the numpy data type\n @param numGhosts the number of ghosts (>= 0)" | 54 | false | pletzer/pnumpy | gmdaZeros | 15,066 | |
LDU_FT/CZ-NIC/python-rt/get_history | LDU_FT | [
"<BEGIN>\n## `__request`",
"General request for :term:`API`.",
" :keyword selector: End part of URL which completes self.url parameter\n set during class initialization.\n E.g.: ``ticket/123456/show``\n :keyword post_data: Dictionary with POST me... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_history API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_history API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Get set of history items.
:param ticket_id: ID of ticket
:keyword transaction_id: If set to None, all history items are
returned, if set to ID of valid transaction
just one history item is returned
:returns: List of history item... | "Get set of history items.\n\n :param ticket_id: ID of ticket\n :keyword transaction_id: If set to None, all history items are\n returned, if set to ID of valid transaction\n just one history item is returned\n\n :returns: List of hist... | 143 | false | CZ-NIC/python-rt | get_history | 15,067 | |
LDU_FT/Julius2342/pyvlx/close | LDU_FT | [
"<BEGIN>\n## `add`",
"Add Node, replace existing node if node with node_id is present.\n<END>",
"<BEGIN>\n## `load`",
"Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>",
"<BEGIN>\n## `handle_frame`",
"Handle incoming API frame, return True if this was the expected frame.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API.
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 close API.
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... | Close window.
Parameters:
* wait_for_completion: If set, function will return
after device has reached target position. | "Close window.\n\n Parameters:\n * wait_for_completion: If set, function will return\n after device has reached target position." | 74 | false | Julius2342/pyvlx | close | 15,068 | |
LDU_FT/ahopkins/sanic-jwt/__check_deprecated | LDU_FT | [
"<BEGIN>\n## `_verify`",
"If there is a \"permakey\", then we will verify the token by checking the\n database. Otherwise, just do the normal verification.",
" Typically, any method that begins with an underscore in sanic-jwt should\n not be touched. In this case, we are trying to break the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_deprecated API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __check_deprecated 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... | Checks for deprecated configuration keys | "Checks for deprecated configuration keys" | 47 | false | ahopkins/sanic-jwt | __check_deprecated | 15,069 | |
LDU_FT/raghakot/keras-vis/lookup_imagenet_labels | LDU_FT | [
"<BEGIN>\n## `visualize_activation_with_losses`",
"Generates the `input_tensor` that minimizes the weighted `losses`. This function is intended for advanced\n use cases where a custom loss is desired.",
" Args:\n input_tensor: An input tensor of shape: `(samples, channels, image_dims...)` if `image... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lookup_imagenet_labels 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 lookup_imagenet_labels API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Utility function to return the image net label for the final `dense` layer output index.
Args:
indices: Could be a single value or an array of indices whose labels should be looked up.
Returns:
Image net label corresponding to the image category. | "Utility function to return the image net label for the final `dense` layer output index.\n\n Args:\n indices: Could be a single value or an array of indices whose labels should be looked up.\n\n Returns:\n Image net label corresponding to the image category." | 138 | false | raghakot/keras-vis | lookup_imagenet_labels | 15,070 | |
LDU_FT/BD2KOnFHIR/fhirtordf/add_prefixes | LDU_FT | [
"<BEGIN>\n## `namespace_for`",
"Reverse namespace lookup. Note that returned namespace may not be unique\n :param uri: namespace URI\n :return: namespace\n<END>",
"<BEGIN>\n## `known_formats`",
"Return a list of available formats in rdflib for the required task\n :param use: task (typically Serializ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_prefixes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_prefixes API.
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... | Add the required prefix definitions
:return: | "Add the required prefix definitions\n :return:" | 75 | false | BD2KOnFHIR/fhirtordf | add_prefixes | 15,071 | |
LDU_FT/openstates/billy/vote | LDU_FT | [
"<BEGIN>\n## `decimal_format`",
"Format a decimal.Decimal like to 2 decimal places.\n<END>",
"<BEGIN>\n## `notification_preference`",
"Display two radio buttons for turning notifications on or off.\n The default value is is have alerts_on = True.\n<END>",
"<BEGIN>\n## `committee_object`",
"If the commi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vote API.
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 vote API.
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... | Context:
- abbr
- metadata
- bill
- vote
- nav_active
Templates:
- vote.html | "Context:\n - abbr\n - metadata\n - bill\n - vote\n - nav_active\n\n Templates:\n - vote.html" | 168 | false | openstates/billy | vote | 15,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.