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/consbio/gis-metadata-parser/_update_property
LDU_FT
[ "<BEGIN>\n## `convert_parser_to`", ":return: a parser of type parser_or_type, initialized with the properties of parser. If parser_or_type\n is a type, an instance of it must contain a update method. The update method must also process\n the set of properties supported by MetadataParser for the conversion t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_property API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Default update operation for a single parser property. If xpaths contains one xpath, then one element per value will be inserted at that location in the tree_to_update; otherwise, the number of values must match the number of xpaths.
"Default update operation for a single parser property. If xpaths contains one xpath,\n then one element per value will be inserted at that location in the tree_to_update;\n otherwise, the number of values must match the number of xpaths."
122
false
consbio/gis-metadata-parser
_update_property
4,273
LDU_FT/kalefranz/auxlib/dt_to_timestamp
LDU_FT
[ "<BEGIN>\n## `import_and_wrap_deprecated`", "Usage:\n import_and_wrap_deprecated('conda.common.connection', locals())\n # looks for conda.common.connection.__all__\n<END>", "<BEGIN>\n## `deprecate_module_with_proxy`", "Usage:\n deprecate_module_with_proxy(__name__, locals()) # at bottom ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the dt_to_timestamp API. 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 dt_to_timestamp API. 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...
Converts from a :class:`~datetime.datetime` object to an integer timestamp, suitable interoperation with :func:`time.time` and other `Epoch-based timestamps`. .. _Epoch-based timestamps: https://en.wikipedia.org/wiki/Unix_time >>> abs(round(time.time() - dt_to_timestamp(datetime.utcnow()), 2)) 0.0...
"Converts from a :class:`~datetime.datetime` object to an integer\n timestamp, suitable interoperation with :func:`time.time` and\n other `Epoch-based timestamps`.\n\n .. _Epoch-based timestamps: https://en.wikipedia.org/wiki/Unix_time\n\n >>> abs(round(time.time() - dt_to_timestamp(datetime.utcnow()), 2))\...
107
false
kalefranz/auxlib
dt_to_timestamp
4,274
LDU_FT/xflr6/gsheets/_cint
LDU_FT
[ "<BEGIN>\n## `write_csv`", "Dump rows to ``fileobj`` with the given ``encoding`` and CSV ``dialect``.\n<END>", "<BEGIN>\n## `write_dataframe`", "Dump ``rows`` to string buffer and load with ``pandas.read_csv()`` using ``kwargs``.\n<END>", "<BEGIN>\n## `from_string`", "Return a new SheetUrl instance from p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _cint API. 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 _cint API. 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...
Return zero-based column index from bijective base26 string. >>> Coordinates._cint('Ab') 27 >>> Coordinates._cint('spam') Traceback (most recent call last): ... ValueError: spam
"Return zero-based column index from bijective base26 string.\n\n >>> Coordinates._cint('Ab')\n 27\n\n >>> Coordinates._cint('spam')\n Traceback (most recent call last):\n ...\n ValueError: spam"
93
false
xflr6/gsheets
_cint
4,275
LDU_FT/podio/valideer/adapts
LDU_FT
[ "<BEGIN>\n## `parse`", "Try to parse the given ``obj`` as a validator instance.", " :param obj: The object to be parsed. If it is a...:", " - :py:class:`Validator` instance, return it.\n - :py:class:`Validator` subclass, instantiate it without arguments and\n return it.\n - :p...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the adapts API. 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 adapts API. 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 a decorator for validating and adapting function parameters. Example:: @adapts(a="number", body={"+field_ids": [V.AdaptTo(int)], "is_ok": bool}) def f(a, body): print (a, body.field_ids, body.is_ok) :param schemas: The schema for adapting a given parameter.
"Create a decorator for validating and adapting function parameters.\n\n Example::\n\n @adapts(a=\"number\", body={\"+field_ids\": [V.AdaptTo(int)], \"is_ok\": bool})\n def f(a, body):\n print (a, body.field_ids, body.is_ok)\n\n :param schemas: The schema for adapting a given parameter."
36
false
podio/valideer
adapts
4,276
LDU_FT/madprime/cgivar2gvcf/get_reference_genome_file
LDU_FT
[ "<BEGIN>\n## `auto_zip_open`", "Convenience function for opening potentially-compressed files.\n<END>", "<BEGIN>\n## `process_full_position`", "Return genetic data when all alleles called on same line.", " Returns an array containing one item, a tuple of five items:\n (string) chromosome\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_genome_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_reference_genome_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Convenience fxn to get reference genome from target dir, download if needed
"Convenience fxn to get reference genome from target dir, download if needed"
33
false
madprime/cgivar2gvcf
get_reference_genome_file
4,277
LDU_FT/spotify/gordon/_deep_merge_dict
LDU_FT
[ "<BEGIN>\n## `run`", "Entrypoint to route messages between plugins.\n<END>", "<BEGIN>\n## `shutdown`", "Gracefully cancel current tasks when app receives a shutdown signal.\n<END>", "<BEGIN>\n## `_deep_merge_dict`", "Additively merge right side dict into left side dict.\n<END>", "<BEGIN>\n## `load_plugi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deep_merge_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _deep_merge_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Additively merge right side dict into left side dict.
"Additively merge right side dict into left side dict."
28
false
spotify/gordon
_deep_merge_dict
4,278
LDU_FT/getnikola/coil/check_old_password
LDU_FT
[ "<BEGIN>\n## `orphans_single`", "Remove all orphans in the site, in the single user-mode.\n<END>", "<BEGIN>\n## `password_hash`", "Hash the password, using bcrypt+sha256.", " .. versionchanged:: 1.1.0", " :param str password: Password in plaintext\n :return: password hash\n :rtype: str\n<END>"...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_old_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the check_old_password 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...
Check the old password hash from :func:`password_hash`. .. versionadded:: 1.1.0 :param str pwdhash: Hash from :func:`password_hash` to check :param str password: Password in plaintext :return: password match :rtype: bool
"Check the old password hash from :func:`password_hash`.\n\n .. versionadded:: 1.1.0\n\n :param str pwdhash: Hash from :func:`password_hash` to check\n :param str password: Password in plaintext\n :return: password match\n :rtype: bool"
68
false
getnikola/coil
check_old_password
4,279
LDU_FT/enkore/i3pystatus/on_click
LDU_FT
[ "<BEGIN>\n## `init`", "Creates context, when context is ready context_notify_cb is called\n<END>", "<BEGIN>\n## `request_update`", "Requests a sink info update (sink_info_cb is called)\n<END>", "<BEGIN>\n## `server_info_cb`", "Retrieves the default sink and calls request_update\n<END>", "<BEGIN>\n## `co...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the on_click API. 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 on_click API. 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...
Maps a click event with its associated callback. Currently implemented events are: ============ ================ ========= Event Callback setting Button ID ============ ================ ========= Left click on_leftclick 1 Middle click on_middleclic...
"Maps a click event with its associated callback.\n\n Currently implemented events are:\n\n ============ ================ =========\n Event Callback setting Button ID\n ============ ================ =========\n Left click on_leftclick 1\n Middle click on_m...
181
false
enkore/i3pystatus
on_click
4,280
LDU_FT/praw-dev/prawtools/main
LDU_FT
[ "<BEGIN>\n## `main`", "Provide the entry point to the subreddit_stats command.\n<END>", "<BEGIN>\n## `basic_stats`", "Return a markdown representation of simple statistics.\n<END>", "<BEGIN>\n## `fetch_recent_submissions`", "Fetch recent submissions in subreddit with boundaries.", " Does not incl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the main API. 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 main API. 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...
Provide the entry point to the subreddit_stats command.
"Provide the entry point to the subreddit_stats command."
48
false
praw-dev/prawtools
main
4,281
LDU_FT/dev-pipeline/dev-pipeline-configure/_is_cache_dir_appropriate
LDU_FT
[ "<BEGIN>\n## `read_config`", "Read a configuration from disk.", " Arguments\n path -- the loation to deserialize\n<END>", "<BEGIN>\n## `find_config`", "Find a build cache somewhere in a parent directory.\n<END>", "<BEGIN>\n## `update_cache`", "Load a build cache, updating it if necessary.", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_cache_dir_appropriate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _is_cache_dir_appropriate API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusi...
Determine if a directory is acceptable for building. A directory is suitable if any of the following are true: - it doesn't exist - it is empty - it contains an existing build cache
"Determine if a directory is acceptable for building.\n\n A directory is suitable if any of the following are true:\n - it doesn't exist\n - it is empty\n - it contains an existing build cache"
25
false
dev-pipeline/dev-pipeline-configure
_is_cache_dir_appropriate
4,282
LDU_FT/google/flatbuffers/VectorLen
LDU_FT
[ "<BEGIN>\n## `compare_version`", "Compare two version number strings of the form W.X.Y.Z.", " The numbers are compared most-significant to least-significant.\n For example, 12.345.67.89 > 2.987.88.99.", " Args:\n a: First version number string to compare\n b: Second version number string to compare",...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the VectorLen API. 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 VectorLen API. 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...
VectorLen retrieves the length of the vector whose offset is stored at "off" in this object.
"VectorLen retrieves the length of the vector whose offset is stored\n at \"off\" in this object."
83
false
google/flatbuffers
VectorLen
4,283
LDU_FT/basilfx/flask-daapserver/install_new_pipeline
LDU_FT
[ "<BEGIN>\n## `publish`", "Publish a given `DAAPServer` instance.", " The given instances should be fully configured, including the provider.\n By default Zeroconf only advertises the first database, but the DAAP\n protocol has support for multiple databases. Therefore, the parameter\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the install_new_pipeline 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 install_new_pipeline API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Install above transformer into the existing pipeline creator.
"Install above transformer into the existing pipeline creator."
45
false
basilfx/flask-daapserver
install_new_pipeline
4,284
LDU_FT/ZELLMECHANIK-DRESDEN/dclab/convert
LDU_FT
[ "<BEGIN>\n## `tdms2rtdc`", "Convert .tdms datasets to the hdf5-based .rtdc file format\n<END>", "<BEGIN>\n## `load_from_file`", "Load the configuration from a file", " Parameters\n ----------\n cfg_file: str\n Path to configuration file", " Returns\n -------\n cfg : CaseInsensitiv...
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...
convert area-deformation-emodulus triplet The conversion formula is described in :cite:`Mietke2015`. Parameters ---------- area_um: ndarray Convex cell area [µm²] deform: ndarray Deformation emodulus: ndarray Young's Modulus [kPa] channel_width_in: float Ori...
"convert area-deformation-emodulus triplet\n\n The conversion formula is described in :cite:`Mietke2015`.\n\n Parameters\n ----------\n area_um: ndarray\n Convex cell area [µm²]\n deform: ndarray\n Deformation\n emodulus: ndarray\n Young's Modulus [kPa]\n channel_width_in: floa...
433
false
ZELLMECHANIK-DRESDEN/dclab
convert
4,285
LDU_FT/CamDavidsonPilon/lifelines/l1_log_loss
LDU_FT
[ "<BEGIN>\n## `right_censor_lifetimes`", "Right censor the deaths, uniformly\n lifetimes: (n,) array of positive random variables\n max_: the max time a censorship can occur\n min_: the min time a censorship can occur", " Returns\n The actual observations including uniform right censoring,...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the l1_log_loss API. 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 l1_log_loss API. 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...
r""" Calculates the l1 log-loss of predicted event times to true event times for *non-censored* individuals only. .. math:: 1/N \sum_{i} |log(t_i) - log(q_i)| Parameters ---------- event_times: a (n,) array of observed survival times. predicted_event_times: a (n,) array of predicted s...
"r\"\"\"\n Calculates the l1 log-loss of predicted event times to true event times for *non-censored*\n individuals only.\n\n .. math:: 1/N \\sum_{i} |log(t_i) - log(q_i)|\n\n Parameters\n ----------\n event_times: a (n,) array of observed survival times.\n predicted_event_times: a (n,) array ...
603
false
CamDavidsonPilon/lifelines
l1_log_loss
4,286
LDU_FT/thiagopbueno/tf-rddlsim/_sample_action
LDU_FT
[ "<BEGIN>\n## `interm_size`", "Returns the MDP intermediate state size.\n<END>", "<BEGIN>\n## `output_size`", "Returns the simulation cell output size.\n<END>", "<BEGIN>\n## `_dtype`", "Converts `tensor` to tf.float32 datatype if needed.\n<END>", "<BEGIN>\n## `timesteps`", "Returns the input tensor for...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _sample_action API. 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 _sample_action API. 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...
Samples action fluents respecting the given bound `constraints`. With probability `prob` it chooses the action fluent default value, with probability 1-`prob` it samples the fluent w.r.t. its bounds. Args: constraints (Dict[str, Tuple[Optional[TensorFluent], Optional[TensorFluent]]...
"Samples action fluents respecting the given bound `constraints`.\n\n With probability `prob` it chooses the action fluent default value,\n with probability 1-`prob` it samples the fluent w.r.t. its bounds.\n\n Args:\n constraints (Dict[str, Tuple[Optional[TensorFluent], Optional[TensorF...
64
false
thiagopbueno/tf-rddlsim
_sample_action
4,287
LDU_FT/calvinku96/labreporthelper/get_rmse
LDU_FT
[ "<BEGIN>\n## `generate_datasets_list`", "generate datasets list to activate", " args:\n settings: dictionary\n from settings file\n argv: list\n from sys.argv\n<END>", "<BEGIN>\n## `do_label`", "Create label for x and y axis, title and suptitle\n<END>", "<BEGIN>\n## ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_rmse API. 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_rmse API. 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 Root Mean Square Error using self.bestfit_func args: x_min: scalar, default=min(x) minimum x value of the line x_max: scalar, default=max(x) maximum x value of the line resolution: int, default=1000 how many steps b...
"Get Root Mean Square Error using\n self.bestfit_func\n\n args:\n x_min: scalar, default=min(x)\n minimum x value of the line\n x_max: scalar, default=max(x)\n maximum x value of the line\n resolution: int, default=1000\n how ma...
57
false
calvinku96/labreporthelper
get_rmse
4,288
LDU_FT/opencobra/memote/find_duplicate_reactions
LDU_FT
[ "<BEGIN>\n## `validate`", "Use a defined schema to validate the medium table format.\n<END>", "<BEGIN>\n## `apply`", "Set the defined medium on the given model.\n<END>", "<BEGIN>\n## `find_transported_elements`", "Return a dictionary showing the amount of transported elements of a rxn.", " Collects t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the find_duplicate_reactions 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 find_duplicate_reactions API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Return a list with pairs of reactions that are functionally identical. Identify duplicate reactions globally by checking if any two reactions have the same metabolites, same directionality and are in the same compartment. This can be useful to curate merged models or to clean-up bulk model modific...
"Return a list with pairs of reactions that are functionally identical.\n\n Identify duplicate reactions globally by checking if any\n two reactions have the same metabolites, same directionality and are in\n the same compartment.\n\n This can be useful to curate merged models or to clean-up bulk model\n ...
508
false
opencobra/memote
find_duplicate_reactions
4,289
LDU_FT/deifyed/vault/getTarget
LDU_FT
[ "<BEGIN>\n## `getTarget`", "Returns a dictionary containing information about a certain target\n<END>", "<BEGIN>\n## `insertTarget`", "Inserts a new target into the vault database\n Returns the id of the created target\n<END>", "<BEGIN>\n## `removeTarget`", "Removes target information from vaul...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getTarget API. 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 getTarget API. 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...
Returns a dictionary containing information about a certain target
"Returns a dictionary containing information about a certain target"
27
false
deifyed/vault
getTarget
4,290
LDU_FT/wal-e/wal-e/run_start_backup
LDU_FT
[ "<BEGIN>\n## `configure`", "Configure logging.", " Borrowed from logging.basicConfig", " Uses the IndentFormatter instead of the regular Formatter", " Also, opts the caller into Syslog output, unless syslog could not\n be opened for some reason or another, in which case a warning will\n be pr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the run_start_backup API. 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 run_start_backup API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Connects to a server and attempts to start a hot backup Yields the WAL information in a dictionary for bookkeeping and recording.
"Connects to a server and attempts to start a hot backup\n\n Yields the WAL information in a dictionary for bookkeeping and\n recording."
214
false
wal-e/wal-e
run_start_backup
4,291
LDU_FT/davidsoncasey/quiver/_calc_partials
LDU_FT
[ "<BEGIN>\n## `regex_check`", "A quick regular expression check to see that the input is sane", " Args:\n equation_str (str): String of equation to be parsed by sympify\n function. Expected to be valid Python.", " Raises:\n BadInputError: If input does not look safe to parse as an equati...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _calc_partials API. 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 _calc_partials API. 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...
Calculate the partial derivatives Uses sympy.utilities.lambdify to convert equation into a function that can be easily computed. Raises: MissingEquationError: if method is called before equation is attached.
"Calculate the partial derivatives\n \n Uses sympy.utilities.lambdify to convert equation into\n a function that can be easily computed.\n \n Raises:\n MissingEquationError: if method is called before equation is\n attached."
24
false
davidsoncasey/quiver
_calc_partials
4,292
LDU_FT/Komnomnomnom/swigibpy/updatePortfolio
LDU_FT
[ "<BEGIN>\n## `placeOrder`", "placeOrder(EClient self, OrderId id, Contract contract, Order order)\n<END>", "<BEGIN>\n## `reqMktDepth`", "reqMktDepth(EClient self, TickerId id, Contract contract, int numRows, TagValueListSPtr const & mktDepthOptions)\n<END>", "<BEGIN>\n## `exerciseOptions`", "exerciseOptio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the updatePortfolio API. 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 updatePortfolio API. 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...
updatePortfolio(EWrapper self, Contract contract, int position, double marketPrice, double marketValue, double averageCost, double unrealizedPNL, double realizedPNL, IBString const & accountName)
"updatePortfolio(EWrapper self, Contract contract, int position, double marketPrice, double marketValue, double averageCost, double unrealizedPNL, double realizedPNL, IBString const & accountName)"
81
false
Komnomnomnom/swigibpy
updatePortfolio
4,293
LDU_FT/jaapverloop/knot/factory
LDU_FT
[ "<BEGIN>\n## `factory`", "A decorator to register a factory on the container.\n For more information see :meth:`Container.add_factory`.\n<END>", "<BEGIN>\n## `service`", "A decorator to register a service on a container.\n For more information see :meth:`Container.add_service`.\n<END>", "<BEGIN>\n## `...
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...
A decorator to register a factory on the container. For more information see :meth:`Container.add_factory`.
"A decorator to register a factory on the container.\n For more information see :meth:`Container.add_factory`."
16
false
jaapverloop/knot
factory
4,294
LDU_FT/sods/ods/discrete
LDU_FT
[ "<BEGIN>\n## `display_url`", "Displaying URL in an IPython notebook to allow the user to click and check on information. With thanks to Fernando Perez for putting together the implementation!\n :param target: the url to display.\n :type target: string.\n<END>", "<BEGIN>\n## `iframe_url`", "Produce an if...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the discrete API. 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 discrete API. 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...
Return a class category that shows the encoding
"Return a class category that shows the encoding"
67
false
sods/ods
discrete
4,295
LDU_FT/geronimp/graftM/filter
LDU_FT
[ "<BEGIN>\n## `_write_consensus_strings`", "Writes the taxonomy of each leaf to a file. If the leaf has no\n taxonomy, a taxonomy string will be created using the annotations\n provided to the ancestor nodes of that leaf (meaning, it will be\n decorated).", " Parameters\n -----...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the filter API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Filter the fasta file by only keeping sequences that hit a proper sequence better than the decoy database. Parameters ---------- candidate_sequences_fasta_path: str path to candidate sequences fasta file i.e. sequences to be filtered. filtered_output_fast...
"Filter the fasta file by only keeping sequences that hit a proper sequence\n better than the decoy database.\n \n Parameters\n ----------\n candidate_sequences_fasta_path: str\n path to candidate sequences fasta file i.e. sequences to be filtered.\n filtered_out...
334
false
geronimp/graftM
filter
4,296
LDU_FT/mathiasertl/django-ca/subject
LDU_FT
[ "<BEGIN>\n## `init`", "Create a new certificate authority.", " Parameters\n ----------", " name : str\n The name of the CA. This is a human-readable string and is used for administrative purposes only.\n subject : dict or str or :py:class:`~django_ca.subject.Subject`\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the subject API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
The certificates subject as :py:class:`~django_ca.subject.Subject`.
"The certificates subject as :py:class:`~django_ca.subject.Subject`."
164
false
mathiasertl/django-ca
subject
4,297
LDU_FT/edx/edx-submissions/get_score
LDU_FT
[ "<BEGIN>\n## `validate_answer`", "Check that the answer is JSON-serializable and not too long.\n<END>", "<BEGIN>\n## `get_annotations`", "Inspect ScoreAnnotations to attach all relevant annotations.\n<END>", "<BEGIN>\n## `create_reset_score`", "Create a \"reset\" score (a score with a null submission).", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_score API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Get the score for a particular student item Each student item should have a unique score. This function will return the score if it is available. A score is only calculated for a student item if it has completed the workflow for a particular assessment module. Args: student_item (dict): The di...
"Get the score for a particular student item\n\n Each student item should have a unique score. This function will return the\n score if it is available. A score is only calculated for a student item if\n it has completed the workflow for a particular assessment module.\n\n Args:\n student_item (dict)...
118
false
edx/edx-submissions
get_score
4,298
LDU_FT/Galarzaa90/tibia.py/url
LDU_FT
[ "<BEGIN>\n## `ranks`", ":class:`list` of :class:`str`: Ranks in their hierarchical order.\n<END>", "<BEGIN>\n## `from_content`", "Creates an instance of the class from the HTML content of the guild's page.", " Parameters\n -----------\n content: :class:`str`\n The HTML conten...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the 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 extracted doc...
:class:`str`: The URL to the Tibia.com page of the house.
":class:`str`: The URL to the Tibia.com page of the house."
254
false
Galarzaa90/tibia.py
url
4,299
LDU_FT/data61/clkhash/from_json_dict
LDU_FT
[ "<BEGIN>\n## `convert_v1_to_v2`", "Convert v1 schema dict to v2 schema dict.\n :param dict: v1 schema dict\n :return: v2 schema dict\n<END>", "<BEGIN>\n## `from_json_dict`", "Create a Schema for v1 or v2 according to dct", " :param dct: This dictionary must have a `'features'`\n key spec...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the from_json_dict API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Make a IntegerSpec object from a dictionary containing its properties. :param dict json_dict: This dictionary may contain `'minimum'` and `'maximum'` keys. In addition, it must contain a `'hashing'` key, whose contents are passed to :class:`FieldH...
"Make a IntegerSpec object from a dictionary containing its\n properties.\n\n :param dict json_dict: This dictionary may contain\n `'minimum'` and `'maximum'` keys. In addition, it must\n contain a `'hashing'` key, whose contents are passed to\n :class:...
212
false
data61/clkhash
from_json_dict
4,300
LDU_FT/neovim/pynvim/setup_logging
LDU_FT
[ "<BEGIN>\n## `connection_made`", "Used to signal `asyncio.Protocol` of a successful connection.\n<END>", "<BEGIN>\n## `data_received`", "Used to signal `asyncio.Protocol` of incoming data.\n<END>", "<BEGIN>\n## `pipe_data_received`", "Used to signal `asyncio.SubprocessProtocol` of incoming data.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setup_logging API. 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...
Setup logging according to environment variables.
"Setup logging according to environment variables."
139
false
neovim/pynvim
setup_logging
4,301
LDU_FT/marcinmiklitz/pywindow/center_of_mass
LDU_FT
[ "<BEGIN>\n## `unique`", "Return a list of unique items (similar to set functionality).", " Parameters\n ----------\n input_list : list\n A list containg some items that can occur more than once.", " Returns\n -------\n list\n A list with only unique occurances of an item.\n<END...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the center_of_mass API. 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 center_of_mass API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ex...
Return the centre of mass (COM). Parameters ---------- elements : numpy.ndarray An array of all elements (type: str) in a molecule. coordinates : numpy.ndarray An array containing molecule's coordinates. Returns ------- numpy.ndarray An 1d array with coordinates of...
"Return the centre of mass (COM).\n\n Parameters\n ----------\n elements : numpy.ndarray\n An array of all elements (type: str) in a molecule.\n\n coordinates : numpy.ndarray\n An array containing molecule's coordinates.\n\n Returns\n -------\n numpy.ndarray\n An 1d array with ...
303
false
marcinmiklitz/pywindow
center_of_mass
4,302
LDU_FT/asweigart/pybresenham/square
LDU_FT
[ "<BEGIN>\n## `rotatePoint`", "Rotates the point at `x` and `y` by `rotationDegrees`. The point is rotated\n around the origin by default, but can be rotated around another pivot point\n by specifying `pivotx` and `pivoty`.", " The points are rotated counterclockwise.", " Returns an x and y tuple."...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the square API. 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 square API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Returns a generator that produces (x, y) tuples for a square. This function is an alias for the rectangle() function, with `length` passed for both the `width` and `height` parameters. The `left` and `top` arguments are the x and y coordinates for the topleft corner of the square. If `filled` is `True...
"Returns a generator that produces (x, y) tuples for a square.\n This function is an alias for the rectangle() function, with `length` passed for both the\n `width` and `height` parameters.\n\n The `left` and `top` arguments are the x and y coordinates for the topleft corner of the square.\n\n If `filled` i...
84
false
asweigart/pybresenham
square
4,303
LDU_FT/developersociety/django-glitter/validate_unique
LDU_FT
[ "<BEGIN>\n## `get_templates`", "Return a list of templates usable by a model.\n<END>", "<BEGIN>\n## `attach`", "Registers the given layout(s) classes\n admin site:", " @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>", "<BEGIN>\n## `get_formset`", "Default user to the cur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the validate_unique API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
Add this method because django doesn't validate correctly because required fields are excluded.
"Add this method because django doesn't validate correctly because required fields are\n excluded."
80
false
developersociety/django-glitter
validate_unique
4,304
LDU_FT/klen/muffin/parse
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse URL path and convert it to regexp if needed.\n<END>", "<BEGIN>\n## `create_signature`", "Create HMAC Signature from secret for value.\n<END>", "<BEGIN>\n## `generate_password_hash`", "Hash a password with given method and salt length.\n<END>", "<BEGIN>\n## `register`", "M...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parse API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted d...
Return a coroutine which parses data from request depends on content-type. Usage: :: def post(self, request): data = await self.parse(request) # ...
"Return a coroutine which parses data from request depends on content-type.\n\n Usage: ::\n\n def post(self, request):\n data = await self.parse(request)\n # ..."
37
false
klen/muffin
parse
4,305
LDU_FT/rstoneback/pysat/add_iri_thermal_plasma
LDU_FT
[ "<BEGIN>\n## `list_files`", "Return a Pandas Series of every file for chosen satellite data.", " This routine is intended to be used by pysat instrument modules supporting\n a particular NASA CDAWeb dataset.", " Parameters\n -----------\n tag : (string or NoneType)\n Denotes type of file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_iri_thermal_plasma 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 add_iri_thermal_plasma API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Uses IRI (International Reference Ionosphere) model to simulate an ionosphere. Uses pyglow module to run IRI. Configured to use actual solar parameters to run model. Example ------- # function added velow modifies the inst object upon every inst.load call inst.custom.add(add_i...
"Uses IRI (International Reference Ionosphere) model to simulate an ionosphere.\n \n Uses pyglow module to run IRI. Configured to use actual solar parameters to run \n model.\n \n Example\n -------\n # function added velow modifies the inst object upon every inst.load call\n inst.custom....
525
false
rstoneback/pysat
add_iri_thermal_plasma
4,306
LDU_FT/Spinmob/spinmob/_print_figures
LDU_FT
[ "<BEGIN>\n## `get_data`", "Currently pretends to talk to an instrument and get back the magnitud\n and phase of the measurement.\n<END>", "<BEGIN>\n## `Set`", "Sets the key-value pair and dumps to the preferences file.\n<END>", "<BEGIN>\n## `MakeDir`", "Creates a directory of the specified path in the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _print_figures API. 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 _print_figures API. 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...
figure printing loop designed to be launched in a separate thread.
"figure printing loop designed to be launched in a separate thread."
745
false
Spinmob/spinmob
_print_figures
4,307
LDU_FT/danijar/layered/_find_symbol
LDU_FT
[ "<BEGIN>\n## `split`", "Utility function that can be used within the parse() implementation of\n sub classes to split a list of example into two lists for training and\n testing.\n<END>", "<BEGIN>\n## `_find_symbol`", "Find the symbol of the specified name inside the module or raise an\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _find_symbol API. 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 _find_symbol API. 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...
Find the symbol of the specified name inside the module or raise an exception.
"Find the symbol of the specified name inside the module or raise an\n exception."
18
false
danijar/layered
_find_symbol
4,308
LDU_FT/h2non/paco/safe_run
LDU_FT
[ "<BEGIN>\n## `observe`", "Arguments:\n event (str): event to subscribe.\n fn (function|coroutinefunction): function to trigger.", " Raises:\n TypeError: if fn argument is not valid\n<END>", "<BEGIN>\n## `remove`", "Remove all the registered observers for the given eve...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_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 extracte...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the safe_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 extracte...
Executes a given coroutine and optionally catches exceptions, returning them as value. This function is intended to be used internally.
"Executes a given coroutine and optionally catches exceptions, returning\n them as value. This function is intended to be used internally."
394
false
h2non/paco
safe_run
4,309
LDU_FT/pvizeli/pydroid-ipcam/export_sensor
LDU_FT
[ "<BEGIN>\n## `_request`", "Make the actual request and return the parsed response.\n<END>", "<BEGIN>\n## `available_settings`", "Return dict of lists with all available config settings.\n<END>", "<BEGIN>\n## `export_sensor`", "Return (value, unit) from a sensor node.\n<END>", "<BEGIN>\n## `change_settin...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the export_sensor API. 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 export_sensor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return (value, unit) from a sensor node.
"Return (value, unit) from a sensor node."
18
false
pvizeli/pydroid-ipcam
export_sensor
4,310
LDU_FT/gebn/nibble/python_2_div_compatible
LDU_FT
[ "<BEGIN>\n## `_read_file`", "Read the contents of a file.", " :param name: The name of the file in the current directory.\n :param encoding: The encoding of the file; defaults to utf-8.\n :return: The contents of the file.\n<END>", "<BEGIN>\n## `_parse_args`", "Interpret command line arguments.", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the python_2_div_compatible 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 python_2_div_compatible API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Adds a `__div__()` method to classes that define a `__floordiv__()` method, so division works in Python 2. Has no effect in Python 3. :param klass: The class to modify. Must define `__floordiv__()`. :return: The possibly patched class.
"Adds a `__div__()` method to classes that define a `__floordiv__()` method,\n so division works in Python 2. Has no effect in Python 3.\n\n :param klass: The class to modify. Must define `__floordiv__()`.\n :return: The possibly patched class."
45
false
gebn/nibble
python_2_div_compatible
4,311
LDU_FT/ecell/ecell4/plot_movie2d_with_matplotlib
LDU_FT
[ "<BEGIN>\n## `load_world`", "Load a world from the given HDF5 filename.\n The return type is determined by ``ecell4_base.core.load_version_information``.", " Parameters\n ----------\n filename : str\n A HDF5 filename.", " Returns\n -------\n w : World\n Return one from ``BDW...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_movie2d_with_matplotlib API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the plot_movie2d_with_matplotlib API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its concl...
Generate a movie projected on the given plane from the received list of instances of World, and show it on IPython notebook. This function may require ffmpeg. Parameters ---------- worlds : list or FixedIntervalHDF5Observer A list of Worlds to render. plane : str, default 'xy' '...
"Generate a movie projected on the given plane from the received list\n of instances of World, and show it on IPython notebook.\n This function may require ffmpeg.\n\n Parameters\n ----------\n worlds : list or FixedIntervalHDF5Observer\n A list of Worlds to render.\n plane : str, default 'xy'\...
217
false
ecell/ecell4
plot_movie2d_with_matplotlib
4,312
LDU_FT/yoch/sparse-som/fit_predict
LDU_FT
[ "<BEGIN>\n## `fit`", "\\\n Training the SOM on the the data and calibrate itself.", " After the training, `self.quant_error` and `self.topog_error` are \n respectively set.", " :param data: sparse input matrix (ideal dtype is `numpy.float32`)\n :type data: :class:`scipy.spar...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fit_predict API. 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 fit_predict API. 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...
\ Fit and classify data efficiently. :param data: sparse input matrix (ideal dtype is `numpy.float32`) :type data: :class:`scipy.sparse.csr_matrix` :param labels: the labels associated with data :type labels: iterable :param unkown: the label to attribute if no label is ...
"\\\n Fit and classify data efficiently.\n\n :param data: sparse input matrix (ideal dtype is `numpy.float32`)\n :type data: :class:`scipy.sparse.csr_matrix`\n :param labels: the labels associated with data\n :type labels: iterable\n :param unkown: the label to attribute if no ...
20
false
yoch/sparse-som
fit_predict
4,313
LDU_FT/wrongwaycn/ssdb-py/substr
LDU_FT
[ "<BEGIN>\n## `execute`", "Execute all the commands in the current pipeline\n<END>", "<BEGIN>\n## `execute_command`", "Execute a command and return a parsed response.\n<END>", "<BEGIN>\n## `incr`", "Increase the value at key ``name`` by ``amount``. If no key exists, the value\n will be initialized a...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the substr API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted ...
Return a substring of the string at key ``name``. ``start`` and ``size`` are 0-based integers specifying the portion of the string to return. Like **Redis.SUBSTR** :param string name: the key name :param int start: Optional, the offset of first byte returned. If start is negat...
"Return a substring of the string at key ``name``. ``start`` and ``size``\n are 0-based integers specifying the portion of the string to return.\n\n Like **Redis.SUBSTR**\n\n :param string name: the key name\n :param int start: Optional, the offset of first byte returned. If start\n ...
215
false
wrongwaycn/ssdb-py
substr
4,314
LDU_FT/openai/pachi-py/parseNode
LDU_FT
[ "<BEGIN>\n## `writesgf`", "Write the game to an SGF file after a game\n<END>", "<BEGIN>\n## `sort`", "Sorts 'self.data' in-place. Argument:\n\t\t- func : optional, default 'None' --\n\t\t\t- If 'func' not given, sorting will be in ascending\n\t\t\t order.\n\t\t\t- If 'func' given, it will determine the sort ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the parseNode API. 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 parseNode API. 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...
Calls 'SGFParser.parseNode()', sets 'self.index' to point to the end of the data (effectively ending the 'GameTree' and 'Collection'), and returns the single (root) 'Node' parsed.
"Calls 'SGFParser.parseNode()', sets 'self.index' to point to the end\n\t\t\tof the data (effectively ending the 'GameTree' and 'Collection'),\n\t\t\tand returns the single (root) 'Node' parsed."
34
false
openai/pachi-py
parseNode
4,315
LDU_FT/twitterdev/twitter-python-ads-sdk/all
LDU_FT
[ "<BEGIN>\n## `content_type`", "Returns the content-type value determined by file extension.\n<END>", "<BEGIN>\n## `__init_chunked_upload`", "Initialization for a multi-chunk upload.\n<END>", "<BEGIN>\n## `__upload_chunk`", "Uploads a single chunk of a multi-chunk upload.\n<END>", "<BEGIN>\n## `save`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the all API. 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 all API. 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 a Cursor instance for the given tailored audience permission resource.
"Returns a Cursor instance for the given tailored audience permission resource."
74
false
twitterdev/twitter-python-ads-sdk
all
4,316
LDU_FT/Parsely/probably/save_snaphot
LDU_FT
[ "<BEGIN>\n## `_get_rho`", "Return the least signifiant bit\n O(N) in the worst case\n<END>", "<BEGIN>\n## `hash64`", "Wrapper around mmh3.hash64 to get us single 64-bit value.", " This also does the extra work of ensuring that we always treat the\n returned values as big-endian unsigned lon...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the save_snaphot API. 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 save_snaphot API. 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...
Save the current state of the current day bitarray on disk. Save the internal representation (bitarray) into a binary file using this format: filename : name_expiration_2013-01-01.dat
"Save the current state of the current day bitarray on disk.\n\n Save the internal representation (bitarray) into a binary file using this format:\n filename : name_expiration_2013-01-01.dat"
33
false
Parsely/probably
save_snaphot
4,317
LDU_FT/kstateome/django-cas/delete_old_tickets
LDU_FT
[ "<BEGIN>\n## `get_tgt_for`", "Fetch a ticket granting ticket for a given user.", " :param user: UserObj", " :return: TGT or Exepction\n<END>", "<BEGIN>\n## `delete_old_tickets`", "Delete tickets if they are over 2 days old\n kwargs = ['raw', 'signal', 'instance', 'sender', 'created']\n<END>", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the delete_old_tickets 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 delete_old_tickets 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...
Delete tickets if they are over 2 days old kwargs = ['raw', 'signal', 'instance', 'sender', 'created']
"Delete tickets if they are over 2 days old\n kwargs = ['raw', 'signal', 'instance', 'sender', 'created']"
55
false
kstateome/django-cas
delete_old_tickets
4,318
LDU_FT/samirelanduk/quickplots/horizontal_padding
LDU_FT
[ "<BEGIN>\n## `color`", "Returns or sets (if a value is provided) the series' colour.", " :param str color: If given, the series' colour will be set to this.\n :rtype: ``str``\n<END>", "<BEGIN>\n## `name`", "Returns or sets (if a value is provided) the series' name.", " :param str name...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the horizontal_padding 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 horizontal_padding 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...
Returns or sets (if a value is provided) the chart's horizontal padding. This determines how much space will be on either side of the display area, as a proportion of overall width, and should be a value between 0 and 0.5 :param float padding: If given, the chart's horizontal_padding\ ...
"Returns or sets (if a value is provided) the chart's horizontal\n padding. This determines how much space will be on either side of the\n display area, as a proportion of overall width, and should be a value\n between 0 and 0.5\n\n :param float padding: If given, the chart's horizontal_padd...
112
false
samirelanduk/quickplots
horizontal_padding
4,319
LDU_FT/tslight/treepick/listdir
LDU_FT
[ "<BEGIN>\n## `drawtree`", "Loop over the object, process path attribute sets, and drawlines based\n on their current contents.\n<END>", "<BEGIN>\n## `listdir`", "Return a list of all non dotfiles in a given directory.\n<END>", "<BEGIN>\n## `getchildren`", "Create list of absolute paths to be used t...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the listdir API. 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 listdir API. 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 list of all non dotfiles in a given directory.
"Return a list of all non dotfiles in a given directory."
14
false
tslight/treepick
listdir
4,320
LDU_FT/Workiva/furious/insert
LDU_FT
[ "<BEGIN>\n## `_handle_task`", "Pass request info to the async framework.\n<END>", "<BEGIN>\n## `_init`", "Initialize the furious context and registry.", " NOTE: Do not directly run this method.\n<END>", "<BEGIN>\n## `run_job`", "Takes an async object and executes its job.\n<END>", "<BEGIN>\n## `_ha...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the insert API. 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 insert API. 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 ...
Insert the pull task into the requested queue, 'default' if non given.
"Insert the pull task into the requested queue, 'default' if non\n given."
211
false
Workiva/furious
insert
4,321
LDU_FT/Azure/blobxfer/load_rsa_public_key_file
LDU_FT
[ "<BEGIN>\n## `set_verbose_logger_handlers`", "Set logger handler formatters to more detail\n<END>", "<BEGIN>\n## `join_thread`", "Join a thread\n :type threading.Thread thr: thread to join\n<END>", "<BEGIN>\n## `merge_dict`", "Recursively merge dictionaries: dict2 on to dict1. This differs\n from di...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the load_rsa_public_key_file 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 load_rsa_public_key_file API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Load an RSA Public key PEM file :param str rsakeyfile: RSA public key PEM file to load :rtype: cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey :return: RSAPublicKey
"Load an RSA Public key PEM file\n :param str rsakeyfile: RSA public key PEM file to load\n :rtype: cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey\n :return: RSAPublicKey"
447
false
Azure/blobxfer
load_rsa_public_key_file
4,322
LDU_FT/python-bugzilla/python-bugzilla/setassignee
LDU_FT
[ "<BEGIN>\n## `_request_helper`", "A helper method to assist in making a request and provide a parsed\n response.\n<END>", "<BEGIN>\n## `open_without_clobber`", "Try to open the given file with the given mode; if that filename exists,\n try \"name.1\", \"name.2\", etc. until we find an unused filenam...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the setassignee API. 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 setassignee API. 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...
Set any of the assigned_to or qa_contact fields to a new bugzilla account, with an optional comment, e.g. setassignee(assigned_to='wwoods@redhat.com') setassignee(qa_contact='wwoods@redhat.com', comment='wwoods QA ftw') You must set at least one of the two assignee fields, or this metho...
"Set any of the assigned_to or qa_contact fields to a new\n bugzilla account, with an optional comment, e.g.\n setassignee(assigned_to='wwoods@redhat.com')\n setassignee(qa_contact='wwoods@redhat.com', comment='wwoods QA ftw')\n\n You must set at least one of the two assignee fields, or this...
184
false
python-bugzilla/python-bugzilla
setassignee
4,323
LDU_FT/Sanji-IO/sanji/to_event
LDU_FT
[ "<BEGIN>\n## `add`", "Add a object\n Args:\n Object: Object will be added\n Returns:\n Object: Object with id\n Raises:\n TypeError: If add object is not a dict\n MultipleInvalid: If input object is invaild\n<END>", "<B...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the to_event API. 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 to_event API. 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 rid of id, sign, tunnel and update message type Notice: this method will return a deepcopy
"get rid of id, sign, tunnel and update message type\n Notice: this method will return a deepcopy"
45
false
Sanji-IO/sanji
to_event
4,324
LDU_FT/b3j0f/aop/_add_advices
LDU_FT
[ "<BEGIN>\n## `find_ctx`", "Find a Pointcut ctx which is a class/instance related to input\n function/method.", " :param elt: elt from where find a ctx.\n :return: elt ctx. None if no ctx available or if elt is a None method.\n<END>", "<BEGIN>\n## `base_ctx`", "Get base ctx.", " :param ctx: ini...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _add_advices API. 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 _add_advices API. 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...
Add advices on input target. :param Callable target: target from where add advices. :param advices: advices to weave on input target. :type advices: routine or list. :param bool ordered: ensure advices to add will be done in input order
"Add advices on input target.\n\n :param Callable target: target from where add advices.\n :param advices: advices to weave on input target.\n :type advices: routine or list.\n :param bool ordered: ensure advices to add will be done in input order"
79
false
b3j0f/aop
_add_advices
4,325
LDU_FT/developersociety/django-glitter/_log_action
LDU_FT
[ "<BEGIN>\n## `get_templates`", "Return a list of templates usable by a model.\n<END>", "<BEGIN>\n## `attach`", "Registers the given layout(s) classes\n admin site:", " @pages.register(Page)\n class Default(PageLayout):\n pass\n<END>", "<BEGIN>\n## `get_formset`", "Default user to the cur...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _log_action API. 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 _log_action API. 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...
Adds a log entry for this action to the object history in the Django admin.
"Adds a log entry for this action to the object history in the Django admin."
80
false
developersociety/django-glitter
_log_action
4,326
LDU_FT/chbrown/viz/gloss
LDU_FT
[ "<BEGIN>\n## `normalize`", "Restrict xs into the interval (0, 1) via a linear transformation\n as long as len(xs) > 1, 0 and 1 will be elements of the resulting array\n<END>", "<BEGIN>\n## `gloss`", "Creates an interlinear gloss (for pairs of tokens/types, POS-tags, labels, etc.)", " Take a list of [(...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the gloss API. 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 gloss API. 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...
Creates an interlinear gloss (for pairs of tokens/types, POS-tags, labels, etc.) Take a list of [('a', 'DET'), ('beluga', 'N')] and return a string covering multiples lines, like: a beluga DET N each item in `alignments` should have the same length, N `prefixes`, if provided, should be N-...
"Creates an interlinear gloss (for pairs of tokens/types, POS-tags, labels, etc.)\n\n Take a list of [('a', 'DET'), ('beluga', 'N')] and return a string covering multiples lines, like:\n a beluga\n DET N\n each item in `alignments` should have the same length, N\n `prefixes`, if provided, shoul...
15
false
chbrown/viz
gloss
4,327
LDU_FT/jantman/awslimitchecker/_set_dict_value_by_path
LDU_FT
[ "<BEGIN>\n## `_last_step`", "If ``self._savepath`` doesn't exist, can't be read as JSON, or doesn't\n match ``VERSION``, return 0. Otherwise, return the step which that file\n lists as the last-run step for this release.", " :return: last-run step from the release or 0\n :rtype: int\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_dict_value_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _set_dict_value_by_path API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion...
Given a dict (``d``), a value (``val``), and a list specifying the hierarchical path to a key in that dict (``path``), set the value in ``d`` at ``path`` to ``val``. :param d: the dict to search in :type d: dict :param path: the path to the key in the dict :type path: list :raises: TypeErr...
"Given a dict (``d``), a value (``val``), and a list specifying the\n hierarchical path to a key in that dict (``path``), set the value in ``d``\n at ``path`` to ``val``.\n\n :param d: the dict to search in\n :type d: dict\n :param path: the path to the key in the dict\n :type path: list\n :raises...
372
false
jantman/awslimitchecker
_set_dict_value_by_path
4,328
LDU_FT/lyst/lightfm/predict_rank
LDU_FT
[ "<BEGIN>\n## `fit`", "Fit the user/item id and feature name mappings.", " Calling fit the second time will reset existing mappings.", " Parameters\n ----------", " users: iterable of user ids\n items: iterable of item ids\n user_features: iterable of user features, ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the predict_rank API. 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 predict_rank API. 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...
Predict the rank of selected interactions. Computes recommendation rankings across all items for every user in interactions and calculates the rank of all non-zero entries in the recommendation ranking, with 0 meaning the top of the list (most recommended) and n_items - 1 being the end o...
"Predict the rank of selected interactions. Computes recommendation\n rankings across all items for every user in interactions and calculates\n the rank of all non-zero entries in the recommendation ranking, with 0\n meaning the top of the list (most recommended) and n_items - 1 being\n the ...
151
false
lyst/lightfm
predict_rank
4,329
LDU_FT/mjirik/imtools/create_pvsm_file
LDU_FT
[ "<BEGIN>\n## `get_superpxl_intensities`", "Calculates mean intensities of pixels in superpixels\n inputs:\n im ... grayscale image, ndarray [MxN]\n suppxls ... image with suppxls labels, ndarray -same shape as im\n outputs:\n suppxl_intens ... vector with suppxls mean intensities\n<END>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pvsm_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 ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_pvsm_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 ...
Create paraview status file (.pvsm) based on input vtk files. :param vtk_files: :param pvsm_filename: :param relative_paths: :return:
"Create paraview status file (.pvsm) based on input vtk files.\n :param vtk_files:\n :param pvsm_filename:\n :param relative_paths:\n :return:"
75
false
mjirik/imtools
create_pvsm_file
4,330
LDU_FT/buildbot/buildbot/_makeBuildbotTac
LDU_FT
[ "<BEGIN>\n## `parse`", "Parse messages sent by the 'buildbot-cvs-mail' program.\n<END>", "<BEGIN>\n## `parse`", "Parse messages sent by the svn 'commit-email.pl' trigger.\n<END>", "<BEGIN>\n## `parse`", "Parse branch notification messages sent by Launchpad.\n<END>", "<BEGIN>\n## `remote_write`", "Call...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _makeBuildbotTac API. 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 _makeBuildbotTac API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Create buildbot.tac file. If buildbot.tac file already exists with different contents, create buildbot.tac.new instead. @param basedir: worker base directory relative path @param tac_file_contents: contents of buildbot.tac file to write @param quiet: if True, don't print info messages @raise Creat...
"Create buildbot.tac file. If buildbot.tac file already exists with\n different contents, create buildbot.tac.new instead.\n\n @param basedir: worker base directory relative path\n @param tac_file_contents: contents of buildbot.tac file to write\n @param quiet: if True, don't print info messages\n\n @rai...
518
false
buildbot/buildbot
_makeBuildbotTac
4,331
LDU_FT/tsroten/dragonmapper/_hanzi_to_pinyin
LDU_FT
[ "<BEGIN>\n## `load_data_file`", "Load a data file and return it as a list of lines.", " Parameters:\n filename: The name of the file (no directories included).\n encoding: The file encoding. Defaults to utf-8.\n<END>", "<BEGIN>\n## `_load_data`", "Load the word and character mapping data in...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _hanzi_to_pinyin API. 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 _hanzi_to_pinyin API. 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 Pinyin reading for a Chinese word. If the given string *hanzi* matches a CC-CEDICT word, the return value is formatted like this: [WORD_READING1, WORD_READING2, ...] If the given string *hanzi* doesn't match a CC-CEDICT word, the return value is formatted like this: [[CHAR_READING1, CHAR_RE...
"Return the Pinyin reading for a Chinese word.\n\n If the given string *hanzi* matches a CC-CEDICT word, the return value is\n formatted like this: [WORD_READING1, WORD_READING2, ...]\n\n If the given string *hanzi* doesn't match a CC-CEDICT word, the return\n value is formatted like this: [[CHAR_READING1, ...
97
false
tsroten/dragonmapper
_hanzi_to_pinyin
4,332
LDU_FT/i3visio/osrframework/is_searchable
LDU_FT
[ "<BEGIN>\n## `getResults`", "Function to obtain the Dictionarythat represents this object.", " :param parFound: values to return.", " :return: The output format will be like:\n [{\"type\" : \"i3visio.email\", \"value\": \"foo@bar.com\", \"attributes\": [] }, {\"type\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_searchable API. 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_searchable API. 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...
A bool value that indicates whether the person has enough data and can be sent as a query to the API.
"A bool value that indicates whether the person has enough data and\n can be sent as a query to the API."
598
false
i3visio/osrframework
is_searchable
4,333
LDU_FT/kislyuk/aegea/create_status
LDU_FT
[ "<BEGIN>\n## `update`", "Update this authorization.", " :param list scopes: (optional), replaces the authorization scopes with\n these\n :param list add_scopes: (optional), scopes to be added\n :param list rm_scopes: (optional), scopes to be removed\n :param str note: (opt...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_status API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Create a new deployment status for this deployment. :param str state: (required), The state of the status. Can be one of ``pending``, ``success``, ``error``, or ``failure``. :param str target_url: The target URL to associate with this status. This URL should contain output to ke...
"Create a new deployment status for this deployment.\n\n :param str state: (required), The state of the status. Can be one of\n ``pending``, ``success``, ``error``, or ``failure``.\n :param str target_url: The target URL to associate with this status.\n This URL should contain output...
834
false
kislyuk/aegea
create_status
4,334
LDU_FT/radjkarl/fancyWidgets/done
LDU_FT
[ "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `contextMenuEvent`", "Add menu action:\n * 'Show line numbers'\n * 'Save to file'\n<END>", "<BEGIN>\n## `findMenu`", "find a menu with a given title", " ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the done API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted do...
save the geometry before dialog is close to restore it later
"save the geometry before dialog is close to restore it later"
48
false
radjkarl/fancyWidgets
done
4,335
LDU_FT/dossier/dossier.web/v1_tag_suggest
LDU_FT
[ "<BEGIN>\n## `as_multi_dict`", "Coerce a dictionary to a bottle.MultiDict\n<END>", "<BEGIN>\n## `set_query_params`", "Set the query parameters.", " The query parameters should be a dictionary mapping keys to\n strings or lists of strings.", " :param query_params: query parameters\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the v1_tag_suggest API. 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 v1_tag_suggest API. 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...
Provide fast suggestions for tag components. This yields suggestions for *components* of a tag and a given prefix. For example, given the tags ``foo/bar/baz`` and ``fob/bob``, here are some example completions (ordering may be different): .. code-block:: text /dossier/v1/tags/suggest/pref...
"Provide fast suggestions for tag components.\n\n This yields suggestions for *components* of a tag and a given\n prefix. For example, given the tags ``foo/bar/baz`` and\n ``fob/bob``, here are some example completions (ordering may be\n different):\n\n .. code-block:: text\n\n /dossier/v1/tags/su...
223
false
dossier/dossier.web
v1_tag_suggest
4,336
LDU_FT/KelSolaar/Umbra/store_text_cursor_anchor
LDU_FT
[ "<BEGIN>\n## `restore_geometry_on_layout_change`", "Setter for **self.__restore_geometry_on_layout_change** attribute.", " :param value: Attribute value.\n :type value: bool\n<END>", "<BEGIN>\n## `get`", "Returns given layout value.", " :param layout: Layout name.\n :type layou...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the store_text_cursor_anchor 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 store_text_cursor_anchor API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Stores the document cursor anchor. :return: Method success. :rtype: bool
"Stores the document cursor anchor.\n\n :return: Method success.\n :rtype: bool"
1,432
true
KelSolaar/Umbra
store_text_cursor_anchor
4,337
LDU_FT/absent1706/sqlalchemy-mixins/settable_relations
LDU_FT
[ "<BEGIN>\n## `to_dict`", "Return dict object with model's data.", " :param nested: flag to return nested relationships' data if true\n :type: bool\n :return: dict\n<END>", "<BEGIN>\n## `with_joined`", "Eagerload for simple cases where we need to just\r\n joined load some relatio...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the settable_relations 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 settable_relations API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. Th...
Return a `list` of relationship names or the given model
"Return a `list` of relationship names or the given model"
46
false
absent1706/sqlalchemy-mixins
settable_relations
4,338
LDU_FT/greenbone/ospd/get_scanner_params_xml
LDU_FT
[ "<BEGIN>\n## `run_command`", "Run a single command via SSH and return the content of stdout or\n None in case of an Error. A scan error is issued in the latter\n case.", " For logging into 'host', the scan options 'port', 'username',\n 'password' and 'ssh_timeout' are used.\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scanner_params_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_scanner_params_xml API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Returns the OSP Daemon's scanner params in xml format.
"Returns the OSP Daemon's scanner params in xml format."
203
false
greenbone/ospd
get_scanner_params_xml
4,339
LDU_FT/bigcommerce/bigcommerce-api-python/_handle_response
LDU_FT
[ "<BEGIN>\n## `all`", "Returns first page if no params passed in as a list.\n<END>", "<BEGIN>\n## `iterall`", "Returns a autopaging generator that yields each object returned one by one.\n<END>", "<BEGIN>\n## `get`", "Retrieves the resource with given id 'rid', or all resources of given type.\n Keep...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _handle_response API. 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_response API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ...
Adds rate limiting information on to the response object
"Adds rate limiting information on to the response object"
25
false
bigcommerce/bigcommerce-api-python
_handle_response
4,340
LDU_FT/uchicago-cs/deepdish/extract_patches
LDU_FT
[ "<BEGIN>\n## `load`", "Loads an instance of the class from a file.", " Parameters\n ----------\n path : str\n Path to an HDF5 file.", " Examples\n --------\n This is an abstract data type, but let us say that ``Foo`` inherits\n from ``Saveable``. To ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_patches API. 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 extract_patches API. 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...
Takes a set of images and yields randomly chosen patches of specified size. Parameters ---------- images : iterable The images have to be iterable, and each element must be a Numpy array with at least two spatial 2 dimensions as the first and second axis. patch_shape : tuple, length 2 ...
"Takes a set of images and yields randomly chosen patches of specified size.\n\n Parameters\n ----------\n images : iterable\n The images have to be iterable, and each element must be a Numpy array\n with at least two spatial 2 dimensions as the first and second axis.\n patch_shape : tuple, le...
138
false
uchicago-cs/deepdish
extract_patches
4,341
LDU_FT/taskcluster/taskcluster-client.py/getSpecificPrices
LDU_FT
[ "<BEGIN>\n## `ping`", "Ping Server", " Respond without doing anything.\n This endpoint is used to check that the service is up.", " This method is ``stable``\n<END>", "<BEGIN>\n## `githubWebHookConsumer`", "Consume GitHub WebHook", " Capture a GitHub event and publish it via ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the getSpecificPrices API. 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 getSpecificPrices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Request prices for EC2 Return a list of possible prices for EC2 This method takes input: ``v1/prices-request.json#`` This method gives output: ``v1/prices.json#`` This method is ``experimental``
"Request prices for EC2\n\n Return a list of possible prices for EC2\n\n This method takes input: ``v1/prices-request.json#``\n\n This method gives output: ``v1/prices.json#``\n\n This method is ``experimental``"
997
false
taskcluster/taskcluster-client.py
getSpecificPrices
4,342
LDU_FT/pavlov99/jsonapi/get_resource_name
LDU_FT
[ "<BEGIN>\n## `default`", "Encode JSON.", " :return str: A JSON encoded string\n<END>", "<BEGIN>\n## `dump_document`", "Get document for model_instance.", " redefine dump rule for field x: def dump_document_x", " :param django.db.models.Model instance: model instance\n :param ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_resource_name API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The...
Define resource name based on Meta information. :param Resource.Meta meta: resource meta information :return: name of resource :rtype: str :raises ValueError:
"Define resource name based on Meta information.\n\n :param Resource.Meta meta: resource meta information\n :return: name of resource\n :rtype: str\n :raises ValueError:"
63
false
pavlov99/jsonapi
get_resource_name
4,343
LDU_FT/jeffrimko/Qprompt/show_menu
LDU_FT
[ "<BEGIN>\n## `_format_kwargs`", "Decorator to handle formatting kwargs to the proper names expected by\n the associated function. The formats dictionary string keys will be used as\n expected function kwargs and the value list of strings will be renamed to\n the associated key string.\n<END>", "<BEGIN>...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the show_menu API. 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 show_menu API. 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...
Shows a menu with the given list of `MenuEntry` items. **Params**: - header (str) - String to show above menu. - note (str) - String to show as a note below menu. - msg (str) - String to show below menu. - dft (str) - Default value if input is left blank. - compact (bool) - If true, t...
"Shows a menu with the given list of `MenuEntry` items.\n\n **Params**:\n - header (str) - String to show above menu.\n - note (str) - String to show as a note below menu.\n - msg (str) - String to show below menu.\n - dft (str) - Default value if input is left blank.\n - compact (bool) - If...
46
false
jeffrimko/Qprompt
show_menu
4,344
LDU_FT/reillysiemens/layabout/get_version
LDU_FT
[ "<BEGIN>\n## `channel_to_id`", "Surely there's a better way to do this...\n<END>", "<BEGIN>\n## `send_message`", "Prompt for and send a message to a channel.\n<END>", "<BEGIN>\n## `_format_parameter_error_message`", "Format an error message for missing positional arguments.", " Args:\n name: T...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_version API. 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_version API. 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...
Retrieve the ``__version__`` attribute for Layabout.
"Retrieve the ``__version__`` attribute for Layabout."
27
false
reillysiemens/layabout
get_version
4,345
LDU_FT/polyaxon/polyaxon/render_mail_template
LDU_FT
[ "<BEGIN>\n## `on_failure`", "Update query status and send email notification to a user\n<END>", "<BEGIN>\n## `on_success`", "Send email notification and a file, if requested to do so by a user\n<END>", "<BEGIN>\n## `user_write_events`", "Return event types where use acted on an object.", " The wr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the render_mail_template 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 render_mail_template API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
Renders both the subject and body templates in the given context. Returns a tuple (subject, body) of the result.
"Renders both the subject and body templates in the given context.\n Returns a tuple (subject, body) of the result."
270
false
polyaxon/polyaxon
render_mail_template
4,346
LDU_FT/Celeo/Preston/_get_authorization_headers
LDU_FT
[ "<BEGIN>\n## `_get_access_from_refresh`", "Uses the stored refresh token to get a new access token.", " This method assumes that the refresh token exists.", " Args:\n None", " Returns:\n new access token and expiration time (from now)\n<END>", "<BEGIN>\n## `_get_...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _get_authorization_headers 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_authorization_headers API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Constructs and returns the Authorization header for the client app. Args: None Returns: header dict for communicating with the authorization endpoints
"Constructs and returns the Authorization header for the client app.\n\n Args:\n None\n\n Returns:\n header dict for communicating with the authorization endpoints"
76
false
Celeo/Preston
_get_authorization_headers
4,347
LDU_FT/J535D165/recordlinkage/_update_feature_log_prob
LDU_FT
[ "<BEGIN>\n## `_map_tril_1d_on_2d`", "Map 1d indices on lower triangular matrix in 2d.\n<END>", "<BEGIN>\n## `random_pairs_without_replacement_large_frames`", "Make a sample of random pairs with replacement\n<END>", "<BEGIN>\n## `clean`", "Clean string variables.", " Clean strings in the Series by rem...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _update_feature_log_prob 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 _update_feature_log_prob API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Apply smoothing to raw counts and recompute log probabilities
"Apply smoothing to raw counts and recompute log probabilities"
339
false
J535D165/recordlinkage
_update_feature_log_prob
4,348
LDU_FT/jic-dtool/dtool-http/generate_url
LDU_FT
[ "<BEGIN>\n## `publish`", "Return access URL to HTTP enabled (published) dataset.", " Exits with error code 1 if the dataset_uri is not a dataset.\n Exits with error code 2 if the dataset cannot be HTTP enabled.\n<END>", "<BEGIN>\n## `cli`", "Command line utility to HTTP enable (publish) a dataset.\n<E...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 extr...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the generate_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 extr...
Return URL by combining server details with a path suffix.
"Return URL by combining server details with a path suffix."
27
false
jic-dtool/dtool-http
generate_url
4,349
LDU_FT/RudolfCardinal/pythonlib/make_email
LDU_FT
[ "<BEGIN>\n## `pdb_run`", "Calls ``func(*args, **kwargs)``; if it raises an exception, break into\n the ``pdb`` debugger.\n<END>", "<BEGIN>\n## `get_class_name_from_frame`", "A frame contains information about a specific call in the Python call\n stack; see https://docs.python.org/3/library/inspect.html....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_email API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the make_email API. 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...
Makes an e-mail message. Arguments that can be multiple e-mail addresses are (a) a single e-mail address as a string, or (b) a list of strings (each a single e-mail address), or (c) a comma-separated list of multiple e-mail addresses. Args: from_addr: name of the sender for the "From:" field ...
"Makes an e-mail message.\n\n Arguments that can be multiple e-mail addresses are (a) a single e-mail\n address as a string, or (b) a list of strings (each a single e-mail\n address), or (c) a comma-separated list of multiple e-mail addresses.\n\n Args:\n from_addr: name of the sender for the \"From:...
2,517
true
RudolfCardinal/pythonlib
make_email
4,350
LDU_FT/cloudmesh/cloudmesh-common/get_python
LDU_FT
[ "<BEGIN>\n## `names`", "The names defined in ~/.ssh/config\n :return: the names\n<END>", "<BEGIN>\n## `load`", "list the hosts defined in the ssh config file\n<END>", "<BEGIN>\n## `execute`", "execute the command on the named host\n :param name: the name of the host in config\n :param...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_python API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extrac...
returns the python and pip version :return: python version, pip version
"returns the python and pip version\n :return: python version, pip version"
203
false
cloudmesh/cloudmesh-common
get_python
4,351
LDU_FT/ergoithz/browsepy/fill
LDU_FT
[ "<BEGIN>\n## `defaultsnamedtuple`", "Generate namedtuple with default values.", " :param name: name\n :param fields: iterable with field names\n :param defaults: iterable or mapping with field defaults\n :returns: defaultdict with given fields and given defaults\n :rtype: collections.defaultdict\...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the fill API. 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 fill API. 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...
Writes data on internal tarfile instance, which writes to current object, using :meth:`write`. As this method is blocking, it is used inside a thread. This method is called automatically, on a thread, on initialization, so there is little need to call it manually.
"Writes data on internal tarfile instance, which writes to current\n object, using :meth:`write`.\n\n As this method is blocking, it is used inside a thread.\n\n This method is called automatically, on a thread, on initialization,\n so there is little need to call it manually."
207
false
ergoithz/browsepy
fill
4,352
LDU_FT/nateshmbhat/pyttsx3/_notify
LDU_FT
[ "<BEGIN>\n## `init`", "Constructs a new TTS engine instance or reuses the existing instance for\n the driver name.", " @param driverName: Name of the platform specific driver to use. If\n None, selects the default driver for the operating system.\n @type: str\n @param debug: Debugging output ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _notify API. 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 _notify API. 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...
Invokes callbacks for an event topic. @param topic: String event name @type topic: str @param kwargs: Values associated with the event @type kwargs: dict
"Invokes callbacks for an event topic.\n\n @param topic: String event name\n @type topic: str\n @param kwargs: Values associated with the event\n @type kwargs: dict"
73
false
nateshmbhat/pyttsx3
_notify
4,353
LDU_FT/EUDAT-B2SAFE/B2HANDLE/instantiate_with_username_and_password
LDU_FT
[ "<BEGIN>\n## `add_missing_optional_args_with_value_none`", "Adds key-value pairs to the passed dictionary, so that\n afterwards, the dictionary can be used without needing\n to check for KeyErrors.", " If the keys passed as a second argument are not present,\n they are added with None as...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instantiate_with_username_and_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the instantiate_with_username_and_password API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates...
Initialize client against an HSv8 instance with full read/write access. The method will throw an exception upon bad syntax or non-existing Handle. The existence or validity of the password in the handle is not checked at this moment. :param handle_server_url: The URL of the Handle Syst...
"Initialize client against an HSv8 instance with full read/write access.\n\n The method will throw an exception upon bad syntax or non-existing\n Handle. The existence or validity of the password in the handle is\n not checked at this moment.\n\n :param handle_server_url: The URL of the Hand...
168
false
EUDAT-B2SAFE/B2HANDLE
instantiate_with_username_and_password
4,354
LDU_FT/chaoss/grimoirelab-elk/get_last_offset
LDU_FT
[ "<BEGIN>\n## `__related_categories`", "Get all related categories to a given one\n<END>", "<BEGIN>\n## `__show_categories_tree`", "Show the category tree: list of categories and its subcategories\n<END>", "<BEGIN>\n## `fetch_track_items`", "The file format is:", " # Upstream contributions, bitergia w...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_offset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the get_last_offset API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The e...
:field: field with the data :filters_: additional filters to find the date
":field: field with the data\n :filters_: additional filters to find the date"
296
false
chaoss/grimoirelab-elk
get_last_offset
4,355
LDU_FT/Koed00/django-q/pusher
LDU_FT
[ "<BEGIN>\n## `loads`", "Reverse of dumps(), raise BadSignature if signature fails.", " The serializer is expected to accept a bytestring.\n<END>", "<BEGIN>\n## `unsign`", "Retrieve original value and check it wasn't signed more\n than max_age seconds ago.\n<END>", "<BEGIN>\n## `get_broker`", "...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pusher API. 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 pusher API. 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 ...
Pulls tasks of the broker and puts them in the task queue :type task_queue: multiprocessing.Queue :type event: multiprocessing.Event
"Pulls tasks of the broker and puts them in the task queue\n :type task_queue: multiprocessing.Queue\n :type event: multiprocessing.Event"
96
false
Koed00/django-q
pusher
4,356
LDU_FT/TriOptima/tri.declarative/extract_subkeys
LDU_FT
[ "<BEGIN>\n## `with_meta`", "Class decorator to enable a class (and it's sub-classes) to have a 'Meta' class attribute.", " :type class_to_decorate: class\n :param bool add_init_kwargs: Pass Meta class members to constructor", " :rtype: class\n<END>", "<BEGIN>\n## `get_meta`", "Collect...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the extract_subkeys API. 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 extract_subkeys API. 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...
Extract mappings of the shape '<base_key>__<sub_key>' to new mappings under '<sub_key>'. >>> foo = { ... 'foo__foo': 1, ... 'foo__bar': 2, ... 'baz': 3, ... } >>> assert extract_subkeys(foo, 'foo', defaults={'quux': 4}) == { ... 'foo': 1, ... 'bar': 2, ... 'q...
"Extract mappings of the shape '<base_key>__<sub_key>' to new mappings under '<sub_key>'.\n\n >>> foo = {\n ... 'foo__foo': 1,\n ... 'foo__bar': 2,\n ... 'baz': 3,\n ... }\n >>> assert extract_subkeys(foo, 'foo', defaults={'quux': 4}) == {\n ... 'foo': 1,\n ... 'bar': 2,\n ...
38
false
TriOptima/tri.declarative
extract_subkeys
4,357
LDU_FT/NatLibFi/Skosify/transform_sparql_construct
LDU_FT
[ "<BEGIN>\n## `read_rdf`", "Read a list of RDF files and/or RDF graphs. May raise an Exception.\n<END>", "<BEGIN>\n## `mapping_get`", "Look up the URI in the given mapping and return the result.", " Throws KeyError if no matching mapping was found.\n<END>", "<BEGIN>\n## `mapping_match`", "Determine wh...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the transform_sparql_construct 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 transform_sparql_construct API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclus...
Perform a SPARQL CONSTRUCT query on the RDF data and return a new graph.
"Perform a SPARQL CONSTRUCT query on the RDF data and return a new graph."
109
false
NatLibFi/Skosify
transform_sparql_construct
4,358
LDU_FT/nkavaldj/myhdl_lib/pipeline_control_stop_tx
LDU_FT
[ "<BEGIN>\n## `convert_ram_sp_ar`", "Convert RAM: Single-Port, Asynchronous Read\n<END>", "<BEGIN>\n## `convert_ram_sdp_rf`", "Convert RAM: Simple-Dual-Port, Read-First\n<END>", "<BEGIN>\n## `convert_ram_sdp_wf`", "Convert RAM: Simple-Dual-Port, Write-First\n<END>", "<BEGIN>\n## `convert_ram_sdp_ar`", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pipeline_control_stop_tx 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 pipeline_control_stop_tx API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusio...
Instantiates the arithmetic_mean4 pipeline, feeds it with data and drains its output
"Instantiates the arithmetic_mean4 pipeline, feeds it with data and drains its output"
111
false
nkavaldj/myhdl_lib
pipeline_control_stop_tx
4,359
LDU_FT/stephenmcd/hot-redis/value_right
LDU_FT
[ "<BEGIN>\n## `transaction`", "Swaps out the current client with a pipeline instance,\n so that each Redis method call inside the context will be\n pipelined. Once the context is exited, we execute the pipeline.\n<END>", "<BEGIN>\n## `_get_lua_path`", "Joins the given name with the relative path of the m...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the value_right API. 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 value_right API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extra...
Returns the value of the type instance calling an to use in an operator method, namely when the method's instance is on the right side of the expression.
"Returns the value of the type instance calling an to use in an\n operator method, namely when the method's instance is on the\n right side of the expression."
18
false
stephenmcd/hot-redis
value_right
4,360
LDU_FT/sixty-north/asq/group_by
LDU_FT
[ "<BEGIN>\n## `add_method`", "Add an existing function to a class as a method.\r", " Note: Consider using the extend decorator as a more readable alternative\r\n to using this function directly.\r", " Args:\r\n function: The function to be added to the class klass.\r", " klass: The...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the group_by API. 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 group_by API. 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...
Groups the elements according to the value of a key extracted by a selector function. Note: This method has different behaviour to itertools.groupby in the Python standard library because it aggregates all items with the same key, rather than returning groups of consecutive item...
"Groups the elements according to the value of a key extracted by a\n selector function.\n\n Note: This method has different behaviour to itertools.groupby in the\n Python standard library because it aggregates all items with the\n same key, rather than returning groups of consecutiv...
407
false
sixty-north/asq
group_by
4,361
LDU_FT/HHammond/PrettyPandas/as_unit
LDU_FT
[ "<BEGIN>\n## `_surpress_formatting_errors`", "I know this is dangerous and the wrong way to solve the problem, but when\n using both row and columns summaries it's easier to just swallow errors\n so users can format their tables how they need.\n<END>", "<BEGIN>\n## `as_percent`", "Convert number to perc...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_unit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the as_unit API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Convert value to unit. Parameters: ----------- :param v: numerical value :param unit: string of unit :param precision: int decimal places to round to :param location: 'prefix' or 'suffix' representing where the currency symbol falls relative to the value
"Convert value to unit.\n\n Parameters:\n -----------\n :param v: numerical value\n :param unit: string of unit\n :param precision: int\n decimal places to round to\n :param location:\n 'prefix' or 'suffix' representing where the currency symbol falls\n relative to the value"
23
false
HHammond/PrettyPandas
as_unit
4,362
LDU_FT/DreamLab/VmShepherd/create_vm
LDU_FT
[ "<BEGIN>\n## `initialize_openstack`", "Initialize and refresh openstack connection\n<END>", "<BEGIN>\n## `initialize`", "Initialize static data like images and flavores and set it as object property\n<END>", "<BEGIN>\n## `create_vm`", "Create VM\n :arg preset_name: string\n :arg image: str...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the create_vm API. 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 create_vm API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extract...
Create (boot) a new server. :arg string preset_name: Name of vm group where vm is created. :arg string image: Image name. :arg string flavor: Flavor (or instance_type in AWS) name. :arg list security_groups: A list of security group names. :arg dict userdata: A dict of arbitrary...
"Create (boot) a new server.\n\n :arg string preset_name: Name of vm group where vm is created.\n :arg string image: Image name.\n :arg string flavor: Flavor (or instance_type in AWS) name.\n :arg list security_groups: A list of security group names.\n :arg dict userdata: A dict of ar...
47
false
DreamLab/VmShepherd
create_vm
4,363
LDU_FT/zeromake/aiosqlite3/close
LDU_FT
[ "<BEGIN>\n## `wait_closed`", "Wait for closing all pool's connections.\n<END>", "<BEGIN>\n## `_fill_free_pool`", "iterate over free connections and remove timeouted ones\n<END>", "<BEGIN>\n## `create_future`", "Compatibility wrapper for the loop.create_future() call introduced in\n 3.5.2.\n<END>", "<...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the close API. 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 close API. 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...
Close this transaction. If this transaction is the base transaction in a begin/commit nesting, the transaction will rollback(). Otherwise, the method returns. This is used to cancel a Transaction without affecting the scope of an enclosing transaction.
"Close this transaction.\n\n If this transaction is the base transaction in a begin/commit\n nesting, the transaction will rollback(). Otherwise, the\n method returns.\n\n This is used to cancel a Transaction without affecting the scope of\n an enclosing transaction."
18
false
zeromake/aiosqlite3
close
4,364
LDU_FT/twitterdev/search-tweets-python/_load_yaml_credentials
LDU_FT
[ "<BEGIN>\n## `parse_version`", "Parses the program's version from a python variable declaration.\n<END>", "<BEGIN>\n## `make_session`", "Creates a Requests Session for use. Accepts a bearer token\n for premiums users and will override username and password information if\n present.", " Args:\n ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the _load_yaml_credentials API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Loads and parses credentials in a YAML file. Catches common exceptions and returns an empty dict on error, which will be handled downstream. Returns: dict: parsed credentials or {}
"Loads and parses credentials in a YAML file. Catches common exceptions\n and returns an empty dict on error, which will be handled downstream.\n\n Returns:\n dict: parsed credentials or {}"
88
false
twitterdev/search-tweets-python
_load_yaml_credentials
4,365
LDU_FT/impact27/registrator/pad_img
LDU_FT
[ "<BEGIN>\n## `channel_width`", "Get an estimation of the channel width.", " Parameters:\n -----------\n im: 2d array\n The channel image\n chanangle: number, optional\n The angle of the channel (None if unknown)\n chanapproxangle: number, optional\n If chanangle is None, the ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the pad_img API. 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 pad_img API. 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...
Pad positively with 0 or negatively (cut) Parameters ---------- im: 2d array The image pad: 4 numbers (ytop, ybottom, xleft, xright) or (imin, imax, jmin, jmax) Returns ------- im: 2d array The padded (or cropped) image offset: 2 numbers The offset relat...
"Pad positively with 0 or negatively (cut)\n\n Parameters\n ----------\n im: 2d array\n The image\n pad: 4 numbers\n (ytop, ybottom, xleft, xright) or (imin, imax, jmin, jmax)\n\n Returns\n -------\n im: 2d array\n The padded (or cropped) image\n offset: 2 numbers\n T...
129
false
impact27/registrator
pad_img
4,366
LDU_FT/cltrudeau/wrench/choices
LDU_FT
[ "<BEGIN>\n## `configure_file_logger`", "Configures logging to use the :class:`SizeRotatingFileHandler`\n<END>", "<BEGIN>\n## `default_logging_dict`", "Returns a logging configuration dictionary with reasonable defaults.\n Defines two handlers: \"default\" and \"file\", that go to STDOUT and a\n :class:`...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the choices API. 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 choices API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The extracted...
Returns a "choices" list of tuples. Each member of the list is one of the possible items in the ``Enum``, with the first item in the pair being the value and the second the name. This is compatible with django's choices attribute in fields. :returns: List of tuples
"Returns a \"choices\" list of tuples. Each member of the list is one\n of the possible items in the ``Enum``, with the first item in the pair\n being the value and the second the name. This is compatible with\n django's choices attribute in fields.\n\n :returns:\n List of tuple...
27
false
cltrudeau/wrench
choices
4,367
LDU_FT/troeger/opensubmit/add_course_safe
LDU_FT
[ "<BEGIN>\n## `read_config`", "Read configuration file, perform sanity check and return configuration\n dictionary used by other functions.\n<END>", "<BEGIN>\n## `check_config`", "Check the executor config file for consistency.\n<END>", "<BEGIN>\n## `has_config`", "Determine if the given config file...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the add_course_safe API. 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 add_course_safe API. 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...
Adds a course for the user after conducting a set of sanity checks. Return the title of the course or an exception.
"Adds a course for the user after conducting a set of sanity checks.\n Return the title of the course or an exception."
254
false
troeger/opensubmit
add_course_safe
4,368
LDU_FT/MatiasSM/fcb/is_uploaded_container
LDU_FT
[ "<BEGIN>\n## `delete_unverified_uploads`", ":param destinations: list of Destination.destination", " For each Destination.destination:\n Deletes all FilesDestinations where the destination is not verified\n Deletes each FilesContainer in the deleted FilesDestinations if not present in a non del...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the is_uploaded_container 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 is_uploaded_container API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. ...
returns 0 if it doesn't correspond to an uploaded container -1 if it corresponds to an uploaded container but it is corrupted 1 if it corresponds to an uploaded container and is OK
"returns 0 if it doesn't correspond to an uploaded container\n -1 if it corresponds to an uploaded container but it is corrupted\n 1 if it corresponds to an uploaded container and is OK"
42
false
MatiasSM/fcb
is_uploaded_container
4,369
LDU_FT/ianepperson/telnetsrvlib/streamserver_handle
LDU_FT
[ "<BEGIN>\n## `inputcooker_store_queue`", "Put the cooked data in the input queue (no locking needed)\n<END>", "<BEGIN>\n## `streamserver_handle`", "Translate this class for use in a StreamServer\n<END>", "<BEGIN>\n## `check_channel_shell_request`", "Request to start a shell on the given channel\n<END>", ...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the streamserver_handle 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 streamserver_handle 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...
Translate this class for use in a StreamServer
"Translate this class for use in a StreamServer"
45
false
ianepperson/telnetsrvlib
streamserver_handle
4,370
LDU_FT/shaypal5/pdutil/x_y_by_col_lbl_inplace
LDU_FT
[ "<BEGIN>\n## `df_string`", "Return a nicely formatted string for the given dataframe.", " Arguments\n ---------\n df : pandas.DataFrame\n A dataframe object.\n percentage_columns : iterable\n A list of cloumn names to be displayed with a percentage sign.", " Returns\n -------\n...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the x_y_by_col_lbl_inplace 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 x_y_by_col_lbl_inplace API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion....
Breaks the given dataframe into an X frame and a y series by the given column name. The original frame is returned, without the y series column, as the X frame, so no new dataframes are created. Parameters ---------- df : pandas.DataFrame The dataframe to split. y_col_lbl : object...
"Breaks the given dataframe into an X frame and a y series by the given\n column name.\n\n The original frame is returned, without the y series column, as the X\n frame, so no new dataframes are created.\n\n Parameters\n ----------\n df : pandas.DataFrame\n The dataframe to split.\n y_col_l...
37
false
shaypal5/pdutil
x_y_by_col_lbl_inplace
4,371
LDU_FT/mdickinson/refcycle/full_subgraph
LDU_FT
[ "<BEGIN>\n## `restore_gc_state`", "Restore the garbage collector state on leaving the with block.\n<END>", "<BEGIN>\n## `children`", "Return the list of immediate children of the given vertex.\n<END>", "<BEGIN>\n## `parents`", "Return the list of immediate parents of this vertex.\n<END>", "<BEGIN>\n## `...
You are an expert Python programmer. Understand the multiple natural language documentations and identify the one that describes the full_subgraph API. 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 full_subgraph API. Each documentation is for a function and enclosed between special markers: <BEGIN> indicates the start of a documentation, and <END> indicates its conclusion. The ext...
Return the subgraph of this graph whose vertices are the given ones and whose edges are the edges of the original graph between those vertices.
"Return the subgraph of this graph whose vertices\n are the given ones and whose edges are the edges\n of the original graph between those vertices."
98
false
mdickinson/refcycle
full_subgraph
4,372