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/last-partizan/pytils/rl_wordglue | LDU_FT | [
"<BEGIN>\n## `choose_plural`",
"Choose proper form for plural.",
" Value is a amount, parameters are forms of noun.\n Forms are variants for 1, 2, 5 nouns. It may be tuple\n of elements, or string where variants separates each other\n by comma.",
" Examples::\n {{ some_int|choose_plural:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rl_wordglue API.
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 rl_wordglue API.
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... | Glue (set nonbreakable space) short words with word before/after | "Glue (set nonbreakable space) short words with word before/after" | 134 | false | last-partizan/pytils | rl_wordglue | 31,873 | |
LDU_FT/ggaughan/pipe2py/pipe_substr | LDU_FT | [
"<BEGIN>\n## `repr_args`",
"formats a list of function arguments prettily but as working code",
" (kwargs are tuples (argname, argvalue)\n<END>",
"<BEGIN>\n## `repr_arg`",
"formats a function argument prettily but as working code",
" unicode encodable as ascii is formatted as str\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipe_substr API.
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 pipe_substr API.
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... | A string module that returns a substring. Loopable.
Parameters
----------
context : pipe2py.Context object
_INPUT : iterable of items or strings
conf : {
'from': {'type': 'number', value': <starting position>},
'length': {'type': 'number', 'value': <count of characters to return>}
... | "A string module that returns a substring. Loopable.\n\n Parameters\n ----------\n context : pipe2py.Context object\n _INPUT : iterable of items or strings\n conf : {\n 'from': {'type': 'number', value': <starting position>},\n 'length': {'type': 'number', 'value': <count of characters to r... | 257 | false | ggaughan/pipe2py | pipe_substr | 31,874 | |
LDU_FT/bambinos/bambi/_prepare_prior | LDU_FT | [
"<BEGIN>\n## `reset`",
"Reset PyMC3 model and all tracked distributions and parameters.\n<END>",
"<BEGIN>\n## `build`",
"Compile the PyMC3 model from an abstract model specification.\n Args:\n spec (Model): A bambi Model instance containing the abstract\n specification of the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _prepare_prior API.
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 _prepare_prior API.
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... | Args:
prior: Prior object, or float, or None.
type (string): 'intercept, 'fixed', or 'random'. | "Args:\n prior: Prior object, or float, or None.\n type (string): 'intercept, 'fixed', or 'random'." | 88 | false | bambinos/bambi | _prepare_prior | 31,875 | |
LDU_FT/jlmadurga/permabots/put | LDU_FT | [
"<BEGIN>\n## `process`",
"Render value_template of the parameter using context.",
" :param context: Processing context\n<END>",
"<BEGIN>\n## `post`",
"Process Telegram webhook.\n 1. Serialize Telegram message\n 2. Get an enabled Telegram bot\n 3. Create :class:`Update... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put API.
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 put API.
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... | Update existing state
---
serializer: StateSerializer
responseMessages:
- code: 401
message: Not authenticated
- code: 400
message: Not valid request | "Update existing state\n ---\n serializer: StateSerializer\n responseMessages:\n - code: 401\n message: Not authenticated\n - code: 400\n message: Not valid request" | 152 | false | jlmadurga/permabots | put | 31,876 | |
LDU_FT/mmp2/megaman/compute_adjacency_matrix | LDU_FT | [
"<BEGIN>\n## `check_eigen_solver`",
"Check that the selected eigensolver is valid",
" Parameters\n ----------\n eigen_solver : string\n string value to validate\n size, nvec : int (optional)\n if both provided, use the specified problem size and number of vectors\n to determine ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_adjacency_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compute_adjacency_matrix API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | This function will compute the adjacency matrix.
In order to acquire the existing adjacency matrix use
self.adjacency_matrix as comptute_adjacency_matrix() will re-compute
the adjacency matrix.
Parameters
----------
copy : boolean, whether to return a copied version of t... | "This function will compute the adjacency matrix.\n In order to acquire the existing adjacency matrix use\n self.adjacency_matrix as comptute_adjacency_matrix() will re-compute\n the adjacency matrix.\n\n Parameters\n ----------\n copy : boolean, whether to return a copied vers... | 287 | false | mmp2/megaman | compute_adjacency_matrix | 31,877 | |
LDU_FT/wiheto/teneto/rand_poisson | LDU_FT | [
"<BEGIN>\n## `temporal_betweenness_centrality`",
"Returns temporal betweenness centrality per node.",
" Parameters\n -----------",
" Input should be *either* tnet or paths.",
" data : array or dict",
" Temporal network input (graphlet or contact). nettype: 'bu', 'bd'.",
" calc : st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rand_poisson API.
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 rand_poisson API.
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... | Generate a random network where intervals between contacts are distributed by a poisson distribution
Parameters
----------
nnodes : int
Number of nodes in networks
ncontacts : int or list
Number of expected contacts (i.e. edges). If list, number of contacts for each node.
Any ... | "Generate a random network where intervals between contacts are distributed by a poisson distribution\n\n Parameters\n ----------\n\n nnodes : int\n Number of nodes in networks\n\n ncontacts : int or list\n Number of expected contacts (i.e. edges). If list, number of contacts for each node.\n ... | 649 | false | wiheto/teneto | rand_poisson | 31,878 | |
LDU_FT/jason-weirather/py-seq-tools/combine_context_errors | LDU_FT | [
"<BEGIN>\n## `sort_ranges`",
"from an array of ranges, make a sorted array of ranges",
" :param inranges: List of GenomicRange data\n :type inranges: GenomicRange[]\n :returns: a new sorted GenomicRange list\n :rtype: GenomicRange[]\n<END>",
"<BEGIN>\n## `merge_ranges`",
"from a list of genomic range or... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the combine_context_errors 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 combine_context_errors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Each alignment contributes some information to the error report. These reports for each alignment need to be gone through and combined into one report.
:returns: Dictionary containing the error counts on context base
:rtype: dict() | "Each alignment contributes some information to the error report. These reports for each alignment need to be gone through and combined into one report.\n\n\n :returns: Dictionary containing the error counts on context base\n :rtype: dict()" | 449 | false | jason-weirather/py-seq-tools | combine_context_errors | 31,879 | |
LDU_FT/ns1/ns1-python/update | LDU_FT | [
"<BEGIN>\n## `delete`",
"Delete the record from the zone, including all advanced configuration,\n meta data, etc.\n<END>",
"<BEGIN>\n## `update`",
"Update record configuration. Pass list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Update zone configuration. Pass a list of keywords and their values to
update. For the list of keywords available for zone configuration, see
:attr:`ns1.rest.zones.Zones.INT_FIELDS` and
:attr:`ns1.rest.zones.Zones.PASSTHRU_FIELDS` | "Update zone configuration. Pass a list of keywords and their values to\n update. For the list of keywords available for zone configuration, see\n :attr:`ns1.rest.zones.Zones.INT_FIELDS` and\n :attr:`ns1.rest.zones.Zones.PASSTHRU_FIELDS`" | 159 | false | ns1/ns1-python | update | 31,880 | |
LDU_FT/grahame/dividebatur/distribute_bundle_transactions | LDU_FT | [
"<BEGIN>\n## `resolve_exclusion_tie`",
"call callback to resolve a tie between candidates\n<END>",
"<BEGIN>\n## `resolve_election_tie`",
"call callback to resolve a tie between candidates\n<END>",
"<BEGIN>\n## `determine_elected_candidates_in_order`",
"determine all candidates with at least a quota of vot... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distribute_bundle_transactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the distribute_bundle_transactions API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | bundle_transactions_to_distribute is an array of tuples, [(CandidateFrom, BundleTransactions)] | "bundle_transactions_to_distribute is an array of tuples, [(CandidateFrom, BundleTransactions)]" | 28 | false | grahame/dividebatur | distribute_bundle_transactions | 31,881 | |
LDU_FT/bachya/pyflunearyou/nearest_by_coordinates | LDU_FT | [
"<BEGIN>\n## `adjust_status`",
"Apply status mapping to a raw API result.\n<END>",
"<BEGIN>\n## `status_by_coordinates`",
"Return the CDC status for the provided latitude/longitude.\n<END>",
"<BEGIN>\n## `status_by_state`",
"Return the CDC status for the specified state.\n<END>",
"<BEGIN>\n## `status_by... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearest_by_coordinates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nearest_by_coordinates API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Get the nearest report (with local and state info) to a lat/lon. | "Get the nearest report (with local and state info) to a lat/lon." | 22 | false | bachya/pyflunearyou | nearest_by_coordinates | 31,882 | |
LDU_FT/PixelwarStudio/PyTree/_get_color | LDU_FT | [
"<BEGIN>\n## `generate_branches`",
"Generates branches with alternative system.",
" Args:\n scales (tuple/array): Indicating how the branch/es length/es develop/s from age to age.\n angles (tuple/array): Holding the branch and shift angle in radians.\n shift_angle (float): Holding the ro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_color API.
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_color API.
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 the fill color depending on age.
Args:
age (int): The age of the branch/es
Returns:
tuple: (r, g, b) | "Get the fill color depending on age.\n\n Args:\n age (int): The age of the branch/es\n\n Returns:\n tuple: (r, g, b)" | 63 | false | PixelwarStudio/PyTree | _get_color | 31,883 | |
LDU_FT/MolSSI-BSE/basis_set_exchange/electron_shell_str | LDU_FT | [
"<BEGIN>\n## `read_gbasis`",
"Reads gbasis-formatted file data and converts it to a dictionary with the\n usual BSE fields",
" Note that the gbasis format does not store all the fields we\n have, so some fields are left blank\n<END>",
"<BEGIN>\n## `read_molcas`",
"Reads molcas-formatted fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the electron_shell_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the electron_shell_str API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Return a string representing the data for an electron shell
If shellidx (index of the shell) is not None, it will also be printed | "Return a string representing the data for an electron shell\n\n If shellidx (index of the shell) is not None, it will also be printed" | 408 | false | MolSSI-BSE/basis_set_exchange | electron_shell_str | 31,884 | |
LDU_FT/common-workflow-language/cwltool/add | LDU_FT | [
"<BEGIN>\n## `add_volumes`",
"Append volume mappings to the runtime option list.\n<END>",
"<BEGIN>\n## `docker_monitor`",
"Record memory usage of the running Docker container.\n<END>",
"<BEGIN>\n## `adjustFiles`",
"Apply a mapping function to each File path in the object `rec`.\n<END>",
"<BEGIN>\n## `ch... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Add the given value to the store.
Returns a placeholder value to use until the real value is needed. | "Add the given value to the store.\n\n Returns a placeholder value to use until the real value is needed." | 161 | false | common-workflow-language/cwltool | add | 31,885 | |
LDU_FT/xflr6/gsheets/from_files | LDU_FT | [
"<BEGIN>\n## `write_csv`",
"Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>",
"<BEGIN>\n## `write_dataframe`",
"Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>",
"<BEGIN>\n## `from_string`",
"Return a new SheetUrl instance from p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_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 from_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... | Return a spreadsheet collection making OAauth 2.0 credentials.
Args:
secrets (str): location of secrets file (default: ``%r``)
storage (str): location of storage file (default: ``%r``)
scopes: scope URL(s) or ``'read'`` or ``'write'`` (default: ``%r``)
no_webserv... | "Return a spreadsheet collection making OAauth 2.0 credentials.\n\n Args:\n secrets (str): location of secrets file (default: ``%r``)\n storage (str): location of storage file (default: ``%r``)\n scopes: scope URL(s) or ``'read'`` or ``'write'`` (default: ``%r``)\n no_... | 93 | false | xflr6/gsheets | from_files | 31,886 | |
LDU_FT/OnroerendErfgoed/oe_utils/add_concept_filter | LDU_FT | [
"<BEGIN>\n## `after_commit_listener`",
"Processing the changes.\n All new or changed items are now indexed. All deleted items are now removed from the index.\n<END>",
"<BEGIN>\n## `_queue_job`",
"creates a new job on the queue\n :param redis: redis\n :param delegate: method to be ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_concept_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_concept_filter API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Add a concept filter
:param concept: concept which will be used as lowercase string in a search term
:param concept_name: name of the place where there will be searched for | "Add a concept filter\n\n :param concept: concept which will be used as lowercase string in a search term\n :param concept_name: name of the place where there will be searched for" | 100 | false | OnroerendErfgoed/oe_utils | add_concept_filter | 31,887 | |
LDU_FT/jessemiller/HamlPy/_escape_attribute_quotes | LDU_FT | [
"<BEGIN>\n## `watched_extension`",
"Return True if the given extension is one of the watched extensions\n<END>",
"<BEGIN>\n## `watch_folder`",
"Main entry point. Expects one or two arguments (the watch folder + optional destination folder).\n<END>",
"<BEGIN>\n## `_watch_folder`",
"Compares \"modified\" ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _escape_attribute_quotes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _escape_attribute_quotes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Escapes quotes with a backslash, except those inside a Django tag | "Escapes quotes with a backslash, except those inside a Django tag" | 10 | false | jessemiller/HamlPy | _escape_attribute_quotes | 31,888 | |
LDU_FT/saulpw/visidata/unselectRow | 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 unselectRow API.
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 unselectRow API.
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... | Unselect given row, return True if selected; else return False. O(log n) | "Unselect given row, return True if selected; else return False. O(log n)" | 249 | false | saulpw/visidata | unselectRow | 31,889 | |
LDU_FT/radujica/baloo/get | LDU_FT | [
"<BEGIN>\n## `evaluate`",
"Evaluates by creating an Index containing evaluated data.",
" See `LazyResult`",
" Returns\n -------\n Index\n Index with evaluated data.\n<END>",
"<BEGIN>\n## `raw`",
"Decorator for eager functions checking input array\n and stripping a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Extract i'th character of each element.
Parameters
----------
i : int
Returns
-------
Series | "Extract i'th character of each element.\n\n Parameters\n ----------\n i : int\n\n Returns\n -------\n Series" | 478 | false | radujica/baloo | get | 31,890 | |
LDU_FT/aws/sagemaker-containers/_can_connect | LDU_FT | [
"<BEGIN>\n## `_orted_process`",
"Waits maximum of 5 minutes for orted process to start\n<END>",
"<BEGIN>\n## `_can_connect`",
"Checks if the connection to provided ``host`` and ``port`` is possible or not.\n Args:\n host (str): Hostname for the host to check connection.\n port (int):... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _can_connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _can_connect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Checks if the connection to provided ``host`` and ``port`` is possible or not.
Args:
host (str): Hostname for the host to check connection.
port (int): Port name of the host to check connection on. | "Checks if the connection to provided ``host`` and ``port`` is possible or not.\n Args:\n host (str): Hostname for the host to check connection.\n port (int): Port name of the host to check connection on." | 200 | false | aws/sagemaker-containers | _can_connect | 31,891 | |
LDU_FT/huggingface/pytorch-pretrained-BERT/convert_examples_to_features | LDU_FT | [
"<BEGIN>\n## `from_json_file`",
"Constructs a `GPT2Config` from a json file of parameters.\n<END>",
"<BEGIN>\n## `from_pretrained`",
"Instantiate a GPT2PreTrainedModel from a pre-trained model file or a pytorch state dict.\n Download and cache the pre-trained model file if needed.",
" Params:\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_examples_to_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert_examples_to_features API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | Loads a data file into a list of `InputBatch`s. | "Loads a data file into a list of `InputBatch`s." | 115 | false | huggingface/pytorch-pretrained-BERT | convert_examples_to_features | 31,892 | |
LDU_FT/abseil/abseil-py/append_flags_into_file | LDU_FT | [
"<BEGIN>\n## `_register_bounds_validator_if_needed`",
"Enforces lower and upper bounds for numeric flags.",
" Args:\n parser: NumericParser (either FloatParser or IntegerParser), provides lower\n and upper bounds, and help text to display.\n name: str, name of the flag\n flag_values: FlagValues... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the append_flags_into_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 append_flags_into_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.... | Appends all flags assignments from this FlagInfo object to a file.
Output will be in the format of a flagfile.
NOTE: MUST mirror the behavior of the C++ AppendFlagsIntoFile
from https://github.com/gflags/gflags.
Args:
filename: str, name of the file. | "Appends all flags assignments from this FlagInfo object to a file.\n\n Output will be in the format of a flagfile.\n\n NOTE: MUST mirror the behavior of the C++ AppendFlagsIntoFile\n from https://github.com/gflags/gflags.\n\n Args:\n filename: str, name of the file." | 432 | false | abseil/abseil-py | append_flags_into_file | 31,893 | |
LDU_FT/stbraun/fuzzing/_execute | LDU_FT | [
"<BEGIN>\n## `step_impl03`",
"Check assertions.",
" :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl`",
"Check assertions.",
" :param max_modified: maximum expected number of modifications.\n :param context: test context.\n<END>",
"<BEGIN>\n## `step_impl06`",
"Execute fuzzer.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _execute API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Run app with file as input.
:param app_: application to run.
:param file_: file to run app with.
:return: success True, else False
:rtype: bool | "Run app with file as input.\n\n :param app_: application to run.\n :param file_: file to run app with.\n :return: success True, else False\n :rtype: bool" | 79 | false | stbraun/fuzzing | _execute | 31,894 | |
LDU_FT/Lagg/steamodd/call | LDU_FT | [
"<BEGIN>\n## `get`",
"Returns context data for a given app, can be an ID or a case insensitive name\n<END>",
"<BEGIN>\n## `hash_name`",
"The URL-friendly identifier for the item. Generates its own approximation if one isn't available\n<END>",
"<BEGIN>\n## `quality`",
"Can't really trust presence of a sche... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the call API.
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 call API.
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... | Make the API call again and fetch fresh data. | "Make the API call again and fetch fresh data." | 49 | false | Lagg/steamodd | call | 31,895 | |
LDU_FT/wistful/pympris/register_signal_handler | LDU_FT | [
"<BEGIN>\n## `register_signal_handler`",
"register `handler_function` to receive `signal_name`.",
" Uses class's dbus interface self.IFACE, objects name self.name\n and objects path self.OBJ_PATH to match signal.",
" :param str signal_name: The signal name;\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_signal_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the register_signal_handler API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion... | register `handler_function` to receive `signal_name`.
Uses class's dbus interface self.IFACE, objects name self.name
and objects path self.OBJ_PATH to match signal.
:param str signal_name: The signal name;
None(default) matches all names.
:param function... | "register `handler_function` to receive `signal_name`.\n\n Uses class's dbus interface self.IFACE, objects name self.name\n and objects path self.OBJ_PATH to match signal.\n\n :param str signal_name: The signal name;\n None(default) matches all names.\n :param ... | 36 | false | wistful/pympris | register_signal_handler | 31,896 | |
LDU_FT/thebjorn/pydeps/cmd2args | LDU_FT | [
"<BEGIN>\n## `write`",
"Write ``txt`` to file and output stream (StringIO).\n<END>",
"<BEGIN>\n## `write_attributes`",
"Write comma separated attribute values (if exists).\n<END>",
"<BEGIN>\n## `is_noise`",
"Is this module just noise? (too common either at top or bottom of\n the graph).\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cmd2args API.
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 cmd2args API.
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... | Prepare a command line for execution by Popen. | "Prepare a command line for execution by Popen." | 60 | false | thebjorn/pydeps | cmd2args | 31,897 | |
LDU_FT/jamieleshaw/lurklib/kill | LDU_FT | [
"<BEGIN>\n## `find`",
"Finds needle in haystack.\n If needle is found return True, if not return False.\n Required arguments:\n * haystack - Text to search in.\n * needle - Text to search for.\n<END>",
"<BEGIN>\n## `send`",
"Send a raw string with the CR-LF appended to it.\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill API.
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 kill API.
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... | Kill someone
Required arguments:
* nick - Nick to kill.
Optional arguments:
* reason='' - Reason for killing them. | "Kill someone\n Required arguments:\n * nick - Nick to kill.\n Optional arguments:\n * reason='' - Reason for killing them." | 112 | false | jamieleshaw/lurklib | kill | 31,898 | |
LDU_FT/pytorch/text/splits | LDU_FT | [
"<BEGIN>\n## `load_vectors`",
"Arguments:\n vectors: one of or a list containing instantiations of the\n GloVe, CharNGram, or Vectors classes. Alternatively, one\n of or a list of available pretrained vectors:\n charngram.100d\n fasttext.en.30... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the splits API.
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 splits API.
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 ... | Create dataset objects for splits of the SNLI dataset.
This is the most flexible way to use the dataset.
Arguments:
text_field: The field that will be used for premise and hypothesis
data.
label_field: The field that will be used for label data.
pars... | "Create dataset objects for splits of the SNLI dataset.\n\n This is the most flexible way to use the dataset.\n\n Arguments:\n text_field: The field that will be used for premise and hypothesis\n data.\n label_field: The field that will be used for label data.\n ... | 131 | false | pytorch/text | splits | 31,899 | |
LDU_FT/dubsmash/config-reader/_get_typed_value | LDU_FT | [
"<BEGIN>\n## `_read_file_data`",
"Attempts to read the contents of the given configuration file.\n :param path: Path to a configuration file.\n :raises: ConfigParseError if file does not exist or cannot be read.\n :return: Dictionary of configuration data.\n<END>",
"<BEGIN>\n## `get_int`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_typed_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_typed_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns value converted to a particular target_type and raises a ConfigTypeError if we can't cast the value to
the expected type. Also propagates the error to the caller function 'get_<type>'. If optional was set, just
returns None if the variable is not found.
:param key: The variable to search... | "Returns value converted to a particular target_type and raises a ConfigTypeError if we can't cast the value to\n the expected type. Also propagates the error to the caller function 'get_<type>'. If optional was set, just\n returns None if the variable is not found.\n :param key: The variable to se... | 17 | false | dubsmash/config-reader | _get_typed_value | 31,900 | |
LDU_FT/Kensuke-Mitsuzawa/JapaneseTokenizers/normalize_text_normal_ipadic | LDU_FT | [
"<BEGIN>\n## `__check_mecab_dict_path`",
"check path to dict of Mecab in system environment\n<END>",
"<BEGIN>\n## `__feature_parser`",
"Parse the POS feature output by Mecab\n :param uni_feature unicode:\n :return ( (pos1, pos2, pos3), word_stem ):\n<END>",
"<BEGIN>\n## `__postprocess_analyzed... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_text_normal_ipadic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize_text_normal_ipadic API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl... | * All hankaku Katanaka is converted into Zenkaku Katakana
* All hankaku English alphabet and numberc string are converted into Zenkaku one | "* All hankaku Katanaka is converted into Zenkaku Katakana\n * All hankaku English alphabet and numberc string are converted into Zenkaku one" | 58 | false | Kensuke-Mitsuzawa/JapaneseTokenizers | normalize_text_normal_ipadic | 31,901 | |
LDU_FT/althonos/fs.sshfs/_make_info | LDU_FT | [
"<BEGIN>\n## `_get_ssh_config`",
"Extract the configuration located at ``config_path``.",
" Returns:\n paramiko.SSHConfig: the configuration instance.\n<END>",
"<BEGIN>\n## `openbin`",
"Open a binary file-like object.",
" Arguments:\n path (str): A path on the filesyste... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _make_info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Create an `Info` object from a stat result. | "Create an `Info` object from a stat result." | 26 | false | althonos/fs.sshfs | _make_info | 31,902 | |
LDU_FT/eyurtsev/fcsparser/read_analysis | LDU_FT | [
"<BEGIN>\n## `fromfile`",
"Wrapper around np.fromfile to support any file-like object.\n<END>",
"<BEGIN>\n## `parse`",
"Parse an fcs file at the location specified by the path.",
" Parameters\n ----------\n path: str\n Path of .fcs file\n meta_data_only: bool\n If True, the parse_f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_analysis API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_analysis API.
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... | Read the ANALYSIS segment of the FCS file and store it in self.analysis.
Warning: This has never been tested with an actual fcs file that contains an
analysis segment.
Args:
file_handle: buffer containing FCS data | "Read the ANALYSIS segment of the FCS file and store it in self.analysis.\n\n Warning: This has never been tested with an actual fcs file that contains an\n analysis segment.\n\n Args:\n file_handle: buffer containing FCS data" | 39 | false | eyurtsev/fcsparser | read_analysis | 31,903 | |
LDU_FT/daler/gffutils/count_features_of_type | LDU_FT | [
"<BEGIN>\n## `to_bedtool`",
"Convert any iterator into a pybedtools.BedTool object.",
" Note that the supplied iterator is not consumed by this function. To save\n to a temp file or to a known location, use the `.saveas()` method of the\n returned BedTool object.\n<END>",
"<BEGIN>\n## `tsses`",
"Cr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_features_of_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_features_of_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.... | Simple count of features.
Can be faster than "grep", and is faster than checking the length of
results from :meth:`gffutils.FeatureDB.features_of_type`.
Parameters
----------
featuretype : string
Feature type (e.g., "gene") to count. If None, then count *all*
... | "Simple count of features.\n\n Can be faster than \"grep\", and is faster than checking the length of\n results from :meth:`gffutils.FeatureDB.features_of_type`.\n\n Parameters\n ----------\n\n featuretype : string\n\n Feature type (e.g., \"gene\") to count. If None, then ... | 366 | false | daler/gffutils | count_features_of_type | 31,904 | |
LDU_FT/thefab/tornadis/_read_callback | LDU_FT | [
"<BEGIN>\n## `pubsub_pop_message`",
"Pops a message for a subscribed client.",
" Args:\n deadline (int): max number of seconds to wait (None => no timeout)",
" Returns:\n Future with the popped message as result (or None if timeout\n or ConnectionError object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _read_callback API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Callback called when some data are read on the socket.
The buffer is given to the hiredis parser. If a reply is complete,
we put the decoded reply to on the reply queue.
Args:
data (str): string (buffer) read on the socket. | "Callback called when some data are read on the socket.\n\n The buffer is given to the hiredis parser. If a reply is complete,\n we put the decoded reply to on the reply queue.\n\n Args:\n data (str): string (buffer) read on the socket." | 89 | false | thefab/tornadis | _read_callback | 31,905 | |
LDU_FT/Yelp/threat_intel/_request_reports | LDU_FT | [
"<BEGIN>\n## `init_poolmanager`",
"Called to initialize the HTTPAdapter when no proxy is used.\n<END>",
"<BEGIN>\n## `proxy_manager_for`",
"Called to initialize the HTTPAdapter when a proxy is used.\n<END>",
"<BEGIN>\n## `make_calls`",
"Adds appropriate sleep to avoid making too many calls.",
" A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _request_reports API.
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 _request_reports API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Sends multiples requests for the resources to a particular endpoint.
Args:
resource_param_name: a string name of the resource parameter.
resources: list of of the resources.
endpoint_name: VirusTotal endpoint URL suffix.
Returns:
A list of the responses. | "Sends multiples requests for the resources to a particular endpoint.\n\n Args:\n resource_param_name: a string name of the resource parameter.\n resources: list of of the resources.\n endpoint_name: VirusTotal endpoint URL suffix.\n Returns:\n A list of the res... | 149 | false | Yelp/threat_intel | _request_reports | 31,906 | |
LDU_FT/vals/umis/read_fastq | LDU_FT | [
"<BEGIN>\n## `mutationhash`",
"produce a hash with each key a nedit distance substitution for a set of\n strings. values of the hash is the set of strings the substitution could\n have come from\n<END>",
"<BEGIN>\n## `substitution_set`",
"for a string, return a set of all possible substitutions\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_fastq API.
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 read_fastq API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | return a stream of FASTQ entries, handling gzipped and empty files | "return a stream of FASTQ entries, handling gzipped and empty files" | 62 | false | vals/umis | read_fastq | 31,907 | |
LDU_FT/zagaran/mongolia/add_superuser | LDU_FT | [
"<BEGIN>\n## `exists`",
"Like __init__ but simply returns a boolean as to whether or not the\n object exists, rather than returning the whole object.",
" NOTE: if you pass in a single argument to exists, this will\n match against ID_KEY.",
" @param query: a dictionary specifying ke... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_superuser API.
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 add_superuser API.
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... | Adds a user with userAdminAnyDatabase role to mongo.
@param name: the name of the user to create
@param passowrd: the password of the user to create. Can not be used with
the userSource argument.
@param **kwargs: forwarded to pymongo.database.add_user | "Adds a user with userAdminAnyDatabase role to mongo.\n \n @param name: the name of the user to create\n @param passowrd: the password of the user to create. Can not be used with\n the userSource argument.\n @param **kwargs: forwarded to pymongo.database.add_user" | 95 | false | zagaran/mongolia | add_superuser | 31,908 | |
LDU_FT/fhcrc/taxtastic/strip | LDU_FT | [
"<BEGIN>\n## `action`",
"Roll back commands on a refpkg.",
" *args* should be an argparse object with fields refpkg (giving the\n path to the refpkg to operate on) and n (giving the number of\n operations to roll back).\n<END>",
"<BEGIN>\n## `taxtable_to_tree`",
"Read a CSV taxonomy from *handle* i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the strip API.
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 strip API.
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... | Remove rollbacks, rollforwards, and all non-current files.
When distributing a refpkg, you probably want to distribute as
small a one as possible. strip removes everything from the
refpkg which is not relevant to its current state. | "Remove rollbacks, rollforwards, and all non-current files.\n\n When distributing a refpkg, you probably want to distribute as\n small a one as possible. strip removes everything from the\n refpkg which is not relevant to its current state." | 197 | false | fhcrc/taxtastic | strip | 31,909 | |
LDU_FT/monarch-initiative/dipper/_check_list_len | LDU_FT | [
"<BEGIN>\n## `_process_phenotype_hpoa`",
"see info on format here:\n http://www.human-phenotype-ontology.org/contao/index.php/annotation-guide.html",
" :param raw:\n :param limit:\n :return:\n<END>",
"<BEGIN>\n## `get_common_files`",
"Fetch the hpo-annotation-data\n [repos... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_list_len API.
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 _check_list_len API.
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... | Sanity check for csv parser
:param row
:param length
:return:None | "Sanity check for csv parser\n :param row\n :param length\n :return:None" | 848 | false | monarch-initiative/dipper | _check_list_len | 31,910 | |
LDU_FT/odlgroup/odl/convex_conj | LDU_FT | [
"<BEGIN>\n## `is_valid_input_array`",
"Test if ``x`` is a correctly shaped point array in R^d.\n<END>",
"<BEGIN>\n## `is_valid_input_meshgrid`",
"Test if ``x`` is a `meshgrid` sequence for points in R^d.\n<END>",
"<BEGIN>\n## `out_shape_from_meshgrid`",
"Get the broadcast output shape from a `meshgrid`.\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convex_conj API.
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 convex_conj API.
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... | Convex conjugate functional of the scaled functional.
``Functional.__rmul__`` takes care of the case scalar = 0. | "Convex conjugate functional of the scaled functional.\n\n ``Functional.__rmul__`` takes care of the case scalar = 0." | 4,047 | true | odlgroup/odl | convex_conj | 31,911 | |
LDU_FT/danielfrg/s3contents/_file_model_from_path | LDU_FT | [
"<BEGIN>\n## `_notebook_model_from_path`",
"Build a notebook model from database record.\n<END>",
"<BEGIN>\n## `_file_model_from_path`",
"Build a file model from database record.\n<END>",
"<BEGIN>\n## `_convert_file_records`",
"Applies _notebook_model_from_s3_path or _file_model_from_s3_path to each entry... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _file_model_from_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.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _file_model_from_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.
... | Build a file model from database record. | "Build a file model from database record." | 13 | false | danielfrg/s3contents | _file_model_from_path | 31,912 | |
LDU_FT/HydrelioxGitHub/pyiss/people_in_space | LDU_FT | [
"<BEGIN>\n## `people_in_space`",
"Number of people in space.\n Be aware that does not mean these people are inside the ISS (it does\n most of the time), They can be travelling to and from the station.",
" :return: Return a dict with number of people in space right now and\n their nam... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the people_in_space API.
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 people_in_space API.
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... | Number of people in space.
Be aware that does not mean these people are inside the ISS (it does
most of the time), They can be travelling to and from the station.
:return: Return a dict with number of people in space right now and
their name and their craft
:rtype: dict | "Number of people in space.\n Be aware that does not mean these people are inside the ISS (it does\n most of the time), They can be travelling to and from the station.\n\n :return: Return a dict with number of people in space right now and\n their name and their craft\n :rtype: dict" | 15 | false | HydrelioxGitHub/pyiss | people_in_space | 31,913 | |
LDU_FT/rgmining/ria/_weight_generator | LDU_FT | [
"<BEGIN>\n## `update`",
"Update reviewers' anomalous scores and products' summaries.",
" Returns:\n maximum absolute difference between old summary and new one, and\n old anomalous score and new one.\n<END>",
"<BEGIN>\n## `anomalous_score`",
"Anomalous score of this reviewer.",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _weight_generator API.
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 _weight_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Compute a weight function for the given reviewers.
Args:
reviewers: a set of reviewers to compute weight function.
Returns:
a function computing a weight for a reviewer. | "Compute a weight function for the given reviewers.\n\n Args:\n reviewers: a set of reviewers to compute weight function.\n\n Returns:\n a function computing a weight for a reviewer." | 87 | false | rgmining/ria | _weight_generator | 31,914 | |
LDU_FT/twilio/authy-python/send_request | LDU_FT | [
"<BEGIN>\n## `create`",
"sends request to create new user.\n :param string email:\n :param string phone:\n :param string country_code:\n :param bool send_install_link_via_sms:\n :return:\n<END>",
"<BEGIN>\n## `verification_start`",
":param string phone_number: stored in your... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the send_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 extr... | OneTouch verification request. Sends a request for Auth App. For more info https://www.twilio.com/docs/api/authy/authy-onetouch-api
:param string user_id: user_id User's authy id stored in your database
:param string message: Required, the message shown to the user when the approval request arrives.
... | "OneTouch verification request. Sends a request for Auth App. For more info https://www.twilio.com/docs/api/authy/authy-onetouch-api\n :param string user_id: user_id User's authy id stored in your database\n :param string message: Required, the message shown to the user when the approval request arrives.\... | 18 | false | twilio/authy-python | send_request | 31,915 | |
LDU_FT/lobocv/crashreporter/delete_offline_reports | LDU_FT | [
"<BEGIN>\n## `setup_smtp`",
"Set up the crash reporter to send reports via email using SMTP",
" :param host: SMTP host\n :param port: SMTP port\n :param user: sender email address\n :param passwd: sender email password\n :param recipients: list or comma separated string of rec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_offline_reports API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_offline_reports API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Delete all stored offline reports
:return: List of reports that still require submission | "Delete all stored offline reports\n :return: List of reports that still require submission" | 59 | false | lobocv/crashreporter | delete_offline_reports | 31,916 | |
LDU_FT/sdispater/orator/_check_for_more_pages | LDU_FT | [
"<BEGIN>\n## `construct`",
"Create a new factory container.",
" :param faker: A faker generator instance\n :type faker: faker.Generator",
" :param path_to_factories: The path to factories\n :type path_to_factories: str",
" :rtype: Factory\n<END>",
"<BEGIN>\n## `define`",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_for_more_pages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _check_for_more_pages API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Check for more pages. The last item will be sliced off. | "Check for more pages. The last item will be sliced off." | 1,212 | true | sdispater/orator | _check_for_more_pages | 31,917 | |
LDU_FT/ethereum/py-trie/get | LDU_FT | [
"<BEGIN>\n## `calc_root`",
"Obtain the merkle root of a given key/value/branch set.\n Can be used to validate a merkle proof or compute it's value from data.",
" :param key: the keypath to decide the ordering of the sibling nodes in the branch\n :param value: the value (or leaf) that starts the merkle ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Fetches the value with a given keypath from the given node.
Key will be encoded into binary array format first. | "Fetches the value with a given keypath from the given node.\n\n Key will be encoded into binary array format first." | 61 | false | ethereum/py-trie | get | 31,918 | |
LDU_FT/rbarrois/tdparser/consume | 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 consume API.
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 consume API.
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... | Retrieve the current token, then advance the parser.
If an expected class is provided, it will assert that the current token
matches that class (is an instance).
Note that when calling a token's nud() or led() functions, the "current"
token is the token following the token whose method... | "Retrieve the current token, then advance the parser.\n\n If an expected class is provided, it will assert that the current token\n matches that class (is an instance).\n\n Note that when calling a token's nud() or led() functions, the \"current\"\n token is the token following the token who... | 38 | false | rbarrois/tdparser | consume | 31,919 | |
LDU_FT/thespacedoctor/tastic/tagged_tasks | LDU_FT | [
"<BEGIN>\n## `projects`",
"*All child projects of this taskpaper object*",
" **Usage:**",
" Given a taskpaper document object (`doc`), to get a list of the project objects found within the document use:",
" .. code-block:: python",
" docProjects = doc.projects",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tagged_tasks API.
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 tagged_tasks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | *return a list of tasks contained within this taskpaper object filtered by a given tag*
**Key Arguments:**
- ``tag`` -- the tag to filter the tasks by.
**Return:**
- ``taskList`` -- the list of filtered tasks
**Usage:**
To filter the tasks recursively foun... | "*return a list of tasks contained within this taskpaper object filtered by a given tag*\n\n **Key Arguments:**\n - ``tag`` -- the tag to filter the tasks by.\n\n **Return:**\n - ``taskList`` -- the list of filtered tasks\n\n **Usage:**\n\n To filter the tasks recur... | 285 | false | thespacedoctor/tastic | tagged_tasks | 31,920 | |
LDU_FT/MechanicalSoup/MechanicalSoup/set_user_agent | LDU_FT | [
"<BEGIN>\n## `new_control`",
"Call :func:`Form.new_control` on the currently selected form.\n<END>",
"<BEGIN>\n## `open`",
"Open the URL and store the Browser's state in this object.\n All arguments are forwarded to :func:`Browser.get`.",
" :return: Forwarded from :func:`Browser.get`.\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_user_agent API.
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_user_agent API.
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... | Replaces the current user agent in the requests session headers. | "Replaces the current user agent in the requests session headers." | 119 | false | MechanicalSoup/MechanicalSoup | set_user_agent | 31,921 | |
LDU_FT/Projectplace/basepage/get_present_elements | LDU_FT | [
"<BEGIN>\n## `click`",
"Click web element.",
" :param locator: locator tuple or WebElement instance\n :param params: (optional) locator parameters\n :param timeout: (optional) time to wait for element\n :return: None\n<END>",
"<BEGIN>\n## `alt_click`",
"Alt-click web element.",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_present_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_present_elements API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Get elements present in the DOM.
If timeout is 0 (zero) return WebElement instance or None, else we wait and retry for timeout and raise
TimeoutException should the element not be found.
:param locator: element identifier
:param params: (optional) locator parameters
:param time... | "Get elements present in the DOM.\n\n If timeout is 0 (zero) return WebElement instance or None, else we wait and retry for timeout and raise\n TimeoutException should the element not be found.\n\n :param locator: element identifier\n :param params: (optional) locator parameters\n :pa... | 138 | false | Projectplace/basepage | get_present_elements | 31,922 | |
LDU_FT/tmux-python/tmuxp/setup_logger | LDU_FT | [
"<BEGIN>\n## `get_config_dir`",
"Return tmuxp configuration directory.",
" ``TMUXP_CONFIGDIR`` environmental variable has precedence if set. We also \n evaluate XDG default directory from XDG_CONFIG_HOME environmental variable \n if set or its default. Then the old default ~/.tmuxp is returned for \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logger API.
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 setup_logger API.
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... | Setup logging for CLI use.
Tries to do some conditionals to prevent handlers from being added twice.
Just to be safe.
Parameters
----------
logger : :py:class:`Logger`
logger instance for tmuxp | "Setup logging for CLI use.\n\n Tries to do some conditionals to prevent handlers from being added twice.\n Just to be safe.\n\n Parameters\n ----------\n logger : :py:class:`Logger`\n logger instance for tmuxp" | 161 | false | tmux-python/tmuxp | setup_logger | 31,923 | |
LDU_FT/pixelogik/NearPy/numpy_array_from_list_or_numpy_array | LDU_FT | [
"<BEGIN>\n## `store_vector`",
"Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `store_many_vectors`",
"Store a batch of vectors.\n Stores vector and JSON-serializable data in bucket with specified key.\n<END>",
"<BEGIN>\n## `delete_vector`",
"Deletes vec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numpy_array_from_list_or_numpy_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the numpy_array_from_list_or_numpy_array API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | Returns numpy array representation of argument.
Argument maybe numpy array (input is returned)
or a list of numpy vectors. | "Returns numpy array representation of argument.\n\n Argument maybe numpy array (input is returned)\n or a list of numpy vectors." | 103 | false | pixelogik/NearPy | numpy_array_from_list_or_numpy_array | 31,924 | |
LDU_FT/toumorokoshi/miura/_parse_filter_string | LDU_FT | [
"<BEGIN>\n## `parse_job`",
"Generates and returns a job object with the following:",
" * a run method, as defined in the readme\n * a list of posix-like arguments\n * a dictionary of data\n * templates: a dict-like interface of (template_name, template_body) pairs\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_filter_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _parse_filter_string API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | parse a filter string into a key-value pair | "parse a filter string into a key-value pair" | 15 | false | toumorokoshi/miura | _parse_filter_string | 31,925 | |
LDU_FT/sampottinger/pycotracer/clean_entry | LDU_FT | [
"<BEGIN>\n## `parse_yes_no_str`",
"Parse a string serialization of boolean data as yes (Y) or no (N).",
" Prase a string serialization of boolean data where True is \"Y\" and False is\n \"N\" case-insensitive.",
" @param bool_str: The string to parse.\n @type bool_str: str\n @return: The interp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_entry API.
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 clean_entry API.
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... | Consolidate some entry attributes and rename a few others.
Consolidate address attributes into a single field and replace some field
names with others as described in FIELD_TRANSFORM_INDEX.
@param entry: The entry attributes to update.
@type entry: dict
@return: Entry copy after running clean oper... | "Consolidate some entry attributes and rename a few others.\n\n Consolidate address attributes into a single field and replace some field\n names with others as described in FIELD_TRANSFORM_INDEX.\n\n @param entry: The entry attributes to update.\n @type entry: dict\n @return: Entry copy after running cl... | 71 | false | sampottinger/pycotracer | clean_entry | 31,926 | |
LDU_FT/fishtown-analytics/dbt/create_bigquery_table | LDU_FT | [
"<BEGIN>\n## `patch`",
"Given a ParsedNodePatch, add the new information to the node.\n<END>",
"<BEGIN>\n## `build_edges`",
"Build the forward and backward edges on the given list of ParsedNodes\n and return them as two separate dictionaries, each mapping unique IDs to\n lists of edges.\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_bigquery_table 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 create_bigquery_table API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Create a bigquery table. The caller must supply a callback
that takes one argument, a `google.cloud.bigquery.Table`, and mutates
it. | "Create a bigquery table. The caller must supply a callback\n that takes one argument, a `google.cloud.bigquery.Table`, and mutates\n it." | 419 | false | fishtown-analytics/dbt | create_bigquery_table | 31,927 | |
LDU_FT/theonion/influxer/count_events | LDU_FT | [
"<BEGIN>\n## `send_point_data`",
"creates data point payloads and sends them to influxdb\n<END>",
"<BEGIN>\n## `send_trending_data`",
"creates data point payloads for trending data to influxdb\n<END>",
"<BEGIN>\n## `count_events`",
"pulls data from the queue, tabulates it and spawns a send event\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the count_events API.
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 count_events API.
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... | pulls data from the queue, tabulates it and spawns a send event | "pulls data from the queue, tabulates it and spawns a send event" | 10 | false | theonion/influxer | count_events | 31,928 | |
LDU_FT/mozilla/crontabber/time_to_run | LDU_FT | [
"<BEGIN>\n## `toposort`",
"Dependencies are expressed as a dictionary whose keys are items\nand whose values are a set of dependent items. Output is a list of\nsets in topological order. The first set consists of items with no\ndependences, each subsequent set consists of items that depend upon\nitems in the prec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_to_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the time_to_run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | return true if it's time to run the job.
This is true if there is no previous information about its last run
or if the last time it ran and set its next_run to a date that is now
past. | "return true if it's time to run the job.\n This is true if there is no previous information about its last run\n or if the last time it ran and set its next_run to a date that is now\n past." | 59 | false | mozilla/crontabber | time_to_run | 31,929 | |
LDU_FT/zestyping/star-destroyer/add | LDU_FT | [
"<BEGIN>\n## `for_each_child`",
"Calls the callback for each AST node that's a child of the given node.\n<END>",
"<BEGIN>\n## `resolve_frompath`",
"Resolves the path of the module referred to by 'from ..x import y'.\n<END>",
"<BEGIN>\n## `find_module`",
"Determines whether a module exists with the given m... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Adds a possible origin for the given name in the given module. | "Adds a possible origin for the given name in the given module." | 24 | false | zestyping/star-destroyer | add | 31,930 | |
LDU_FT/facetoe/zenpy/set_cache_implementation | LDU_FT | [
"<BEGIN>\n## `agents`",
"| Description: IDs of agents involved in the chat\n<END>",
"<BEGIN>\n## `department`",
"| Description: The ID of the department to which the chat is directed\n<END>",
"<BEGIN>\n## `zendesk_ticket`",
"| Description: The ID of the Zendesk Support ticket created from this chat. Av... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_implementation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_cache_implementation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Changes the cache implementation for the named cache | "Changes the cache implementation for the named cache" | 321 | false | facetoe/zenpy | set_cache_implementation | 31,931 | |
LDU_FT/inveniosoftware-attic/invenio-upgrader/order_upgrades | LDU_FT | [
"<BEGIN>\n## `has_table`",
"Return True if table exists, False otherwise.\n<END>",
"<BEGIN>\n## `pending`",
"Command for showing upgrades ready to be applied.\n<END>",
"<BEGIN>\n## `applied`",
"Command for showing all upgrades already applied.\n<END>",
"<BEGIN>\n## `release`",
"Create a new release up... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the order_upgrades API.
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 order_upgrades API.
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... | Order upgrades according to their dependencies.
(topological sort using
Kahn's algorithm - http://en.wikipedia.org/wiki/Topological_sorting).
:param upgrades: Dict of upgrades
:param history: Dict of applied upgrades | "Order upgrades according to their dependencies.\n\n (topological sort using\n Kahn's algorithm - http://en.wikipedia.org/wiki/Topological_sorting).\n\n :param upgrades: Dict of upgrades\n :param history: Dict of applied upgrades" | 59 | false | inveniosoftware-attic/invenio-upgrader | order_upgrades | 31,932 | |
LDU_FT/reorx/torext/finish | LDU_FT | [
"<BEGIN>\n## `format_request`",
"Override for better log format",
" Tornado format:\n [INFO 2015-03-24 11:29:57 app:521] 200 GET /static/css/lib/pure-min.css (127.0.0.1) 6.76ms\n Current format:\n [gevent.wsgi] INFO 127.0.0.1 - - [2015-03-24 11:18:45] \"GET /test HTTP/1.1\" 200 304 0... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the finish API.
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 finish API.
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 ... | Finishes this response, ending the HTTP request. | "Finishes this response, ending the HTTP request." | 70 | false | reorx/torext | finish | 31,933 | |
LDU_FT/hyperledger/indy-node/gen_txn_path | LDU_FT | [
"<BEGIN>\n## `init_domain_ledger`",
"This is usually an implementation of Ledger\n<END>",
"<BEGIN>\n## `update_txn_with_extra_data`",
"All the data of the transaction might not be stored in ledger so the\n extra data that is omitted from ledger needs to be fetched from the\n appropriate data sto... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gen_txn_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 gen_txn_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... | Return path to state as 'str' type or None | "Return path to state as 'str' type or None" | 109 | false | hyperledger/indy-node | gen_txn_path | 31,934 | |
LDU_FT/ContextLab/hypertools/reduce | LDU_FT | [
"<BEGIN>\n## `default_params`",
"Loads and updates default model parameters",
" Parameters\n ----------",
" model : str\n The name of a model",
" update_dict : dict\n A dict to update default parameters",
" Returns\n ----------",
" params : dict\n A dictionary o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reduce API.
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 reduce API.
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 ... | Reduces dimensionality of an array, or list of arrays
Parameters
----------
x : Numpy array or list of arrays
Dimensionality reduction using PCA is performed on this array.
reduce : str or dict
Decomposition/manifold learning model to use. Models supported: PCA,
IncrementalPCA... | "Reduces dimensionality of an array, or list of arrays\n\n Parameters\n ----------\n x : Numpy array or list of arrays\n Dimensionality reduction using PCA is performed on this array.\n\n reduce : str or dict\n Decomposition/manifold learning model to use. Models supported: PCA,\n Incr... | 239 | false | ContextLab/hypertools | reduce | 31,935 | |
LDU_FT/raamana/mrivis/verify_sampler | LDU_FT | [
"<BEGIN>\n## `checkerboard`",
"Checkerboard mixer.",
" Parameters\n ----------\n img_spec1 : str or nibabel image-like object\n MR image (or path to one) to be visualized",
" img_spec2 : str or nibabel image-like object\n MR image (or path to one) to be visualized",
" patch_size... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the verify_sampler API.
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 verify_sampler API.
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... | verifies the sampler requested is valid. | "verifies the sampler requested is valid." | 216 | false | raamana/mrivis | verify_sampler | 31,936 | |
LDU_FT/incf-nidash/nidmresults/add_object | LDU_FT | [
"<BEGIN>\n## `parse`",
"Parse a result directory to extract the pieces information to be\n stored in NIDM-Results.\n<END>",
"<BEGIN>\n## `add_object`",
"Add a NIDMObject to a NIDM-Results export.\n<END>",
"<BEGIN>\n## `_get_model_fitting`",
"Retreive model fitting with identifier 'mf_id' from the l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_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 extrac... | Add a NIDMObject to a NIDM-Results export. | "Add a NIDMObject to a NIDM-Results export." | 21 | false | incf-nidash/nidmresults | add_object | 31,937 | |
LDU_FT/pypa/twine/check_status_code | LDU_FT | [
"<BEGIN>\n## `from_args`",
"Return an UploadToDeprecatedPyPIDetected instance.\n<END>",
"<BEGIN>\n## `check_status_code`",
"Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected\n exception, but this is in case that breaks and it does.\n<END>",
"<BEGIN>\n## `no_positional`",
"A decorator that ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_status_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_status_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected
exception, but this is in case that breaks and it does. | "Shouldn't happen, thanks to the UploadToDeprecatedPyPIDetected\n exception, but this is in case that breaks and it does." | 14 | false | pypa/twine | check_status_code | 31,938 | |
LDU_FT/Hundemeier/sacn/start | LDU_FT | [
"<BEGIN>\n## `activate_output`",
"Activates a universe that's then starting to sending every second.\n See http://tsp.esta.org/tsp/documents/docs/E1-31-2016.pdf for more information\n :param universe: the universe to activate\n<END>",
"<BEGIN>\n## `deactivate_output`",
"Deactivates an existing s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the start API.
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 start API.
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... | Starts a new thread that handles the input. If a thread is already running, the thread will be restarted. | "Starts a new thread that handles the input. If a thread is already running, the thread will be restarted." | 32 | false | Hundemeier/sacn | start | 31,939 | |
LDU_FT/MatterMiners/cobald/load_name | LDU_FT | [
"<BEGIN>\n## `exclusive`",
"Mark a callable as exclusive",
" :param via: factory for a Lock to guard the callable",
" Guards the callable against being entered again before completion.\n Explicitly raises a :py:exc:`RuntimeError` on violation.",
" :note: If applied to a method, it is exclusive a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_name API.
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 load_name API.
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... | Load an object based on an absolute, dotted name | "Load an object based on an absolute, dotted name" | 74 | false | MatterMiners/cobald | load_name | 31,940 | |
LDU_FT/wickman/pystachio/load | LDU_FT | [
"<BEGIN>\n## `create`",
"Construct a List containing type 'klazz'.\n<END>",
"<BEGIN>\n## `new`",
"Create a fully reified type from a type schema.\n<END>",
"<BEGIN>\n## `load`",
"Determine all types touched by loading the type and deposit them into\n the particular namespace.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Determine all types touched by loading the type and deposit them into
the particular namespace. | "Determine all types touched by loading the type and deposit them into\n the particular namespace." | 29 | false | wickman/pystachio | load | 31,941 | |
LDU_FT/synw/dataswim/sort | LDU_FT | [
"<BEGIN>\n## `ndlayout_`",
"Create a Holoview NdLayout from a dictionnary of chart objects\n<END>",
"<BEGIN>\n## `layout_`",
"Returns a Holoview Layout from chart objects\n<END>",
"<BEGIN>\n## `_hline_bokeh_`",
"Returns an horizontal line from a column mean value\n<END>",
"<BEGIN>\n## `_sline_bokeh`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sort API.
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 sort API.
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... | Sorts the main dataframe according to the given column
:param col: column name
:type col: str
:example: ``ds.sort("Col 1")`` | "Sorts the main dataframe according to the given column\n\n :param col: column name\n :type col: str\n\n :example: ``ds.sort(\"Col 1\")``" | 393 | false | synw/dataswim | sort | 31,942 | |
LDU_FT/BD2KOnFHIR/i2b2model/clear_i2b2_tables | LDU_FT | [
"<BEGIN>\n## `change_column_length`",
"Change the column length in the supplied table\n<END>",
"<BEGIN>\n## `_db_urls`",
"Return the crc and ontology db urls\n :param opts: options\n :return: Tuple w/ crc and ontology url\n<END>",
"<BEGIN>\n## `_tables`",
"Return a list of all known tables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_i2b2_tables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clear_i2b2_tables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Remove all entries in the i2b2 tables for uploadid.
:param tables:
:param uploadid:
:return: | "Remove all entries in the i2b2 tables for uploadid.\n :param tables:\n :param uploadid:\n :return:" | 64 | false | BD2KOnFHIR/i2b2model | clear_i2b2_tables | 31,943 | |
LDU_FT/thespacedoctor/neddy/_split_incoming_queries_into_batches | LDU_FT | [
"<BEGIN>\n## `get`",
"*get the conesearch object*",
" **Return:**\n - ``conesearch``",
" .. todo::",
" - @review: when complete, clean get method\n - @review: when complete add logging\n<END>",
"<BEGIN>\n## `_get_ned_query_url`",
"*single ned conesearch*",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_incoming_queries_into_batches API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _split_incoming_queries_into_batches API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates i... | *split incoming queries into batches*
**Key Arguments:**
- ``sources`` -- sources to split into batches
- ``searchParams`` -- search params associated with batches
**Return:**
- ``theseBatches`` -- list of batches
- ``theseBatchParams`` -- params associa... | "*split incoming queries into batches*\n\n **Key Arguments:**\n - ``sources`` -- sources to split into batches\n - ``searchParams`` -- search params associated with batches\n\n **Return:**\n - ``theseBatches`` -- list of batches\n - ``theseBatchParams`` -- param... | 68 | false | thespacedoctor/neddy | _split_incoming_queries_into_batches | 31,944 | |
LDU_FT/scot-dev/scot/copytree | LDU_FT | [
"<BEGIN>\n## `ignore_patterns`",
"Function that can be used as copytree() ignore parameter.",
" Patterns is a sequence of glob-style patterns\n that are used to exclude files\n<END>",
"<BEGIN>\n## `copytree`",
"Recursively copy a directory tree using copy2().",
" The destination directory must no... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copytree API.
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 copytree API.
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... | Recursively copy a directory tree using copy2().
The destination directory must not already exist.
If exception(s) occur, an Error is raised with a list of reasons.
If the optional symlinks flag is true, symbolic links in the
source tree result in symbolic links in the destination tree; if
it is f... | "Recursively copy a directory tree using copy2().\n\n The destination directory must not already exist.\n If exception(s) occur, an Error is raised with a list of reasons.\n\n If the optional symlinks flag is true, symbolic links in the\n source tree result in symbolic links in the destination tree; if\n ... | 381 | false | scot-dev/scot | copytree | 31,945 | |
LDU_FT/gregoil/ipdbugger/visit_Call | LDU_FT | [
"<BEGIN>\n## `start_debugging`",
"Start a debugging session after catching an exception.",
" This prints the traceback and start ipdb session in the frame of the error.\n<END>",
"<BEGIN>\n## `get_last_lineno`",
"Recursively find the last line number of the ast node.\n<END>",
"<BEGIN>\n## `debug`",
"A... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the visit_Call API.
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 visit_Call API.
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... | Propagate 'debug' wrapper into inner function calls if needed.
Args:
node (ast.AST): node statement to surround. | "Propagate 'debug' wrapper into inner function calls if needed.\n\n Args:\n node (ast.AST): node statement to surround." | 23 | false | gregoil/ipdbugger | visit_Call | 31,946 | |
LDU_FT/ethereum/pyethereum/length_prefix | LDU_FT | [
"<BEGIN>\n## `_canonical_type`",
"Replace aliases to the corresponding type to compute the ids.\n<END>",
"<BEGIN>\n## `method_id`",
"Return the unique method id.",
" The signature is defined as the canonical expression of the basic\n prototype, i.e. the function name with the parenthesised list of par... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the length_prefix API.
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 length_prefix API.
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... | Construct the prefix to lists or strings denoting their length.
:param length: the length of the item in bytes
:param offset: ``0x80`` when encoding raw bytes, ``0xc0`` when encoding a
list | "Construct the prefix to lists or strings denoting their length.\n\n :param length: the length of the item in bytes\n :param offset: ``0x80`` when encoding raw bytes, ``0xc0`` when encoding a\n list" | 138 | false | ethereum/pyethereum | length_prefix | 31,947 | |
LDU_FT/agile4you/SchemaFactory/bench_voluptuous | LDU_FT | [
"<BEGIN>\n## `bench_factory`",
"Benchmark for 1000 objects with 2 fields.\n<END>",
"<BEGIN>\n## `bench_voluptuous`",
"Benchmark for 1000 objects with 2 fields.\n<END>",
"<BEGIN>\n## `bench_serpy`",
"Beanchmark for 1000 objects with 2 fields.\n<END>",
"<BEGIN>\n## `is_valid`",
"Validate value before ac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the bench_voluptuous API.
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 bench_voluptuous API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Benchmark for 1000 objects with 2 fields. | "Benchmark for 1000 objects with 2 fields." | 23 | false | agile4you/SchemaFactory | bench_voluptuous | 31,948 | |
LDU_FT/fossasia/AYABInterface/camel_case_to_under_score | LDU_FT | [
"<BEGIN>\n## `get`",
"Return the needle positions or None.",
" :param int line_number: the number of the line\n :rtype: list\n :return: the needle positions for a specific line specified by\n :paramref:`line_number` or :obj:`None` if no were given\n<END>",
"<BEGIN>\n## `get_bytes... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the camel_case_to_under_score 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 camel_case_to_under_score API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi... | Return the underscore name of a camel case name.
:param str camel_case_name: a name in camel case such as
``"ACamelCaseName"``
:return: the name using underscores, e.g. ``"a_camel_case_name"``
:rtype: str | "Return the underscore name of a camel case name.\n\n :param str camel_case_name: a name in camel case such as\n ``\"ACamelCaseName\"``\n :return: the name using underscores, e.g. ``\"a_camel_case_name\"``\n :rtype: str" | 79 | false | fossasia/AYABInterface | camel_case_to_under_score | 31,949 | |
LDU_FT/7sDream/zhihu-py3/top_authors | LDU_FT | [
"<BEGIN>\n## `vote`",
"给答案或文章点赞或取消点赞",
" :param Answer/Post something: 需要点赞的答案或文章对象\n :param str vote:\n ===== ================ ======\n 取值 说明 默认值\n ===== ================ ======\n up 赞同 √\n down 反对 X... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the top_authors API.
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 top_authors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | 获取最佳回答者
:return: 此话题下最佳回答者,一般来说是5个,要不就没有,返回生成器
:rtype: Author.Iterable | "获取最佳回答者\n\n :return: 此话题下最佳回答者,一般来说是5个,要不就没有,返回生成器\n :rtype: Author.Iterable" | 234 | false | 7sDream/zhihu-py3 | top_authors | 31,950 | |
LDU_FT/AustralianSynchrotron/lightflow/make_graph | LDU_FT | [
"<BEGIN>\n## `is_connected`",
"Returns the connection status of the data store.",
" Returns:\n bool: ``True`` if the data store is connected to the MongoDB server.\n<END>",
"<BEGIN>\n## `connect`",
"Establishes a connection to the MongoDB server.",
" Use the MongoProxy library in ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_graph API.
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... | Construct the task graph (dag) from a given schema.
Parses the graph schema definition and creates the task graph. Tasks are the
vertices of the graph and the connections defined in the schema become the edges.
A key in the schema dict represents a parent task and the value one or more
... | "Construct the task graph (dag) from a given schema.\n\n Parses the graph schema definition and creates the task graph. Tasks are the\n vertices of the graph and the connections defined in the schema become the edges.\n\n A key in the schema dict represents a parent task and the value one or more\n... | 404 | false | AustralianSynchrotron/lightflow | make_graph | 31,951 | |
LDU_FT/Julius2342/pyvlx/handle_frame | LDU_FT | [
"<BEGIN>\n## `add`",
"Add Node, replace existing node if node with node_id is present.\n<END>",
"<BEGIN>\n## `load`",
"Load nodes from KLF 200, if no node_id is specified all nodes are loaded.\n<END>",
"<BEGIN>\n## `handle_frame`",
"Handle incoming API frame, return True if this was the expected frame.\n<... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_frame API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Handle incoming API frame, return True if this was the expected frame. | "Handle incoming API frame, return True if this was the expected frame." | 74 | false | Julius2342/pyvlx | handle_frame | 31,952 | |
LDU_FT/Cito/DBUtils/_store | LDU_FT | [
"<BEGIN>\n## `connection`",
"Get a steady, cached DB-API 2 connection from the pool.",
" If shareable is set and the underlying DB-API 2 allows it,\n then the connection may be shared with other threads.\n<END>",
"<BEGIN>\n## `unshare`",
"Decrease the share of a connection in the shared cache.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _store API.
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 _store API.
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 ... | Store a database connection for subsequent use. | "Store a database connection for subsequent use." | 80 | false | Cito/DBUtils | _store | 31,953 | |
LDU_FT/johnnoone/aioconsul/info | LDU_FT | [
"<BEGIN>\n## `extract_blocking`",
"Extract index and watch from :class:`Blocking`",
" Parameters:\n obj (Blocking): the blocking object\n Returns:\n tuple: index and watch\n<END>",
"<BEGIN>\n## `consistency_middleware`",
"Set consistency",
" Order:",
" 1. consistency request\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Queries a given session
Parameters:
session (ObjectID): Session ID
dc (str): Specify datacenter that will be used.
Defaults to the agent's local datacenter.
watch (Blocking): Do a blocking query
consistency (Consistency): Force consistency
... | "Queries a given session\n\n Parameters:\n session (ObjectID): Session ID\n dc (str): Specify datacenter that will be used.\n Defaults to the agent's local datacenter.\n watch (Blocking): Do a blocking query\n consistency (Consistency): Force consi... | 403 | false | johnnoone/aioconsul | info | 31,954 | |
LDU_FT/PMBio/limix-backup/trainGP | LDU_FT | [
"<BEGIN>\n## `PCA`",
"run PCA, retrieving the first (components) principle components\n\treturn [s0, eig, w0]\n\ts0: factors\n\tw0: weights\n<END>",
"<BEGIN>\n## `PC_varExplained`",
"Run PCA and calculate the cumulative fraction of variance\n Args:\n Y: phenotype values\n standardize: if True... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the trainGP API.
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 trainGP API.
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... | Train the gp
Args:
fast: if true and the gp has not been initialized, initializes a kronSum gp
scales0: initial variance components params
fixed0: initial fixed effect params | "Train the gp\n \n Args:\n fast: if true and the gp has not been initialized, initializes a kronSum gp\n scales0:\tinitial variance components params\n fixed0: initial fixed effect params" | 428 | false | PMBio/limix-backup | trainGP | 31,955 | |
LDU_FT/DarkEnergySurvey/ugali/applyFracdet | LDU_FT | [
"<BEGIN>\n## `integrate`",
"Calculate the 2D integral of the 1D surface brightness profile \n (i.e, the flux) between rmin and rmax (elliptical radii). ",
" Parameters:\n -----------\n rmin : minimum integration radius (deg)\n rmax : maximum integration radius (deg)",
" ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the applyFracdet API.
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 applyFracdet API.
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... | We want to enforce minimum fracdet for a satellite to be considered detectable
True is passes fracdet cut | "We want to enforce minimum fracdet for a satellite to be considered detectable\n\n True is passes fracdet cut" | 614 | false | DarkEnergySurvey/ugali | applyFracdet | 31,956 | |
LDU_FT/CityOfZion/neo-python-rpc/get_block_sysfee | LDU_FT | [
"<BEGIN>\n## `get_account`",
"Look up an account on the blockchain. Sample output:",
" Args:\n address: (str) address to lookup ( in format 'AXjaFSP23Jkbe6Pk9pPGT6NBDs1HVdqaXK')\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) end... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_block_sysfee API.
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_block_sysfee API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get the system fee of a block by height. This is used in calculating gas claims
Args:
height: (int) height of the block to lookup
id: (int, optional) id to use for response tracking
endpoint: (RPCEndpoint, optional) endpoint to specify to use
Returns:
js... | "Get the system fee of a block by height. This is used in calculating gas claims\n Args:\n height: (int) height of the block to lookup\n id: (int, optional) id to use for response tracking\n endpoint: (RPCEndpoint, optional) endpoint to specify to use\n\n Returns:\n ... | 76 | false | CityOfZion/neo-python-rpc | get_block_sysfee | 31,957 | |
LDU_FT/OpenGov/python_data_wrap/read | LDU_FT | [
"<BEGIN>\n## `read`",
"Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.",
" TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read API.
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 read API.
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... | Loads an arbitrary file type (xlsx, xls, or csv like) and returns
a list of 2D tables. For csv files this will be a list of one table,
but excel formats can have many tables/worksheets.
TODO:
Add wrapper which can be closed/exited on each file type which cleans
up the file handler.
Arg... | "Loads an arbitrary file type (xlsx, xls, or csv like) and returns\n a list of 2D tables. For csv files this will be a list of one table,\n but excel formats can have many tables/worksheets.\n\n TODO:\n Add wrapper which can be closed/exited on each file type which cleans\n up the file handler.\n... | 94 | false | OpenGov/python_data_wrap | read | 31,958 | |
LDU_FT/ryanvarley/ExoData/_getPlotData | LDU_FT | [
"<BEGIN>\n## `load_db_from_url`",
"Loads the database from a gzipped version of the system folder, by default the one located in the oec_gzip repo\n in the OpenExoplanetCatalogue GitHub group.",
" The database is loaded from the url in memory",
" :param url: url to load (must be gzipped version of sy... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getPlotData API.
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 _getPlotData API.
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... | Turns the resultsByClass Dict into a list of bin groups skipping the uncertain group if empty
return: (label list, ydata list)
:rtype: tuple(list(str), list(float)) | "Turns the resultsByClass Dict into a list of bin groups skipping the uncertain group if empty\n\n return: (label list, ydata list)\n :rtype: tuple(list(str), list(float))" | 133 | false | ryanvarley/ExoData | _getPlotData | 31,959 | |
LDU_FT/QUANTAXIS/QUANTAXIS/QA_fetch_get_commodity_option_CF_contract_time_to_market | LDU_FT | [
"<BEGIN>\n## `start_market`",
"start the market thread and register backtest broker thread\n QAMarket 继承QATrader, QATrader 中有 trade_engine属性 , trade_engine类型是QA_Engine从 QA_Thread继承\n<END>",
"<BEGIN>\n## `message`",
"the standard message which can be transfer\n<END>",
"<BEGIN>\n## `init_hold_with_acco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QA_fetch_get_commodity_option_CF_contract_time_to_market API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the QA_fetch_get_commodity_option_CF_contract_time_to_market API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, a... | 铜期权 CU 开头 上期证
豆粕 M开头 大商所
白糖 SR开头 郑商所
测试中发现,行情不太稳定 ? 是 通达信 IP 的问题 ? | "铜期权 CU 开头 上期证\n 豆粕 M开头 大商所\n 白糖 SR开头 郑商所\n 测试中发现,行情不太稳定 ? 是 通达信 IP 的问题 ?" | 835 | false | QUANTAXIS/QUANTAXIS | QA_fetch_get_commodity_option_CF_contract_time_to_market | 31,960 | |
LDU_FT/hydpy-dev/hydpy/nmb_weights_hidden | LDU_FT | [
"<BEGIN>\n## `xml_replace`",
"Read the content of an XML template file (XMLT), apply the given\n `replacements` to its substitution markers, and write the result into\n an XML file with the same name but ending with `xml` instead of `xmlt`.",
" First, we write an XMLT file, containing a regular HTML c... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the nmb_weights_hidden 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 nmb_weights_hidden 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... | Number of hidden weights.
>>> from hydpy import ANN
>>> ann = ANN(None)
>>> ann(nmb_inputs=2, nmb_neurons=(4, 3, 2), nmb_outputs=3)
>>> ann.nmb_weights_hidden
18 | "Number of hidden weights.\n\n >>> from hydpy import ANN\n >>> ann = ANN(None)\n >>> ann(nmb_inputs=2, nmb_neurons=(4, 3, 2), nmb_outputs=3)\n >>> ann.nmb_weights_hidden\n 18" | 3,847 | true | hydpy-dev/hydpy | nmb_weights_hidden | 31,961 | |
LDU_FT/hsolbrig/pyjsg/as_python | LDU_FT | [
"<BEGIN>\n## `do_parse`",
"Parse the jsg in infilename and save the results in outfilename\n :param infilename: file containing jsg\n :param outfilename: target python file\n :param verbose: verbose output flag\n :return: true if success\n<END>",
"<BEGIN>\n## `parse`",
"Parse the text in infile an... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_python API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_python API.
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... | Return the python representation of the class represented by this object | "Return the python representation of the class represented by this object" | 146 | false | hsolbrig/pyjsg | as_python | 31,962 | |
LDU_FT/noahbenson/neuropythy/calc_anchors | LDU_FT | [
"<BEGIN>\n## `guess_import_format`",
"guess_import_format(filename) attempts to guess the file format for the given filename; it does\n this guessing by looking at the file extension and using registered sniff-tests from\n importers. It will not attempt to load the file, so if the extension of the filen... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_anchors API.
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 calc_anchors API.
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... | calc_anchors is a calculator that creates a set of anchor instructions for a registration.
Required afferent parameters:
@ invert_rh_field_sign May be set to True (default is False) to indicate that the right
hemisphere's field signs will be incorrect relative to the model; this generally should be
... | "calc_anchors is a calculator that creates a set of anchor instructions for a registration.\n\n Required afferent parameters:\n @ invert_rh_field_sign May be set to True (default is False) to indicate that the right\n hemisphere's field signs will be incorrect relative to the model; this generally should... | 815 | false | noahbenson/neuropythy | calc_anchors | 31,963 | |
LDU_FT/rootpy/rootpy/rm | LDU_FT | [
"<BEGIN>\n## `total`",
"Return the total yield and its associated statistical uncertainty.\n<END>",
"<BEGIN>\n## `sys_names`",
"Return a list of unique systematic names from OverallSys and HistoSys\n<END>",
"<BEGIN>\n## `iter_sys`",
"Iterate over sys_name, overall_sys, histo_sys.\n overall_sys or h... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the rm API.
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 rm API.
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... | Delete an object at `path` relative to this directory | "Delete an object at `path` relative to this directory" | 878 | false | rootpy/rootpy | rm | 31,964 | |
LDU_FT/SolutionsCloud/apidoc/render | LDU_FT | [
"<BEGIN>\n## `_init_config`",
"return command's configuration from call's arguments\n<END>",
"<BEGIN>\n## `_merge_files`",
"Combine the input files to a big output file\n<END>",
"<BEGIN>\n## `create_from_name_and_dictionary`",
"Return a populated object Object from dictionary datas\n<END>",
"<BEGIN>\n##... | 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 ... | Render the documentation as defined in config Object | "Render the documentation as defined in config Object" | 42 | false | SolutionsCloud/apidoc | render | 31,965 | |
LDU_FT/nabla-c0d3/sslyze/_get_and_verify_certificate_chain | LDU_FT | [
"<BEGIN>\n## `do_handshake_with_robot`",
"Modified do_handshake() to send a ROBOT payload and return the result.\n<END>",
"<BEGIN>\n## `get_client_key_exchange_record`",
"A client key exchange record with a hardcoded pre_master_secret, and a valid or invalid padding.\n<END>",
"<BEGIN>\n## `get_finished_reco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_and_verify_certificate_chain 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 _get_and_verify_certificate_chain API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its ... | Connects to the target server and uses the supplied trust store to validate the server's certificate.
Returns the server's certificate and OCSP response. | "Connects to the target server and uses the supplied trust store to validate the server's certificate.\n Returns the server's certificate and OCSP response." | 92 | false | nabla-c0d3/sslyze | _get_and_verify_certificate_chain | 31,966 | |
LDU_FT/venmo/slouch/_bot_identifier | LDU_FT | [
"<BEGIN>\n## `_dual_decorator`",
"This is a decorator that converts a paramaterized decorator for\n no-param use.",
" source: http://stackoverflow.com/questions/3888158\n<END>",
"<BEGIN>\n## `help`",
"Usage: help [<command>]",
" With no arguments, print the form of all supported commands.\n Wi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _bot_identifier API.
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 _bot_identifier API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Return the identifier used to address this bot in this message.
If one is not found, return None.
:param message: a message dict from the slack api. | "Return the identifier used to address this bot in this message.\n If one is not found, return None.\n\n :param message: a message dict from the slack api." | 39 | false | venmo/slouch | _bot_identifier | 31,967 | |
LDU_FT/edeposit/edeposit.amqp.aleph/_import_epublication | LDU_FT | [
"<BEGIN>\n## `from_xml`",
"Pick informations from :class:`.MARCXMLRecord` object and use it to\n build :class:`.SemanticInfo` structure.",
" Args:\n xml (str/MARCXMLRecord): MarcXML which will be converted to\n SemanticInfo. In case of str, ``<record>`` tag is required.",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import_epublication API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _import_epublication API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Fill internal property ._POST dictionary with data from EPublication. | "Fill internal property ._POST dictionary with data from EPublication." | 102 | false | edeposit/edeposit.amqp.aleph | _import_epublication | 31,968 | |
LDU_FT/thomasw/djproxy/proxy | LDU_FT | [
"<BEGIN>\n## `generate_proxy`",
"Generate a ProxyClass based view that uses the passed base_url.\n<END>",
"<BEGIN>\n## `generate_routes`",
"Generate a list of urls that map to generated proxy views.",
" generate_routes({\n 'test_proxy': {\n 'base_url': 'https://google.com/',\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the proxy API.
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 proxy API.
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... | Retrieve the upstream content and build an HttpResponse. | "Retrieve the upstream content and build an HttpResponse." | 26 | false | thomasw/djproxy | proxy | 31,969 | |
LDU_FT/perrygeo/simanneal/__record | LDU_FT | [
"<BEGIN>\n## `distance`",
"Calculates distance between two latitude-longitude coordinates.\n<END>",
"<BEGIN>\n## `round_figures`",
"Returns x rounded to n significant figures.\n<END>",
"<BEGIN>\n## `set_schedule`",
"Takes the output from `auto` and sets the attributes\n<END>",
"<BEGIN>\n## `copy_state`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __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 extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the __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 extracte... | Reads and returns a dbf record row as a list of values. | "Reads and returns a dbf record row as a list of values." | 67 | false | perrygeo/simanneal | __record | 31,970 | |
LDU_FT/kmarekspartz/props/set_of | LDU_FT | [
"<BEGIN>\n## `for_all`",
"Takes a list of generators and returns a closure which takes a property,\n then tests the property against arbitrary instances of the generators.\n<END>",
"<BEGIN>\n## `maybe_a`",
"Generates either an arbitrary value of the specified generator or None.\n This is a class factory... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_of API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Generates a set consisting solely of the specified generators.
This is a class factory, it makes a class which is a closure around the
specified generators. | "Generates a set consisting solely of the specified generators.\n This is a class factory, it makes a class which is a closure around the\n specified generators." | 14 | false | kmarekspartz/props | set_of | 31,971 | |
LDU_FT/hugapi/hug/request | LDU_FT | [
"<BEGIN>\n## `arguments`",
"Returns the name of all arguments a function takes\n<END>",
"<BEGIN>\n## `generate_accepted_kwargs`",
"Dynamically creates a function that when called with dictionary of arguments will produce a kwarg that's\n compatible with the supplied function\n<END>",
"<BEGIN>\n## `aut... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the request API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Populate connection pool, send message, return BytesIO, and cleanup | "Populate connection pool, send message, return BytesIO, and cleanup" | 259 | false | hugapi/hug | request | 31,972 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.