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/fakedrake/overlay_parse/offset_overlays | LDU_FT | [
"<BEGIN>\n## `rx_int_extra`",
"We didn't just match an int but the int is what we need.\n<END>",
"<BEGIN>\n## `offset_overlays`",
"Generate overlays after offset.\n :param text: The text to be searched.\n :param offset: Match starting that index. If none just search.\n :returns: An overla... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the offset_overlays API.
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 offset_overlays API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get overlays for the text.
:param text: The text to be searched. This is an overlay
object.
:param offset: Match starting that index. If none just search.
:returns: A generator for overlays. | "Get overlays for the text.\n :param text: The text to be searched. This is an overlay\n object.\n :param offset: Match starting that index. If none just search.\n :returns: A generator for overlays." | 35 | false | fakedrake/overlay_parse | offset_overlays | 39,373 | |
LDU_FT/Parallels/artifactory/rest_del | LDU_FT | [
"<BEGIN>\n## `encode_properties`",
"Performs encoding of url parameters from dictionary to a string. It does\n not escape backslash because it is not needed.",
" See: http://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-SetItemProperties\n<END>",
"<BEGIN>\n## `splitroot`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rest_del API.
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 rest_del API.
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... | Perform a DELETE request to url with optional authentication | "Perform a DELETE request to url with optional authentication" | 27 | false | Parallels/artifactory | rest_del | 39,374 | |
LDU_FT/thecynic/pylutron/_parse_led | LDU_FT | [
"<BEGIN>\n## `_send_locked`",
"Sends the specified command to the lutron controller.",
" Assumes self._lock is held.\n<END>",
"<BEGIN>\n## `_do_login_locked`",
"Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_led API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_led API.
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... | Parses an LED device that part of a keypad. | "Parses an LED device that part of a keypad." | 73 | false | thecynic/pylutron | _parse_led | 39,375 | |
LDU_FT/bjodah/pycodeexport/_dummify_expr | LDU_FT | [
"<BEGIN>\n## `get_idxs`",
"Finds sympy.tensor.indexed.Idx instances and returns them.\n<END>",
"<BEGIN>\n## `model1`",
"x[i] = (a[i]/3-1)**i + c\n y[j] = a[j] - j\n<END>",
"<BEGIN>\n## `render_mako_template_to`",
"template: either string of path or file like obj.",
" Beware of the only_update opti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dummify_expr API.
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 _dummify_expr API.
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... | Useful to robustify prior to e.g. regexp substitution of
code strings | "Useful to robustify prior to e.g. regexp substitution of\n code strings" | 29 | false | bjodah/pycodeexport | _dummify_expr | 39,376 | |
LDU_FT/contentful/contentful.py/assets | LDU_FT | [
"<BEGIN>\n## `incoming_references`",
"Fetches all entries referencing the entry",
" API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/links-to-asset",
" :param client Client instance\n :param query: (optional) Dict with... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assets API.
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 assets API.
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 ... | Fetches all Assets from the Space (up to the set limit, can be modified in `query`).
API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/assets-collection/get-all-assets-of-a-space
:param query: (optional) Dict with API options.
:return:... | "Fetches all Assets from the Space (up to the set limit, can be modified in `query`).\n\n API Reference: https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/assets/assets-collection/get-all-assets-of-a-space\n\n :param query: (optional) Dict with API options.\n :r... | 71 | false | contentful/contentful.py | assets | 39,377 | |
LDU_FT/stephrdev/django-formwizard/render_done | LDU_FT | [
"<BEGIN>\n## `as_view`",
"This method is used within urls.py to create unique formwizard\n instances for every request. We need to override this method because\n we add some kwargs which are needed to make the formwizard usable.\n<END>",
"<BEGIN>\n## `get_initkwargs`",
"Creates a dict with all n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_done API.
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 render_done API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This method gets called when all forms passed. The method should also
re-validate all steps to prevent manipulation. If any form don't
validate, `render_revalidation_failure` should get called.
If everything is fine call `done`. | "This method gets called when all forms passed. The method should also\n re-validate all steps to prevent manipulation. If any form don't\n validate, `render_revalidation_failure` should get called.\n If everything is fine call `done`." | 60 | false | stephrdev/django-formwizard | render_done | 39,378 | |
LDU_FT/fkarb/xltable/get_table_pos | LDU_FT | [
"<BEGIN>\n## `itersheets`",
"Iterates over the worksheets in the book, and sets the active\n worksheet as the current one before yielding.\n<END>",
"<BEGIN>\n## `to_xlsx`",
"Write workbook to a .xlsx file using xlsxwriter.\n Return a xlsxwriter.workbook.Workbook.",
" :param kwargs: Extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_table_pos API.
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_table_pos API.
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 str tablename: Name of table to get position of.
:return: Upper left (row, col) coordinate of the named table. | ":param str tablename: Name of table to get position of.\n :return: Upper left (row, col) coordinate of the named table." | 48 | false | fkarb/xltable | get_table_pos | 39,379 | |
LDU_FT/impact27/registrator/gauss_fit | LDU_FT | [
"<BEGIN>\n## `channel_width`",
"Get an estimation of the channel width.",
" Parameters:\n -----------\n im: 2d array\n The channel image\n chanangle: number, optional\n The angle of the channel (None if unknown)\n chanapproxangle: number, optional\n If chanangle is None, the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gauss_fit API.
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 gauss_fit API.
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... | Fit the function to a gaussian.
Parameters
----------
X: 1d array
X values
Y: 1d array
Y values
Returns
-------
(The return from scipy.optimize.curve_fit)
popt : array
Optimal values for the parameters
pcov : 2d array
The estimated covariance of popt... | "Fit the function to a gaussian.\n\n Parameters\n ----------\n X: 1d array\n X values\n Y: 1d array\n Y values\n\n Returns\n -------\n (The return from scipy.optimize.curve_fit)\n popt : array\n Optimal values for the parameters\n pcov : 2d array\n The estimated co... | 129 | false | impact27/registrator | gauss_fit | 39,380 | |
LDU_FT/vsoch/helpme/get_settings | LDU_FT | [
"<BEGIN>\n## `main`",
"the main entry point for the HelpMe Command line application. Currently,\n the user can request help or set config values for a particular helper.\n<END>",
"<BEGIN>\n## `write_config`",
"use configparser to write a config object to filename\n<END>",
"<BEGIN>\n## `generate_tempor... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | get all settings for a client, if defined in config. | "get all settings for a client, if defined in config." | 121 | false | vsoch/helpme | get_settings | 39,381 | |
LDU_FT/dpkp/kafka-python/crc_update | LDU_FT | [
"<BEGIN>\n## `send_fetches`",
"Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.",
" Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>",
"<BEGIN>\n## `reset_offsets_if_needed`",
"Lookup and se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the crc_update API.
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 crc_update API.
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... | Update CRC-32C checksum with data.
Args:
crc: 32-bit checksum to update as long.
data: byte array, string or iterable over bytes.
Returns:
32-bit updated CRC-32C as long. | "Update CRC-32C checksum with data.\n Args:\n crc: 32-bit checksum to update as long.\n data: byte array, string or iterable over bytes.\n Returns:\n 32-bit updated CRC-32C as long." | 787 | false | dpkp/kafka-python | crc_update | 39,382 | |
LDU_FT/fedora-infra/fedora-messaging/loads | LDU_FT | [
"<BEGIN>\n## `cli`",
"The fedora-messaging command line interface.\n<END>",
"<BEGIN>\n## `consume`",
"Consume messages from an AMQP queue using a Python callback.\n<END>",
"<BEGIN>\n## `_consume_errback`",
"Handle any errors that occur during consumer registration.\n<END>",
"<BEGIN>\n## `_consume_callba... | 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... | Deserialize messages from a JSON formatted str
Args:
serialized_messages (JSON str):
Returns:
list: Deserialized message objects.
Raises:
ValidationError: If deserialized message validation failed.
KeyError: If serialized_messages aren't properly serialized.
ValueE... | "Deserialize messages from a JSON formatted str\n\n Args:\n serialized_messages (JSON str):\n\n Returns:\n list: Deserialized message objects.\n\n Raises:\n ValidationError: If deserialized message validation failed.\n KeyError: If serialized_messages aren't properly serialized.\n ... | 302 | false | fedora-infra/fedora-messaging | loads | 39,383 | |
LDU_FT/vladsaveliev/TargQC/downsample | LDU_FT | [
"<BEGIN>\n## `main`",
"Annotating BED file based on reference features annotations.\n<END>",
"<BEGIN>\n## `downsample`",
"get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/\n<END>",
"<BEGIN>\n## `AddIndex`",
"Recursiv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the downsample API.
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 downsample API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | get N random headers from a fastq file without reading the
whole thing into memory
modified from: http://www.biostars.org/p/6544/ | "get N random headers from a fastq file without reading the\n whole thing into memory\n modified from: http://www.biostars.org/p/6544/" | 184 | false | vladsaveliev/TargQC | downsample | 39,384 | |
LDU_FT/pettarin/ipapy/load_ipa_data | LDU_FT | [
"<BEGIN>\n## `can_map_ipa_string`",
"Return ``True`` if the mapper can map all the IPA characters\n in the given IPA string.",
" :param IPAString ipa_string: the IPAString to be parsed\n :rtype: bool\n<END>",
"<BEGIN>\n## `map_ipa_string`",
"Convert the given IPAString to a string\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ipa_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 ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_ipa_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 ext... | Load the IPA data from the built-in IPA database, creating the following globals:
1. ``IPA_CHARS``: list of all IPAChar objects
2. ``UNICODE_TO_IPA``: dict mapping a Unicode string (often, a single char) to an IPAChar
3. ``UNICODE_TO_IPA_MAX_KEY_LENGTH``: length of a longest key in ``UNICODE_TO_IPA``
4... | "Load the IPA data from the built-in IPA database, creating the following globals:\n\n 1. ``IPA_CHARS``: list of all IPAChar objects\n 2. ``UNICODE_TO_IPA``: dict mapping a Unicode string (often, a single char) to an IPAChar\n 3. ``UNICODE_TO_IPA_MAX_KEY_LENGTH``: length of a longest key in ``UNICODE_TO_IPA``\... | 205 | false | pettarin/ipapy | load_ipa_data | 39,385 | |
LDU_FT/swharden/PyOriginTools/data | LDU_FT | [
"<BEGIN>\n## `getcols`",
"find every column in every sheet and put it in a new sheet or book.\n<END>",
"<BEGIN>\n## `updateVersion`",
"given a filename to a file containing a __counter__ variable,\n open it, read the count, add one, rewrite the file.",
" This:\n __counter__=123\n Becomes:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted do... | return all of colData as a 2D numpy array. | "return all of colData as a 2D numpy array." | 52 | false | swharden/PyOriginTools | data | 39,386 | |
LDU_FT/cakebread/yolk/check_proxy_setting | LDU_FT | [
"<BEGIN>\n## `get_metadata`",
"Return dictionary of metadata for given dist",
" @param dist: distribution\n @type dist: pkg_resources Distribution object",
" @returns: dict of metadata or None\n<END>",
"<BEGIN>\n## `add_options`",
"Add command-line options for this plugin.",
" The base p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_proxy_setting 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 check_proxy_setting 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... | If the environmental variable 'HTTP_PROXY' is set, it will most likely be
in one of these forms:
proxyhost:8080
http://proxyhost:8080
urlllib2 requires the proxy URL to start with 'http://'
This routine does that, and returns the transport for xmlrpc. | "If the environmental variable 'HTTP_PROXY' is set, it will most likely be\n in one of these forms:\n\n proxyhost:8080\n http://proxyhost:8080\n\n urlllib2 requires the proxy URL to start with 'http://'\n This routine does that, and returns the transport for xmlrpc." | 165 | false | cakebread/yolk | check_proxy_setting | 39,387 | |
LDU_FT/ChristianKuehnel/btlewrap/check_backend | LDU_FT | [
"<BEGIN>\n## `wrap_exception`",
"Decorator to wrap pygatt exceptions into BluetoothBackendException.\n<END>",
"<BEGIN>\n## `wrap_exception`",
"Decorator to wrap BTLEExceptions into BluetoothBackendException.\n<END>",
"<BEGIN>\n## `read_handle`",
"Read a handle from the device.",
" You must be con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_backend API.
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 check_backend API.
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... | Check if gatttool is available on the system. | "Check if gatttool is available on the system." | 27 | false | ChristianKuehnel/btlewrap | check_backend | 39,388 | |
LDU_FT/thespacedoctor/rockAtlas/import_new_atlas_pointings | LDU_FT | [
"<BEGIN>\n## `main`",
"*The main function used when ``find_atlas_exposure_containing_ssobject.py`` is run as a single script from the cl*\n<END>",
"<BEGIN>\n## `_extract_phot_from_exposure`",
"* extract phot from exposure*",
" **Key Arguments:**\n - ``expIdIndex`` -- index of the exposure to extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_new_atlas_pointings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_new_atlas_pointings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | *Import any new ATLAS pointings from the atlas3/atlas4 databases into the ``atlas_exposures`` table of the Atlas Movers database*
**Key Arguments:**
- ``recent`` -- only sync the most recent 2 weeks of data (speeds things up)
**Return:**
- None
**Usage:**
... | "*Import any new ATLAS pointings from the atlas3/atlas4 databases into the ``atlas_exposures`` table of the Atlas Movers database*\n\n **Key Arguments:**\n - ``recent`` -- only sync the most recent 2 weeks of data (speeds things up)\n\n **Return:**\n - None\n\n **Usage:**\n\n... | 125 | false | thespacedoctor/rockAtlas | import_new_atlas_pointings | 39,389 | |
LDU_FT/eyurtsev/FlowCytometryTools/update_looks | 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 update_looks API.
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_looks API.
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... | Updates the looks of the gate depending on state. | "Updates the looks of the gate depending on state." | 330 | false | eyurtsev/FlowCytometryTools | update_looks | 39,390 | |
LDU_FT/coleifer/peewee/search_bm25 | LDU_FT | [
"<BEGIN>\n## `ClosureTable`",
"Model factory for the transitive closure extension.\n<END>",
"<BEGIN>\n## `bm25`",
"Usage:",
" # Format string *must* be pcnalx\n # Second parameter to bm25 specifies the index of the column, on\n # the table being queries.\n bm25(matchinfo(document... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the search_bm25 API.
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 search_bm25 API.
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... | Full-text search for selected `term` using BM25 algorithm. | "Full-text search for selected `term` using BM25 algorithm." | 33 | false | coleifer/peewee | search_bm25 | 39,391 | |
LDU_FT/coleifer/walrus/add | LDU_FT | [
"<BEGIN>\n## `get`",
"Retreive a value from the cache. In the event the value\n does not exist, return the ``default``.\n<END>",
"<BEGIN>\n## `set`",
"Cache the given ``value`` in the specified ``key``. If no\n timeout is specified, the default timeout will be used.\n<END>",
"<BEGIN>\n## `flus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add data to a stream.
:param dict data: data to add to stream
:param id: identifier for message ('*' to automatically append)
:param maxlen: maximum length for stream
:param approximate: allow stream max length to be approximate
:returns: the added message id. | "Add data to a stream.\n\n :param dict data: data to add to stream\n :param id: identifier for message ('*' to automatically append)\n :param maxlen: maximum length for stream\n :param approximate: allow stream max length to be approximate\n :returns: the added message id." | 363 | false | coleifer/walrus | add | 39,392 | |
LDU_FT/pysal/spglm/deriv2 | LDU_FT | [
"<BEGIN>\n## `fit`",
"Method that fits a model with a particular estimation routine.",
" Parameters\n ----------",
" ini_betas : array\n k*1, initial coefficient values, including constant.\n Default is None, which calculates initial value... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deriv2 API.
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 deriv2 API.
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 ... | Second derivative of the link function g''(p)
implemented through numerical differentiation | "Second derivative of the link function g''(p)\n\n implemented through numerical differentiation" | 161 | false | pysal/spglm | deriv2 | 39,393 | |
LDU_FT/grantmcconnaughey/django-avatar/transpose_image | LDU_FT | [
"<BEGIN>\n## `_get_next`",
"The part that's the least straightforward about views in this module is\n how they determine their redirects after they have finished computation.",
" In short, they will try and determine the next place to go in the\n following order:",
" 1. If there is a variable name... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose_image API.
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 transpose_image API.
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... | Transpose based on EXIF information.
Borrowed from django-imagekit:
imagekit.processors.Transpose | "Transpose based on EXIF information.\n Borrowed from django-imagekit:\n imagekit.processors.Transpose" | 14 | false | grantmcconnaughey/django-avatar | transpose_image | 39,394 | |
LDU_FT/uchicago-cs/deepdish/_load_nonlink_level | LDU_FT | [
"<BEGIN>\n## `load`",
"Loads an instance of the class from a file.",
" Parameters\n ----------\n path : str\n Path to an HDF5 file.",
" Examples\n --------\n This is an abstract data type, but let us say that ``Foo`` inherits\n from ``Saveable``. To ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_nonlink_level 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 _load_nonlink_level 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... | Loads level and builds appropriate type, without handling softlinks | "Loads level and builds appropriate type, without handling softlinks" | 138 | false | uchicago-cs/deepdish | _load_nonlink_level | 39,395 | |
LDU_FT/wrobstory/vincent/shape | LDU_FT | [
"<BEGIN>\n## `fill_opacity`",
"ValueRef : int or float, opacity of the fill (0 to 1)\n<END>",
"<BEGIN>\n## `stroke_width`",
"ValueRef : int, width of the stroke in pixels\n<END>",
"<BEGIN>\n## `stroke_opacity`",
"ValueRef : number, opacity of the stroke (0 to 1)\n<END>",
"<BEGIN>\n## `size`",
"ValueRe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the shape API.
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 shape API.
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... | ValueRef : string, type of symbol to use
Possible values are ``'circle'`` (default), ``'square'``,
``'cross'``, ``'diamond'``, ``'triangle-up'``, and
``'triangle-down'``. Only used if ``type`` is ``'symbol'``. | "ValueRef : string, type of symbol to use\n\n Possible values are ``'circle'`` (default), ``'square'``,\n ``'cross'``, ``'diamond'``, ``'triangle-up'``, and\n ``'triangle-down'``. Only used if ``type`` is ``'symbol'``." | 139 | false | wrobstory/vincent | shape | 39,396 | |
LDU_FT/nccgroup/opinel/init_sts_session | LDU_FT | [
"<BEGIN>\n## `read_default_args`",
"Read default argument values for a given tool",
" :param tool_name: Name of the script to read the default arguments for\n :return: Dictionary of default arguments (shared + tool-specific)\n<END>",
"<BEGIN>\n## `prompt`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_sts_session API.
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 init_sts_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Fetch STS credentials
:param profile_name:
:param credentials:
:param duration:
:param session_name:
:param save_creds:
:return: | "Fetch STS credentials\n\n :param profile_name:\n :param credentials:\n :param duration:\n :param session_name:\n :param save_creds:\n :return:" | 132 | false | nccgroup/opinel | init_sts_session | 39,397 | |
LDU_FT/sci-bots/mpm/installed_plugins | LDU_FT | [
"<BEGIN>\n## `update_plugin_dialog`",
"Launch dialog to track status of update of specified plugin package.",
" .. versionadded:: 0.19",
" .. versionchanged:: 0.20\n Add support for updating multiple packages (update all **installed**\n plugins by default).",
" Add :data:`update_a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the installed_plugins API.
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 installed_plugins API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | .. versionadded:: 0.20
Parameters
----------
only_conda : bool, optional
Only consider plugins that are installed **as Conda packages**.
.. versionadded:: 0.22
Returns
-------
list
List of properties corresponding to each available plugin that is
**installed**.... | ".. versionadded:: 0.20\n\n Parameters\n ----------\n only_conda : bool, optional\n Only consider plugins that are installed **as Conda packages**.\n\n .. versionadded:: 0.22\n\n Returns\n -------\n list\n List of properties corresponding to each available plugin that is\n ... | 181 | false | sci-bots/mpm | installed_plugins | 39,398 | |
LDU_FT/jonathansick/paperweight/read_git_blob | LDU_FT | [
"<BEGIN>\n## `read_git_blob`",
"Get text from a git blob.",
" Parameters\n ----------\n commit_ref : str\n Any SHA or git tag that can resolve into a commit in the\n git repository.\n path : str\n Path to the document in the git repository, relative to the root\n of the r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_git_blob API.
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 read_git_blob API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get text from a git blob.
Parameters
----------
commit_ref : str
Any SHA or git tag that can resolve into a commit in the
git repository.
path : str
Path to the document in the git repository, relative to the root
of the repository.
repo_dir : str
Path from c... | "Get text from a git blob.\n\n Parameters\n ----------\n commit_ref : str\n Any SHA or git tag that can resolve into a commit in the\n git repository.\n path : str\n Path to the document in the git repository, relative to the root\n of the repository.\n repo_dir : str\n ... | 60 | false | jonathansick/paperweight | read_git_blob | 39,399 | |
LDU_FT/jeffrimko/Auxly/trycatch | LDU_FT | [
"<BEGIN>\n## `silent`",
"Calls the given shell command. Output will not be displayed. Returns the\n status code.",
" **Examples**:\n ::\n auxly.shell.silent(\"ls\")\n<END>",
"<BEGIN>\n## `has`",
"Returns true if the give shell command is available.",
" **Examples**:\n ::\n aux... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trycatch API.
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 trycatch API.
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... | Wraps a function in a try/catch block. Can be used as a function
decorator or as a function that accepts another function.
**Params**:
- func (func) - Function to call. Only available when used as a function.
- oncatch (str) [kwargs] - Function to call if an exception is caught.
- rethrow (st... | "Wraps a function in a try/catch block. Can be used as a function\n decorator or as a function that accepts another function.\n\n **Params**:\n - func (func) - Function to call. Only available when used as a function.\n - oncatch (str) [kwargs] - Function to call if an exception is caught.\n - reth... | 65 | false | jeffrimko/Auxly | trycatch | 39,400 | |
LDU_FT/bspaans/python-mingus/transpose | LDU_FT | [
"<BEGIN>\n## `valid_beat_duration`",
"Return True when log2(duration) is an integer.\n<END>",
"<BEGIN>\n## `add_notes`",
"Add a Note, note as string or NoteContainer to the last Bar.",
" If the Bar is full, a new one will automatically be created.",
" If the Bar is not full but the note can'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transpose API.
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 transpose API.
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... | Transpose all the notes in the track up or down the interval.
Call transpose() on every Bar. | "Transpose all the notes in the track up or down the interval.\n\n Call transpose() on every Bar." | 535 | false | bspaans/python-mingus | transpose | 39,401 | |
LDU_FT/tagcubeio/tagcube-cli/_parse_config_file_impl | LDU_FT | [
"<BEGIN>\n## `create_scans`",
"This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).",
" :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>",
"<BEGIN>\n## `parse_url`",
"Parse a URL into the part... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_config_file_impl 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 _parse_config_file_impl API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Format for the file is:
credentials:
email: ...
api_token: ...
:param filename: The filename to parse
:return: A tuple with:
- email
- api_token | "Format for the file is:\n \n credentials:\n email: ...\n api_token: ...\n \n :param filename: The filename to parse\n :return: A tuple with:\n - email\n - api_token" | 72 | false | tagcubeio/tagcube-cli | _parse_config_file_impl | 39,402 | |
LDU_FT/datadesk/django-bakery/get_build_path | LDU_FT | [
"<BEGIN>\n## `serve`",
"Serve static files below a given point in the directory structure.",
" To use, put a URL pattern such as::",
" (r'^(?P<path>.*)$', 'django.views.static.serve',\n {'document_root' : '/path/to/my/files/'})",
" in your URLconf. You must provide the ``document_roo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_build_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_build_path API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Used to determine where to build the page. Override this if you
would like your page at a different location. By default it
will be built at self.get_url() + "/index.html" | "Used to determine where to build the page. Override this if you\n would like your page at a different location. By default it\n will be built at self.get_url() + \"/index.html\"" | 104 | false | datadesk/django-bakery | get_build_path | 39,403 | |
LDU_FT/pyusb/pyusb/find_descriptor | LDU_FT | [
"<BEGIN>\n## `_try_get_string`",
"try to get a string, but return a string no matter what\n<END>",
"<BEGIN>\n## `_try_lookup`",
"try to get a string from the lookup table, return \"\" instead of key\n error\n<END>",
"<BEGIN>\n## `find`",
"r\"\"\"Find an USB device and return it.",
" find() is the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_descriptor API.
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 find_descriptor API.
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... | r"""Find an inner descriptor.
find_descriptor works in the same way as the core.find() function does,
but it acts on general descriptor objects. For example, suppose you
have a Device object called dev and want a Configuration of this
object with its bConfigurationValue equals to 1, the code would
... | "r\"\"\"Find an inner descriptor.\n\n find_descriptor works in the same way as the core.find() function does,\n but it acts on general descriptor objects. For example, suppose you\n have a Device object called dev and want a Configuration of this\n object with its bConfigurationValue equals to 1, the code w... | 229 | false | pyusb/pyusb | find_descriptor | 39,404 | |
LDU_FT/eventifyio/eventify/check_transport_host | LDU_FT | [
"<BEGIN>\n## `track_event`",
"Store state of events in memory\n :param event: Event object\n :param state: EventState object\n :param service_name: Name of service name\n<END>",
"<BEGIN>\n## `persist_event`",
"Track event to prevent duplication of work\n and potential loss of event\n :param top... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_transport_host API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_transport_host 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 zeromq socket is available
on transport host | "Check if zeromq socket is available\n on transport host" | 29 | false | eventifyio/eventify | check_transport_host | 39,405 | |
LDU_FT/mgedmin/imgdiff/tweak_diff | LDU_FT | [
"<BEGIN>\n## `parse_color`",
"Parse a color value.",
" I've decided not to expect a leading '#' because it's a comment character\n in some shells.",
" >>> parse_color('4bf') == (0x44, 0xbb, 0xff, 0xff)\n True\n >>> parse_color('ccce') == (0xcc, 0xcc, 0xcc, 0xee)\n True\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tweak_diff API.
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 tweak_diff API.
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... | Adjust a difference map into an opacity mask for a given lowest opacity.
Performs a linear map from [0; 255] to [opacity; 255].
The result is that similar areas will have a given opacity, while
dissimilar areas will be opaque. | "Adjust a difference map into an opacity mask for a given lowest opacity.\n\n Performs a linear map from [0; 255] to [opacity; 255].\n\n The result is that similar areas will have a given opacity, while\n dissimilar areas will be opaque." | 65 | false | mgedmin/imgdiff | tweak_diff | 39,406 | |
LDU_FT/push-things/wallabag_api/put_annotations | LDU_FT | [
"<BEGIN>\n## `query`",
"Do a query to the System API",
" :param path: url to the API\n :param method: the kind of query to do\n :param params: a dict with all the\n necessary things to query the API\n :return json data\n<END>",
"<BEGIN>\n## `handle_json_response`",
"get th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_annotations API.
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 put_annotations API.
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... | PUT /api/annotations/{annotation}.{_format}
Updates an annotation.
:param annotation \w+ string The annotation ID
Will returns annotation for this entry
:return data related to the ext | "PUT /api/annotations/{annotation}.{_format}\n\n Updates an annotation.\n\n :param annotation \t\\w+ \tstring \tThe annotation ID\n\n Will returns annotation for this entry\n :return data related to the ext" | 68 | false | push-things/wallabag_api | put_annotations | 39,407 | |
LDU_FT/ansible/ansible-runner/event_callback | LDU_FT | [
"<BEGIN>\n## `get_contents`",
"Loads the contents of the file specified by path",
" Args:\n path (string): The relative or absolute path to the file to\n be loaded. If the path is relative, then it is combined\n with the base_path to generate a full path string",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the event_callback API.
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 event_callback API.
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... | Invoked for every Ansible event to collect stdout with the event data and store it for
later use | "Invoked for every Ansible event to collect stdout with the event data and store it for\n later use" | 83 | false | ansible/ansible-runner | event_callback | 39,408 | |
LDU_FT/quiltdata/quilt/dataset | LDU_FT | [
"<BEGIN>\n## `create_s3_session`",
"Creates a session with automatic retries on 5xx errors.\n<END>",
"<BEGIN>\n## `load_module`",
"Returns an object that lazily looks up tables and groups.\n<END>",
"<BEGIN>\n## `find_module`",
"Looks up the table based on the module path.\n<END>",
"<BEGIN>\n## `_path_ha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dataset API.
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 dataset API.
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... | Convert immediate children of a GroupNode into a torch.data.Dataset
Keyword arguments
* node_parser=callable that converts a DataNode to a Dataset item
* include=lambda x: True
lambda(quilt.nodes.GroupNode) => {True, False}
intended to filter nodes based on metadata
* input_transform=None; o... | "Convert immediate children of a GroupNode into a torch.data.Dataset\n Keyword arguments\n * node_parser=callable that converts a DataNode to a Dataset item\n * include=lambda x: True\n lambda(quilt.nodes.GroupNode) => {True, False}\n intended to filter nodes based on metadata\n * input_transform=... | 202 | false | quiltdata/quilt | dataset | 39,409 | |
LDU_FT/deshima-dev/decode/ones_like | LDU_FT | [
"<BEGIN>\n## `xarrayfunc`",
"Make a function compatible with xarray.DataArray.",
" This function is intended to be used as a decorator like::",
" >>> @dc.xarrayfunc\n >>> def func(array):\n ... # do something\n ... return newarray\n >>>\n >>> result = func(... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ones_like API.
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 ones_like API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Create an array of ones with the same shape and type as the input array.
Args:
array (xarray.DataArray): The shape and data-type of it define
these same attributes of the output array.
dtype (data-type, optional): If spacified, this function overrides
the data-type of the ou... | "Create an array of ones with the same shape and type as the input array.\n\n Args:\n array (xarray.DataArray): The shape and data-type of it define\n these same attributes of the output array.\n dtype (data-type, optional): If spacified, this function overrides\n the data-type of... | 137 | false | deshima-dev/decode | ones_like | 39,410 | |
LDU_FT/thoughtworksarts/EmoPy/_init_model | LDU_FT | [
"<BEGIN>\n## `load_data`",
"Loads image and label data from specified csv file path.",
" :return: Dataset object containing image and label data.\n<END>",
"<BEGIN>\n## `_load_dataset`",
"Loads Dataset object with images, labels, and other data.",
" :param images: numpy array of image data\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _init_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 extra... | Initialize base model from Keras and add top layers to match number of training emotions labels.
:return: | "Initialize base model from Keras and add top layers to match number of training emotions labels.\n :return:" | 53 | false | thoughtworksarts/EmoPy | _init_model | 39,411 | |
LDU_FT/googleads/googleads-python-lib/GetAccounts | LDU_FT | [
"<BEGIN>\n## `CreateAdsWithCustomizations`",
"Creates ExpandedTextAds that use ad customizations for specified AdGroups.",
" Args:\n client: an AdWordsClient instance.\n adgroup_ids: a list containing the AdGroup ids to add ExpandedTextAds to.\n feed_name: the name of the feed used to apply customizat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the GetAccounts API.
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 GetAccounts API.
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 client accounts associated with the user's manager account.
Returns:
list List of ManagedCustomer data objects. | "Return the client accounts associated with the user's manager account.\n\n Returns:\n list List of ManagedCustomer data objects." | 713 | false | googleads/googleads-python-lib | GetAccounts | 39,412 | |
LDU_FT/tonioo/sievelib/parse_file | LDU_FT | [
"<BEGIN>\n## `authentication_required`",
"Simple class method decorator.",
" Checks if the client is currently connected.",
" :param meth: the original called method\n<END>",
"<BEGIN>\n## `__read_block`",
"Read a block of 'size' bytes from the server.",
" An internal buffer is used to read ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_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 extrac... | Parse the content of a file.
See 'parse' method for information.
:param name: the pathname of the file to parse
:return: True on success (no error detected), False otherwise | "Parse the content of a file.\n\n See 'parse' method for information.\n\n :param name: the pathname of the file to parse\n :return: True on success (no error detected), False otherwise" | 191 | false | tonioo/sievelib | parse_file | 39,413 | |
LDU_FT/ElementAI/greensim/using | LDU_FT | [
"<BEGIN>\n## `pause`",
"Pauses the current process indefinitely -- it will require another process to `resume()` it. When this resumption\n happens, the process returns from this function.\n<END>",
"<BEGIN>\n## `advance`",
"Pauses the current process for the given delay (in simulated time). The process wil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the using API.
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 using API.
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... | Context manager around resource reservation: when the code block under the with statement is entered, the
current process holds the instances it requested. When it exits, all these instances are released.
Do not explicitly `release()` instances within the context block, at the risk of breaking instance... | "Context manager around resource reservation: when the code block under the with statement is entered, the\n current process holds the instances it requested. When it exits, all these instances are released.\n\n Do not explicitly `release()` instances within the context block, at the risk of breaking inst... | 83 | false | ElementAI/greensim | using | 39,414 | |
LDU_FT/dourvaris/nano-python/keypair_from_seed | 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 keypair_from_seed API.
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 keypair_from_seed API.
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 a deterministic keypair from `seed` based on `index`
:param seed: bytes value of seed
:type seed: bytes
:param index: offset from seed
:type index: int
:return: dict of the form: {
'private': private_key
'public': public_key
} | "Generates a deterministic keypair from `seed` based on `index`\n\n :param seed: bytes value of seed\n :type seed: bytes\n\n :param index: offset from seed\n :type index: int\n\n :return: dict of the form: {\n 'private': private_key\n 'public': public_key\n }" | 574 | false | dourvaris/nano-python | keypair_from_seed | 39,415 | |
LDU_FT/nikcub/floyd/command_help_long | LDU_FT | [
"<BEGIN>\n## `get_file_contents`",
"Get the context of the file using full path name\n<END>",
"<BEGIN>\n## `import_model`",
"imports a model of name from path, returning from local model\n cache if it has been previously loaded otherwise importing\n<END>",
"<BEGIN>\n## `parse_md`",
"Takes a post path a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the command_help_long API.
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 command_help_long API.
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 command help for use in global parser usage string
@TODO update to support self.current_indent from formatter | "Return command help for use in global parser usage string\n \n @TODO update to support self.current_indent from formatter" | 71 | false | nikcub/floyd | command_help_long | 39,416 | |
LDU_FT/googlefonts/fontbakery/com_google_fonts_check_metadata_valid_filename_values | LDU_FT | [
"<BEGIN>\n## `get_module_profile`",
"Get or create a profile from a module and return it.",
" If the name `module.profile` is present the value of that is returned.\n Otherwise, if the name `module.profile_factory` is present, a new profile\n is created using `module.profile_factory` and then `profile.auto_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_metadata_valid_filename_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the com_google_fonts_check_metadata_valid_filename_values API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and ... | METADATA.pb font.filename field contains font name in right format? | "METADATA.pb font.filename field contains font name in right format?" | 381 | false | googlefonts/fontbakery | com_google_fonts_check_metadata_valid_filename_values | 39,417 | |
LDU_FT/cloudboss/friend/retry_ex | LDU_FT | [
"<BEGIN>\n## `cached`",
"A decorator function to cache values. It uses the decorated\n function's arguments as the keys to determine if the function\n has been called previously.\n<END>",
"<BEGIN>\n## `retry_wait_time`",
"Determine a retry wait time based on the number of the\n retry attempt and a ca... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry_ex API.
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 retry_ex API.
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... | Retry a callback function if any exception is raised.
:param function callback: The function to call
:keyword int times: Number of times to retry on initial failure
:keyword int cap: Maximum wait time in milliseconds
:returns: The return value of the callback
:raises Exception: If the callback rais... | "Retry a callback function if any exception is raised.\n\n :param function callback: The function to call\n :keyword int times: Number of times to retry on initial failure\n :keyword int cap: Maximum wait time in milliseconds\n :returns: The return value of the callback\n :raises Exception: If the callba... | 49 | false | cloudboss/friend | retry_ex | 39,418 | |
LDU_FT/inveniosoftware/invenio-github/run | LDU_FT | [
"<BEGIN>\n## `get`",
"Return a repository.",
" :param integer user_id: User identifier.\n :param integer github_id: GitHub repository identifier.\n :param str name: GitHub repository full name.\n :returns: The repository object.\n :raises: :py:exc:`~sqlalchemy.orm.exc.NoResult... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Process an event.
.. note::
We should only do basic server side operation here, since we send
the rest of the processing to a Celery task which will be mainly
accessing the GitHub API. | "Process an event.\n\n .. note::\n\n We should only do basic server side operation here, since we send\n the rest of the processing to a Celery task which will be mainly\n accessing the GitHub API." | 42 | false | inveniosoftware/invenio-github | run | 39,419 | |
LDU_FT/hollenstein/maspy/load | LDU_FT | [
"<BEGIN>\n## `_getArrays`",
"Return arrays with equal size of item attributes from a list of sorted\n \"items\" for fast and convenient data processing.",
" :param attr: list of item attributes that should be added to the returned\n array.\n :param defaultValue: if an item is missing an attribut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
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 load API.
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... | Import '[Term]' entries from an .obo file. | "Import '[Term]' entries from an .obo file." | 742 | false | hollenstein/maspy | load | 39,420 | |
LDU_FT/sjkingo/python-freshdesk/_delete | LDU_FT | [
"<BEGIN>\n## `get_ticket`",
"Fetches the ticket for the given ticket ID\n<END>",
"<BEGIN>\n## `create_ticket`",
"Creates a ticket\n To create ticket with attachments,\n pass a key 'attachments' with value as list of fully qualified file paths in string format.\n ex: attachment... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _delete API.
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 _delete API.
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... | Wrapper around request.delete() to use the API prefix. Returns a JSON response. | "Wrapper around request.delete() to use the API prefix. Returns a JSON response." | 57 | false | sjkingo/python-freshdesk | _delete | 39,421 | |
LDU_FT/acrisci/i3ipc-python/get_marks | LDU_FT | [
"<BEGIN>\n## `_pack`",
"Packs the given message type and payload. Turns the resulting\n message into a byte string.\n<END>",
"<BEGIN>\n## `_unpack`",
"Unpacks the given byte string and parses the result from JSON.\n Returns None on failure and saves data into \"self.buffer\".\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_marks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_marks API.
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 a list of the names of all currently set marks.
:rtype: list | "Get a list of the names of all currently set marks.\n\n :rtype: list" | 69 | false | acrisci/i3ipc-python | get_marks | 39,422 | |
LDU_FT/wilfilho/BingTranslator/_get_token | LDU_FT | [
"<BEGIN>\n## `_get_token`",
"Get token for make request. The The data obtained herein are used \r\n in the variable header.\r",
" Returns:\r\n To perform the request, receive in return a dictionary\r\n with several keys. With this method only return the token\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_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 extrac... | Get token for make request. The The data obtained herein are used
in the variable header.
Returns:
To perform the request, receive in return a dictionary
with several keys. With this method only return the token
as it will use it for subseq... | "Get token for make request. The The data obtained herein are used \r\n in the variable header.\r\n\r\n Returns:\r\n To perform the request, receive in return a dictionary\r\n with several keys. With this method only return the token\r\n as it will use ... | 25 | false | wilfilho/BingTranslator | _get_token | 39,423 | |
LDU_FT/bskinn/opan/_fadn_orth | LDU_FT | [
"<BEGIN>\n## `ortho_basis`",
"Generates an orthonormal basis in the plane perpendicular to `normal`",
" The orthonormal basis generated spans the plane defined with `normal` as\n its normal vector. The handedness of `on1` and `on2` in the returned\n basis is such that:",
" .. math::",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fadn_orth API.
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 _fadn_orth API.
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... | First non-zero Atomic Displacement Non-Orthogonal to Vec
Utility function to identify the first atomic displacement in a geometry
that is (a) not the zero vector; and (b) not normal to the reference vector.
Parameters
----------
vec
length-3 |npfloat_| --
Reference vector. Does not... | "First non-zero Atomic Displacement Non-Orthogonal to Vec\n\n Utility function to identify the first atomic displacement in a geometry\n that is (a) not the zero vector; and (b) not normal to the reference vector.\n\n Parameters\n ----------\n vec\n length-3 |npfloat_| --\n Reference vector... | 445 | false | bskinn/opan | _fadn_orth | 39,424 | |
LDU_FT/karjaljo/hiisi/attr_gen | LDU_FT | [
"<BEGIN>\n## `attr_exists`",
"Returns True if at least on instance of the attribute is found\n<END>",
"<BEGIN>\n## `datasets`",
"Method returns a list of dataset paths.",
" Examples\n --------\n >>> for dataset in h5f.datasets():\n print(dataset)\n '/dataset1/data1... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the attr_gen API.
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 attr_gen API.
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... | Returns attribute generator that yields namedtuples containing
path value pairs
Parameters
----------
attr : str
Name of the search attribute
Returns
-------
attr_generator : generator
Returns a generator that yields named tuples ... | "Returns attribute generator that yields namedtuples containing\n path value pairs\n \n Parameters\n ----------\n attr : str\n Name of the search attribute\n\n Returns\n -------\n attr_generator : generator\n Returns a generator that yields n... | 53 | false | karjaljo/hiisi | attr_gen | 39,425 | |
LDU_FT/google/grr/DeleteMessageHandlerRequests | LDU_FT | [
"<BEGIN>\n## `Column`",
"Iterates over values of a given column.",
" Args:\n column_name: A nome of the column to retrieve the values for.",
" Yields:\n Values of the specified column.",
" Raises:\n KeyError: If given column is not present in the table.\n<END>",
"<BEGIN>\n## `Check... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the DeleteMessageHandlerRequests 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 DeleteMessageHandlerRequests API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Deletes a list of message handler requests from the database. | "Deletes a list of message handler requests from the database." | 4,605 | true | google/grr | DeleteMessageHandlerRequests | 39,426 | |
LDU_FT/schneiderfelipe/pyrrole/_get_chemical_equation_piece | LDU_FT | [
"<BEGIN>\n## `_parse_chemical_equation`",
"Parse the chemical equation mini-language.",
" See the docstring of `ChemicalEquation` for more.",
" Parameters\n ----------\n value : `str`\n A string in chemical equation mini-language.",
" Returns\n -------\n mapping\n A mappin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_chemical_equation_piece 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_chemical_equation_piece API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Produce a string from chemical species and their coefficients.
Parameters
----------
species_list : iterable of `str`
Iterable of chemical species.
coefficients : iterable of `float`
Nonzero stoichiometric coefficients. The length of `species_list` and
`coefficients` must be the... | "Produce a string from chemical species and their coefficients.\n\n Parameters\n ----------\n species_list : iterable of `str`\n Iterable of chemical species.\n coefficients : iterable of `float`\n Nonzero stoichiometric coefficients. The length of `species_list` and\n `coefficients` mu... | 153 | false | schneiderfelipe/pyrrole | _get_chemical_equation_piece | 39,427 | |
LDU_FT/tagcubeio/tagcube-cli/create_scans | LDU_FT | [
"<BEGIN>\n## `create_scans`",
"This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).",
" :param urls_file: The filename with all the URLs\n :return: A list of scans to be run\n<END>",
"<BEGIN>\n## `parse_url`",
"Parse a URL into the part... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_scans API.
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 create_scans API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This method is rather simple, it will group the urls to be scanner together
based on (protocol, domain and port).
:param urls_file: The filename with all the URLs
:return: A list of scans to be run | "This method is rather simple, it will group the urls to be scanner together\n based on (protocol, domain and port).\n\n :param urls_file: The filename with all the URLs\n :return: A list of scans to be run" | 72 | false | tagcubeio/tagcube-cli | create_scans | 39,428 | |
LDU_FT/JonathanRaiman/pytreebank/to_file | LDU_FT | [
"<BEGIN>\n## `uproot`",
"Take a subranch of a tree and deep-copy the children\n of this subbranch into a new LabeledTree\n<END>",
"<BEGIN>\n## `lowercase`",
"Lowercase all strings in this tree.\n Works recursively and in-place.\n<END>",
"<BEGIN>\n## `to_dict`",
"Dict format for use in Javasc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Save the corpus to a text file in the
original format.
Arguments:
----------
path : str, where to save the corpus.
mode : str, how to open the file. | "Save the corpus to a text file in the\n original format.\n\n Arguments:\n ----------\n path : str, where to save the corpus.\n mode : str, how to open the file." | 46 | false | JonathanRaiman/pytreebank | to_file | 39,429 | |
LDU_FT/langloisjp/pysvcmetrics/time_methods | LDU_FT | [
"<BEGIN>\n## `timeit`",
"Time execution of function. Returns (res, seconds).",
" >>> res, timing = timeit(time.sleep, 1)\n<END>",
"<BEGIN>\n## `timing`",
"Log timing information",
" >>> client = StatsdClient()\n >>> client.timing('example.timing', 500)\n >>> client.timing(('example... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_methods API.
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 time_methods API.
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... | Patch obj so calls to given methods are timed
>>> class C(object):
... def m1(self):
... return 'ok'
...
... def m2(self, arg):
... return arg
...
>>> c = C()
>>> time_methods(c, ['m1', 'm2'])
>>> c.m1()
'ok'
>>> c.m2('ok')
'ok'
>>> c = C(... | "Patch obj so calls to given methods are timed\n\n >>> class C(object):\n ... def m1(self):\n ... return 'ok'\n ...\n ... def m2(self, arg):\n ... return arg\n ...\n >>> c = C()\n >>> time_methods(c, ['m1', 'm2'])\n >>> c.m1()\n 'ok'\n >>> c.m2('ok')\n 'ok'... | 40 | false | langloisjp/pysvcmetrics | time_methods | 39,430 | |
LDU_FT/DLR-RM/RAFCON/add_callback_to_shortcut_manager | LDU_FT | [
"<BEGIN>\n## `modify_origin`",
"Set both from_state and from_key at the same time to modify data flow origin",
" :param str from_state: State id of the origin state\n :param int from_key: Data port id of the origin port\n :raises exceptions.ValueError: If parameters have wrong types or the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback_to_shortcut_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_callback_to_shortcut_manager API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Helper function to add an callback for an action to the shortcut manager.
:param action: the action to add a shortcut for
:param callback: the callback if the action is executed
:return: | "Helper function to add an callback for an action to the shortcut manager.\n :param action: the action to add a shortcut for\n :param callback: the callback if the action is executed\n :return:" | 2,325 | true | DLR-RM/RAFCON | add_callback_to_shortcut_manager | 39,431 | |
LDU_FT/openego/ding0/graph_isolated_nodes | LDU_FT | [
"<BEGIN>\n## `print_upper_triangular_matrix`",
"Prints a CVRP data dict matrix",
" Arguments\n ---------\n matrix : dict\n Description",
" Notes\n -----\n It is assummed that the first row of matrix contains all needed headers.\n<END>",
"<BEGIN>\n## `print_upper_triangular_matrix_as... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_isolated_nodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the graph_isolated_nodes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Finds isolated nodes = nodes with no neighbors (degree zero)
Returns
-------
:any:`list` of :obj:`GridDing0`
List of nodes (Ding0 objects) | "Finds isolated nodes = nodes with no neighbors (degree zero)\n\n Returns\n -------\n :any:`list` of :obj:`GridDing0`\n List of nodes (Ding0 objects)" | 932 | false | openego/ding0 | graph_isolated_nodes | 39,432 | |
LDU_FT/barrust/mediawiki/page | LDU_FT | [
"<BEGIN>\n## `timeout`",
"Set request timeout in seconds (or fractions of a second)\n<END>",
"<BEGIN>\n## `language`",
"Set the language to use; attempts to change the API URL\n<END>",
"<BEGIN>\n## `login`",
"Login as specified user",
" Args:\n username (str): The username to l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the page API.
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 page API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Get MediaWiki page based on the provided title or pageid
Args:
title (str): Page title
pageid (int): MediaWiki page identifier
auto-suggest (bool): **True:** Allow page title auto-suggest
redirect (bool): **True:** Follow page redirects
... | "Get MediaWiki page based on the provided title or pageid\n\n Args:\n title (str): Page title\n pageid (int): MediaWiki page identifier\n auto-suggest (bool): **True:** Allow page title auto-suggest\n redirect (bool): **True:** Follow page redirects... | 107 | false | barrust/mediawiki | page | 39,433 | |
LDU_FT/sunlightlabs/name-cleaver/reverse_last_first | LDU_FT | [
"<BEGIN>\n## `extract_suffix`",
"Returns a tuple of (name, suffix), or (name, None) if no suffix could be found.\n As the method name indicates, the name is returned without the suffix.",
" Suffixes deemed to be degrees are discarded.\n<END>",
"<BEGIN>\n## `reverse_last_first`",
"Takes a name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reverse_last_first 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 reverse_last_first 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... | Takes a name that is in [last, first] format and returns it in a hopefully [first last] order.
Also extracts the suffix and puts it back on the end, in case it's embedded somewhere in the middle. | "Takes a name that is in [last, first] format and returns it in a hopefully [first last] order.\n Also extracts the suffix and puts it back on the end, in case it's embedded somewhere in the middle." | 18 | false | sunlightlabs/name-cleaver | reverse_last_first | 39,434 | |
LDU_FT/dddomodossola/remi/do | LDU_FT | [
"<BEGIN>\n## `add_coord`",
"Adds a coord to the polyline and creates another circle\n<END>",
"<BEGIN>\n## `set_stroke`",
"Sets the stroke properties.\r",
" Args:\r\n width (int): stroke width\r\n color (str): stroke color\n<END>",
"<BEGIN>\n## `add_arrow_coord`",
"Determine ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do API.
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 docu... | The callback and userdata gets stored, and if there is some javascript to add
the js code is appended as attribute for the event source | "The callback and userdata gets stored, and if there is some javascript to add\n the js code is appended as attribute for the event source" | 195 | false | dddomodossola/remi | do | 39,435 | |
LDU_FT/bioasp/ingranalyze/get_consistent_labelings | LDU_FT | [
"<BEGIN>\n## `readGraph`",
"input: string, name of a file containing a Bioquali-like graph description\n output: asp.TermSet, with atoms matching the contents of the input file",
" Parses a Bioquali-like graph description, and returns\n a TermSet object.\n Written using original Bioquali\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_consistent_labelings 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_consistent_labelings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | [consistent_labelings(instance,nmodels,exclude)] returns a list containing
[nmodels] TermSet objects representing consistent extensions of the system
described by the TermSet [instance]. The list [exclude] should contain TermSet objects
representing (maybe partial) solutions that are to be avoided. If [nmod... | "[consistent_labelings(instance,nmodels,exclude)] returns a list containing\n [nmodels] TermSet objects representing consistent extensions of the system\n described by the TermSet [instance]. The list [exclude] should contain TermSet objects\n representing (maybe partial) solutions that are to be avoided. If [... | 15 | false | bioasp/ingranalyze | get_consistent_labelings | 39,436 | |
LDU_FT/Kortemme-Lab/pull_into_place/cd | LDU_FT | [
"<BEGIN>\n## `make_command_table`",
"Return a nicely formatted table of all the PIP commands installed on this \n system to incorporate into the help text. The table will have two columns. \n The first will list the commands that comprise the main pipeline and the \n second will list all the other misc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cd API.
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 docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cd API.
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 docu... | Change the current working directory and update all the paths in the
workspace. This is useful for commands that have to be run from a
certain directory. | "Change the current working directory and update all the paths in the\n workspace. This is useful for commands that have to be run from a\n certain directory." | 75 | false | Kortemme-Lab/pull_into_place | cd | 39,437 | |
LDU_FT/kata198/AdvancedHTMLParser/getBlocksTags | LDU_FT | [
"<BEGIN>\n## `getRootNodes`",
"getRootNodes - Gets all objects at the \"root\" (first level; no parent). Use this if you may have multiple roots (not children of <html>)\n Use this method to get objects, for example, in an AJAX request where <html> may not be your root.",
" Note: I... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getBlocksTags API.
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 getBlocksTags API.
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... | getBlocksTags - Returns a list of tuples referencing the blocks which are direct children of this node, and the block is an AdvancedTag.
The tuples are ( block, blockIdx ) where "blockIdx" is the index of self.blocks wherein the tag resides.
@return list< tuple(block, blockIdx) > - A l... | "getBlocksTags - Returns a list of tuples referencing the blocks which are direct children of this node, and the block is an AdvancedTag.\n\n The tuples are ( block, blockIdx ) where \"blockIdx\" is the index of self.blocks wherein the tag resides.\n\n @return list< tuple(block, blockIdx) ... | 541 | false | kata198/AdvancedHTMLParser | getBlocksTags | 39,438 | |
LDU_FT/rochacbruno/flasgger/login | LDU_FT | [
"<BEGIN>\n## `get`",
"Colors API using schema\n This example is using marshmallow schemas\n<END>",
"<BEGIN>\n## `drop_id_validate`",
"Custom validation function which drops parameter '_id' if present\n in data\n<END>",
"<BEGIN>\n## `timestamping_validate`",
"Custom validation function which inse... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the login API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | User authenticate method.
---
description: Authenticate user with supplied credentials.
parameters:
- name: username
in: formData
type: string
required: true
- name: password
in: formData
type: string
required: true
responses:
200:
... | "User authenticate method.\n ---\n description: Authenticate user with supplied credentials.\n parameters:\n - name: username\n in: formData\n type: string\n required: true\n - name: password\n in: formData\n type: string\n required: true\n responses:\n ... | 71 | false | rochacbruno/flasgger | login | 39,439 | |
LDU_FT/jay-johnson/network-pipeline/process_tcp_frame | LDU_FT | [
"<BEGIN>\n## `publish_processed_network_packets`",
"# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_tcp_frame API.
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 process_tcp_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | process_tcp_frame
Convert a complex nested json dictionary
to a flattened dictionary and capture
all unique keys for table construction
:param id: key for this msg
:param msg: tcp frame for packet | "process_tcp_frame\n\n Convert a complex nested json dictionary\n to a flattened dictionary and capture\n all unique keys for table construction\n\n :param id: key for this msg\n :param msg: tcp frame for packet" | 140 | false | jay-johnson/network-pipeline | process_tcp_frame | 39,440 | |
LDU_FT/ThreatConnect-Inc/tcex/create_data_types | LDU_FT | [
"<BEGIN>\n## `_print_results`",
"Print the download results.",
" Args:\n file (str): The filename.\n status (str): The file download status.\n<END>",
"<BEGIN>\n## `_confirm_overwrite`",
"Confirm overwrite of template files.",
" Make sure the user would like to continue ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_data_types API.
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_data_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Map of standard playbook variable types to create method. | "Map of standard playbook variable types to create method." | 1,591 | true | ThreatConnect-Inc/tcex | create_data_types | 39,441 | |
LDU_FT/indico/indico-plugins/_convert_internal | LDU_FT | [
"<BEGIN>\n## `available_backends`",
"Lists the currently available backend types\n<END>",
"<BEGIN>\n## `initial_export`",
"Performs the initial data export for an agent\n<END>",
"<BEGIN>\n## `get_result`",
"Perform the call and return the graph data",
" :return: Encoded PNG graph data string to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_internal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _convert_internal API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Converts a single dictionary into converted dictionary or list of dictionaries into converted
list of dictionaries. Used while passing dictionaries to another converter. | "Converts a single dictionary into converted dictionary or list of dictionaries into converted\n list of dictionaries. Used while passing dictionaries to another converter." | 173 | false | indico/indico-plugins | _convert_internal | 39,442 | |
LDU_FT/CodeReclaimers/neat-python/feed_forward_layers | LDU_FT | [
"<BEGIN>\n## `eval_genome`",
"This function will be run in parallel by ParallelEvaluator. It takes two\n arguments (a single genome and the genome class configuration data) and\n should return one float (that genome's fitness).",
" Note that this function needs to be in module scope for multiprocessin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the feed_forward_layers 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 feed_forward_layers 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... | Collect the layers whose members can be evaluated in parallel in a feed-forward network.
:param inputs: list of the network input nodes
:param outputs: list of the output node identifiers
:param connections: list of (input, output) connections in the network.
Returns a list of layers, with each layer c... | "Collect the layers whose members can be evaluated in parallel in a feed-forward network.\n :param inputs: list of the network input nodes\n :param outputs: list of the output node identifiers\n :param connections: list of (input, output) connections in the network.\n\n Returns a list of layers, with each l... | 121 | false | CodeReclaimers/neat-python | feed_forward_layers | 39,443 | |
LDU_FT/matgrioni/betacode/beta_to_uni | LDU_FT | [
"<BEGIN>\n## `_create_unicode_map`",
"Create the inverse map from unicode to betacode.",
" Returns:\n The hash map to convert unicode characters to the beta code representation.\n<END>",
"<BEGIN>\n## `_create_conversion_trie`",
"Create the trie for betacode conversion.",
" Args:\n text: The be... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the beta_to_uni API.
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 beta_to_uni API.
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... | Converts the given text from betacode to unicode.
Args:
text: The beta code text to convert. All of this text must be betacode.
strict: Flag to allow for flexible diacritic order on input.
Returns:
The converted text. | "Converts the given text from betacode to unicode.\n\n Args:\n text: The beta code text to convert. All of this text must be betacode.\n strict: Flag to allow for flexible diacritic order on input.\n\n Returns:\n The converted text." | 19 | false | matgrioni/betacode | beta_to_uni | 39,444 | |
LDU_FT/genialis/resolwe/run_executor | LDU_FT | [
"<BEGIN>\n## `extend_settings`",
"Extend the settings the manager will serialize.",
" :param data_id: The :class:`~resolwe.flow.models.Data` object id\n being prepared for.\n :param files: The settings dictionary to be serialized. Keys are\n filenames, values are the objects ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_executor API.
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 run_executor API.
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... | Start the actual execution; instantiate the executor and run. | "Start the actual execution; instantiate the executor and run." | 627 | false | genialis/resolwe | run_executor | 39,445 | |
LDU_FT/foremast/foremast/promote_artifacts | LDU_FT | [
"<BEGIN>\n## `create_elb_dns`",
"Create dns entries in route53.",
" Args:\n regionspecific (bool): The DNS entry should have region on it\n Returns:\n str: Auto-generated DNS name for the Elastic Load Balancer.\n<END>",
"<BEGIN>\n## `create_failover_dns`",
"Create dns ent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the promote_artifacts API.
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 promote_artifacts API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Promote artifact version to dest.
Args:
promote_stage (string): Stage that is being promoted | "Promote artifact version to dest.\n\n Args:\n promote_stage (string): Stage that is being promoted" | 585 | false | foremast/foremast | promote_artifacts | 39,446 | |
LDU_FT/divio/django-filer/import_file | LDU_FT | [
"<BEGIN>\n## `get_deleted_objects`",
"Find all objects related to ``objs`` that should also be deleted. ``objs``\n must be a homogeneous iterable of objects (e.g. a QuerySet).\n Returns a nested list of strings suitable for display in the\n template with the ``unordered_list`` filter.\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_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 extra... | Create a File or an Image into the given folder | "Create a File or an Image into the given folder" | 80 | false | divio/django-filer | import_file | 39,447 | |
LDU_FT/atztogo/phonopy/get_frequencies | LDU_FT | [
"<BEGIN>\n## `_set_translations`",
"Set primitive translations in supercell",
" _trans_s\n Translations with respect to supercell basis vectors\n _trans_p\n Translations with respect to primitive cell basis vectors\n _N\n Number of the translations = det(sup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_frequencies API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_frequencies API.
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... | Calculate phonon frequencies at a given q-point
Parameters
----------
q: array_like
A q-vector.
shape=(3,), dtype='double'
Returns
-------
frequencies: ndarray
Phonon frequencies.
shape=(bands, ), dtype='double' | "Calculate phonon frequencies at a given q-point\n\n Parameters\n ----------\n q: array_like\n A q-vector.\n shape=(3,), dtype='double'\n\n Returns\n -------\n frequencies: ndarray\n Phonon frequencies.\n shape=(bands, ), dtype='doubl... | 417 | false | atztogo/phonopy | get_frequencies | 39,448 | |
LDU_FT/mrcagney/make_gtfs/build_stops | LDU_FT | [
"<BEGIN>\n## `make_gtfs`",
"Create a GTFS feed from the files in the directory SOURCE_PATH.\n See the project README for a description of the required source\n files.\n Save the feed to the file or directory TARGET_PATH.\n If the target path ends in '.zip', then write the feed as a zip\n archive.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_stops API.
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 build_stops API.
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... | Given a ProtoFeed, return a DataFrame representing ``stops.txt``.
If ``pfeed.stops`` is not ``None``, then return that.
Otherwise, require built shapes output by :func:`build_shapes`,
create one stop at the beginning (the first point) of each shape
and one at the end (the last point) of each shape,
... | "Given a ProtoFeed, return a DataFrame representing ``stops.txt``.\n If ``pfeed.stops`` is not ``None``, then return that.\n Otherwise, require built shapes output by :func:`build_shapes`,\n create one stop at the beginning (the first point) of each shape\n and one at the end (the last point) of each shape,... | 67 | false | mrcagney/make_gtfs | build_stops | 39,449 | |
LDU_FT/frascoweb/frasco/remove_yaml_frontmatter | LDU_FT | [
"<BEGIN>\n## `load_actions`",
"Each item can be an action name as a string or a dict. When using a dict,\n one key/item pair must be the action name and its options and the rest action\n decorator names and their options.\n Example:\n load_actions([\"login_required\", {\"flash\": {\"message\": \"h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_yaml_frontmatter 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 remove_yaml_frontmatter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | If there's one, remove the YAML front-matter from the source | "If there's one, remove the YAML front-matter from the source" | 80 | false | frascoweb/frasco | remove_yaml_frontmatter | 39,450 | |
LDU_FT/pydanny-archive/django-wysiwyg/get_settings | LDU_FT | [
"<BEGIN>\n## `get_settings`",
"Utility function to retrieve settings.py values with defaults\n<END>",
"<BEGIN>\n## `wysiwyg_setup`",
"Create the <style> and <script> tags needed to initialize the rich text editor.",
" Create a local django_wysiwyg/includes.html template if you don't want to use Yahoo's C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_settings API.
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... | Utility function to retrieve settings.py values with defaults | "Utility function to retrieve settings.py values with defaults" | 14 | false | pydanny-archive/django-wysiwyg | get_settings | 39,451 | |
LDU_FT/lucapinello/Haystack/scan | LDU_FT | [
"<BEGIN>\n## `sample_wr`",
"Chooses k random elements (with replacement) from a population\n<END>",
"<BEGIN>\n## `summary`",
"m.summary() -- Return a text string one-line summary of motif and its metrics\n<END>",
"<BEGIN>\n## `minimal_raw_seqs`",
"m.minimal_raw_seqs() -- Return minimal list of seqs that r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the scan API.
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 scan API.
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... | m.scan(seq, threshold = '', factor=0.7) -- Scan the sequence. Returns three lists:
matching sequences, endpoints, and scores. The value of
'factor' is multiplied by m.maxscore to get a match threshold
... | "m.scan(seq, threshold = '', factor=0.7) -- Scan the sequence. Returns three lists:\n matching sequences, endpoints, and scores. The value of \n 'factor' is multiplied by m.maxscore to get a match threshold\n ... | 87 | false | lucapinello/Haystack | scan | 39,452 | |
LDU_FT/MediaFire/mediafire-python-open-sdk/_upload_resumable_unit | LDU_FT | [
"<BEGIN>\n## `decode_resumable_upload_bitmap`",
"Decodes bitmap_node to hash of unit_id: is_uploaded",
" bitmap_node -- bitmap node of resumable_upload with\n 'count' number and 'words' containing array\n number_of_units -- number of units we are uploading to\n defi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _upload_resumable_unit 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 _upload_resumable_unit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Upload a single unit and return raw upload/resumable result
uu_info -- UploadUnitInfo instance | "Upload a single unit and return raw upload/resumable result\n\n uu_info -- UploadUnitInfo instance" | 145 | false | MediaFire/mediafire-python-open-sdk | _upload_resumable_unit | 39,453 | |
LDU_FT/ofek/bit/get_transactions | LDU_FT | [
"<BEGIN>\n## `currency_to_satoshi`",
"Converts a given amount of currency to the equivalent number of\n satoshi. The amount can be either an int, float, or string as long as\n it is a valid input to :py:class:`decimal.Decimal`.",
" :param amount: The quantity of currency.\n :param currency: One of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions API.
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_transactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Gets the ID of all transactions related to an address.
:param address: The address in question.
:type address: ``str``
:raises ConnectionError: If all API services fail.
:rtype: ``list`` of ``str`` | "Gets the ID of all transactions related to an address.\n\n :param address: The address in question.\n :type address: ``str``\n :raises ConnectionError: If all API services fail.\n :rtype: ``list`` of ``str``" | 71 | false | ofek/bit | get_transactions | 39,454 | |
LDU_FT/reorx/torext/handle_error | LDU_FT | [
"<BEGIN>\n## `format_request`",
"Override for better log format",
" Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | This method copies the code from pywsgi.WSGIHandler.handle_error,
change the write part to be a reflection of traceback and environ | "This method copies the code from pywsgi.WSGIHandler.handle_error,\n change the write part to be a reflection of traceback and environ" | 70 | false | reorx/torext | handle_error | 39,455 | |
LDU_FT/franciscogarate/pyliferisk/nEx | LDU_FT | [
"<BEGIN>\n## `qx`",
"qx: Returns the probability that a life aged x dies before 1 year\n With the convention: the true probability is qx/1000\n Args:\n mt: the mortality table\n x: the age as integer number.\n<END>",
"<BEGIN>\n## `lx`",
"lx : Returns the number of survivors at begi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nEx API.
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 nEx API.
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... | nEx : Returns the EPV of a pure endowment (deferred capital).
Pure endowment benefits are conditional on the survival of the policyholder. (v^n * npx) | "nEx : Returns the EPV of a pure endowment (deferred capital). \n Pure endowment benefits are conditional on the survival of the policyholder. (v^n * npx)" | 39 | false | franciscogarate/pyliferisk | nEx | 39,456 | |
LDU_FT/Gandi/gandi.cli/info | LDU_FT | [
"<BEGIN>\n## `mkpassword`",
"Generates a random ascii string - useful to generate authinfos",
" :param length: string wanted length\n :type length: ``int``",
" :param chars: character population,\n defaults to alphabet (lower & upper) + numbers\n :type chars: ``str``, ``list``, ``... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Display information about a virtual machine.
Resource can be a Hostname or an ID | "Display information about a virtual machine.\n\n Resource can be a Hostname or an ID" | 357 | false | Gandi/gandi.cli | info | 39,457 | |
LDU_FT/graphql-python/graphql-core-next/find_conflict | LDU_FT | [
"<BEGIN>\n## `uni_char_code`",
"Convert unicode characters to integers.",
" Converts four hexadecimal chars to the integer that the string represents.\n For example, uni_char_code('0','0','0','f') will return 15,\n and uni_char_code('0','0','f','f') returns 255.",
" Returns a negative number on er... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_conflict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_conflict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Find conflict.
Determines if there is a conflict between two particular fields, including comparing
their sub-fields. | "Find conflict.\n\n Determines if there is a conflict between two particular fields, including comparing\n their sub-fields." | 470 | false | graphql-python/graphql-core-next | find_conflict | 39,458 | |
LDU_FT/jf-parent/brome/resolve_selector_type | LDU_FT | [
"<BEGIN>\n## `validate_config`",
"Validate that the browser config contains all the needed config\n<END>",
"<BEGIN>\n## `send_keys`",
"wait_until_clickable = kwargs.get(\n 'wait_until_clickable',\n BROME_CONFIG['proxy_element']['wait_until_clickable']\n )",
" if wait_unti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_selector_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_selector_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Resolve the selector type
This make sure that all the selectors
provided are of the same type (in case of a list of selector) | "Resolve the selector type\n\n This make sure that all the selectors\n provided are of the same type (in case of a list of selector)" | 144 | false | jf-parent/brome | resolve_selector_type | 39,459 | |
LDU_FT/sryza/spark-timeseries/log_likelihood | LDU_FT | [
"<BEGIN>\n## `fit_model`",
"Fits an EWMA model to a time series. Uses the first point in the time series as a starting\n value. Uses sum squared error as an objective function to optimize to find smoothing parameter\n The model for EWMA is recursively defined as S_t = (1 - a) * X_t + a * S_{t-1}, where\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the log_likelihood API.
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 log_likelihood API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Returns the log likelihood of the parameters on the given time series.
Based on http://www.unc.edu/~jbhill/Bollerslev_GARCH_1986.pdf | "Returns the log likelihood of the parameters on the given time series.\n \n Based on http://www.unc.edu/~jbhill/Bollerslev_GARCH_1986.pdf" | 137 | false | sryza/spark-timeseries | log_likelihood | 39,460 | |
LDU_FT/proycon/flat/pub_view | LDU_FT | [
"<BEGIN>\n## `pub_view`",
"The initial view, does not provide the document content yet\n<END>",
"<BEGIN>\n## `checkversion`",
"Checks foliadocserve version, returns 1 if the document is newer than the library, -1 if it is older, 0 if it is equal\n<END>",
"<BEGIN>\n## `view`",
"The initial view, does not p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pub_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | The initial view, does not provide the document content yet | "The initial view, does not provide the document content yet" | 12 | false | proycon/flat | pub_view | 39,461 | |
LDU_FT/linkedin/pyexchange/get_occurrence | LDU_FT | [
"<BEGIN>\n## `add_attendees`",
"Adds new attendees to the event.",
" *attendees* can be a list of email addresses or :class:`ExchangeEventAttendee` objects.\n<END>",
"<BEGIN>\n## `remove_attendees`",
"Removes attendees from the event.",
" *attendees* can be a list of email addresses or :class:`Excha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_occurrence API.
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_occurrence API.
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... | Requests one or more calendar items from the store matching the master & index.
exchange_id is the id for the master event in the Exchange store.
format controls how much data you get back from Exchange. Full docs are here, but acceptible values
are IdOnly, Default, and AllProperties.
GetItem Doc:
... | "Requests one or more calendar items from the store matching the master & index.\n\n exchange_id is the id for the master event in the Exchange store.\n\n format controls how much data you get back from Exchange. Full docs are here, but acceptible values\n are IdOnly, Default, and AllProperties.\n\n GetItem... | 102 | false | linkedin/pyexchange | get_occurrence | 39,462 | |
LDU_FT/openstack/monasca-common/_send_broker_aware_request | 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 _send_broker_aware_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _send_broker_aware_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Group a list of request payloads by topic+partition and send them to
the leader broker for that partition using the supplied encode/decode
functions
Arguments:
payloads: list of object-like entities with a topic (str) and
partition (int) attribute; payloads with duplicate t... | "Group a list of request payloads by topic+partition and send them to\n the leader broker for that partition using the supplied encode/decode\n functions\n\n Arguments:\n\n payloads: list of object-like entities with a topic (str) and\n partition (int) attribute; payloads with dup... | 227 | false | openstack/monasca-common | _send_broker_aware_request | 39,463 | |
LDU_FT/rkargon/pixelsorter/vertical_random_walk | LDU_FT | [
"<BEGIN>\n## `hue`",
"Returns the saturation of a pixel.\n Gray pixels have saturation 0.\n :param p: A tuple of (R,G,B) values\n :return: A saturation value between 0 and 360\n<END>",
"<BEGIN>\n## `saturation`",
"Returns the saturation of a pixel, defined as the ratio of chroma to value.\n :param... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_random_walk 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 vertical_random_walk API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Generates random walks that start at the left side of the image and move towards the right
:param size: The size of the image
:return: An iterator of paths, each an iterator of (x,y) coordinates | "Generates random walks that start at the left side of the image and move towards the right\n :param size: The size of the image\n :return: An iterator of paths, each an iterator of (x,y) coordinates" | 79 | false | rkargon/pixelsorter | vertical_random_walk | 39,464 | |
LDU_FT/quasipedia/swaggery/check_params_types | LDU_FT | [
"<BEGIN>\n## `operations`",
"Decorator for marking Resource methods as HTTP operations.",
" This decorator does a number of different things:\n - It transfer onto itself docstring and annotations from the decorated\n method, so as to be \"transparent\" with regards to introspection.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_params_types 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_params_types 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... | Types in argument annotations must be instances, not classes. | "Types in argument annotations must be instances, not classes." | 67 | false | quasipedia/swaggery | check_params_types | 39,465 | |
LDU_FT/tundish/turberfield-dialogue/handle_property | LDU_FT | [
"<BEGIN>\n## `options`",
"Generate folders to best match metadata.",
" The results will be a single, perfectly matched folder, or the two nearest\n neighbours of an imperfect match.",
" :param dict data: metadata matching criteria.",
" This method is a generator. It yields\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_property API.
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 handle_property API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Handle a property event.
This function will set an attribute on an object if the event requires
it.
:param obj: A :py:class:`~turberfield.dialogue.model.Model.Property`
object.
:return: The supplied object. | "Handle a property event.\n\n This function will set an attribute on an object if the event requires\n it.\n\n :param obj: A :py:class:`~turberfield.dialogue.model.Model.Property`\n object.\n :return: The supplied object." | 63 | false | tundish/turberfield-dialogue | handle_property | 39,466 | |
LDU_FT/consbio/parserutils/get_element_attribute | LDU_FT | [
"<BEGIN>\n## `create_element_tree`",
"Creates an ElementTree from elem_or_name, updated it with text and attributes.\n If elem_or_name is None, a permanently empty ElementTree is returned.\n :param elem_or_name: an Element or the name of the root element tag\n :param text: optional text with which to upd... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_element_attribute 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_element_attribute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | :return: an attribute from the parsed element if it has the attribute,
otherwise the default value | ":return: an attribute from the parsed element if it has the attribute,\n otherwise the default value" | 127 | false | consbio/parserutils | get_element_attribute | 39,467 | |
LDU_FT/getpelican/pelican-plugins/filetime_from_git | LDU_FT | [
"<BEGIN>\n## `get_gif`",
"Returns dict with gif informations from the API.\n<END>",
"<BEGIN>\n## `main`",
"Doing the regex parsing and running the create_html function.\n<END>",
"<BEGIN>\n## `filetime_from_git`",
"Update modification and creation times from git\n<END>",
"<BEGIN>\n## `update_hash_from_st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filetime_from_git API.
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 filetime_from_git API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Update modification and creation times from git | "Update modification and creation times from git" | 247 | false | getpelican/pelican-plugins | filetime_from_git | 39,468 | |
LDU_FT/willseward/django-custom-field/get_custom_fields | LDU_FT | [
"<BEGIN>\n## `get_custom_fields`",
"Return a list of custom fields for this model\n<END>",
"<BEGIN>\n## `get_model_custom_fields`",
"Return a list of custom fields for this model, directly callable\n without an instance. Use like Foo.get_model_custom_fields(Foo)\n<END>",
"<BEGIN>\n## `get_custom_fiel... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_custom_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_custom_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... | Return a list of custom fields for this model | "Return a list of custom fields for this model" | 10 | false | willseward/django-custom-field | get_custom_fields | 39,469 | |
LDU_FT/lappis-unb/salic-ml/read_csv | LDU_FT | [
"<BEGIN>\n## `approved_funds`",
"Verifica se o valor total de um projeto é um\n outlier em relação\n aos projetos do mesmo seguimento cultural\n Dataframes: planilha_orcamentaria\n<END>",
"<BEGIN>\n## `complexidade`",
"Returns a value that indicates project health, currently FinancialIndicator\n i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_csv API.
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 read_csv API.
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... | Returns a DataFrame from a .csv file stored in /data/raw/ | "Returns a DataFrame from a .csv file stored in /data/raw/" | 102 | false | lappis-unb/salic-ml | read_csv | 39,470 | |
LDU_FT/driftx/Telephus/execute_prepared_cql3_query | LDU_FT | [
"<BEGIN>\n## `set_keyspace`",
"switch all connections to another keyspace\n<END>",
"<BEGIN>\n## `retry`",
"Retry this factory's connection. It is assumed that a previous\n connection was attempted and failed- either before or after a\n successful connection.\n<END>",
"<BEGIN>\n## `prep_connect... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_prepared_cql3_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execute_prepared_cql3_query API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Parameters:
- itemId
- values
- consistency | "Parameters:\n - itemId\n - values\n - consistency" | 132 | false | driftx/Telephus | execute_prepared_cql3_query | 39,471 | |
LDU_FT/bwhite/hadoopy/_check_guts_toc_mtime | LDU_FT | [
"<BEGIN>\n## `__add_options`",
"Add the `Makespec` options to a option-parser instance or a\n option group.\n<END>",
"<BEGIN>\n## `exec_python`",
"Wrap running python script in a subprocess.",
" Return stdout of the invoked command.\n<END>",
"<BEGIN>\n## `exec_python_rc`",
"Wrap running python scr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_guts_toc_mtime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_guts_toc_mtime API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | rebuild is required if mtimes of files listed in old toc are newer
than ast_build
if pyc=1, check for .py files, too | "rebuild is required if mtimes of files listed in old toc are newer\n than ast_build\n\n if pyc=1, check for .py files, too" | 610 | false | bwhite/hadoopy | _check_guts_toc_mtime | 39,472 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.