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/rackerlabs/fastfood/merge | LDU_FT | [
"<BEGIN>\n## `metadata`",
"Return dict representation of this cookbook's metadata.rb .\n<END>",
"<BEGIN>\n## `berksfile`",
"Return this cookbook's Berksfile instance.\n<END>",
"<BEGIN>\n## `from_dict`",
"Create a MetadataRb instance from a dict.\n<END>",
"<BEGIN>\n## `depends_statement`",
"Return a va... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the merge API.
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 merge API.
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... | Add requirements from 'other' Berksfile into this one. | "Add requirements from 'other' Berksfile into this one." | 68 | false | rackerlabs/fastfood | merge | 22,473 | |
LDU_FT/kata198/QueryableList/copy | LDU_FT | [
"<BEGIN>\n## `getFiltersFromArgs`",
"getFiltersFromArgs - Returns a dictionary of each filter type, and the corrosponding field/value",
" @param kwargs <dict> - Dictionary of filter arguments",
" @return - Dictionary of each filter type (minus the ones that are optimized into others), each conta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the copy API.
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 copy API.
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... | copy - Create a copy of this query.
@return <QueryBuilder> - a copy of this query | "copy - Create a copy of this query.\n \n @return <QueryBuilder> - a copy of this query" | 45 | false | kata198/QueryableList | copy | 22,474 | |
LDU_FT/spacetelescope/stsci.tools/_pushMessages | LDU_FT | [
"<BEGIN>\n## `stsci`",
"For STScI GEIS files, need to do extra steps.\n<END>",
"<BEGIN>\n## `stsci2`",
"For STScI GEIS files, need to do extra steps.\n<END>",
"<BEGIN>\n## `readgeis`",
"Input GEIS files \"input\" will be read and a HDUList object will\n be returned.",
" The user can use the ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _pushMessages API.
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 _pushMessages API.
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... | Internal callback used to make sure the msg list keeps moving. | "Internal callback used to make sure the msg list keeps moving." | 917 | false | spacetelescope/stsci.tools | _pushMessages | 22,475 | |
LDU_FT/lago-project/lago/format | LDU_FT | [
"<BEGIN>\n## `expose`",
"Decorator to be used with :class:`SDKWrapper`. This decorator indicates\n that the wrapped method or class should be exposed in the proxied object.",
" Args:\n func(types.FunctionType/types.MethodType): function to decorate",
" Returns:\n None\n<END>",
"<BEGIN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
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 format API.
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 ... | Adds colors to a log record and formats it with the default
Args:
record (logging.LogRecord): log record to format
Returns:
str: The colored and formatted record string | "Adds colors to a log record and formats it with the default\n\n Args:\n record (logging.LogRecord): log record to format\n\n Returns:\n str: The colored and formatted record string" | 718 | false | lago-project/lago | format | 22,476 | |
LDU_FT/relekang/python-semantic-release/circle | LDU_FT | [
"<BEGIN>\n## `parse_commit_message`",
"Parses a commit message according to the 1.0 version of python-semantic-release. It expects\n a tag of some sort in the commit message and will use the rest of the first line as changelog\n content.",
" :param message: A string of a commit message.\n :raises Un... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the circle API.
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 circle API.
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 ... | Performs necessary checks to ensure that the circle build is one
that should create releases.
:param branch: The branch the environment should be running against. | "Performs necessary checks to ensure that the circle build is one\n that should create releases.\n\n :param branch: The branch the environment should be running against." | 103 | false | relekang/python-semantic-release | circle | 22,477 | |
LDU_FT/instana/python-sensor/build_registered_span | LDU_FT | [
"<BEGIN>\n## `run`",
"Span a background thread to periodically report queued spans\n<END>",
"<BEGIN>\n## `record_span`",
"Convert the passed BasicSpan into an JsonSpan and\n add it to the span queue\n<END>",
"<BEGIN>\n## `build_registered_span`",
"Takes a BasicSpan and converts it into a registered... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_registered_span 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 build_registered_span API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Takes a BasicSpan and converts it into a registered JsonSpan | "Takes a BasicSpan and converts it into a registered JsonSpan" | 76 | false | instana/python-sensor | build_registered_span | 22,478 | |
LDU_FT/Blueqat/Blueqat/get_time_evolution | LDU_FT | [
"<BEGIN>\n## `pauli`",
"Convert to pauli operators of universal gate model.\n\tRequires blueqat.\n<END>",
"<BEGIN>\n## `make_qs`",
"Make sympy symbols q0, q1, ...",
" Args:\n n(int), m(int, optional):\n If specified both n and m, returns [qn, q(n+1), ..., qm],\n Only n is spe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_time_evolution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_time_evolution API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the function to append the time evolution of this term.
Returns:
function(circuit: Circuit, t: float):
Add gates for time evolution to `circuit` with time `t` | "Get the function to append the time evolution of this term.\n\n Returns:\n function(circuit: Circuit, t: float):\n Add gates for time evolution to `circuit` with time `t`" | 117 | false | Blueqat/Blueqat | get_time_evolution | 22,479 | |
LDU_FT/ChristopherRabotin/bungiesearch/get_model_index | LDU_FT | [
"<BEGIN>\n## `update_index`",
"Updates the index for the provided model_items.\n :param model_items: a list of model_items (django Model instances, or proxy instances) which are to be indexed/updated or deleted.\n If action is 'index', the model_items must be serializable objects. If action is 'delete', the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_index API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_model_index API.
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... | Returns the default model index for the given model, or the list of indices if default is False.
:param model: model name as a string.
:raise KeyError: If the provided model does not have any index associated. | "Returns the default model index for the given model, or the list of indices if default is False.\n :param model: model name as a string.\n :raise KeyError: If the provided model does not have any index associated." | 46 | false | ChristopherRabotin/bungiesearch | get_model_index | 22,480 | |
LDU_FT/libyal/dtfabric/_ReadStorageDataTypeDefinition | LDU_FT | [
"<BEGIN>\n## `Main`",
"The main program function.",
" Returns:\n bool: True if successful or False if not.\n<END>",
"<BEGIN>\n## `CheckDirectory`",
"Validates definition files in a directory.",
" Args:\n path (str): path of the definition file.\n extension (Optional[str]): extension of th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ReadStorageDataTypeDefinition 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 _ReadStorageDataTypeDefinition API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Reads a storage data type definition.
Args:
definitions_registry (DataTypeDefinitionsRegistry): data type definitions
registry.
definition_values (dict[str, object]): definition values.
data_type_definition_class (str): data type definition class.
definition_name (str): name of th... | "Reads a storage data type definition.\n\n Args:\n definitions_registry (DataTypeDefinitionsRegistry): data type definitions\n registry.\n definition_values (dict[str, object]): definition values.\n data_type_definition_class (str): data type definition class.\n definition_name (str): na... | 373 | false | libyal/dtfabric | _ReadStorageDataTypeDefinition | 22,481 | |
LDU_FT/KartikTalwar/Duolingo/get_known_topics | LDU_FT | [
"<BEGIN>\n## `_login`",
"Authenticate through ``https://www.duolingo.com/login``.\n<END>",
"<BEGIN>\n## `get_activity_stream`",
"Get user's activity stream from\n ``https://www.duolingo.com/stream/<user_id>?before=<date> if before\n date is given or else\n ``https://www.duolingo.com/activ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_known_topics API.
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_known_topics API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Return the topics learned by a user in a language. | "Return the topics learned by a user in a language." | 41 | false | KartikTalwar/Duolingo | get_known_topics | 22,482 | |
LDU_FT/elastic/apm-agent-python/deprecated | LDU_FT | [
"<BEGIN>\n## `extract_signature`",
"Extracts a minimal signature from a given SQL query\n :param sql: the SQL statement\n :return: a string representing the signature\n<END>",
"<BEGIN>\n## `_timed_queue_join`",
"implementation of Queue.join which takes a 'timeout' argument",
" returns True on s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the deprecated API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | This is a decorator which can be used to mark functions
as deprecated. It will result in a warning being emitted
when the function is used. | "This is a decorator which can be used to mark functions\n as deprecated. It will result in a warning being emitted\n when the function is used." | 163 | false | elastic/apm-agent-python | deprecated | 22,483 | |
LDU_FT/jay-johnson/network-pipeline/build_new_deep_neural_network_from_env_variables | LDU_FT | [
"<BEGIN>\n## `publish_processed_network_packets`",
"# Redis/RabbitMQ/SQS messaging endpoints for pub-sub\n routing_key = ev(\"PUBLISH_EXCHANGE\",\n \"reporting.accounts\")\n queue_name = ev(\"PUBLISH_QUEUE\",\n \"reporting.accounts\")\n auth_url = ev(\"PUB_BROKER_UR... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_new_deep_neural_network_from_env_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_new_deep_neural_network_from_env_variables API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END>... | build_new_deep_neural_network_from_env_variables
Build a new deep neural network from environment variables:
``CSV_FILE`` - file to process created during prepare dataset
``CSV_META_FILE`` - metadata header file created during prepare dataset
``PREDICT_FEATURE`` - column to predict
``TEST_SIZE`` -... | "build_new_deep_neural_network_from_env_variables\n\n Build a new deep neural network from environment variables:\n\n ``CSV_FILE`` - file to process created during prepare dataset\n ``CSV_META_FILE`` - metadata header file created during prepare dataset\n ``PREDICT_FEATURE`` - column to predict\n ``TEST_... | 140 | false | jay-johnson/network-pipeline | build_new_deep_neural_network_from_env_variables | 22,484 | |
LDU_FT/mottosso/be/from_int | LDU_FT | [
"<BEGIN>\n## `pager`",
"Decide what method to use for paging through text.\n<END>",
"<BEGIN>\n## `from_int`",
"Backwards-compatibility for the old retries format.\n<END>",
"<BEGIN>\n## `get_backoff_time`",
"Formula for computing the current backoff",
" :rtype: float\n<END>",
"<BEGIN>\n## `is_fo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_int API.
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 from_int API.
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... | Backwards-compatibility for the old retries format. | "Backwards-compatibility for the old retries format." | 359 | false | mottosso/be | from_int | 22,485 | |
LDU_FT/materialsproject/custodian/setup | LDU_FT | [
"<BEGIN>\n## `from_spec`",
"Load a Custodian instance where the jobs are specified from a\n structure and a spec dict. This allows simple\n custom job sequences to be constructed quickly via a YAML file.",
" Args:\n spec (dict): A dict specifying job. A sample of the dict in\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Performs initial setup for VaspJob, including overriding any settings
and backing up. | "Performs initial setup for VaspJob, including overriding any settings\n and backing up." | 90 | false | materialsproject/custodian | setup | 22,486 | |
LDU_FT/mathandy/svgpathtools/reversed | LDU_FT | [
"<BEGIN>\n## `big_bounding_box`",
"Finds a BB containing a collection of paths, Bezier path segments, and\n points (given as complex numbers).\n<END>",
"<BEGIN>\n## `disvg`",
"Takes in a list of paths and creates an SVG file containing said paths.\n REQUIRED INPUTS:\n :param paths - a list of pat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reversed API.
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 reversed API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | returns a copy of the QuadraticBezier object with its orientation
reversed. | "returns a copy of the QuadraticBezier object with its orientation\n reversed." | 252 | false | mathandy/svgpathtools | reversed | 22,487 | |
LDU_FT/sci-bots/serial-device/on_message | LDU_FT | [
"<BEGIN>\n## `_comports`",
"Returns\n -------\n pandas.DataFrame\n Table containing descriptor, and hardware ID of each available COM\n port, indexed by port (e.g., \"COM4\").\n<END>",
"<BEGIN>\n## `comports`",
".. versionchanged:: 0.9\n Add :data:`check_available` keyword argument ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Callback for when a ``PUBLISH`` message is received from the broker. | "Callback for when a ``PUBLISH`` message is received from the broker." | 63 | false | sci-bots/serial-device | on_message | 22,488 | |
LDU_FT/tisimst/mcerp/ChiSquared | LDU_FT | [
"<BEGIN>\n## `correlate`",
"Force a correlation matrix on a set of statistically distributed objects.\r\n This function works on objects in-place.\r",
" Parameters\r\n ----------\r\n params : array\r\n An array of of uv objects.\r\n corrmat : 2d-array\r\n The correlation matrix to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the ChiSquared API.
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 ChiSquared API.
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... | A Chi-Squared random variate
Parameters
----------
k : int
The degrees of freedom of the distribution (must be greater than one) | "A Chi-Squared random variate\n \n Parameters\n ----------\n k : int\n The degrees of freedom of the distribution (must be greater than one)" | 166 | false | tisimst/mcerp | ChiSquared | 22,489 | |
LDU_FT/ibis-project/ibis/wrap_uda | LDU_FT | [
"<BEGIN>\n## `compile`",
"Force compilation of expression for the SQLite target\n<END>",
"<BEGIN>\n## `find_names`",
"Return the unique :class:`ast.Name` instances in an AST.",
" Parameters\n ----------\n node : ast.AST",
" Returns\n -------\n unique_names : List[ast.Name]",
" Examp... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the wrap_uda API.
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 wrap_uda API.
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... | Creates a callable aggregation function object. Must be created in Impala
to be used
Parameters
----------
hdfs_file: .so file that contains relevant UDA
inputs: list of strings denoting ibis datatypes
output: string denoting ibis datatype
update_fn: string
Library symbol name for upd... | "Creates a callable aggregation function object. Must be created in Impala\n to be used\n\n Parameters\n ----------\n hdfs_file: .so file that contains relevant UDA\n inputs: list of strings denoting ibis datatypes\n output: string denoting ibis datatype\n update_fn: string\n Library symbol na... | 1,079 | true | ibis-project/ibis | wrap_uda | 22,490 | |
LDU_FT/jaraco/jaraco.functools/retry | LDU_FT | [
"<BEGIN>\n## `compose`",
"Compose any number of unary functions into a single unary function.",
"\t>>> import textwrap\n\t>>> from six import text_type\n\t>>> stripped = text_type.strip(textwrap.dedent(compose.__doc__))\n\t>>> compose(text_type.strip, textwrap.dedent)(compose.__doc__) == stripped\n\tTrue",
"\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the retry API.
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 retry API.
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... | Decorator wrapper for retry_call. Accepts arguments to retry_call
except func and then returns a decorator for the decorated function.
Ex:
>>> @retry(retries=3)
... def my_func(a, b):
... "this is my funk"
... print(a, b)
>>> my_func.__doc__
'this is my funk' | "Decorator wrapper for retry_call. Accepts arguments to retry_call\n\texcept func and then returns a decorator for the decorated function.\n\n\tEx:\n\n\t>>> @retry(retries=3)\n\t... def my_func(a, b):\n\t... \"this is my funk\"\n\t... print(a, b)\n\t>>> my_func.__doc__\n\t'this is my funk'" | 65 | false | jaraco/jaraco.functools | retry | 22,491 | |
LDU_FT/buzzfeed/caliendo/get_replacement_method | LDU_FT | [
"<BEGIN>\n## `increment`",
"Static method used to increment the depth of a context belonging to 'method'",
" :param function method: A method with a context",
" :rtype: caliendo.hooks.Context\n :returns: The context instance for the method.\n<END>",
"<BEGIN>\n## `skip_once`",
"Indicat... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_replacement_method 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_replacement_method API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Returns the method to be applied in place of an original method. This method either executes a side effect, returns an rvalue, or implements caching in place of the method_to_patch
:param function method_to_patch: A reference to the method that will be patched.
:param mixed side_effect: The side effect to exec... | "Returns the method to be applied in place of an original method. This method either executes a side effect, returns an rvalue, or implements caching in place of the method_to_patch\n\n :param function method_to_patch: A reference to the method that will be patched.\n :param mixed side_effect: The side effect to ... | 177 | false | buzzfeed/caliendo | get_replacement_method | 22,492 | |
LDU_FT/jedie/DragonPy/hex_repr | LDU_FT | [
"<BEGIN>\n## `create_environment`",
"Creates a new environment in ``home_dir``.",
" If ``site_packages`` is true, then the global ``site-packages/``\n directory will be on the path.",
" If ``clear`` is true (default False) then the environment will\n first be cleared.\n<END>",
"<BEGIN>\n## `path... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hex_repr API.
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 hex_repr API.
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... | >>> hex_repr({"A":0x1,"B":0xabc})
'A=$01 B=$0abc' | ">>> hex_repr({\"A\":0x1,\"B\":0xabc})\n 'A=$01 B=$0abc'" | 223 | false | jedie/DragonPy | hex_repr | 22,493 | |
LDU_FT/jldantas/libmft/_is_related | LDU_FT | [
"<BEGIN>\n## `apply_fixup_array`",
"This function reads the fixup array and apply the correct values\n to the underlying binary stream. This function changes the bin_view\n in memory.",
" Args:\n bin_view (memoryview of bytearray) - The binary stream\n fx_offset (int) - Offset to the fixu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_related API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_related API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | This function checks if a child entry is related to the parent entry.
This is done by comparing the reference and sequence numbers. | "This function checks if a child entry is related to the parent entry.\n This is done by comparing the reference and sequence numbers." | 107 | false | jldantas/libmft | _is_related | 22,494 | |
LDU_FT/Jaymon/decorators/is_wrapped_arg | LDU_FT | [
"<BEGIN>\n## `is_wrapped_arg`",
"decide if this decorator was called with arguments (eg, @dec(...)) or\n without (eg, @dec) so we can take the correct path when the decorator is\n invoked",
" for the most part this works except for the case where you have one callback\n or class as t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_wrapped_arg API.
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 is_wrapped_arg API.
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... | decide if this decorator was called with arguments (eg, @dec(...)) or
without (eg, @dec) so we can take the correct path when the decorator is
invoked
for the most part this works except for the case where you have one callback
or class as the only passed in method to the decorator (eg,... | "decide if this decorator was called with arguments (eg, @dec(...)) or\n without (eg, @dec) so we can take the correct path when the decorator is\n invoked\n\n for the most part this works except for the case where you have one callback\n or class as the only passed in method to the decorato... | 19 | false | Jaymon/decorators | is_wrapped_arg | 22,495 | |
LDU_FT/RedHatInsights/insights-core/_valid_search | LDU_FT | [
"<BEGIN>\n## `get_shared_data`",
"Returns the actual list of component data based on how data is\n stored in component, either from the `data` attribute or from the\n `data['content']` attribute.",
" Returns:\n list: List of component data.\n<END>",
"<BEGIN>\n## `merge_lvm_data`",
"Returns a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _valid_search API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Check this given `s`, it must be a string or a list of strings.
Otherwise, a TypeError will be raised. | "Check this given `s`, it must be a string or a list of strings.\n Otherwise, a TypeError will be raised." | 912 | false | RedHatInsights/insights-core | _valid_search | 22,496 | |
LDU_FT/DsixTools/python-smeftrunner/_get_sm_scale_in | LDU_FT | [
"<BEGIN>\n## `load`",
"Load a parameter file in DSixTools SLHA-like format or its JSON or\n YAML representation.\n<END>",
"<BEGIN>\n## `lha2matrix`",
"Return a matrix given a list of values of the form\n [[1, 1, float], [1, 2, float], ...]\n referring to the (1,1)-element etc.\n `shape` is the sha... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sm_scale_in API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_sm_scale_in API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Get an estimate of the SM parameters at the input scale by running
them from the EW scale using constant values for the Wilson coefficients
(corresponding to their leading log approximated values at the EW
scale).
Note that this is not guaranteed to work and will fail if some of the
... | "Get an estimate of the SM parameters at the input scale by running\n them from the EW scale using constant values for the Wilson coefficients\n (corresponding to their leading log approximated values at the EW\n scale).\n\n Note that this is not guaranteed to work and will fail if some of t... | 58 | false | DsixTools/python-smeftrunner | _get_sm_scale_in | 22,497 | |
LDU_FT/guyskk/flask-restaction/meta_view | LDU_FT | [
"<BEGIN>\n## `resp_json`",
"Get JSON from response if success, raise requests.HTTPError otherwise.",
" Args:\n resp: requests.Response or flask.Response\n Retuens:\n JSON value\n<END>",
"<BEGIN>\n## `res_to_url`",
"Convert resource.action to (url, HTTP_METHOD)\n<END>",
"<BEGIN>\n## `_r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meta_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the meta_view API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Meta data / API document
By default, this view func will return API document(HTML),
you can set request header `Accept` to `application/json`
or set query string `json` to get meta data(JSON). | "Meta data / API document\n\n By default, this view func will return API document(HTML),\n you can set request header `Accept` to `application/json`\n or set query string `json` to get meta data(JSON)." | 58 | false | guyskk/flask-restaction | meta_view | 22,498 | |
LDU_FT/openvax/mhcflurry/subselect | LDU_FT | [
"<BEGIN>\n## `extend`",
"Return a new HyperparameterDefaults instance containing the\n hyperparameters from the current instance combined with\n those from other.",
" It is an error if self and other have any hyperparameters in\n common.\n<END>",
"<BEGIN>\n## `with_defaults`",
"G... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subselect API.
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 subselect API.
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... | Filter a dict of hyperparameter settings to only those keys defined
in this HyperparameterDefaults . | "Filter a dict of hyperparameter settings to only those keys defined\n in this HyperparameterDefaults ." | 272 | false | openvax/mhcflurry | subselect | 22,499 | |
LDU_FT/qubell/contrib-python-qubell-client/patch | LDU_FT | [
"<BEGIN>\n## `request_upload_secret`",
":return: json with \"keyId\" as secret and \"url\" for posting key\n<END>",
"<BEGIN>\n## `entity`",
"CLI for tonomi.com using contrib-python-qubell-client",
" To enable completion:",
" eval \"$(_NOMI_COMPLETE=source nomi)\"\n<END>",
"<BEGIN>\n## `import_ap... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patch API.
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 patch API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted d... | Set specified value to yaml path.
Example:
patch('application/components/child/configuration/__locator.application-id','777')
Will change child app ID to 777 | "Set specified value to yaml path.\n Example:\n patch('application/components/child/configuration/__locator.application-id','777')\n Will change child app ID to 777" | 112 | false | qubell/contrib-python-qubell-client | patch | 22,500 | |
LDU_FT/dunovank/jupyter-themes/toggle_settings | LDU_FT | [
"<BEGIN>\n## `install_theme`",
"Install theme to jupyter_customcss with specified font, fontsize,\n md layout, and toolbar pref\n<END>",
"<BEGIN>\n## `infer_theme`",
"checks jupyter_config_dir() for text file containing theme name\n (updated whenever user installs a new theme)\n<END>",
"<BEGIN>\n## `s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the toggle_settings API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Toggle main notebook toolbar (e.g., buttons), filename,
and kernel logo. | "Toggle main notebook toolbar (e.g., buttons), filename,\n and kernel logo." | 38 | false | dunovank/jupyter-themes | toggle_settings | 22,501 | |
LDU_FT/wolfhong/formic/extend | LDU_FT | [
"<BEGIN>\n## `pylint_jenkins`",
"Run PyLint on the code and produce a report suitable for the\n Jenkins plugin 'violations'.",
" Note that there is a bug in the Violations plugin which means that\n absolute paths to source (produced by PyLint) are not read. The sed command\n removes the workspace pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extend API.
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 extend API.
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 ... | Extend a :class:`PatternSet` with addition *patterns*
*patterns* can either be:
* A single :class:`Pattern`
* Another :class:`PatternSet` or
* A list of :class:`Pattern` instances | "Extend a :class:`PatternSet` with addition *patterns*\n\n *patterns* can either be:\n\n * A single :class:`Pattern`\n * Another :class:`PatternSet` or\n * A list of :class:`Pattern` instances" | 98 | false | wolfhong/formic | extend | 22,502 | |
LDU_FT/aloetesting/aloe_webdriver/contains_content | LDU_FT | [
"<BEGIN>\n## `string_literal`",
"Choose a string literal that can wrap our string.",
" If your string contains a ``\\'`` the result will be wrapped in ``\\\"``.\n If your string contains a ``\\\"`` the result will be wrapped in ``\\'``.",
" Cannot currently handle strings which contain both ``\\\"`` ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the contains_content API.
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 contains_content API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Search for an element that contains the whole of the text we're looking
for in it or its subelements, but whose children do NOT contain that
text - otherwise matches <body> or <html> or other similarly useless
things. | "Search for an element that contains the whole of the text we're looking\n for in it or its subelements, but whose children do NOT contain that\n text - otherwise matches <body> or <html> or other similarly useless\n things." | 158 | false | aloetesting/aloe_webdriver | contains_content | 22,503 | |
LDU_FT/inveniosoftware/invenio-pages/_add_url_rule | LDU_FT | [
"<BEGIN>\n## `validate_template_name`",
"Validate template name.",
" :param key: The template path.\n :param value: The template name.\n :raises ValueError: If template name is wrong.\n<END>",
"<BEGIN>\n## `template_exists`",
"Form validation: check that selected template exists.\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_url_rule API.
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_url_rule API.
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... | Register URL rule to application URL map. | "Register URL rule to application URL map." | 23 | false | inveniosoftware/invenio-pages | _add_url_rule | 22,504 | |
LDU_FT/tradenity/python-sdk/create_table_rate_rule | LDU_FT | [
"<BEGIN>\n## `data_type`",
"Sets the data_type of this Option.",
" :param data_type: The data_type of this Option.\n :type: str\n<END>",
"<BEGIN>\n## `create_option`",
"Create Option",
" Create a new Option\n This method makes a synchronous HTTP request by default. To make an\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_table_rate_rule 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_table_rate_rule 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 TableRateRule
Create a new TableRateRule
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.create_table_rate_rule(table_rate_rule, async=True)
>>> result = thread.get()
:param as... | "Create TableRateRule\n\n Create a new TableRateRule\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async=True\n >>> thread = api.create_table_rate_rule(table_rate_rule, async=True)\n >>> result = thread.get()\n\n ... | 1,216 | true | tradenity/python-sdk | create_table_rate_rule | 22,505 | |
LDU_FT/nickoala/telepot/by_content_type | LDU_FT | [
"<BEGIN>\n## `answer`",
"Create a task that calls ``compute fn`` (along with additional arguments\n ``*compute_args`` and ``**compute_kwargs``), then applies the returned value to\n :meth:`.Bot.answerInlineQuery` to answer the inline query.\n If a preceding task is already working for a user,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the by_content_type API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | :return:
A key function that returns a 2-tuple (content_type, (msg[content_type],)).
In plain English, it returns the message's *content type* as the key,
and the corresponding content as a positional argument to the handler
function. | ":return:\n A key function that returns a 2-tuple (content_type, (msg[content_type],)).\n In plain English, it returns the message's *content type* as the key,\n and the corresponding content as a positional argument to the handler\n function." | 312 | false | nickoala/telepot | by_content_type | 22,506 | |
LDU_FT/angr/pyvex/make_format_op_generator | LDU_FT | [
"<BEGIN>\n## `lift`",
"This is the main body of the \"lifting\" for the instruction.\n This can/should be overriden to provide the general flow of how instructions in your arch work.\n For example, in MSP430, this is:",
" - Figure out what your operands are by parsing the addressing, and lo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_format_op_generator 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 make_format_op_generator API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Return a function which generates an op format (just a string of the vex instruction)
Functions by formatting the fmt_string with the types of the arguments | "Return a function which generates an op format (just a string of the vex instruction)\n\n Functions by formatting the fmt_string with the types of the arguments" | 87 | false | angr/pyvex | make_format_op_generator | 22,507 | |
LDU_FT/python-diamond/Diamond/_process_line | LDU_FT | [
"<BEGIN>\n## `utc_to_local`",
":param utc_dt: datetime in UTC\n :return: datetime in the local timezone\n<END>",
"<BEGIN>\n## `get_zones`",
":param auth_kwargs:\n :param region: region to get the availability zones for\n :return: list of availability zones\n<END>",
"<BEGIN>\n## `publish_delayed_met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _process_line API.
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 _process_line API.
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... | Parse and submit the metrics from a line of perfdata output | "Parse and submit the metrics from a line of perfdata output" | 454 | false | python-diamond/Diamond | _process_line | 22,508 | |
LDU_FT/django-import-export/django-import-export/import_obj | LDU_FT | [
"<BEGIN>\n## `has_import_permission`",
"Returns whether a request has import permission.\n<END>",
"<BEGIN>\n## `get_import_resource_kwargs`",
"Prepares/returns kwargs used when initializing Resource\n<END>",
"<BEGIN>\n## `process_import`",
"Perform the actual import action (after the user has confirmed th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the import_obj API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Traverses every field in this Resource and calls
:meth:`~import_export.resources.Resource.import_field`. If
``import_field()`` results in a ``ValueError`` being raised for
one of more fields, those errors are captured and reraised as a single,
multi-field ValidationError. | "Traverses every field in this Resource and calls\n :meth:`~import_export.resources.Resource.import_field`. If\n ``import_field()`` results in a ``ValueError`` being raised for\n one of more fields, those errors are captured and reraised as a single,\n multi-field ValidationError." | 84 | false | django-import-export/django-import-export | import_obj | 22,509 | |
LDU_FT/manns/pyspread/vlcpanel_factory | LDU_FT | [
"<BEGIN>\n## `add_tools`",
"Adds tools from self.toolbardata to self\n<END>",
"<BEGIN>\n## `_get_button_label`",
"Gets Button label from user and returns string\n<END>",
"<BEGIN>\n## `OnButtonCell`",
"Event handler for cell button toggle button\n<END>",
"<BEGIN>\n## `OnVideoCell`",
"Event handler for ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vlcpanel_factory API.
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 vlcpanel_factory API.
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 a VLCPanel class
Parameters
----------
filepath: String
\tFile path of video
volume: Float, optional
\tSound volume | "Returns a VLCPanel class\n\n Parameters\n ----------\n filepath: String\n \\tFile path of video\n volume: Float, optional\n \\tSound volume" | 1,275 | true | manns/pyspread | vlcpanel_factory | 22,510 | |
LDU_FT/BoboTiG/python-mss/get_error_details | LDU_FT | [
"<BEGIN>\n## `to_png`",
"Dump data to a PNG file. If `output` is `None`, create no file but return\n the whole PNG data.",
" :param bytes data: RGBRGB...RGB data.\n :param tuple size: The (width, height) pair.\n :param int level: PNG compression level.\n :param str output: Output file name.\n<EN... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_error_details API.
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_error_details API.
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 more information about the latest X server error. | "Get more information about the latest X server error." | 62 | false | BoboTiG/python-mss | get_error_details | 22,511 | |
LDU_FT/NYUCCL/psiTurk/load | LDU_FT | [
"<BEGIN>\n## `check_auth`",
"This function is called to check if a username password combination\n is valid.\n<END>",
"<BEGIN>\n## `requires_auth`",
"Decorator to prompt for user name and password. Useful for data dumps,\n etc. That you don't want to be public.\n<END>",
"<BEGIN>\n## `get_... | 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... | Load experiment data, which should be a JSON object and will be stored
after converting to string. | "Load experiment data, which should be a JSON object and will be stored\n after converting to string." | 65 | false | NYUCCL/psiTurk | load | 22,512 | |
LDU_FT/dims/etcd3-gateway/put | LDU_FT | [
"<BEGIN>\n## `get_url`",
"Construct a full url to the v3alpha API given a specific path",
" :param path:\n :return: url\n<END>",
"<BEGIN>\n## `post`",
"helper method for HTTP POST",
" :param args:\n :param kwargs:\n :return: json response\n<END>",
"<BEGIN>\n## `lease`"... | 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... | Put puts the given key into the key-value store.
A put request increments the revision of the key-value store
and generates one event in the event history.
:param key:
:param value:
:param lease:
:return: boolean | "Put puts the given key into the key-value store.\n\n A put request increments the revision of the key-value store\n and generates one event in the event history.\n\n :param key:\n :param value:\n :param lease:\n :return: boolean" | 75 | false | dims/etcd3-gateway | put | 22,513 | |
LDU_FT/abw333/dominoes/alphabeta | LDU_FT | [
"<BEGIN>\n## `_randomized_hands`",
":return: 4 hands, obtained by shuffling the 28 dominoes used in\n this variation of the game, and distributing them evenly\n<END>",
"<BEGIN>\n## `_validate_player`",
"Checks that a player is a valid player. Valid players are: 0, 1, 2, and 3.",
" :param int ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the alphabeta API.
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 alphabeta API.
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... | Runs minimax search with alpha-beta pruning on the provided game.
:param Game game: game to search
:param tuple alpha_beta: a tuple of two floats that indicate
the initial values of alpha and beta,
respectively. The default is (-inf, inf).
:param ca... | "Runs minimax search with alpha-beta pruning on the provided game.\n\n :param Game game: game to search\n :param tuple alpha_beta: a tuple of two floats that indicate\n the initial values of alpha and beta,\n respectively. The default is (-inf, inf).\n :p... | 70 | false | abw333/dominoes | alphabeta | 22,514 | |
LDU_FT/xtrementl/focus/_adium_status | LDU_FT | [
"<BEGIN>\n## `_new_token`",
"Appends new token to token stream.",
" `chars`\n List of token characters. Defaults to current token list.\n `line_no`\n Line number for token. Defaults to current line number.\n<END>",
"<BEGIN>\n## `_process_string`",
"Process... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adium_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _adium_status API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Updates status and message for Adium IM application.
`status`
Status type.
`message`
Status message. | "Updates status and message for Adium IM application.\n\n `status`\n Status type.\n `message`\n Status message." | 413 | false | xtrementl/focus | _adium_status | 22,515 | |
LDU_FT/soaxelbrooke/join/group | LDU_FT | [
"<BEGIN>\n## `union_join`",
"Join function truest to the SQL style join. Merges both objects together in a sum-type,\n saving references to each parent in ``left`` and ``right`` attributes.",
" >>> Dog = namedtuple('Dog', ['name', 'woof', 'weight'])\n >>> dog = Dog('gatsby', 'Ruff!', 15)\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group API.
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 group API.
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... | Groups an iterable by a specified attribute, or using a specified key access function. Returns tuples of grouped elements.
>>> dogs = [Dog('gatsby', 'Rruff!', 15), Dog('william', 'roof', 12), Dog('edward', 'hi', 15)]
>>> groupby(dogs, 'weight')
[(Dog('gatsby', 'Rruff!', 15), Dog('edward', 'hi', 15)), (Dog... | "Groups an iterable by a specified attribute, or using a specified key access function. Returns tuples of grouped elements.\n\n >>> dogs = [Dog('gatsby', 'Rruff!', 15), Dog('william', 'roof', 12), Dog('edward', 'hi', 15)]\n >>> groupby(dogs, 'weight')\n [(Dog('gatsby', 'Rruff!', 15), Dog('edward', 'hi', 15)),... | 19 | false | soaxelbrooke/join | group | 22,516 | |
LDU_FT/mapbox/mapbox-cli-py/delete_feature | LDU_FT | [
"<BEGIN>\n## `match`",
"Mapbox Map Matching API lets you use snap your GPS traces\nto the OpenStreetMap road and path network.",
" $ mapbox mapmatching trace.geojson",
"An access token is required, see `mapbox --help`.\n<END>",
"<BEGIN>\n## `staticmap`",
"Generate static map images from existing Mapb... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_feature API.
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 delete_feature API.
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... | Delete a feature.
$ mapbox datasets delete-feature dataset-id feature-id
All endpoints require authentication. An access token with
`datasets:write` scope is required, see `mapbox --help`. | "Delete a feature.\n\n $ mapbox datasets delete-feature dataset-id feature-id\n\n All endpoints require authentication. An access token with\n `datasets:write` scope is required, see `mapbox --help`." | 81 | false | mapbox/mapbox-cli-py | delete_feature | 22,517 | |
LDU_FT/kmike/port-for/fix_list_arguments | LDU_FT | [
"<BEGIN>\n## `_write_unassigned_ranges`",
"Downloads ports data from IANA & Wikipedia and converts\n it to a python module. This function is used to generate _ranges.py.\n<END>",
"<BEGIN>\n## `_unassigned_ports`",
"Returns a set of all unassigned ports (according to IANA and Wikipedia)\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fix_list_arguments 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 fix_list_arguments 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... | Find arguments that should accumulate values and fix them. | "Find arguments that should accumulate values and fix them." | 31 | false | kmike/port-for | fix_list_arguments | 22,518 | |
LDU_FT/aconrad/pycobertura/file_source_hunks | LDU_FT | [
"<BEGIN>\n## `line_rate`",
"Return the global line rate of the coverage report. If the\n `filename` file is given, return the line rate of the file.\n<END>",
"<BEGIN>\n## `branch_rate`",
"Return the global branch rate of the coverage report. If the\n `filename` file is given, return the branch r... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the file_source_hunks API.
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 file_source_hunks API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Like `CoberturaDiff.file_source`, but returns a list of line hunks of
the lines that have changed for the given file `filename`. An empty
list means that the file has no lines that have a change in coverage
status. | "Like `CoberturaDiff.file_source`, but returns a list of line hunks of\n the lines that have changed for the given file `filename`. An empty\n list means that the file has no lines that have a change in coverage\n status." | 53 | false | aconrad/pycobertura | file_source_hunks | 22,519 | |
LDU_FT/decentfox/aioh2/read_stream | LDU_FT | [
"<BEGIN>\n## `set_handler`",
"Connect with a coroutine, which is scheduled when connection is made.",
" This function will create a task, and when connection is closed,\n the task will be canceled.\n :param handler:\n :return: None\n<END>",
"<BEGIN>\n## `start_request`",
"Start a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_stream API.
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 read_stream API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Read data from the given stream.
By default (`size=None`), this returns all data left in current HTTP/2
frame. In other words, default behavior is to receive frame by frame.
If size is given a number above zero, method will try to return as much
bytes as possible up to the given size, ... | "Read data from the given stream.\n\n By default (`size=None`), this returns all data left in current HTTP/2\n frame. In other words, default behavior is to receive frame by frame.\n\n If size is given a number above zero, method will try to return as much\n bytes as possible up to the given... | 43 | false | decentfox/aioh2 | read_stream | 22,520 | |
LDU_FT/azaghal/pydenticon/_get_bit | LDU_FT | [
"<BEGIN>\n## `_get_bit`",
"Determines if the n-th bit of passed bytes is 1 or 0.",
" Arguments:",
" hash_bytes - List of hash byte values for which the n-th bit value\n should be checked. Each element of the list should be an integer from\n 0 to 255.",
" Returns:",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bit API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_bit API.
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... | Determines if the n-th bit of passed bytes is 1 or 0.
Arguments:
hash_bytes - List of hash byte values for which the n-th bit value
should be checked. Each element of the list should be an integer from
0 to 255.
Returns:
True if the bit is 1. False if the bit ... | "Determines if the n-th bit of passed bytes is 1 or 0.\n\n Arguments:\n\n hash_bytes - List of hash byte values for which the n-th bit value\n should be checked. Each element of the list should be an integer from\n 0 to 255.\n\n Returns:\n\n True if the bit is 1. False ... | 48 | false | azaghal/pydenticon | _get_bit | 22,521 | |
LDU_FT/CodyKochmann/graphdb/where | LDU_FT | [
"<BEGIN>\n## `graph_hash`",
"this hashes all types to a hash without colissions. python's hashing algorithms are not cross type compatable but hashing tuples with the type as the first element seems to do the trick\n<END>",
"<BEGIN>\n## `store_item`",
"use this function to store a python object in the databas... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the where API.
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 where API.
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... | use this to filter VLists, simply provide a filter function and what relation to apply it to | "use this to filter VLists, simply provide a filter function and what relation to apply it to" | 44 | false | CodyKochmann/graphdb | where | 22,522 | |
LDU_FT/carta/ldap_tools/raw | LDU_FT | [
"<BEGIN>\n## `create`",
"Create an LDAP Group.",
" Raises:\n ldap3.core.exceptions.LDAPNoSuchObjectResult:\n an object involved with the request is missing",
" ldap3.core.exceptions.LDAPEntryAlreadyExistsResult:\n the entity being created already exis... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the raw API.
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 raw API.
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... | Dump the contents of LDAP to console in raw format. | "Dump the contents of LDAP to console in raw format." | 65 | false | carta/ldap_tools | raw | 22,523 | |
LDU_FT/ArtoLabs/SimpleSteem/reward_pool_balances | LDU_FT | [
"<BEGIN>\n## `setup`",
"Runs only the first time SimpleSteem() \n is instantiated. Prompts user for the values\n that are then written to config.py\n<END>",
"<BEGIN>\n## `make`",
"takes the arguments and writes them as \n variable / value pairs to config.py\n<END>",
"<BEGIN>\n## `goodno... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the reward_pool_balances 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 reward_pool_balances API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Fetches and returns the 3 values
needed to calculate the reward pool
and other associated values such as rshares.
Returns the reward balance, all recent claims
and the current price of steem. | "Fetches and returns the 3 values\n needed to calculate the reward pool\n and other associated values such as rshares.\n Returns the reward balance, all recent claims\n and the current price of steem." | 74 | false | ArtoLabs/SimpleSteem | reward_pool_balances | 22,524 | |
LDU_FT/sdispater/eloquent/process_insert_get_id | LDU_FT | [
"<BEGIN>\n## `get_last`",
"Get the last migration batch.",
" :rtype: list\n<END>",
"<BEGIN>\n## `compile_insert`",
"Compile an insert SQL statement",
" :param query: A QueryBuilder instance\n :type query: QueryBuilder",
" :param values: The values to insert\n :type val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_insert_get_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_insert_get_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Process an "insert get ID" query.
:param query: A QueryBuilder instance
:type query: QueryBuilder
:param sql: The sql query to execute
:type sql: str
:param values: The value bindings
:type values: list
:param sequence: The ids sequence
:type sequence:... | "Process an \"insert get ID\" query.\n\n :param query: A QueryBuilder instance\n :type query: QueryBuilder\n\n :param sql: The sql query to execute\n :type sql: str\n\n :param values: The value bindings\n :type values: list\n\n :param sequence: The ids sequence\n ... | 498 | false | sdispater/eloquent | process_insert_get_id | 22,525 | |
LDU_FT/Stewori/pytypes/typelogged | LDU_FT | [
"<BEGIN>\n## `_outter_split`",
"Splits only at delims that are at outter-most level regarding\n openers/closers pairs.\n Unchecked requirements:\n Only supports length-1 delim, openers and closers.\n delim must not be member of openers or closers.\n len(openers) == len(closers) or closers == None\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the typelogged API.
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 typelogged API.
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... | Decorator applicable to functions, methods, properties,
classes or modules (by explicit call).
If applied on a module, memb must be a module or a module name contained in sys.modules.
See pytypes.set_global_typelogged_decorator to apply this on all modules.
Observes function and method calls at runtime ... | "Decorator applicable to functions, methods, properties,\n classes or modules (by explicit call).\n If applied on a module, memb must be a module or a module name contained in sys.modules.\n See pytypes.set_global_typelogged_decorator to apply this on all modules.\n Observes function and method calls at run... | 187 | false | Stewori/pytypes | typelogged | 22,526 | |
LDU_FT/bfontaine/term2048/store | LDU_FT | [
"<BEGIN>\n## `adjustColors`",
"Change a few colors depending on the mode to use. The default mode\n doesn't assume anything and avoid using white & black colors. The dark\n mode use white and avoid dark blue while the light mode use black and\n avoid yellow, to give a few examples.\n<END>",
... | 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 d... | 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 d... | save the current game session's score and data for further use | "save the current game session's score and data for further use" | 28 | false | bfontaine/term2048 | store | 22,527 | |
LDU_FT/OLC-LOC-Bioinformatics/GenomeQAML/find_n50 | LDU_FT | [
"<BEGIN>\n## `main`",
"Run the appropriate functions in order\n :param sequencepath: path of folder containing FASTA genomes\n :param report: boolean to determine whether a report is to be created\n :param refseq_database: Path to reduced refseq database sketch\n :param num_threads: Number of threads ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_n50 API.
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 find_n50 API.
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... | Calculate the N50 for each strain. N50 is defined as the largest contig such that at least half of the total
genome size is contained in contigs equal to or larger than this contig
:param contig_lengths_dict: dictionary of strain name: reverse-sorted list of all contig lengths
:param genome_length_dict: dic... | "Calculate the N50 for each strain. N50 is defined as the largest contig such that at least half of the total\n genome size is contained in contigs equal to or larger than this contig\n :param contig_lengths_dict: dictionary of strain name: reverse-sorted list of all contig lengths\n :param genome_length_dict:... | 41 | false | OLC-LOC-Bioinformatics/GenomeQAML | find_n50 | 22,528 | |
LDU_FT/internetarchive/brozzler/honor_stop_request | LDU_FT | [
"<BEGIN>\n## `elapsed`",
"Returns elapsed crawl time as a float in seconds.",
" This metric includes all the time that a site was in active rotation,\n including any time it spent waiting for its turn to be brozzled.",
" In contrast `Site.active_brozzling_time` only counts time when a\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the honor_stop_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the honor_stop_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.
Th... | Raises brozzler.CrawlStopped if stop has been requested. | "Raises brozzler.CrawlStopped if stop has been requested." | 110 | false | internetarchive/brozzler | honor_stop_request | 22,529 | |
LDU_FT/tgsmith61591/pmdarima/to_dict | LDU_FT | [
"<BEGIN>\n## `nsdiffs`",
"Estimate the seasonal differencing term, ``D``.",
" Perform a test of seasonality for different levels of ``D`` to\n estimate the number of seasonal differences required to make a given time\n series stationary. Will select the maximum value of ``D`` for which\n the time se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_dict API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Get the ARIMA model as a dictionary
Return the dictionary representation of the ARIMA model
Returns
-------
res : dictionary
The ARIMA model as a dictionary. | "Get the ARIMA model as a dictionary\n\n Return the dictionary representation of the ARIMA model\n\n Returns\n -------\n res : dictionary\n The ARIMA model as a dictionary." | 356 | false | tgsmith61591/pmdarima | to_dict | 22,530 | |
LDU_FT/kodexlab/reliure/needed_inputs | LDU_FT | [
"<BEGIN>\n## `add_field`",
"Add a named field to the schema.",
" .. Warning:: the field name should not contains spaces and should not\n start with an underscore.",
" :param name: name of the new field\n :type name: str\n :param field: type instance for the field \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the needed_inputs API.
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 needed_inputs API.
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... | List all the needed inputs of a configured engine
>>> engine = Engine("op1", "op2")
>>> engine.op1.setup(in_name="in", out_name="middle", required=False)
>>> engine.op2.setup(in_name="middle", out_name="out")
>>> engine.op1.append(lambda x:x+2)
>>> engine.op2.append(lambda x:x*2... | "List all the needed inputs of a configured engine\n\n >>> engine = Engine(\"op1\", \"op2\")\n >>> engine.op1.setup(in_name=\"in\", out_name=\"middle\", required=False)\n >>> engine.op2.setup(in_name=\"middle\", out_name=\"out\")\n >>> engine.op1.append(lambda x:x+2)\n >>> engine.op2.... | 243 | false | kodexlab/reliure | needed_inputs | 22,531 | |
LDU_FT/calmh/unifi-api/get_statistics_24h | LDU_FT | [
"<BEGIN>\n## `_construct_api_path`",
"Returns valid base API path based on version given",
" The base API path for the URL is different depending on UniFi server version.\n Default returns correct path for latest known stable working versions.\n<END>",
"<BEGIN>\n## `get_statistics_24h`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_statistics_24h API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_statistics_24h 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 statistical data last 24h from time | "Return statistical data last 24h from time" | 22 | false | calmh/unifi-api | get_statistics_24h | 22,532 | |
LDU_FT/xhtml2pdf/xhtml2pdf/getActualLineWidths0 | LDU_FT | [
"<BEGIN>\n## `pisaParser`",
"- Parse HTML and get miniDOM\n - Extract CSS informations, add default CSS, parse CSS\n - Handle the document DOM itself and build reportlab story\n - Return Context object\n<END>",
"<BEGIN>\n## `splitIntoLines`",
"Split text into lines and calculate X positions. If we ne... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getActualLineWidths0 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 getActualLineWidths0 API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Convenience function; tells you how wide each line
actually is. For justified styles, this will be
the same as the wrap width; for others it might be
useful for seeing if paragraphs will fit in spaces. | "Convenience function; tells you how wide each line\n actually is. For justified styles, this will be\n the same as the wrap width; for others it might be\n useful for seeing if paragraphs will fit in spaces." | 134 | false | xhtml2pdf/xhtml2pdf | getActualLineWidths0 | 22,533 | |
LDU_FT/marshmallow-code/apispec/field2pattern | LDU_FT | [
"<BEGIN>\n## `load_operations_from_docstring`",
"Return a dictionary of OpenAPI operations parsed from a\n a docstring.\n<END>",
"<BEGIN>\n## `resolve_schema_instance`",
"Return schema instance for given schema (instance or class)",
" :param type|Schema|str schema: instance, class or class name of mar... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the field2pattern API.
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 field2pattern API.
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... | Return the dictionary of OpenAPI field attributes for a set of
:class:`Range <marshmallow.validators.Regexp>` validators.
:param Field field: A marshmallow field.
:rtype: dict | "Return the dictionary of OpenAPI field attributes for a set of\n :class:`Range <marshmallow.validators.Regexp>` validators.\n\n :param Field field: A marshmallow field.\n :rtype: dict" | 149 | false | marshmallow-code/apispec | field2pattern | 22,534 | |
LDU_FT/observermedia/django-wordpress-rest/load_site | LDU_FT | [
"<BEGIN>\n## `load_post_webhook`",
"Webhook to insert/update a WordPress.com post on the local Django site.\n Call this after making changes to the post in WP Admin.\n The post is processed asynchronously so that a response can be returned to WordPress.com immediately.",
" :param request: Should contai... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_site API.
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_site API.
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... | Sync content from a WordPress.com site via the REST API.
:param purge_first: Should we remove all local content first? Careful, destructive!
:param full: If True, crawl backwards chronologically through all content, not just recently modified
Default is False, only load recently mo... | "Sync content from a WordPress.com site via the REST API.\n\n :param purge_first: Should we remove all local content first? Careful, destructive!\n :param full: If True, crawl backwards chronologically through all content, not just recently modified\n Default is False, only load recent... | 100 | false | observermedia/django-wordpress-rest | load_site | 22,535 | |
LDU_FT/ome/omego/symlink_check_and_set | LDU_FT | [
"<BEGIN>\n## `entry_point`",
"External entry point which calls main() and\n if Stop is raised, calls sys.exit()\n<END>",
"<BEGIN>\n## `open_url`",
"Open a URL using an opener that will simulate a browser user-agent\n url: The URL\n httpuser, httppassword: HTTP authentication credentials (either both ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the symlink_check_and_set 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 symlink_check_and_set API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | The default symlink was changed from OMERO-CURRENT to OMERO.server.
If `--sym` was not specified and OMERO-CURRENT exists in the current
directory stop and warn. | "The default symlink was changed from OMERO-CURRENT to OMERO.server.\n If `--sym` was not specified and OMERO-CURRENT exists in the current\n directory stop and warn." | 72 | false | ome/omego | symlink_check_and_set | 22,536 | |
LDU_FT/gmichaeljaison/cv-utils/hog | LDU_FT | [
"<BEGIN>\n## `match_one`",
"Match template and find exactly one match in the Image using specified features.",
" :param template: Template Image\n :param image: Search Image\n :param options: Options include\n - features: List of options for each feature\n :return: (Box, Score) Bounding box o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the hog API.
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 hog API.
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... | HOG feature extractor.
:param img:
:param options:
:return: HOG Feature for given image
The output will have channels same as number of orientations.
Height and Width will be reduced based on block-size and cell-size | "HOG feature extractor.\n\n :param img:\n :param options:\n :return: HOG Feature for given image\n The output will have channels same as number of orientations.\n Height and Width will be reduced based on block-size and cell-size" | 91 | false | gmichaeljaison/cv-utils | hog | 22,537 | |
LDU_FT/wbond/vat_moss-python/format | LDU_FT | [
"<BEGIN>\n## `calculate_rate`",
"Calculates the VAT rate based on a telephone number",
" :param phone_number:\n The string phone number, in international format with leading +",
" :param address_country_code:\n The user's country_code, as detected from billing_address or\n declared_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format API.
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 format API.
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 ... | Formats a decimal or Money object into an unambiguous string representation
for the purpose of invoices in English.
:param amount:
A Decimal or Money object
:param currency:
If the amount is a Decimal, the currency of the amount
:return:
A string representation of the amount i... | "Formats a decimal or Money object into an unambiguous string representation\n for the purpose of invoices in English.\n\n :param amount:\n A Decimal or Money object\n\n :param currency:\n If the amount is a Decimal, the currency of the amount\n\n :return:\n A string representation of t... | 60 | false | wbond/vat_moss-python | format | 22,538 | |
LDU_FT/closeio/tasktiger/task | LDU_FT | [
"<BEGIN>\n## `set_system_lock`",
"Set system lock for the semaphore.",
" Sets a system lock that will expire in timeout seconds. This\n overrides all other locks. Existing locks cannot be renewed\n and no new locks will be permitted until the system lock\n expires.",
" Argum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the task API.
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 task API.
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... | Function decorator that defines the behavior of the function when it is
used as a task. To use the default behavior, tasks don't need to be
decorated.
See README.rst for an explanation of the options. | "Function decorator that defines the behavior of the function when it is\n used as a task. To use the default behavior, tasks don't need to be\n decorated.\n\n See README.rst for an explanation of the options." | 124 | false | closeio/tasktiger | task | 22,539 | |
LDU_FT/pyslackers/slack-sansio/dispatch | LDU_FT | [
"<BEGIN>\n## `register`",
"Register a new handler for a specific :class:`slack.actions.Action` `callback_id`.\n Optional routing based on the action name too.",
" The name argument is useful for actions of type `interactive_message` to provide\n a different handler for each individual actio... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dispatch API.
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 dispatch API.
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... | Yields handlers matching the routing of the incoming :class:`slack.events.Message`
Args:
message: :class:`slack.events.Message`
Yields:
handler | "Yields handlers matching the routing of the incoming :class:`slack.events.Message`\n\n Args:\n message: :class:`slack.events.Message`\n\n Yields:\n handler" | 113 | false | pyslackers/slack-sansio | dispatch | 22,540 | |
LDU_FT/tilde-lab/tilde/_unique | LDU_FT | [
"<BEGIN>\n## `wrap_cell`",
"Cell wrappers\n for customizing the GUI data table",
" TODO : must coincide with hierarchy!\n TODO : simplify this!\n<END>",
"<BEGIN>\n## `meminfo`",
"Get the amount of memory and swap, Mebibytes\n<END>",
"<BEGIN>\n## `serial_number`",
"Get the serial number. Require... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _unique API.
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 _unique API.
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... | https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/UniqueObject
Checks if ORM entity exists according to criteria,
if yes, returns it, if no, creates | "https://bitbucket.org/zzzeek/sqlalchemy/wiki/UsageRecipes/UniqueObject\n Checks if ORM entity exists according to criteria,\n if yes, returns it, if no, creates" | 68 | false | tilde-lab/tilde | _unique | 22,541 | |
LDU_FT/emory-libraries/eulxml/is_empty | LDU_FT | [
"<BEGIN>\n## `_serialize`",
"Generate token strings which, when joined together, form a valid\n XPath serialization of the AST.\n<END>",
"<BEGIN>\n## `download_schema`",
"Download a schema from a specified URI and save it locally.",
" :param uri: url where the schema should be downloaded\n :param p... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_empty API.
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 is_empty API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Returns True if details, extent, and type are not set or
return True for ``is_empty``; returns False if any of the
fields are not empty. | "Returns True if details, extent, and type are not set or\n return True for ``is_empty``; returns False if any of the\n fields are not empty." | 109 | false | emory-libraries/eulxml | is_empty | 22,542 | |
LDU_FT/neuroticnerd/armory/boolean | LDU_FT | [
"<BEGIN>\n## `patch_gevent_hub`",
"This patches the error handler in the gevent Hub object.\n<END>",
"<BEGIN>\n## `env`",
"Retrieve environment variables and specify default and options.",
" :param key: (required) environment variable name to retrieve\n :param default: value to use if the environment ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the boolean API.
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 boolean API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Convert value to <type bool>.
Uses the boolean mapping dict to attempt to determine the conversion
of the given value. If the value is not found in the mapping, it falls
back to the built-in Python bool conversion. Optionally, a custom
mapping dict can be passed to use for the value lookups.
The d... | "Convert value to <type bool>.\n\n Uses the boolean mapping dict to attempt to determine the conversion\n of the given value. If the value is not found in the mapping, it falls\n back to the built-in Python bool conversion. Optionally, a custom\n mapping dict can be passed to use for the value lookups.\n\n ... | 21 | false | neuroticnerd/armory | boolean | 22,543 | |
LDU_FT/ambitioninc/django-manager-utils/_get_update_fields | LDU_FT | [
"<BEGIN>\n## `configure_settings`",
"Configures settings for manage.py and for run_tests.py.\n<END>",
"<BEGIN>\n## `_get_update_fields`",
"Get the fields to be updated in an upsert.",
" Always exclude auto_now_add, auto_created fields, and unique fields in an update\n<END>",
"<BEGIN>\n## `_fill_auto_fi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_update_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_update_fields API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Get the fields to be updated in an upsert.
Always exclude auto_now_add, auto_created fields, and unique fields in an update | "Get the fields to be updated in an upsert.\n\n Always exclude auto_now_add, auto_created fields, and unique fields in an update" | 110 | false | ambitioninc/django-manager-utils | _get_update_fields | 22,544 | |
LDU_FT/ggaughan/pipe2py/get_input | 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 get_input API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_input API.
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... | Gets a user parameter, either from the console or from an outer
submodule/system
Assumes conf has name, default, prompt and debug | "Gets a user parameter, either from the console or from an outer\n submodule/system\n\n Assumes conf has name, default, prompt and debug" | 257 | false | ggaughan/pipe2py | get_input | 22,545 | |
LDU_FT/teepark/junction/add_peer | LDU_FT | [
"<BEGIN>\n## `wait_connected`",
"Wait for connections to be made and their handshakes to finish",
" :param conns:\n a single or list of (host, port) tuples with the connections that\n must be finished before the method will return. defaults to all the\n peers the :class:`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_peer API.
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 add_peer API.
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... | Build a connection to the Hub at a given ``(host, port)`` address | "Build a connection to the Hub at a given ``(host, port)`` address" | 131 | false | teepark/junction | add_peer | 22,546 | |
LDU_FT/DataMedSci/beprof/x_at_y | LDU_FT | [
"<BEGIN>\n## `x_at_y`",
"Calculates inverse profile - for given y returns x such that f(x) = y\n If given y is not found in the self.y, then interpolation is used.\n By default returns first result looking from left,\n if reverse argument set to True,\n looks from right. If y is outsid... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the x_at_y API.
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 x_at_y API.
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 ... | Calculates inverse profile - for given y returns x such that f(x) = y
If given y is not found in the self.y, then interpolation is used.
By default returns first result looking from left,
if reverse argument set to True,
looks from right. If y is outside range of self.y
then np.n... | "Calculates inverse profile - for given y returns x such that f(x) = y\n If given y is not found in the self.y, then interpolation is used.\n By default returns first result looking from left,\n if reverse argument set to True,\n looks from right. If y is outside range of self.y\n the... | 49 | false | DataMedSci/beprof | x_at_y | 22,547 | |
LDU_FT/fake-name/WebRequest/_getresult | LDU_FT | [
"<BEGIN>\n## `getFileAndName`",
"Give a requested page (note: the arguments for this call are forwarded to getpage()),\n\t\treturn the content at the target URL and the filename for the target content as a\n\t\t2-tuple (pgctnt, hName) for the content at the target URL.",
"\t\tThe filename specified in the conte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _getresult API.
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 _getresult API.
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... | Poll until a captcha `captcha_id` has been solved, or
the poll times out. The timeout is the default 60 seconds,
unless overridden by `timeout` (which is in seconds).
Polling is done every 8 seconds. | "Poll until a captcha `captcha_id` has been solved, or\n\t\tthe poll times out. The timeout is the default 60 seconds,\n\t\tunless overridden by `timeout` (which is in seconds).\n\n\t\tPolling is done every 8 seconds." | 66 | false | fake-name/WebRequest | _getresult | 22,548 | |
LDU_FT/katyukha/extend-me/_ | LDU_FT | [
"<BEGIN>\n## `_`",
"Method to generate real metaclass to be used::",
" mc = ExtensibleType._(\"MyClass\") # note this line\n @six.add_metaclass(mc)\n class MyClassBase(object):\n pass",
" :param str cls_name: name of generated class\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API.
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 docum... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _ API.
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 docum... | Method to generate real metaclass to be used
::
# Create metaclass *mc*
mc = ExtensibleByHashType._("MyClass", hashattr='name')
# Create class using *mc* as metaclass
@six.add_metaclass(mc)
class MyClassBase(object):
... | "Method to generate real metaclass to be used\n ::\n\n # Create metaclass *mc*\n mc = ExtensibleByHashType._(\"MyClass\", hashattr='name')\n\n # Create class using *mc* as metaclass\n @six.add_metaclass(mc)\n class MyClassBase(object)... | 23 | false | katyukha/extend-me | _ | 22,549 | |
LDU_FT/sparklingpandas/sparklingpandas/_evil_apply_with_dataframes | LDU_FT | [
"<BEGIN>\n## `_prep_pandas_groupby`",
"Prepare the old school pandas group by based approach.\n<END>",
"<BEGIN>\n## `_group`",
"Group together the values with the same key.\n<END>",
"<BEGIN>\n## `groups`",
"Returns dict {group name -> group labels}.\n<END>",
"<BEGIN>\n## `indices`",
"Returns dict {gro... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _evil_apply_with_dataframes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _evil_apply_with_dataframes API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Convert the underlying SchmeaRDD to an RDD of DataFrames.
apply the provide function and convert the result back.
This is hella slow. | "Convert the underlying SchmeaRDD to an RDD of DataFrames.\n apply the provide function and convert the result back.\n This is hella slow." | 87 | false | sparklingpandas/sparklingpandas | _evil_apply_with_dataframes | 22,550 | |
LDU_FT/stanfordnlp/stanza/aic | LDU_FT | [
"<BEGIN>\n## `validate`",
"Evaluate this model on `validation_instances` during training and\n output a report.",
" :param validation_instances: The data to use to validate the model.\n :type validation_instances: list(instance.Instance)",
" :param metrics: Functions like those fou... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the aic API.
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 aic API.
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... | Return Akaike information criterion (AIC) scores for the given
`learner` producing the given `scores` (log likelihoods in base e):
aic = 2 * learner.num_params - 2 * sum(log_2(exp(scores)))
The result is a list *one element longer* than the number of scores:
the last element of this list is the pe... | "Return Akaike information criterion (AIC) scores for the given\n `learner` producing the given `scores` (log likelihoods in base e):\n\n aic = 2 * learner.num_params - 2 * sum(log_2(exp(scores)))\n\n The result is a list *one element longer* than the number of scores:\n the last element of this list is... | 309 | false | stanfordnlp/stanza | aic | 22,551 | |
LDU_FT/slok/prometheus-python/_label_names_correct | LDU_FT | [
"<BEGIN>\n## `negotiate`",
"Process headers dict to return the format class\n (not the instance)\n<END>",
"<BEGIN>\n## `add`",
"Add works like replace, but only previously pushed metrics with the\n same name (and the same job and instance) will be replaced.\n (It uses HTTP met... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _label_names_correct 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 _label_names_correct API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Raise exception (ValueError) if labels not correct | "Raise exception (ValueError) if labels not correct" | 20 | false | slok/prometheus-python | _label_names_correct | 22,552 | |
LDU_FT/alixedi/palal/_stdin_ | LDU_FT | [
"<BEGIN>\n## `license_loader`",
"Loads licenses from the given directory.\n<END>",
"<BEGIN>\n## `_stdin_`",
"Takes input from user. Works for Python 2 and 3.\n<END>",
"<BEGIN>\n## `survey_loader`",
"Loads up the given survey in the given dir.\n<END>",
"<BEGIN>\n## `is_answer_valid`",
"Validate user's ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _stdin_ API.
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 _stdin_ API.
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... | Takes input from user. Works for Python 2 and 3. | "Takes input from user. Works for Python 2 and 3." | 10 | false | alixedi/palal | _stdin_ | 22,553 | |
LDU_FT/joyent/python-manta/put_directory | LDU_FT | [
"<BEGIN>\n## `_request`",
"Make a Manta request",
" ...\n @returns (res, content)\n<END>",
"<BEGIN>\n## `put_directory`",
"PutDirectory\n https://apidocs.joyent.com/manta/api.html#PutDirectory",
" @param mdir {str} A manta path, e.g. '/trent/stor/mydir'.\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the put_directory API.
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 put_directory API.
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... | PutDirectory
https://apidocs.joyent.com/manta/api.html#PutDirectory
@param mdir {str} A manta path, e.g. '/trent/stor/mydir'. | "PutDirectory\n https://apidocs.joyent.com/manta/api.html#PutDirectory\n\n @param mdir {str} A manta path, e.g. '/trent/stor/mydir'." | 203 | false | joyent/python-manta | put_directory | 22,554 | |
LDU_FT/amcat/amcatclient/get_article | LDU_FT | [
"<BEGIN>\n## `serialize`",
"JSON serializer that accepts datetime & date\n<END>",
"<BEGIN>\n## `check`",
"Check whether the status code of the response equals expected_status and\n raise an APIError otherwise.\n @param url: The url of the response (for error messages).\n Defaults to respo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_article API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return a single article as a 'amcat-ready' dict
Uses the 'export' function of wikinews to get an xml article | "Return a single article as a 'amcat-ready' dict\n Uses the 'export' function of wikinews to get an xml article" | 24 | false | amcat/amcatclient | get_article | 22,555 | |
LDU_FT/cyface/django-termsandconditions/user_terms_updated | LDU_FT | [
"<BEGIN>\n## `is_path_protected`",
"returns True if given path is to be protected, otherwise False",
" The path is not to be protected when it appears on:\n TERMS_EXCLUDE_URL_PREFIX_LIST, TERMS_EXCLUDE_URL_LIST, TERMS_EXCLUDE_URL_CONTAINS_LIST or as\n ACCEPT_TERMS_PATH\n<END>",
"<BEGIN>\n## `process_... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the user_terms_updated 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 user_terms_updated 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... | Called when user terms and conditions is changed - to force cache clearing | "Called when user terms and conditions is changed - to force cache clearing" | 34 | false | cyface/django-termsandconditions | user_terms_updated | 22,556 | |
LDU_FT/learningequality/iceqube/handle_single_message | LDU_FT | [
"<BEGIN>\n## `wait_for_job_update`",
"Blocks until a job given by job_id has updated its state (canceled, completed, progress updated, etc.)\n if timeout is not None, then this function raises iceqube.exceptions.TimeoutError.",
" :param job_id: the job's job_id to monitor for changes.\n :pa... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_single_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_single_message API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Handle one message and modify the job storage appropriately.
:param msg: the message to handle
:return: None | "Handle one message and modify the job storage appropriately.\n :param msg: the message to handle\n :return: None" | 93 | false | learningequality/iceqube | handle_single_message | 22,557 | |
LDU_FT/hammerlab/cohorts/_strip_column_name | LDU_FT | [
"<BEGIN>\n## `download_to_path`",
"This method is analogous to \"gsutil cp gsuri localpath\", but in a\n programatically accesible way. The only difference is that we\n have to make a guess about the encoding of the file to not upset\n downstream file operations. If you are downloading a VCF,... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_column_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.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _strip_column_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.
Th... | Utility script applying several regexs to a string.
Intended to be used by `strip_column_names`.
This function will:
1. replace informative punctuation components with text
2. (optionally) remove text within parentheses
3. replace remaining punctuation/whitespace with _
4. strip... | "Utility script applying several regexs to a string.\n Intended to be used by `strip_column_names`.\n\n This function will:\n 1. replace informative punctuation components with text\n 2. (optionally) remove text within parentheses\n 3. replace remaining punctuation/whitespace with _\n ... | 230 | false | hammerlab/cohorts | _strip_column_name | 22,558 | |
LDU_FT/DataDog/integrations-core/update_one | LDU_FT | [
"<BEGIN>\n## `check_election_status`",
"Retrieves the leader-election annotation from a given object, and\n submits metrics and a service check.",
" An integration warning is sent if the object is not retrievable,\n or no record is found. Monitors on the service-check should have\n n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the update_one API.
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 update_one API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Update a single document matching the filter.
>>> for doc in db.test.find():
... print(doc)
...
{u'x': 1, u'_id': 0}
{u'x': 1, u'_id': 1}
{u'x': 1, u'_id': 2}
>>> result = db.test.update_one({'x': 1}, {'$inc': {'x': 3}})
>>> result.mat... | "Update a single document matching the filter.\n\n >>> for doc in db.test.find():\n ... print(doc)\n ...\n {u'x': 1, u'_id': 0}\n {u'x': 1, u'_id': 1}\n {u'x': 1, u'_id': 2}\n >>> result = db.test.update_one({'x': 1}, {'$inc': {'x': 3}})\n >>> ... | 2,189 | true | DataDog/integrations-core | update_one | 22,559 | |
LDU_FT/pmorissette/ffn/calc_ftca | LDU_FT | [
"<BEGIN>\n## `memoize`",
"Memoize decorator. The refresh keyword is the keyword\n used to bypass the cache (in the function call).\n<END>",
"<BEGIN>\n## `parse_arg`",
"Parses arguments for convenience. Argument can be a\n csv list ('a,b,c'), a string, a list, a tuple.",
" Returns a list.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the calc_ftca API.
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 calc_ftca API.
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... | Implementation of David Varadi's `Fast Threshold Clustering Algorithm (FTCA) <http://cssanalytics.wordpress.com/2013/11/26/fast-threshold-clustering-algorithm-ftca/>`_.
http://cssanalytics.wordpress.com/2013/11/26/fast-threshold-clustering-algorithm-ftca/ # NOQA
More stable than k-means for clustering purpos... | "Implementation of David Varadi's `Fast Threshold Clustering Algorithm (FTCA) <http://cssanalytics.wordpress.com/2013/11/26/fast-threshold-clustering-algorithm-ftca/>`_.\n\n http://cssanalytics.wordpress.com/2013/11/26/fast-threshold-clustering-algorithm-ftca/ # NOQA\n\n More stable than k-means for clustering p... | 176 | false | pmorissette/ffn | calc_ftca | 22,560 | |
LDU_FT/belbio/bel/process_citation | LDU_FT | [
"<BEGIN>\n## `convert_msg_to_html`",
"Convert \\n into a <BR> for an HTML formatted message\n<END>",
"<BEGIN>\n## `validate`",
"Validate Nanopub",
" Error Levels are similar to log levels - selecting WARNING includes both\n WARNING and ERROR, selecting ERROR just includes ERROR",
" The validation... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_citation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the process_citation API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Parse BEL Script Citation string into nanopub_bel citation object | "Parse BEL Script Citation string into nanopub_bel citation object" | 475 | false | belbio/bel | process_citation | 22,561 | |
LDU_FT/teepark/greenhouse/patched_context | LDU_FT | [
"<BEGIN>\n## `read`",
"read up to len bytes and return them, or empty string on EOF\n<END>",
"<BEGIN>\n## `write`",
"write data to the ssl channel and return the # of bytes transferred\n<END>",
"<BEGIN>\n## `connect`",
"connects to the address and wraps the connection in an SSL context\n<END>",
"<BEGIN>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the patched_context API.
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 patched_context API.
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... | apply emulation patches only for a specific context
:param module_names: var-args for the modules to patch, as in :func:`patch`
:param local:
if True, unpatching is done on every switch-out, and re-patching on
every switch-in, so that they are only applied for the one coroutine
:returns:
... | "apply emulation patches only for a specific context\n\n :param module_names: var-args for the modules to patch, as in :func:`patch`\n :param local:\n if True, unpatching is done on every switch-out, and re-patching on\n every switch-in, so that they are only applied for the one coroutine\n\n :re... | 349 | false | teepark/greenhouse | patched_context | 22,562 | |
LDU_FT/Chilipp/docrep/delete_types | LDU_FT | [
"<BEGIN>\n## `safe_modulo`",
"Safe version of the modulo operation (%) of strings",
" Parameters\n ----------\n s: str\n string to apply the modulo operation with\n meta: dict or tuple\n meta informations to insert (usually via ``s % meta``)\n checked: {'KEY', 'VALUE'}, optional\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_types API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extr... | Method to delete a parameter from a parameter documentation.
This method deletes the given `param` from the `base_key` item in the
:attr:`params` dictionary and creates a new item with the original
documentation without the description of the param. This method works
for ``'Results'`` l... | "Method to delete a parameter from a parameter documentation.\n\n This method deletes the given `param` from the `base_key` item in the\n :attr:`params` dictionary and creates a new item with the original\n documentation without the description of the param. This method works\n for ``'Result... | 136 | false | Chilipp/docrep | delete_types | 22,563 | |
LDU_FT/bitshares/uptick/cloneaccount | LDU_FT | [
"<BEGIN>\n## `orderbook`",
"Show the orderbook of a particular market\n<END>",
"<BEGIN>\n## `buy`",
"Buy a specific asset at a certain rate against a base asset\n<END>",
"<BEGIN>\n## `cancelall`",
"Cancel all orders of an account in a market\n<END>",
"<BEGIN>\n## `spread`",
"Place multiple orders",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cloneaccount API.
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 cloneaccount API.
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... | Clone an account
This copies the owner and active permissions as well as the
options (e.g. votes, memo key) | "Clone an account\n\n This copies the owner and active permissions as well as the\n options (e.g. votes, memo key)" | 50 | false | bitshares/uptick | cloneaccount | 22,564 | |
LDU_FT/ergo/ziggurat_foundations/path_upper | LDU_FT | [
"<BEGIN>\n## `run_migrations_offline`",
"Run migrations in 'offline' mode.",
" This configures the context with just a URL\n and not an Engine, though an Engine is acceptable\n here as well. By skipping the Engine creation\n we don't even need a DBAPI to be available.",
" Calls to context.exec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the path_upper API.
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 path_upper API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | This returns you path to root node starting from object_id
currently only for postgresql
:param object_id:
:param limit_depth:
:param db_session:
:return: | "This returns you path to root node starting from object_id\n currently only for postgresql\n\n :param object_id:\n :param limit_depth:\n :param db_session:\n :return:" | 229 | false | ergo/ziggurat_foundations | path_upper | 22,565 | |
LDU_FT/neighbordog/deviantart/create_notes_folder | LDU_FT | [
"<BEGIN>\n## `auth`",
"Authenticates user and retrieves (and refreshes) access token",
" :param code: code provided after redirect (authorization_code only)\n :param refresh_token: the refresh_token to update access_token without authorization\n<END>",
"<BEGIN>\n## `auth_uri`",
"The authorzati... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_notes_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_notes_folder API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
T... | Create new folder
:param title: The title of the folder to create
:param parentid: The UUID of the parent folder | "Create new folder\n\n :param title: The title of the folder to create\n :param parentid: The UUID of the parent folder" | 132 | false | neighbordog/deviantart | create_notes_folder | 22,566 | |
LDU_FT/thecynic/pylutron/_maybe_reconnect | LDU_FT | [
"<BEGIN>\n## `_send_locked`",
"Sends the specified command to the lutron controller.",
" Assumes self._lock is held.\n<END>",
"<BEGIN>\n## `_do_login_locked`",
"Executes the login procedure (telnet) as well as setting up some\n connection defaults like turning off the prompt, etc.\n<END>",
"<BEGIN>\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _maybe_reconnect API.
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 _maybe_reconnect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Reconnects to the controller if we have been previously disconnected. | "Reconnects to the controller if we have been previously disconnected." | 73 | false | thecynic/pylutron | _maybe_reconnect | 22,567 | |
LDU_FT/django-parler/django-parler/get_object_cache_keys | LDU_FT | [
"<BEGIN>\n## `objectlanguage`",
"Template tag to switch an object language\n Example::",
" {% objectlanguage object \"en\" %}\n {{ object.title }}\n {% endobjectlanguage %}",
" A TranslatedObject is not affected by the ``{% language .. %}`` tag\n as it maintains it's own state.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_cache_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_object_cache_keys API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
... | Return the cache keys associated with an object. | "Return the cache keys associated with an object." | 163 | false | django-parler/django-parler | get_object_cache_keys | 22,568 | |
LDU_FT/dpkp/kafka-python/await_flush_completion | LDU_FT | [
"<BEGIN>\n## `send_fetches`",
"Send FetchRequests for all assigned partitions that do not already have\n an in-flight fetch or pending fetch data.",
" Returns:\n List of Futures: each future resolves to a FetchResponse\n<END>",
"<BEGIN>\n## `reset_offsets_if_needed`",
"Lookup and se... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the await_flush_completion 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 await_flush_completion API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Mark all partitions as ready to send and block until the send is complete | "Mark all partitions as ready to send and block until the send is complete" | 787 | false | dpkp/kafka-python | await_flush_completion | 22,569 | |
LDU_FT/roboogle/gtkmvc3/add | LDU_FT | [
"<BEGIN>\n## `__create_log_props`",
"Creates all the logical property.",
" The list of names of properties to be created is passed\n with frozenset log_props. The getter/setter information is\n taken from _{get,set}dict.",
" This method resolves also wildcards in names, and perform... | 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... | raises an exception if the model cannot be added | "raises an exception if the model cannot be added" | 300 | false | roboogle/gtkmvc3 | add | 22,570 | |
LDU_FT/erikvw/django-collect-offline/primary_key_field | LDU_FT | [
"<BEGIN>\n## `save`",
"Saves a deserialized model object.",
" Uses save_base to avoid running code in model.save() and\n to avoid triggering signals (if raw=True).\n<END>",
"<BEGIN>\n## `deserialize_transactions`",
"Deserializes the encrypted serialized model\n instances, tx, in a queryset of t... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the primary_key_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the primary_key_field API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Return the primary key field.
Is `id` in most cases. Is `history_id` for Historical models. | "Return the primary key field.\n\n Is `id` in most cases. Is `history_id` for Historical models." | 43 | false | erikvw/django-collect-offline | primary_key_field | 22,571 | |
LDU_FT/klavinslab/coral/_remove_n | LDU_FT | [
"<BEGIN>\n## `sequence_type`",
"Validates a coral.sequence data type.",
" :param sequence_in: input DNA sequence.\n :type sequence_in: any\n :returns: The material - 'dna', 'rna', or 'peptide'.\n :rtype: str\n :raises: ValueError\n<END>",
"<BEGIN>\n## `pcr`",
"Simulate a PCR.",
" :param ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _remove_n API.
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 _remove_n API.
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... | Remove terminal Ns from sequencing results. | "Remove terminal Ns from sequencing results." | 364 | false | klavinslab/coral | _remove_n | 22,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.