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/HazyResearch/fonduer/candidate_subclass | LDU_FT | [
"<BEGIN>\n## `construct_stable_id`",
"Contruct a stable ID for a Context given its parent and its character\n offsets relative to the parent.\n<END>",
"<BEGIN>\n## `split_stable_id`",
"Split stable id, returning:",
" * Document (root) stable ID\n * Context polymorphic type\n * Charac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the candidate_subclass 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 candidate_subclass 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... | Creates and returns a Candidate subclass with provided argument names,
which are Context type. Creates the table in DB if does not exist yet.
Import using:
.. code-block:: python
from fonduer.candidates.models import candidate_subclass
:param class_name: The name of the class, should be "cam... | "Creates and returns a Candidate subclass with provided argument names,\n which are Context type. Creates the table in DB if does not exist yet.\n\n Import using:\n\n .. code-block:: python\n\n from fonduer.candidates.models import candidate_subclass\n\n :param class_name: The name of the class, shou... | 540 | false | HazyResearch/fonduer | candidate_subclass | 33,873 | |
LDU_FT/xapple/fasta/add_seq | LDU_FT | [
"<BEGIN>\n## `parse_primers`",
"This functions starts with self because it's \n meant as an extension to the FASTA class.\n<END>",
"<BEGIN>\n## `guess_phred_format`",
"Guess the PHRED score format. The gold standard is the first one, aka\n the one called \"Sanger\". Sanger encoding is exactly equiva... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_seq API.
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 add_seq API.
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... | Use this method to add a SeqRecord object to this fasta. | "Use this method to add a SeqRecord object to this fasta." | 48 | false | xapple/fasta | add_seq | 33,874 | |
LDU_FT/hannes-brt/cudnn-python-wrappers/cudnnGetStream | LDU_FT | [
"<BEGIN>\n## `cudnnCreate`",
"Initialize cuDNN.",
" Initializes cuDNN and returns a handle to the cuDNN context.",
" Returns\n -------",
" handle : cudnnHandle\n cuDNN context\n<END>",
"<BEGIN>\n## `cudnnDestroy`",
"Release cuDNN resources.",
" Release hardware resources used by ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cudnnGetStream API.
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 cudnnGetStream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Get current cuDNN library stream.
Parameters
----------
handle : int
cuDNN context.
Returns
-------
id : int
Stream ID. | "Get current cuDNN library stream.\n\n Parameters\n ----------\n handle : int\n cuDNN context.\n\n Returns\n -------\n id : int\n Stream ID." | 108 | false | hannes-brt/cudnn-python-wrappers | cudnnGetStream | 33,875 | |
LDU_FT/anchore/anchore/sync | LDU_FT | [
"<BEGIN>\n## `get_current_user_info`",
"Return the metadata about the current user as supplied by the anchore.io service. Includes permissions and tier access.",
" :return: Dict of user metadata\n<END>",
"<BEGIN>\n## `sync`",
"Sync (download) latest policies from the Anchore.io service.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Sync (download) latest data for all subscribed feeds from the Anchore service. | "Sync (download) latest data for all subscribed feeds from the Anchore service." | 151 | false | anchore/anchore | sync | 33,876 | |
LDU_FT/signalfx/signalfx-python/get_aws_unique_id | LDU_FT | [
"<BEGIN>\n## `gauge`",
"Adds gauge with dimensions to the global pyformance registry\n<END>",
"<BEGIN>\n## `count_calls_with_dims`",
"Decorator to track the number of times a function is called\n with with dimensions.\n<END>",
"<BEGIN>\n## `meter_calls_with_dims`",
"Decorator to track the rate at which... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aws_unique_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_aws_unique_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Determine the current AWS unique ID
Args:
timeout (int): How long to wait for a response from AWS metadata IP | "Determine the current AWS unique ID\n\n Args:\n timeout (int): How long to wait for a response from AWS metadata IP" | 139 | false | signalfx/signalfx-python | get_aws_unique_id | 33,877 | |
LDU_FT/samluescher/django-media-tree/find | LDU_FT | [
"<BEGIN>\n## `i18n_javascript`",
"Displays the i18n JavaScript that the Django admin requires.",
" This takes into account the USE_I18N setting. If it's set to False, the\n generated JavaScript will be leaner and faster.\n<END>",
"<BEGIN>\n## `file_links`",
"Turns a (optionally nested) list of... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find API.
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 find API.
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... | Iterating all icon dirs, try to find a file called like the node's
extension / mime subtype / mime type (in that order).
For instance, for an MP3 file ("audio/mpeg"), this would look for:
"mp3.png" / "audio/mpeg.png" / "audio.png" | "Iterating all icon dirs, try to find a file called like the node's\n extension / mime subtype / mime type (in that order).\n For instance, for an MP3 file (\"audio/mpeg\"), this would look for:\n \"mp3.png\" / \"audio/mpeg.png\" / \"audio.png\"" | 96 | false | samluescher/django-media-tree | find | 33,878 | |
LDU_FT/rbarrois/tdparser/parse | LDU_FT | [
"<BEGIN>\n## `_forward`",
"Advance to the next token.",
" Internal methods, updates:\n - self.current_token\n - self.current_pos",
" Raises:\n MissingTokensError: when trying to advance beyond the end of the\n token flow.\n<END>",
"<BEGIN>\n## `consume`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Parse the flow of tokens, and return their evaluation. | "Parse the flow of tokens, and return their evaluation." | 38 | false | rbarrois/tdparser | parse | 33,879 | |
LDU_FT/opengridcc/opengrid/_do_analysis_no_cross_validation | LDU_FT | [
"<BEGIN>\n## `add`",
"Add the path of a data set to the list of available sets",
" NOTE: a data set is assumed to be a pickled\n and gzip compressed Pandas DataFrame",
" Parameters\n ----------\n path : str\n<END>",
"<BEGIN>\n## `unpack`",
"Unpacks a data set to a Pandas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _do_analysis_no_cross_validation 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 _do_analysis_no_cross_validation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its c... | Find the best model (fit) and create self.list_of_fits and self.fit | "Find the best model (fit) and create self.list_of_fits and self.fit" | 84 | false | opengridcc/opengrid | _do_analysis_no_cross_validation | 33,880 | |
LDU_FT/sirfoga/pyhal/fix_raw_path | LDU_FT | [
"<BEGIN>\n## `write_dicts_to_csv`",
"Saves .csv file with posts data",
" :param dicts: Dictionaries with same values\n<END>",
"<BEGIN>\n## `write_matrix_to_csv`",
"Saves .csv file with data",
" :param headers: column names\n :param data: Data\n<END>",
"<BEGIN>\n## `write_dicts_to_js... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_raw_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_raw_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 extr... | Prettify name of path
:param path: path to fix
:return: Good name for path | "Prettify name of path\n\n :param path: path to fix\n :return: Good name for path" | 543 | false | sirfoga/pyhal | fix_raw_path | 33,881 | |
LDU_FT/OnroerendErfgoed/language-tags/subtags | LDU_FT | [
"<BEGIN>\n## `types`",
"Get the types of a subtag string (excludes redundant and grandfathered).",
" :param str subtag: subtag.\n :return: list of types. The return list can be empty.\n<END>",
"<BEGIN>\n## `subtags`",
"Get a list of existing :class:`language_tags.Subtag.Subtag` objects given t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subtags API.
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 subtags API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Get the :class:`language_tags.Subtag.Subtag` objects of the tag.
:return: list of :class:`language_tags.Subtag.Subtag` objects that are part of the tag.
The return list can be empty. | "Get the :class:`language_tags.Subtag.Subtag` objects of the tag.\n\n :return: list of :class:`language_tags.Subtag.Subtag` objects that are part of the tag.\n The return list can be empty." | 50 | false | OnroerendErfgoed/language-tags | subtags | 33,882 | |
LDU_FT/viniciuschiele/flask-io/select_parser | LDU_FT | [
"<BEGIN>\n## `render`",
"Serializes a Python object into a byte array containing a JSON document.\n :param data: A Python object.\n :param mimetype: The mimetype to render the data.\n :return: A byte array containing a JSON document.\n<END>",
"<BEGIN>\n## `__get_indent`",
"Gets the indent... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the select_parser API.
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 select_parser API.
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... | Selects the appropriated parser which matches to the request's content type.
:param request: The HTTP request.
:param parsers: The lists of parsers.
:return: The parser selected or none. | "Selects the appropriated parser which matches to the request's content type.\n :param request: The HTTP request.\n :param parsers: The lists of parsers.\n :return: The parser selected or none." | 77 | false | viniciuschiele/flask-io | select_parser | 33,883 | |
LDU_FT/denisenkom/pytds/to_pydatetime | LDU_FT | [
"<BEGIN>\n## `validate_host`",
"Validates host name against certificate",
" @param cert: Certificate returned by host\n @param name: Actual host name used for connection\n @return: Returns true if host name matches certificate\n<END>",
"<BEGIN>\n## `revert_to_clear`",
"Reverts connection back to no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_pydatetime API.
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 to_pydatetime API.
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... | Converts datetimeoffset object into Python's datetime.datetime object
@return: time zone aware datetime.datetime | "Converts datetimeoffset object into Python's datetime.datetime object\n @return: time zone aware datetime.datetime" | 210 | false | denisenkom/pytds | to_pydatetime | 33,884 | |
LDU_FT/askedrelic/libgreader/post | LDU_FT | [
"<BEGIN>\n## `get`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `post`",
"Convenience method for requesting to google with proper cookies/params.\n<END>",
"<BEGIN>\n## `_getAuth`",
"Main step in authorizing with Reader.\n Sends request to Google C... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Convenience method for requesting to google with proper cookies/params. | "Convenience method for requesting to google with proper cookies/params." | 47 | false | askedrelic/libgreader | post | 33,885 | |
LDU_FT/MakerReduxCorp/PLOD/lt | LDU_FT | [
"<BEGIN>\n## `dropKey`",
"Drop an attribute/element/key-value pair from all the dictionaries.",
" If the dictionary key does not exist in a particular dictionary, then\n that dictionary is left unchanged.",
" Side effect: if the key is a number and it matches a list (interpreted\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the lt API.
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 lt API.
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... | Return entries where the key's value is less (<).
Example of use:
>>> test = [
... {"name": "Jim", "age": 18, "income": 93000, "wigs": 68 },
... {"name": "Larry", "age": 18, "wigs": [3, 2, 9]},
... {"name": "Joe", "age": 20, "income": 15000, ... | "Return entries where the key's value is less (<).\n\n Example of use:\n\n >>> test = [\n ... {\"name\": \"Jim\", \"age\": 18, \"income\": 93000, \"wigs\": 68 },\n ... {\"name\": \"Larry\", \"age\": 18, \"wigs\": [3, 2, 9]},\n ... {\"name\": \"Joe\", ... | 199 | false | MakerReduxCorp/PLOD | lt | 33,886 | |
LDU_FT/PySimpleGUI/PySimpleGUI/EasyProgressMeter | LDU_FT | [
"<BEGIN>\n## `read_mail`",
"Reads late emails from IMAP server and displays them in the Window\n :param window: window to display emails in\n :return:\n<END>",
"<BEGIN>\n## `runCommand`",
"run shell command",
"\t@param cmd: command to execute\n\t@param timeout: timeout for command execution",
"\t@re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the EasyProgressMeter API.
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 EasyProgressMeter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | A ONE-LINE progress meter. Add to your code where ever you need a meter. No need for a second
function call before your loop. You've got enough code to write!
:param title: Title will be shown on the window
:param current_value: Current count of your items
:param max_value: Max value your count will eve... | "A ONE-LINE progress meter. Add to your code where ever you need a meter. No need for a second\n function call before your loop. You've got enough code to write!\n :param title: Title will be shown on the window\n :param current_value: Current count of your items\n :param max_value: Max value your count wil... | 110 | false | PySimpleGUI/PySimpleGUI | EasyProgressMeter | 33,887 | |
LDU_FT/psd-tools/psd-tools/open | LDU_FT | [
"<BEGIN>\n## `open`",
"Open the smart object as binary IO.",
" :param external_dir: Path to the directory of the external file.",
" Example::",
" with layer.smart_object.open() as f:\n data = f.read()\n<END>",
"<BEGIN>\n## `data`",
"Embedded file content, or empty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Open the smart object as binary IO.
:param external_dir: Path to the directory of the external file.
Example::
with layer.smart_object.open() as f:
data = f.read() | "Open the smart object as binary IO.\n\n :param external_dir: Path to the directory of the external file.\n\n Example::\n\n with layer.smart_object.open() as f:\n data = f.read()" | 173 | false | psd-tools/psd-tools | open | 33,888 | |
LDU_FT/pbrod/numdifftools/_poor_convergence | LDU_FT | [
"<BEGIN>\n## `approx_fprime`",
"Gradient of function, or Jacobian if function fun returns 1d array",
" Parameters\n ----------\n x : array\n parameters at which the derivative is evaluated\n fun : function\n `fun(*((x,)+args), **kwargs)` returning either one value or 1d array\n epsi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _poor_convergence API.
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 _poor_convergence API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Test for poor convergence based on three function evaluations.
This test evaluates the function at the three points and returns false if
the relative error is greater than 1e-3. | "Test for poor convergence based on three function evaluations.\n\n This test evaluates the function at the three points and returns false if\n the relative error is greater than 1e-3." | 107 | false | pbrod/numdifftools | _poor_convergence | 33,889 | |
LDU_FT/boundlessgeo/lib-qgis-commons/sslErrors | LDU_FT | [
"<BEGIN>\n## `get_oauth_authcfg`",
"Check if the given authcfg_id (or the default) exists, and if it's valid\n OAuth2, return the configuration or None\n<END>",
"<BEGIN>\n## `setup_oauth`",
"Setup oauth configuration to access the BCS API,\n return authcfg_id on success, None on failure\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sslErrors API.
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 sslErrors API.
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... | Handle SSL errors, logging them if debug is on and ignoring them
if disable_ssl_certificate_validation is set. | "Handle SSL errors, logging them if debug is on and ignoring them\n if disable_ssl_certificate_validation is set." | 72 | false | boundlessgeo/lib-qgis-commons | sslErrors | 33,890 | |
LDU_FT/PierreRust/apigpio/store_script | LDU_FT | [
"<BEGIN>\n## `u2i`",
"Converts a 32 bit unsigned number to signed.",
" uint32:= an unsigned 32 bit number",
" ...\n print(u2i(4294967272))\n -24\n print(u2i(37))\n 37\n ...\n<END>",
"<BEGIN>\n## `_u2i`",
"Converts a 32 bit unsigned number to signed. If the number\n is negative it ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_script API.
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 store_script API.
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... | Store a script for later execution.
script:= the script text as a series of bytes.
Returns a >=0 script id if OK.
...
sid = pi.store_script(
b'tag 0 w 22 1 mils 100 w 22 0 mils 100 dcr p0 jp 0')
... | "Store a script for later execution.\n\n script:= the script text as a series of bytes.\n\n Returns a >=0 script id if OK.\n\n ...\n sid = pi.store_script(\n b'tag 0 w 22 1 mils 100 w 22 0 mils 100 dcr p0 jp 0')\n ..." | 102 | false | PierreRust/apigpio | store_script | 33,891 | |
LDU_FT/henzk/django-productline/mv_data_dir | LDU_FT | [
"<BEGIN>\n## `requires_product_environment`",
"task decorator that makes sure that the product environment\n of django_productline is activated:\n -context is bound\n -features have been composed\n<END>",
"<BEGIN>\n## `set_site`",
"This method is part of the prepare_data helper.\n Sets the site. D... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mv_data_dir API.
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 mv_data_dir API.
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... | Move data_dir to {target} location, refineable in case data_dir is a mounted volume or object storage and needs special treatments
:return: | "Move data_dir to {target} location, refineable in case data_dir is a mounted volume or object storage and needs special treatments\n :return:" | 57 | false | henzk/django-productline | mv_data_dir | 33,892 | |
LDU_FT/stanfordnlp/stanza/get_embeddings | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_embeddings API.
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_embeddings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Retrieves the embeddings for the vocabulary.
:param rand: Random initialization function for out-of-vocabulary words. Defaults to `np.random.uniform(-0.1, 0.1, size=shape)`.
:param dtype: Type of the matrix.
:return: embeddings corresponding to the vocab instance.
NOTE: this function w... | "Retrieves the embeddings for the vocabulary.\n\n :param rand: Random initialization function for out-of-vocabulary words. Defaults to `np.random.uniform(-0.1, 0.1, size=shape)`.\n :param dtype: Type of the matrix.\n :return: embeddings corresponding to the vocab instance.\n\n NOTE: this fun... | 309 | false | stanfordnlp/stanza | get_embeddings | 33,893 | |
LDU_FT/juiceinc/recipe/parse_condition | LDU_FT | [
"<BEGIN>\n## `cauldron_extras`",
"Yield extra tuples containing a field name and a callable that takes\n a row\n<END>",
"<BEGIN>\n## `make_column_suffixes`",
"Make sure we have the right column suffixes. These will be appended\n to `id` when generating the query.\n<END>",
"<BEGIN>\n## `parse_c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_condition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_condition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Create a SQLAlchemy clause from a condition. | "Create a SQLAlchemy clause from a condition." | 129 | false | juiceinc/recipe | parse_condition | 33,894 | |
LDU_FT/justquick/django-activity-stream/action_object | LDU_FT | [
"<BEGIN>\n## `timesince`",
"Shortcut for the ``django.utils.timesince.timesince`` function of the\n current timestamp.\n<END>",
"<BEGIN>\n## `respond`",
"Responds to the request with the given response code.\n If ``next`` is in the form, it will redirect instead.\n<END>",
"<BEGIN>\n## `follow_unfo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the action_object API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Stream of most recent actions where obj is the action_object.
Keyword arguments will be passed to Action.objects.filter | "Stream of most recent actions where obj is the action_object.\n Keyword arguments will be passed to Action.objects.filter" | 105 | false | justquick/django-activity-stream | action_object | 33,895 | |
LDU_FT/sprockets/sprockets-dynamodb/query | LDU_FT | [
"<BEGIN>\n## `_on_dynamodb_exception`",
"Dynamically handle DynamoDB exceptions, returning HTTP error\n responses.",
" :param exceptions.DynamoDBException error:\n<END>",
"<BEGIN>\n## `marshall`",
"Marshall a `dict` into something DynamoDB likes.",
" :param dict values: The values to mars... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the query API.
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 query API.
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... | A `Query`_ operation uses the primary key of a table or a secondary
index to directly access items from that table or index.
:param str table_name: The name of the table containing the requested
items.
:param bool consistent_read: Determines the read consistency model: If
... | "A `Query`_ operation uses the primary key of a table or a secondary\n index to directly access items from that table or index.\n\n :param str table_name: The name of the table containing the requested\n items.\n :param bool consistent_read: Determines the read consistency model: If\n ... | 86 | false | sprockets/sprockets-dynamodb | query | 33,896 | |
LDU_FT/diging/tethne/distance | LDU_FT | [
"<BEGIN>\n## `to_dxgmml`",
"Writes a :class:`.GraphCollection` to\n `dynamic XGMML. <https://code.google.com/p/dynnetwork/wiki/DynamicXGMML>`_.",
" Dynamic XGMML is a schema for describing dynamic networks in Cytoscape 3.0.\n This method assumes that `Graph` indices are orderable points in time\n (e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distance API.
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 distance API.
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... | Generate a network of :class:`.Paper`\s based on a distance metric from
`scipy.spatial.distance
<http://docs.scipy.org/doc/scipy/reference/spatial.distance.html>`_
using :ref:`sparse-feature-vector`\s over the dimensions in ``model``.
The only two methods that will not work in this context are ``hammin... | "Generate a network of :class:`.Paper`\\s based on a distance metric from\n `scipy.spatial.distance\n <http://docs.scipy.org/doc/scipy/reference/spatial.distance.html>`_\n using :ref:`sparse-feature-vector`\\s over the dimensions in ``model``.\n\n The only two methods that will not work in this context are ... | 497 | false | diging/tethne | distance | 33,897 | |
LDU_FT/goshuirc/irc/istring | LDU_FT | [
"<BEGIN>\n## `sort_prefixes`",
"Returns a sorted list of prefixes.",
" Args:\n orig (str): Unsorted list of prefixes.\n prefixes (str): List of prefixes, from highest-priv to lowest.\n<END>",
"<BEGIN>\n## `parse_modes`",
"Return a modelist.",
" Args:\n params (list of str): Para... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the istring API.
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 istring API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a string that uses this server's IRC casemapping.
This string's equality with other strings, ``lower()``, and ``upper()`` takes this
server's casemapping into account. This should be used for things such as nicks and
channel names, where comparing strings using the correct casemapping ca... | "Return a string that uses this server's IRC casemapping.\n\n This string's equality with other strings, ``lower()``, and ``upper()`` takes this\n server's casemapping into account. This should be used for things such as nicks and\n channel names, where comparing strings using the correct casemappi... | 97 | false | goshuirc/irc | istring | 33,898 | |
LDU_FT/wlwang41/cb/_split_source_page | LDU_FT | [
"<BEGIN>\n## `_split_source_page`",
"Split the source file texts by triple-dashed lines.",
" shit code\n<END>",
"<BEGIN>\n## `copytree`",
"Copy from source directory to destination\n<END>",
"<BEGIN>\n## `emptytree`",
"Delete all the files and dirs under specified directory\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_source_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_source_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.
Th... | Split the source file texts by triple-dashed lines.
shit code | "Split the source file texts by triple-dashed lines.\n\n shit code" | 18 | false | wlwang41/cb | _split_source_page | 33,899 | |
LDU_FT/trezor/python-trezor/b58encode | LDU_FT | [
"<BEGIN>\n## `encode_pin`",
"Transform correct PIN according to the displayed matrix.\n<END>",
"<BEGIN>\n## `address_from_public_key`",
"Returns the base32-encoded version of pk_bytes (G...)\n<END>",
"<BEGIN>\n## `parse_transaction_bytes`",
"Parses base64data into a map with the following keys:\n t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the b58encode API.
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 b58encode API.
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... | encode v, which is a string of bytes, to base58. | "encode v, which is a string of bytes, to base58." | 52 | false | trezor/python-trezor | b58encode | 33,900 | |
LDU_FT/mrooney/mintapi/get_transactions_csv | LDU_FT | [
"<BEGIN>\n## `close`",
"Logs out and quits the current web driver/selenium session.\n<END>",
"<BEGIN>\n## `request_and_check`",
"Performs a request, and checks that the status is OK, and that the\n content-type matches expectations.",
" Args:\n url: URL to request\n method: e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_transactions_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.
... | Returns the raw CSV transaction data as downloaded from Mint.
If include_investment == True, also includes transactions that Mint
classifies as investment-related. You may find that the investment
transaction data is not sufficiently detailed to actually be useful,
however. | "Returns the raw CSV transaction data as downloaded from Mint.\n\n If include_investment == True, also includes transactions that Mint\n classifies as investment-related. You may find that the investment\n transaction data is not sufficiently detailed to actually be useful,\n however." | 18 | false | mrooney/mintapi | get_transactions_csv | 33,901 | |
LDU_FT/inveniosoftware/invenio-communities/reject_record | LDU_FT | [
"<BEGIN>\n## `format_item`",
"Render a template to a string with the provided item in context.\n<END>",
"<BEGIN>\n## `index`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\n## `generic_item`",
"Index page with uploader and list of existing depositions.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reject_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reject_record API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Reject a record for inclusion in the community.
:param record: Record object. | "Reject a record for inclusion in the community.\n\n :param record: Record object." | 89 | false | inveniosoftware/invenio-communities | reject_record | 33,902 | |
LDU_FT/idlesign/django-dev/op_list_venvs | LDU_FT | [
"<BEGIN>\n## `configure_logging`",
"Switches on logging at a given level.",
" :param verbosity_lvl:\n :param format:\n<END>",
"<BEGIN>\n## `_run_shell_command`",
"Runs the given shell command.",
" :param command:\n :return: bool Status\n<END>",
"<BEGIN>\n## `run_manage_comman... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the op_list_venvs API.
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 op_list_venvs API.
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... | Prints out and returns a list of known virtual environments.
:rtype: list
:return: list of virtual environments | "Prints out and returns a list of known virtual environments.\n\n :rtype: list\n :return: list of virtual environments" | 45 | false | idlesign/django-dev | op_list_venvs | 33,903 | |
LDU_FT/fermiPy/fermipy/get_batch_job_args | LDU_FT | [
"<BEGIN>\n## `build_srcdict`",
"Build a dictionary that maps from source name to the value of a source property",
" Parameters\n ----------",
" gta : `fermipy.GTAnalysis`\n The analysis object",
" prop : str\n The name of the property we are mapping",
" Returns\n -------",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_batch_job_args 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 get_batch_job_args 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... | Get the correct set of batch jobs arguments.
Parameters
----------
job_time : int
Expected max length of the job, in seconds.
This is used to select the batch queue and set the
job_check_sleep parameter that sets how often
we check for job completion.
Returns
-----... | "Get the correct set of batch jobs arguments.\n\n Parameters\n ----------\n\n job_time : int\n Expected max length of the job, in seconds.\n This is used to select the batch queue and set the\n job_check_sleep parameter that sets how often\n we check for job completion.\n\n Retur... | 2,597 | true | fermiPy/fermipy | get_batch_job_args | 33,904 | |
LDU_FT/saulpw/visidata/git_iter | LDU_FT | [
"<BEGIN>\n## `expand_cols_deep`",
"expand all visible columns of containers to the given depth (0=fully)\n<END>",
"<BEGIN>\n## `load_pyobj`",
"Return Sheet object of appropriate type for given sources in `args`.\n<END>",
"<BEGIN>\n## `getPublicAttrs`",
"Return all public attributes (not methods or `_`-pre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the git_iter API.
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 git_iter API.
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... | Generator of chunks of stdout from given git command, delineated by sep character | "Generator of chunks of stdout from given git command, delineated by sep character" | 249 | false | saulpw/visidata | git_iter | 33,905 | |
LDU_FT/scidash/sciunit/get_remote | LDU_FT | [
"<BEGIN>\n## `mean`",
"Compute a total score for each model over all the tests.",
" Uses the `norm_score` attribute, since otherwise direct comparison\n across different kinds of scores would not be possible.\n<END>",
"<BEGIN>\n## `to_html`",
"Extend Pandas built in `to_html` method for render... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_remote API.
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_remote API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Get a git remote object for this instance. | "Get a git remote object for this instance." | 128 | false | scidash/sciunit | get_remote | 33,906 | |
LDU_FT/mozilla-b2g/fxos-certsuite/set_permission | LDU_FT | [
"<BEGIN>\n## `to_ints`",
"Turn version string into a numeric representation for easy comparison.\n Undeclared point versions are assumed to be 0.\n :param version: a NSS version string\n :return: array of [major, minor, point, pointpoint, tag value]\n<END>",
"<BEGIN>\n## `first_older_than_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_permission API.
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 set_permission API.
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... | Set a permission for the specified app
Value should be 'deny' or 'allow' | "Set a permission for the specified app\n Value should be 'deny' or 'allow'" | 58 | false | mozilla-b2g/fxos-certsuite | set_permission | 33,907 | |
LDU_FT/bskinn/opan/inertia_tensor | 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 inertia_tensor API.
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 inertia_tensor API.
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... | Generate the 3x3 moment-of-inertia tensor.
Compute the 3x3 moment-of-inertia tensor for the
provided geometry and atomic masses. Always recenters the
geometry to the center of mass as the first step.
Reference for inertia tensor: [Kro92]_, Eq. (2.26)
.. todo:: Replace cite eventually with link t... | "Generate the 3x3 moment-of-inertia tensor.\n\n Compute the 3x3 moment-of-inertia tensor for the\n provided geometry and atomic masses. Always recenters the\n geometry to the center of mass as the first step.\n\n Reference for inertia tensor: [Kro92]_, Eq. (2.26)\n\n .. todo:: Replace cite eventually wi... | 445 | false | bskinn/opan | inertia_tensor | 33,908 | |
LDU_FT/peakwinter/python-nginx/as_dict | LDU_FT | [
"<BEGIN>\n## `loads`",
"Load an nginx configuration from a provided string.",
" :param str data: nginx configuration\n :param bool conf: Load object(s) into a Conf object?\n<END>",
"<BEGIN>\n## `dumpf`",
"Write an nginx configuration to file.",
" :param obj obj: nginx object (Conf, Server, Contai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_dict API.
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 as_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return all child objects in nested dict. | "Return all child objects in nested dict." | 23 | false | peakwinter/python-nginx | as_dict | 33,909 | |
LDU_FT/justquick/django-activity-stream/any | LDU_FT | [
"<BEGIN>\n## `timesince`",
"Shortcut for the ``django.utils.timesince.timesince`` function of the\n current timestamp.\n<END>",
"<BEGIN>\n## `respond`",
"Responds to the request with the given response code.\n If ``next`` is in the form, it will redirect instead.\n<END>",
"<BEGIN>\n## `follow_unfo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the any API.
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 any API.
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... | Stream of most recent actions where obj is the actor OR target OR action_object. | "Stream of most recent actions where obj is the actor OR target OR action_object." | 105 | false | justquick/django-activity-stream | any | 33,910 | |
LDU_FT/ipfs/py-ipfs-api/config | LDU_FT | [
"<BEGIN>\n## `parse`",
"Returns a Python object decoded from the bytes of this encoding.",
" Raises\n ------\n ~ipfsapi.exceptions.DecodingError",
" Parameters\n ----------\n raw : bytes\n Data to be parsed",
" Returns\n -------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Controls configuration variables.
.. code-block:: python
>>> c.config("Addresses.Gateway")
{'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8080'}
>>> c.config("Addresses.Gateway", "/ip4/127.0.0.1/tcp/8081")
{'Key': 'Addresses.Gateway', 'Value': '/ip4/1... | "Controls configuration variables.\n\n .. code-block:: python\n\n >>> c.config(\"Addresses.Gateway\")\n {'Key': 'Addresses.Gateway', 'Value': '/ip4/127.0.0.1/tcp/8080'}\n >>> c.config(\"Addresses.Gateway\", \"/ip4/127.0.0.1/tcp/8081\")\n {'Key': 'Addresses.Gateway', 'V... | 499 | false | ipfs/py-ipfs-api | config | 33,911 | |
LDU_FT/hellock/icrawler/set_file_idx_offset | LDU_FT | [
"<BEGIN>\n## `to_dict`",
"convert detailed proxy info into a dict",
" Returns:\n dict: A dict with four keys: ``addr``, ``protocol``,\n ``weight`` and ``last_checked``\n<END>",
"<BEGIN>\n## `proxy_num`",
"Get the number of proxies in the pool",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_file_idx_offset 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 set_file_idx_offset 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... | Set offset of file index.
Args:
file_idx_offset: It can be either an integer or 'auto'. If set
to an integer, the filename will start from
``file_idx_offset`` + 1. If set to ``'auto'``, the filename
will start from existing max file index plus 1. | "Set offset of file index.\n\n Args:\n file_idx_offset: It can be either an integer or 'auto'. If set\n to an integer, the filename will start from\n ``file_idx_offset`` + 1. If set to ``'auto'``, the filename\n will start from existing max file index plus ... | 105 | false | hellock/icrawler | set_file_idx_offset | 33,912 | |
LDU_FT/brbsix/subnuker/prep_files | LDU_FT | [
"<BEGIN>\n## `getch`",
"Request a single character input from the user.\n<END>",
"<BEGIN>\n## `ismatch`",
"Test whether text contains string or matches regex.\n<END>",
"<BEGIN>\n## `parse`",
"Parse command-line arguments. Arguments may consist of any\n combination of directories, files, and options.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prep_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prep_files API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Parses `paths` (which may consist of files and/or directories).
Removes duplicates, sorts, and returns verified srt files. | "Parses `paths` (which may consist of files and/or directories).\n Removes duplicates, sorts, and returns verified srt files." | 36 | false | brbsix/subnuker | prep_files | 33,913 | |
LDU_FT/ResilienceTesting/gremlinsdk-python/setup_failure | LDU_FT | [
"<BEGIN>\n## `add_rule`",
"@param args keyword argument list, consisting of:",
" source: <source service name>,\n dest: <destination service name>,\n messagetype: <request|response|publish|subscribe|stream>",
" headerpattern: <regex to match against the value of the X-Gremlin-ID tr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_failure API.
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 setup_failure API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Add a given failure scenario
@param scenario: string 'delayrequests' or 'crash' | "Add a given failure scenario\n @param scenario: string 'delayrequests' or 'crash'" | 31 | false | ResilienceTesting/gremlinsdk-python | setup_failure | 33,914 | |
LDU_FT/thoughtworksarts/EmoPy/random_transform | 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 random_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the random_transform API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Randomly augment a single image tensor.
# Arguments
sample: 3D or 4D tensor, single sample.
seed: random seed.
# Returns
A randomly transformed version of the input (same shape). | "Randomly augment a single image tensor.\n\n # Arguments\n sample: 3D or 4D tensor, single sample.\n seed: random seed.\n\n # Returns\n A randomly transformed version of the input (same shape)." | 53 | false | thoughtworksarts/EmoPy | random_transform | 33,915 | |
LDU_FT/stephen-bunn/file-config/available | LDU_FT | [
"<BEGIN>\n## `on_yaml_imported`",
"The `pyyaml <https://pypi.org/project/pyyaml/>`_ import hook.",
" :param module yaml: The ``yaml`` module\n<END>",
"<BEGIN>\n## `on_yaml_dumps`",
"The `pyyaml <https://pypi.org/project/pyyaml/>`_ dumps method.",
" :param module yaml: The ``yaml`` module\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the available API.
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 available API.
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... | True if any of the supported modules from ``packages`` is available for use.
:return: True if any modules from ``packages`` exist
:rtype: bool | "True if any of the supported modules from ``packages`` is available for use.\n\n :return: True if any modules from ``packages`` exist\n :rtype: bool" | 215 | false | stephen-bunn/file-config | available | 33,916 | |
LDU_FT/benley/butcher/resolve | LDU_FT | [
"<BEGIN>\n## `_metahash`",
"Checksum hash of all the inputs to this rule.",
" Output is invalid until collect_srcs and collect_deps have been run.",
" In theory, if this hash doesn't change, the outputs won't change\n either, which makes it useful for caching.\n<END>",
"<BEGIN>\n## `col... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve API.
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 resolve API.
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... | Just print the result of parsing a target string. | "Just print the result of parsing a target string." | 118 | false | benley/butcher | resolve | 33,917 | |
LDU_FT/lltk/lltk/_load_language_or_die | LDU_FT | [
"<BEGIN>\n## `pos`",
"Tries to decide about the part of speech.\n<END>",
"<BEGIN>\n## `articles`",
"Tries to scrape the correct articles for singular and plural from uitmuntend.nl.\n<END>",
"<BEGIN>\n## `plural`",
"Tries to scrape the plural version from uitmuntend.nl.\n<END>",
"<BEGIN>\n## `warning`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_language_or_die 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 _load_language_or_die API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Decorator used to load a custom method for a given language. | "Decorator used to load a custom method for a given language." | 80 | false | lltk/lltk | _load_language_or_die | 33,918 | |
LDU_FT/geronimp/graftM/write | LDU_FT | [
"<BEGIN>\n## `_write_consensus_strings`",
"Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).",
" Parameters\n -----... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Write a taxonomy to an open stream out in GG format. Code calling this
function must open and close the io object. | "Write a taxonomy to an open stream out in GG format. Code calling this\n function must open and close the io object." | 334 | false | geronimp/graftM | write | 33,919 | |
LDU_FT/goldhand/django-nupages/process_request | LDU_FT | [
"<BEGIN>\n## `process_request`",
"checks if the host domain is one of the site objects\n and sets request.site_id\n<END>",
"<BEGIN>\n## `get_queryset`",
"If MultiTenantMiddleware is used, filter queryset by request.site_id\n<END>",
"<BEGIN>\n## `get_context_data`",
"Adds a 'base_template' attribute... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | checks if the host domain is one of the site objects
and sets request.site_id | "checks if the host domain is one of the site objects\n and sets request.site_id" | 12 | false | goldhand/django-nupages | process_request | 33,920 | |
LDU_FT/kamikaze/webdav/list | LDU_FT | [
"<BEGIN>\n## `listdir`",
"Returns list of nested files and directories for local directory by path",
" :param directory: absolute or relative path to local directory\n :return: list nested of file or directory names\n<END>",
"<BEGIN>\n## `get_options`",
"Extract options for specified option type from ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the list API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Returns list of nested files and directories for remote WebDAV directory by path.
More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND
:param remote_path: path to remote directory.
:return: list of nested file or directory names. | "Returns list of nested files and directories for remote WebDAV directory by path.\n More information you can find by link http://webdav.org/specs/rfc4918.html#METHOD_PROPFIND\n\n :param remote_path: path to remote directory.\n :return: list of nested file or directory names." | 120 | false | kamikaze/webdav | list | 33,921 | |
LDU_FT/liip/taxi/convert_to_4 | LDU_FT | [
"<BEGIN>\n## `round_to_quarter`",
"Return the duration between `start_time` and `end_time` :class:`datetime.time` objects, rounded to 15 minutes.\n<END>",
"<BEGIN>\n## `_timesheets_callback`",
"Call a method on all the timesheets, aggregate the return values in a\n list and return it.\n<END>",
"<BEGI... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_to_4 API.
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 convert_to_4 API.
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... | Convert a pre-4.0 configuration file to a 4.0 configuration file. | "Convert a pre-4.0 configuration file to a 4.0 configuration file." | 131 | false | liip/taxi | convert_to_4 | 33,922 | |
LDU_FT/thriftrw/thriftrw-python/resolve_const_spec | LDU_FT | [
"<BEGIN>\n## `add_include`",
"Adds a module as an included module.",
" :param name:\n Name under which the included module should be exposed in the\n current module.\n :param module_spec:\n ModuleSpec of the included module.\n<END>",
"<BEGIN>\n## `link`",
"Link... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the resolve_const_spec 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 resolve_const_spec 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... | Finds and links the ConstSpec with the given name. | "Finds and links the ConstSpec with the given name." | 135 | false | thriftrw/thriftrw-python | resolve_const_spec | 33,923 | |
LDU_FT/ahtn/python-easyhid/open | LDU_FT | [
"<BEGIN>\n## `_hid_enumerate`",
"Enumerates all the hid devices for VID:PID. Returns a list of `HIDDevice`\n objects. If vid is 0, then match any vendor id. Similarly, if pid is 0,\n match any product id. If both are zero, enumerate all HID devices.\n<END>",
"<BEGIN>\n## `open`",
"Open the HID device f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the open API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Open the HID device for reading and writing. | "Open the HID device for reading and writing." | 31 | false | ahtn/python-easyhid | open | 33,924 | |
LDU_FT/bigchaindb/bigchaindb-driver/retrieve | LDU_FT | [
"<BEGIN>\n## `info`",
"Retrieves information of the node being connected to via the\n root endpoint ``'/'``.",
" Args:\n headers (dict): Optional headers to pass to the request.",
" Returns:\n dict: Details of the node that this instance is connected\n to.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retrieve API.
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 retrieve API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Retrieves the transaction with the given id.
Args:
txid (str): Id of the transaction to retrieve.
headers (dict): Optional headers to pass to the request.
Returns:
dict: The transaction with the given id. | "Retrieves the transaction with the given id.\n\n Args:\n txid (str): Id of the transaction to retrieve.\n headers (dict): Optional headers to pass to the request.\n\n Returns:\n dict: The transaction with the given id." | 169 | false | bigchaindb/bigchaindb-driver | retrieve | 33,925 | |
LDU_FT/ask/redish/range_by_score | LDU_FT | [
"<BEGIN>\n## `save`",
"Save this entry.",
" If the entry does not have an :attr:`id`, a new id will be assigned,\n and the :attr:`id` attribute set accordingly.",
" Pre-save processing of the fields saved can be done by\n overriding the :meth:`prepare_save` method.",
" Add... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the range_by_score API.
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 range_by_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Return all the elements with score >= min and score <= max
(a range query) from the sorted set. | "Return all the elements with score >= min and score <= max\n (a range query) from the sorted set." | 88 | false | ask/redish | range_by_score | 33,926 | |
LDU_FT/brandon-rhodes/logging_tree/tree | LDU_FT | [
"<BEGIN>\n## `build_description`",
"Return a multi-line string describing a `logging_tree.nodes.Node`.",
" If no `node` argument is provided, then the entire tree of currently\n active `logging` loggers is printed out.\n<END>",
"<BEGIN>\n## `_describe`",
"Generate lines describing the given `node` tup... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tree API.
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 tree API.
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 a tree of tuples representing the logger layout.
Each tuple looks like ``('logger-name', <Logger>, [...])`` where the
third element is a list of zero or more child tuples that share the
same layout. | "Return a tree of tuples representing the logger layout.\n\n Each tuple looks like ``('logger-name', <Logger>, [...])`` where the\n third element is a list of zero or more child tuples that share the\n same layout." | 13 | false | brandon-rhodes/logging_tree | tree | 33,927 | |
LDU_FT/jslang/responsys/merge_table_records | LDU_FT | [
"<BEGIN>\n## `call`",
"Calls the service method defined with the arguments provided\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the Responsys soap service",
" Uses the credentials passed to the client init to login and setup the session id returned.\n Returns True on successful connection, ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_table_records 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 merge_table_records 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... | Responsys.mergeTableRecords call
Accepts:
InteractObject table
RecordData record_data
list match_column_names
Returns a MergeResult | "Responsys.mergeTableRecords call\n\n Accepts:\n InteractObject table\n RecordData record_data\n list match_column_names\n\n Returns a MergeResult" | 74 | false | jslang/responsys | merge_table_records | 33,928 | |
LDU_FT/vmonaco/pohmm/normalize | LDU_FT | [
"<BEGIN>\n## `fit`",
"Fit the classifier with labels y and observations X\n<END>",
"<BEGIN>\n## `fit_df`",
"Fit the classifier with labels y and DataFrames dfs\n<END>",
"<BEGIN>\n## `score`",
"Compute the log probability under the model.\n<END>",
"<BEGIN>\n## `score_events`",
"Compute the log probabil... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
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 normalize API.
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... | Normalize the input array so that it sums to 1.
Parameters
----------
A: array, shape (n_samples, n_features)
Non-normalized input data.
axis: int
Dimension along which normalization is performed.
Returns
-------
normalized_A: array, shape (n_samples, n_features)
A ... | "Normalize the input array so that it sums to 1.\n\n Parameters\n ----------\n A: array, shape (n_samples, n_features)\n Non-normalized input data.\n axis: int\n Dimension along which normalization is performed.\n\n Returns\n -------\n normalized_A: array, shape (n_samples, n_features... | 33 | false | vmonaco/pohmm | normalize | 33,929 | |
LDU_FT/Genida/dependenpy/split_limits_heads | LDU_FT | [
"<BEGIN>\n## `cast`",
"Cast a set of keys and an array to a Matrix object.\n<END>",
"<BEGIN>\n## `connect_to`",
"Connect this vertex to another one.",
" Args:\n vertex (Vertex): vertex to connect to.\n weight (int): weight of the edge.",
" Returns:\n Edge: th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the split_limits_heads 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 split_limits_heads 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... | Return first parts of dot-separated strings, and rest of strings.
Returns:
(list of str, list of str): the heads and rest of the strings. | "Return first parts of dot-separated strings, and rest of strings.\n\n Returns:\n (list of str, list of str): the heads and rest of the strings." | 130 | false | Genida/dependenpy | split_limits_heads | 33,930 | |
LDU_FT/spotify/gordon-gcp/_call_validators | LDU_FT | [
"<BEGIN>\n## `validate`",
"Validate a message given a schema.",
" Args:\n message (dict): Loaded JSON of pulled message from Google\n PubSub.\n schema_name (str): Name of schema to validate ``message``\n against. ``schema_name`` will be used to look up\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _call_validators API.
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 _call_validators API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Actually run all the validations.
Returns:
list(str): Error messages from the validators. | "Actually run all the validations.\n\n Returns:\n list(str): Error messages from the validators." | 72 | false | spotify/gordon-gcp | _call_validators | 33,931 | |
LDU_FT/redhat-cip/python-dciclient/file_upload | LDU_FT | [
"<BEGIN>\n## `list`",
"list(context, verbose)",
" List all tags.",
" >>> dcictl tag-list",
" :param boolean verbose: Display verbose output\n<END>",
"<BEGIN>\n## `create`",
"create(context, name)",
" Create a tag.",
" >>> dcictl tag-create [OPTIONS]",
" :param string name: Name o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_upload API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_upload API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | file_upload(context, id, path)
Upload a file in a component
>>> dcictl component-file-upload [OPTIONS]
:param string id: ID of the component to attach file [required]
:param string path: Path to the file to upload [required] | "file_upload(context, id, path)\n\n Upload a file in a component\n\n >>> dcictl component-file-upload [OPTIONS]\n\n :param string id: ID of the component to attach file [required]\n :param string path: Path to the file to upload [required]" | 310 | false | redhat-cip/python-dciclient | file_upload | 33,932 | |
LDU_FT/Robpol86/sphinxcontrib-versioning/push | LDU_FT | [
"<BEGIN>\n## `setup_logging`",
"Configure console logging. Info and below go to stdout, others go to stderr.",
" :param int verbose: Verbosity level. > 0 print debug statements. > 1 passed to sphinx-build.\n :param bool colors: Print color text in non-verbose mode.\n :param str name: Which logger name ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the push API.
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 push API.
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... | Build locally and then push to remote branch.
First the build sub command is invoked which takes care of building all versions of your documentation in a
temporary directory. If that succeeds then all built documents will be pushed to a remote branch.
REL_SOURCE is the path to the docs directory relative ... | "Build locally and then push to remote branch.\n\n First the build sub command is invoked which takes care of building all versions of your documentation in a\n temporary directory. If that succeeds then all built documents will be pushed to a remote branch.\n\n REL_SOURCE is the path to the docs directory rel... | 172 | false | Robpol86/sphinxcontrib-versioning | push | 33,933 | |
LDU_FT/saulpw/visidata/moveVisibleCol | LDU_FT | [
"<BEGIN>\n## `expand_cols_deep`",
"expand all visible columns of containers to the given depth (0=fully)\n<END>",
"<BEGIN>\n## `load_pyobj`",
"Return Sheet object of appropriate type for given sources in `args`.\n<END>",
"<BEGIN>\n## `getPublicAttrs`",
"Return all public attributes (not methods or `_`-pre... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the moveVisibleCol API.
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 moveVisibleCol API.
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... | Move visible column to another visible index in sheet. | "Move visible column to another visible index in sheet." | 249 | false | saulpw/visidata | moveVisibleCol | 33,934 | |
LDU_FT/evhub/coconut/check_len_in | LDU_FT | [
"<BEGIN>\n## `single_import`",
"Generate import statements from a fully qualified import and the name to bind it to.\n<END>",
"<BEGIN>\n## `universal_import`",
"Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>",
"<BEGIN>\n## `bind`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_len_in API.
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 check_len_in API.
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... | Checks that the length of item is in range(min_len, max_len+1). | "Checks that the length of item is in range(min_len, max_len+1)." | 219 | false | evhub/coconut | check_len_in | 33,935 | |
LDU_FT/jpscaletti/solution/save | LDU_FT | [
"<BEGIN>\n## `as_select`",
"Render the field as a `<select>` element.",
" :param **kwargs:\n Named paremeters used to generate the HTML attributes of each item.\n It follows the same rules as `get_html_attrs`\n<END>",
"<BEGIN>\n## `_clean_data`",
"This overwrite is neccesary for... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save API.
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 save API.
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... | Except for `filesto`, all of these parameters are optional, so only
bother setting the ones relevant to *this upload*.
filesto
: A `werkzeug.FileUploader`.
upload_to
: Relative path to where to upload
secret
: If True, instead of the original filename, a ... | "Except for `filesto`, all of these parameters are optional, so only\n bother setting the ones relevant to *this upload*.\n\n filesto\n : A `werkzeug.FileUploader`.\n\n upload_to\n : Relative path to where to upload\n\n secret\n : If True, instead of the original f... | 57 | false | jpscaletti/solution | save | 33,936 | |
LDU_FT/Rockhopper-Technologies/enlighten/update_from | LDU_FT | [
"<BEGIN>\n## `_check_bool`",
"Used as an error handler for Windows calls\n Gets last error if call is not successful\n<END>",
"<BEGIN>\n## `get_csbi`",
"Returns a CONSOLE_SCREEN_BUFFER_INFO structure for the given console or stdout\n<END>",
"<BEGIN>\n## `enable_vt_mode`",
"Enables virtual terminal proc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_from API.
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... | Args:
source(:py:class:`SubCounter`): :py:class:`SubCounter` or :py:class:`Counter`
to increment from
incr(int): Amount to increment ``count`` (Default: 1)
force(bool): Force refresh even if ``min_delta`` has not been reached
Move a value to this counter from... | "Args:\n source(:py:class:`SubCounter`): :py:class:`SubCounter` or :py:class:`Counter`\n to increment from\n incr(int): Amount to increment ``count`` (Default: 1)\n force(bool): Force refresh even if ``min_delta`` has not been reached\n\n Move a value to this count... | 104 | false | Rockhopper-Technologies/enlighten | update_from | 33,937 | |
LDU_FT/tilde-lab/tilde/assign_parser | LDU_FT | [
"<BEGIN>\n## `wrap_cell`",
"Cell wrappers\n for customizing the GUI data table",
" TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>",
"<BEGIN>\n## `meminfo`",
"Get the amount of memory and swap, Mebibytes\n<END>",
"<BEGIN>\n## `serial_number`",
"Get the serial number. Require... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the assign_parser API.
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 assign_parser API.
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... | Restricts parsing
**name** is a name of the parser class
NB: this is the PUBLIC method
@procedure | "Restricts parsing\n **name** is a name of the parser class\n NB: this is the PUBLIC method\n @procedure" | 68 | false | tilde-lab/tilde | assign_parser | 33,938 | |
LDU_FT/tompollard/tableone/dip_and_closest_unimodal_from_cdf | LDU_FT | [
"<BEGIN>\n## `_generate_remark_str`",
"Generate a series of remarks that the user should consider\n when interpreting the summary statistics.\n<END>",
"<BEGIN>\n## `_detect_categorical_columns`",
"Detect categorical columns if they are not specified.",
" Parameters\n ----------\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dip_and_closest_unimodal_from_cdf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dip_and_closest_unimodal_from_cdf API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Dip computed as distance between empirical distribution function (EDF) and
cumulative distribution function for the unimodal distribution with
smallest such distance. The optimal unimodal distribution is found by
the algorithm presented in
Hartigan (1985): Computation of the dip sta... | "Dip computed as distance between empirical distribution function (EDF) and\n cumulative distribution function for the unimodal distribution with\n smallest such distance. The optimal unimodal distribution is found by\n the algorithm presented in\n\n Hartigan (1985): Computation of the d... | 49 | false | tompollard/tableone | dip_and_closest_unimodal_from_cdf | 33,939 | |
LDU_FT/hasgeek/coaster/namespace_from_url | LDU_FT | [
"<BEGIN>\n## `init_app`",
"Enables logging for an app using :class:`LocalVarFormatter`. Requires the\n app to be configured and checks for the following configuration parameters.\n All are optional:",
" * ``LOGFILE``: Name of the file to log to (default ``error.log``)\n * ``ADMINS``: List of email a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the namespace_from_url 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 namespace_from_url 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... | Construct a dotted namespace string from a URL. | "Construct a dotted namespace string from a URL." | 344 | false | hasgeek/coaster | namespace_from_url | 33,940 | |
LDU_FT/dpursehouse/pygerrit2/post | LDU_FT | [
"<BEGIN>\n## `_decode_response`",
"Strip off Gerrit's magic prefix and decode a response.",
" :returns:\n Decoded JSON content as a dict, or raw text if content could not be\n decoded as JSON.",
" :raises:\n requests.HTTPError if the response contains an HTTP error status code.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the post API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Send HTTP POST to the endpoint.
:arg str endpoint: The endpoint to send to.
:returns:
JSON decoded result.
:raises:
requests.RequestException on timeout or connection error. | "Send HTTP POST to the endpoint.\n\n :arg str endpoint: The endpoint to send to.\n\n :returns:\n JSON decoded result.\n\n :raises:\n requests.RequestException on timeout or connection error." | 22 | false | dpursehouse/pygerrit2 | post | 33,941 | |
LDU_FT/ISA-tools/biopy-isatab/_parse_study | LDU_FT | [
"<BEGIN>\n## `parse`",
"Entry point to parse an ISA-Tab directory.\n isatab_ref can point to a directory of ISA-Tab data, in which case we\n search for the investigator file, or be a reference to the high level\n investigation file.\n<END>",
"<BEGIN>\n## `_parse_region`",
"Parse a section of an ISA-T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_study API.
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 _parse_study API.
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... | Parse study or assay row oriented file around the supplied base node. | "Parse study or assay row oriented file around the supplied base node." | 24 | false | ISA-tools/biopy-isatab | _parse_study | 33,942 | |
LDU_FT/PyFilesystem/pyfilesystem2/match_any | LDU_FT | [
"<BEGIN>\n## `install`",
"Install an opener.",
" Arguments:\n opener (`Opener`): an `Opener` instance, or a callable that\n returns an opener instance.",
" Note:\n May be used as a class decorator. For example::\n registry = Registry()\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the match_any API.
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 match_any API.
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... | Test if a name matches any of a list of patterns.
Will return `True` if ``patterns`` is an empty list.
Arguments:
patterns (list): A list of wildcard pattern, e.g ``["*.py",
"*.pyc"]``
name (str): A filename.
Returns:
bool: `True` if the name matches at least one of th... | "Test if a name matches any of a list of patterns.\n\n Will return `True` if ``patterns`` is an empty list.\n\n Arguments:\n patterns (list): A list of wildcard pattern, e.g ``[\"*.py\",\n \"*.pyc\"]``\n name (str): A filename.\n\n Returns:\n bool: `True` if the name matches at ... | 320 | false | PyFilesystem/pyfilesystem2 | match_any | 33,943 | |
LDU_FT/tipsi/aiozk/render | LDU_FT | [
"<BEGIN>\n## `deserialize`",
"Deserializes the given raw bytes into an instance.",
" Since this is a subclass of ``Part`` but a top-level one (i.e. no other\n subclass of ``Part`` would have a ``Response`` as a part) this merely\n has to parse the raw bytes and discard the resulting offset.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render API.
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 render API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Returns the ``struct`` format and list of the size and value.
The format is derived from the size primitive and the length of the
resulting encoded value (e.g. the format for a string of 'foo' ends
up as 'h3s'.
.. note ::
The value is expected to be string-able (wrapped in ``... | "Returns the ``struct`` format and list of the size and value.\n\n The format is derived from the size primitive and the length of the\n resulting encoded value (e.g. the format for a string of 'foo' ends\n up as 'h3s'.\n\n .. note ::\n The value is expected to be string-able (wrapp... | 38 | false | tipsi/aiozk | render | 33,944 | |
LDU_FT/openspending/babbage/_physical_column | LDU_FT | [
"<BEGIN>\n## `count_results`",
"Get the count of records matching the query.\n<END>",
"<BEGIN>\n## `generate_results`",
"Generate the resulting records for this query, applying pagination.\n Values will be returned by their reference.\n<END>",
"<BEGIN>\n## `apply`",
"Sort on a set of field specificatio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _physical_column API.
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 _physical_column API.
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 the SQLAlchemy Column object matching a given, possibly
qualified, column name (i.e.: 'table.column'). If no table is named,
the fact table is assumed. | "Return the SQLAlchemy Column object matching a given, possibly\n qualified, column name (i.e.: 'table.column'). If no table is named,\n the fact table is assumed." | 66 | false | openspending/babbage | _physical_column | 33,945 | |
LDU_FT/xoolive/traffic/simplify | LDU_FT | [
"<BEGIN>\n## `closest_point_of_approach`",
"Computes a CPA dataframe for all pairs of trajectories candidates for\n being separated by less than lateral_separation in vertical_separation.",
" In order to be computed efficiently, the method needs the following\n parameters:",
" - projection: a firs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the simplify API.
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 simplify API.
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... | Simplifies a trajectory with Douglas-Peucker algorithm.
The method uses latitude and longitude, projects the trajectory to a
conformal projection and applies the algorithm. By default, a 2D version
is called, unless you pass a column name for altitude (z parameter). You
may scale the z-... | "Simplifies a trajectory with Douglas-Peucker algorithm.\n\n The method uses latitude and longitude, projects the trajectory to a\n conformal projection and applies the algorithm. By default, a 2D version\n is called, unless you pass a column name for altitude (z parameter). You\n may scale ... | 147 | false | xoolive/traffic | simplify | 33,946 | |
LDU_FT/globality-corp/microcosm/merge_partition | LDU_FT | [
"<BEGIN>\n## `get_root_path`",
"Attempt to compute a root path for a (hopefully importable) name.",
" Based in part on Flask's `root_path` calculation. See:",
" https://github.com/mitsuhiko/flask/blob/master/flask/helpers.py#L777\n<END>",
"<BEGIN>\n## `zip_dicts`",
"Modified zip through ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge_partition API.
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 merge_partition API.
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... | Merge a value into a partition for a key path. | "Merge a value into a partition for a key path." | 68 | false | globality-corp/microcosm | merge_partition | 33,947 | |
LDU_FT/vpelletier/pprofile/stop | LDU_FT | [
"<BEGIN>\n## `_iterOutFiles`",
"Yields path, data, mimetype for each file involved on or produced by\n profiling.\n<END>",
"<BEGIN>\n## `asMIMEString`",
"Return a mime-multipart representation of:\n - callgrind profiling statistics (cachegrind.out.pprofile)\n - any SQL query issued via ZM... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stop API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Request thread to stop.
Does not wait for actual termination (use join() method). | "Request thread to stop.\n Does not wait for actual termination (use join() method)." | 32 | false | vpelletier/pprofile | stop | 33,948 | |
LDU_FT/binux/pyspider/sync_fetch | LDU_FT | [
"<BEGIN>\n## `get_encoding`",
"Get encoding from request headers or page head.\n<END>",
"<BEGIN>\n## `encoding`",
"encoding of Response.content.",
" if Response.encoding is None, encoding will be guessed\n by header or content or chardet if available.\n<END>",
"<BEGIN>\n## `text`",
"Conten... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sync_fetch API.
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 sync_fetch API.
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... | Synchronization fetch, usually used in xmlrpc thread | "Synchronization fetch, usually used in xmlrpc thread" | 126 | false | binux/pyspider | sync_fetch | 33,949 | |
LDU_FT/mishbahr/django-connected/get_request_token | LDU_FT | [
"<BEGIN>\n## `get_request_token`",
"Fetch the OAuth request token. Only required for OAuth 1.0.\n<END>",
"<BEGIN>\n## `get_redirect_args`",
"Get request parameters for redirect url.\n<END>",
"<BEGIN>\n## `parse_raw_token`",
"Parse token and secret from raw token response.\n<END>",
"<BEGIN>\n## `get_acce... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_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... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_request_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... | Fetch the OAuth request token. Only required for OAuth 1.0. | "Fetch the OAuth request token. Only required for OAuth 1.0." | 24 | false | mishbahr/django-connected | get_request_token | 33,950 | |
LDU_FT/nickpandolfi/Cyther/purge_project | LDU_FT | [
"<BEGIN>\n## `get_content`",
"Finds the 'content' tag from a 'pattern' in the provided 'string'\n<END>",
"<BEGIN>\n## `extract`",
"Used to extract a given regex pattern from a string, given several options\n<END>",
"<BEGIN>\n## `extractRuntime`",
"Used to find the correct static lib name to pass to gcc\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the purge_project API.
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 purge_project API.
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... | Purge a directory of anything cyther related | "Purge a directory of anything cyther related" | 131 | false | nickpandolfi/Cyther | purge_project | 33,951 | |
LDU_FT/foremast/foremast/create_autoscaling_policy | 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 create_autoscaling_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_autoscaling_policy API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Create Scaling Policy for app in environment | "Create Scaling Policy for app in environment" | 585 | false | foremast/foremast | create_autoscaling_policy | 33,952 | |
LDU_FT/vsoch/helpme/record_asciinema | 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 record_asciinema API.
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 record_asciinema API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | record an asciinema from the user session, saving the file to
a temporary file and showing the user so if he/she needs to do it
again, the file can be provided. The flow of events below makes
the following checks:
1. The user confirms it is ok to record
2. The rec... | "record an asciinema from the user session, saving the file to\n a temporary file and showing the user so if he/she needs to do it\n again, the file can be provided. The flow of events below makes\n the following checks:\n\n 1. The user confirms it is ok to record\n 2. ... | 121 | false | vsoch/helpme | record_asciinema | 33,953 | |
LDU_FT/gpoulter/fablib/tagversion | LDU_FT | [
"<BEGIN>\n## `default_roles`",
"Decorate task with these roles by default, but override with -R, -H\n<END>",
"<BEGIN>\n## `chown`",
"User sudo to set user and group ownership\n<END>",
"<BEGIN>\n## `chput`",
"Put file and set user and group ownership. Default to use sudo.\n<END>",
"<BEGIN>\n## `diff`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagversion API.
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 tagversion API.
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... | Increment and return tagged version in git.
Increment levels are patch, minor and major.
Using semver.org versioning: {major}.{minor}.{patch}{special}
Special must start with a-z and consist of _a-zA-Z0-9. | "Increment and return tagged version in git.\n Increment levels are patch, minor and major.\n\n Using semver.org versioning: {major}.{minor}.{patch}{special}\n Special must start with a-z and consist of _a-zA-Z0-9." | 29 | false | gpoulter/fablib | tagversion | 33,954 | |
LDU_FT/LordGaav/python-chaos/get_default_config_file | LDU_FT | [
"<BEGIN>\n## `registerWorker`",
"Register a new Worker, under the given descriptive name.",
"\t\tTrying to register multiple workers under the same name will raise an Exception.",
"\t\tParameters\n\t\t----------\n\t\tname: string\n\t\t\tName to register the given worker under.\n\t\tworker: multiprocessing.Pro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_config_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_default_config_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... | Turn an ArgumentParser into a ConfigObj compatible configuration file.
This method will take the given argparser, and loop over all options contained. The configuration file is formatted
as follows:
# <option help info>
<option destination variable>=<option default value>
Arguments
---------
argparser: Argume... | "Turn an ArgumentParser into a ConfigObj compatible configuration file.\n\n\tThis method will take the given argparser, and loop over all options contained. The configuration file is formatted\n\tas follows:\n\n\t# <option help info>\n\t<option destination variable>=<option default value>\n\n\tArguments\n\t---------\n\... | 138 | false | LordGaav/python-chaos | get_default_config_file | 33,955 | |
LDU_FT/SeabornGames/Table/str_to_obj | LDU_FT | [
"<BEGIN>\n## `list_to_obj`",
":param list_: list of list or list of dictionary to use as the\n source\n :param columns: list of strings to label the columns when\n converting to str\n :param row_columns: list of columns in the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the str_to_obj API.
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 str_to_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | This will convert text file or text to a seaborn table
and return it
:param file_path: str of the path to the file
:param text: str of the csv text
:param columns: list of str of columns to use
:param row_columns: list of str of columns in data but not to use
:param remov... | "This will convert text file or text to a seaborn table\n and return it\n :param file_path: str of the path to the file\n :param text: str of the csv text\n :param columns: list of str of columns to use\n :param row_columns: list of str of columns in data but not to use\n :para... | 93 | false | SeabornGames/Table | str_to_obj | 33,956 | |
LDU_FT/NetEaseGame/ATX/get_device_status | LDU_FT | [
"<BEGIN>\n## `main`",
"Args:\n - forward(int): local forward port\n - host(string): local forward host\n - listen(int): listen port\n<END>",
"<BEGIN>\n## `_init_items`",
".---------------.\n | Ctrl | Screen |\n |------| |\n | Code | |\n | | ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_device_status API.
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_device_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | get device status at a given time t (within self.monitor_period) | "get device status at a given time t (within self.monitor_period)" | 230 | false | NetEaseGame/ATX | get_device_status | 33,957 | |
LDU_FT/DocNow/twarc/timeline | LDU_FT | [
"<BEGIN>\n## `rate_limit`",
"A decorator to handle rate limiting from the Twitter API. If\n a rate limit error is encountered we will sleep until we can\n issue the API call again.\n<END>",
"<BEGIN>\n## `catch_conn_reset`",
"A decorator to handle connection reset errors even ones from pyOpenSSL\n unt... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timeline API.
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 timeline API.
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 collection of the most recent tweets posted
by the user indicated by the user_id or screen_name parameter.
Provide a user_id or screen_name. | "Returns a collection of the most recent tweets posted\n by the user indicated by the user_id or screen_name parameter.\n Provide a user_id or screen_name." | 58 | false | DocNow/twarc | timeline | 33,958 | |
LDU_FT/openwisp/netdiff/parse | LDU_FT | [
"<BEGIN>\n## `parse`",
"Converts a NetJSON 'NetworkGraph' object\n to a NetworkX Graph object,which is then returned.\n Additionally checks for protocol version, revision and metric.\n<END>",
"<BEGIN>\n## `parse`",
"Converts a OpenVPN JSON to a NetworkX Graph object\n which is then return... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Calls the right method depending on the format,
which can be one of the wollowing:
* alfred_vis
* txtinfo | "Calls the right method depending on the format,\n which can be one of the wollowing:\n * alfred_vis\n * txtinfo" | 30 | false | openwisp/netdiff | parse | 33,959 | |
LDU_FT/noisyboiler/wampy/generate_bytes | LDU_FT | [
"<BEGIN>\n## `compute_wcs`",
"Compute an WAMP-CRA authentication signature from an authentication\n challenge and a (derived) key.",
" :param key: The key derived (via PBKDF2) from the secret.\n :type key: str/bytes\n :param challenge: The authentication challenge to sign.\n :type challenge: str/... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_bytes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Format data to string (buffered_bytes) to send to server. | "Format data to string (buffered_bytes) to send to server." | 18 | false | noisyboiler/wampy | generate_bytes | 33,960 | |
LDU_FT/gristlabs/asttokens/token_range | LDU_FT | [
"<BEGIN>\n## `get_token_from_offset`",
"Returns the token containing the given character offset (0-based position in source text),\n or the preceeding token if the position is between tokens.\n<END>",
"<BEGIN>\n## `get_token`",
"Returns the token containing the given (lineno, col_offset) position, or the p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the token_range API.
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 token_range API.
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... | Yields all tokens in order from first_token through and including last_token. If
include_extra is True, includes non-coding tokens such as tokenize.NL and .COMMENT. | "Yields all tokens in order from first_token through and including last_token. If\n include_extra is True, includes non-coding tokens such as tokenize.NL and .COMMENT." | 46 | false | gristlabs/asttokens | token_range | 33,961 | |
LDU_FT/pyinvoke/invocations/_unpack | LDU_FT | [
"<BEGIN>\n## `confirm`",
"Ask user a yes/no question and return their response as a boolean.",
" ``question`` should be a simple, grammatically complete question such as\n \"Do you wish to continue?\", and will have a string similar to ``\" [Y/n] \"``\n appended automatically. This function will *not* ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unpack API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Download + unpack given package into temp dir ``tmp``.
Return ``(real_version, source)`` where ``real_version`` is the "actual"
version downloaded (e.g. if a Git master was indicated, it will be the SHA
of master HEAD) and ``source`` is the source directory (relative to
unpacked source) to import into ... | "Download + unpack given package into temp dir ``tmp``.\n\n Return ``(real_version, source)`` where ``real_version`` is the \"actual\"\n version downloaded (e.g. if a Git master was indicated, it will be the SHA\n of master HEAD) and ``source`` is the source directory (relative to\n unpacked source) to impo... | 126 | false | pyinvoke/invocations | _unpack | 33,962 | |
LDU_FT/higlass/higlass-python/setup | LDU_FT | [
"<BEGIN>\n## `get_filepath`",
"Get the filepath from a tileset definition\n Parameters\n ----------\n tileset_def: { 'filepath': ..., 'uid': ..., 'filetype': ...}\n The tileset definition\n returns: string\n The filepath, either as specified in the tileset_def or\n None\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Set up filesystem in user space for http and https
so that we can retrieve tiles from remote sources.
Parameters
----------
tmp_dir: string
The temporary directory where to create the
http and https directories | "Set up filesystem in user space for http and https\n so that we can retrieve tiles from remote sources.\n\n Parameters\n ----------\n tmp_dir: string\n The temporary directory where to create the\n http and https directories" | 34 | false | higlass/higlass-python | setup | 33,963 | |
LDU_FT/jwodder/doapi/fetch_all_kernels | LDU_FT | [
"<BEGIN>\n## `fetch`",
"Fetch & return a new `Action` object representing the action's current\n state",
" :rtype: Action\n :raises DOAPIError: if the API endpoint replies with an error\n<END>",
"<BEGIN>\n## `fetch_resource`",
"Fetch & return the resource that the action operated on, or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fetch_all_kernels API.
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 fetch_all_kernels API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | r"""
Returns a generator that yields all of the kernels available to the
droplet
:rtype: generator of `Kernel`\ s
:raises DOAPIError: if the API endpoint replies with an error | "r\"\"\"\n Returns a generator that yields all of the kernels available to the\n droplet\n\n :rtype: generator of `Kernel`\\ s\n :raises DOAPIError: if the API endpoint replies with an error" | 176 | false | jwodder/doapi | fetch_all_kernels | 33,964 | |
LDU_FT/NJDFan/ctypes-bitfield/walknode | LDU_FT | [
"<BEGIN>\n## `_createunbound`",
"Create a new UnboundNode representing a given class.\n<END>",
"<BEGIN>\n## `_createbound`",
"Create a new BoundNode representing a given object.\n<END>",
"<BEGIN>\n## `findnode`",
"Returns a Node pointing to obj.",
" If obj is a ctypes-derived class, an UnboundNode is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the walknode API.
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 walknode API.
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 recursive iterator over all Nodes under top.
If skiphidden is True (the default) then structure branches starting with
an underscore will be ignored. | "Returns a recursive iterator over all Nodes under top.\n \n If skiphidden is True (the default) then structure branches starting with\n an underscore will be ignored." | 42 | false | NJDFan/ctypes-bitfield | walknode | 33,965 | |
LDU_FT/MoseleyBioinformaticsLab/nmrstarlib/update_constants | LDU_FT | [
"<BEGIN>\n## `csview`",
"View chemical shift values organized by amino acid residue.",
" :param view: Open in default image viewer or save file in current working directory quietly.\n :type view: :py:obj:`True` or :py:obj:`False`\n :return: None\n :rtype: :py:obj:`None`\n<END>",
"<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_constants API.
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 update_constants API.
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 constant variables.
:return: None
:rtype: :py:obj:`None` | "Update constant variables.\n\n :return: None\n :rtype: :py:obj:`None`" | 117 | false | MoseleyBioinformaticsLab/nmrstarlib | update_constants | 33,966 | |
LDU_FT/ttu/ruuvitag-sensor/get_subject | LDU_FT | [
"<BEGIN>\n## `convert_to_influx`",
"Convert data into RuuviCollector naming schme and scale",
" returns:\n Object to be written to InfluxDB\n<END>",
"<BEGIN>\n## `_run_get_data_background`",
"Background process function for RuuviTag Sensors\n<END>",
"<BEGIN>\n## `_data_update`",
"Get data from... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_subject API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Returns:
subject : Reactive Extension Subject | "Returns:\n subject : Reactive Extension Subject" | 48 | false | ttu/ruuvitag-sensor | get_subject | 33,967 | |
LDU_FT/MycroftAI/adapt/tag | LDU_FT | [
"<BEGIN>\n## `lookup`",
"TODO: Implement trie lookup with edit distance",
" Args:\n iterable(list?): key used to find what is requested this could\n be a generator.\n index(int): index of what is requested\n gather(bool): of weather to gather or not\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tag API.
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 tag API.
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... | Tag known entities within the utterance.
Args:
utterance(str): a string of natural language text
context_trie(trie): optional, a trie containing only entities from context
for this request
Returns: dictionary, with the following keys
match(str): the p... | "Tag known entities within the utterance.\n Args:\n utterance(str): a string of natural language text\n context_trie(trie): optional, a trie containing only entities from context\n for this request\n\n Returns: dictionary, with the following keys\n match(str... | 178 | false | MycroftAI/adapt | tag | 33,968 | |
LDU_FT/zeroSteiner/smoke-zephyr/timespan_type | LDU_FT | [
"<BEGIN>\n## `normalize_job_id`",
"Convert a value to a job id.",
"\t:param job_id: Value to convert.\n\t:type job_id: int, str\n\t:return: The job id.\n\t:rtype: :py:class:`uuid.UUID`\n<END>",
"<BEGIN>\n## `now`",
"Return a :py:class:`datetime.datetime` instance representing the current time.",
"\t\t:rty... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timespan_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timespan_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | An argparse type representing a timespan such as 6h for 6 hours. | "An argparse type representing a timespan such as 6h for 6 hours." | 116 | false | zeroSteiner/smoke-zephyr | timespan_type | 33,969 | |
LDU_FT/mattharrison/rst2odp/adjust_fit | LDU_FT | [
"<BEGIN>\n## `adjust_fit`",
"given a x and y of dest, determine the ratio and return\n an (x,y,w,h) for a fitted image (note x or y could be neg).\n >>> adjust_fit(4,3,5,5)\n (0.5, 0, 3.0, 3.0)\n >>> adjust_fit(8,6,5,5)\n (1.0, 0, 6.0, 6.0)\n >>> adjust_fit(4,3,5,2)\n (0, 0.69999999999999996,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adjust_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 extrac... | given a x and y of dest, determine the ratio and return
an (x,y,w,h) for a fitted image (note x or y could be neg).
>>> adjust_fit(4,3,5,5)
(0.5, 0, 3.0, 3.0)
>>> adjust_fit(8,6,5,5)
(1.0, 0, 6.0, 6.0)
>>> adjust_fit(4,3,5,2)
(0, 0.69999999999999996, 4.0, 1.6000000000000001)
>>> adjust_f... | "given a x and y of dest, determine the ratio and return\n an (x,y,w,h) for a fitted image (note x or y could be neg).\n >>> adjust_fit(4,3,5,5)\n (0.5, 0, 3.0, 3.0)\n >>> adjust_fit(8,6,5,5)\n (1.0, 0, 6.0, 6.0)\n >>> adjust_fit(4,3,5,2)\n (0, 0.69999999999999996, 4.0, 1.6000000000000001)\n >>>... | 50 | false | mattharrison/rst2odp | adjust_fit | 33,970 | |
LDU_FT/stephrdev/django-formwizard/get_context_data | 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 get_context_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_context_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 ... | Returns the template context for a step. You can overwrite this method
to add more data for all or some steps. This method returns a
dictionary containing the rendered form step. Available template
context variables are:
* all extra data stored in the storage backend
* `form` ... | "Returns the template context for a step. You can overwrite this method\n to add more data for all or some steps. This method returns a\n dictionary containing the rendered form step. Available template\n context variables are:\n\n * all extra data stored in the storage backend\n * ... | 60 | false | stephrdev/django-formwizard | get_context_data | 33,971 | |
LDU_FT/openstack/networking-arista/remove_router_interface | LDU_FT | [
"<BEGIN>\n## `synchronize`",
"Synchronizes Router DB from Neturon DB with EOS.",
" Walks through the Neturon Db and ensures that all the routers\n created in Netuton DB match with EOS. After creating appropriate\n routers, it ensures to add interfaces as well.\n Uses idempotent prope... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the remove_router_interface 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_router_interface API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | Removes previously configured interface from router on Arista HW.
This deals with both IPv6 and IPv4 configurations. | "Removes previously configured interface from router on Arista HW.\n\n This deals with both IPv6 and IPv4 configurations." | 213 | false | openstack/networking-arista | remove_router_interface | 33,972 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.