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/pushyzheng/flask-rabbitmq/declare_queue | LDU_FT | [
"<BEGIN>\n## `bind_topic_exchange`",
"绑定主题交换机和队列\n :param exchange_name: 需要绑定的交换机名\n :param routing_key:\n :param queue_name: 需要绑定的交换机队列名\n :return:\n<END>",
"<BEGIN>\n## `declare_queue`",
"声明一个队列\n :param queue_name: 队列名\n :param passive:\n :param durable:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the declare_queue API.
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 declare_queue API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | 声明一个队列
:param queue_name: 队列名
:param passive:
:param durable:
:param exclusive:
:param auto_delete:
:param arguments:
:return: pika 框架生成的随机回调队列名 | "声明一个队列\n :param queue_name: 队列名\n :param passive:\n :param durable:\n :param exclusive:\n :param auto_delete:\n :param arguments:\n :return: pika 框架生成的随机回调队列名" | 16 | false | pushyzheng/flask-rabbitmq | declare_queue | 15,973 | |
LDU_FT/biosustain/optlang/from_json | LDU_FT | [
"<BEGIN>\n## `_constraint_lb_and_ub_to_gurobi_sense_rhs_and_range_value`",
"Helper function used by Constraint and Model\n<END>",
"<BEGIN>\n## `_evolve_kwargs`",
"Filter None keyword arguments. Intended to be passed on to algorithm.evolve(...)\n<END>",
"<BEGIN>\n## `parse_optimization_expression`",
"Funct... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Constructs a Variable from the provided json-object.
Example
--------
>>> import json
>>> with open("path_to_file.json") as infile:
>>> constraint = Constraint.from_json(json.load(infile)) | "Constructs a Variable from the provided json-object.\n\n Example\n --------\n >>> import json\n >>> with open(\"path_to_file.json\") as infile:\n >>> constraint = Constraint.from_json(json.load(infile))" | 106 | false | biosustain/optlang | from_json | 15,974 | |
LDU_FT/Toilal/rebulk/build_chain | LDU_FT | [
"<BEGIN>\n## `formatters`",
"Chain formatter functions.\n :param chained_formatters:\n :type chained_formatters:\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `_default_conflict_solver`",
"Default conflict solver for matches, shorter matches if they conflicts with longer ones",
" :param conflict... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_chain API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the build_chain API.
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... | Builds a new patterns chain
:param pattern:
:type pattern:
:param kwargs:
:type kwargs:
:return:
:rtype: | "Builds a new patterns chain\n\n :param pattern:\n :type pattern:\n :param kwargs:\n :type kwargs:\n :return:\n :rtype:" | 174 | false | Toilal/rebulk | build_chain | 15,975 | |
LDU_FT/xenon-middleware/pyxenon/method_wrapper | LDU_FT | [
"<BEGIN>\n## `make_exception`",
"Creates an exception for a given method, and RpcError.\n<END>",
"<BEGIN>\n## `get_field_type`",
"Obtain the type name of a GRPC Message field.\n<END>",
"<BEGIN>\n## `get_field_description`",
"Get the type description of a GRPC Message field.\n<END>",
"<BEGIN>\n## `make_s... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the method_wrapper API.
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 method_wrapper API.
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... | Generates a method from a `GrpcMethod` definition. | "Generates a method from a `GrpcMethod` definition." | 35 | false | xenon-middleware/pyxenon | method_wrapper | 15,976 | |
LDU_FT/treethought/flask-assistant/link_out | LDU_FT | [
"<BEGIN>\n## `build_item`",
"Builds an item that may be added to List or Carousel\n<END>",
"<BEGIN>\n## `suggest`",
"Use suggestion chips to hint at responses to continue or pivot the conversation\n<END>",
"<BEGIN>\n## `link_out`",
"Presents a chip similar to suggestion, but instead links to a url\n<END>"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the link_out API.
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 link_out API.
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... | Presents a chip similar to suggestion, but instead links to a url | "Presents a chip similar to suggestion, but instead links to a url" | 65 | false | treethought/flask-assistant | link_out | 15,977 | |
LDU_FT/TAPPGuild/sqlalchemy-models/create_session_engine | LDU_FT | [
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `load_commodities`",
"Load the commodities for Amounts in this object.\n<END>",
"<BEGIN>\n## `create_user... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_session_engine 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_session_engine 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 an sqlalchemy session and engine.
:param str uri: The database URI to connect to
:param cfg: The configuration object with database URI info.
:return: The session and the engine as a list (in that order) | "Create an sqlalchemy session and engine.\n\n :param str uri: The database URI to connect to\n :param cfg: The configuration object with database URI info.\n :return: The session and the engine as a list (in that order)" | 30 | false | TAPPGuild/sqlalchemy-models | create_session_engine | 15,978 | |
LDU_FT/peterldowns/djoauth2/generate_access_token_from_authorization_code | LDU_FT | [
"<BEGIN>\n## `update_parameters`",
"Updates a URL's existing GET parameters.",
" :param url: a base URL to which to add additional parameters.\n :param parameters: a dictionary of parameters, any mix of\n unicode and string objects as the parameters and the values.\n :parameter encoding: the byte encoding... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_access_token_from_authorization_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_access_token_from_authorization_code API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> in... | Generates a new AccessToken from a request with an authorization code.
Read the specification: http://tools.ietf.org/html/rfc6749#section-4.1.3 | "Generates a new AccessToken from a request with an authorization code.\n\n Read the specification: http://tools.ietf.org/html/rfc6749#section-4.1.3" | 70 | false | peterldowns/djoauth2 | generate_access_token_from_authorization_code | 15,979 | |
LDU_FT/marshmallow-code/apispec/warn_if_schema_already_in_spec | 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 warn_if_schema_already_in_spec 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 warn_if_schema_already_in_spec API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its con... | Method to warn the user if the schema has already been added to the
spec. | "Method to warn the user if the schema has already been added to the\n spec." | 149 | false | marshmallow-code/apispec | warn_if_schema_already_in_spec | 15,980 | |
LDU_FT/mbr/flask-kvsession/init_app | LDU_FT | [
"<BEGIN>\n## `has_expired`",
"Report if the session key has expired.",
" :param lifetime: A :class:`datetime.timedelta` that specifies the\n maximum age this :class:`SessionID` should be checked\n against.\n :param now: If specified, use this :class:... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the init_app API.
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 init_app API.
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... | Initialize application and KVSession.
This will replace the session management of the application with
Flask-KVSession's.
:param app: The :class:`~flask.Flask` app to be initialized. | "Initialize application and KVSession.\n\n This will replace the session management of the application with\n Flask-KVSession's.\n\n :param app: The :class:`~flask.Flask` app to be initialized." | 22 | false | mbr/flask-kvsession | init_app | 15,981 | |
LDU_FT/peterwittek/ncpol2sdpa/get_neighbors | LDU_FT | [
"<BEGIN>\n## `read_sdpa_out`",
"Helper function to parse the output file of SDPA.",
" :param filename: The name of the SDPA output file.\n :type filename: str.\n :param solutionmatrix: Optional parameter for retrieving the solution.\n :type solutionmatrix: bool.\n :param status: Optional paramete... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neighbors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_neighbors API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Get the forward neighbors of a site in a lattice.
:param index: Linear index of operator.
:type index: int.
:param lattice_length: The size of the 2D lattice in either dimension
:type lattice_length: int.
:param width: Optional parameter to define width.
:type width: int.
:param periodic: O... | "Get the forward neighbors of a site in a lattice.\n\n :param index: Linear index of operator.\n :type index: int.\n :param lattice_length: The size of the 2D lattice in either dimension\n :type lattice_length: int.\n :param width: Optional parameter to define width.\n :type width: int.\n :param pe... | 217 | false | peterwittek/ncpol2sdpa | get_neighbors | 15,982 | |
LDU_FT/openstack/horizon/clean_up_auth_url | LDU_FT | [
"<BEGIN>\n## `volume_list_paged`",
"List volumes with pagination.",
" To see all volumes in the cloud as an admin you can pass in a special\n search option: {'all_tenants': 1}\n<END>",
"<BEGIN>\n## `extension_supported`",
"This method will determine if Cinder supports a given extension name.\n<END>",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_up_auth_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_up_auth_url API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Clean up the auth url to extract the exact Keystone URL | "Clean up the auth url to extract the exact Keystone URL" | 831 | false | openstack/horizon | clean_up_auth_url | 15,983 | |
LDU_FT/tjvr/kurt/convert | LDU_FT | [
"<BEGIN>\n## `_workaround_no_stage_specific_variables`",
"Make Stage-specific variables global (move them to Project).\n<END>",
"<BEGIN>\n## `register`",
"Register a new :class:`KurtPlugin`.",
" Once registered, the plugin can be used by :class:`Project`, when:",
" * :attr:`Project.load` see... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the convert API.
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 convert API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a :class:`PluginBlockType` for the given plugin name.
If plugin is ``None``, return the first registered plugin. | "Return a :class:`PluginBlockType` for the given plugin name.\n\n If plugin is ``None``, return the first registered plugin." | 171 | false | tjvr/kurt | convert | 15,984 | |
LDU_FT/pletzer/pnumpy/mdaZeros | LDU_FT | [
"<BEGIN>\n## `getStringPartition`",
"Get the string representation of the current partition\n @return string like \":-1,0:2\"\n<END>",
"<BEGIN>\n## `getPrimeFactors`",
"Get all the prime factor of given integer\n @param n integer\n @return list [1, ..., n]\n<END>",
"<BEGIN>\n## `getNeighborProc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the mdaZeros API.
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 mdaZeros API.
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... | Zero constructor for masked distributed array
@param shap the shape of the array
@param dtype the numpy data type
@param mask mask array (or None if all data elements are valid) | "Zero constructor for masked distributed array\n @param shap the shape of the array\n @param dtype the numpy data type\n @param mask mask array (or None if all data elements are valid)" | 54 | false | pletzer/pnumpy | mdaZeros | 15,985 | |
LDU_FT/marshmallow-code/apispec/field2range | 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 field2range API.
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 field2range API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Return the dictionary of OpenAPI field attributes for a set of
:class:`Range <marshmallow.validators.Range>` 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.Range>` validators.\n\n :param Field field: A marshmallow field.\n :rtype: dict" | 149 | false | marshmallow-code/apispec | field2range | 15,986 | |
LDU_FT/radjkarl/imgProcessor/sensitivity | LDU_FT | [
"<BEGIN>\n## `polynomial`",
"replace all masked values\r\n calculate flatField from 2d-polynomal fit filling\r\n all high gradient areas within averaged fit-image\r",
" returns flatField, average background level, fitted image, valid indices mask\n<END>",
"<BEGIN>\n## `exampleSignals`",
"std ... st... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sensitivity API.
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 sensitivity API.
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... | Extract pixel sensitivity from a set of homogeneously illuminated images
This method is detailed in Section 5 of:
---
K.Bedrich, M.Bokalic et al.:
ELECTROLUMINESCENCE IMAGING OF PV DEVICES:
ADVANCED FLAT FIELD CALIBRATION,2017
--- | "Extract pixel sensitivity from a set of homogeneously illuminated images\r\n\r\n This method is detailed in Section 5 of:\r\n ---\r\n K.Bedrich, M.Bokalic et al.:\r\n ELECTROLUMINESCENCE IMAGING OF PV DEVICES:\r\n ADVANCED FLAT FIELD CALIBRATION,2017\r\n ---" | 462 | false | radjkarl/imgProcessor | sensitivity | 15,987 | |
LDU_FT/alan-turing-institute/topic-modelling-tools/stopword_remove | LDU_FT | [
"<BEGIN>\n## `set_priors`",
"Override default values for Dirichlet hyperparameters.\n alpha: hyperparameter for distribution of topics within documents.\n beta: hyperparameter for distribution of tokens within topics.\n<END>",
"<BEGIN>\n## `set_sampled_topics`",
"Allocate sampled topics to the d... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the stopword_remove API.
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 stopword_remove API.
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... | Remove stopwords from either tokens (items = "tokens")
or stems (items = "stems") | "Remove stopwords from either tokens (items = \"tokens\")\n or stems (items = \"stems\")" | 44 | false | alan-turing-institute/topic-modelling-tools | stopword_remove | 15,988 | |
LDU_FT/mozilla/build-mar/compression_type | LDU_FT | [
"<BEGIN>\n## `add_signature_block`",
"Add a signature block to marfile, a MarReader object.",
" Productversion and channel are preserved, but any existing signatures are overwritten.",
" Args:\n src_fileobj (file object): The input MAR file to add a signature to\n dest_fileobj (file object... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compression_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 ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the compression_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 ... | Return the latest compresion type used in this MAR.
Returns:
One of None, 'bz2', or 'xz' | "Return the latest compresion type used in this MAR.\n\n Returns:\n One of None, 'bz2', or 'xz'" | 146 | false | mozilla/build-mar | compression_type | 15,989 | |
LDU_FT/Zsailer/phylopandas/_dendropy_to_dataframe | LDU_FT | [
"<BEGIN>\n## `_dendropy_to_dataframe`",
"Convert Dendropy tree to Pandas dataframe.\n<END>",
"<BEGIN>\n## `_read`",
"Read a phylogenetic tree into a phylopandas.DataFrame.",
" The resulting DataFrame has the following columns:\n - name: label for each taxa or node.\n - id: unique id (create... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _dendropy_to_dataframe 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 _dendropy_to_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Convert Dendropy tree to Pandas dataframe. | "Convert Dendropy tree to Pandas dataframe." | 65 | false | Zsailer/phylopandas | _dendropy_to_dataframe | 15,990 | |
LDU_FT/housecanary/hc-api-python/has_object_error | LDU_FT | [
"<BEGIN>\n## `normalize_cell_value`",
"Process value for writing into a cell.",
" Args:\n value: any type of variable",
" Returns:\n json serialized value if value is list or dict, else value\n<END>",
"<BEGIN>\n## `get_addresses_from_input_file`",
"Read addresses from input file into l... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_object_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_object_error API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ... | Returns true if any requested object had a business logic error,
otherwise returns false
Returns:
boolean | "Returns true if any requested object had a business logic error,\n otherwise returns false\n\n Returns:\n boolean" | 137 | false | housecanary/hc-api-python | has_object_error | 15,991 | |
LDU_FT/locuslab/qpth/pre_factor_kkt | LDU_FT | [
"<BEGIN>\n## `forward`",
"Solve a batch of QPs.",
" This function solves a batch of QPs, each optimizing over\n `nz` variables and having `nineq` inequality constraints\n and `neq` equality constraints.\n The optimization problem for each instance in the batch\n (dropping inde... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pre_factor_kkt API.
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 pre_factor_kkt API.
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... | Perform all one-time factorizations and cache relevant matrix products | "Perform all one-time factorizations and cache relevant matrix products" | 22 | false | locuslab/qpth | pre_factor_kkt | 15,992 | |
LDU_FT/rmorshea/spectate/watched | LDU_FT | [
"<BEGIN>\n## `views`",
"Return a model's views keyed on what events they respond to.",
" Model views are added by calling :func:`view` on a model.\n<END>",
"<BEGIN>\n## `view`",
"A decorator for registering a callback to a model",
" Parameters:\n model: the model object whose changes the call... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the watched API.
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 watched API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Create and return a :class:`Watchable` with its :class:`Specatator`.
See :func:`watch` for more info on :class:`Specatator` registration.
Parameters
----------
cls: type:
A subclass of :class:`Watchable`
*args:
Positional arguments used to create the instance
**kwargs:
... | "Create and return a :class:`Watchable` with its :class:`Specatator`.\n\n See :func:`watch` for more info on :class:`Specatator` registration.\n\n Parameters\n ----------\n cls: type:\n A subclass of :class:`Watchable`\n *args:\n Positional arguments used to create the instance\n **kwarg... | 94 | false | rmorshea/spectate | watched | 15,993 | |
LDU_FT/perrygeo/simanneal/anneal | LDU_FT | [
"<BEGIN>\n## `distance`",
"Calculates distance between two latitude-longitude coordinates.\n<END>",
"<BEGIN>\n## `round_figures`",
"Returns x rounded to n significant figures.\n<END>",
"<BEGIN>\n## `set_schedule`",
"Takes the output from `auto` and sets the attributes\n<END>",
"<BEGIN>\n## `copy_state`"... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the anneal API.
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 anneal API.
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 ... | Minimizes the energy of a system by simulated annealing.
Parameters
state : an initial arrangement of the system
Returns
(state, energy): the best state and energy found. | "Minimizes the energy of a system by simulated annealing.\n\n Parameters\n state : an initial arrangement of the system\n\n Returns\n (state, energy): the best state and energy found." | 67 | false | perrygeo/simanneal | anneal | 15,994 | |
LDU_FT/wavefrontHQ/python-client/create_source | LDU_FT | [
"<BEGIN>\n## `display`",
"Sets the display of this Message.",
" The form of display for this message # noqa: E501",
" :param display: The display of this Message. # noqa: E501\n :type: str\n<END>",
"<BEGIN>\n## `scope`",
"Sets the scope of this Message.",
" The audience sco... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_source API.
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 create_source API.
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... | Create metadata (description or tags) for a specific source # noqa: E501
# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.create_source(async_req=True)
>>> result = thread.g... | "Create metadata (description or tags) for a specific source # noqa: E501\n\n # noqa: E501\n This method makes a synchronous HTTP request by default. To make an\n asynchronous HTTP request, please pass async_req=True\n >>> thread = api.create_source(async_req=True)\n >>> result = t... | 954 | false | wavefrontHQ/python-client | create_source | 15,995 | |
LDU_FT/Kjwon15/autotweet/get_best_answer | LDU_FT | [
"<BEGIN>\n## `add_document`",
"Add question answer set to DB.",
" :param question: A question to an answer\n :type question: :class:`str`",
" :param answer: An answer to a question\n :type answer: :class:`str`\n<END>",
"<BEGIN>\n## `get_best_answer`",
"Get best answer to a ques... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_best_answer API.
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_best_answer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Get best answer to a question.
:param query: A question to get an answer
:type query: :class:`str`
:returns: An answer to a question
:rtype: :class:`str`
:raises: :class:`NoAnswerError` when can not found answer to a question | "Get best answer to a question.\n\n :param query: A question to get an answer\n :type query: :class:`str`\n\n :returns: An answer to a question\n :rtype: :class:`str`\n\n :raises: :class:`NoAnswerError` when can not found answer to a question" | 35 | false | Kjwon15/autotweet | get_best_answer | 15,996 | |
LDU_FT/progrium/skypipe/check_skypipe_endpoint | LDU_FT | [
"<BEGIN>\n## `sp_msg`",
"Produces skypipe protocol multipart message\n<END>",
"<BEGIN>\n## `check_skypipe_endpoint`",
"Skypipe endpoint checker -- pings endpoint",
" Returns True if endpoint replies with valid header,\n Returns False if endpoint replies with invalid header,\n Returns None if endpoi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_skypipe_endpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_skypipe_endpoint API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.... | Skypipe endpoint checker -- pings endpoint
Returns True if endpoint replies with valid header,
Returns False if endpoint replies with invalid header,
Returns None if endpoint does not reply within timeout | "Skypipe endpoint checker -- pings endpoint\n\n Returns True if endpoint replies with valid header,\n Returns False if endpoint replies with invalid header,\n Returns None if endpoint does not reply within timeout" | 22 | false | progrium/skypipe | check_skypipe_endpoint | 15,997 | |
LDU_FT/oblalex/django-candv-choices/validate | LDU_FT | [
"<BEGIN>\n## `clean`",
"Convert the value's type and run validation. Validation errors\n from to_python and validate are propagated. The correct value is\n returned if no error is raised.\n<END>",
"<BEGIN>\n## `_get_flatchoices`",
"Redefine standard method.",
" Return constants themselv... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
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... | Validates that the input is in self.choices. | "Validates that the input is in self.choices." | 15 | false | oblalex/django-candv-choices | validate | 15,998 | |
LDU_FT/gmr/rejected/_serialize | LDU_FT | [
"<BEGIN>\n## `active_processes`",
"Return a list of all active processes, pruning dead ones",
" :rtype: list\n<END>",
"<BEGIN>\n## `calculate_stats`",
"Calculate the stats data for our process level data.",
" :param data: The collected stats data to report on\n :type data: dict\n<END>... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize API.
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 _serialize API.
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... | Auto-serialization of the value based upon the content-type value.
:param any value: The value to serialize
:param ietfparse.: The content type to serialize
:rtype: str
:raises: ValueError | "Auto-serialization of the value based upon the content-type value.\n\n :param any value: The value to serialize\n :param ietfparse.: The content type to serialize\n :rtype: str\n :raises: ValueError" | 368 | false | gmr/rejected | _serialize | 15,999 | |
LDU_FT/henzk/featuremonkey/_serialize_iterable | LDU_FT | [
"<BEGIN>\n## `_serialize_function`",
"Still needing this much try-except stuff. We should find a way to get rid of this.\n :param obj:\n :return:\n<END>",
"<BEGIN>\n## `_serialize_module`",
"Tries to serialize a module by its __dict__ attr.\n Remove the builtins attr as this one is not relevant and e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _serialize_iterable 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 _serialize_iterable 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... | Only for serializing list and tuples and stuff.
Dicts and Strings/Unicode is treated differently.
String/Unicode normally don't need further serialization and it would cause
a max recursion error trying to do so.
:param obj:
:return: | "Only for serializing list and tuples and stuff.\n Dicts and Strings/Unicode is treated differently.\n String/Unicode normally don't need further serialization and it would cause\n a max recursion error trying to do so.\n :param obj:\n :return:" | 32 | false | henzk/featuremonkey | _serialize_iterable | 16,000 | |
LDU_FT/luismasuelli/python-cantrips/factory | LDU_FT | [
"<BEGIN>\n## `can_take`",
"Decorator to make a class allow their instances to generate\n snapshot of themselves.",
" Decorates the class by allowing it to have:\n * A custom class to serve each snapshot. Such class\n will have a subset of attributes to serve from the object,\n and a spe... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted... | Creates a custom exception class with arbitrary error codes and arguments. | "Creates a custom exception class with arbitrary error codes and arguments." | 51 | false | luismasuelli/python-cantrips | factory | 16,001 | |
LDU_FT/klmitch/turnstile/get_int | LDU_FT | [
"<BEGIN>\n## `add_argument`",
"Define an argument for the function when running in console script\n mode. The positional and keyword arguments are the same as for\n ArgumentParser.add_argument().\n<END>",
"<BEGIN>\n## `add_preprocessor`",
"Define a preprocessor to run after the arguments are parsed and... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_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 extracted... | A helper to retrieve an integer value from a given dictionary
containing string values. If the requested value is not present
in the dictionary, or if it cannot be converted to an integer, a
default value will be returned instead.
:param config: The dictionary containing the desired value.
:param ... | "A helper to retrieve an integer value from a given dictionary\n containing string values. If the requested value is not present\n in the dictionary, or if it cannot be converted to an integer, a\n default value will be returned instead.\n\n :param config: The dictionary containing the desired value.\n ... | 208 | false | klmitch/turnstile | get_int | 16,002 | |
LDU_FT/inspirehep/plotextractor/prepare_image_data | LDU_FT | [
"<BEGIN>\n## `get_context`",
"Get context.",
" Given a relevant string from a TeX file, this function will extract text\n from it as far as it is deemed contextually relevant, either backwards or\n forwards in the text.\n The level of relevance allowed is configurable. When it reaches some\n poin... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_image_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prepare_image_data API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
Th... | Prepare and clean image-data from duplicates and other garbage.
:param: extracted_image_data ([(string, string, list, list) ...],
...])): the images and their captions + contexts, ordered
:param: tex_file (string): the location of the TeX (used for finding the
associated images; the TeX is assu... | "Prepare and clean image-data from duplicates and other garbage.\n\n :param: extracted_image_data ([(string, string, list, list) ...],\n ...])): the images and their captions + contexts, ordered\n :param: tex_file (string): the location of the TeX (used for finding the\n associated images; the TeX i... | 80 | false | inspirehep/plotextractor | prepare_image_data | 16,003 | |
LDU_FT/trolldbois/ctypeslib/FundamentalType | LDU_FT | [
"<BEGIN>\n## `init_fundamental_types`",
"Registers all fundamental typekind handlers\n<END>",
"<BEGIN>\n## `_handle_fundamental_types`",
"Handles POD types nodes.\n see init_fundamental_types for the registration.\n<END>",
"<BEGIN>\n## `_array_handler`",
"Handles all array types.\n Resolves ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the FundamentalType API.
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 FundamentalType API.
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 proper ctypes class name for a fundamental type
1) activates generation of appropriate headers for
## int128_t
## c_long_double_t
2) return appropriate name for type | "Returns the proper ctypes class name for a fundamental type\n\n 1) activates generation of appropriate headers for\n ## int128_t\n ## c_long_double_t\n 2) return appropriate name for type" | 88 | false | trolldbois/ctypeslib | FundamentalType | 16,004 | |
LDU_FT/pazz/urwidtrees/focus_parent | LDU_FT | [
"<BEGIN>\n## `_get`",
"loads widget at given position; handling invalid arguments\n<END>",
"<BEGIN>\n## `_next_of_kin`",
"looks up the next sibling of the closest ancestor with not-None next\n siblings.\n<END>",
"<BEGIN>\n## `_last_in_direction`",
"move in the tree in given direction and return the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the focus_parent API.
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 focus_parent API.
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... | move focus to parent node of currently focussed one | "move focus to parent node of currently focussed one" | 60 | false | pazz/urwidtrees | focus_parent | 16,005 | |
LDU_FT/mlavin/django-selectable/has_changed | LDU_FT | [
"<BEGIN>\n## `has_changed`",
"Detects if the data was changed. This is added in 1.6.\n<END>",
"<BEGIN>\n## `results_decorator`",
"Helper for constructing simple decorators around Lookup.results.",
" func is a function which takes a request as the first parameter. If func\n returns an HttpReponse it is... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the has_changed API.
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 has_changed API.
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... | Detects if the data was changed. This is added in 1.6. | "Detects if the data was changed. This is added in 1.6." | 21 | false | mlavin/django-selectable | has_changed | 16,006 | |
LDU_FT/jtpaasch/simplygithub/get_file | LDU_FT | [
"<BEGIN>\n## `get_url`",
"Get the URL for a resource.",
" Args:",
" profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.",
" res... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Get a file from a branch.
Args:
profile
A profile generated from ``simplygithub.authentication.profile``.
Such profiles tell this module (i) the ``repo`` to connect to,
and (ii) the ``token`` to connect with.
branch
The name of a branch.
fi... | "Get a file from a branch.\n\n Args:\n\n profile\n A profile generated from ``simplygithub.authentication.profile``.\n Such profiles tell this module (i) the ``repo`` to connect to,\n and (ii) the ``token`` to connect with.\n\n branch\n The name of a branch.\... | 224 | false | jtpaasch/simplygithub | get_file | 16,007 | |
LDU_FT/erocarrera/pefile/set_word_at_rva | LDU_FT | [
"<BEGIN>\n## `is_suspicious`",
"unusual locations of import tables\n non recognized section names\n presence of long ASCII strings\n<END>",
"<BEGIN>\n## `is_probably_packed`",
"Returns True is there is a high likelihood that a file is packed or contains compressed data.",
" The sections of the PE f... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the set_word_at_rva API.
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 set_word_at_rva API.
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... | Set the word value at the file offset corresponding to the given RVA. | "Set the word value at the file offset corresponding to the given RVA." | 160 | false | erocarrera/pefile | set_word_at_rva | 16,008 | |
LDU_FT/mapillary/mapillary_tools/durationSeconds | LDU_FT | [
"<BEGIN>\n## `convert_from_gps_time`",
"Convert gps time in ticks to standard time.\n<END>",
"<BEGIN>\n## `upload`",
"Upload local images to Mapillary\n Args:\n import_path: Directory path to where the images are stored.\n verbose: Print extra warnings and errors.\n skip_subfolders: Sk... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the durationSeconds API.
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 durationSeconds API.
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 runtime duration of the video stream as a floating point number of seconds.
Returns 0.0 if not a video stream. | "Returns the runtime duration of the video stream as a floating point number of seconds.\n Returns 0.0 if not a video stream." | 96 | false | mapillary/mapillary_tools | durationSeconds | 16,009 | |
LDU_FT/c-w/gutenberg/get | LDU_FT | [
"<BEGIN>\n## `_etextno_to_uri_subdirectory`",
"Returns the subdirectory that an etextno will be found in a gutenberg\n mirror. Generally, one finds the subdirectory by separating out each digit\n of the etext number, and uses it for a directory. The exception here is for\n etext numbers less than 10, whi... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Returns the MetadataExtractor that can extract information about the
provided feature name.
Raises:
UnsupportedFeature: If no extractor exists for the feature name. | "Returns the MetadataExtractor that can extract information about the\n provided feature name.\n\n Raises:\n UnsupportedFeature: If no extractor exists for the feature name." | 70 | false | c-w/gutenberg | get | 16,010 | |
LDU_FT/salimm/msgpack-pystream/handle_read_value | LDU_FT | [
"<BEGIN>\n## `_empty_value`",
"returns default empty value \n :param formattype:\n :param buff:\n :param start:\n :param end:\n<END>",
"<BEGIN>\n## `process`",
"Process the input buffer. The buffer can contains all or a segment of the bytes from the complete message. \n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_read_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the handle_read_value API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | handle read of the value based on the expected length
:param buff:
:param start:
:param end: | "handle read of the value based on the expected length\n :param buff:\n :param start:\n :param end:" | 20 | false | salimm/msgpack-pystream | handle_read_value | 16,011 | |
LDU_FT/fusionbox/django-argonauts/dumps | LDU_FT | [
"<BEGIN>\n## `dumps`",
"Wrapper for json.dumps that uses the JSONArgonautsEncoder.\n<END>",
"<BEGIN>\n## `json`",
"Output the json encoding of its argument.",
" This will escape all the HTML/XML special characters with their unicode\n escapes, so it is safe to be output anywhere except for inside a ta... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dumps API.
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 dumps API.
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... | Wrapper for json.dumps that uses the JSONArgonautsEncoder. | "Wrapper for json.dumps that uses the JSONArgonautsEncoder." | 18 | false | fusionbox/django-argonauts | dumps | 16,012 | |
LDU_FT/MAVENSDC/PyTplot/timespan | LDU_FT | [
"<BEGIN>\n## `del_data`",
"This function will delete tplot variables that are already stored in memory. ",
" Parameters:\n name : str \n Name of the tplot variable to be deleted. If no name is provided, then \n all tplot variables will be deleted. ",
" Returns:\n N... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the timespan API.
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 timespan API.
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... | This function will set the time range for all time series plots. This is a wrapper for the function "xlim" to
better handle time axes.
Parameters:
t1 : flt/str
The time to start all time series plots. Can be given in seconds since epoch, or as a string
in the format "YYY... | "This function will set the time range for all time series plots. This is a wrapper for the function \"xlim\" to\n better handle time axes. \n \n Parameters:\n t1 : flt/str\n The time to start all time series plots. Can be given in seconds since epoch, or as a string\n in the fo... | 155 | false | MAVENSDC/PyTplot | timespan | 16,013 | |
LDU_FT/sfstpala/pcr/pbkdf2 | LDU_FT | [
"<BEGIN>\n## `check_candidate`",
"Part of the Miller-Rabin primality test in is_prime().\n<END>",
"<BEGIN>\n## `is_prime`",
"Test whether n is prime probabilisticly.",
" This uses the Miller-Rabin primality test. If n is composite,\n then this test will declare it to be probably prime with a\n prob... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pbkdf2 API.
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 pbkdf2 API.
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 ... | PBKDF2, from PKCS #5 v2.0[1].
[1]: http://tools.ietf.org/html/rfc2898
For proper usage, see NIST Special Publication 800-132:
http://csrc.nist.gov/publications/PubsSPs.html
The arguments for this function are:
digestmod
a crypographic hash constructor, such as hashlib.sha256
... | "PBKDF2, from PKCS #5 v2.0[1].\n\n [1]: http://tools.ietf.org/html/rfc2898\n\n For proper usage, see NIST Special Publication 800-132:\n http://csrc.nist.gov/publications/PubsSPs.html\n\n The arguments for this function are:\n\n digestmod\n a crypographic hash constructor, such as hash... | 27 | false | sfstpala/pcr | pbkdf2 | 16,014 | |
LDU_FT/christophercrouzet/nani/_find_base_type | LDU_FT | [
"<BEGIN>\n## `resolve`",
"Retrieve the properties for a given data type.",
" This is the main routine where most of the work is done. It converts\n Nani's data types into properties that can be used to define a new NumPy\n array and to wrap it into a view object.",
" Use :func:`validate` to check ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_base_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 _find_base_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... | Find the Nani's base type for a given data type.
This is useful when Nani's data types were subclassed and the original type
is required. | "Find the Nani's base type for a given data type.\n\n This is useful when Nani's data types were subclassed and the original type\n is required." | 38 | false | christophercrouzet/nani | _find_base_type | 16,015 | |
LDU_FT/sahilchinoy/django-irs-filings/clean_cell | LDU_FT | [
"<BEGIN>\n## `clean_cell`",
"Uses the type of field (from the mapping) to\n determine how to clean and format the cell.\n<END>",
"<BEGIN>\n## `parse_row`",
"Parses a row, cell-by-cell, returning a dict of field names\n to the cleaned field values.\n<END>",
"<BEGIN>\n## `build_mappings`",
"Us... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the clean_cell API.
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 clean_cell API.
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... | Uses the type of field (from the mapping) to
determine how to clean and format the cell. | "Uses the type of field (from the mapping) to\n determine how to clean and format the cell." | 12 | false | sahilchinoy/django-irs-filings | clean_cell | 16,016 | |
LDU_FT/GoogleCloudPlatform/appengine-mapreduce/abort | LDU_FT | [
"<BEGIN>\n## `_validate_filters`",
"Validate user supplied filters.",
" Validate filters are on existing properties and filter values\n have valid semantics.",
" Args:\n filters: user supplied filters. Each filter should be a list or tuple of\n format (<property_name_as_str>, <query_opera... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the abort API.
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 abort API.
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... | Causes a job to abort.
Args:
mapreduce_id: The job to abort. Not verified as a valid job. | "Causes a job to abort.\n\n Args:\n mapreduce_id: The job to abort. Not verified as a valid job." | 766 | false | GoogleCloudPlatform/appengine-mapreduce | abort | 16,017 | |
LDU_FT/evhub/coconut/make_err | LDU_FT | [
"<BEGIN>\n## `single_import`",
"Generate import statements from a fully qualified import and the name to bind it to.\n<END>",
"<BEGIN>\n## `universal_import`",
"Generate code for a universal import of imports from imp_from on target.\n imports = [[imp1], [imp2, as], ...]\n<END>",
"<BEGIN>\n## `bind`",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_err API.
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 make_err API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracte... | Generate an error of the specified type. | "Generate an error of the specified type." | 219 | false | evhub/coconut | make_err | 16,018 | |
LDU_FT/b3j0f/annotation/_interception | LDU_FT | [
"<BEGIN>\n## `mixin_function_or_method`",
"Mixin a routine into the target.",
" :param routine: routine to mix in target.\n :param str name: mixin name. Routine name by default.\n :param bool isbound: If True (False by default), the mixin result is a\n bound method to target.\n<E... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _interception API.
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 _interception API.
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... | Intercept call of joinpoint callee in doing pre/post conditions. | "Intercept call of joinpoint callee in doing pre/post conditions." | 84 | false | b3j0f/annotation | _interception | 16,019 | |
LDU_FT/CityOfZion/neo-python-core/sign | LDU_FT | [
"<BEGIN>\n## `PrivateKeyFromWIF`",
"Get the private key from a WIF key",
" Args:\n wif (str): The wif key",
" Returns:\n bytes: The private key\n<END>",
"<BEGIN>\n## `PrivateKeyFromNEP2`",
"Gets the private key from a NEP-2 encrypted private key",
" Args:\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sign API.
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 sign API.
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... | sign the message using private key and sign secret
for signsecret k, message m, privatekey x
return (G*k, (m+x*r)/k) | "sign the message using private key and sign secret\n for signsecret k, message m, privatekey x\n return (G*k, (m+x*r)/k)" | 175 | false | CityOfZion/neo-python-core | sign | 16,020 | |
LDU_FT/klavinslab/coral/is_rotation | 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 is_rotation API.
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_rotation API.
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... | Determine whether two sequences are the same, just at different
rotations.
:param other: The sequence to check for rotational equality.
:type other: coral.sequence._sequence.Sequence | "Determine whether two sequences are the same, just at different\n rotations.\n\n :param other: The sequence to check for rotational equality.\n :type other: coral.sequence._sequence.Sequence" | 364 | false | klavinslab/coral | is_rotation | 16,021 | |
LDU_FT/aestrivex/bctpy/normalize | LDU_FT | [
"<BEGIN>\n## `density_dir`",
"Density is the fraction of present connections to possible connections.",
" Parameters\n ----------\n CIJ : NxN np.ndarray\n directed weighted/binary connection matrix",
" Returns\n -------\n kden : float\n density\n N : int\n number of v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the normalize API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extract... | Normalizes an input weighted connection matrix. If copy is not set, this
function will *modify W in place.*
Parameters
----------
W : np.ndarray
weighted connectivity matrix
copy : bool
if True, returns a copy of the matrix. Otherwise, modifies the matrix
in place. Default ... | "Normalizes an input weighted connection matrix. If copy is not set, this\n function will *modify W in place.*\n\n Parameters\n ----------\n W : np.ndarray\n weighted connectivity matrix\n copy : bool\n if True, returns a copy of the matrix. Otherwise, modifies the matrix\n in place... | 654 | false | aestrivex/bctpy | normalize | 16,022 | |
LDU_FT/coghost/izen/do_sess_get | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"简单封装系统加密",
" :param plain: 待加密内容\n :type plain: ``str/bytes``\n :param algorithm: 加密算法\n :type algorithm: str\n :return:\n :rtype:\n<END>",
"<BEGIN>\n## `aes_obj`",
"生成aes加密所需要的 ``key, iv``",
" .. warning:: 每个AES.new对象, 只能使用一次",
... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_sess_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the do_sess_get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | get url by requests synchronized
:param url:
:type url:
:return:
:rtype: | "get url by requests synchronized\n\n :param url:\n :type url:\n :return:\n :rtype:" | 273 | false | coghost/izen | do_sess_get | 16,023 | |
LDU_FT/CodyKochmann/strict_functions/cached | LDU_FT | [
"<BEGIN>\n## `has_args`",
"returns true if the decorator invocation\n had arguments passed to it before being\n sent a function to decorate\n<END>",
"<BEGIN>\n## `identify`",
"returns a tuple that is used to match\n functions to their neighbors in their\n resident n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the cached API.
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 cached API.
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 ... | this decorator creates a type safe lru_cache
around the decorated function. Unlike
functools.lru_cache, this will not crash when
unhashable arguments are passed to the function | "this decorator creates a type safe lru_cache\n around the decorated function. Unlike\n functools.lru_cache, this will not crash when\n unhashable arguments are passed to the function" | 48 | false | CodyKochmann/strict_functions | cached | 16,024 | |
LDU_FT/observermedia/django-wordpress-rest/sync_deleted_attachments | 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 sync_deleted_attachments 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 sync_deleted_attachments API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Remove Posts with post_type=attachment that have been removed from the given Post on the WordPress side.
Logic:
- get the list of Posts with post_type = attachment whose parent_id = this post_id
- get the corresponding list from WP API
- perform set difference
- delete extra loc... | "Remove Posts with post_type=attachment that have been removed from the given Post on the WordPress side.\n\n Logic:\n - get the list of Posts with post_type = attachment whose parent_id = this post_id\n - get the corresponding list from WP API\n - perform set difference\n - delete ex... | 100 | false | observermedia/django-wordpress-rest | sync_deleted_attachments | 16,025 | |
LDU_FT/chengsoonong/wib/up | LDU_FT | [
"<BEGIN>\n## `track`",
"Keep track of each file in list file_names.",
" Tracking does not create or delete the actual file, it only tells the\n version control system whether to maintain versions (to keep track) of\n the file.\n<END>",
"<BEGIN>\n## `untrack`",
"Forget about tracking each file in th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the up API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted docu... | (upload) Synchronise local repo to remote repo | "(upload) Synchronise local repo to remote repo" | 21 | false | chengsoonong/wib | up | 16,026 | |
LDU_FT/python-xlib/python-xlib/intern_atom | LDU_FT | [
"<BEGIN>\n## `query_int_attribute`",
"Return the value of an integer attribute\n<END>",
"<BEGIN>\n## `create_resource_object`",
"Create a resource object of type for the integer id. type\n should be one of the following strings:",
" resource\n drawable\n window\n pixmap\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the intern_atom API.
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 intern_atom API.
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... | Intern the string name, returning its atom number. If
only_if_exists is true and the atom does not already exist, it
will not be created and X.NONE is returned. | "Intern the string name, returning its atom number. If\n only_if_exists is true and the atom does not already exist, it\n will not be created and X.NONE is returned." | 232 | false | python-xlib/python-xlib | intern_atom | 16,027 | |
LDU_FT/jupyterhub/kubespawner/events | LDU_FT | [
"<BEGIN>\n## `make_pod`",
"Make a k8s pod specification for running a user notebook.",
" Parameters\n ----------\n name:\n Name of pod. Must be unique within the namespace the object is\n going to be created in. Must be a valid DNS label.\n image:\n Image specification - usually... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the events API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted ... | Filter event-reflector to just our events
Returns list of all events that match our pod_name
since our ._last_event (if defined).
._last_event is set at the beginning of .start(). | "Filter event-reflector to just our events\n\n Returns list of all events that match our pod_name\n since our ._last_event (if defined).\n ._last_event is set at the beginning of .start()." | 98 | false | jupyterhub/kubespawner | events | 16,028 | |
LDU_FT/waleedka/hiddenlayer/sequence_id | LDU_FT | [
"<BEGIN>\n## `format_step`",
"Return the step value in format suitable for display.\n<END>",
"<BEGIN>\n## `log`",
"Record metrics at a specific step. E.g.",
" my_history.log(34, loss=2.3, accuracy=0.2)",
" Okay to call multiple times for the same step. New values overwrite\n older one... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the sequence_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Make up an ID for a sequence (list) of nodes.
Note: `getrandbits()` is very uninformative as a "readable" ID. Here, we build a name
such that when the mouse hovers over the drawn node in Jupyter, one can figure out
which original nodes make up the sequence. This is actually quite useful. | "Make up an ID for a sequence (list) of nodes.\n Note: `getrandbits()` is very uninformative as a \"readable\" ID. Here, we build a name\n such that when the mouse hovers over the drawn node in Jupyter, one can figure out\n which original nodes make up the sequence. This is actually quite useful." | 50 | false | waleedka/hiddenlayer | sequence_id | 16,029 | |
LDU_FT/eonpatapon/contrail-api-cli/format_tree | LDU_FT | [
"<BEGIN>\n## `expand_paths`",
"Return an unique list of resources or collections from a list of paths.\n Supports fq_name and wilcards resolution.",
" >>> expand_paths(['virtual-network',\n 'floating-ip/2a0a54b4-a420-485e-8372-42f70a627ec9'])\n [Collection('virtual-network'),\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_tree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the format_tree API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Format a python tree structure
Given the python tree::
tree = {
'node': ['ROOT', 'This is the root of the tree'],
'childs': [{
'node': 'A1',
'childs': [{
'node': 'B1',
'childs': [{
'node... | "Format a python tree structure\n\n Given the python tree::\n\n tree = {\n 'node': ['ROOT', 'This is the root of the tree'],\n 'childs': [{\n 'node': 'A1',\n 'childs': [{\n 'node': 'B1',\n 'childs': [{\n ... | 138 | false | eonpatapon/contrail-api-cli | format_tree | 16,030 | |
LDU_FT/projectatomic/atomic-reactor/run | LDU_FT | [
"<BEGIN>\n## `_build`",
"build image from provided build_args",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `_load_results`",
"load results from recent build",
" :return: BuildResults\n<END>",
"<BEGIN>\n## `commit_buildroot`",
"create image from buildroot",
" :return:\n<END>",... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Pull parent images and retag them uniquely for this build. | "Pull parent images and retag them uniquely for this build." | 440 | false | projectatomic/atomic-reactor | run | 16,031 | |
LDU_FT/rauenzi/discordbot.py/info | LDU_FT | [
"<BEGIN>\n## `stop_pages`",
"stops the interactive pagination session\n<END>",
"<BEGIN>\n## `paginate`",
"Actually paginate the entries and run the interactive loop if necessary.\n<END>",
"<BEGIN>\n## `_do`",
"Repeats a command a specified number of times.\n<END>",
"<BEGIN>\n## `disable`",
"Disables a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the info API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted do... | Shows info about a member.
This cannot be used in private messages. If you don't specify
a member then the info returned will be yours. | "Shows info about a member.\n\n This cannot be used in private messages. If you don't specify\n a member then the info returned will be yours." | 52 | false | rauenzi/discordbot.py | info | 16,032 | |
LDU_FT/facundobatista/yaswfp/_get_struct_fillstylearray | LDU_FT | [
"<BEGIN>\n## `_str`",
"Show nicely the generic object received.\n<END>",
"<BEGIN>\n## `_repr`",
"Show the received object as precise as possible.\n<END>",
"<BEGIN>\n## `parsefile`",
"Parse a SWF.",
" If you have a file object already, just use SWFParser directly.",
" read_twips: True - return v... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_struct_fillstylearray API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_struct_fillstylearray API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus... | Get the values for the FILLSTYLEARRAY record. | "Get the values for the FILLSTYLEARRAY record." | 56 | false | facundobatista/yaswfp | _get_struct_fillstylearray | 16,033 | |
LDU_FT/fulfilio/fulfil-python-api/create_customer | LDU_FT | [
"<BEGIN>\n## `refresh_context`",
"Get the default context of the user and save it\n<END>",
"<BEGIN>\n## `login`",
"Attempts a login to the remote server\n and on success returns user id and session\n or None",
" Warning: Do not depend on this. This will be deprecated\n with SSO."... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_customer API.
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 create_customer API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Create a customer with the name.
Then attach the email and phone as contact methods | "Create a customer with the name.\n Then attach the email and phone as contact methods" | 79 | false | fulfilio/fulfil-python-api | create_customer | 16,034 | |
LDU_FT/Cue/scales/get | LDU_FT | [
"<BEGIN>\n## `lookup`",
"Traverses the source, looking up each key. Returns None if can't find anything instead of raising an exception.\n<END>",
"<BEGIN>\n## `connect`",
"Connects to the Graphite server if not already connected.\n<END>",
"<BEGIN>\n## `disconnect`",
"Disconnect from the Graphite server i... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Renders a GET request, by showing this nodes stats and children. | "Renders a GET request, by showing this nodes stats and children." | 72 | false | Cue/scales | get | 16,035 | |
LDU_FT/jrief/django-websocket-redis/release | LDU_FT | [
"<BEGIN>\n## `fetch_message`",
"Fetch the first message available for the given ``facility`` and ``audience``, if it has\n been persisted in the Redis datastore.\n The current HTTP ``request`` is used to determine to whom the message belongs.\n A unique string is used to identify the bucket's... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the release API.
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 release API.
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... | New implementation to free up Redis subscriptions when websockets close. This prevents
memory sap when Redis Output Buffer and Output Lists build when websockets are abandoned. | "New implementation to free up Redis subscriptions when websockets close. This prevents\n memory sap when Redis Output Buffer and Output Lists build when websockets are abandoned." | 60 | false | jrief/django-websocket-redis | release | 16,036 | |
LDU_FT/wummel/linkchecker/from_xfr | LDU_FT | [
"<BEGIN>\n## `start_output`",
"Write start of checking info as gml comment.\n<END>",
"<BEGIN>\n## `getaddresses`",
"Return list of email addresses from given field value.\n<END>",
"<BEGIN>\n## `build_url`",
"Call super.build_url(), extract list of mail addresses from URL,\n and check their syntax.\... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_xfr API.
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_xfr API.
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... | Convert the output of a zone transfer generator into a zone object.
@param xfr: The xfr generator
@type xfr: generator of dns.message.Message objects
@param relativize: should names be relativized? The default is True.
It is essential that the relativize setting matches the one specified
to dns.qu... | "Convert the output of a zone transfer generator into a zone object.\n\n @param xfr: The xfr generator\n @type xfr: generator of dns.message.Message objects\n @param relativize: should names be relativized? The default is True.\n It is essential that the relativize setting matches the one specified\n to... | 1,377 | true | wummel/linkchecker | from_xfr | 16,037 | |
LDU_FT/tmux-python/libtmux/kill_window | LDU_FT | [
"<BEGIN>\n## `get_version`",
"Return tmux version.",
" If tmux is built from git master, the version returned will be the latest\n version appended with -master, e.g. ``2.4-master``.",
" If using OpenBSD's base system tmux, the version will have ``-openbsd``\n appended to the latest version, e.g. ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the kill_window API.
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 kill_window API.
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... | Kill the current :class:`Window` object. ``$ tmux kill-window``. | "Kill the current :class:`Window` object. ``$ tmux kill-window``." | 224 | false | tmux-python/libtmux | kill_window | 16,038 | |
LDU_FT/CitrineInformatics/pif-dft/_is_converged | LDU_FT | [
"<BEGIN>\n## `generate_from_directory`",
"Create a parser by defining which input files it will read from.",
" Input:\n directory - str, directory to read from\n files - str, list of files from which to search.\n<END>",
"<BEGIN>\n## `get_composition`",
"Get composition of output... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_converged API.
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 _is_converged API.
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... | Determine if calculation converged; for a relaxation (static) run
we look for ionic (electronic) convergence in the output | "Determine if calculation converged; for a relaxation (static) run\n we look for ionic (electronic) convergence in the output" | 55 | false | CitrineInformatics/pif-dft | _is_converged | 16,039 | |
LDU_FT/auth0/auth0-python/refresh_token | LDU_FT | [
"<BEGIN>\n## `authorization_code`",
"Authorization code grant",
" This is the OAuth 2.0 grant that regular web apps utilize in order\n to access an API. Use this endpoint to exchange an Authorization Code\n for a Token.",
" Args:\n grant_type (str): Denotes the flow you'... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the refresh_token API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ext... | Calls oauth/token endpoint with refresh token grant type
Use this endpoint to refresh an access token, using the refresh token you got during authorization.
Args:
grant_type (str): Denotes the flow you're using. For refresh token
use refresh_token
client_id (str): ... | "Calls oauth/token endpoint with refresh token grant type\n\n Use this endpoint to refresh an access token, using the refresh token you got during authorization.\n\n Args:\n grant_type (str): Denotes the flow you're using. For refresh token\n use refresh_token\n\n client_i... | 337 | false | auth0/auth0-python | refresh_token | 16,040 | |
LDU_FT/pinax/django-mailer/prioritize | LDU_FT | [
"<BEGIN>\n## `make_message`",
"Creates a simple message for the email parameters supplied.\n The 'to' and 'bcc' lists are filtered using DontSendEntry.",
" If needed, the 'email' attribute can be set to any instance of EmailMessage\n if e-mails with attachments etc. need to be supported.",
" Call ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the prioritize API.
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 prioritize API.
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... | Yield the messages in the queue in the order they should be sent. | "Yield the messages in the queue in the order they should be sent." | 14 | false | pinax/django-mailer | prioritize | 16,041 | |
LDU_FT/ivelum/djangoql/validate | LDU_FT | [
"<BEGIN>\n## `apply_search`",
"Applies search written in DjangoQL mini-language to given queryset\n<END>",
"<BEGIN>\n## `get_options`",
"Override this method to provide custom suggestion options\n<END>",
"<BEGIN>\n## `get_lookup_value`",
"Override this method to convert displayed values to lookup values\n... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate API.
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 validate API.
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... | Validate DjangoQL AST tree vs. current schema | "Validate DjangoQL AST tree vs. current schema" | 25 | false | ivelum/djangoql | validate | 16,042 | |
LDU_FT/persephone-tools/persephone/labels_to_indices | LDU_FT | [
"<BEGIN>\n## `handle_unhandled_exception`",
"Handler for unhandled exceptions that will write to the logs\n<END>",
"<BEGIN>\n## `write_transcriptions`",
"Write the utterance transcriptions to files in the tgt_dir. Is lazy and\n checks if the file already exists.",
" Args:\n utterances: A list o... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the labels_to_indices API.
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 labels_to_indices API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The... | Converts a sequence of labels into their corresponding indices. | "Converts a sequence of labels into their corresponding indices." | 219 | false | persephone-tools/persephone | labels_to_indices | 16,043 | |
LDU_FT/thunder-project/thunder-registration/check_reference | LDU_FT | [
"<BEGIN>\n## `apply`",
"Apply an n-dimensional displacement by shifting an image or volume.",
" Parameters\n ----------\n im : ndarray\n The image or volume to shift\n<END>",
"<BEGIN>\n## `compute`",
"Compute an optimal displacement between two ndarrays.",
" Finds th... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_reference API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_reference API.
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... | Ensure the reference matches image dimensions | "Ensure the reference matches image dimensions" | 33 | false | thunder-project/thunder-registration | check_reference | 16,044 | |
LDU_FT/latchset/jwcrypto/serialize | LDU_FT | [
"<BEGIN>\n## `encrypt`",
"Encrypt according to the selected encryption and hashing\n functions.",
" :param k: Encryption key (optional)\n :param a: Additional Authentication Data\n :param m: Plaintext",
" Returns a dictionary with the computed data.\n<END>",
"<BEGIN>\n## `... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serialize API.
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 serialize API.
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... | Serializes the object into a JWS token.
:param compact(boolean): if True generates the compact
representation, otherwise generates a standard JSON format.
:raises InvalidJWSOperation: if the object cannot serialized
with the compact representation and `compat` is True.
:raise... | "Serializes the object into a JWS token.\n\n :param compact(boolean): if True generates the compact\n representation, otherwise generates a standard JSON format.\n\n :raises InvalidJWSOperation: if the object cannot serialized\n with the compact representation and `compat` is True.\n ... | 101 | false | latchset/jwcrypto | serialize | 16,045 | |
LDU_FT/jahuth/litus/recgen | LDU_FT | [
"<BEGIN>\n## `create_timing_signals`",
"Creates a linear list/np.array of timestamps and a list of integers, specifying the sequence \n and number of levels.",
" The levels are first rotated on the first dimension, then the second and so on. If the \n last dimension is -1, the number of lev... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the recgen API.
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 recgen API.
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 ... | Iterates through generators recursively and flattens them.
If `fix_type_errors` is True, `TypeError`s that are generated by
iterating are ignored and the generator that raised the Exception
is yielded instead. This is the case eg. for theano tensor variables.
If you want `TypeError`s t... | "Iterates through generators recursively and flattens them.\n\n If `fix_type_errors` is True, `TypeError`s that are generated by\n iterating are ignored and the generator that raised the Exception\n is yielded instead. This is the case eg. for theano tensor variables.\n\n If you want `TypeEr... | 190 | false | jahuth/litus | recgen | 16,046 | |
LDU_FT/F5Networks/f5-icontrol-rest-python/generate_bigip_uri | LDU_FT | [
"<BEGIN>\n## `get_auth_providers`",
"BIG-IQ specific query for auth providers",
" BIG-IP doesn't really need this because BIG-IP's multiple auth providers\n seem to handle fallthrough just fine. BIG-IQ on the other hand, needs to\n have its auth provider specified if you're using one of the... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_bigip_uri 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 generate_bigip_uri 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... | (str, str, str) --> str
This function checks the supplied elements to see if each conforms to
the specification for the appropriate part of the URI. These validations
are conducted by the helper function _validate_uri_parts.
After validation the parts are assembled into a valid BigIP REST URI
strin... | "(str, str, str) --> str\n\n This function checks the supplied elements to see if each conforms to\n the specification for the appropriate part of the URI. These validations\n are conducted by the helper function _validate_uri_parts.\n After validation the parts are assembled into a valid BigIP REST URI\n ... | 38 | false | F5Networks/f5-icontrol-rest-python | generate_bigip_uri | 16,047 | |
LDU_FT/darothen/xbpch/_fix | LDU_FT | [
"<BEGIN>\n## `from_model`",
"Define a grid using the specifications of a given model.",
" Parameters\n ----------\n model_name : string\n Name the model (see :func:`get_supported_models` for available\n model names).\n Supports multiple formats (e.g., 'GEOS5... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _fix API.
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 _fix API.
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... | Read pre- or suffix of line at current position with given
format `fmt` (default 'i'). | "Read pre- or suffix of line at current position with given\n format `fmt` (default 'i')." | 122 | false | darothen/xbpch | _fix | 16,048 | |
LDU_FT/edx/bok-choy/replace | LDU_FT | [
"<BEGIN>\n## `wait_for_js`",
"Method decorator that waits for JavaScript dependencies before executing `function`.\n If the function is not a method, the decorator has no effect.",
" Args:\n function (callable): Method to decorate.",
" Returns:\n Decorated method\n<END>",
"<BEGIN>\n##... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the replace API.
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 replace API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | Return a copy of this `Query`, but with attributes specified
as keyword arguments replaced by the keyword values.
Keyword Args:
Attributes/values to replace in the copy.
Returns:
A copy of the query that has its attributes updated with the specified values.
Ra... | "Return a copy of this `Query`, but with attributes specified\n as keyword arguments replaced by the keyword values.\n\n Keyword Args:\n Attributes/values to replace in the copy.\n\n Returns:\n A copy of the query that has its attributes updated with the specified values.\n\n... | 254 | false | edx/bok-choy | replace | 16,049 | |
LDU_FT/ethereum/py-evm/chain_split | LDU_FT | [
"<BEGIN>\n## `new_transaction`",
"Create and return a transaction sending amount from <from_> to <to>.",
" The transaction will be signed with the given private key.\n<END>",
"<BEGIN>\n## `idfn`",
"Function for pytest to produce uniform names for fixtures.\n<END>",
"<BEGIN>\n## `get_fixtures_file_hash`... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the chain_split API.
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 chain_split API.
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... | Construct and execute multiple concurrent forks of the chain.
Any number of forks may be executed. For each fork, provide an iterable of
commands.
Returns the resulting chain objects for each fork.
.. code-block:: python
chain_a, chain_b = build(
mining_chain,
chain... | "Construct and execute multiple concurrent forks of the chain.\n\n Any number of forks may be executed. For each fork, provide an iterable of\n commands.\n\n Returns the resulting chain objects for each fork.\n\n\n .. code-block:: python\n\n chain_a, chain_b = build(\n mining_chain,\n ... | 422 | false | ethereum/py-evm | chain_split | 16,050 | |
LDU_FT/PolyJIT/benchbuild/persist_config | LDU_FT | [
"<BEGIN>\n## `write_makeconfig`",
"Write a valid gentoo make.conf file to :path:.",
" Args:\n path - The output path of the make.conf\n<END>",
"<BEGIN>\n## `write_bashrc`",
"Write a valid gentoo bashrc file to :path:.",
" Args:\n path - The output path of the make.conf\n<END>",
"<BEG... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the persist_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the persist_config API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | Persist the configuration in as key-value pairs.
Args:
run: The run we attach the config to.
session: The db transaction we belong to.
cfg: The configuration we want to persist. | "Persist the configuration in as key-value pairs.\n\n Args:\n run: The run we attach the config to.\n session: The db transaction we belong to.\n cfg: The configuration we want to persist." | 401 | false | PolyJIT/benchbuild | persist_config | 16,051 | |
LDU_FT/openvax/datacache/_db_filename_from_dataframe | LDU_FT | [
"<BEGIN>\n## `connect_if_correct_version`",
"Return a sqlite3 database connection if the version in the database's\n metadata matches the version argument.",
" Also implicitly checks for whether the data in this database has\n been completely filled, since we set the version last.",
" TODO: Make a... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _db_filename_from_dataframe 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 _db_filename_from_dataframe API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclu... | Generate database filename for a sqlite3 database we're going to
fill with the contents of a DataFrame, using the DataFrame's
column names and types. | "Generate database filename for a sqlite3 database we're going to\n fill with the contents of a DataFrame, using the DataFrame's\n column names and types." | 101 | false | openvax/datacache | _db_filename_from_dataframe | 16,052 | |
LDU_FT/chrisbouchard/braillegraph/vertical_graph | LDU_FT | [
"<BEGIN>\n## `run`",
"Display the arguments as a braille graph on standard output.\n<END>",
"<BEGIN>\n## `_chunk`",
"Split an iterable into chunks of a fixed size.\n<END>",
"<BEGIN>\n## `_matrix_add_column`",
"Given a matrix as a list of lists, add a column to the right, filling in\n with a default val... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the vertical_graph API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The ex... | r"""Consume an iterable of integers and produce a vertical bar graph using
braille characters.
The graph is vertical in that its dependent axis is the vertical axis. Thus
each value is represented as a row running left to right, and values are
listed top to bottom.
If the iterable contains more th... | "r\"\"\"Consume an iterable of integers and produce a vertical bar graph using\n braille characters.\n\n The graph is vertical in that its dependent axis is the vertical axis. Thus\n each value is represented as a row running left to right, and values are\n listed top to bottom.\n\n If the iterable conta... | 22 | false | chrisbouchard/braillegraph | vertical_graph | 16,053 | |
LDU_FT/jbloomlab/phydms/branchScale | LDU_FT | [
"<BEGIN>\n## `maximizeLikelihood`",
"Maximize the log likelihood.",
" Maximizes log likelihood with respect to model parameters\n and potentially branch lengths depending on `optimize_brlen`.\n If optimizing the branch lengths, iterates between optimizing\n the model parameters and b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the branchScale API.
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 branchScale API.
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... | See docs for `Model` abstract base class. | "See docs for `Model` abstract base class." | 294 | false | jbloomlab/phydms | branchScale | 16,054 | |
LDU_FT/mrstephenneal/dirutility/_backup_pb_tqdm | LDU_FT | [
"<BEGIN>\n## `connect`",
"Connect and login to an FTP server and return ftplib.FTP object.\n<END>",
"<BEGIN>\n## `get`",
"Download a remote file on the fto sever to a local directory.",
" :param remote: File path of remote source file\n :param local: Directory of local destination directory\n ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _backup_pb_tqdm API.
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 _backup_pb_tqdm API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The e... | Create a backup with a tqdm progress bar. | "Create a backup with a tqdm progress bar." | 92 | false | mrstephenneal/dirutility | _backup_pb_tqdm | 16,055 | |
LDU_FT/puiterwijk/flask-oidc/authenticate_or_redirect | LDU_FT | [
"<BEGIN>\n## `check_redirect_uris`",
"This function checks all return uris provided and tries to deduce\n as what type of client we should register.",
" :param uris: The redirect URIs to check.\n :type uris: list\n :param client_type: An indicator of which client type you are expecting\n to b... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the authenticate_or_redirect 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 authenticate_or_redirect API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Helper function suitable for @app.before_request and @check.
Sets g.oidc_id_token to the ID token if the user has successfully
authenticated, else returns a redirect object so they can go try
to authenticate.
:returns: A redirect object, or None if the user is logged in.
:rtype:... | "Helper function suitable for @app.before_request and @check.\n Sets g.oidc_id_token to the ID token if the user has successfully\n authenticated, else returns a redirect object so they can go try\n to authenticate.\n\n :returns: A redirect object, or None if the user is logged in.\n ... | 74 | false | puiterwijk/flask-oidc | authenticate_or_redirect | 16,056 | |
LDU_FT/SoftwareDefinedBuildings/XBOS/find_uuid | LDU_FT | [
"<BEGIN>\n## `fillPelicanHole`",
"Fill a hole in a Pelican thermostat's data stream.",
" Arguments:\n site -- The thermostat's Pelican site name\n username -- The Pelican username for the site\n password -- The Pelican password for the site\n tstat_name -- The name of the thermost... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_uuid API.
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 find_uuid API.
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... | Find uuid.
Parameters
----------
obj : ???
the object returned by the MDAL Query
column_name : str
input point returned from MDAL Query
Returns
-------
str
the uuid that correlates with the data | "Find uuid.\n\n Parameters\n ----------\n obj : ???\n the object returned by the MDAL Query\n column_name : str\n input point returned from MDAL Query\n\n Returns\n -------\n str \n the uuid that correlates with the data" | 305 | false | SoftwareDefinedBuildings/XBOS | find_uuid | 16,057 | |
LDU_FT/rasbt/markdown-toclify/read_lines | LDU_FT | [
"<BEGIN>\n## `read_lines`",
"Returns a list of lines from a input markdown file.\n<END>",
"<BEGIN>\n## `remove_lines`",
"Removes existing [back to top] links and <a id> tags.\n<END>",
"<BEGIN>\n## `slugify_headline`",
"Takes a header line from a Markdown document and\n returns a tuple of the\n '... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the read_lines API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extrac... | Returns a list of lines from a input markdown file. | "Returns a list of lines from a input markdown file." | 35 | false | rasbt/markdown-toclify | read_lines | 16,058 | |
LDU_FT/KyleJamesWalker/yamlsettings/load | LDU_FT | [
"<BEGIN>\n## `conform_query`",
"Converts the query string from a target uri, uses\n cls.default_query to populate default arguments.",
" :param query: Unparsed query string\n :type query: urllib.parse.unsplit(uri).query\n :returns: Dictionary of parsed values, everything in cls.defau... | 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 first yamldict target found in uri.
:param target_uris: Uris to try and open
:param fields: Fields to filter. Default: None
:type target_uri: list or string
:type fields: list
:returns: yamldict | "Load first yamldict target found in uri.\n\n :param target_uris: Uris to try and open\n :param fields: Fields to filter. Default: None\n :type target_uri: list or string\n :type fields: list\n\n :returns: yamldict" | 46 | false | KyleJamesWalker/yamlsettings | load | 16,059 | |
LDU_FT/cathalgarvey/deadlock/from_id | LDU_FT | [
"<BEGIN>\n## `get_slanted_adjacent_coords`",
"returns the six adjacent coordinates on a standard keyboard, where each row is slanted to the right from the last.\n adjacencies are clockwise, starting with key to the left, then two keys above, then right key, then two keys below.\n (that is, only near-diagona... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_id API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted... | This decodes an ID to a public key and verifies the checksum byte. ID
structure in miniLock is the base58 encoded form of the public key
appended with a single-byte digest from blake2s of the public key, as a
simple check-sum. | "This decodes an ID to a public key and verifies the checksum byte. ID\n structure in miniLock is the base58 encoded form of the public key\n appended with a single-byte digest from blake2s of the public key, as a\n simple check-sum." | 73 | false | cathalgarvey/deadlock | from_id | 16,060 | |
LDU_FT/onnx/onnx/load_external_data_for_tensor | LDU_FT | [
"<BEGIN>\n## `run_node`",
"Simple run one operator and return the results.\n Args:\n outputs_info: a list of tuples, which contains the element type and\n shape of each output. First element of the tuple is the dtype, and\n the second element is the shape. More use case can... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_external_data_for_tensor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_external_data_for_tensor API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Load data from an external file for tensor.
@params
tensor: a TensorProto object.
base_dir: directory that contains the external data. | "Load data from an external file for tensor.\n\n @params\n tensor: a TensorProto object.\n base_dir: directory that contains the external data." | 72 | false | onnx/onnx | load_external_data_for_tensor | 16,061 | |
LDU_FT/onelogin/python3-saml/parse_SAML_to_time | LDU_FT | [
"<BEGIN>\n## `get_issuer`",
"Gets the Issuer of the Logout Response Message\n :return: The Issuer\n :rtype: string\n<END>",
"<BEGIN>\n## `get_status`",
"Gets the Status\n :return: The Status\n :rtype: string\n<END>",
"<BEGIN>\n## `is_valid`",
"Determines if the SAML LogoutRespo... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse_SAML_to_time 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 parse_SAML_to_time 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... | r"""
Converts a SAML2 timestamp on the form yyyy-mm-ddThh:mm:ss(\.s+)?Z
to a UNIX timestamp. The sub-second part is ignored.
:param timestr: The time we should convert (SAML Timestamp).
:type: string
:return: Converted to a unix timestamp.
:rtype: int | "r\"\"\"\n Converts a SAML2 timestamp on the form yyyy-mm-ddThh:mm:ss(\\.s+)?Z\n to a UNIX timestamp. The sub-second part is ignored.\n\n :param timestr: The time we should convert (SAML Timestamp).\n :type: string\n\n :return: Converted to a unix timestamp.\n :rtype: int" | 302 | false | onelogin/python3-saml | parse_SAML_to_time | 16,062 | |
LDU_FT/geophysics-ubonn/reda/write_files_to_directory | LDU_FT | [
"<BEGIN>\n## `import_syscal_bin`",
"Syscal import",
" timestep: int or :class:`datetime.datetime`\n if provided use this value to set the 'timestep' column of the\n produced dataframe. Default: 0\n<END>",
"<BEGIN>\n## `to_ip`",
"Return of copy of the data inside a TDIP container... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the write_files_to_directory 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 write_files_to_directory API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio... | Write sEIT data ta files. Data of each frequency is written in a
separate file that conforms to the CRMod/CRTomo standard, and can directly
be used for inversions using CRTomo.
Parameters
----------
df : pandas.DataFrame
Data
directory : string
Output directory. Will be created ... | "Write sEIT data ta files. Data of each frequency is written in a\n separate file that conforms to the CRMod/CRTomo standard, and can directly\n be used for inversions using CRTomo.\n\n Parameters\n ----------\n df : pandas.DataFrame\n Data\n directory : string\n Output directory. Will b... | 486 | false | geophysics-ubonn/reda | write_files_to_directory | 16,063 | |
LDU_FT/marrow/mongo/is_valid | LDU_FT | [
"<BEGIN>\n## `process_fields`",
"Process a list of simple string field definitions and assign their order based on prefix.\n<END>",
"<BEGIN>\n## `create`",
"Create this index in the specified collection; keyword arguments are passed to PyMongo.",
"\t\thttp://api.mongodb.com/python/current/api/pymongo/collec... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_valid API.
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_valid API.
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... | Identify if the given session ID is currently valid.
Return True if valid, False if explicitly invalid, None if unknown. | "Identify if the given session ID is currently valid.\n\t\t\n\t\tReturn True if valid, False if explicitly invalid, None if unknown." | 175 | false | marrow/mongo | is_valid | 16,064 | |
LDU_FT/redhat-cip/dci-control-server/_format_level_2 | LDU_FT | [
"<BEGIN>\n## `get_user_and_check_auth`",
"Check the combination username/password that is valid on the\n database.\n<END>",
"<BEGIN>\n## `retrieve_info`",
"Query the Github API to retrieve the needed infos.\n<END>",
"<BEGIN>\n## `get_last_rconfiguration_id`",
"Get the rconfiguration_id of the last ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _format_level_2 API.
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 _format_level_2 API.
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... | From the _format_level_1 function we have a list of rows. Because of using
joins, we have as many rows as join result.
For example:
[{'id' : 'id1',
'name' : 'name1,
'b' : {'id': 'id2,
'name': 'name2'}
}
{'id' : 'id1',
'name' : 'name1,
'b' : {'id' : 'id4',
... | "From the _format_level_1 function we have a list of rows. Because of using\n joins, we have as many rows as join result.\n\n For example:\n [{'id' : 'id1',\n 'name' : 'name1,\n 'b' : {'id': 'id2,\n 'name': 'name2'}\n }\n {'id' : 'id1',\n 'name' : 'name1,\n 'b' : {'id' :... | 86 | false | redhat-cip/dci-control-server | _format_level_2 | 16,065 | |
LDU_FT/pazz/alot/get_xdg_env | LDU_FT | [
"<BEGIN>\n## `determine_sender`",
"Inspect a given mail to reply/forward/bounce and find the most appropriate\n account to act from and construct a suitable From-Header to use.",
" :param mail: the email to inspect\n :type mail: `email.message.Message`\n :param action: intended use case: one of \"re... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_xdg_env API.
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_xdg_env API.
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... | Used for XDG_* env variables to return fallback if unset *or* empty | "Used for XDG_* env variables to return fallback if unset *or* empty" | 454 | false | pazz/alot | get_xdg_env | 16,066 | |
LDU_FT/mrallen1/pygett/upload_file | LDU_FT | [
"<BEGIN>\n## `get`",
"**get**",
" Make a GET call to a remote endpoint",
" Input:\n * An endpoint relative to the ``base_url``",
" Output:\n * A :py:mod:`pygett.request.GettResponse` object\n<END>",
"<BEGIN>\n## `post`",
"**post**",
" Make a POST call ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the upload_file API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extra... | Upload a file to the Gett service. Takes keyword arguments.
Input:
* ``filename`` the filename to use in the Gett service (required)
* ``data`` the file contents to store in the Gett service (required) - must be a string
* ``sharename`` the name of the share in which to stor... | "Upload a file to the Gett service. Takes keyword arguments.\n\n Input:\n * ``filename`` the filename to use in the Gett service (required)\n * ``data`` the file contents to store in the Gett service (required) - must be a string\n * ``sharename`` the name of the share in which t... | 117 | false | mrallen1/pygett | upload_file | 16,067 | |
LDU_FT/constverum/ProxyBroker/serve | LDU_FT | [
"<BEGIN>\n## `grab`",
"Gather proxies from the providers without checking.",
" :param list countries: (optional) List of ISO country codes\n where should be located proxies\n :param int limit: (optional) The maximum number of proxies",
" :ref:`Example of usag... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the serve API.
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 serve API.
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... | Start a local proxy server.
The server distributes incoming requests to a pool of found proxies.
When the server receives an incoming request, it chooses the optimal
proxy (based on the percentage of errors and average response time)
and passes to it the incoming request.
In a... | "Start a local proxy server.\n\n The server distributes incoming requests to a pool of found proxies.\n\n When the server receives an incoming request, it chooses the optimal\n proxy (based on the percentage of errors and average response time)\n and passes to it the incoming request.\n\n ... | 57 | false | constverum/ProxyBroker | serve | 16,068 | |
LDU_FT/cogeotiff/rio-tiler/tile | LDU_FT | [
"<BEGIN>\n## `_meters_per_pixel`",
"Return the pixel resolution for a given mercator tile zoom and lattitude.",
" Parameters\n ----------\n zoom: int\n Mercator zoom level\n lat: float, optional\n Latitude in decimal degree (default: 0)\n tilesize: int, optional\n Mercator ti... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the tile API.
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 tile API.
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... | Create mercator tile from Landsat-8 data.
Attributes
----------
sceneid : str
Landsat sceneid. For scenes after May 2017,
sceneid have to be LANDSAT_PRODUCT_ID.
tile_x : int
Mercator tile X index.
tile_y : int
Mercator tile Y index.
tile_z : int
Mercator ... | "Create mercator tile from Landsat-8 data.\n\n Attributes\n ----------\n sceneid : str\n Landsat sceneid. For scenes after May 2017,\n sceneid have to be LANDSAT_PRODUCT_ID.\n tile_x : int\n Mercator tile X index.\n tile_y : int\n Mercator tile Y index.\n tile_z : int\n ... | 137 | false | cogeotiff/rio-tiler | tile | 16,069 | |
LDU_FT/josuebrunel/myql/get | LDU_FT | [
"<BEGIN>\n## `get_current_info`",
"get_current_info() uses the yahoo.finance.quotes datatable to get all of the stock information presented in the main table on a typical stock page \n and a bunch of data from the key statistics page.\n<END>",
"<BEGIN>\n## `get_news_feed`",
"get_news_feed() uses the rs... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion.
The extracted doc... | Just a select which returns a response
>>> yql.get("geo.countries', ['name', 'woeid'], 5") | "Just a select which returns a response\n >>> yql.get(\"geo.countries', ['name', 'woeid'], 5\")" | 44 | false | josuebrunel/myql | get | 16,070 | |
LDU_FT/quantopian/trading_calendars/execution_minutes_for_session | LDU_FT | [
"<BEGIN>\n## `days_at_time`",
"Create an index of days at time ``t``, interpreted in timezone ``tz``.",
" The returned index is localized to UTC.",
" Parameters\n ----------\n days : DatetimeIndex\n An index of dates (represented as midnight).\n t : datetime.time\n The time to app... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execution_minutes_for_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the execution_minutes_for_session API.
Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conc... | Given a session label, return the execution minutes for that session.
Parameters
----------
session_label: pd.Timestamp (midnight UTC)
A session label whose session's minutes are desired.
Returns
-------
pd.DateTimeIndex
All the execution minutes... | "Given a session label, return the execution minutes for that session.\n\n Parameters\n ----------\n session_label: pd.Timestamp (midnight UTC)\n A session label whose session's minutes are desired.\n\n Returns\n -------\n pd.DateTimeIndex\n All the execut... | 150 | false | quantopian/trading_calendars | execution_minutes_for_session | 16,071 | |
LDU_FT/nakagami/pyfirebirdsql/params_to_blr | LDU_FT | [
"<BEGIN>\n## `client_seed`",
"A: Client public key\n a: Client private key\n<END>",
"<BEGIN>\n## `server_seed`",
"B: Server public key\n b: Server private key\n<END>",
"<BEGIN>\n## `client_session`",
"Client session secret\n Both: u = H(A, B)",
" User: x = H(s, p) ... | You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the params_to_blr API.
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 params_to_blr API.
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... | Convert parameter array to BLR and values format. | "Convert parameter array to BLR and values format." | 16 | false | nakagami/pyfirebirdsql | params_to_blr | 16,072 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.