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/RedFantom/ttkwidgets/_mouse_scroll_h | LDU_FT | [
"<BEGIN>\n## `_grid_widgets`",
"Puts the two whole widgets in the correct position depending on compound.\n<END>",
"<BEGIN>\n## `_on_click`",
"Function bound to event of selection in the Combobox, calls callback if callable",
" :param event: Tkinter event\n<END>",
"<BEGIN>\n## `left_press`",
"Cal... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _mouse_scroll_h API.
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 _mouse_scroll_h API.
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... | Callback <Shift-MouseWheel> event for horizontal scrolling | "Callback <Shift-MouseWheel> event for horizontal scrolling" | 429 | false | RedFantom/ttkwidgets | _mouse_scroll_h | 21,173 | |
LDU_FT/tomi77/python-t77-date/set_next_week_day | LDU_FT | [
"<BEGIN>\n## `timedelta_to_seconds`",
"Convert datetime.timedelta to seconds\n :param value: timedelta to convert\n :type value: datetime.timedelta\n :param with_microseconds:\n :type with_microseconds: bool\n :return: seconds/seconds with microseconds or None if val is None\n :rtype: int/float/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_next_week_day API.
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 set_next_week_day API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Set week day.
New date will be greater or equal than input date.
:param val: datetime or date
:type val: datetime.datetime | datetime.date
:param week_day: Week day to set
:type week_day: int
:param iso: week_day in ISO format, or not
:type iso: bool
:return: datetime.datetime | datetime... | "Set week day.\n New date will be greater or equal than input date.\n :param val: datetime or date\n :type val: datetime.datetime | datetime.date\n :param week_day: Week day to set\n :type week_day: int\n :param iso: week_day in ISO format, or not\n :type iso: bool\n :return: datetime.datetime |... | 26 | false | tomi77/python-t77-date | set_next_week_day | 21,174 | |
LDU_FT/YosaiProject/yosai/ensure_security_manager | LDU_FT | [
"<BEGIN>\n## `on_successful_login`",
"Reacts to the successful login attempt by first always\n forgetting any previously stored identity. Then if the authc_token\n is a ``RememberMe`` type of token, the associated identity\n will be remembered for later retrieval during a new user session.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_security_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ensure_security_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Determines whether there is a ``SecurityManager`` instance in the context,
and if not, adds 'self' to the context. This ensures that do_create_subject
will have access to a ``SecurityManager`` during Subject construction.
:param subject_context: the subject context data that may contain a
... | "Determines whether there is a ``SecurityManager`` instance in the context,\n and if not, adds 'self' to the context. This ensures that do_create_subject\n will have access to a ``SecurityManager`` during Subject construction.\n\n :param subject_context: the subject context data that may contain a... | 335 | false | YosaiProject/yosai | ensure_security_manager | 21,175 | |
LDU_FT/hovren/crisp/subsample | LDU_FT | [
"<BEGIN>\n## `sync_camera_gyro`",
"Get time offset that aligns image timestamps with gyro timestamps.",
" Given an image sequence, and gyroscope data, with their respective timestamps,\n calculate the offset that aligns the image data with the gyro data.\n The timestamps must only differ by an offset, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subsample API.
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 subsample API.
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... | Subsample with Gaussian prefilter
The prefilter will have the filter size $\sigma_g=.5*ssfactor$
Parameters
--------------
time_series : ndarray
Input signal
downsample_factor : float
Downsampling factor
Returns
--------------
ts_out : ndarray
... | "Subsample with Gaussian prefilter\n\n The prefilter will have the filter size $\\sigma_g=.5*ssfactor$\n\n Parameters\n --------------\n time_series : ndarray\n Input signal\n downsample_factor : float\n Downsampling factor\n \n Returns\n --------------\n ts_out : ... | 252 | false | hovren/crisp | subsample | 21,176 | |
LDU_FT/tcalmant/python-javaobj/loads | LDU_FT | [
"<BEGIN>\n## `decoder`",
"This generator processes a sequence of bytes in Modified UTF-8 encoding\n and produces a sequence of unicode string characters.",
" It takes bits from the byte until it matches one of the known encoding\n sequences.\n It uses ``DecodeMap`` to mask, compare and generate valu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the loads API.
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 loads API.
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... | Deserializes Java objects and primitive data serialized using
ObjectOutputStream from a string.
:param string: A Java data string
:param transformers: Custom transformers to use
:param ignore_remaining_data: If True, don't log an error when unused
trailing bytes are re... | "Deserializes Java objects and primitive data serialized using\n ObjectOutputStream from a string.\n\n :param string: A Java data string\n :param transformers: Custom transformers to use\n :param ignore_remaining_data: If True, don't log an error when unused\n trailing bytes... | 104 | false | tcalmant/python-javaobj | loads | 21,177 | |
LDU_FT/openstack/monasca-common/decode_fetch_response | LDU_FT | [
"<BEGIN>\n## `fmtd_sub_expr_str`",
"Get the entire sub expressions as a string with spaces.\n<END>",
"<BEGIN>\n## `normalized_operator`",
"Get the operator as one of LT, GT, LTE, or GTE.\n<END>",
"<BEGIN>\n## `_get_conn`",
"Get or create a connection to a broker using host and port\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_fetch_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decode_fetch_response API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Decode bytes to a FetchResponse
Arguments:
data: bytes to decode | "Decode bytes to a FetchResponse\n\n Arguments:\n data: bytes to decode" | 227 | false | openstack/monasca-common | decode_fetch_response | 21,178 | |
LDU_FT/dmckeone/frosty/build_includes | LDU_FT | [
"<BEGIN>\n## `_import_packages`",
"Get actual package references from an iterable of package names\n :param packages: iterable of package names\n :type packages: iter of basestr\n :return: set of package references\n :rtype: set\n<END>",
"<BEGIN>\n## `build_includes`",
"Iterate the list of package... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_includes API.
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 build_includes API.
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... | Iterate the list of packages to build a complete list of those packages as well as all subpackages.
:param include_packages: list of package names
:type: include_pacakges: list of basestr
:param freezer: The freezer to use (See FREEZER constants)
:param optional: Optional pacakge names to include (will... | "Iterate the list of packages to build a complete list of those packages as well as all subpackages.\n\n :param include_packages: list of package names\n :type: include_pacakges: list of basestr\n :param freezer: The freezer to use (See FREEZER constants)\n :param optional: Optional pacakge names to include... | 24 | false | dmckeone/frosty | build_includes | 21,179 | |
LDU_FT/ternaris/marv/gallery_section | LDU_FT | [
"<BEGIN>\n## `encode_setid`",
"Encode uint128 setid as stripped b32encoded string\n<END>",
"<BEGIN>\n## `marvcli_cleanup`",
"Cleanup unused tags and discarded datasets.\n<END>",
"<BEGIN>\n## `marvcli_develop_server`",
"Run development webserver.",
" ATTENTION: By default it is only served on localhos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gallery_section API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gallery_section API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Create detail section with gallery.
Args:
title (str): Title to be displayed for detail section.
images: stream of marv image files
Returns
One detail section. | "Create detail section with gallery.\n\n Args:\n title (str): Title to be displayed for detail section.\n images: stream of marv image files\n\n Returns\n One detail section." | 76 | false | ternaris/marv | gallery_section | 21,180 | |
LDU_FT/src-d/modelforge/dump_model | LDU_FT | [
"<BEGIN>\n## `initialize_registry`",
"Initialize the registry and the index.",
" :param args: :class:`argparse.Namespace` with \"backend\", \"args\", \"force\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger supplied by supply_backend... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dump_model API.
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 dump_model API.
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... | Print the information about the model.
:param args: :class:`argparse.Namespace` with "input", "backend", "args", "username", \
"password", "remote_repo" and "log_level".
:param backend: Backend which is responsible for working with model files.
:param log: Logger supplied by supply_backend... | "Print the information about the model.\n\n :param args: :class:`argparse.Namespace` with \"input\", \"backend\", \"args\", \"username\", \\\n \"password\", \"remote_repo\" and \"log_level\".\n :param backend: Backend which is responsible for working with model files.\n :param log: Logger suppl... | 118 | false | src-d/modelforge | dump_model | 21,181 | |
LDU_FT/ProjetPP/PPP-datamodel-Python/from_json | LDU_FT | [
"<BEGIN>\n## `as_dict`",
"Returns a JSON-serializeable object representing this tree.\n<END>",
"<BEGIN>\n## `from_json`",
"Decode a JSON string and inflate a node instance.\n<END>",
"<BEGIN>\n## `_check_attributes`",
"Check if attributes given to the constructor can be used to\n instanciate a valid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Decode a JSON string and inflate a node instance. | "Decode a JSON string and inflate a node instance." | 10 | false | ProjetPP/PPP-datamodel-Python | from_json | 21,182 | |
LDU_FT/joke2k/faker/ipv6 | LDU_FT | [
"<BEGIN>\n## `checksum`",
"Calculates the checksum char used for the 16th char.\n Author: Vincenzo Palazzo\n<END>",
"<BEGIN>\n## `binary`",
"Returns random binary blob.",
" Default blob size is 1 Mb.\n<END>",
"<BEGIN>\n## `md5`",
"Calculates the md5 hash of a given string\n :example 'cf... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ipv6 API.
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 ipv6 API.
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... | Produce a random IPv6 address or network with a valid CIDR | "Produce a random IPv6 address or network with a valid CIDR" | 334 | false | joke2k/faker | ipv6 | 21,183 | |
LDU_FT/mwouts/jupytext/notebook_to_md | LDU_FT | [
"<BEGIN>\n## `is_magic`",
"Is the current line a (possibly escaped) Jupyter magic, and should it be commented?\n<END>",
"<BEGIN>\n## `metadata_filter_as_dict`",
"Return the metadata filter represented as either None (no filter),\n or a dictionary with at most two keys: 'additional' and 'excluded',\n whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the notebook_to_md API.
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 notebook_to_md API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Convert a notebook to its Markdown representation, using Pandoc | "Convert a notebook to its Markdown representation, using Pandoc" | 229 | false | mwouts/jupytext | notebook_to_md | 21,184 | |
LDU_FT/RI-imaging/nrefocus/autofocus | LDU_FT | [
"<BEGIN>\n## `_get_pad_left_right`",
"Compute left and right padding values.",
" Here we use the convention that if the padding\n size is odd, we pad the odd part to the right\n and the even part to the left.",
" Parameters\n ----------\n small : int\n Old size of original 1D array\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the autofocus API.
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 autofocus API.
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... | Numerical autofocusing of a field using the Helmholtz equation.
Parameters
----------
field : 1d or 2d ndarray
Electric field is BG-Corrected, i.e. field = EX/BEx
nm : float
Refractive index of medium.
res : float
Size of wavelength in pixels.
ival : tuple of floats
... | "Numerical autofocusing of a field using the Helmholtz equation.\n\n\n Parameters\n ----------\n field : 1d or 2d ndarray\n Electric field is BG-Corrected, i.e. field = EX/BEx\n nm : float\n Refractive index of medium.\n res : float\n Size of wavelength in pixels.\n ival : tuple o... | 71 | false | RI-imaging/nrefocus | autofocus | 21,185 | |
LDU_FT/confirm/ansibleci/get_yaml_items | LDU_FT | [
"<BEGIN>\n## `add_module`",
"Adds configuration parameters from a Python module.\n<END>",
"<BEGIN>\n## `get_absolute_path`",
"Returns the absolute path of the ``path`` argument.",
" If ``path`` is already absolute, nothing changes. If the ``path`` is\n relative, then the BASEDIR will be prepen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_yaml_items API.
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_yaml_items API.
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... | Loops through the dir_path and parses all YAML files inside the
directory.
If no param is defined, then all YAML items will be returned
in a list. If a param is defined, then all items will be scanned for
this param and a list of all those values will be returned. | "Loops through the dir_path and parses all YAML files inside the\n directory.\n\n If no param is defined, then all YAML items will be returned\n in a list. If a param is defined, then all items will be scanned for\n this param and a list of all those values will be returned." | 26 | false | confirm/ansibleci | get_yaml_items | 21,186 | |
LDU_FT/SylvanasSun/python-common-cache/with_thread_pool | LDU_FT | [
"<BEGIN>\n## `_enable_lock`",
"The decorator for ensuring thread-safe when current cache instance is concurrent status.\n<END>",
"<BEGIN>\n## `_enable_cleanup`",
"Execute cleanup operation when the decorated function completed.\n<END>",
"<BEGIN>\n## `_enable_thread_pool`",
"Use thread pool for executing a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the with_thread_pool API.
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 with_thread_pool API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | >>> cache = Cache(enable_thread_pool=False, log_level=logging.ERROR)
>>> cache.with_thread_pool()
True
>>> cache.with_thread_pool()
False | ">>> cache = Cache(enable_thread_pool=False, log_level=logging.ERROR)\n >>> cache.with_thread_pool()\n True\n >>> cache.with_thread_pool()\n False" | 71 | false | SylvanasSun/python-common-cache | with_thread_pool | 21,187 | |
LDU_FT/idlesign/django-dev/create_manage_py | LDU_FT | [
"<BEGIN>\n## `configure_logging`",
"Switches on logging at a given level.",
" :param verbosity_lvl:\n :param format:\n<END>",
"<BEGIN>\n## `_run_shell_command`",
"Runs the given shell command.",
" :param command:\n :return: bool Status\n<END>",
"<BEGIN>\n## `run_manage_comman... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_manage_py API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_manage_py API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Creates manage.py file, with a given list of installed apps.
:param list apps: | "Creates manage.py file, with a given list of installed apps.\n\n :param list apps:" | 45 | false | idlesign/django-dev | create_manage_py | 21,188 | |
LDU_FT/daler/gffutils/sequence | LDU_FT | [
"<BEGIN>\n## `to_bedtool`",
"Convert any iterator into a pybedtools.BedTool object.",
" Note that the supplied iterator is not consumed by this function. To save\n to a temp file or to a known location, use the `.saveas()` method of the\n returned BedTool object.\n<END>",
"<BEGIN>\n## `tsses`",
"Cr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence API.
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 sequence API.
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... | Retrieves the sequence of this feature as a string.
Uses the pyfaidx package.
Parameters
----------
fasta : str
If str, then it's a FASTA-format filename; otherwise assume it's
a pyfaidx.Fasta object.
use_strand : bool
If True (default), th... | "Retrieves the sequence of this feature as a string.\n\n Uses the pyfaidx package.\n\n Parameters\n ----------\n\n fasta : str\n If str, then it's a FASTA-format filename; otherwise assume it's\n a pyfaidx.Fasta object.\n\n use_strand : bool\n If True ... | 366 | false | daler/gffutils | sequence | 21,189 | |
LDU_FT/singularityhub/singularity-python/extension_counts | LDU_FT | [
"<BEGIN>\n## `get_template`",
"get_template will return a template in the template folder,\n with some substitutions (eg, {'{{ graph | safe }}':\"fill this in!\"}\n<END>",
"<BEGIN>\n## `container_similarity_vector`",
"container similarity_vector is similar to compare_packages, but intended\n to compare ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extension_counts API.
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 extension_counts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | extension counts will return a dictionary with counts of file extensions for
an image.
:param container: if provided, will use container as image. Can also provide
:param image_package: if provided, can be used instead of container
:param file_list: the complete list of files
:param return_counts: r... | "extension counts will return a dictionary with counts of file extensions for\n an image.\n :param container: if provided, will use container as image. Can also provide\n :param image_package: if provided, can be used instead of container\n :param file_list: the complete list of files\n :param return_cou... | 135 | false | singularityhub/singularity-python | extension_counts | 21,190 | |
LDU_FT/chaoss/grimoirelab-toolkit/inspect_signature_parameters | LDU_FT | [
"<BEGIN>\n## `datetime_to_utc`",
"Convert a timestamp to UTC+0 timezone.",
" Returns the given datetime object converted to a date with\n UTC+0 timezone. For naive datetimes, it will be assumed that\n they are in UTC+0. When the timezone is wrong, UTC+0 will\n be set as default (using `dateutil.tz.t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the inspect_signature_parameters 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 inspect_signature_parameters API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Get the parameters of a callable.
Returns a list with the signature parameters of `callable_`.
Parameters contained in `excluded` tuple will not be included
in the result.
:param callable_: callable object
:param excluded: tuple with default parameters to exclude
:result: list of parameters | "Get the parameters of a callable.\n\n Returns a list with the signature parameters of `callable_`.\n Parameters contained in `excluded` tuple will not be included\n in the result.\n\n :param callable_: callable object\n :param excluded: tuple with default parameters to exclude\n\n :result: list of pa... | 34 | false | chaoss/grimoirelab-toolkit | inspect_signature_parameters | 21,191 | |
LDU_FT/havardgulldahl/jottalib/thumb | LDU_FT | [
"<BEGIN>\n## `get_auth_info`",
"Get authentication details to jottacloud.",
" Will first check environment variables, then the .netrc file.\n<END>",
"<BEGIN>\n## `calculate_md5`",
"Utility function to calculate md5 hashes while being light on memory usage.",
" By reading the fileobject piece by piec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the thumb API.
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 thumb API.
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... | Get a thumbnail as string or None if the file isnt an image
size would be one of JFSFile.BIGTHUMB, .MEDIUMTHUMB, .SMALLTHUMB or .XLTHUMB | "Get a thumbnail as string or None if the file isnt an image\n\n size would be one of JFSFile.BIGTHUMB, .MEDIUMTHUMB, .SMALLTHUMB or .XLTHUMB" | 111 | false | havardgulldahl/jottalib | thumb | 21,192 | |
LDU_FT/VisualOps/cli/mount | LDU_FT | [
"<BEGIN>\n## `create_app`",
"insert app record when stack run as a app\n<END>",
"<BEGIN>\n## `create_container`",
"insert container record when create container\n<END>",
"<BEGIN>\n## `get_app_data`",
"get app data ( include name and app_data )\n<END>",
"<BEGIN>\n## `_get_config`",
"Get user docker con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mount API.
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 mount API.
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... | volumes: [{
"volume": "root",
"hostpath": "/"
},
...
] | "volumes: [{\n \"volume\": \"root\",\n \"hostpath\": \"/\"\n },\n ...\n ]" | 90 | false | VisualOps/cli | mount | 21,193 | |
LDU_FT/szastupov/aiotg/send_sticker | LDU_FT | [
"<BEGIN>\n## `loop`",
"Return bot's main loop as coroutine. Use with asyncio.",
" :Example:",
" >>> loop = asyncio.get_event_loop()\n >>> loop.run_until_complete(bot.loop())",
" or",
" >>> loop = asyncio.get_event_loop()\n >>> loop.create_task(bot.loop())\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_sticker API.
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 send_sticker API.
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... | Send a sticker to the chat.
:param sticker: Sticker to send (file or string)
:param options: Additional sendSticker options (see
https://core.telegram.org/bots/api#sendsticker) | "Send a sticker to the chat.\n\n :param sticker: Sticker to send (file or string)\n :param options: Additional sendSticker options (see\n https://core.telegram.org/bots/api#sendsticker)" | 134 | false | szastupov/aiotg | send_sticker | 21,194 | |
LDU_FT/WhyNotHugo/django-afip/get_ticket | LDU_FT | [
"<BEGIN>\n## `catch_errors`",
"Catches specific errors in admin actions and shows a friendly error.\n<END>",
"<BEGIN>\n## `numbers`",
"Returns the barcode's number without the verification digit.",
" :return: list(int)\n<END>",
"<BEGIN>\n## `verification_digit`",
"Returns the verification digit f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_ticket API.
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_ticket API.
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 an existing AuthTicket for a given service. | "Return an existing AuthTicket for a given service." | 96 | false | WhyNotHugo/django-afip | get_ticket | 21,195 | |
LDU_FT/outini/python-pylls/get | LDU_FT | [
"<BEGIN>\n## `request`",
"Handle requests to API",
" :param str path: API endpoint's path to request\n :param str method: HTTP method to use\n :param dict data: Data to send (optional)\n :return: Parsed json response as :class:`dict`",
" Additional named argument may be pass... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Get component groups
:param group_id: Component group ID (optional)
:return: Component groups data (:class:`dict`)
Additional named arguments may be passed and are directly transmitted
to API. It is useful to use the API search features.
.. seealso:: https://docs.cachethq.io/r... | "Get component groups\n\n :param group_id: Component group ID (optional)\n :return: Component groups data (:class:`dict`)\n\n Additional named arguments may be passed and are directly transmitted\n to API. It is useful to use the API search features.\n\n .. seealso:: https://docs.cach... | 71 | false | outini/python-pylls | get | 21,196 | |
LDU_FT/junzis/pyModeS/hdg60 | LDU_FT | [
"<BEGIN>\n## `category`",
"Aircraft category number",
" Args:\n msg (string): 28 bytes hexadecimal message string",
" Returns:\n int: category number\n<END>",
"<BEGIN>\n## `callsign`",
"Aircraft callsign",
" Args:\n msg (string): 28 bytes hexadecimal message string",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hdg60 API.
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 hdg60 API.
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... | Megnetic heading of aircraft
Args:
msg (String): 28 bytes hexadecimal message (BDS60) string
Returns:
float: heading in degrees to megnetic north (from 0 to 360) | "Megnetic heading of aircraft\n\n Args:\n msg (String): 28 bytes hexadecimal message (BDS60) string\n\n Returns:\n float: heading in degrees to megnetic north (from 0 to 360)" | 310 | false | junzis/pyModeS | hdg60 | 21,197 | |
LDU_FT/tweekmonster/moult/import_path_from_file | LDU_FT | [
"<BEGIN>\n## `load_stdlib`",
"Scans sys.path for standard library modules.\n<END>",
"<BEGIN>\n## `import_path_from_file`",
"Returns a tuple of the import path and root module directory for the\n supplied file.\n<END>",
"<BEGIN>\n## `file_containing_import`",
"Finds the file that might contain the impor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_path_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_path_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.
... | Returns a tuple of the import path and root module directory for the
supplied file. | "Returns a tuple of the import path and root module directory for the\n supplied file." | 34 | false | tweekmonster/moult | import_path_from_file | 21,198 | |
LDU_FT/kmarekspartz/props/list_of | LDU_FT | [
"<BEGIN>\n## `for_all`",
"Takes a list of generators and returns a closure which takes a property,\n then tests the property against arbitrary instances of the generators.\n<END>",
"<BEGIN>\n## `maybe_a`",
"Generates either an arbitrary value of the specified generator or None.\n This is a class factory... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_of API.
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 list_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Generates a list consisting solely of the specified generators.
This is a class factory, it makes a class which is a closure around the
specified generators. | "Generates a list consisting solely of the specified generators.\n This is a class factory, it makes a class which is a closure around the\n specified generators." | 14 | false | kmarekspartz/props | list_of | 21,199 | |
LDU_FT/dourvaris/nano-python/_process_value | LDU_FT | [
"<BEGIN>\n## `signature_unsafe`",
"Not safe to use with secret keys or secret data.\n See module docstring. This function should be used for testing only.\n<END>",
"<BEGIN>\n## `checkvalid`",
"Not safe to use when any argument is secret.\n See module docstring. This function should be used only for\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Process a value that will be sent to backend
:param value: the value to return
:param type: hint for what sort of value this is
:type type: str | "Process a value that will be sent to backend\n\n :param value: the value to return\n\n :param type: hint for what sort of value this is\n :type type: str" | 574 | false | dourvaris/nano-python | _process_value | 21,200 | |
LDU_FT/anthill/koala/build_ast | LDU_FT | [
"<BEGIN>\n## `max_dimension`",
"This function calculates the maximum dimension of the workbook or optionally the worksheet. It returns a tupple\n of two integers, the first being the rows and the second being the columns.",
" :param cellmap: all the cells that should be used to calculate the maximum.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_ast API.
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 build_ast API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | build an AST from an Excel formula expression in reverse polish notation | "build an AST from an Excel formula expression in reverse polish notation" | 38 | false | anthill/koala | build_ast | 21,201 | |
LDU_FT/bmihelac/django-cruds/get_fields | LDU_FT | [
"<BEGIN>\n## `crud_url_name`",
"Returns url name for given model and action.\n<END>",
"<BEGIN>\n## `get_fields`",
"Returns ordered dict in format 'field': 'verbose_name'\n<END>",
"<BEGIN>\n## `crud_url`",
"Shortcut function returns URL for instance or model and action.",
" Example::",
" crud... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_fields API.
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_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns ordered dict in format 'field': 'verbose_name' | "Returns ordered dict in format 'field': 'verbose_name'" | 34 | false | bmihelac/django-cruds | get_fields | 21,202 | |
LDU_FT/raamana/hiwenet/check_param_ranges | LDU_FT | [
"<BEGIN>\n## `diff_medians`",
"Computes the difference in medians between two arrays of values.",
" Given arrays will be flattened (to 1D array) regardless of dimension,\n and any non-finite/NaN values will be ignored.",
" Parameters\n ----------\n array_one, array_two : iterable\n T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_param_ranges 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_param_ranges 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... | Ensuring the parameters are in valid ranges. | "Ensuring the parameters are in valid ranges." | 115 | false | raamana/hiwenet | check_param_ranges | 21,203 | |
LDU_FT/dshean/demcoreg/get_bareground_fn | LDU_FT | [
"<BEGIN>\n## `get_nlcd_fn`",
"Calls external shell script `get_nlcd.sh` to fetch:",
" 2011 Land Use Land Cover (nlcd) grids, 30 m",
" http://www.mrlc.gov/nlcd11_leg.php\n<END>",
"<BEGIN>\n## `get_bareground_fn`",
"Calls external shell script `get_bareground.sh` to fetch:",
" ~2010 global bare g... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_bareground_fn API.
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_bareground_fn API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Calls external shell script `get_bareground.sh` to fetch:
~2010 global bare ground, 30 m
Note: unzipped file size is 64 GB! Original products are uncompressed, and tiles are available globally (including empty data over ocean)
The shell script will compress all downloaded tiles using lossless LZW compres... | "Calls external shell script `get_bareground.sh` to fetch:\n\n ~2010 global bare ground, 30 m\n\n Note: unzipped file size is 64 GB! Original products are uncompressed, and tiles are available globally (including empty data over ocean)\n\n The shell script will compress all downloaded tiles using lossless LZW ... | 63 | false | dshean/demcoreg | get_bareground_fn | 21,204 | |
LDU_FT/janpipek/physt/normal_h3 | LDU_FT | [
"<BEGIN>\n## `register`",
"Decorator to wrap common plotting functionality.",
" Parameters\n ----------\n dim : Dimensionality of histogram for which it is applicable\n use_3d : If True, the figure will be 3D.\n use_polar : If True, the figure will be in polar coordinates.\n collection : Wheth... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normal_h3 API.
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 normal_h3 API.
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 simple 3D histogram with normal distribution.
Parameters
----------
size : Number of points | "A simple 3D histogram with normal distribution.\n\n Parameters\n ----------\n size : Number of points" | 460 | false | janpipek/physt | normal_h3 | 21,205 | |
LDU_FT/eyurtsev/FlowCytometryTools/_get_ID2position_mapper | LDU_FT | [
"<BEGIN>\n## `get_tag_value`",
"Extracts the value of a tag from a string.",
" Parameters\n -----------------",
" pre : str\n regular expression to match before the the tag value",
" post : str | list | tuple\n regular expression to match after the the tag value",
" if lis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ID2position_mapper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_ID2position_mapper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Defines a position parser that is used
to map between sample IDs and positions.
Parameters
--------------
{_bases_position_mapper}
TODO: Fix the name to work with more than 26 letters
of the alphabet. | "Defines a position parser that is used\n to map between sample IDs and positions.\n\n Parameters\n --------------\n {_bases_position_mapper}\n\n TODO: Fix the name to work with more than 26 letters\n of the alphabet." | 330 | false | eyurtsev/FlowCytometryTools | _get_ID2position_mapper | 21,206 | |
LDU_FT/Microsoft/ApplicationInsights-Python/track_dependency | LDU_FT | [
"<BEGIN>\n## `track_pageview`",
"Send information about the page viewed in the application (a web page for instance).",
" Args:\n name (str). the name of the page that was viewed.\\n\n url (str). the URL of the page that was viewed.\\n\n duration (int). the duration of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the track_dependency API.
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 track_dependency API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Sends a single dependency telemetry that was captured for the application.
Args:
name (str). the name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.\n
data (str). the command initiated by this dependen... | "Sends a single dependency telemetry that was captured for the application.\n\n Args:\n name (str). the name of the command initiated with this dependency call. Low cardinality value. Examples are stored procedure name and URL path template.\\n\n data (str). the command initiated by this de... | 268 | false | Microsoft/ApplicationInsights-Python | track_dependency | 21,207 | |
LDU_FT/bitlabstudio/django-libs/get_query_params | LDU_FT | [
"<BEGIN>\n## `add_form_widget_attr`",
"Adds widget attributes to a bound form field.",
" This is helpful if you would like to add a certain class to all your forms\n (i.e. `form-control` to all form fields when you are using Bootstrap)::",
" {% load libs_tags %}\n {% for field in form.fiel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_query_params API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Allows to change one of the URL get parameter while keeping all the others.
Usage::
{% load libs_tags %}
{% get_query_params request "page" page_obj.next_page_number as query %}
<a href="?{{ query }}">Next</a>
You can also pass in several pairs of keys and values::
{% get_query_param... | "Allows to change one of the URL get parameter while keeping all the others.\n\n Usage::\n\n {% load libs_tags %}\n {% get_query_params request \"page\" page_obj.next_page_number as query %}\n <a href=\"?{{ query }}\">Next</a>\n\n You can also pass in several pairs of keys and values::\n\n {% ... | 101 | false | bitlabstudio/django-libs | get_query_params | 21,208 | |
LDU_FT/CGATOxford/UMI-tools/umi_below_threshold | LDU_FT | [
"<BEGIN>\n## `remove_umis`",
"removes the specified nodes from the cluster and returns\n the remaining nodes\n<END>",
"<BEGIN>\n## `get_substr_slices`",
"Create slices to split a UMI into approximately equal size substrings\n Returns a list of tuples that can be passed to slice function\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the umi_below_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the umi_below_threshold API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | return true if any of the umi quals is below the threshold | "return true if any of the umi quals is below the threshold" | 165 | false | CGATOxford/UMI-tools | umi_below_threshold | 21,209 | |
LDU_FT/shinichi-takii/ddlparse/parse | LDU_FT | [
"<BEGIN>\n## `get_name`",
"Get Name converted case",
" :param name_case: name case type\n * DdlParse.NAME_CASE.original : Return to no convert\n * DdlParse.NAME_CASE.lower : Return to lower\n * DdlParse.NAME_CASE.upper : Return to upper",
" :return: name\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
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 parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse DDL script.
:param ddl: DDL script
:return: DdlParseTable, Parsed table define info. | "Parse DDL script.\n\n :param ddl: DDL script\n :return: DdlParseTable, Parsed table define info." | 19 | false | shinichi-takii/ddlparse | parse | 21,210 | |
LDU_FT/ggravlingen/pytradfri/get_selected_keys | 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 get_selected_keys API.
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_selected_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return a list of keys for the given selection. | "Return a list of keys for the given selection." | 79 | false | ggravlingen/pytradfri | get_selected_keys | 21,211 | |
LDU_FT/AshleySetter/optoanalysis/take_closest | LDU_FT | [
"<BEGIN>\n## `InterpretWaveform`",
"Take the raw binary from a file saved from the LeCroy, read from a file using \n the 2 lines:\n with open(filename, \"rb\") as file:\n raw = file.read()\n And extracts various properties of the saved time trace.",
" Parameters\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the take_closest API.
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 take_closest API.
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... | Assumes myList is sorted. Returns closest value to myNumber.
If two numbers are equally close, return the smallest number.
Parameters
----------
myList : array
The list in which to find the closest value to myNumber
myNumber : float
The number to find the closest to in MyList
R... | "Assumes myList is sorted. Returns closest value to myNumber.\n If two numbers are equally close, return the smallest number.\n\n Parameters\n ----------\n myList : array\n The list in which to find the closest value to myNumber\n myNumber : float\n The number to find the closest to in MyLi... | 402 | false | AshleySetter/optoanalysis | take_closest | 21,212 | |
LDU_FT/kwarunek/file2py/output | LDU_FT | [
"<BEGIN>\n## `load_file`",
"Loads data array from file (result of this converter)",
" Tries to import, load and replace files' data.\n It will overwirte previously added items with #add_file or #load_file.",
" :param input_file\n :type str or unicode\n<END>",
"<BEGIN>\n## `set_te... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output API.
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 output API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Generates output from data array
:returns Pythoned file
:rtype str or unicode | "Generates output from data array\n\n :returns Pythoned file\n :rtype str or unicode" | 16 | false | kwarunek/file2py | output | 21,213 | |
LDU_FT/thespacedoctor/astrocalc/decimal_day_to_day_hour_min_sec | LDU_FT | [
"<BEGIN>\n## `luminosity_to_flux`",
"*Convert luminosity to a flux*",
" **Key Arguments:**\n - ``lumErg_S`` -- luminosity in ergs/sec\n - ``dist_Mpc`` -- distance in Mpc",
" **Return:**\n - ``fluxErg_cm2_S`` -- flux in ergs/cm2/s\n<END>",
"<BEGIN>\n## `get_mjd`",
"*Get the curre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the decimal_day_to_day_hour_min_sec 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 decimal_day_to_day_hour_min_sec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its co... | *Convert a day from decimal format to hours mins and sec*
Precision should be respected.
**Key Arguments:**
- ``daysFloat`` -- the day as a decimal.
**Return:**
- ``daysInt`` -- day as an integer
- ``hoursInt`` -- hour as an integer (None if input precsion... | "*Convert a day from decimal format to hours mins and sec*\n\n Precision should be respected. \n\n **Key Arguments:**\n - ``daysFloat`` -- the day as a decimal.\n\n **Return:**\n - ``daysInt`` -- day as an integer\n - ``hoursInt`` -- hour as an integer (None if inpu... | 160 | false | thespacedoctor/astrocalc | decimal_day_to_day_hour_min_sec | 21,214 | |
LDU_FT/django-parler/django-parler/_get_prefetched_translations | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_prefetched_translations 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_prefetched_translations API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Return the queryset with prefetch results. | "Return the queryset with prefetch results." | 163 | false | django-parler/django-parler | _get_prefetched_translations | 21,215 | |
LDU_FT/nrcharles/caelum/total | LDU_FT | [
"<BEGIN>\n## `parse_noaa_line`",
"Parse NOAA stations.",
" This is an old list, the format is:",
" NUMBER NAME & STATE/COUNTRY LAT LON ELEV (meters)",
" 010250 TROMSO NO 6941N 01855E 10\n<END>",
"<BEGIN>\n## `closest_eere`",
"Find closes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the total API.
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 total API.
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... | total annual insolation, defaults to GHI. | "total annual insolation, defaults to GHI." | 60 | false | nrcharles/caelum | total | 21,216 | |
LDU_FT/geronimp/graftM/alignment_correcter | LDU_FT | [
"<BEGIN>\n## `_write_consensus_strings`",
"Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).",
" Parameters\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alignment_correcter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alignment_correcter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Remove lower case insertions in alignment outputs from HMM align. Give
a list of alignments, and an output file name, and each alignment will
be corrected, and written to a single file, ready to be placed together
using pplacer.
Parameters
----------
alignment_file_list ... | "Remove lower case insertions in alignment outputs from HMM align. Give\n a list of alignments, and an output file name, and each alignment will\n be corrected, and written to a single file, ready to be placed together\n using pplacer.\n\n Parameters\n ----------\n alignment_fi... | 334 | false | geronimp/graftM | alignment_correcter | 21,217 | |
LDU_FT/nchopin/particles/compute_trajectories | LDU_FT | [
"<BEGIN>\n## `all_distinct`",
"Returns the list [l[i] for i in idx] \n When needed, objects l[i] are replaced by a copy, to make sure that\n the elements of the list are all distinct",
" Parameters\n ---------\n l: iterable\n idx: iterable that generates ints (e.g. ndarray of ints)",
" Re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_trajectories 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 compute_trajectories API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Compute the N trajectories that constitute the current genealogy.
Compute and add attribute ``B`` to ``self`` where ``B`` is an array
such that ``B[t,n]`` is the index of ancestor at time t of particle X_T^n,
where T is the current length of history. | "Compute the N trajectories that constitute the current genealogy.\n\n Compute and add attribute ``B`` to ``self`` where ``B`` is an array\n such that ``B[t,n]`` is the index of ancestor at time t of particle X_T^n,\n where T is the current length of history." | 249 | false | nchopin/particles | compute_trajectories | 21,218 | |
LDU_FT/ihmeuw/vivarium/get_hash | LDU_FT | [
"<BEGIN>\n## `setup`",
"Performs this component's simulation setup.",
" The ``setup`` method is automatically called by the simulation\n framework. The framework passes in a ``builder`` object which\n provides access to a variety of framework subsystems and metadata.",
" Parameters... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_hash API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Gets a hash of the provided key.
Parameters
----------
key :
A string used to create a seed for the random number generator.
Returns
-------
int
A hash of the provided key. | "Gets a hash of the provided key.\n\n Parameters\n ----------\n key :\n A string used to create a seed for the random number generator.\n\n Returns\n -------\n int\n A hash of the provided key." | 370 | false | ihmeuw/vivarium | get_hash | 21,219 | |
LDU_FT/xiaocong/uiautomator/wait | LDU_FT | [
"<BEGIN>\n## `cmd`",
"adb command, add -s serial by default. return the subprocess.Popen object.\n<END>",
"<BEGIN>\n## `devices`",
"get a dict of attached devices. key is the device serial, value is device name.\n<END>",
"<BEGIN>\n## `dump`",
"dump device window and pull to local file.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wait API.
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 wait API.
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... | Wait until the ui object gone or exist.
Usage:
d(text="Clock").wait.gone() # wait until it's gone.
d(text="Settings").wait.exists() # wait until it appears. | "Wait until the ui object gone or exist.\n Usage:\n d(text=\"Clock\").wait.gone() # wait until it's gone.\n d(text=\"Settings\").wait.exists() # wait until it appears." | 33 | false | xiaocong/uiautomator | wait | 21,220 | |
LDU_FT/box/genty/format_kwarg | LDU_FT | [
"<BEGIN>\n## `genty_repeat`",
"To use in conjunction with a TestClass wrapped with @genty.",
" Runs the wrapped test 'count' times:\n @genty_repeat(count)\n def test_some_function(self)\n ...",
" Can also wrap a test already decorated with @genty_dataset\n @genty_repeat(3... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_kwarg API.
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 format_kwarg API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Return a string of form: "key=<value>"
If 'value' is a string, we want it quoted. The goal is to make
the string a named parameter in a method call. | "Return a string of form: \"key=<value>\"\n\n If 'value' is a string, we want it quoted. The goal is to make\n the string a named parameter in a method call." | 69 | false | box/genty | format_kwarg | 21,221 | |
LDU_FT/ly0/baidupcsapi/clean_recycle_bin | LDU_FT | [
"<BEGIN>\n## `__err_handler`",
"百度网盘下载错误控制\n :param act: 出错时的行为, 有 download\n :param errno: 出错时的errno,这个要配合act才有实际意义\n :param callback: 返回时的调用函数, 为空时返回None\n :param args: 给callback函数的参数tuple\n :param kwargs: 给callback函数的带名参数字典",
" 在本函数调用后一定可以解决提交过来的问题, 在外部不需要重复检查是否存在原问题... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_recycle_bin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_recycle_bin API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | 清空回收站.
:return: requests.Response | "清空回收站.\n\n :return: requests.Response" | 222 | false | ly0/baidupcsapi | clean_recycle_bin | 21,222 | |
LDU_FT/mjj4791/python-buienradar/__parse_fc_data | LDU_FT | [
"<BEGIN>\n## `__to_float`",
"Convert val into float with digits decimal.\n<END>",
"<BEGIN>\n## `__getBarFC`",
"Parse the pressure and return FC (numerical).\n<END>",
"<BEGIN>\n## `__getBarFCName`",
"Parse the pressure and return FC (String).\n<END>",
"<BEGIN>\n## `get_json_data`",
"Get buienradar json... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_fc_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 e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __parse_fc_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 e... | Parse the forecast data from the xml section. | "Parse the forecast data from the xml section." | 50 | false | mjj4791/python-buienradar | __parse_fc_data | 21,223 | |
LDU_FT/LettError/MutatorMath/readVersion | LDU_FT | [
"<BEGIN>\n## `makeUnicodeMapFromSources`",
"Create a dict with glyphName -> unicode value pairs\n using the data in the sources. \n If all master glyphs have the same unicode value\n this value will be used in the map.\n If master glyphs have conflicting value, a warnin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the readVersion API.
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 readVersion API.
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... | Read the document version.
::
<designspace format="3"> | "Read the document version.\n ::\n <designspace format=\"3\">" | 169 | false | LettError/MutatorMath | readVersion | 21,224 | |
LDU_FT/fermiPy/fermipy/sparse_counts_map | LDU_FT | [
"<BEGIN>\n## `build_srcdict`",
"Build a dictionary that maps from source name to the value of a source property",
" Parameters\n ----------",
" gta : `fermipy.GTAnalysis`\n The analysis object",
" prop : str\n The name of the property we are mapping",
" Returns\n -------",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sparse_counts_map API.
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 sparse_counts_map API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | return a counts map with sparse index scheme | "return a counts map with sparse index scheme" | 2,597 | true | fermiPy/fermipy | sparse_counts_map | 21,225 | |
LDU_FT/cbclab/MOT/_get_cl_dependency_code | LDU_FT | [
"<BEGIN>\n## `get_historical_data`",
"Get the historical tank data.",
" Args:\n nmr_problems (int): the number of problems",
" Returns:\n tuple: (observations, nmr_tanks_ground_truth)\n<END>",
"<BEGIN>\n## `get_simulated_data`",
"Simulate some data.",
" This returns the simulated ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cl_dependency_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_cl_dependency_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Get the CL code for all the CL code for all the dependencies.
Returns:
str: The CL code with the actual code. | "Get the CL code for all the CL code for all the dependencies.\n\n Returns:\n str: The CL code with the actual code." | 445 | false | cbclab/MOT | _get_cl_dependency_code | 21,226 | |
LDU_FT/pmichali/whodunit/make_ranges | LDU_FT | [
"<BEGIN>\n## `build_owner`",
"Factory for creating owners, based on --sort option.\n<END>",
"<BEGIN>\n## `collect_modules`",
"Generator to look for git files in tree. Will handle all lines.\n<END>",
"<BEGIN>\n## `collect_blame_info`",
"Runs git blame on files, for the specified sets of line ranges.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_ranges API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_ranges API.
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... | Convert list of lines into list of line range tuples.
Only will be called if there is one or more entries in the list. Single
lines, will be coverted into tuple with same line. | "Convert list of lines into list of line range tuples.\n\n Only will be called if there is one or more entries in the list. Single\n lines, will be coverted into tuple with same line." | 30 | false | pmichali/whodunit | make_ranges | 21,227 | |
LDU_FT/mmp2/megaman/makeA | LDU_FT | [
"<BEGIN>\n## `check_eigen_solver`",
"Check that the selected eigensolver is valid",
" Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the makeA API.
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 makeA API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | This function create the all neighbor permutations.
The output A multiply by Y will be [ Y_i - Y_j ].T for all j > i
So the maximum will be C^n_2. But it will be less than this value
because of the sparseness of L.
Returns
-------
A : sparse matrix, shape (N_pairs, n_samples)
Operator f... | "This function create the all neighbor permutations.\n The output A multiply by Y will be [ Y_i - Y_j ].T for all j > i\n So the maximum will be C^n_2. But it will be less than this value\n because of the sparseness of L.\n\n Returns\n -------\n A : sparse matrix, shape (N_pairs, n_samples)\n O... | 287 | false | mmp2/megaman | makeA | 21,228 | |
LDU_FT/facundobatista/yaswfp/_get_struct_convolutionfilter | LDU_FT | [
"<BEGIN>\n## `_str`",
"Show nicely the generic object received.\n<END>",
"<BEGIN>\n## `_repr`",
"Show the received object as precise as possible.\n<END>",
"<BEGIN>\n## `parsefile`",
"Parse a SWF.",
" If you have a file object already, just use SWFParser directly.",
" read_twips: True - return v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_struct_convolutionfilter 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_struct_convolutionfilter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Get the values for the CONVOLUTIONFILTER record. | "Get the values for the CONVOLUTIONFILTER record." | 56 | false | facundobatista/yaswfp | _get_struct_convolutionfilter | 21,229 | |
LDU_FT/acorg/dark-matter/referenceLengths | LDU_FT | [
"<BEGIN>\n## `iter`",
"Extract BLAST records and yield C{ReadAlignments} instances.",
" For each file except the first, check that the BLAST parameters are\n compatible with those found (above, in __init__) in the first file.",
" @return: A generator that yields C{ReadAlignments} instance... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the referenceLengths API.
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 referenceLengths API.
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 lengths of wanted references.
@raise UnknownReference: If a reference id is not present in the
SAM/BAM file.
@return: A C{dict} of C{str} reference id to C{int} length with a key
for each reference id in C{self.referenceIds} or for all references
if C{self.re... | "Get the lengths of wanted references.\n\n @raise UnknownReference: If a reference id is not present in the\n SAM/BAM file.\n @return: A C{dict} of C{str} reference id to C{int} length with a key\n for each reference id in C{self.referenceIds} or for all references\n if C{... | 601 | false | acorg/dark-matter | referenceLengths | 21,230 | |
LDU_FT/playpauseandstop/rororo/str_to_timedelta | LDU_FT | [
"<BEGIN>\n## `str_to_timedelta`",
"Convert string value to timedelta instance according to the given format.",
" If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.",
" You should also specify list of formats and function tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_timedelta API.
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 str_to_timedelta API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Convert string value to timedelta instance according to the given format.
If format not set function tries to load timedelta using default
``TIMEDELTA_FORMAT`` and then both of magic "full" formats.
You should also specify list of formats and function tries to convert
to timedelta using each of format... | "Convert string value to timedelta instance according to the given format.\n\n If format not set function tries to load timedelta using default\n ``TIMEDELTA_FORMAT`` and then both of magic \"full\" formats.\n\n You should also specify list of formats and function tries to convert\n to timedelta using each ... | 128 | false | playpauseandstop/rororo | str_to_timedelta | 21,231 | |
LDU_FT/cohorte/cohorte-herald/chunks | LDU_FT | [
"<BEGIN>\n## `main`",
"Runs the framework",
" :param http_port: HTTP port to listen to\n :param peer_name: Name of the peer\n :param node_name: Name (also, UID) of the node hosting the peer\n :param app_id: Application ID\n<END>",
"<BEGIN>\n## `_get_link`",
"Returns a link to the given peer",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chunks API.
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 chunks API.
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 ... | Generator that splits the given data into chunks | "Generator that splits the given data into chunks" | 110 | false | cohorte/cohorte-herald | chunks | 21,232 | |
LDU_FT/insilicolife/micti/smart_initialize | LDU_FT | [
"<BEGIN>\n## `FDR_BH`",
"Benjamini-Hochberg p-value correction for multiple hypothesis testing.\n<END>",
"<BEGIN>\n## `logpdf_diagonal_gaussian`",
"Compute logpdf of a multivariate Gaussian distribution with diagonal covariance at a given point x.\n A multivariate Gaussian distribution with a diagonal ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the smart_initialize API.
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 smart_initialize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Use k-means++ to initialize a good set of centroids | "Use k-means++ to initialize a good set of centroids" | 20 | false | insilicolife/micti | smart_initialize | 21,233 | |
LDU_FT/mozilla/puente/generate_keywords | LDU_FT | [
"<BEGIN>\n## `monkeypatch_i18n`",
"Alleviates problems with extraction for trans blocks",
" Jinja2 has a ``babel_extract`` function which sets up a Jinja2\n environment to parse Jinja2 templates to extract strings for\n translation. That's awesome! Yay! However, when it goes to\n set up the environm... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_keywords API.
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 generate_keywords API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Generates gettext keywords list
:arg additional_keywords: dict of keyword -> value
:returns: dict of keyword -> values for Babel extraction
Here's what Babel has for DEFAULT_KEYWORDS::
DEFAULT_KEYWORDS = {
'_': None,
'gettext': None,
'ngettext': (1, 2),
... | "Generates gettext keywords list\n\n :arg additional_keywords: dict of keyword -> value\n\n :returns: dict of keyword -> values for Babel extraction\n\n Here's what Babel has for DEFAULT_KEYWORDS::\n\n DEFAULT_KEYWORDS = {\n '_': None,\n 'gettext': None,\n 'ngettext': (1... | 39 | false | mozilla/puente | generate_keywords | 21,234 | |
LDU_FT/genomoncology/related/BooleanField | LDU_FT | [
"<BEGIN>\n## `init_default`",
"Returns optional default if field is not required and\n default was not provided.",
" :param bool required: whether the field is required in a given model.\n :param default: default provided by creator of field.\n :param optional_default: default for the data type if n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the BooleanField API.
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 BooleanField API.
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... | Create new bool field on a model.
:param default: any boolean value
:param bool required: whether or not the object is invalid if not provided.
:param bool repr: include this field should appear in object's repr.
:param bool cmp: include this field in generated comparison.
:param string key: overri... | "Create new bool field on a model.\n\n :param default: any boolean value\n :param bool required: whether or not the object is invalid if not provided.\n :param bool repr: include this field should appear in object's repr.\n :param bool cmp: include this field in generated comparison.\n :param string key:... | 95 | false | genomoncology/related | BooleanField | 21,235 | |
LDU_FT/Azure/msrestazure-for-python/set_token | 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 set_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Get token using Client ID/Secret credentials.
:raises: AuthenticationError if credentials invalid, or call fails. | "Get token using Client ID/Secret credentials.\n\n :raises: AuthenticationError if credentials invalid, or call fails." | 167 | false | Azure/msrestazure-for-python | set_token | 21,236 | |
LDU_FT/billy-yoyo/RainbowSixSiege-Python-API/get_operator_definitions | LDU_FT | [
"<BEGIN>\n## `connect`",
"|coro|",
" Connect to ubisoft, automatically called when needed\n<END>",
"<BEGIN>\n## `get_players`",
"|coro|",
" get a list of players matching the term on that platform,\n exactly one of uid and name must be given, platform must be given,\n this list... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_operator_definitions 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 get_operator_definitions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | |coro|
Retrieves a list of information about operators - their badge, unique statistic, etc.
Returns
-------
dict
operators | "|coro|\n\n Retrieves a list of information about operators - their badge, unique statistic, etc.\n\n Returns\n -------\n dict\n operators" | 87 | false | billy-yoyo/RainbowSixSiege-Python-API | get_operator_definitions | 21,237 | |
LDU_FT/PGower/PyCanvas/list_preferences_communication_channel_id | LDU_FT | [
"<BEGIN>\n## `get_all_quiz_submissions`",
"Get all quiz submissions.\r",
" Get a list of all submissions for this quiz. Users who can view or manage\r\n grades for a course will have submissions from multiple users returned. A\r\n user who can only submit will have only their own submission... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_preferences_communication_channel_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_preferences_communication_channel_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indica... | List preferences.
Fetch all preferences for the given communication channel | "List preferences.\r\n\r\n Fetch all preferences for the given communication channel" | 833 | false | PGower/PyCanvas | list_preferences_communication_channel_id | 21,238 | |
LDU_FT/innogames/polysh/dispatch_write | LDU_FT | [
"<BEGIN>\n## `process_input_buffer`",
"Send the content of the input buffer to all remote processes, this must\n be called in the main thread\n<END>",
"<BEGIN>\n## `write_main_socket`",
"Synchronous write to the main socket, wait for ACK\n<END>",
"<BEGIN>\n## `get_stdin_pid`",
"Try to get the PID of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch_write API.
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 dispatch_write API.
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... | There is new stuff to write when possible | "There is new stuff to write when possible" | 66 | false | innogames/polysh | dispatch_write | 21,239 | |
LDU_FT/StevenMaude/bbc-radio-tracklisting-downloader/output_to_file | LDU_FT | [
"<BEGIN>\n## `open_listing_page`",
"Opens a BBC radio tracklisting page based on trailing part of url.\n Returns a lxml ElementTree derived from that page.",
" trailing_part_of_url: a string, like the pid or e.g. pid/segments.inc\n<END>",
"<BEGIN>\n## `get_programme_title`",
"Take BBC programme ID as ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_to_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 ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the output_to_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 ex... | Produce requested output; either output text file, tag audio file or do
both.
filename: a string of path + filename without file extension
tracklisting: a string containing a tracklisting
action: 'tag', 'text' or 'both', from command line arguments | "Produce requested output; either output text file, tag audio file or do\n both.\n\n filename: a string of path + filename without file extension\n tracklisting: a string containing a tracklisting\n action: 'tag', 'text' or 'both', from command line arguments" | 23 | false | StevenMaude/bbc-radio-tracklisting-downloader | output_to_file | 21,240 | |
LDU_FT/splunk/splunk-sdk-python/update_field | LDU_FT | [
"<BEGIN>\n## `dispatch`",
"Instantiates and executes a search command class",
" This function implements a `conditional script stanza <https://docs.python.org/2/library/__main__.html>`_ based on the value of\n :code:`module_name`::",
" if module_name is None or module_name == '__main__':\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_field API.
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... | Changes the definition of a KV Store field.
:param name: name of field to change
:type name: ``string``
:param value: new field definition
:type value: ``string``
:return: Result of POST request | "Changes the definition of a KV Store field.\n\n :param name: name of field to change\n :type name: ``string``\n :param value: new field definition\n :type value: ``string``\n\n :return: Result of POST request" | 747 | false | splunk/splunk-sdk-python | update_field | 21,241 | |
LDU_FT/chop-dbhi/varify-data-warehouse/subscribe | LDU_FT | [
"<BEGIN>\n## `read`",
"Reads up to size bytes, but always completes the last line.\n<END>",
"<BEGIN>\n## `readline`",
"The size is ignored since a complete line must be read.\n<END>",
"<BEGIN>\n## `process_line`",
"Process a single record. This assumes only a single sample output.\n<END>",
"<BEGIN>\n## ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subscribe API.
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 subscribe API.
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... | Subscribes an external handler to this channel. | "Subscribes an external handler to this channel." | 53 | false | chop-dbhi/varify-data-warehouse | subscribe | 21,242 | |
LDU_FT/cga-harvard/Hypermap-Registry/parse_ISO8601 | LDU_FT | [
"<BEGIN>\n## `update_schema`",
"set the mapping in solr.\n :param catalog: core\n :return:\n<END>",
"<BEGIN>\n## `create_layer_from_metadata_xml`",
"Create a layer / keyword list from a metadata record if it does not already exist.\n<END>",
"<BEGIN>\n## `create_service_from_endpoint`",
"Crea... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_ISO8601 API.
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 parse_ISO8601 API.
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... | P1D to (1, ("DAYS", isodate.Duration(days=1)).
P1Y to (1, ("YEARS", isodate.Duration(years=1)).
:param time_gap: ISO8601 string.
:return: tuple with quantity and unit of time. | "P1D to (1, (\"DAYS\", isodate.Duration(days=1)).\n P1Y to (1, (\"YEARS\", isodate.Duration(years=1)).\n :param time_gap: ISO8601 string.\n :return: tuple with quantity and unit of time." | 132 | false | cga-harvard/Hypermap-Registry | parse_ISO8601 | 21,243 | |
LDU_FT/thumbor/thumbor/instance | LDU_FT | [
"<BEGIN>\n## `instance`",
"Cache threadpool since context is\n recreated for each request\n<END>",
"<BEGIN>\n## `main`",
"Runs thumbor server with the specified arguments.\n<END>",
"<BEGIN>\n## `mime`",
"Retrieves mime metadata if available\n :return:\n<END>",
"<BEGIN>\n## `client`",
"Ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instance API.
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 instance API.
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... | Cache threadpool since context is
recreated for each request | "Cache threadpool since context is\n recreated for each request" | 61 | false | thumbor/thumbor | instance | 21,244 | |
LDU_FT/praekeltfoundation/seaworthy/list_tables | LDU_FT | [
"<BEGIN>\n## `wait_for_response`",
"Try make a GET request with an HTTP client against a certain path and\n return once any response has been received, ignoring any errors.",
" :param ContainerHttpClient client:\n The HTTP client to use to connect to the container.\n :param timeout:\n Tim... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list_tables API.
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 list_tables API.
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... | Runs the ``\\dt`` command and returns a list of column values with
information about all tables in the database. | "Runs the ``\\\\dt`` command and returns a list of column values with\n information about all tables in the database." | 173 | false | praekeltfoundation/seaworthy | list_tables | 21,245 | |
LDU_FT/kodexlab/reliure/FromType | LDU_FT | [
"<BEGIN>\n## `add_field`",
"Add a named field to the schema.",
" .. Warning:: the field name should not contains spaces and should not\n start with an underscore.",
" :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FromType API.
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 FromType API.
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... | ValueOption subclasses factory, creates a convenient option to store
data from a given Type.
attribute precedence :
* ``|attrs| > 0`` (``multi`` and ``uniq`` are implicit) => NotImplementedError
* ``uniq`` (``multi`` is implicit) => NotImplementedError
* ``multi`` and `... | "ValueOption subclasses factory, creates a convenient option to store\n data from a given Type.\n\n attribute precedence :\n \n * ``|attrs| > 0`` (``multi`` and ``uniq`` are implicit) => NotImplementedError\n * ``uniq`` (``multi`` is implicit) => NotImplementedError\n * ``multi... | 243 | false | kodexlab/reliure | FromType | 21,246 | |
LDU_FT/Yelp/threat_intel/whois_emails | LDU_FT | [
"<BEGIN>\n## `init_poolmanager`",
"Called to initialize the HTTPAdapter when no proxy is used.\n<END>",
"<BEGIN>\n## `proxy_manager_for`",
"Called to initialize the HTTPAdapter when a proxy is used.\n<END>",
"<BEGIN>\n## `make_calls`",
"Adds appropriate sleep to avoid making too many calls.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the whois_emails API.
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 whois_emails API.
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... | Calls WHOIS Email end point
Args:
emails: An enumerable of string Emails
Returns:
A dict of {email: domain_result} | "Calls WHOIS Email end point\n\n Args:\n emails: An enumerable of string Emails\n Returns:\n A dict of {email: domain_result}" | 149 | false | Yelp/threat_intel | whois_emails | 21,247 | |
LDU_FT/rix0rrr/gcl/get_node | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Return a schema object from a spec.",
" A spec is either a string for a scalar type, or a list of 0 or 1 specs,\n or a dictionary with two elements: {'fields': { ... }, required: [...]}.\n<END>",
"<BEGIN>\n## `validate`",
"Validate an object according to its own AND an external... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_node API.
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_node API.
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... | Delegate to our current "value provider" for the node belonging to this key. | "Delegate to our current \"value provider\" for the node belonging to this key." | 129 | false | rix0rrr/gcl | get_node | 21,248 | |
LDU_FT/stormpath/stormpath-django/_stormpath_authenticate | LDU_FT | [
"<BEGIN>\n## `clean_email`",
"Check if email exists on Stormpath.",
" The email address is unique across all Stormpath applications.\n The username is only unique within a Stormpath application.\n<END>",
"<BEGIN>\n## `create_provider_directory`",
"Helper function for creating a provider direct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stormpath_authenticate 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 _stormpath_authenticate API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Check if Stormpath authentication works
:param username: Can be actual username or email
:param password: Account password
Returns an account object if successful or None otherwise. | "Check if Stormpath authentication works\n\n :param username: Can be actual username or email\n :param password: Account password\n\n Returns an account object if successful or None otherwise." | 25 | false | stormpath/stormpath-django | _stormpath_authenticate | 21,249 | |
LDU_FT/RealTimeWeb/datasets/_from_json | LDU_FT | [
"<BEGIN>\n## `_parse_int`",
"Attempt to cast *value* into an integer, returning *default* if it fails.\n<END>",
"<BEGIN>\n## `_parse_float`",
"Attempt to cast *value* into a float, returning *default* if it fails.\n<END>",
"<BEGIN>\n## `_parse_type`",
"Attempt to cast *value* into *type_func*, returning *... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Creates a Earthquake from json data.
:param json_data: The raw json data to parse
:type json_data: dict
:returns: Earthquake | "Creates a Earthquake from json data.\n \n :param json_data: The raw json data to parse\n :type json_data: dict\n :returns: Earthquake" | 76 | false | RealTimeWeb/datasets | _from_json | 21,250 | |
LDU_FT/python-diamond/Diamond/match_process | LDU_FT | [
"<BEGIN>\n## `utc_to_local`",
":param utc_dt: datetime in UTC\n :return: datetime in the local timezone\n<END>",
"<BEGIN>\n## `get_zones`",
":param auth_kwargs:\n :param region: region to get the availability zones for\n :return: list of availability zones\n<END>",
"<BEGIN>\n## `publish_delayed_met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_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 ext... | Decides whether a process matches with a given process descriptor
:param pid: process pid
:param exe: process executable
:param name: process name
:param cmdline: process cmdline
:param cfg: the dictionary from processes that describes with the
process group we're testing for
:return: T... | "Decides whether a process matches with a given process descriptor\n\n :param pid: process pid\n :param exe: process executable\n :param name: process name\n :param cmdline: process cmdline\n :param cfg: the dictionary from processes that describes with the\n process group we're testing for\n :... | 454 | false | python-diamond/Diamond | match_process | 21,251 | |
LDU_FT/Clarify/clarify_python/get_message | LDU_FT | [
"<BEGIN>\n## `process_embed`",
"Returns an embed field value based on the parameters.\n<END>",
"<BEGIN>\n## `process_embed_override`",
"Returns an embed field value based on the parameters.\n<END>",
"<BEGIN>\n## `get_embedded_items`",
"Given a result_collection (returned by a previous API call that\n r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_message API.
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_message API.
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 message embedded in the JSON error response body,
or an empty string if the JSON couldn't be parsed. | "Return the message embedded in the JSON error response body,\n or an empty string if the JSON couldn't be parsed." | 137 | false | Clarify/clarify_python | get_message | 21,252 | |
LDU_FT/juju-solutions/jujuresources/resources | LDU_FT | [
"<BEGIN>\n## `config_get`",
"Helper to access a Juju config option when charmhelpers is not available.",
" :param str option_name: Name of the config option to get the value of\n<END>",
"<BEGIN>\n## `fetch`",
"Attempt to fetch all resources for a charm.",
" :param list which: A name, or a list of on... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resources API.
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 resources API.
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... | Juju CLI subcommand for dispatching resources subcommands. | "Juju CLI subcommand for dispatching resources subcommands." | 34 | false | juju-solutions/jujuresources | resources | 21,253 | |
LDU_FT/nugget/python-insteonplm/start_all_linking | LDU_FT | [
"<BEGIN>\n## `data_received`",
"Receive data from the protocol.",
" Called when asyncio.Protocol detects received data from network.\n<END>",
"<BEGIN>\n## `connection_lost`",
"Reestablish the connection to the transport.",
" Called when asyncio.Protocol loses the network connection.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start_all_linking API.
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 start_all_linking API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Put the IM into All-Linking mode.
Puts the IM into All-Linking mode for 4 minutes.
Parameters:
mode: 0 | 1 | 3 | 255
0 - PLM is responder
1 - PLM is controller
3 - Device that initiated All-Linking is Controller
255 = De... | "Put the IM into All-Linking mode.\n\n Puts the IM into All-Linking mode for 4 minutes.\n\n Parameters:\n mode: 0 | 1 | 3 | 255\n 0 - PLM is responder\n 1 - PLM is controller\n 3 - Device that initiated All-Linking is Controller\n ... | 375 | false | nugget/python-insteonplm | start_all_linking | 21,254 | |
LDU_FT/calmjs/calmjs.parse/write | LDU_FT | [
"<BEGIN>\n## `optimize_structure_handler`",
"Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>",
"<BEGIN>\n## `optimize_layout_handler`",
"Produce an \"optimized\" version of handler for the dispatcher to\n limit reference lookups.\n<END>",
"<BEGIN>\n#... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
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 write API.
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... | Write out the node using the unparser into an output stream, and
optionally the sourcemap using the sourcemap stream.
Ideally, file objects should be passed to the *_stream arguments, so
that the name resolution built into the sourcemap builder function
will be used. Also, if these file objects are op... | "Write out the node using the unparser into an output stream, and\n optionally the sourcemap using the sourcemap stream.\n\n Ideally, file objects should be passed to the *_stream arguments, so\n that the name resolution built into the sourcemap builder function\n will be used. Also, if these file objects ... | 253 | false | calmjs/calmjs.parse | write | 21,255 | |
LDU_FT/tcalmant/ipopo/environment_list | LDU_FT | [
"<BEGIN>\n## `__conn_listener`",
"Connection event listener",
" :param state: The new connection state\n<END>",
"<BEGIN>\n## `__path`",
"Adds the prefix to the given path",
" :param path: Z-Path\n :return: Prefixed Z-Path\n<END>",
"<BEGIN>\n## `create`",
"Creates a ZooKeeper node"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the environment_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the environment_list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Lists the framework process environment variables | "Lists the framework process environment variables" | 1,396 | true | tcalmant/ipopo | environment_list | 21,256 | |
LDU_FT/Checksum/landfill/fake_print | LDU_FT | [
"<BEGIN>\n## `fake_print`",
"This is the overridden __str__ method for Operation\n Recursively prints out the actual query to be executed\n<END>",
"<BEGIN>\n## `get_migrations`",
"In the specified directory, get all the files which match the pattern\n 0001_migration.py\n<END>",
"<BEGIN>\n## `generate`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fake_print API.
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 fake_print API.
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... | This is the overridden __str__ method for Operation
Recursively prints out the actual query to be executed | "This is the overridden __str__ method for Operation\n Recursively prints out the actual query to be executed" | 10 | false | Checksum/landfill | fake_print | 21,257 | |
LDU_FT/oasis-open/cti-stix-validator/print_results | LDU_FT | [
"<BEGIN>\n## `pretty_error`",
"Return an error message that is easier to read and more useful.\n May require updating if the schemas change significantly.\n<END>",
"<BEGIN>\n## `_iter_errors_custom`",
"Perform additional validation not possible merely with JSON schemas.",
" Args:\n instance: Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the print_results API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Print `results` (the results of validation) to stdout.
Args:
results: A list of FileValidationResults or ObjectValidationResults
instances. | "Print `results` (the results of validation) to stdout.\n\n Args:\n results: A list of FileValidationResults or ObjectValidationResults\n instances." | 220 | false | oasis-open/cti-stix-validator | print_results | 21,258 | |
LDU_FT/WojciechMula/canvas2svg/arc | LDU_FT | [
"<BEGIN>\n## `convert`",
"Convert 'items' stored in 'canvas' to SVG 'document'.\n\tIf 'items' is None, then all items are convered.",
"\ttounicode is a function that get text and returns\n\tit's unicode representation. It should be used when\n\tnational characters are used on canvas.",
"\tReturn list of XML e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the arc API.
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 arc API.
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... | arc, pieslice (filled), arc with chord (filled) | "arc, pieslice (filled), arc with chord (filled)" | 14 | false | WojciechMula/canvas2svg | arc | 21,259 | |
LDU_FT/jazzband/sorl-thumbnail/toint | LDU_FT | [
"<BEGIN>\n## `is_valid_image`",
"Wand library makes sure when opening any image that is fine, when\n the image is corrupted raises an exception.\n<END>",
"<BEGIN>\n## `parse_geometry`",
"Parses a geometry string syntax and returns a (width, height) tuple\n<END>",
"<BEGIN>\n## `parse_crop`",
"Return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toint API.
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 toint API.
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... | Helper to return rounded int for a float or just the int it self. | "Helper to return rounded int for a float or just the int it self." | 68 | false | jazzband/sorl-thumbnail | toint | 21,260 | |
LDU_FT/Unity-Technologies/ml-agents/add_delta_step | LDU_FT | [
"<BEGIN>\n## `get_action`",
"Decides actions given observations information, and takes them in environment.\n :param brain_info: A dictionary of brain names and BrainInfo from environment.\n :return: an ActionInfo containing action, memories, values and an object\n to be passed to add experie... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_delta_step API.
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 add_delta_step API.
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... | Inform Metrics class about time to step in environment. | "Inform Metrics class about time to step in environment." | 171 | false | Unity-Technologies/ml-agents | add_delta_step | 21,261 | |
LDU_FT/dhondta/tinyscript/_filtered_actions | LDU_FT | [
"<BEGIN>\n## `_filtered_actions`",
"Get actions filtered on a list of action types.",
" :param a_type: argparse.Action instance name (e.g. count, append)\n<END>",
"<BEGIN>\n## `_input_arg`",
"Ask the user for input of a single argument.",
" :param a: argparse.Action instance\n :return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _filtered_actions API.
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 _filtered_actions API.
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 actions filtered on a list of action types.
:param a_type: argparse.Action instance name (e.g. count, append) | "Get actions filtered on a list of action types.\n \n :param a_type: argparse.Action instance name (e.g. count, append)" | 74 | false | dhondta/tinyscript | _filtered_actions | 21,262 | |
LDU_FT/nicolargo/glances/_api_history | LDU_FT | [
"<BEGIN>\n## `msg_curse`",
"Return the string to display in the curse interface.\n<END>",
"<BEGIN>\n## `load`",
"Load the web list from the configuration file.\n<END>",
"<BEGIN>\n## `set_server`",
"Set the key to the value for the pos (position in the list).\n<END>",
"<BEGIN>\n## `update`",
"Update se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _api_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _api_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 extr... | Glances API RESTful implementation.
Return the JSON representation of a given plugin history
Limit to the last nb items (all if nb=0)
HTTP/200 if OK
HTTP/400 if plugin is not found
HTTP/404 if others error | "Glances API RESTful implementation.\n\n Return the JSON representation of a given plugin history\n Limit to the last nb items (all if nb=0)\n HTTP/200 if OK\n HTTP/400 if plugin is not found\n HTTP/404 if others error" | 678 | false | nicolargo/glances | _api_history | 21,263 | |
LDU_FT/pyblish/pyblish-lite/cleanup | LDU_FT | [
"<BEGIN>\n## `paint`",
"Paint checkbox and text\n _\n |_| My label\n<END>",
"<BEGIN>\n## `paint`",
"Paint checkbox and text",
" _________________________________________\n | | label | duration |\n |toggle |_____________________| |\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cleanup API.
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 cleanup API.
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... | Forcefully delete objects from memory
In an ideal world, this shouldn't be necessary. Garbage
collection guarantees that anything without reference
is automatically removed.
However, because this application is designed to be run
multiple times from the same interpreter process... | "Forcefully delete objects from memory\n\n In an ideal world, this shouldn't be necessary. Garbage\n collection guarantees that anything without reference\n is automatically removed.\n\n However, because this application is designed to be run\n multiple times from the same interpreter... | 33 | false | pyblish/pyblish-lite | cleanup | 21,264 | |
LDU_FT/DocNow/twarc/search | LDU_FT | [
"<BEGIN>\n## `rate_limit`",
"A decorator to handle rate limiting from the Twitter API. If\n a rate limit error is encountered we will sleep until we can\n issue the API call again.\n<END>",
"<BEGIN>\n## `catch_conn_reset`",
"A decorator to handle connection reset errors even ones from pyOpenSSL\n unt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Pass in a query with optional max_id, min_id, lang or geocode
and get back an iterator for decoded tweets. Defaults to recent (i.e.
not mixed, the API default, or popular) tweets. | "Pass in a query with optional max_id, min_id, lang or geocode\n and get back an iterator for decoded tweets. Defaults to recent (i.e.\n not mixed, the API default, or popular) tweets." | 58 | false | DocNow/twarc | search | 21,265 | |
LDU_FT/UCL-INGI/INGInious/get_course_fs | LDU_FT | [
"<BEGIN>\n## `handle_agent_message`",
"Dispatch messages received from agents to the right handlers\n<END>",
"<BEGIN>\n## `handle_client_message`",
"Dispatch messages received from clients to the right handlers\n<END>",
"<BEGIN>\n## `send_container_update_to_client`",
":param client_addrs: list of clients... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_course_fs API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_course_fs API.
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... | :param courseid:
:return: a FileSystemProvider pointing to the directory of the course | ":param courseid: \n :return: a FileSystemProvider pointing to the directory of the course" | 567 | false | UCL-INGI/INGInious | get_course_fs | 21,266 | |
LDU_FT/balloob/pychromecast/receive_message | LDU_FT | [
"<BEGIN>\n## `new_connection_status`",
"Handle reception of a new ConnectionStatus.\n<END>",
"<BEGIN>\n## `register_listener`",
"Register a listener for audio group changes of cast uuid.\n On update will call:\n listener.added_to_multizone(group_uuid)\n The cast has been a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the receive_message API.
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 receive_message API.
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... | Called when a connection message is received. | "Called when a connection message is received." | 145 | false | balloob/pychromecast | receive_message | 21,267 | |
LDU_FT/stephantul/somber/_calculate_influence | LDU_FT | [
"<BEGIN>\n## `_calculate_influence`",
"Pre-calculate the influence for a given value of sigma.",
" The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).",
" Parameters\n ----------\n neighborhood : float\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calculate_influence 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 _calculate_influence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Pre-calculate the influence for a given value of sigma.
The neighborhood has size num_neurons * num_neurons, so for a
30 * 30 map, the neighborhood will be size (900, 900).
Parameters
----------
neighborhood : float
The neighborhood value.
Returns
-... | "Pre-calculate the influence for a given value of sigma.\n\n The neighborhood has size num_neurons * num_neurons, so for a\n 30 * 30 map, the neighborhood will be size (900, 900).\n\n Parameters\n ----------\n neighborhood : float\n The neighborhood value.\n\n Return... | 123 | false | stephantul/somber | _calculate_influence | 21,268 | |
LDU_FT/Trax-air/swagger-parser/validate_additional_properties | LDU_FT | [
"<BEGIN>\n## `_validate_post_body`",
"returns a tuple (boolean, msg)\n to indicate whether the validation passed\n if False then msg contains the reason\n if True then msg is empty\n<END>",
"<BEGIN>\n## `build_definitions_example`",
"Parse all definitions in the swagger specification.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_additional_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_additional_properties API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Validates additional properties. In additional properties, we only
need to compare the values of the dict, not the keys
Args:
valid_response: An example response (for example generated in
_get_example_from_properties(self, spec))
Ty... | "Validates additional properties. In additional properties, we only\n need to compare the values of the dict, not the keys\n\n Args:\n valid_response: An example response (for example generated in\n _get_example_from_properties(self, spec))\n ... | 100 | false | Trax-air/swagger-parser | validate_additional_properties | 21,269 | |
LDU_FT/rigetti/pyquil/do_measurement | LDU_FT | [
"<BEGIN>\n## `to_latex`",
"Translates a given pyquil Program to a TikZ picture in a Latex document.",
" :param Program circuit: The circuit to be drawn, represented as a pyquil program.\n :param dict settings: An optional dictionary with settings for drawing the circuit. See `get_default_settings`\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_measurement API.
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 do_measurement API.
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... | Measure a qubit and collapse the wavefunction
:return: The measurement result. A 1 or a 0. | "Measure a qubit and collapse the wavefunction\n\n :return: The measurement result. A 1 or a 0." | 1,152 | true | rigetti/pyquil | do_measurement | 21,270 | |
LDU_FT/twisted/twistedchecker/visit_module | LDU_FT | [
"<BEGIN>\n## `_isInner`",
"Determine whether the given node is, at any point in its syntactic\n parentage, defined within a function.",
" @param node: The node to inspect.\n @type node: L{logilab.astng.bases.NodeNG}",
" @return: a boolean indicating if the given node is defined as an inner\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_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 extr... | A interface will be called when visiting a module.
@param node: The module node to check. | "A interface will be called when visiting a module.\n\n @param node: The module node to check." | 146 | false | twisted/twistedchecker | visit_module | 21,271 | |
LDU_FT/open-homeautomation/miflora/main | LDU_FT | [
"<BEGIN>\n## `_get_backend`",
"Extract the backend class from the command line arguments.\n<END>",
"<BEGIN>\n## `main`",
"Main function.",
" Mostly parsing the command line arguments.\n<END>",
"<BEGIN>\n## `scan`",
"Scan for miflora devices.",
" Note: this must be run as root!\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API.
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 main API.
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... | Main function.
Mostly parsing the command line arguments. | "Main function.\n\n Mostly parsing the command line arguments." | 20 | false | open-homeautomation/miflora | main | 21,272 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.